/* ═══════════════════════════════════════════════════════
   Van Kalsbeek Digital — colour system (light + dark)
   Light = brand navy #07234B from the logo
   Dark  = derived palette for dark backgrounds
   Theme is set via data-theme on <html> by script.js
   (localStorage, fallback: system preference).
   ═══════════════════════════════════════════════════════ */
:root {
  color-scheme: light;
  --navy:          #07234B;  /* brand — hero, contact, footer */
  --navy-deep:     #04142B;  /* footer */
  --primary:       #07234B;  /* solid accents (buttons, steps) */
  --primary-strong: #0B3168;
  --on-primary:    #FFFFFF;
  --accent:        #0E4C92;  /* links, labels, glyphs on light */
  --em-light:      #9FC0E8;  /* accent text on navy */

  --bg:            #FFFFFF;
  --bg-soft:       #F4F6FA;  /* alternating sections */
  --surface:       #FFFFFF;  /* cards */
  --surface-2:     #F7F9FC;  /* chips / hovers */
  --text:          #1B2534;
  --muted:         #5A6678;
  --line:          #E2E7EF;
  --heading:       var(--primary);
  --link:          var(--accent);
  --header-bg:     rgba(255,255,255,.82);
  --shadow:        0 14px 40px rgba(7,35,75,.09);

  --serif: 'DM Serif Display', Georgia, serif;
  --sans:  'DM Sans', system-ui, -apple-system, sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --navy:          #07234B;
  --navy-deep:     #050A12;
  --primary:       #2B5DA8;
  --primary-strong: #3E74BE;
  --on-primary:    #FFFFFF;
  --accent:        #8FB6E8;
  --em-light:      #A8C6EE;

  --bg:            #0A0F1C;
  --bg-soft:       #0F1728;
  --surface:       #131C30;
  --surface-2:     #1A2540;
  --text:          #E8EDF5;
  --muted:         #96A3BB;
  --line:          #26324D;
  --heading:       #F1F5FB;
  --link:          #8FB6E8;
  --header-bg:     rgba(10,15,28,.85);
  --shadow:        0 14px 40px rgba(0,0,0,.45);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .25s, color .25s;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--navy); color: #fff;
  padding: .6rem 1rem; border-radius: 4px; z-index: 200;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ── HEADER ── */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1120px; margin: 0 auto;
  padding: .75rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { width: 111px; height: auto; }
.brand-logo-dark { display: none; }
:root[data-theme="dark"] .brand-logo-light { display: none; }
:root[data-theme="dark"] .brand-logo-dark { display: block; }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a {
  text-decoration: none; color: var(--text);
  font-size: .9rem; font-weight: 500;
  padding: .5rem .85rem; border-radius: 6px;
  transition: color .18s, background .18s, transform .15s;
}
.nav a:hover { color: var(--heading); background: var(--surface-2); }
.nav a:active { transform: scale(.96); }
.nav a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.nav a.nav-cta {
  background: var(--primary); color: var(--on-primary); margin-left: .5rem;
  transition: background .18s;
}
.nav a.nav-cta:hover { background: var(--primary-strong); color: var(--on-primary); }
.nav a.active { color: var(--heading); font-weight: 600; }
.nav a.nav-cta.active { color: var(--on-primary); background: var(--primary-strong); }

.header-actions { display: flex; align-items: center; gap: .5rem; }

.theme-toggle {
  width: 40px; height: 40px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px;
  color: var(--heading); cursor: pointer;
  transition: background .18s, border-color .18s, color .18s, transform .15s;
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); }
.theme-toggle:active { transform: scale(.94); }
.theme-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 10px;
  background: none; border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
}
.nav-toggle:active { transform: scale(.94); }
.nav-toggle span { height: 2px; background: var(--heading); border-radius: 2px; transition: transform .25s, opacity .25s; }
.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-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ── HERO ── */
.hero {
  background: var(--navy);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem clamp(4rem, 8vw, 6rem);
  position: relative; overflow: hidden;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 400px at 15% -10%, rgba(255,255,255,.08), transparent 60%),
    radial-gradient(700px 350px at 90% 110%, rgba(255,255,255,.06), transparent 60%);
  pointer-events: none;
}
.hero-inner { max-width: 780px; margin: 0 auto; position: relative; z-index: 1; }

.hero-logo {
  width: min(356px, 82vw); height: auto;
  margin: 0 auto 2rem;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.25));
}

.eyebrow {
  display: inline-block;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.hero .eyebrow {
  color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.2);
  padding: .35rem .95rem; border-radius: 100px;
  margin-bottom: 1.8rem;
}

.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  line-height: 1.12;
  margin-bottom: 1.4rem;
  letter-spacing: .01em;
}
.hero h1 em { font-style: italic; color: var(--em-light); }

.hero-text {
  color: rgba(255,255,255,.75);
  font-size: 1.08rem; line-height: 1.75;
  max-width: 600px; margin: 0 auto 2.2rem;
}

.hero-actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: .9rem 1.9rem; border-radius: 8px;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.96); }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.btn-primary { background: #fff; color: var(--navy); box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.btn-primary:hover { background: #EAF1FB; }

.btn-ghost {
  color: #fff; border: 1px solid rgba(255,255,255,.35);
}
.btn-ghost:hover { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.08); }

.hero-meta {
  list-style: none; margin-top: 3rem;
  display: flex; justify-content: center; gap: 1.75rem; flex-wrap: wrap;
}
.hero-meta li {
  display: flex; align-items: center; gap: .45rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.65);
}
.hero-meta li::before { content: '✓'; color: var(--em-light); }

/* ── SECTIONS ── */
.section { max-width: 1120px; margin: 0 auto; padding: clamp(4rem, 8vw, 6.5rem) 1.5rem; }
.section-soft { background: var(--bg-soft); max-width: none; }

.section-head { max-width: 680px; margin-bottom: 3rem; }
.section-head .eyebrow { color: var(--accent); margin-bottom: .7rem; }
.section-head h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--heading); line-height: 1.2; margin-bottom: .9rem;
}
.section-intro { color: var(--muted); font-size: 1.02rem; line-height: 1.75; }

/* ── SERVICES ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.service-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 2rem 1.75rem;
  transition: box-shadow .25s, transform .25s, border-color .25s, background .25s;
}
.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: transparent;
}
.service-icon {
  width: 46px; height: 46px;
  background: var(--surface-2); color: var(--link);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.12rem; color: var(--heading); margin-bottom: .55rem; }
.service-card p { font-size: .9rem; color: var(--muted); line-height: 1.7; margin-bottom: 1.1rem; }

.tier-popular { position: relative; border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow); }
.tier-badge {
  position: absolute; top: -11px; right: 1.5rem;
  font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--on-primary); background: var(--primary);
  padding: .28rem .75rem; border-radius: 100px;
}
.concept-note {
  margin-top: 2rem; text-align: center;
  font-size: .95rem; font-weight: 500; color: var(--text);
}

/* ── PROCESS ── */
.steps {
  list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 2rem 1.75rem; transition: background .25s; }
.step-nr {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: var(--on-primary);
  font-family: var(--serif); font-size: 1.2rem;
  margin-bottom: 1.1rem;
}
.step h3 { font-size: 1.08rem; color: var(--heading); margin-bottom: .5rem; }
.step p { font-size: .9rem; color: var(--muted); line-height: 1.7; }

/* ── PORTFOLIO ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}
.project-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 2rem 1.75rem;
  transition: box-shadow .25s, transform .25s, border-color .25s, background .25s;
}
.project-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: transparent;
}
.project-featured { grid-column: span 2; }
.project-flag {
  display: inline-block;
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--link); background: var(--surface-2);
  padding: .28rem .7rem; border-radius: 100px;
  margin-bottom: .9rem;
}
.project-card h3 { font-size: 1.25rem; color: var(--heading); margin-bottom: .6rem; }
.project-card p { font-size: .92rem; color: var(--muted); line-height: 1.7; margin-bottom: 1.1rem; }
.project-links a {
  display: inline-flex; align-items: center; gap: .35rem;
  font-weight: 600; font-size: .92rem; color: var(--link);
  text-decoration: none;
}
.project-links a:active { transform: scale(.96); }
.project-links a::after {
  content: ''; display: block; height: 2px; width: 0;
  background: var(--link); transition: width .25s;
}
.project-links a:hover::after { width: 100%; }
.project-links a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 2px; }

/* ── ABOUT ── */
.about-grid {
  max-width: 1120px; margin: 0 auto;
  padding: clamp(4rem, 8vw, 6.5rem) 1.5rem;
  display: grid; grid-template-columns: 1fr; gap: 3.5rem; align-items: center;
}
.about-text { max-width: 680px; }
.about-text .eyebrow { color: var(--accent); }
.about-text h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--heading); margin-bottom: 1.1rem;
}
.about-text p { color: var(--muted); line-height: 1.8; font-size: .98rem; margin-bottom: 1.1rem; }

/* ── CONTACT ── */
.contact-section {
  background: var(--navy); color: #fff;
  padding: clamp(4rem, 8vw, 6.5rem) 1.5rem;
}
.contact-inner {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 3.5rem; align-items: start;
}
.contact-head .eyebrow { color: var(--em-light); }
.contact-head h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2; margin-bottom: 1rem;
}
.contact-head p { color: rgba(255,255,255,.7); line-height: 1.75; margin-bottom: 2rem; max-width: 520px; }

.btn-accent { background: #fff; color: var(--navy); box-shadow: 0 6px 24px rgba(0,0,0,.3); }
.btn-accent:hover { background: #EAF1FB; }

.contact-details { display: flex; flex-direction: column; gap: 1.1rem; }
.contact-item {
  display: flex; gap: 1rem; align-items: center;
  text-decoration: none; color: inherit;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px; padding: 1rem 1.25rem;
  transition: background .2s, border-color .2s;
}
a.contact-item:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); }
a.contact-item:focus-visible { outline: 2px solid var(--em-light); outline-offset: 2px; }
.contact-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: rgba(255,255,255,.08); border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}
.contact-icon svg { width: 21px; height: 21px; }
.contact-item > span:not(.contact-links) { display: flex; flex-direction: column; gap: .05rem; }
.contact-label {
  font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--em-light);
}
.contact-value { font-size: .95rem; color: rgba(255,255,255,.9); }
.contact-links { flex-direction: row; gap: .5rem; }
.contact-links a { color: rgba(255,255,255,.9); text-decoration: none; }
.contact-links a:hover { color: #fff; text-decoration: underline; }

/* ── FOOTER ── */
.footer {
  background: var(--navy-deep); color: rgba(255,255,255,.45);
  text-align: center; padding: 2.5rem 1.5rem;
  font-size: .82rem;
}
:root[data-theme="dark"] .footer { border-top: 1px solid var(--line); }
.footer-brand {
  font-family: var(--serif); color: rgba(255,255,255,.85);
  font-size: 1.05rem; margin-bottom: .35rem;
}
.footer-links { margin-top: .8rem; }
.footer-links a {
  color: rgba(255,255,255,.6); text-decoration: none;
  font-size: .82rem;
}
.footer-links a:hover { color: #fff; text-decoration: underline; }

/* ── LEGAL (privacy & voorwaarden) ── */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(3rem, 6vw, 5rem) 1.5rem; }
.legal h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  color: var(--heading); line-height: 1.2; margin: .4rem 0;
}
.legal-updated { color: var(--muted); font-size: .85rem; margin-bottom: 2rem; }
.legal-nav {
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem;
  margin-bottom: 3rem; padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.legal-nav a { color: var(--link); font-weight: 600; text-decoration: none; font-size: .9rem; }
.legal-nav a:hover { text-decoration: underline; }
.legal h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.5rem; color: var(--heading); margin: 3rem 0 1rem;
}
.legal h3 { font-size: 1rem; color: var(--heading); margin: 1.5rem 0 .5rem; }
.legal p, .legal li { color: var(--muted); line-height: 1.75; font-size: .95rem; }
.legal p { margin-bottom: 1rem; }
.legal ul, .legal ol { margin: 0 0 1rem 1.25rem; }
.legal a { color: var(--link); }

/* ── REVEAL ──
   Only hidden when JS is active; without JS the content stays visible. */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease-out, transform .6s ease-out; }
html.js .reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .service-card, .project-card, .step { transition: none; }
}

/* ── RESPONSIVE ── */
@media (min-width: 900px) {
  .contact-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .25rem;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: .75rem 1.25rem 1.25rem;
    display: none;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 1rem; border-radius: 8px; }
  .nav a.nav-cta { margin-left: 0; margin-top: .5rem; text-align: center; }
  .nav-toggle { display: flex; }
  .project-featured { grid-column: span 1; }
}
