/* Huisstijl: Align (invisalign.nl) — Roboto, warm donkergrijs, Align-blauw als accent.
   Safari-thema subtiel via een giraffepatroon (img/giraffe-*.svg). */
:root {
  --ink: #1f1d1b;
  --ink-2: #2a2724;
  --text: #3d3935;
  --muted: #7a7672;
  --paper: #f6f4f0;
  --cream: #efe6d8;
  --ochre: #b9834f;
  --white: #fff;
  --blue: #009ace;
  --blue-dark: #0067ac;
  --line: rgba(61, 57, 53, 0.14);
  --radius: 20px;
  --pill: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 76px;
  --pattern: url("/img/giraffe-ochre.svg");
  --pattern-tone: url("/img/giraffe-tone.svg");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  font-family: Roboto, Arial, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.1; margin: 0 0 0.5em; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.container--narrow { width: min(860px, 100% - 32px); }
.section { padding: clamp(88px, 12vw, 168px) 0; }
.section__title { font-size: clamp(36px, 5.5vw, 68px); font-weight: 300; letter-spacing: -0.035em; color: var(--ink); }
.section__sub { color: var(--muted); margin: 0; max-width: 32ch; }
.lead { font-size: clamp(17px, 1.5vw, 20px); font-weight: 300; line-height: 1.7; max-width: 58ch; }
.note { font-size: 14px; color: var(--muted); }

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.2em; color: var(--blue);
  margin: 0 0 24px;
}
.eyebrow::after { content: ""; width: 56px; height: 1px; background: currentColor; opacity: 0.6; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--ink); color: var(--white);
  font: 500 15px/1 Roboto, Arial, sans-serif; letter-spacing: 0.02em;
  padding: 17px 30px; border: 1px solid transparent; border-radius: var(--pill);
  text-decoration: none; cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
}
.btn::after { content: "→"; transition: transform 0.3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { transform: translateX(4px); }
.btn--blue { background: var(--blue); }
.btn--blue:hover { background: var(--blue-dark); }
.btn--line { background: transparent; border-color: rgba(255, 255, 255, 0.35); }
.btn--line:hover { border-color: var(--white); }
.btn--small { padding: 11px 20px; font-size: 14px; background: var(--blue); }
.btn--small::after { content: none; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }

/* Scroll progress */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; }
.progress span { display: block; height: 100%; background: var(--blue); transform-origin: 0 50%; transform: scaleX(0); }

/* Navigation */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 clamp(20px, 4vw, 48px);
  color: var(--white);
  transition: background 0.4s, color 0.4s, box-shadow 0.4s;
}
.nav.is-scrolled { background: rgba(246, 244, 240, 0.92); color: var(--text); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(14px); }
.nav__brand { position: relative; width: 92px; height: 39px; opacity: 0; transition: opacity 0.4s; }
.nav.is-scrolled .nav__brand { opacity: 1; }
.nav__logo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity 0.4s; }
.nav__logo--color, .nav.is-scrolled .nav__logo--white { opacity: 0; }
.nav.is-scrolled .nav__logo--color { opacity: 1; }
.nav__links { display: flex; gap: 32px; }
.nav__links a { text-decoration: none; font-size: 14px; letter-spacing: 0.02em; opacity: 0.75; transition: opacity 0.2s; }
.nav__links a:hover { opacity: 1; }
.nav__right { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; gap: 2px; }
.lang button {
  background: none; border: 0; color: inherit; font: 500 12px Roboto, sans-serif; letter-spacing: 0.1em;
  padding: 6px 8px; cursor: pointer; text-transform: uppercase; opacity: 0.5; border-radius: 6px;
}
.lang button[aria-pressed="true"] { opacity: 1; box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }
@media (max-width: 1000px) { .nav__links { display: none; } }
@media (max-width: 420px) { .nav .btn--small { display: none; } }

/* Hero */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; place-items: center; text-align: center;
  color: var(--white); background: var(--ink);
  padding: calc(var(--nav-h) + 16px) 20px 96px;
  isolation: isolate;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 50% 40%, #2c2926 0%, var(--ink) 65%);
}
.hero__inner { max-width: 980px; }
.hero__logo { width: min(340px, 64vw); margin: 0 auto clamp(8px, 2vh, 24px); animation: fade 1.4s var(--ease) both; }
.hero__30 {
  font-size: clamp(190px, 36vw, 460px); font-weight: 700; line-height: 0.82; letter-spacing: -0.07em;
  padding: 0 0.07em 0 0;
  background: var(--pattern) 0 0 / clamp(160px, 22vw, 300px), var(--cream);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rise 1.4s 0.15s var(--ease) both;
}
.hero__years {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  font-size: clamp(14px, 1.4vw, 16px); font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase;
  margin: clamp(16px, 3vh, 32px) 0 12px; animation: rise 1.2s 0.3s var(--ease) both;
}
.hero__years .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.hero__subtitle { font-size: clamp(18px, 2vw, 24px); font-weight: 300; margin: 0 auto 8px; max-width: 34ch; opacity: 0.85; animation: rise 1.2s 0.4s var(--ease) both; }
.hero__date { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; margin: 0; font-size: 15px; color: var(--cream); animation: rise 1.2s 0.5s var(--ease) both; }
.hero__countdown { border: 1px solid rgba(255, 255, 255, 0.25); border-radius: var(--pill); padding: 3px 12px; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 36px; animation: rise 1.2s 0.6s var(--ease) both; }
.hero__scroll { position: absolute; bottom: 28px; left: 50%; translate: -50% 0; width: 1px; height: 56px; background: rgba(255, 255, 255, 0.2); overflow: hidden; }
.hero__scroll span { position: absolute; inset: 0; background: var(--white); animation: scrollline 2.2s var(--ease) infinite; }

@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes scrollline { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }

/* Marquee */
.marquee { background: var(--paper); border-bottom: 1px solid var(--line); overflow: hidden; padding: 26px 0; }
.marquee__track { display: flex; align-items: center; gap: 40px; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { font-size: clamp(28px, 4vw, 52px); font-weight: 100; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.marquee i { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); flex: none; }
@keyframes marquee { to { transform: translateX(calc(-50% - 20px)); } }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.reveal.is-visible { opacity: 1; transform: none; }
.clip-reveal { clip-path: inset(18% 18% 18% 18% round var(--radius)); transition: clip-path 1.4s var(--ease); }
.clip-reveal.is-visible { clip-path: inset(0 0 0 0 round var(--radius)); }

/* About */
.about__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 8vw, 120px); align-items: end; }
.stats { display: grid; }
.stat { display: flex; align-items: baseline; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.stat:last-child { border-bottom: 1px solid var(--line); }
.stat__num { font-size: clamp(44px, 5vw, 64px); font-weight: 300; letter-spacing: -0.04em; color: var(--ink); min-width: 3.6ch; font-variant-numeric: tabular-nums; }
.stat span { font-size: 16px; color: var(--muted); }
@media (max-width: 860px) { .about__grid { grid-template-columns: 1fr; } }

/* Program */
.program { background: var(--white); }
.program__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.program__head .section__title { margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li {
  display: grid; grid-template-columns: 140px 1fr 1.2fr; gap: 24px; align-items: baseline;
  padding: 28px 0; border-bottom: 1px solid var(--line);
  transition: padding 0.4s var(--ease), background 0.4s;
}
.timeline li:hover { padding-left: 16px; }
.timeline time { font-size: 15px; font-weight: 500; color: var(--blue); letter-spacing: 0.05em; font-variant-numeric: tabular-nums; }
.timeline h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 300; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
.timeline p { margin: 0; color: var(--muted); }
@media (max-width: 720px) { .timeline li { grid-template-columns: 1fr; gap: 6px; } }

/* Split sections + beeldvlakken */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 120px); align-items: center; }
.split--reverse .split__media { order: 2; }
.address { font-size: 17px; margin: 28px 0; padding-left: 18px; border-left: 2px solid var(--blue); }
.panel {
  aspect-ratio: 4 / 5; border-radius: var(--radius); position: relative; overflow: hidden;
  display: flex; align-items: flex-end; padding: 28px;
  font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500;
}
.panel--pattern { background: var(--cream); color: var(--ink); }
.panel--pattern::before { content: ""; position: absolute; inset: 0; background: var(--pattern) center / 360px; opacity: 0.22; }
.panel--pattern span { background: var(--paper); padding: 8px 14px; border-radius: var(--pill); }
.panel--dark { background: var(--ink); color: var(--cream); }
.panel--dark::before { content: ""; position: absolute; inset: 0; background: var(--pattern-tone) center / 360px; opacity: 0.06; }
.panel span { position: relative; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } .panel { aspect-ratio: 4 / 3; } }

/* Costs */
.costs { background: var(--white); }
.price-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 40px 0 24px; }
.price-card { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); background: var(--paper); }
.price-card--main { background: var(--ink); color: var(--white); border-color: var(--ink); position: relative; overflow: hidden; }
.price-card > * { position: relative; }
.price-card h3 { font-size: 14px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.7; }
.price { display: flex; align-items: baseline; gap: 8px; margin: 12px 0 16px; }
.price span { font-size: 28px; font-weight: 300; }
.price b { font-size: clamp(72px, 9vw, 112px); font-weight: 300; line-height: 1; letter-spacing: -0.05em; }
.price small { font-size: 14px; opacity: 0.6; }
@media (max-width: 680px) { .price-cards { grid-template-columns: 1fr; } }

/* Hotel */
.hotel .note { margin-top: 20px; }

/* Register (donker) */
.register { background: var(--ink); color: rgba(255, 255, 255, 0.85); }
.register .section__title { color: var(--white); }
.form { background: var(--white); color: var(--text); border-radius: var(--radius); padding: clamp(24px, 5vw, 56px); margin-top: 40px; }
fieldset { border: 0; padding: 0; margin: 0 0 40px; }
legend { font-size: 13px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue); margin-bottom: 20px; }
.form label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.form label em { font-style: normal; opacity: 0.7; }
.form label small { display: block; margin-top: 6px; }
.form input:not([type="checkbox"]), .form select {
  display: block; width: 100%; margin-top: 4px;
  font: 400 16px Roboto, Arial, sans-serif; color: var(--ink);
  padding: 10px 0; border: 0; border-bottom: 1px solid #cfcac4; border-radius: 0; background: transparent;
  transition: border-color 0.2s;
}
.form select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237a7672' stroke-width='1.5'/%3E%3C/svg%3E") right 4px center no-repeat; }
.form input:focus, .form select:focus { outline: none; border-bottom-color: var(--blue); box-shadow: 0 1px 0 var(--blue); }
.form .is-invalid { border-bottom-color: #c62828 !important; box-shadow: 0 1px 0 #c62828; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.grid--3 { grid-template-columns: 1fr 1fr 1fr; }
.grid--salutation { grid-template-columns: 100px 1fr 1fr; }
@media (max-width: 640px) { .grid, .grid--3, .grid--salutation { grid-template-columns: 1fr; } }
.check { display: flex !important; gap: 14px; align-items: flex-start; font-size: 15px !important; color: var(--text) !important; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.guest { border-left: 2px solid var(--blue); padding: 4px 0 4px 24px; margin: 8px 0 24px; animation: rise 0.6s var(--ease); }
.guest h4 { font-size: 16px; font-weight: 500; color: var(--ink); }
.summary { background: var(--paper); border-radius: 14px; padding: 24px 28px; margin-bottom: 28px; }
.summary h4 { font-size: 13px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.summary__row { display: flex; justify-content: space-between; padding: 4px 0; }
.summary__total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; font-size: 22px; font-weight: 300; color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__error, .alert { background: #fdecea; color: #a12020; border-radius: 10px; padding: 12px 16px; }
#turnstile { margin-bottom: 16px; }
.success { text-align: center; background: var(--white); color: var(--text); border-radius: var(--radius); padding: 56px 24px; margin-top: 40px; animation: rise 0.8s var(--ease); }
.success h3 { font-size: 32px; font-weight: 300; color: var(--ink); }
.success__icon { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 28px; display: grid; place-items: center; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 24px 0; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-size: clamp(18px, 2vw, 22px); font-weight: 300; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 26px; line-height: 1; transition: transform 0.4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 14px 0 0; color: var(--muted); max-width: 60ch; }

/* Footer */
.footer { background: var(--ink); color: rgba(255, 255, 255, 0.6); padding: 64px 0 40px; font-size: 14px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer__inner { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.footer__logo { width: 220px; opacity: 0.9; }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--white); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .clip-reveal { clip-path: none; }
}
