/* ===== Design tokens ===== */
:root {
  --cream: #F5F0E8;
  --cream-alt: #ECE4D6;
  --cream-deep: #E4D9C6;
  --navy: #1C2B45;
  --navy-deep: #101A2C;
  --gold: #B08D57;
  --gold-light: #D9C7A8;
  --white: #FFFFFF;

  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Manrope', 'Segoe UI', sans-serif;
  --font-accent: 'Fraunces', 'Georgia', serif;

  --shadow-sm: 0 1px 2px rgba(16, 26, 44, 0.06);
  --shadow-md: 0 4px 16px rgba(16, 26, 44, 0.08);
  --shadow-lg: 0 16px 48px rgba(16, 26, 44, 0.14);

  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 24px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container-w: min(1240px, 92vw);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--navy);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font: inherit; }
svg { display: block; }

::selection { background: var(--gold); color: var(--white); }

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gold-light); border-radius: 10px; border: 3px solid var(--cream); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 4.5vw + 1rem, 4.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3vw + 1rem, 3.1rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.3rem, 1.4vw + 1rem, 1.7rem); }
h4 { font-size: 1.15rem; }

p { color: #3A4457; }
.lede { font-size: clamp(1.05rem, 1vw + 0.9rem, 1.25rem); color: #4B5468; max-width: 46ch; }

.eyebrow {
  font-family: var(--font-accent);
  font-weight: 500;
  font-size: clamp(1.3rem, 1.4vw + 1rem, 1.9rem);
  color: var(--gold);
  display: inline-block;
  margin-bottom: 0.25rem;
}

.kicker {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.kicker::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

/* ===== Layout ===== */
.container { width: var(--container-w); margin-inline: auto; }
.section { padding: clamp(3.5rem, 7vw, 7rem) 0; position: relative; }
.section--alt { background: var(--cream-alt); }
.section--navy { background: var(--navy-deep); color: var(--cream); }
.section--navy h2, .section--navy h3 { color: var(--cream); }
.section--navy p { color: #C7CEDB; }
.section-head { max-width: 640px; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }

.grain {
  position: relative;
}
.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* Gold arc divider */
.arc-divider {
  display: block;
  width: 100%;
  height: 48px;
  color: var(--gold-light);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.8em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  transition: transform 0.35s var(--ease), background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  min-height: 44px;
  white-space: nowrap;
}
.btn--primary {
  background: var(--navy);
  color: var(--cream);
  box-shadow: var(--shadow-md);
}
.btn--primary:hover { background: var(--navy-deep); box-shadow: var(--shadow-lg); }
.btn--gold {
  background: var(--gold);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn--gold:hover { background: #9a7a49; box-shadow: var(--shadow-lg); }
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn--ghost:hover { background: var(--navy); color: var(--cream); }
.section--navy .btn--ghost { color: var(--cream); border-color: var(--gold-light); }
.section--navy .btn--ghost:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }

.btn svg { width: 1.1em; height: 1.1em; flex-shrink: 0; }

/* ===== Navigation ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 240, 232, 0.96);
  border-bottom: 1px solid rgba(28, 43, 69, 0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.site-header.is-hidden { transform: translateY(-100%); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  width: var(--container-w);
  margin-inline: auto;
}
.nav__logo img { height: 42px; width: auto; }

.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  z-index: 210;
  position: relative;
}
.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__panel {
  position: fixed;
  inset: 0;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  z-index: 200;
  padding: 2rem;
}
.nav__panel.is-open { transform: translateX(0); }

.nav__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  width: 100%;
}
.nav__link {
  font-family: var(--font-display);
  font-size: 1.7rem;
  padding: 0.6rem 0;
  color: var(--navy);
  position: relative;
}
.nav__link.is-active { color: var(--gold); }
.nav__link-underline {
  position: relative;
  display: inline-block;
}
.nav__link-underline::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 2px;
  height: 2px;
  background: var(--gold);
  transition: right 0.3s var(--ease);
}
.nav__link:hover .nav__link-underline::after,
.nav__link.is-active .nav__link-underline::after { right: 0; }

.nav__cta { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.8rem; align-items: center; }

body.nav-open { overflow: hidden; }

@media (min-width: 900px) {
  .nav__toggle { display: none; }
  .nav__panel {
    position: static;
    transform: none;
    background: transparent;
    flex-direction: row;
    justify-content: flex-end;
    padding: 0;
    gap: 2.2rem;
    flex: 1;
  }
  .nav__links { flex-direction: row; gap: 0.4rem; width: auto; }
  .nav__link { font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; padding: 0.4rem 0.9rem; }
  .nav__cta { margin-top: 0; flex-direction: row; }
}

/* ===== Hero ===== */
.hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem);
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.hero__copy .kicker { margin-bottom: 1.1rem; }
.hero__copy h1 { margin-bottom: 1.25rem; }
.hero__copy .lede { margin-bottom: 2rem; }

.hero__art {
  position: relative;
  aspect-ratio: 4 / 5;
}
.hero__art-main {
  width: 88%;
  height: 78%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero__art-main img { width: 100%; height: 100%; }
.hero__art-accent {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 52%;
  height: 42%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--cream);
}
.hero__art-accent img { width: 100%; height: 100%; }
.hero__art-arc {
  position: absolute;
  top: -6%;
  left: -8%;
  width: 40%;
  color: var(--gold-light);
  z-index: -1;
}

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1fr 0.9fr; gap: 4rem; }
}

/* ===== Cards ===== */
.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

.formula-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2.2rem 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  border: 1px solid rgba(28,43,69,0.06);
}
.formula-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.formula-card__icon { width: 44px; height: 44px; color: var(--gold); margin-bottom: 1.2rem; }
.formula-card h3 { margin-bottom: 0.7rem; }
.formula-card p { font-size: 0.95rem; margin-bottom: 1.2rem; }
.formula-card__link { font-weight: 700; font-size: 0.88rem; color: var(--navy); display: inline-flex; align-items: center; gap: 0.4em; }
.formula-card__link svg { width: 1em; height: 1em; transition: transform 0.3s var(--ease); }
.formula-card__link:hover svg { transform: translateX(4px); }

/* Checklist */
.checklist { display: grid; gap: 1rem; }
@media (min-width: 700px) { .checklist { grid-template-columns: 1fr 1fr; } }
.checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(28,43,69,0.09);
}
.checklist__item svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.checklist__item p { color: var(--navy); font-weight: 600; font-size: 0.98rem; }

/* Alternating feature rows (Diensten) */
.feature-row {
  display: grid;
  gap: 2.2rem;
  align-items: center;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
}
.feature-row:not(:last-child) { border-bottom: 1px solid rgba(28,43,69,0.08); }
.feature-row__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4/3; }
.feature-row__media img { width: 100%; height: 100%; }
.feature-row__body .kicker { margin-bottom: 1rem; }
.feature-row__body h2 { margin-bottom: 1rem; }
.feature-row__body p { margin-bottom: 1rem; }
.feature-row__tag {
  display: inline-block;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--gold);
  margin-top: 0.5rem;
}

@media (min-width: 860px) {
  .feature-row { grid-template-columns: 1fr 1fr; }
  .feature-row--reverse .feature-row__media { order: 2; }
}

/* Werkwijze steps */
.steps {
  position: relative;
  display: grid;
  gap: 2.5rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding-left: 4.2rem;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold);
  position: absolute;
  left: 0;
  top: -0.2rem;
  width: 3.1rem;
  height: 3.1rem;
  border: 1.5px solid var(--gold-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
}
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 1.55rem;
  top: 3.3rem;
  bottom: -2.5rem;
  width: 1px;
  background: linear-gradient(var(--gold-light), transparent);
}
.step h3 { margin-bottom: 0.5rem; }
.step p { font-size: 0.96rem; }

@media (min-width: 700px) {
  .steps { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
  .step:nth-child(2)::after, .step:nth-child(4)::after { display: none; }
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 3vw, 2.8rem);
  box-shadow: var(--shadow-md);
}
.contact-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(28,43,69,0.08);
}
.contact-detail:last-child { border-bottom: none; }
.contact-detail svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.contact-detail h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: #7A8296; margin-bottom: 0.2rem; font-family: var(--font-body); }
.contact-detail a, .contact-detail span { font-weight: 600; color: var(--navy); }

.social-row { display: flex; gap: 0.8rem; margin-top: 1.5rem; }
.social-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.3s var(--ease);
}
.social-icon svg { width: 19px; height: 19px; color: var(--gold); }
.social-icon:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-3px); }
.social-icon:hover svg { color: var(--white); }

.offerte-placeholder {
  border: 1.5px dashed var(--gold-light);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  text-align: center;
  background: var(--cream-alt);
}
.offerte-placeholder svg { width: 46px; height: 46px; color: var(--gold); margin: 0 auto 1.2rem; }
.offerte-placeholder h3 { margin-bottom: 0.6rem; }
.offerte-placeholder p { max-width: 40ch; margin: 0 auto 1.6rem; }

#map {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  filter: saturate(0.55) contrast(1.02);
}
.leaflet-container { font-family: var(--font-body) !important; }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-deep);
  color: #C7CEDB;
  padding: clamp(3rem, 6vw, 5rem) 0 1.6rem;
  position: relative;
}
.footer__top {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(217, 199, 168, 0.18);
}
@media (min-width: 780px) {
  .footer__top { grid-template-columns: 1.3fr 1fr 1fr; }
}
.footer__brand .eyebrow { color: var(--gold-light); }
.footer__brand p { color: #9CA6BC; max-width: 34ch; margin-top: 0.8rem; font-size: 0.92rem; }
.footer__heading { font-family: var(--font-body); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-light); margin-bottom: 1.1rem; }
.footer__links { display: grid; gap: 0.7rem; }
.footer__links a { font-size: 0.94rem; position: relative; display: inline-block; width: fit-content; }
.footer__links a::after {
  content: '';
  position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 1px; background: var(--gold);
  transition: right 0.3s var(--ease);
}
.footer__links a:hover::after { right: 0; }
.footer__contact { display: grid; gap: 0.7rem; font-size: 0.94rem; }
.footer__social { display: flex; gap: 0.7rem; margin-top: 1rem; }
.footer__social .social-icon { width: 38px; height: 38px; border-color: rgba(217,199,168,0.35); }
.footer__social .social-icon svg { width: 16px; height: 16px; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  padding-top: 1.6rem;
  font-size: 0.82rem;
  color: #7A8296;
}
.footer__bottom a { color: #9CA6BC; }
.footer__bottom a:hover { color: var(--gold-light); }

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 560px;
  margin-inline: auto;
  background: var(--navy-deep);
  color: var(--cream);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-lg);
  z-index: 300;
  display: none;
  gap: 1rem;
  flex-direction: column;
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner p { color: #C7CEDB; font-size: 0.9rem; }
.cookie-banner .btn-row { justify-content: flex-end; }

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===== Legal content ===== */
.legal-content { max-width: 74ch; }
.legal-content h2 { margin-top: 2.5rem; margin-bottom: 1rem; font-size: 1.5rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { margin-top: 1.8rem; margin-bottom: 0.8rem; }
.legal-content h4 { margin-top: 1.2rem; margin-bottom: 0.5rem; }
.legal-content p, .legal-content li { font-size: 0.96rem; margin-bottom: 0.9rem; }
.legal-content ul { padding-left: 1.4rem; list-style: disc; margin-bottom: 1rem; }
.legal-content b { color: var(--navy); }
.legal-content table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: 0.9rem; }
.legal-content th, .legal-content td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid rgba(28,43,69,0.12); }
.legal-content th { font-family: var(--font-body); font-weight: 700; color: var(--gold); }
.legal-content a { color: var(--gold); text-decoration: underline; }

/* ===== Utilities ===== */
.text-center { text-align: center; }
.mt-lg { margin-top: clamp(2rem, 4vw, 3.5rem); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
