/* ==========================================================================
   Van den Bogaart Gevelrenovatie — design system
   Identity-preserving: navy structure + orange action, real project photos.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Structural navy ramp */
  --ink-900: oklch(0.22 0.028 248);
  --ink-850: oklch(0.25 0.029 248);
  --ink-800: oklch(0.28 0.030 248);
  --ink-700: oklch(0.36 0.030 248);
  --ink-600: oklch(0.50 0.022 248);
  --ink-500: oklch(0.62 0.018 248);

  /* Action orange ramp */
  --accent-700: oklch(0.56 0.155 45);
  --accent-600: oklch(0.62 0.165 47);
  --accent-500: oklch(0.70 0.170 49);
  --accent-300: oklch(0.83 0.110 58);
  --accent-100: oklch(0.95 0.038 62);

  /* Neutrals */
  --bg:        oklch(0.985 0.002 250);
  --surface:   oklch(0.965 0.004 250);
  --surface-2: oklch(0.945 0.005 250);
  --line:      oklch(0.90 0.004 250);
  --line-2:    oklch(0.84 0.005 250);
  --white:     #ffffff;
  --text:      oklch(0.27 0.010 250);
  --text-muted:oklch(0.46 0.012 250);
  --on-dark:        oklch(0.97 0.004 250);
  --on-dark-muted:  oklch(0.78 0.010 250);

  /* Feedback */
  --success: oklch(0.60 0.14 150);
  --success-bg: oklch(0.95 0.04 150);
  --error:   oklch(0.57 0.20 27);
  --error-bg: oklch(0.96 0.03 27);

  /* Type */
  --font-display: 'Archivo Expanded', 'Archivo', system-ui, sans-serif;
  --font-sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --step--1: clamp(0.83rem, 0.79rem + 0.18vw, 0.92rem);
  --step-0:  clamp(1rem, 0.95rem + 0.22vw, 1.125rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2:  clamp(1.45rem, 1.28rem + 0.85vw, 1.95rem);
  --step-3:  clamp(1.8rem, 1.5rem + 1.5vw, 2.7rem);
  --step-4:  clamp(2.2rem, 1.75rem + 2.3vw, 3.6rem);
  --step-5:  clamp(2.7rem, 2.0rem + 3.4vw, 5rem);

  /* Spacing */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4rem;
  --sp-9: 6rem; --sp-10: 8rem;
  --section-y: clamp(3.5rem, 8vw, 7rem);
  --container: 1200px;
  --container-narrow: 920px;

  --radius: 6px;
  --radius-lg: 12px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px oklch(0.22 0.028 248 / 0.06), 0 1px 1px oklch(0.22 0.028 248 / 0.04);
  --shadow-md: 0 4px 14px oklch(0.22 0.028 248 / 0.08), 0 2px 4px oklch(0.22 0.028 248 / 0.05);
  --shadow-lg: 0 18px 50px oklch(0.22 0.028 248 / 0.16), 0 6px 16px oklch(0.22 0.028 248 / 0.08);

  /* z-index scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-backdrop: 300;
  --z-modal: 400;
  --z-toast: 500;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);       /* quint-ish */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.62;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible {
  outline: 3px solid var(--accent-500);
  outline-offset: 2px;
  border-radius: 3px;
}
::selection { background: var(--accent-300); color: var(--ink-900); }

h1, h2, h3, h4 { line-height: 1.08; font-weight: 800; color: var(--ink-900); text-wrap: balance; letter-spacing: -0.02em; }
h1 { font-family: var(--font-display); font-size: var(--step-5); letter-spacing: -0.025em; }
h2 { font-family: var(--font-display); font-size: var(--step-4); }
h3 { font-size: var(--step-2); letter-spacing: -0.015em; }
h4 { font-size: var(--step-1); letter-spacing: -0.01em; }
p { text-wrap: pretty; }

/* ---------- Layout helpers ---------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container-narrow { width: min(100% - 2.5rem, var(--container-narrow)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--surface { background: var(--surface); }
.section--ink { background: var(--ink-900); color: var(--on-dark); }
.section--ink h2, .section--ink h3 { color: var(--white); }
.measure { max-width: 65ch; }
.center { text-align: center; margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: var(--step--1); font-weight: 700; letter-spacing: 0.02em;
  color: var(--accent-700);
}
.section--ink .eyebrow, .page-hero .eyebrow, .cta-band .eyebrow { color: var(--accent-300); }
.eyebrow::before { content: ""; width: 1.75rem; height: 2px; background: currentColor; border-radius: 2px; }

.lead { font-size: var(--step-1); color: var(--text-muted); line-height: 1.55; }
.section--ink .lead { color: var(--on-dark-muted); }

.stack > * + * { margin-top: var(--sp-4); }
.stack-lg > * + * { margin-top: var(--sp-6); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--accent-500);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-weight: 700; font-size: var(--step-0); letter-spacing: -0.005em;
  padding: 0.85rem 1.5rem; min-height: 48px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 2px solid transparent; border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.18s var(--ease-out), background-color 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
  box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--accent-600); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 1.05rem 1.9rem; font-size: var(--step-1); min-height: 56px; }
.btn--block { width: 100%; }

.btn--ghost {
  background: transparent; color: var(--ink-900);
  border-color: var(--line-2); box-shadow: none;
}
.btn--ghost:hover { background: var(--white); border-color: var(--ink-900); box-shadow: var(--shadow-sm); }
.section--ink .btn--ghost, .hero .btn--ghost, .page-hero .btn--ghost, .cta-band .btn--ghost { color: #fff; border-color: oklch(1 0 0 / 0.4); }
.section--ink .btn--ghost:hover, .hero .btn--ghost:hover, .page-hero .btn--ghost:hover, .cta-band .btn--ghost:hover { background: oklch(1 0 0 / 0.08); border-color: #fff; }

.btn svg { width: 1.1em; height: 1.1em; flex: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-4); align-items: center; }

/* Inline text link */
.link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 700; color: var(--accent-700);
  border-bottom: 2px solid transparent; padding-bottom: 1px;
  transition: gap 0.18s var(--ease-out), border-color 0.18s var(--ease-out);
}
.link:hover { border-color: currentColor; gap: 0.65rem; }
.link svg { width: 1em; height: 1em; transition: transform 0.18s var(--ease-out); }
.link:hover svg { transform: translateX(2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: oklch(1 0 0 / 0.92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease-out);
}
.site-header[data-scrolled="true"] { box-shadow: var(--shadow-md); }
.header-inner {
  display: flex; align-items: center; gap: var(--sp-5);
  min-height: 72px; padding-block: 0.6rem;
}
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: 0.25rem; margin-inline: auto; }
.nav a {
  padding: 0.55rem 0.8rem; border-radius: var(--radius);
  font-weight: 600; font-size: 0.97rem; color: var(--ink-800);
  transition: color 0.15s, background-color 0.15s;
}
.nav a:hover { color: var(--accent-700); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--accent-700); }
.header-actions { display: flex; align-items: center; gap: var(--sp-3); flex: none; }
.header-phone {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 800; font-size: 1.02rem; color: var(--ink-900);
  padding: 0.5rem 0.5rem;
}
.header-phone svg { width: 1.2rem; height: 1.2rem; color: var(--accent-600); }
.header-phone:hover { color: var(--accent-700); }

.nav-toggle {
  display: none; flex: none;
  width: 48px; height: 48px; border: 1px solid var(--line-2);
  background: var(--white); border-radius: var(--radius); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; }

/* Mobile menu (full-screen navy) */
.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-modal);
  background: var(--ink-900); color: var(--on-dark);
  display: flex; flex-direction: column;
  padding: 1.25rem;
  transform: translateY(-100%); visibility: hidden;
  transition: transform 0.4s var(--ease-out-expo), visibility 0.4s;
  overflow-y: auto;
}
.mobile-menu[data-open="true"] { transform: translateY(0); visibility: visible; }
.mobile-menu-top { display: flex; align-items: center; justify-content: space-between; }
.mobile-menu-top .brand { background: #fff; padding: 0.35rem 0.6rem; border-radius: var(--radius); }
.mobile-close {
  width: 48px; height: 48px; border: 1px solid oklch(1 0 0 / 0.25);
  background: transparent; color: #fff; border-radius: var(--radius); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.mobile-nav { display: flex; flex-direction: column; margin-top: 1.5rem; gap: 0.15rem; }
.mobile-nav a {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
  padding: 0.7rem 0.25rem; border-bottom: 1px solid var(--ink-700);
}
.mobile-nav a:hover, .mobile-nav a[aria-current="page"] { color: var(--accent-300); }
.mobile-menu-actions { margin-top: auto; padding-top: 1.5rem; display: grid; gap: 0.75rem; }
.mobile-phone {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 52px; border: 1px solid oklch(1 0 0 / 0.25); border-radius: var(--radius);
  font-weight: 700; font-size: 1.1rem;
}
.mobile-phone svg { width: 1.2rem; height: 1.2rem; color: var(--accent-300); }
body.menu-open { overflow: hidden; }

/* ---------- Rating chip ---------- */
.rating {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: var(--step--1);
}
.rating .stars { display: inline-flex; gap: 1px; color: var(--accent-500); }
.rating .stars svg { width: 1.05rem; height: 1.05rem; }
.rating strong { font-weight: 800; color: inherit; }
.rating .rating-count { color: var(--text-muted); }
.section--ink .rating .rating-count, .hero .rating .rating-count { color: var(--on-dark-muted); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink-900); color: var(--on-dark);
  padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 85% -10%, oklch(0.70 0.170 49 / 0.16), transparent 55%),
    radial-gradient(90% 80% at -10% 110%, oklch(0.36 0.030 248 / 0.5), transparent 60%);
}
.hero > * { position: relative; z-index: 1; }
.hero-grid {
  display: grid; gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 940px) {
  .hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); }
}
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--accent-300); }
.hero-sub { font-size: var(--step-1); color: var(--on-dark-muted); max-width: 34ch; margin-top: 1.1rem; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.4rem; }
.pill {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.4rem 0.85rem; border-radius: var(--radius-pill);
  background: oklch(1 0 0 / 0.07); border: 1px solid oklch(1 0 0 / 0.14);
  font-size: var(--step--1); font-weight: 600; color: var(--on-dark);
}
.pill svg { width: 1rem; height: 1rem; color: var(--accent-300); flex: none; }
.hero .btn-row { margin-top: 1.8rem; }
.hero-rating { margin-top: 1.5rem; }

/* ---------- Voor / na slider ---------- */
.compare-wrap { display: flex; flex-direction: column; gap: 0.9rem; }
.compare {
  position: relative; width: 100%; aspect-ratio: 1450 / 1200;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--ink-800);
  touch-action: pan-y; user-select: none;
  isolation: isolate;
}
.compare img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; pointer-events: none;
}
.compare .after { z-index: 1; }
.compare .before-clip {
  position: absolute; inset: 0; z-index: 2; overflow: hidden;
  width: var(--pos, 50%);
}
.compare .before-clip img { width: 100%; }
.compare .before-clip { /* keep before image at full slide width */ }
.compare .before-clip > img {
  position: absolute; inset: 0; height: 100%;
  width: var(--compare-w, 100%);
  max-width: none;
}
.compare-tag {
  position: absolute; top: 0.8rem; z-index: 3;
  font-size: var(--step--1); font-weight: 800; letter-spacing: 0.03em;
  text-transform: uppercase; color: #fff;
  padding: 0.3rem 0.7rem; border-radius: var(--radius);
  background: oklch(0.22 0.028 248 / 0.8); backdrop-filter: blur(4px);
}
.compare-tag.voor { left: 0.8rem; }
.compare-tag.na { right: 0.8rem; background: oklch(0.56 0.155 45 / 0.92); }
.compare-handle {
  position: absolute; top: 0; bottom: 0; z-index: 4;
  left: var(--pos, 50%); transform: translateX(-50%);
  width: 44px; display: flex; align-items: center; justify-content: center;
  cursor: ew-resize; background: transparent; border: 0; padding: 0;
}
.compare-handle::before { /* vertical line */
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 3px; transform: translateX(-50%); background: #fff;
  box-shadow: 0 0 0 1px oklch(0.22 0.028 248 / 0.25);
}
.compare-knob {
  position: relative; z-index: 1;
  width: 46px; height: 46px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-900);
}
.compare-knob svg { width: 26px; height: 26px; }
.compare-handle:focus-visible { outline: none; }
.compare-handle:focus-visible .compare-knob { outline: 3px solid var(--accent-500); outline-offset: 3px; }
.compare-hint {
  position: absolute; left: 50%; bottom: 0.9rem; z-index: 3;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; font-weight: 600; color: #fff;
  padding: 0.3rem 0.7rem; border-radius: var(--radius-pill);
  background: oklch(0.22 0.028 248 / 0.72); backdrop-filter: blur(4px);
  transition: opacity 0.4s var(--ease-out);
  pointer-events: none;
}
.compare[data-touched="true"] .compare-hint { opacity: 0; }
.compare-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 1.25rem;
}
.compare-cta p { font-weight: 700; color: var(--ink-900); font-size: var(--step-1); }
.section--ink .compare-cta p, .hero .compare-cta p { color: #fff; }

/* No-JS fallback: stack both images */
.no-js .compare-handle, .no-js .compare-hint { display: none; }
.no-js .compare .before-clip { width: 50% !important; }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--ink-850); color: var(--on-dark); border-block: 1px solid var(--ink-700); }
.trust-strip ul {
  list-style: none; padding: 0.9rem 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: center;
}
.trust-strip li { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 600; font-size: var(--step--1); }
.trust-strip svg { width: 1.15rem; height: 1.15rem; color: var(--accent-300); flex: none; }
@media (max-width: 720px) {
  .trust-strip ul { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; gap: 1.4rem; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .trust-strip ul::-webkit-scrollbar { display: none; }
  .trust-strip li { white-space: nowrap; }
}

/* ---------- Section header ---------- */
.section-head { max-width: 56ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; }
.section-head .lead { margin-top: 0.9rem; }

/* ---------- Services ---------- */
.service-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.service-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out), border-color 0.22s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.service-card .media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.service-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.service-card:hover .media img { transform: scale(1.05); }
.service-card .body { padding: 1.3rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.service-card h3 { font-size: var(--step-1); }
.service-card p { color: var(--text-muted); font-size: 0.98rem; }
.service-card .link { margin-top: auto; padding-top: 0.4rem; }

/* Compact service list (icon + text), used where photos don't fit */
.feature-grid {
  display: grid; gap: 1.5rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.feature { display: flex; gap: 0.9rem; }
.feature .ico {
  flex: none; width: 46px; height: 46px; border-radius: var(--radius);
  display: grid; place-items: center;
  background: var(--accent-100); color: var(--accent-700);
}
.section--ink .feature .ico { background: oklch(1 0 0 / 0.08); color: var(--accent-300); }
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: var(--step-1); margin-bottom: 0.3rem; }
.feature p { color: var(--text-muted); font-size: 0.97rem; }
.section--ink .feature p { color: var(--on-dark-muted); }

/* ---------- Split feature ---------- */
.split { display: grid; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } .split.reverse .split-media { order: -1; } }
.split-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.split-media { position: relative; }

/* image badge (e.g. "echte projectfoto") */
.img-badge {
  position: absolute; left: 1rem; bottom: 1rem;
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: oklch(0.22 0.028 248 / 0.85); color: #fff; backdrop-filter: blur(4px);
  font-size: 0.78rem; font-weight: 600; padding: 0.35rem 0.7rem; border-radius: var(--radius);
}
.img-badge svg { width: 0.95rem; height: 0.95rem; color: var(--accent-300); }

/* ---------- Stats ---------- */
.stats { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat { text-align: left; }
.stat .num { font-family: var(--font-display); font-size: var(--step-4); font-weight: 800; color: var(--accent-300); line-height: 1; letter-spacing: -0.03em; }
.section:not(.section--ink) .stat .num { color: var(--accent-700); }
.stat .lbl { margin-top: 0.5rem; font-weight: 600; color: var(--on-dark-muted); }
.section:not(.section--ink) .stat .lbl { color: var(--text-muted); }

/* ---------- Reviews ---------- */
.review-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.review-score { display: flex; align-items: center; gap: 0.9rem; }
.review-score .big { font-family: var(--font-display); font-size: var(--step-3); font-weight: 800; color: var(--ink-900); line-height: 1; }
.section--ink .review-score .big { color: #fff; }
.review-score .stars { display: inline-flex; color: var(--accent-500); }
.review-score .stars svg { width: 1.3rem; height: 1.3rem; }
.review-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.review {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.5rem; display: flex; flex-direction: column; gap: 0.9rem;
}
.section--ink .review { background: var(--ink-800); border-color: var(--ink-700); color: var(--on-dark); }
.review .stars { display: inline-flex; gap: 1px; color: var(--accent-500); }
.review .stars svg { width: 1.05rem; height: 1.05rem; }
.review blockquote { font-size: 1.05rem; line-height: 1.55; color: var(--text); }
.section--ink .review blockquote { color: var(--on-dark); }
.review .who { display: flex; align-items: center; gap: 0.7rem; margin-top: auto; }
.review .avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: var(--accent-100); color: var(--accent-700);
  display: grid; place-items: center; font-weight: 800; font-size: 0.95rem;
}
.section--ink .review .avatar { background: var(--ink-700); color: #fff; }
.review .who .name { font-weight: 700; font-size: 0.95rem; }
.review .who .meta { font-size: 0.82rem; color: var(--text-muted); }
.section--ink .review .who .meta { color: var(--on-dark-muted); }

/* ---------- Projects ---------- */
.project-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.project {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4 / 3; box-shadow: var(--shadow-sm);
}
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.project:hover img { transform: scale(1.05); }
.project .cap {
  position: absolute; inset: auto 0 0 0; padding: 1.4rem 1.1rem 1.1rem;
  background: linear-gradient(to top, oklch(0.18 0.025 248 / 0.92), transparent);
  color: #fff;
}
.project .cap .t { font-weight: 800; font-size: 1.05rem; }
.project .cap .s { font-size: 0.85rem; color: oklch(0.9 0.01 250); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; color: #fff;
  background: var(--ink-900);
}
.cta-band .bg {
  position: absolute; inset: 0; z-index: 0; object-fit: cover; width: 100%; height: 100%;
  opacity: 0.28;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, oklch(0.20 0.028 248 / 0.94) 30%, oklch(0.20 0.028 248 / 0.6));
}
.cta-band > .container { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.form-grid { display: grid; gap: 1.1rem 1.25rem; grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field.col-2 { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } .field.col-2 { grid-column: auto; } }
.field label { font-weight: 700; font-size: 0.92rem; color: var(--ink-900); }
.field .req { color: var(--accent-700); }
.field .hint { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; padding: 0.8rem 0.9rem; min-height: 48px;
  background: var(--bg); border: 1.5px solid var(--line-2); border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent-500);
  box-shadow: 0 0 0 3px oklch(0.70 0.170 49 / 0.18);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-500); }
.field[data-invalid="true"] input, .field[data-invalid="true"] textarea { border-color: var(--error); }
.field .error-msg { font-size: 0.82rem; color: var(--error); font-weight: 600; display: none; }
.field[data-invalid="true"] .error-msg { display: block; }
.form-foot { margin-top: 1.4rem; display: flex; flex-direction: column; gap: 0.8rem; }
.form-note { font-size: 0.85rem; color: var(--text-muted); display: flex; gap: 0.5rem; align-items: flex-start; }
.form-note svg { width: 1.1rem; height: 1.1rem; flex: none; color: var(--success); margin-top: 1px; }
.form-success {
  display: none; gap: 0.9rem; align-items: flex-start;
  background: var(--success-bg); border: 1px solid oklch(0.60 0.14 150 / 0.4);
  border-radius: var(--radius); padding: 1.1rem 1.25rem; color: oklch(0.35 0.10 150);
}
.form-success svg { width: 1.5rem; height: 1.5rem; flex: none; color: var(--success); }
.form-success[data-show="true"] { display: flex; }
.form-success strong { display: block; font-size: 1.05rem; color: oklch(0.30 0.10 150); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.75rem; max-width: 800px; }
.faq details {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 1.25rem;
}
.faq details[open] { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.1rem 0; font-weight: 700; color: var(--ink-900);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { flex: none; width: 1.4rem; height: 1.4rem; color: var(--accent-600); transition: transform 0.25s var(--ease-out); }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq .faq-body { padding-bottom: 1.2rem; color: var(--text-muted); }
.faq .faq-body p + p { margin-top: 0.6rem; }

/* ---------- Breadcrumb ---------- */
.crumb { font-size: 0.85rem; color: var(--on-dark-muted); display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.crumb svg { width: 0.9rem; height: 0.9rem; flex: none; opacity: 0.6; }
.crumb a:hover { color: #fff; }
.crumb span[aria-current] { color: var(--accent-300); }

/* page hero (interior) */
.page-hero { background: var(--ink-900); color: var(--on-dark); padding-block: clamp(2.5rem, 5vw, 4rem); position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 80% at 90% -20%, oklch(0.70 0.170 49 / 0.14), transparent 60%);
}
.page-hero > * { position: relative; }
.page-hero h1 { color: #fff; max-width: 18ch; margin-top: 0.8rem; }
.page-hero .lead { margin-top: 1.1rem; max-width: 56ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: var(--on-dark-muted); padding-top: var(--section-y); }
.footer-grid {
  display: grid; gap: 2.5rem 2rem;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 52px; background: #fff; padding: 0.5rem 0.7rem; border-radius: var(--radius); }
.footer-brand p { margin-top: 1rem; max-width: 32ch; font-size: 0.95rem; }
.footer-col h4 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 0.55rem; }
.footer-col a:hover { color: var(--accent-300); }
.footer-contact li { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 0.7rem; font-size: 0.95rem; }
.footer-contact svg { width: 1.1rem; height: 1.1rem; flex: none; color: var(--accent-300); margin-top: 3px; }
.footer-contact a { color: #fff; font-weight: 600; }
.footer-bottom {
  margin-top: var(--section-y); border-top: 1px solid var(--ink-700);
  padding-block: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  justify-content: space-between; font-size: 0.85rem;
}

/* ---------- Reveal motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); will-change: opacity, transform; }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .service-card:hover, .project:hover img, .service-card:hover .media img { transform: none; }
  * { animation: none !important; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Utilities ---------- */
.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: -120px; z-index: var(--z-toast);
  background: var(--accent-500); color: #fff; padding: 0.7rem 1.1rem; border-radius: var(--radius);
  font-weight: 700; transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }
.mt-0 { margin-top: 0; }
.text-accent { color: var(--accent-700); }

/* ---------- Header responsive ---------- */
@media (max-width: 1040px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-phone span.lbl { display: none; }
}
@media (max-width: 560px) {
  .header-actions .btn span.lbl { display: none; }
  .header-actions .btn { padding-inline: 0.85rem; }
  .header-phone { display: none; }
}
