/* ============================================================
   The Service Society — style.css (mobile first)
   Palette from logo: saffron yellow / royal blue / wine red
   ============================================================ */

@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/poppins-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/poppins-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/poppins-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/poppins-800.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}

:root {
  --geel: #F5B843;        /* accentkleur — kleine dosissen (marquee, details) */
  --geel-diep: #ECA92B;
  --blauw: #3B63B2;
  --blauw-diep: #2C4C8F;
  --wijn: #8E1230;
  --papier: #FAF6ED;      /* gebroken wit — de hoofdachtergrond */
  --zand: #F3EADA;        /* iets warmer — afwisselende secties */
  --creme: #FDF4E3;
  --wit: #FFFDF8;
  --inkt: #22345C;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(44, 76, 143, .12);
}

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

/* CSS smooth scrolling breaks ScrollTrigger's position measurements
   (async programmatic scrolls) — only enable it when JS is off;
   with JS, anchor clicks scroll smoothly via scrollIntoView */
html:not(.js) { scroll-behavior: smooth; }

/* during the hero intro the page is locked at the top; the first scroll
   intent starts the animation, afterwards scrolling frees up (main.js) */
html.intro-lock, html.intro-lock body { overflow: hidden; }
/* the page always scrolls once unlocked — reserving the gutter up front
   avoids a layout jump when the scrollbar reappears after the intro */
html { scrollbar-gutter: stable; }

section[id] { scroll-margin-top: 72px; }

/* hide the SVG wordmark until the brand font is loaded (avoids misaligned fallback) */
.js .hero__svg { visibility: hidden; }
.js.ready .hero__svg { visibility: visible; }

/* avoid a headline flash between page load and timeline setup;
   after init either GSAP hides it (animated mode) or it stays visible (reduced motion) */
.js:not(.ready) .hero__final { opacity: 0; }

body {
  font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  color: var(--inkt);
  background: var(--papier);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.12;
  color: var(--blauw);
  letter-spacing: -0.02em;
}

h2 { font-size: clamp(1.9rem, 6.5vw, 3.2rem); margin-bottom: .9rem; }
h3 { font-size: 1.22rem; margin-bottom: .4rem; }

img, svg { display: block; max-width: 100%; }

a { color: var(--blauw); }

.container {
  width: min(100% - 2.5rem, 1080px);
  margin-inline: auto;
}
.container--narrow { width: min(100% - 2.5rem, 720px); }

.section { padding: clamp(4rem, 10vw, 7rem) 0; }
.section--cream  { background: var(--papier); }
.section--yellow { background: var(--zand); } /* historisch 'yellow' — nu warm zand */
.section--blue   { background: var(--blauw); color: var(--wit); }
.section--blue h2, .section--blue h3 { color: var(--wit); }
.section--wijn   { background: var(--wijn); color: var(--wit); }
.section--wijn h2, .section--wijn h3 { color: var(--geel); }
.section--wijn .lead { color: rgba(255, 253, 248, .94); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.kicker {
  display: inline-block;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--wijn);
  background: rgba(142, 18, 48, .08);
  border-radius: 99px;
  padding: .3rem .9rem;
  margin-bottom: 1rem;
}
.kicker--light { color: var(--geel); background: rgba(245, 184, 67, .14); }

.lead { font-size: clamp(1.05rem, 2.6vw, 1.25rem); max-width: 46ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--blauw);
  color: var(--wit);
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 3px solid var(--blauw);
  border-radius: 99px;
  padding: .85rem 1.7rem;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(44, 76, 143, .25); }
.btn:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--inkt); border-color: var(--blauw-diep); }
.btn--ghost:hover { background: var(--blauw); border-color: var(--blauw); color: var(--wit); }
.btn--yellow { background: var(--geel); border-color: var(--geel); color: var(--blauw-diep); }
.btn--yellow:hover { box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }
.btn--small { padding: .55rem 1.05rem; font-size: .85rem; white-space: nowrap; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 1.25rem;
  background: color-mix(in srgb, var(--papier) 90%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 3px solid rgba(44, 76, 143, .08);
}
.nav__brand {
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  color: var(--blauw);
  text-decoration: none;
  white-space: nowrap;
}
.nav__i { color: var(--wijn); }
.nav__links { display: none; gap: 1.4rem; }
.nav__links a {
  color: var(--blauw-diep); /* 4.7:1 op geel — AA voor kleine tekst */
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
}
.nav__links a:hover { color: var(--wijn); }

@media (min-width: 760px) {
  .nav { padding: .9rem 2rem; }
  .nav__links { display: flex; }
}
@media (max-width: 400px) {
  .nav { padding: .75rem .8rem; gap: .5rem; }
  .nav__brand { font-size: .9rem; }
  .btn--small { font-size: .76rem; padding: .5rem .75rem; border-width: 2px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: var(--papier);
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
}
.hero__stage {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__svg {
  width: min(88vw, 520px);
  height: auto;
  overflow: visible;
}
.logo-letter {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 92px;
  letter-spacing: -0.015em;
  fill: var(--blauw);
}
#bar { fill: var(--wijn); }
.glass { opacity: 0; }
.glass-stroke {
  fill: none;
  stroke: var(--blauw);
  stroke-width: 7;
  stroke-linecap: round;
}
.glass-stroke.shine { stroke: var(--wit); stroke-width: 5; opacity: .85; }
#wine { fill: var(--wijn); }

.hero__final {
  position: absolute;
  inset: auto 0 clamp(2rem, 6svh, 5rem) 0;
  text-align: center;
  padding-inline: 1.25rem;
}
.hero__title {
  font-size: clamp(2rem, 8vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--blauw);
}
.hero__sub {
  font-size: clamp(.95rem, 2.8vw, 1.2rem);
  font-weight: 600;
  color: var(--blauw-diep);
  margin: .5rem auto 1.1rem;
  max-width: 44ch;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

.hero__scrollhint {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .1rem;
  color: var(--blauw-diep);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero__scrollhint svg { animation: bob 1.6s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

/* ---------- marquee ---------- */
.marquee {
  background: var(--wijn);
  color: var(--geel);
  overflow: hidden;
  padding: .85rem 0;
  border-top: 3px solid var(--wijn);
  border-bottom: 3px solid var(--wijn);
}
.marquee__track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .06em;
  animation: marquee 110s linear infinite; /* 5× de tekst per helft, dus 5× de duur = zelfde snelheid */
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- stats (beloftenband) ---------- */
.stats { padding-block: clamp(3.2rem, 8vw, 5.5rem); }
.stats__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem 2rem;
  margin-top: 1.6rem;
}
.stat__num {
  display: flex;
  align-items: baseline;
  gap: .3rem;
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 3.6rem);
  color: var(--blauw);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat__unit { font-size: 1.15rem; font-weight: 700; color: var(--wijn); }
.stat p { margin-top: .5rem; font-size: .95rem; max-width: 30ch; }
@media (min-width: 640px)  { .stats__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px)  { .stats__grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- cards ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  margin-top: 2.2rem;
}
.card {
  background: var(--wit);
  border: 3px solid rgba(59, 99, 178, .15);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--wijn); }
.card__icon { color: var(--wijn); margin-bottom: .8rem; }
.card p { font-size: .98rem; }
.card__links {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.2rem;
  margin-top: 1rem;
}
.card__links a {
  font-weight: 700;
  font-size: .9rem;
  color: var(--blauw);
  text-decoration: none;
  border-bottom: 2px solid var(--geel);
  padding-bottom: 1px;
}
.card__links a:hover { color: var(--wijn); border-color: var(--wijn); }

@media (min-width: 760px)  { .cards { grid-template-columns: repeat(3, 1fr); } }

/* ---------- steps ---------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  margin-top: 2.2rem;
  counter-reset: step;
}
.step {
  background: var(--wit);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  box-shadow: var(--shadow);
}
.step__num {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--wijn);
  color: var(--wit);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: .8rem;
}
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* ---------- society (members) ---------- */
.society-list {
  list-style: none;
  display: grid;
  gap: .9rem;
  margin: 2rem 0 .6rem;
  max-width: 56ch;
}
.society-list li {
  position: relative;
  padding-left: 2rem;
  font-weight: 600;
  color: rgba(255, 253, 248, .96);
}
.society-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--geel);
  font-size: 1.1rem;
}

.section__cta {
  margin-top: 2.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.section__cta-note { font-weight: 600; font-size: .92rem; color: var(--wijn); }

.manifest__sign {
  margin-top: 1.6rem;
  font-weight: 700;
  color: var(--wijn);
}

/* ---------- usps + quote ---------- */
.usps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem 2rem;
  margin-top: 2.2rem;
}
.usp { border-left: 5px solid var(--geel); padding-left: 1.1rem; }
.usp h3 { color: var(--wijn); }
@media (min-width: 640px) { .usps { grid-template-columns: repeat(2, 1fr); } }

/* ---------- form ---------- */
.form { margin-top: 2rem; display: grid; gap: 1rem; }
.form label {
  display: grid;
  gap: .35rem;
  font-weight: 700;
  font-size: .92rem;
  color: var(--blauw-diep);
}
.form input, .form select, .form textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--inkt);
  background: var(--wit);
  border: 3px solid rgba(59, 99, 178, .25);
  border-radius: 14px;
  padding: .8rem 1rem;
  width: 100%;
  transition: border-color .15s ease;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--blauw);
}
.form__row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form .btn { justify-self: start; }
.form__note { font-size: .92rem; }
.form__success { font-weight: 600; color: var(--wijn); }

/* inschrijfformulier op de wijnrode jobs-sectie */
.society-signup { margin-top: 2.4rem; max-width: 620px; }
.society-signup h3 { margin-bottom: .2rem; }
.section--wijn .form label { color: var(--wit); }
.section--wijn .form input, .section--wijn .form select { border-color: rgba(255, 253, 248, .35); }
.section--wijn .form input:focus, .section--wijn .form select:focus { border-color: var(--geel); }
.section--wijn .form__success { color: var(--geel); }
.section--wijn .form__note { color: rgba(255, 253, 248, .8); }
.section--wijn .form__note a { color: var(--geel); }

/* ---------- footer ---------- */
.footer {
  background: var(--blauw-diep);
  color: rgba(255, 253, 248, .9);
  padding: 3rem 0 2.4rem;
}
.footer a { color: var(--geel); }
.footer__brand { font-weight: 800; font-size: 1.25rem; color: var(--wit); margin-bottom: .6rem; }
.footer__fine { margin-top: 1.4rem; font-size: .82rem; opacity: .65; }

/* ---------- reveal animation base ---------- */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(34px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.22, .8, .32, 1); }
/* animation libs failed to load: show everything statically */
.js.no-anim .reveal { opacity: 1; transform: none; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__scrollhint svg, .marquee__track { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
}
