*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #fcc935;
  --gold-dark: #e8b020;
  --dark: #1a1208;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Patrick Hand SC', cursive;
  color: var(--dark);
}

.bg {
  position: fixed;
  inset: 0;
  background: url('hero.svg') center top / cover no-repeat;
  z-index: 0;
  transform: scale(1.05);
  filter: var(--photo-filter);
}
.bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--photo-vignette), var(--photo-grain);
}

/* BRANDING */
.branding {
  position: fixed;
  left: calc(18px + 70px + 70px + 100px);
  top: calc(22px + 70px + 60px);
  z-index: 5;
  pointer-events: none;
  right: 24px;
}

.brand-text {
  font-family: 'Patrick Hand SC', cursive;
  font-size: clamp(1.92rem, 4vw, 3.7rem);
  font-weight: 600;
  line-height: 1;
  transform: rotate(-6deg);
  display: inline-block;
  padding: 0.12em 0.32em 0.16em;
  position: relative;
  filter: var(--photo-filter);
}
/* Sort kant om de gule bogstaver: en sort kopi af ordet ligger bagved */
.brand-word {
  position: relative;
  z-index: 1;
  display: inline-block;
  white-space: nowrap;
}
.brand-word::before {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  color: var(--dark);
  -webkit-text-stroke: 0.1em var(--dark);
  stroke-linejoin: round;
}
.brand-fill {
  /* Gul med samme filmkorn som solen i tegningen */
  color: var(--gold);
  background: var(--photo-grain), var(--gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

/* Fartstreg: en spiral i hver ende, forbundet af en bue under logoet.
   Samme stregtykkelse og runde ender som bogstaverne */
.brand-swoosh {
  position: absolute;
  left: -11%;
  top: -10%;
  width: 124%;
  height: 118%;
  overflow: visible;
  fill: none;
  stroke: var(--dark);
  stroke-width: 0.085em;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.brand-swoosh path { vector-effect: non-scaling-stroke; }
/* Tynd gul kant om stregen: en lidt bredere gul streg bagved */
.brand-swoosh .swoosh-edge {
  stroke: #d9a62a;
  stroke-width: 0.125em;
}

/* INTRO UNDER LOGOET */
.hero-intro {
  margin-top: clamp(28px, 4vw, 52px);
  pointer-events: auto;
}

.hero-tagline {
  font-size: clamp(1rem, 1.4vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero-lead {
  font-size: clamp(1.43rem, 2.3vw, 2.08rem);
  line-height: 1.3;
  max-width: 17em;
  margin-bottom: 26px;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}

.btn-cta {
  display: inline-block;
  background: var(--gold);
  color: var(--dark);
  font-size: 1.43rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 36px;
  border-radius: 50px;
  transition: background 0.2s, transform 0.15s;
}
.btn-cta:hover { background: #fdd55e; transform: translateY(-2px); }

.hero-link {
  color: var(--dark);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}
.hero-link:hover { text-decoration-color: var(--dark); }

@media (max-width: 900px) {
  /* Vis venstre side af tegningen, så teksten ikke står oven på solen */
  .bg { background-position: 8% top; }
  .branding { left: 48px; top: 116px; }
  .brand-text { font-size: clamp(1.54rem, 6.4vw, 2.56rem); }
}

/* Højformat (telefon): egen tegning, hvor solen står midt i billedet under teksten */
@media (max-aspect-ratio: 4/5) {
  .bg { background-image: url('hero-mobile.svg'); background-position: center top; }
}

@media (max-width: 480px) {
  .branding { left: 40px; top: 108px; }
  .brand-text { font-size: clamp(1.28rem, 7.68vw, 1.92rem); }
  .hero-tagline { font-size: 0.95rem; letter-spacing: 0.04em; }
  .hero-lead { margin-bottom: 18px; }
  .hero-actions { gap: 12px 18px; }
  .btn-cta { font-size: 1.2rem; padding: 11px 24px; }
  .hero-link { font-size: 1.1rem; }
}

/* Tekst kun til Google og skærmlæsere – vises ikke */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
