/* ============================================================
   Excent Administratiekantoor — Design System
   Brand colors are derived exclusively from Phase 1 pixel/CSS
   extraction (see /source/INVENTORY.md): #21B7DD, #F1921D,
   #333333, #747474, #878787. All other tones below are computed
   tints/shades of those verified values, not new brand colors.

   Color roles are split deliberately into DECORATIVE and
   ACCESSIBLE-TEXT variants. The bright brand blue/orange read
   under WCAG AA (4.5:1) at small text sizes — verified by
   contrast calculation, not assumption — so they're restricted
   to icons, borders, backgrounds and large graphical elements.
   Darker computed shades carry all actual link/label/small text.
   ============================================================ */

:root {
  /* Verified brand hues — decorative use only (icons, borders,
     background tints, large graphical elements, ≥3:1 contexts) */
  --color-blue: #21B7DD;
  --color-blue-mid: #198CA9;     /* computed shade — decorative icon accents, hover fills, meaningful borders (3.9:1) */
  --color-blue-deep: #063D4C;    /* computed shade — dark sections, headings (11.8:1 on white) */
  --color-blue-tint: #F2FBFD;    /* computed tint — section backgrounds */
  --color-blue-border: #D7F2F9;  /* computed tint — dividers/borders */

  /* Accessible text-link blue — computed shade, 7.6:1 on white */
  --color-blue-text: #0A5C70;

  --color-orange: #F1921D;       /* verified accent — CTA backgrounds, icon fills, large graphics only */
  --color-orange-dark: #D0790D;  /* computed shade — button hover background */
  --color-orange-tint: #FEF7EF;  /* computed tint — sparing accent backgrounds */

  /* Accessible orange text — computed shade, 6.1:1 on white, used
     for eyebrows, required-marks, and any small orange-toned text */
  --color-orange-text: #95500A;

  --color-ink: #333333;          /* verified neutral — headings & primary text (12.6:1) */
  --color-ink-secondary: #5B6469;/* body copy (6.1:1) */
  --color-ink-muted: #6B6B6B;    /* meta text, footer helper text, breadcrumbs (5.1–5.3:1 on all section backgrounds) */
  --color-ink-faint: #878787;    /* decorative-only tint (dividers, disabled icons) — never used for text */

  --color-canvas: #FFFFFF;
  --color-canvas-soft: #FAFAFA;
  --color-border: #E4E7E8;

  /* Typography */
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "DM Sans", "Segoe UI", sans-serif;

  /* Spacing scale */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Layout */
  --container-width: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-soft: 0 4px 20px rgba(6, 61, 76, 0.07);
  --shadow-medium: 0 12px 40px rgba(6, 61, 76, 0.12);
  --transition: 200ms ease;
}

/* ============================================================
   Reset & base
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* `clip` (not `hidden`) — `overflow-x: hidden` forces overflow-y to
     compute to `auto`, turning html/body into a scroll container and
     breaking position:sticky's reference to the real viewport. */
  overflow-x: clip;
  width: 100%;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-ink-secondary);
  background: var(--color-canvas);
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
svg { flex-shrink: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-blue-deep);
  line-height: 1.2;
  margin: 0 0 var(--space-sm);
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin: 0 0 var(--space-sm); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--color-blue-text);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
a:hover { color: var(--color-blue-deep); }

ul, ol { padding-left: 1.25em; }

button { font-family: inherit; }

/* Focus visibility everywhere — WCAG 2.2. Default assumes a light
   background (the common case) and meets 3:1 non-text contrast;
   dark sections override to the brighter brand orange, which meets
   3:1 against the dark blue instead. */
:focus-visible {
  outline: 3px solid var(--color-orange-text);
  outline-offset: 2px;
  border-radius: 2px;
}
.section--deep :focus-visible,
.final-cta :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--color-orange);
}

/* ============================================================
   Utilities
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.visually-hidden {
  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;
  top: -100px;
  left: var(--space-sm);
  background: var(--color-blue-deep);
  color: #fff;
  padding: var(--space-2xs) var(--space-sm);
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top var(--transition);
}
.skip-link:focus {
  top: var(--space-sm);
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-orange-text);
  margin-bottom: var(--space-sm);
}
.eyebrow--blue { color: var(--color-blue-text); }

.section {
  padding-block: var(--space-2xl);
}
.section--soft { background: var(--color-canvas-soft); }
.section--tint { background: var(--color-blue-tint); }
.section--deep {
  background: var(--color-blue-deep);
  color: rgba(255,255,255,0.86);
}
.section--deep h2, .section--deep h3 { color: #fff; }

/* Internal pages use a slightly more compact rhythm than the
   homepage, per the requested 72–80 / 56–64 / 40–48px scale. */
.section--compact { padding-block: 4.75rem; }
@media (max-width: 1024px) {
  .section--compact { padding-block: 3.75rem; }
}
@media (max-width: 600px) {
  .section--compact { padding-block: 2.75rem; }
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-xl);
}
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--divider { margin-top: var(--space-2xl); }
.section--compact .section-head { margin-bottom: var(--space-lg); }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  min-height: 44px;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--color-orange);
  color: #241300;
}
.btn--primary:hover { background: var(--color-orange-dark); color: #241300; }

.btn--secondary {
  background: transparent;
  border-color: var(--color-blue-deep);
  color: var(--color-blue-deep);
}
.btn--secondary:hover {
  background: var(--color-blue-deep);
  color: #fff;
}

.btn--on-dark {
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.btn--on-dark:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  color: #fff;
}

.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 600;
  color: var(--color-blue-text);
  text-decoration: none;
}
.link-arrow svg { transition: transform var(--transition); }
.link-arrow:hover svg { transform: translateX(3px); }
.link-arrow:hover { color: var(--color-blue-deep); }
.link-arrow--spaced { margin-top: var(--space-md); }

/* ============================================================
   Header & navigation
   ============================================================ */

/* Floating nav: sits flush against the top of the viewport (no gap
   above it, before or after scrolling — top/margin are both 0 so
   there's no jump when it "sticks"), inset from the left/right page
   edges, with a frosted-glass background. -webkit-backdrop-filter is
   required for Safari; the solid fallback background keeps it fully
   legible in browsers without backdrop-filter support. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  width: calc(100% - 2rem);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-medium);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: var(--color-canvas); }
}
/* The header's own inner row still aligns to the same 1200px content
   column via .container below, so nav/logo/CTA line up with the page
   content beneath it even though the floating card itself spans the
   full viewport width. */

.header-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: 0.7rem;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand img { height: 36px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: inline-block;
  color: var(--color-ink);
  font-weight: 500;
  font-size: 0.96rem;
  text-decoration: none;
  white-space: nowrap;
  padding: 0.5rem 0.1rem;
  border-bottom: 2px solid transparent;
}
.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--color-blue-deep);
  border-bottom-color: var(--color-orange);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: var(--color-ink);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone svg { color: var(--color-blue); }
.header-phone:hover { color: var(--color-blue-deep); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--color-ink);
  flex-shrink: 0;
}

.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Large desktop (~1180px+): logo, full nav, phone and full CTA
   all fit on one line — verified by measuring actual content width
   (logo ~210px + 5 nav links ~500px + phone ~150px + CTA ~230px
   + container padding comfortably needs ~1150-1200px). */

/* Medium desktop / tablet landscape (1020–1179px): drop the phone
   number from the header to free up room; keep the full nav and
   full CTA text on one line. The phone is still one click away in
   the footer and on the contact page. */
@media (max-width: 1179px) {
  .header-phone.desktop-only { display: none; }
}

/* Below ~1020px there isn't reliably enough room for five nav
   labels (particularly "Voor ondernemers") plus a CTA button
   without wrapping — switch to the mobile menu here. */
@media (max-width: 1019px) {
  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(340px, 86vw);
    height: 100vh;
    background: var(--color-canvas);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 5.5rem var(--space-lg) var(--space-lg);
    box-shadow: var(--shadow-medium);
    transform: translateX(100%);
    transition: transform 260ms ease;
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateX(0); }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-list a {
    display: block;
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 1.05rem;
    white-space: normal;
  }
  .nav-list a[aria-current="page"] { border-bottom-color: var(--color-border); }

  .header-actions-mobile {
    margin-top: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
  }

  .header-phone.desktop-only { display: none; }
  .nav-toggle { display: inline-flex; }

  .nav-scrim {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(6, 20, 26, 0.4);
    z-index: 400;
  }
  .nav-scrim.is-visible { display: block; }
}

@media (min-width: 1020px) {
  .header-actions-mobile { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  padding-block: var(--space-2xl) var(--space-xl);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-2xl);
  align-items: center;
}

.hero-copy p.lede {
  font-size: 1.15rem;
  color: var(--color-ink-secondary);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.hero-reassurance {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
  list-style: none;
  padding-left: 0;
}
.hero-reassurance li {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-ink);
}
.hero-reassurance svg { color: var(--color-blue-mid); }

.hero-visual {
  position: relative;
}
.hero-visual figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--color-border);
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 530 / 353;
}
.hero-visual figcaption {
  position: absolute;
  left: var(--space-md);
  bottom: var(--space-md);
  background: rgba(255,255,255,0.94);
  color: var(--color-ink);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .hero-visual { order: 2; }
  .hero-copy { order: 1; }
}

/* ============================================================
   Trust strip
   ============================================================ */

.trust-strip {
  padding-block: var(--space-lg);
  background: var(--color-blue-tint);
  border-block: 1px solid var(--color-blue-border);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  align-items: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.trust-item svg { color: var(--color-blue-mid); flex-shrink: 0; }
.trust-item span { font-size: 0.92rem; font-weight: 600; color: var(--color-ink); }

.trust-badges {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.trust-badges--centered { justify-content: center; }

/* ============================================================
   Certification badges — sized generously so the (low native
   resolution) NOAB/RB artwork stays legible; always paired with
   a visible text label so recognisability never depends on the
   graphic alone. See CLIENT VERIFICATION comment in over-excent.html. */
.certification-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
}
.certification-logo img {
  height: 48px;
  width: auto;
}
.certification-logo--lg img { height: 72px; }
.certification-logo figcaption {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-ink-muted);
  line-height: 1.3;
  max-width: 12ch;
}
.trust-badges--spaced { margin-bottom: var(--space-md); }
.certification-note { color: var(--color-ink-muted); font-size: 0.92rem; }

.footer-badges {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}
.footer-badges .certification-logo {
  background: #fff;
  border: none;
}
/* Specificity deliberately raised above `.footer-brand img` (which
   sets the 30px logo height) — otherwise that equal-specificity,
   later-declared rule wins the cascade and squashes these badges. */
.footer-brand .footer-badges img { height: 44px; width: auto; }

/* ============================================================
   Service cards
   ============================================================ */

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

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--space-lg);
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.service-card:hover,
.service-card:focus-within {
  border-color: var(--color-blue-border);
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}

.icon-badge {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--color-blue-tint);
  color: var(--color-blue-deep);
}
.icon-badge--spaced { margin-bottom: var(--space-md); }
.icon-badge--round { border-radius: 50%; }
.icon-badge--sm { width: 44px; height: 44px; }

.service-card .icon-badge { margin-bottom: var(--space-md); }
.service-card h3 { margin-bottom: var(--space-xs); }
.service-card p { flex-grow: 1; }
.service-card .link-arrow { margin-top: var(--space-md); }

@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Editorial split (positioning / about)
   ============================================================ */

/* Reading order lives in the HTML, not in CSS: split-copy always
   comes before split-media in the DOM, on every page. Desktop-only
   visual alternation (media-left/copy-right) is applied exclusively
   inside the min-width query below, so mobile can never render the
   visual before the heading/text — there's no order rule active
   below 901px to get that wrong. */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
.split-copy { order: 1; }
.split-media { order: 2; }

@media (min-width: 901px) {
  .split--media-first .split-copy { order: 2; }
  .split--media-first .split-media { order: 1; }
}

.split-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--color-border);
  width: 100%;
  height: auto;
}
.split-copy ul {
  list-style: none;
  padding-left: 0;
  margin-top: var(--space-md);
}
.split-copy ul li {
  display: flex;
  gap: 0.65em;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
}
.split-copy ul li svg { color: var(--color-blue-mid); flex-shrink: 0; margin-top: 0.2em; }

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

/* ============================================================
   Service & audience visual compositions
   (replace the repeated office photo — CSS + inline SVG only)
   ============================================================ */

.composition {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-blue-tint);
  box-shadow: var(--shadow-medium);
  padding: var(--space-lg);
  aspect-ratio: 530 / 353;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.composition::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 100% 0%, rgba(33,183,221,0.10), transparent 60%);
  pointer-events: none;
}
.composition-mark {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  color: var(--color-blue-border);
  opacity: 0.9;
}

/* Document-stack composition (Administratie) */
.doc-stack {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 300px;
  position: relative;
  z-index: 1;
}
.doc-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  box-shadow: var(--shadow-soft);
}
.doc-card svg { color: var(--color-blue-mid); flex-shrink: 0; }
.doc-card span { font-weight: 600; font-size: 0.92rem; color: var(--color-ink); }
.doc-card--offset { margin-left: 1.5rem; }
.doc-check { margin-left: auto; color: var(--color-blue); }

/* Payroll/team composition (Salaris & Personeel) */
.payroll-panel {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  max-width: 320px;
  box-shadow: var(--shadow-soft);
}
.payroll-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}
.payroll-row:last-child { border-bottom: none; }
.payroll-row .name { font-weight: 600; color: var(--color-ink); display: flex; align-items: center; gap: 0.5rem; }
.payroll-row .name svg { color: var(--color-blue-mid); }
.payroll-row .status { color: var(--color-blue-text); font-weight: 600; font-size: 0.82rem; }

/* Tax-planning composition (Belastingadvies) */
.tax-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 300px;
}
.tax-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.45rem 0.9rem 0.45rem 0.55rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-ink);
  box-shadow: var(--shadow-soft);
}
.tax-badge svg { color: var(--color-orange); }
.tax-checklist {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow-soft);
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.tax-checklist li { display: flex; align-items: center; gap: 0.55rem; font-size: 0.88rem; color: var(--color-ink); font-weight: 600; }
.tax-checklist svg { color: var(--color-blue); }

/* Insight panel composition (Cijfermatig inzicht) */
.insight-panel {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  max-width: 320px;
  box-shadow: var(--shadow-soft);
}
.insight-panel .insight-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  margin-bottom: var(--space-sm);
}
.insight-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  height: 90px;
  margin-bottom: var(--space-sm);
}
.insight-chart .bar {
  flex: 1;
  background: var(--color-blue-border);
  border-radius: 4px 4px 0 0;
  position: relative;
}
.insight-chart .bar--accent { background: var(--color-blue); }
/* Fixed, decorative proportions — not client data, so the heights
   live here rather than as inline styles or one-off utility classes. */
.insight-chart .bar:nth-child(1) { height: 42%; }
.insight-chart .bar:nth-child(2) { height: 68%; }
.insight-chart .bar:nth-child(3) { height: 55%; }
.insight-chart .bar:nth-child(4) { height: 85%; }
.insight-chart .bar:nth-child(5) { height: 60%; }
.insight-legend {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--color-ink-muted);
  font-weight: 600;
}

/* Strategic pathway composition (Bedrijfsadvies) */
.pathway-viz {
  position: relative;
  z-index: 1;
  max-width: 320px;
}
.pathway-viz-track {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.pathway-viz-track .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-blue);
  flex-shrink: 0;
}
.pathway-viz-track .dot--muted { background: var(--color-blue-border); }
.pathway-viz-track .line {
  flex: 1;
  height: 2px;
  background: var(--color-blue-border);
}
.pathway-viz-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-ink-muted);
  text-align: center;
}
.pathway-viz-labels span { flex: 1; }
.pathway-viz-card {
  margin-top: var(--space-md);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-ink);
}
.pathway-viz-card svg { color: var(--color-orange); }

/* Device/cloud composition (Online boekhouden) */
.device-frame {
  position: relative;
  z-index: 1;
  max-width: 300px;
  background: var(--color-blue-deep);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.6rem 1.1rem;
  box-shadow: var(--shadow-medium);
}
.device-screen {
  background: #fff;
  border-radius: 8px;
  padding: 0.85rem;
}
.device-screen .device-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-ink);
  border-bottom: 1px solid var(--color-border);
}
.device-screen .device-line:last-child { border-bottom: none; }
.device-screen .device-line svg { color: var(--color-blue-mid); }
.device-badge {
  position: absolute;
  bottom: -0.9rem;
  right: -0.6rem;
  background: var(--color-orange);
  color: #241300;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Compact solo composition (ZZP) */
.solo-panel {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  max-width: 280px;
  box-shadow: var(--shadow-soft);
  text-align: left;
}
.solo-panel .solo-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}
.solo-panel .solo-header .icon-badge { width: 38px; height: 38px; }
.solo-panel .solo-header span { font-weight: 700; color: var(--color-ink); }
.solo-list { list-style: none; margin: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.solo-list li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.86rem; color: var(--color-ink); font-weight: 600; }
.solo-list svg { color: var(--color-blue); }

/* Structured team composition (MKB) */
.team-panel {
  position: relative;
  z-index: 1;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.team-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  box-shadow: var(--shadow-soft);
}
.team-row .icon-badge { width: 36px; height: 36px; flex-shrink: 0; }
.team-row span { font-weight: 600; font-size: 0.88rem; color: var(--color-ink); }

/* Step-based foundation composition (Starters) */
.foundation-steps {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.foundation-steps li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
  box-shadow: var(--shadow-soft);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-ink);
}
.foundation-steps .foundation-index {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-blue-tint);
  color: var(--color-blue-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.composition--compact {
  aspect-ratio: 16 / 11;
  padding: var(--space-md);
}
.composition--compact .payroll-panel,
.composition--compact .tax-panel,
.composition--compact .insight-panel,
.composition--compact .pathway-viz {
  max-width: 100%;
  transform: scale(0.92);
}

@media (max-width: 480px) {
  .composition { padding: var(--space-md); aspect-ratio: 4 / 3; }
  .doc-stack, .payroll-panel, .tax-panel, .insight-panel, .pathway-viz, .device-frame, .solo-panel, .team-panel, .foundation-steps {
    max-width: 100%;
  }
}

/* ============================================================
   Narrative text block (full-width story sections, e.g. Over Excent)
   ============================================================ */

.text-feature {
  max-width: 680px;
}
.text-feature--center {
  margin-inline: auto;
  text-align: center;
}
.text-feature--center ul {
  text-align: left;
  max-width: 420px;
  margin-inline: auto;
}

/* ============================================================
   Audience pathways
   ============================================================ */

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

.pathway-card {
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.pathway-card .eyebrow { color: var(--color-blue-text); }
.pathway-card p { flex-grow: 1; }
.pathway-card .link-arrow { margin-top: var(--space-md); }

@media (max-width: 900px) {
  .pathway-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Benefit grid ("Why Excent")
   ============================================================ */

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.benefit-item {
  display: flex;
  gap: var(--space-sm);
}
.benefit-item .icon-badge {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-orange-tint);
  color: var(--color-orange-text);
}
.benefit-item h3 { font-size: 1.05rem; margin-bottom: 0.3em; }
.benefit-item p { font-size: 0.97rem; }

@media (max-width: 900px) {
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .benefit-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Process steps
   ============================================================ */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  position: relative;
}
.process-grid--five { grid-template-columns: repeat(5, 1fr); }
.process-grid::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: var(--color-blue-border);
  z-index: 0;
}
.process-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 var(--space-2xs);
}
.process-step .step-number {
  width: 52px;
  height: 52px;
  margin: 0 auto var(--space-sm);
  border-radius: 50%;
  background: var(--color-canvas);
  border: 2px solid var(--color-blue-mid);
  color: var(--color-blue-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.process-step h3 { font-size: 1.05rem; }
.process-step p { font-size: 0.92rem; }

@media (max-width: 900px) {
  .process-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: left;
  }
  .process-grid::before { display: none; }
  .process-step { display: flex; gap: var(--space-md); align-items: flex-start; text-align: left; }
  .process-step .step-number { margin: 0; flex-shrink: 0; }
}

/* ============================================================
   FAQ accordion
   ============================================================ */

.faq-list {
  max-width: 780px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-canvas);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: transparent;
  border: none;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--color-blue-deep);
  cursor: pointer;
}
.faq-question .icon-chevron {
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--color-orange-text);
}
.faq-question[aria-expanded="true"] .icon-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 var(--space-lg);
  max-height: 0;
  overflow: hidden;
  transition: max-height 260ms ease, padding var(--transition);
}
.faq-answer[data-open="true"] {
  padding-bottom: var(--space-md);
}
.faq-answer p { color: var(--color-ink-secondary); }

/* ============================================================
   Final CTA — visually separated from the footer: a light
   section background containing a contained dark-blue panel,
   so a visible light band always sits between the CTA and the
   dark footer below it.
   ============================================================ */

.final-cta {
  background: var(--color-canvas-soft);
  padding-block: var(--space-xl);
}
.final-cta-panel {
  background: var(--color-blue-deep);
  color: rgba(255,255,255,0.9);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-medium);
}
.final-cta-panel h2 { color: #fff; }
.final-cta-panel p.lede {
  max-width: 52ch;
  margin-inline: auto;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
}
.final-cta-panel .hero-actions { justify-content: center; }
.final-cta-panel .final-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  margin-top: var(--space-md);
}
.final-cta-panel .final-phone svg { color: var(--color-orange); }

@media (max-width: 600px) {
  .final-cta-panel { padding: var(--space-lg) var(--space-md); }
}

/* ============================================================
   Forms (contact page)
   ============================================================ */

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact-info-card {
  background: var(--color-blue-tint);
  border: 1px solid var(--color-blue-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}
.contact-info-card h2 { font-size: 1.4rem; }
.contact-photo {
  margin: 0 0 var(--space-md);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-blue-border);
}
.contact-photo img { width: 100%; height: auto; display: block; }
.contact-photo figcaption {
  padding: 0.5rem 0.75rem;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-ink-muted);
}
.contact-detail {
  display: flex;
  gap: var(--space-sm);
  padding-block: var(--space-sm);
  border-top: 1px solid var(--color-blue-border);
}
.contact-detail:first-of-type { border-top: none; }
.contact-detail svg { color: var(--color-blue-mid); flex-shrink: 0; margin-top: 0.15em; }
.contact-detail a { color: var(--color-ink); font-weight: 600; text-decoration: none; }
.contact-detail a:hover { color: var(--color-blue-deep); }
.contact-detail p { margin: 0; }

.form-card {
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-soft);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-field {
  margin-bottom: var(--space-md);
}
.form-field label {
  display: block;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}
.form-field .required-mark { color: var(--color-orange-text); }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-canvas);
  color: var(--color-ink);
  min-height: 44px;
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 3px solid var(--color-orange-text);
  outline-offset: 1px;
  border-color: var(--color-blue-mid);
}

.form-field .field-hint {
  font-size: 0.85rem;
  color: var(--color-ink-muted);
  margin-top: 0.3rem;
}
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: #C0392B;
}
.form-field .field-error {
  display: none;
  font-size: 0.85rem;
  color: #A6332B;
  margin-top: 0.3rem;
}
.form-field.has-error .field-error { display: block; }

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6em;
  margin-bottom: var(--space-md);
}
.consent-row input {
  width: 20px; height: 20px;
  flex-shrink: 0;
  margin-top: 0.15em;
}
.consent-row label { font-size: 0.92rem; color: var(--color-ink-secondary); }

.form-status {
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-weight: 600;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-success {
  background: #E9F6EE;
  color: #1E6B3E;
  border: 1px solid #C5E8D3;
}
.form-status.is-error {
  background: #FCEBEA;
  color: #A6332B;
  border: 1px solid #F3C7C3;
}
.form-status.is-info {
  background: var(--color-blue-tint);
  color: var(--color-blue-deep);
  border: 1px solid var(--color-blue-border);
}
.form-status a { color: inherit; font-weight: 700; }
.form-status .status-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
  font-weight: 700;
}

.success-panel {
  text-align: center;
  padding: var(--space-lg);
}
.success-panel .icon-badge {
  width: 64px; height: 64px;
  margin: 0 auto var(--space-md);
  border-radius: 50%;
  background: #E9F6EE;
  color: #1E6B3E;
}

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   Privacy / legal placeholder pages
   ============================================================ */

.legal-content {
  max-width: 72ch;
}
.legal-content h2 { margin-top: var(--space-lg); }
.legal-notice {
  background: var(--color-orange-tint);
  border: 1px solid #F3DDBE;
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-lg);
}
.legal-notice p { color: var(--color-ink); font-weight: 500; }

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--color-blue-deep);
  color: rgba(255,255,255,0.78);
  padding-block: var(--space-2xl) var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.footer-brand img { height: 30px; margin-bottom: var(--space-sm); }
.footer-brand p { font-size: 0.92rem; color: rgba(255,255,255,0.68); max-width: 32ch; }

.footer-heading {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.02rem;
  margin-bottom: var(--space-sm);
}

.footer-nav ul, .footer-list { list-style: none; padding: 0; margin: 0; }
.footer-nav li, .footer-list li { margin-bottom: 0.55rem; }
.footer-nav a, .footer-list a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-nav a:hover, .footer-list a:hover { color: #fff; }

.footer-contact li {
  display: flex;
  gap: 0.55em;
  margin-bottom: 0.7rem;
  font-size: 0.93rem;
  align-items: flex-start;
}
.footer-contact svg { color: var(--color-orange); flex-shrink: 0; margin-top: 0.2em; }
.footer-contact a { color: rgba(255,255,255,0.85); text-decoration: none; }
.footer-contact a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  padding-top: var(--space-lg);
  font-size: 0.86rem;
  color: rgba(255,255,255,0.6);
}
.footer-legal {
  display: flex;
  gap: var(--space-md);
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.86rem;
}
.footer-legal a { color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-legal a:hover { color: #fff; }

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: var(--space-lg);
  }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   Page header (internal pages)
   ============================================================ */

.page-header {
  padding-block: var(--space-xl) var(--space-lg);
  background: var(--color-blue-tint);
  border-bottom: 1px solid var(--color-blue-border);
}
.page-header .eyebrow { color: var(--color-blue-text); }
.page-header p.lede { max-width: 62ch; font-size: 1.08rem; }

.breadcrumb-nav { margin-bottom: var(--space-md); }
.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  padding: 0;
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-ink-muted);
}
.breadcrumb a { color: var(--color-ink-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-blue-deep); }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 0.4em; color: var(--color-ink-muted); }
.breadcrumb li[aria-current="page"] { color: var(--color-ink); font-weight: 600; }

/* ============================================================
   Diensten page — compact nav grid + featured/grid layout
   ============================================================ */

.service-nav-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
}
.service-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  padding: var(--space-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-ink);
  font-weight: 600;
  font-size: 0.85rem;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.service-nav-item:hover {
  border-color: var(--color-blue-border);
  background: var(--color-blue-tint);
  color: var(--color-blue-deep);
  transform: translateY(-2px);
}
.service-nav-item .icon-badge { width: 40px; height: 40px; }

@media (max-width: 900px) {
  .service-nav-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .service-nav-grid { grid-template-columns: repeat(2, 1fr); }
}

.mid-cta {
  padding-block: var(--space-lg);
  text-align: center;
}
.mid-cta h2 {
  font-size: 1.4rem;
}

.service-grid-compact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}
.service-panel {
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-canvas);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.service-panel p { flex-grow: 1; }
.service-panel .link-arrow { margin-top: var(--space-md); }

@media (max-width: 700px) {
  .service-grid-compact { grid-template-columns: 1fr; }
}

/* ============================================================
   Responsive container safety
   ============================================================ */

@media (max-width: 480px) {
  :root { --space-2xl: 3.5rem; --space-xl: 2.75rem; }
  .container { padding-inline: var(--space-sm); }
  h1 { font-size: 1.85rem; }
}
