/* ============================================================
   DeltaControl Vastgoedadvies — Design System
   Tokens, basis, herbruikbare componenten.
   Huisstijl: donkergroen #133C2C + wit, met foto-achtergronden.
   ============================================================ */

/* --- Reset & basis ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* --- Design tokens ---------------------------------------- */
:root {
  /* Kleuren — groen */
  --groen:        #133C2C;   /* primair — koppen, titelbalken, knoppen, accentvlakken */
  --groen-950:    #0C271B;   /* dieper — footer, gradient over foto's */
  --groen-700:    #1E5A43;   /* hover, secundaire accenten */
  --groen-600:    #2C7355;   /* links, subtiele highlights */
  --groen-100:    #E7F0EC;   /* zacht groen vlak */
  --groen-050:    #F2F7F5;   /* nog zachter */

  /* Kleuren — neutraal */
  --wit:          #FFFFFF;
  --mist:         #F4F6F5;
  --grijs-200:    #E5EAE8;
  --grijs-300:    #CFD7D3;
  --grijs-500:    #7C877F;
  --grijs-700:    #48514B;
  --tekst:        #17201B;
  --tekst-zacht:  #4C574F;

  /* Overlay op foto's */
  --overlay-hero: linear-gradient(180deg, rgba(12,39,27,0.50) 0%, rgba(12,39,27,0.80) 100%);
  --overlay-band: linear-gradient(180deg, rgba(19,60,44,0.72) 0%, rgba(12,39,27,0.82) 100%);
  --overlay-vlak: linear-gradient(180deg, rgba(19,60,44,0.90) 0%, rgba(12,39,27,0.94) 100%);

  /* Typografie */
  --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:    'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --text-xs:   clamp(11px, 1.1vw, 12.5px);
  --text-sm:   clamp(13px, 1.3vw, 14px);
  --text-base: clamp(15px, 1.5vw, 16.5px);
  --text-lg:   clamp(17px, 1.9vw, 20px);
  --text-xl:   clamp(20px, 2.3vw, 25px);
  --text-2xl:  clamp(25px, 3.2vw, 36px);
  --text-3xl:  clamp(30px, 4.3vw, 46px);
  --text-hero: clamp(34px, 5.4vw, 60px);

  /* Spacing */
  --space-1: 4px;   --space-2: 8px;   --space-3: 12px;  --space-4: 16px;
  --space-5: 20px;  --space-6: 24px;  --space-8: 32px;  --space-10: 40px;
  --space-12: 48px; --space-16: 64px; --space-20: 80px; --space-24: 96px;
  --space-32: 128px;

  /* Layout */
  --max-width:      1180px;
  --max-width-text: 760px;
  --nav-height:     78px;
  --gutter:         clamp(20px, 5vw, 64px);

  /* Radius / schaduw / timing */
  --radius-sm: 6px;  --radius-md: 12px;  --radius-lg: 20px;  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(19,60,44,0.08), 0 1px 2px rgba(19,60,44,0.06);
  --shadow-md: 0 6px 24px rgba(19,60,44,0.10), 0 2px 8px rgba(19,60,44,0.06);
  --shadow-lg: 0 18px 48px rgba(12,39,27,0.16), 0 6px 16px rgba(12,39,27,0.08);
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --dur:       460ms;
}

/* --- Basis-elementen ------------------------------------- */
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--tekst);
  background: var(--wit);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
ul, ol { list-style: none; }
strong { font-weight: 700; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--groen);
}

::selection { background: var(--groen); color: #fff; }

:focus-visible {
  outline: 3px solid var(--groen-600);
  outline-offset: 2px;
  border-radius: 3px;
}

/* --- Typografie-hulpklassen ------------------------------ */
.t-hero    { font-family: var(--font-display); font-weight: 800; font-size: var(--text-hero); line-height: 1.05; letter-spacing: -0.03em; }
.t-3xl     { font-family: var(--font-display); font-weight: 800; font-size: var(--text-3xl); line-height: 1.1;  letter-spacing: -0.025em; }
.t-2xl     { font-family: var(--font-display); font-weight: 700; font-size: var(--text-2xl); line-height: 1.15; letter-spacing: -0.02em; }
.t-xl      { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl);  line-height: 1.25; }
.t-lead    { font-size: var(--text-lg); color: var(--tekst-zacht); line-height: 1.6; }
.t-eyebrow { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xs);
             letter-spacing: 0.16em; text-transform: uppercase; color: var(--groen-600); }

.op-white  { color: #fff !important; }
.op-white h1, .op-white h2, .op-white h3 { color: #fff; }
.op-white .t-eyebrow { color: rgba(255,255,255,0.86); }
.op-white .t-lead { color: rgba(255,255,255,0.88); }

/* --- Layout-helpers ------------------------------------- */
.wrap { max-width: var(--max-width); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 9vw, 112px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--mist { background: var(--mist); }
.section--groen { background: var(--groen); }
.section--groen-diep { background: var(--groen-950); }
.stack > * + * { margin-top: var(--space-4); }
.measure { max-width: var(--max-width-text); }

.section-head { max-width: 620px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .t-eyebrow { display: block; margin-bottom: var(--space-3); }
.section-head p { margin-top: var(--space-4); }

/* --- Knoppen -------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm);
  padding: 0.9em 1.6em; border-radius: var(--radius-sm);
  transition: transform 0.15s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--groen); color: #fff; }
.btn--primary:hover { background: var(--groen-950); color: #fff; }
.btn--light { background: #fff; color: var(--groen); }
.btn--light:hover { background: var(--groen-050); color: var(--groen); }
.btn--ghost { border: 1.5px solid rgba(255,255,255,0.55); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); color: #fff; }
.btn--ghost-dark { border: 1.5px solid var(--grijs-300); color: var(--groen); }
.btn--ghost-dark:hover { border-color: var(--groen); background: var(--groen-050); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm);
  color: var(--groen-600);
}
.link-arrow span { transition: transform 0.2s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* --- Navigatie ----------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-height);
  display: flex; align-items: center;
  padding-inline: var(--gutter);
  transition: background-color 0.3s, box-shadow 0.3s, height 0.3s;
}
.nav__inner {
  width: 100%; max-width: var(--max-width); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-6);
}
.nav__logo { display: flex; align-items: center; gap: 11px; color: #fff; }
.nav__logo-mark { width: 34px; height: 34px; flex-shrink: 0; fill: currentColor; }
.nav__logo-text {
  font-family: var(--font-display); font-weight: 800; font-size: 17px;
  line-height: 1; letter-spacing: -0.02em; color: currentColor;
  display: flex; flex-direction: column; gap: 3px;
}
.nav__logo-text em {
  font-style: normal; font-weight: 600; font-size: 9px;
  letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.72;
}
.nav--solid { background: rgba(255,255,255,0.96); backdrop-filter: blur(10px); box-shadow: var(--shadow-sm); height: 66px; }
.nav--solid .nav__link { color: var(--tekst); }
.nav--solid .nav__logo { color: var(--groen); }

.nav__links { display: flex; align-items: center; gap: var(--space-8); }
.nav__link {
  font-family: var(--font-display); font-weight: 500; font-size: var(--text-sm);
  color: rgba(255,255,255,0.9); transition: color 0.2s; position: relative;
}
.nav__link:hover, .nav__link.is-active { color: #fff; }
.nav--solid .nav__link:hover, .nav--solid .nav__link.is-active { color: var(--groen); }
.nav__link.is-active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: currentColor; border-radius: 2px;
}
.nav__cta { padding: 0.7em 1.3em; }
.nav--solid .nav__cta.btn--light { background: var(--groen); color: #fff; }
.nav--solid .nav__cta.btn--light:hover { background: var(--groen-950); }

.nav__burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav__burger span { display: block; width: 22px; height: 2px; background: currentColor; position: relative; color: #fff; }
.nav__burger span::before, .nav__burger span::after { content: ''; position: absolute; left: 0; width: 22px; height: 2px; background: currentColor; }
.nav__burger span::before { top: -7px; } .nav__burger span::after { top: 7px; }
.nav--solid .nav__burger { color: var(--groen); }

/* Mobiel menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200; background: var(--groen);
  display: flex; flex-direction: column; padding: var(--gutter);
  transform: translateX(100%); transition: transform 0.4s var(--ease);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.mobile-menu__close { color: #fff; font-size: 30px; line-height: 1; width: 44px; height: 44px; }
.mobile-menu__links { margin-top: var(--space-16); display: flex; flex-direction: column; gap: var(--space-6); }
.mobile-menu__links a { font-family: var(--font-display); font-weight: 600; font-size: 26px; color: #fff; }
.mobile-menu__links a.is-active { color: rgba(255,255,255,0.55); }

/* --- Kaarten ------------------------------------------- */
.card {
  background: #fff; border: 1px solid var(--grijs-200); border-radius: var(--radius-md);
  padding: clamp(22px, 3vw, 32px);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--grijs-300); }
.card__icon {
  width: 48px; height: 48px; border-radius: 10px; background: var(--groen-100);
  display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-5);
  color: var(--groen);
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.card p { font-size: var(--text-sm); color: var(--tekst-zacht); }
.card--accent { background: var(--groen); border-color: var(--groen); }
.card--accent h3 { color: #fff; }
.card--accent p { color: rgba(255,255,255,0.82); }
.card--accent .card__icon { background: rgba(255,255,255,0.12); color: #fff; }

.grid { display: grid; gap: var(--space-6); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* --- Statistiek-balk ----------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.stat__num {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 4vw, 40px);
  color: #fff; letter-spacing: -0.02em; line-height: 1;
}
.stat__label { font-size: var(--text-sm); color: rgba(255,255,255,0.72); margin-top: var(--space-2); }

/* --- Foto-achtergrond secties -------------------------- */
.photo-band {
  position: relative; color: #fff; isolation: isolate;
  background-size: cover; background-position: center;
}
.photo-band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--overlay-band); }
.photo-band--hero::before { background: var(--overlay-hero); }

/* --- Checklist ----------------------------------------- */
.checklist { display: flex; flex-direction: column; gap: var(--space-3); }
.checklist li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--text-sm); }
.checklist li::before {
  content: ''; flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%;
  background: var(--groen-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23133C2C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.op-white .checklist li::before { background-color: rgba(255,255,255,0.16); }

/* --- Footer ------------------------------------------- */
.footer { background: var(--groen-950); color: rgba(255,255,255,0.7); padding-block: var(--space-20) var(--space-8); }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-12); margin-bottom: var(--space-16); }
.footer__logo { display: flex; align-items: center; gap: 10px; color: #fff; margin-bottom: var(--space-5); }
.footer__logo-mark { width: 30px; height: 30px; flex-shrink: 0; fill: currentColor; }
.footer__logo-text { font-family: var(--font-display); font-weight: 800; font-size: 16px; letter-spacing: -0.02em; }
.footer p { font-size: var(--text-sm); max-width: 34ch; }
.footer h4 { font-family: var(--font-display); font-size: var(--text-sm); color: #fff; margin-bottom: var(--space-4); letter-spacing: 0; }
.footer ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer ul a { font-size: var(--text-sm); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: var(--space-6);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3);
  font-size: var(--text-xs); color: rgba(255,255,255,0.5);
}

/* --- 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: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --- Responsive -------------------------------------- */
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: var(--space-8) var(--space-4); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .nav__links { display: none; }
  .nav__burger { display: flex; }
}
@media (max-width: 560px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .hero .btn { width: auto; }
}
