/* ==========================================================================
   DV Web & Marketing — Design System
   Warm, editorial, grounded. Light base + sparse dark accents.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=Fraunces:ital,opsz,wght@1,9..144,400;1,9..144,500;1,9..144,600&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Surfaces */
  --paper:        #FAF7F2;
  --paper-2:      #F2ECE1;
  --paper-3:      #FFFFFF;
  --line:         #E5DBCB;
  --line-soft:    #EFE8DC;

  /* Ink / text */
  --ink:          #181511;   /* headings / strong */
  --body:         #3B352D;   /* body copy */
  --muted:        #6B6256;   /* secondary copy */

  /* Accent (warm orange — craft + energy) */
  --accent:       #E2570F;
  --accent-600:   #C4490A;
  --accent-50:    #FCEDE1;
  --accent-glow:  rgba(226, 87, 15, 0.20);

  /* Dark sections */
  --dark:         #17140F;
  --dark-2:       #211C15;
  --dark-line:    rgba(243, 238, 230, 0.12);
  --on-dark:      #F4EFE7;
  --on-dark-muted:#B4AB9C;

  /* Glass */
  --glass-light:  rgba(250, 247, 242, 0.72);
  --glass-border: rgba(24, 21, 17, 0.08);

  /* System */
  --shadow-sm:    0 1px 2px rgba(24,21,17,.05), 0 2px 8px rgba(24,21,17,.04);
  --shadow-md:    0 8px 30px rgba(24,21,17,.08);
  --shadow-lg:    0 24px 60px rgba(24,21,17,.14);
  --radius:       20px;
  --radius-lg:    28px;
  --ease:         cubic-bezier(.16, 1, .3, 1);
  --maxw:         1200px;

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-serif:   'Fraunces', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
}

/* ----------------------------------- Base ----------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* Keyboard focus — visible, on-brand, never on mouse click */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
:focus:not(:focus-visible) { outline: none; }

/* Skip link (injected by main.js) */
.skip-link {
  position: fixed; top: 14px; left: 14px; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: .95rem;
  transform: translateY(-150%); transition: transform .25s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* Fluid display sizes */
.display   { font-size: clamp(2.6rem, 6.2vw, 5.2rem); }
.h-xl      { font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
.h-lg      { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.h-md      { font-size: clamp(1.3rem, 2vw, 1.6rem); }

/* Editorial italic serif accent */
.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.accent-text { color: var(--accent); }

/* ----------------------------------- Layout --------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 9vw, 130px) 0; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }

/* Editorial kicker (replaces generic uppercase eyebrow) */
.eyebrow {
  display: inline-flex; align-items: center; gap: 13px;
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: 1.1rem; letter-spacing: 0; text-transform: none; color: var(--ink);
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--accent);
  display: inline-block; flex: none;
}
.eyebrow.center { justify-content: center; }
.eyebrow.center::before { display: none; }

.lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--muted); max-width: 60ch; }

/* --------------------------------- Buttons ---------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  padding: 15px 26px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: all .25s var(--ease);
  white-space: nowrap; position: relative;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 20px var(--accent-glow); overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.28) 50%, transparent 65%);
  transform: translateX(-130%); transition: transform .7s var(--ease);
}
.btn-primary:hover { background: var(--accent-600); box-shadow: 0 10px 30px var(--accent-glow); }
.btn-primary:hover::after { transform: translateX(130%); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #2c261e; }
.btn-dark:hover svg { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(24,21,17,.03); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; transform: translateY(-1px); }
.btn-outline-light { background: transparent; color: var(--on-dark); border-color: var(--dark-line); }
.btn-outline-light:hover { border-color: var(--on-dark); }

.btn-lg { padding: 17px 32px; font-size: 1.02rem; }

/* --------------------------------- Navbar ----------------------------------- */
.nav-shell { position: fixed; inset: 0 0 auto 0; z-index: 50; padding: 16px 24px; transition: padding .35s var(--ease), transform .34s cubic-bezier(.22, .61, .36, 1); }
.nav-shell.scrolled { padding: 10px 24px; }
/* Wegschuiven: rustiger + gelijkmatig, en minder ver, zodat 'ie niet wegschiet */
.nav-shell.nav-hidden { transform: translateY(-112%); transition: padding .35s var(--ease), transform .5s cubic-bezier(.45, .05, .55, .95); }
.nav {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px 12px 20px;
  border-radius: 999px;
  background: var(--glass-light);
  border: 1px solid transparent;
  backdrop-filter: saturate(140%) blur(0px);
  transition: all .35s var(--ease);
}
.nav-shell.scrolled .nav {
  background: var(--glass-light);
  border-color: var(--glass-border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: saturate(160%) blur(14px);
}
.nav-logo { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.05rem; letter-spacing: -.02em; }
.nav-logo img { height: 30px; width: auto; }
.nav-logo span { white-space: nowrap; }
.nav-logo span small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 1px; white-space: nowrap; }
@media (max-width: 480px) {
  .nav-logo { font-size: .98rem; gap: 9px; }
  .nav-logo img { height: 26px; }
  .nav-logo span small { font-size: .56rem; letter-spacing: .12em; }
}
@media (max-width: 360px) { .nav-logo span small { display: none; } }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: .94rem; font-weight: 500; color: var(--body); padding: 9px 15px;
  transition: color .2s var(--ease); position: relative;
}
.nav-links a::after {
  content:""; position:absolute; left:15px; right:15px; bottom:5px; height:2px;
  background:var(--accent); border-radius:2px;
  transform: scaleX(0); transform-origin: left; transition: transform .32s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--ink); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 49; background: var(--paper);
  display: flex; flex-direction: column; padding: 100px 28px 40px;
  transform: translateY(-100%); opacity: 0; visibility: hidden;
  transition: transform .45s var(--ease), opacity .35s ease, visibility .35s;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-menu a { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.mobile-menu a:last-of-type { border: 0; }
.mobile-menu a.btn {
  margin-top: 24px; justify-content: center; font-family: var(--font-body);
  font-size: 1rem; border-bottom: 0; padding: 16px 26px;
}
.mobile-menu a.btn-primary { color: #fff; }

@media (max-width: 880px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* Mobile sticky CTA (injected by main.js) — only on phones, only after the hero */
.mobile-cta {
  position: fixed; left: 14px; right: 14px; bottom: 14px; z-index: 45;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 9px 9px 22px; border-radius: 999px;
  background: rgba(23, 20, 15, .92);
  -webkit-backdrop-filter: blur(12px) saturate(150%); backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid rgba(244, 239, 231, .14);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .30);
  transform: translateY(160%); opacity: 0;
  transition: transform .5s var(--ease), opacity .4s ease;
}
.mobile-cta.show { transform: translateY(0); opacity: 1; }
.mobile-cta .mc-text {
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--on-dark);
}
.mobile-cta .mc-ico {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: var(--accent); color: #fff; display: grid; place-items: center;
}
.mobile-cta .mc-ico svg { width: 19px; height: 19px; transition: transform .2s var(--ease); }
@media (max-width: 880px) { .mobile-cta { display: flex; } }

/* Subtiele tik-animatie bij klik op de mobiele CTA */
@keyframes mc-tap-pop { 0% { transform: scale(1); } 38% { transform: scale(.82); } 100% { transform: scale(1); } }
@keyframes mc-tap-arrow { 0% { transform: translateX(0); } 50% { transform: translateX(6px); } 100% { transform: translateX(0); } }
.mobile-cta.tapped { background: var(--dark-2); }
.mobile-cta.tapped .mc-ico { animation: mc-tap-pop .26s ease; }
.mobile-cta.tapped .mc-ico svg { animation: mc-tap-arrow .26s ease; }

/* Mobile-specific hero actions: full-width stacked buttons (not just shrunk) */
@media (max-width: 560px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* --------------------------------- Cards ------------------------------------ */
.card {
  background: var(--paper-3); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d8ccb8; }

.icon-badge {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-50); color: var(--accent); margin-bottom: 20px;
}
.icon-badge svg { width: 26px; height: 26px; }

/* Glass card (sparse use) */
.glass {
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.7);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow-md);
}

/* --------------------------------- Dark band -------------------------------- */
.dark-band { background: var(--dark); color: var(--on-dark); position: relative; overflow: hidden; }
.dark-band h1, .dark-band h2, .dark-band h3 { color: var(--on-dark); }
.dark-band .lead, .dark-band .muted { color: var(--on-dark-muted); }
.dark-band .eyebrow { color: var(--on-dark-muted); }
.glow {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; pointer-events: none;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}

/* --------------------------------- Misc ------------------------------------- */
.tag {
  display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 500;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--paper-3);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; }
.dot.pulse { animation: pulse 2s infinite; }

.divider { height: 1px; background: var(--line); border: 0; }

/* Stat */
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem,4vw,3.2rem); color: var(--ink); line-height: 1; letter-spacing: -.03em; }

/* Numbered list / steps */
.step-num {
  font-family: var(--font-serif); font-style: italic; font-size: 1.5rem; color: var(--accent);
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; flex: none;
}

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.05rem,1.6vw,1.25rem); color: var(--ink); }
.faq-icon { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: all .3s var(--ease); }
.faq-icon svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.faq-item.open .faq-icon { background: var(--accent); border-color: var(--accent); color: #fff; }
.faq-item.open .faq-icon svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a-inner { padding-bottom: 24px; color: var(--muted); max-width: 65ch; }

/* Form */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .9rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper-3);
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #a89e8e; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow);
}
.field textarea { resize: vertical; min-height: 130px; }

/* Form submit status (success / error) */
.form-status {
  margin-top: 18px; padding: 14px 16px; border-radius: 12px;
  background: var(--accent-50); color: var(--accent-600);
  font-weight: 600; text-align: center;
}
.form-status.is-error { background: #FBEAE6; color: #B3261E; }

/* Honeypot — hidden from people, catches bots */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Invalid field state + subtle shake when a required field is missed */
.field input.invalid, .field textarea.invalid, .field select.invalid,
.field.invalid input, .field.invalid textarea {
  border-color: #B3261E; box-shadow: 0 0 0 3px rgba(179, 38, 30, .12);
}
@keyframes field-shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-3px); }
  40%, 60% { transform: translateX(3px); }
}
.shake { animation: field-shake .45s ease both; }

/* Footer */
.footer { background: var(--dark); color: var(--on-dark); padding-top: 80px; position: relative; overflow: hidden; }
.footer a.f-link { color: var(--on-dark-muted); transition: color .2s; }
.footer a.f-link:hover { color: var(--on-dark); }
.footer-word {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.04em; line-height: .8;
  font-size: clamp(3.5rem, 16vw, 13rem); color: transparent;
  -webkit-text-stroke: 1px rgba(244,239,231,.14);
  user-select: none; white-space: nowrap;
}

/* --------------------------------- Animations ------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-l { opacity: 0; transform: translateX(-32px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-l.in { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; transform: scale(.96); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-scale.in { opacity: 1; transform: none; }
/* Mask-wipe: heading rises into view from behind a clip (hand-crafted feel) */
.reveal-mask {
  opacity: 0; clip-path: inset(0 0 105% 0); transform: translateY(6px); padding-bottom: .12em;
  transition: clip-path .95s var(--ease), opacity .7s var(--ease), transform .95s var(--ease);
}
.reveal-mask.in { opacity: 1; clip-path: inset(0 0 -10% 0); transform: none; }

@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 var(--accent-glow);} 50% { box-shadow: 0 0 0 6px transparent; } }
@keyframes float { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-12px);} }
@keyframes marquee { from { transform: translateX(0);} to { transform: translateX(-50%);} }
@keyframes drawline { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }

.float { animation: float 6s ease-in-out infinite; }

/* Marquee */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 56px; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--muted); display: flex; align-items: center; gap: 56px; }

/* Animated hero browser mock */
.browser {
  border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.browser-url { margin-left: 10px; font-size: .72rem; color: var(--muted); background: #fff; border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; font-family: var(--font-body); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-l, .reveal-scale, .reveal-mask { opacity: 1 !important; transform: none !important; transition: none !important; clip-path: none !important; }
  .float { animation: none; }
  .marquee-track { animation: none; }
  .dot.pulse { animation: none; }
  .shake { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* Utility */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Two-column blocks collapse on tablet/mobile */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr !important; gap: 48px !important; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .form-row { grid-template-columns: 1fr !important; }
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
}
