/* ============================================================
   H2G Theme — hero-kinetisch.css
   Kinetische "vette" hero: eyebrow, 3-regelige oversized H1 (zon-icoon +
   rouleren wisselwoord), actie-rij en onderbalk.
   1-op-1 nabouw van de Lijndraad-designbron (Homepage Concept 2.dc.html).
   ============================================================ */

.h2g-hero-kinetisch {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: calc(100svh - var(--h2g-topbar-h, 92px));
  background-color: var(--color-white);
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  font-family: var(--font-body);
}

/* ─── Midden-deel (verticaal gecentreerd) ────────────────── */
.h2g-hero-kinetisch__midden {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px var(--gutter);
}

/* ─── Eyebrow ─────────────────────────────────────────────── */
.h2g-hero-kinetisch__eyebrow {
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding-bottom: 28px;
  animation: h2g-fade-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.1s;
}

/* ─── H1 — drie regels ────────────────────────────────────── */
.h2g-hero-kinetisch__kop {
  margin: 0;
  text-transform: uppercase;
  font-weight: 800;
  font-stretch: 110%;
  letter-spacing: -0.03em;
  line-height: 0.88;
  font-size: clamp(64px, 13vw, 240px);
  font-family: var(--font-heading);
  color: var(--color-accent);
  user-select: none;
}

.h2g-hero-kinetisch__regel {
  display: block;
  overflow: hidden;
}
.h2g-hero-kinetisch__regel--1 { padding-bottom: 0.03em; }
.h2g-hero-kinetisch__regel--2 { padding-bottom: 0.03em; }
.h2g-hero-kinetisch__regel--3 { padding-bottom: 0.06em; }

.h2g-hero-kinetisch__regel-in {
  display: block;
  animation: h2g-rise-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.h2g-hero-kinetisch__regel-in--1 { animation-delay: 0.25s; }
.h2g-hero-kinetisch__regel-in--2 {
  display: flex;
  align-items: center;
  gap: 0.14em;
  animation-delay: 0.42s;
}
.h2g-hero-kinetisch__regel-in--3 { animation-delay: 0.59s; }

/* Zon-icoon: langzaam draaiend, verborgen < 760px. */
.h2g-hero-kinetisch__zon {
  display: inline-block;
  width: 0.62em;
  height: 0.62em;
  flex: none;
  color: var(--color-accent);
  animation: h2g-spin-slow 26s linear infinite;
}
.h2g-hero-kinetisch__zon svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Wisselwoord: grid-gestapelde varianten, één zichtbaar per keer. */
.h2g-hero-kinetisch__wissel {
  display: inline-grid;
  text-align: left;
  vertical-align: top;
}

.h2g-hero-kinetisch__wissel-woord {
  grid-area: 1 / 1;
  display: block;
  background-color: var(--color-accent);
  color: var(--color-white);
  padding: 0 0.08em;
  opacity: 0;
  transform: translateY(110%);
}

/* Eerste woord: server-side zichtbaar zonder JavaScript. */
.h2g-hero-kinetisch__wissel-woord.is-eerste {
  animation: h2g-wissel-in 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.59s;
}

/* ─── Actie-rij (12-koloms grid) ─────────────────────────── */
.h2g-hero-kinetisch__actie {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  align-items: end;
  padding-top: 48px;
}

.h2g-hero-kinetisch__intro {
  grid-column: 1 / span 5;
  margin: 0;
  font-size: clamp(17px, 1.6vw, 24px);
  line-height: 1.3;
  font-weight: 500;
  text-transform: uppercase;
  animation: h2g-fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 1.0s;
}

.h2g-hero-kinetisch__actie-rechts {
  grid-column: 7 / span 6;
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  animation: h2g-fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 1.15s;
}

/* Primaire pill-knop (zelfde idioom als h2g-cta-groot: tekst-span + badge-span). */
.h2g-hero-kinetisch__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: var(--color-accent);
  color: var(--color-white);
  text-decoration: none;
  padding: 16px 30px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(15px, 1.4vw, 18px);
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: transform 0.2s ease;
}
.h2g-hero-kinetisch__cta:hover { transform: scale(1.04); }

/* Secundaire link + cirkelpijl. */
.h2g-hero-kinetisch__secundair {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: 0.04em;
  transition: gap 0.2s ease;
}
.h2g-hero-kinetisch__secundair:hover { gap: 18px; }

.h2g-hero-kinetisch__secundair-cirkel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: none;
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  font-size: 17px;
}

/* ─── Onderbalk ───────────────────────────────────────────── */
.h2g-hero-kinetisch__onder {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 0 var(--gutter) 32px;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.06em;
  animation: h2g-fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 1.3s;
}

.h2g-hero-kinetisch__onder-links { font-weight: 600; }
.h2g-hero-kinetisch__onder-midden,
.h2g-hero-kinetisch__onder-rechts { font-weight: 400; }

/* ─── Keyframes (h2g-prefix — voorkomt clashes met andere componenten) ─── */
@keyframes h2g-rise-in {
  from { transform: translateY(115%); }
  to   { transform: translateY(0); }
}

@keyframes h2g-fade-up {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: none; }
}

@keyframes h2g-wissel-in {
  from { transform: translateY(110%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@keyframes h2g-wissel-uit {
  from { transform: translateY(0);      opacity: 1; }
  to   { transform: translateY(-110%);  opacity: 0; }
}

@keyframes h2g-spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ─── prefers-reduced-motion: alle entree-animaties uit ──── */
@media (prefers-reduced-motion: reduce) {
  .h2g-hero-kinetisch__eyebrow,
  .h2g-hero-kinetisch__regel-in,
  .h2g-hero-kinetisch__intro,
  .h2g-hero-kinetisch__actie-rechts,
  .h2g-hero-kinetisch__onder,
  .h2g-hero-kinetisch__wissel-woord.is-eerste {
    animation-duration: 0.001s !important;
    animation-delay: 0s !important;
  }

  .h2g-hero-kinetisch__zon {
    animation: none !important;
  }
}

/* ─── Responsive (@760px) ─────────────────────────────────── */
@media (max-width: 760px) {
  /* Klantverzoek 28-07-2026: de kop mag op de telefoon niet afsnijden. Het
     ontwerp-minimum (64px) is breder dan smalle viewports; de breedste regel
     (wisselwoord "KARAKTER", gemeten ≈ 6.32 × font-size incl. vlak-padding)
     moet binnen 100vw − 2 × 20px gutter passen → deler 6.44 (2% marge).
     Boven ±450px valt min() terug op de ontwerp-64px. Bij langere
     wisselwoorden blijft overflow:hidden het vangnet. */
  .h2g-hero-kinetisch__kop {
    font-size: min(64px, calc((100vw - 40px) / 6.44));
  }

  .h2g-hero-kinetisch__actie {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .h2g-hero-kinetisch__actie-rechts {
    justify-self: start;
    align-items: flex-start;
    text-align: left;
  }

  .h2g-hero-kinetisch__zon,
  .h2g-hero-kinetisch__onder-midden {
    display: none;
  }
}
