/* ─── FONTS (self-hosted, latin subset) ──────────────── */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url('/fonts/cormorant-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 500;
  font-display: swap;
  src: url('/fonts/cormorant-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 200 400;
  font-display: swap;
  src: url('/fonts/jost.woff2') format('woff2');
}

/* ═══════════════════════════════════════════════════════════
   DESIGN TOKENS — één bron voor kleur, fonts, type-schaal
   Type-schaal: Major Third (1.25), body 16px → 18px
   Viewport-bereik voor fluid clamp(): 375px → 1280px
   ═══════════════════════════════════════════════════════════ */

:root {
  /* ─── KLEUR ──────────────────────────────────────────── */
  --wit:    #F4F0E8;
  --linnen: #C8BA9F;
  --taupe:  #7A6E60;
  --zwart:  #221A12;
  --bruin:  #3A2C20;
  --eiken:  #C49070;
  --avond:  #8E9EA8;

  /* ─── FONT-FAMILIES ──────────────────────────────────── */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Jost', 'Helvetica Neue', Arial, sans-serif;

  /* ─── TYPE-SCHAAL — Major Third, strict modular, fluid ─
     Mobile 375px → Desktop 1280px
     Waardes op anchor-viewports:
       caps      10 → 11 px
       eyebrow   11 → 14 px  (mobile stap -2, desktop stap -1)
       small     13 → 14 px
       body      16 → 18 px   ← anchor
       lead      20 → 22 px
       h3        25 → 28 px
       h2        31 → 35 px
       h1        39 → 55 px  (mobile stap +4, desktop +5)
       display   61 → 69 px
       mega      61 → 108 px (mobile stap +6, desktop +8) */
  --fs-caps:    clamp(0.625rem, 0.6rem + 0.11vw, 0.6875rem);
  --fs-eyebrow: clamp(0.6875rem, 0.61rem + 0.33vw, 0.875rem);
  --fs-small:   clamp(0.8125rem, 0.79rem + 0.11vw, 0.875rem);
  --fs-body:    clamp(1rem, 0.95rem + 0.22vw, 1.125rem);
  --fs-lead:    clamp(1.25rem, 1.2rem + 0.22vw, 1.375rem);
  --fs-h3:      clamp(1.5625rem, 1.49rem + 0.33vw, 1.75rem);
  --fs-h2:      clamp(1.9375rem, 1.83rem + 0.44vw, 2.1875rem);
  --fs-h1:      clamp(2.4375rem, 2.02rem + 1.77vw, 3.4375rem);
  --fs-display: clamp(3.8125rem, 3.61rem + 0.88vw, 4.3125rem);
  --fs-mega:    clamp(3.8125rem, 2.6rem + 5.19vw, 6.75rem);

  /* ─── LINE-HEIGHT ────────────────────────────────────── */
  --lh-body: 1.75;     /* body, paragrafen, intro-tekst (mobile) */

  /* ─── LETTERSPACING ──────────────────────────────────── */
  --ls-caps: 0.38em;   /* uppercase buttons, nav-cta */
  --ls-wide: 0.18em;   /* footers, kleinere caps     */

  /* ─── MOTION (bestaand) ──────────────────────────────── */
  --ease: cubic-bezier(0.76, 0, 0.24, 1);
  --dur:  0.85s;
}

/* Desktop: iets meer lucht in body. */
@media (min-width: 769px) {
  :root {
    --lh-body: 1.85;
  }
}
/* Design tokens staan in tokens.css — niet hier dupliceren. */

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

/* ─── GRAIN OVERLAY ─────────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='250' height='250' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 250px 250px;
}

/* ─── UTILITIES ─────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* ─── SITE HEADER + NAV ─────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 3rem;
  transition: background 0.6s ease, padding 0.4s ease;
}
.site-header.scrolled {
  background: rgba(244, 240, 232, 0.93);
  backdrop-filter: blur(12px);
  padding: 1.4rem 3rem;
}
.site-header.scrolled .logo img { filter: brightness(0); }

.site-header .logo {
  display: block;
  text-decoration: none;
  width: 110px;
  flex-shrink: 0;
}
.site-header .logo img {
  width: 100%;
  height: auto;
  display: block;
  transition: filter 0.4s ease;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 3rem;
}
.site-header nav a {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--wit);
  opacity: 0.7;
  transition: opacity 0.3s, color 0.4s;
  white-space: nowrap;
}
.site-header nav a:hover,
.site-header nav a.active { opacity: 1; }
.site-header.scrolled nav a { color: var(--taupe); opacity: 0.7; }
.site-header.scrolled nav a:hover,
.site-header.scrolled nav a.active { color: var(--zwart); opacity: 1; }

.site-header nav .nav-cta {
  font-weight: 400;
  opacity: 0.85;
  border: 1px solid rgba(244, 240, 232, 0.35);
  padding: 0.55rem 1.4rem;
  letter-spacing: 0.35em;
  transition: opacity 0.3s, border-color 0.3s;
}
.site-header nav .nav-cta:hover {
  border-color: rgba(244, 240, 232, 0.75);
  opacity: 1;
}
.site-header.scrolled nav .nav-cta { border-color: rgba(122,110,96,0.3); }
.site-header.scrolled nav .nav-cta:hover { border-color: rgba(122,110,96,0.7); }

@media (max-width: 768px) {
  .site-header { padding: 1.5rem; }
  .site-header.scrolled { padding: 1.2rem 1.5rem; }
  .site-header nav { display: none; }
}

/* ─── SITE FOOTER ───────────────────────────────────────── */
.site-footer {
  background: var(--bruin);
  border-top: 1px solid rgba(200,186,159,0.1);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-footer .footer-copy {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.18em;
  color: var(--linnen);
  opacity: 0.5;
}
.site-footer .footer-credit {
  text-decoration: none;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.14em;
  color: var(--linnen);
  opacity: 0.4;
  text-align: right;
  transition: opacity 0.3s;
}
.site-footer .footer-credit:hover { opacity: 0.8; }

@media (max-width: 768px) {
  .site-footer {
    padding: 1.5rem 1.5rem 5rem;
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
  }
  .site-footer .footer-copy,
  .site-footer .footer-credit { opacity: 0.75; }
  .site-footer .footer-credit { text-align: center; }
}

/* ─── CROSSLINK-SECTIE ──────────────────────────────────── */
.crosslink {
  background: var(--wit);
  padding: 7rem 3rem;
}
.crosslink-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.crosslink-item {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.crosslink-item-heading {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: var(--fs-h2);
  line-height: 1.0;
  color: var(--zwart);
  letter-spacing: -0.01em;
}
.crosslink-item-heading em { font-style: italic; color: var(--taupe); }
.crosslink-item-body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--taupe);
  opacity: 0.8;
}
.crosslink-eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--eiken);
  margin-bottom: 1.5rem;
}
.crosslink-heading {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: var(--fs-h1);
  line-height: 1.0;
  color: var(--zwart);
  margin-bottom: 2rem;
}
.crosslink-heading em { font-style: italic; color: var(--taupe); }
.crosslink-body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--taupe);
  max-width: 44ch;
}
.crosslink-cta {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.38em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--zwart);
  white-space: nowrap;
  flex-shrink: 0;
}
.crosslink-bar {
  display: block;
  height: 1px;
  width: 3.5rem;
  background: var(--eiken);
  transform-origin: left center;
  transition: transform 0.4s ease;
  flex-shrink: 0;
}
.crosslink-cta:hover .crosslink-bar { transform: scaleX(1.2); }

@media (max-width: 768px) {
  .crosslink { padding: 5rem 1.5rem; }
  .crosslink-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem 1rem; }
  .crosslink-tekst { grid-column: 1 / -1; }
  .crosslink-item {
    border-top: 1px solid rgba(122, 110, 96, 0.25);
    padding-top: 1.2rem;
    gap: 1.8rem;
  }
  .crosslink-item-body { display: none; }
  .crosslink-item-heading { font-size: var(--fs-h2); }
  .crosslink-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    white-space: normal;
    letter-spacing: 0.38em;
  }
  .crosslink-bar { width: 2rem; }
}

/* ─── CONTACT MODAL ─────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(34, 26, 18, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--bruin);
  color: var(--wit);
  max-width: 460px;
  width: 100%;
  padding: 3.5rem;
  position: relative;
  transform: translateY(16px);
  transition: transform 0.4s cubic-bezier(0.22, 0.8, 0.44, 1);
}
.modal-overlay.open .modal { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--wit);
  opacity: 0.55;
  font-family: var(--font-sans);
  font-weight: 200;
  font-size: var(--fs-h3);
  line-height: 1;
  padding: 0;
  transition: opacity 0.3s;
}
.modal-close:hover { opacity: 1; }

.modal-eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--eiken);
  margin-bottom: 1.5rem;
}

.modal-heading {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: var(--fs-h2);
  line-height: 1.0;
  letter-spacing: -0.01em;
  color: var(--wit);
  margin-bottom: 0.6rem;
}
.modal-heading em { font-style: italic; color: var(--linnen); }

.modal-intro {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--linnen);
  opacity: 0.65;
  margin-bottom: 2.5rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: var(--fs-body);
  letter-spacing: 0.04em;
  color: var(--wit);
  transition: gap 0.4s ease;
}
.contact-link:hover { gap: 2rem; }
.contact-link-bar {
  display: block;
  height: 1px;
  width: 2rem;
  background: var(--eiken);
  flex-shrink: 0;
  transition: width 0.4s ease;
}
.contact-link:hover .contact-link-bar { width: 3.5rem; }

/* ─── CONTACT FORM ──────────────────────────────────────── */
.form-field { margin-bottom: 2rem; }

.form-label {
  display: block;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--linnen);
  opacity: 0.55;
  margin-bottom: 0.65rem;
}

.form-input,
.form-textarea {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(200, 186, 159, 0.25);
  padding: 0.5rem 0 0.65rem;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: var(--fs-body);
  color: var(--wit);
  letter-spacing: 0.03em;
  outline: none;
  transition: border-color 0.3s ease;
  resize: none;
}
.form-input::placeholder,
.form-textarea::placeholder { color: rgba(200, 186, 159, 0.3); }
.form-input:focus,
.form-textarea:focus { border-bottom-color: rgba(200, 186, 159, 0.7); }

.form-textarea { min-height: 68px; line-height: 1.7; }

.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-suggestie {
  margin-top: 0.6rem;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: var(--fs-small);
  line-height: var(--lh-body);
  color: rgba(200, 186, 159, 0.7);
  letter-spacing: 0.02em;
}
.form-suggestie button {
  background: none;
  border: none;
  padding: 0;
  color: var(--linnen);
  font: inherit;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.form-suggestie button:hover { color: var(--wit); }

.form-submit {
  margin-top: 2.5rem;
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--wit);
  padding: 0;
  transition: gap 0.4s ease;
}
.form-submit:hover { gap: 2.5rem; }

.form-submit-bar {
  display: block;
  height: 1px;
  width: 3rem;
  background: var(--eiken);
  transition: width 0.4s ease;
  flex-shrink: 0;
}
.form-submit:hover .form-submit-bar { width: 4.5rem; }

.modal-success { display: none; text-align: center; padding: 2rem 0; }
.modal-success.zichtbaar { display: block; }
.modal-form.verborgen { display: none; }

.modal-success-tekst {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  font-size: var(--fs-h2);
  color: var(--wit);
  line-height: 1.05;
  margin-bottom: 1rem;
}
.modal-success-sub {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: var(--fs-small);
  color: var(--linnen);
  opacity: 0.55;
  letter-spacing: 0.06em;
}

@media (max-width: 768px) {
  .modal-success.zichtbaar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100dvh - 4rem);
  }
}

/* ─── MOBILE MENU — hidden by default ───────────────────── */
.hamburger  { display: none; }
.mobile-menu { display: none; }

/* Nav-items: altijd geldig (parent is hidden op desktop) */
.mobile-menu .mobile-nav a,
.mobile-menu .mobile-nav-contact {
  display: block;
  width: 100%;
  padding: 1.4rem 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--zwart);
  text-decoration: none;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(122, 110, 96, 0.15);
  text-align: left;
  cursor: pointer;
  transition: color 0.3s ease;
}

.mobile-menu .mobile-nav a:active,
.mobile-menu .mobile-nav-contact:active { color: var(--eiken); }

@media (max-width: 768px) {
  .menu-pill {
    display: flex;
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 88px;
    height: 44px;
    border-radius: 44px 44px 0 0;
    background: var(--wit);
    border: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding-top: 2px;
    pointer-events: all;
    transition: background 0.3s ease;
  }
  .menu-pill.open { top: -36px; }
  .menu-pill span {
    display: block;
    width: 20px;
    height: 1px;
    background: var(--zwart);
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .menu-pill.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-pill.open span:nth-child(2) { opacity: 0; }
  .menu-pill.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .mobile-menu {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 650;
    background: var(--wit);
    flex-direction: column;
    padding: 3.5rem 2rem 5rem;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 40px rgba(34, 26, 18, 0.1);
    overflow: visible;
    transform: translateY(100%);
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.22, 0.8, 0.44, 1);
  }
  .mobile-menu.open { transform: translateY(0); pointer-events: all; }
  .mobile-menu::before {
    content: '';
    position: fixed;
    bottom: -120px;
    left: 0; right: 0;
    height: 120px;
    background: var(--wit);
    pointer-events: none;
  }
  .mobile-nav { display: flex; flex-direction: column; gap: 0; }
}
