/* Acade Accountants – stylesheet
   Ontwerp: Faro Digital */

:root {
  /* Brand colours – pixel-sampled from the logo (Acade-logo.png) */
  --blue: #004999;
  --crimson: #d71d46;

  /* Derived from the sampled brand blue (mixed toward black), NOT a separate
     brand colour. Used for the footer only. */
  --blue-deep: #002854;

  --ink: #1b2a3a;        /* body text: deep blue-grey */
  --ink-soft: #46586a;   /* secondary text */
  --white: #ffffff;
  --paper: #f8f6f2;      /* warm off-white */
  --line: #dde2e8;       /* fine cool-grey border */
  --on-blue-soft: #dbe6f5; /* secondary text on brand blue / blue-deep */

  --font-display: "Lora", Georgia, serif;
  --font-body: "Source Sans 3", sans-serif;

  --header-h: 80px;
  --radius: 4px;
  --max: 1200px;
  --gutter: 24px;

  /* 8px spacing scale */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 40px;
  --s6: 48px;
  --s8: 64px;
  --s10: 80px;
  --s12: 96px;

  --section: clamp(56px, 8vw, 88px);
  --ease: 180ms ease;
}

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

html {
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 768px) {
  body { font-size: 1.0625rem; }
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 { margin: 0; color: var(--blue); }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(1.875rem, 1.2rem + 3.2vw, 3.375rem); }
h2 { font-size: clamp(1.625rem, 1.15rem + 1.9vw, 2.5rem); }
h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.3;
}
h4 { font-family: var(--font-body); font-weight: 700; font-size: 1.0625rem; }
.h1-line { display: block; }

p { margin: 0 0 var(--s2); max-width: 68ch; }
p:last-child { margin-bottom: 0; }

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

ul { margin: 0; padding: 0; list-style: none; }

.num { font-variant-numeric: tabular-nums; }

/* Utilities (replace inline styles) */
.mt-1 { margin-top: var(--s1); }
.mt-2 { margin-top: var(--s2); }
.mt-3 { margin-top: var(--s3); }
.h3-first { margin-top: 0; }
.h3-gap { margin-bottom: var(--s2); }
.h2-sm { font-size: 1.5rem; margin-bottom: var(--s3); }
.section-top { padding-top: var(--s8); }
.section-tight { padding-block: clamp(40px, 6vw, 64px); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-blue :focus-visible,
.site-footer :focus-visible,
.hero-panel :focus-visible,
.contact-card :focus-visible,
.team-lead :focus-visible { outline-color: var(--white); }

.skip-link {
  position: absolute;
  left: var(--s2);
  top: -80px;
  z-index: 200;
  background: var(--blue);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: var(--s1); }

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  min-height: 48px;
  padding: 12px 24px;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color var(--ease), border-color var(--ease), color var(--ease);
}
.btn-primary { background: var(--crimson); color: var(--white); }
.btn-primary:hover { background: color-mix(in srgb, var(--crimson) 84%, #000); }
.btn-secondary { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-secondary:hover { background: var(--blue); color: var(--white); }
.on-blue .btn-primary { border-color: var(--white); }
.on-blue .btn-secondary,
.hero-panel .btn-secondary { color: var(--white); border-color: var(--white); }
.on-blue .btn-secondary:hover { background: var(--white); color: var(--blue); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 600;
}
.text-link::after { content: "\2192"; transition: transform var(--ease); }
.text-link:hover::after { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  min-height: var(--header-h);
}
.logo { display: block; flex: none; line-height: 0; }
.logo img { height: 56px; width: auto; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-right: -8px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--blue);
  cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.primary-nav { display: flex; align-items: center; gap: var(--s3); }
.nav-list { display: flex; align-items: center; gap: var(--s1); }
.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--ease), border-color var(--ease);
}
.nav-list a:hover { color: var(--blue); }
.nav-list a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--crimson); }
.nav-actions { display: flex; align-items: center; gap: var(--s3); }
.header-phone {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone svg { color: var(--crimson); }
.header-phone:hover { text-decoration: underline; }
.nav-actions .btn { white-space: nowrap; min-height: 44px; padding: 8px 20px; }

@media (min-width: 1100px) {
  .header-phone { display: inline-flex; }
}

@media (max-width: 999px) {
  :root { --header-h: 64px; }
  .logo img { height: 46px; }
  .nav-toggle { display: inline-flex; }
  /* Closed menu is display:none, so its links cannot be focused. */
  .primary-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: var(--s3);
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: var(--s2) var(--gutter) var(--s4);
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 20px rgba(27, 42, 58, 0.08);
  }
  .primary-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a { display: flex; min-height: 52px; padding: 0 4px; border-bottom: 1px solid var(--line); }
  .nav-list a[aria-current="page"] { border-bottom-color: var(--line); box-shadow: inset 3px 0 0 var(--crimson); padding-left: 16px; }
  .nav-actions { flex-direction: column; align-items: stretch; gap: var(--s2); }
  .header-phone { display: inline-flex; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius); }
  .nav-actions .btn { min-height: 48px; }
}

/* ---------- Mobile bottom bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 767px) {
  .site-footer { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--s1);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--white);
    border-top: 1px solid var(--line);
    transition: transform var(--ease);
  }
  .mobile-bar .btn { min-height: 48px; padding: 8px 12px; font-size: 0.9375rem; }
  .mobile-bar.is-hidden { transform: translateY(110%); visibility: hidden; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-paper { background: var(--paper); }
.section-head { margin-bottom: var(--s6); }
.section-head p { margin-top: var(--s2); color: var(--ink-soft); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 var(--s2);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow .rule { display: block; flex: none; width: 24px; height: 2px; background: var(--crimson); }
.eyebrow .euro {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--crimson);
  border-radius: 50%;
  color: var(--crimson);
  font: 700 0.8125rem/1 var(--font-display);
  letter-spacing: 0;
}
.on-blue .eyebrow { color: var(--white); }
.on-blue .eyebrow .rule { background: var(--white); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(24px, 5vw, 72px) clamp(32px, 6vw, 80px); background: var(--paper); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; gap: var(--s3); align-items: start; }
.hero h1 { margin-bottom: var(--s2); }
.hero .lead { font-size: 1.0625rem; color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.hero-facts { margin-top: var(--s2); font-size: 0.9375rem; color: var(--ink-soft); }

.hero-panel {
  padding: var(--s3);
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius);
}
.hero-panel h2 { color: var(--white); font-family: var(--font-body); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--s1); }
.hero-panel .name { font: 600 1.5rem/1.2 var(--font-display); margin: 0; }
.hero-panel .role { margin: 2px 0 var(--s1); color: var(--on-blue-soft); }
.hero-panel ul { display: grid; gap: 0; margin-bottom: var(--s1); }
.hero-panel a { color: var(--white); display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.hero-panel .note { padding-top: var(--s2); border-top: 1px solid rgba(255, 255, 255, 0.35); color: var(--on-blue-soft); font-size: 0.9375rem; }

@media (max-width: 599px) {
  .hero .cta-row { flex-direction: column; gap: var(--s1); }
  .hero .cta-row .btn { width: 100%; }
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.25fr 0.75fr; gap: var(--s10); }
  .hero .lead { font-size: 1.1875rem; }
  /* aligns the panel top with the H1 (eyebrow height + margin) */
  .hero-panel { margin-top: 38px; }
}

/* ---------- Trust strip ---------- */
.trust { padding-block: var(--s3); border-bottom: 1px solid var(--line); }
.trust + .section { padding-top: calc(var(--section) * 0.67); }
.trust-inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s5); }
.trust-label { margin: 0; font-size: 0.9375rem; font-weight: 600; color: var(--ink-soft); }
.trust-logos { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s5); }
.trust-logos img { height: 40px; width: auto; max-height: 40px; }
.trust-logos img.novak { height: 30px; }
.trust-text { display: inline-flex; align-items: center; height: 40px; font: 600 1.25rem/1 var(--font-body); letter-spacing: 0.02em; color: var(--ink-soft); }

/* ---------- Ruled rows (service intro) ---------- */
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid;
  gap: var(--s1) var(--s6);
  padding-block: var(--s4);
  border-bottom: 1px solid var(--line);
}
.row h3 { font-size: 1.375rem; }
.row p { margin: 0; }
.row-links { display: flex; flex-wrap: wrap; gap: 0 var(--s3); margin-top: var(--s1); }
@media (min-width: 820px) {
  .row { grid-template-columns: 0.8fr 1.4fr; align-items: start; padding-block: var(--s5); }
  .row-links { grid-column: 2; }
}
.after-rows { margin-top: var(--s4); }

/* ---------- Split (accountant vs. administratiekantoor) ---------- */
.split { display: grid; gap: var(--s5); }
.split-aside {
  padding: var(--s4);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--crimson);
  border-radius: var(--radius);
}
.split-aside h3 { margin-bottom: var(--s2); }
.split-aside p { color: var(--ink); }
.split-note { margin-top: var(--s3); font-size: 0.9375rem; color: var(--ink-soft); }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--s10); align-items: start; }
}

/* ---------- Principles ---------- */
.principles { display: grid; gap: var(--s4); }
.principle { padding-left: var(--s3); border-left: 1px solid var(--line); position: relative; }
.principle::before { content: ""; position: absolute; left: -1px; top: 0; width: 3px; height: 48px; background: var(--crimson); }
.principle h3 { margin-bottom: var(--s1); }
.network { margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid var(--line); display: grid; gap: var(--s2); }
@media (min-width: 900px) {
  .principles { grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
  .network { grid-template-columns: 1.4fr auto; align-items: center; gap: var(--s6); }
  .network p { margin: 0; }
}

/* ---------- Levensfasen ---------- */
.phases { display: grid; gap: var(--s5); }
.phase { padding-top: var(--s3); border-top: 2px solid var(--blue); }
.phase h3 { font: 600 clamp(1.625rem, 1.2rem + 1.4vw, 2.125rem)/1.15 var(--font-display); color: var(--blue); margin-bottom: var(--s2); }
.phase p { margin-bottom: var(--s2); }
@media (min-width: 820px) {
  .phases { grid-template-columns: repeat(3, 1fr); gap: var(--s6); }
}

/* ---------- Acade Online! ---------- */
.feature-box {
  display: grid;
  gap: var(--s3);
  padding: var(--s4);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.feature-box h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem); margin-bottom: var(--s2); }
@media (min-width: 900px) {
  .feature-box { grid-template-columns: 1.5fr auto; align-items: center; gap: var(--s8); padding: var(--s6); }
}

/* ---------- Closing CTA (brand blue) ---------- */
.closing { background: var(--blue); color: var(--white); padding-block: clamp(48px, 7vw, 72px); }
.closing h2 { color: var(--white); margin-bottom: var(--s2); }
.closing p { color: var(--on-blue-soft); }
.closing-grid { display: grid; gap: var(--s4); align-items: center; }
.closing-actions { display: grid; gap: 4px; justify-items: start; }
.closing-actions .btn { margin-top: var(--s2); }
.closing-actions a:not(.btn) { color: var(--white); font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; font-size: 1.125rem; }
.closing-actions .phone-link { font-weight: 700; }
@media (min-width: 900px) {
  .closing-grid { grid-template-columns: 1.3fr 0.7fr; gap: var(--s10); }
  .closing-actions { justify-items: start; padding-left: var(--s6); border-left: 1px solid rgba(255, 255, 255, 0.35); }
}

/* ---------- Page header (inner pages) ---------- */
.page-head { padding-block: clamp(32px, 6vw, 72px) clamp(28px, 4vw, 48px); background: var(--paper); border-bottom: 1px solid var(--line); }
.page-head .sub { margin-top: var(--s2); font-size: 1.1875rem; color: var(--ink-soft); }
.page-head .intro { margin-top: var(--s3); }
.breadcrumb { margin-bottom: var(--s3); font-size: 0.9375rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; list-style: none; color: var(--ink-soft); }
.breadcrumb li + li::before { content: "\203A"; margin-right: 8px; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 32px; }

/* ---------- Diensten ---------- */
.diensten-layout { display: grid; gap: var(--s4); }
.toc { display: none; padding: var(--s3); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.toc h2 { font: 700 0.875rem/1.3 var(--font-body); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); margin-bottom: var(--s1); }
.toc ol, .toc-mobile ol { margin: 0; padding: 0; list-style: none; }
.toc a, .toc-mobile a { display: flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.toc a:hover, .toc-mobile a:hover { text-decoration: underline; }
.toc li, .toc-mobile li { border-top: 1px solid var(--line); }
.toc li:first-child, .toc-mobile li:first-child { border-top: 0; }
.toc a { padding-left: 4px; transition: box-shadow var(--ease), padding var(--ease); }
.toc a[aria-current="true"] { color: var(--blue); box-shadow: inset 3px 0 0 var(--crimson); padding-left: 14px; }
.toc-mobile { margin: 0; }
.toc-mobile ol { padding: 0 var(--s2) var(--s1); }
@media (min-width: 960px) {
  .diensten-layout { grid-template-columns: 260px 1fr; gap: var(--s10); align-items: start; }
  .toc { display: block; position: sticky; top: calc(var(--header-h) + 24px); }
  .toc-mobile { display: none; }
}

.group + .group { margin-top: var(--s10); }
.group > h2 { padding-bottom: var(--s2); margin-bottom: var(--s1); border-bottom: 2px solid var(--blue); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem); }
.service { padding-block: var(--s4); border-bottom: 1px solid var(--line); }
.service h3 { margin-bottom: var(--s2); font-size: 1.375rem; }
.service p { margin-bottom: var(--s2); }
.service-links { display: flex; flex-wrap: wrap; gap: 0 var(--s3); }

details { margin: var(--s2) 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  min-height: 48px;
  padding: 8px var(--s2);
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 400 1.5rem/1 var(--font-body); color: var(--crimson); }
details[open] summary::after { content: "\2212"; }
details[open] summary { border-bottom: 1px solid var(--line); }
.bullets { padding: var(--s2) var(--s2) var(--s2) var(--s5); list-style: disc; display: grid; gap: 6px; }
.bullets li { padding-left: 4px; max-width: 70ch; }
.bullets li::marker { color: var(--crimson); }
.bullets.standalone { padding: 0 0 0 var(--s4); margin: 0; }
@media (min-width: 768px) {
  .bullets.cols { grid-template-columns: 1fr 1fr; gap: 8px var(--s5); }
}

/* ---------- Content blocks (inner pages) ---------- */
.prose h2 { margin-bottom: var(--s3); }
.prose h3 { margin: var(--s4) 0 var(--s1); }
.prose h3.h3-first { margin-top: 0; }
.two-col { display: grid; gap: var(--s4); }
@media (min-width: 900px) {
  .two-col { grid-template-columns: 0.8fr 1.2fr; gap: var(--s10); align-items: start; }
}

/* plain list with a small crimson marker, no box, no hover */
.plain-list { border-top: 1px solid var(--line); }
.plain-list li { position: relative; padding: 14px 0 14px var(--s3); border-bottom: 1px solid var(--line); color: var(--ink); }
.plain-list li::before { content: ""; position: absolute; left: 0; top: 1.35em; width: 8px; height: 8px; background: var(--crimson); }

.related { display: grid; gap: var(--s2); }
.related a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  min-height: 56px;
  padding: 12px var(--s3);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--ease);
}
.related a::after { content: "\2192"; color: var(--crimson); }
.related a:hover { border-color: var(--blue); }

.contact-card { padding: var(--s4); background: var(--blue); color: var(--white); border-radius: var(--radius); }
.contact-card h3 { color: var(--white); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--s2); }
.contact-card .name { font: 600 1.5rem/1.2 var(--font-display); margin: 0; }
.contact-card .role { margin: 4px 0 var(--s2); color: var(--on-blue-soft); }
.contact-card a { color: var(--white); display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.contact-card .btn-primary { color: var(--white); margin-top: var(--s2); border-color: var(--white); }
.cta-split { display: grid; gap: var(--s4); align-items: center; }
@media (min-width: 900px) { .cta-split { grid-template-columns: 1fr 0.7fr; gap: var(--s10); } }

/* ---------- Team ---------- */
.lead-contact {
  display: grid;
  gap: var(--s3);
  padding: var(--s4);
  margin-bottom: var(--s3);
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--crimson);
  border-radius: var(--radius);
}
.lead-contact .tag { margin: 0 0 var(--s1); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.lead-contact h3 { font: 600 clamp(1.5rem, 1.2rem + 1.2vw, 2rem)/1.2 var(--font-display); }
.lead-contact .role { margin: 4px 0 var(--s1); color: var(--ink-soft); }
.lead-contact .lead-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; margin-right: var(--s2); }
.lead-contact .lead-action p { margin-bottom: var(--s2); }
@media (min-width: 720px) {
  .lead-contact { grid-template-columns: 1fr 1fr; gap: var(--s8); align-items: center; padding: var(--s4) var(--s5); }
}
.team-grid { display: grid; gap: var(--s2); }
.member { padding: var(--s3); background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: var(--radius); }
.member h3 { font-size: 1.1875rem; color: var(--blue); }
.member p { margin: 4px 0 0; color: var(--ink-soft); }
@media (min-width: 640px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }

.member-list { display: grid; gap: var(--s2); }
.member-list li { padding: var(--s2) var(--s3); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.member-list strong { display: block; color: var(--blue); }
.member-list span { color: var(--ink-soft); font-size: 0.9375rem; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; gap: var(--s6); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: var(--s10); align-items: start; } }
.details-list { display: grid; gap: var(--s3); margin: 0; }
.details-list dt { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.details-list dd { margin: 2px 0 0; font-size: 1.125rem; }
.details-list a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.route-btn { margin-top: var(--s2); }

.form-card { padding: var(--s4); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.form-card h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem); margin-bottom: var(--s1); }
.form-card > p { color: var(--ink-soft); margin-bottom: var(--s3); }
.field { margin-bottom: var(--s3); scroll-margin-top: calc(var(--header-h) + 24px); }
.field label, .field .label { display: block; margin-bottom: 6px; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #76838f;
  border-radius: var(--radius);
  scroll-margin-top: calc(var(--header-h) + 24px);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 73, 153, 0.3);
}
.field [aria-invalid="true"] { border-color: #a3132f; box-shadow: 0 0 0 1px #a3132f; }
.field-error { margin: 6px 0 0; font-size: 0.9375rem; font-weight: 600; color: #a3132f; }
.field-error:empty { display: none; }
.check { display: flex; align-items: flex-start; gap: 12px; }
.check input { flex: none; width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--blue); scroll-margin-top: calc(var(--header-h) + 24px); }
.check label { margin: 0; font-weight: 400; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-deep); color: var(--on-blue-soft); padding-top: var(--s10); }
.site-footer a { color: var(--white); text-underline-offset: 3px; }
.site-footer h2 { font: 700 0.875rem/1.3 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); margin-bottom: var(--s2); }
.footer-grid { display: grid; gap: var(--s6); }
.logo-plate { display: inline-block; padding: 12px 16px; background: var(--white); border-radius: var(--radius); line-height: 0; margin-bottom: var(--s2); }
.logo-plate img { height: 56px; width: auto; }
.footer-desc { font-size: 0.9375rem; max-width: 40ch; }
.footer-list { display: grid; gap: 2px; }
.footer-list a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-address { font-style: normal; display: grid; gap: 2px; }
.footer-address a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-note { margin: var(--s1) 0 0; font-size: 0.875rem; }
.footer-bottom { margin-top: var(--s8); padding-block: var(--s3); border-top: 1px solid rgba(255, 255, 255, 0.25); font-size: 0.9375rem; display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); justify-content: space-between; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.3fr 1fr 0.8fr 1fr; gap: var(--s6); } }

/* ---------- Reveal on scroll ----------
   Content is visible by default. main.js adds .js-reveal to <html> only after
   its reveal logic is attached, so a failed script never hides anything. */
.js-reveal .reveal { opacity: 0; transform: translateY(10px); transition: opacity 350ms ease, transform 350ms ease; }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}
