/* ==========================================================================
   Zivkovic & Associates — base.css
   Design tokens, reset, typography, layout, shared components.
   Theme: preserved navy/teal/slate palette, clean value-focused layout.
   ========================================================================== */

/* ---- Design tokens ------------------------------------------------------ */
:root {
  /* brand */
  --navy: #0f3a5f;
  --navy-700: #0d3453;
  --teal: #0079a4;
  --teal-600: #0092bd;
  --slate: #004e72;
  --slate-700: #003d5a;

  /* neutrals */
  --ink: #243b4a;
  --muted: #5a6b78;
  --line: #dfe6ec;
  --surface: #ffffff;
  --surface-2: #f6f8fa;
  --surface-3: #eef2f5;

  /* background (replaces old gray gradient) */
  --bg-top: #eef0f3;
  --bg: #fafbfd;

  /* spacing scale (8px) */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 48px;
  --s-6: 64px;
  --s-7: 96px;

  /* layout */
  --container: 1180px;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 1px 3px rgba(15, 58, 95, 0.08);
  --shadow-lg: 0 10px 30px rgba(15, 58, 95, 0.12);

  /* type */
  --font-heading: 'PT Sans Narrow', 'Segoe UI', Tahoma, sans-serif;
  --font-body: 'Roboto', 'Helvetica Neue', Arial, sans-serif;

  /* header */
  --header-h: 72px;
}

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    url("../assets/noise.png"),
    linear-gradient(var(--bg-top), var(--bg) 320px);
  background-size: auto, auto;
  background-repeat: repeat, no-repeat;
  background-attachment: local, fixed;
  min-height: 100vh;
}

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

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--navy);
}

button {
  font: inherit;
  cursor: pointer;
}

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

/* ---- Typography --------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: 0.5px;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }

p { margin-bottom: var(--s-2); }

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 60ch;
}

.kicker {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--teal);
  display: inline-block;
}

/* ---- Layout ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-3);
}

.section {
  padding: var(--s-6) 0;
}

.section--tight { padding: var(--s-5) 0; }
.section--surface { background: var(--surface-2); }
.section--white { background: var(--surface); }

.section-head {
  max-width: 60ch;
  margin-bottom: var(--s-4);
}

.section-head .kicker { margin-bottom: var(--s-1); }

.section-head h2 {
  position: relative;
  padding-bottom: var(--s-2);
  margin-bottom: var(--s-2);
}

.section-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-600), var(--teal));
  border-radius: 2px;
}

.section-head p { color: var(--muted); }

.grid {
  display: grid;
  gap: var(--s-3);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.7em 1.5em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn--primary:hover { background: var(--teal); color: #fff; }

.btn--accent {
  background: var(--teal);
  color: #fff;
}
.btn--accent:hover { background: var(--navy); color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); }

.btn--light {
  background: #fff;
  color: var(--navy);
}
.btn--light:hover { background: var(--surface-3); color: var(--navy); }

/* ---- Cards -------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.35s ease;
}

.card:hover {
  box-shadow: var(--shadow-lg);
}

.card__media {
  aspect-ratio: 16 / 10;
  width: 100%;
  overflow: hidden;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card__body {
  padding: var(--s-3);
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  flex: 1;
}

.card__title {
  font-size: 1.3rem;
  margin-bottom: var(--s-1);
}

.card__title::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--teal);
  margin-top: var(--s-1);
  border-radius: 2px;
}

.card__text { color: var(--muted); flex: 1; }

.card__link {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: var(--s-1);
}
.card__link:hover { color: var(--navy); gap: 0.7em; }

.card--icon .card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--surface-3);
  color: var(--teal);
  margin-bottom: var(--s-2);
}
.card--icon .card__icon svg { width: 28px; height: 28px; }

/* ---- CTA band ----------------------------------------------------------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--slate) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: var(--s-5) var(--s-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}

.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.8); margin: 0; max-width: 50ch; }
.cta-band .btn--light { flex-shrink: 0; }

/* ---- List (value / reasons) ------------------------------------------- */
.check-list { list-style: none; padding: 0; display: grid; gap: var(--s-2); }
.check-list li {
  position: relative;
  padding-left: 2em;
  color: var(--ink);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 1.1em;
  height: 1.1em;
  background: var(--teal);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") center / contain no-repeat;
}

/* ---- Forms -------------------------------------------------------------- */
.form {
  display: grid;
  gap: var(--s-2);
}

.field { display: grid; gap: 6px; }
.field label {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  color: var(--navy);
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.65em 0.85em;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.field textarea { min-height: 130px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 121, 164, 0.15);
}

.field .hint { font-size: 0.8rem; color: var(--muted); }
.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: #c0392b; }
.field .error { font-size: 0.8rem; color: #c0392b; display: none; }
.field.invalid .error { display: block; }

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

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--surface-3);
  border-left: 3px solid var(--teal);
  padding: var(--s-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.form-status {
  display: none;
  padding: var(--s-2);
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.form-status.ok { display: block; background: #e6f4ea; color: #1e7e34; border: 1px solid #b7e1c0; }
.form-status.err { display: block; background: #fdecea; color: #c0392b; border: 1px solid #f5c6c1; }
form.submitted > :not(.form-status) { display: none; }

/* ---- Header / navigation ----------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  /* backdrop-filter: blur(8px); */
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow);
}

.site-header__bar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6em;
  flex-shrink: 0;
}

.brand img { height: 44px; width: auto; }

.brand__text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--navy);
  line-height: 1;
}
.brand__text small {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 3px;
}

/* ---- Navigation (nested, keyboard accessible) -------------------------- */
.nav__list,
.nav__submenu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--s-1);
}

.nav__item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav__link {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  padding: 0.55em 0.8em;
  border-radius: var(--radius-sm);
  position: relative;
  border: none;
  background: transparent;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}

.nav__link:hover { color: var(--teal); background: var(--surface-3); }

.nav__link[aria-current="page"] { color: var(--navy); }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.8em;
  right: 0.8em;
  bottom: 2px;
  height: 3px;
  background: var(--teal);
  border-radius: 2px;
}

.nav__link .chev { width: 14px; height: 14px; transition: transform 0.2s ease; }
.nav__item.open > .nav__link--btn .chev { transform: rotate(180deg); }

.nav__link--btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* submenu (desktop dropdown) */
.nav__submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: none;
  z-index: 60;
}
.nav__item.open > .nav__submenu { display: block; }
.nav__submenu a {
  display: block;
  padding: 0.6em 0.8em;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}
.nav__submenu a:hover { color: var(--teal); background: var(--surface-3); }

/* visible focus for keyboard users */
.nav__link:focus-visible,
.nav__submenu a:focus-visible,
.nav-toggle:focus-visible,
.nav-cta-btn:focus-visible,
.btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  flex-shrink: 0;
}
.nav-cta .btn { padding: 0.5em 1.1em; font-size: 0.95rem; }

/* mobile nav toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px;
  color: var(--navy);
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ---- Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--navy-700);
  color: rgba(255, 255, 255, 0.78);
  margin-top: 0;
}

.site-footer a { color: rgba(255, 255, 255, 0.78); }
.site-footer a:hover { color: #fff; }

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
  padding: var(--s-6) 0 var(--s-4);
}

.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--s-2);
}

.site-footer ul { list-style: none; padding: 0; display: grid; gap: 0.5em; }
.site-footer p { font-size: 0.9rem; margin-bottom: 0.4em; }

.assoc-logo {
  width: 150px;
}

.site-footer__social {
  display: flex;
  gap: var(--s-1);
  margin-top: var(--s-2);
}

.site-footer__social a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}
.site-footer__social a:hover { background: var(--teal); }
.site-footer__social svg { width: 20px; height: 20px; fill: #fff; }

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: var(--s-2) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-2);
  flex-wrap: wrap;
  font-size: 0.85rem;
}

/* ---- Media placeholder (SVG "media missing") --------------------------- */
.ph {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, var(--surface-3) 0%, #e2e8ee 100%);
  border: 1px dashed #b9c4cd;
  border-radius: inherit;
  overflow: hidden;
  display: block;
}

/* square placeholder for staff / avatars */
.ph--square { aspect-ratio: 1 / 1; }
.ph--wide { aspect-ratio: 21 / 9; }
.ph--tall { aspect-ratio: 3 / 4; }

/* rendered SVG fills the box; injected by main.js */
.ph svg { width: 100%; height: 100%; display: block; }

/* ---- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(380px, 58vh, 560px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(15, 58, 95, 0.9) 0%, rgba(15, 58, 95, 0.55) 45%, rgba(15, 58, 95, 0.15) 100%),
    linear-gradient(0deg, rgba(15, 58, 95, 0.55) 0%, rgba(15, 58, 95, 0) 60%);
}

.hero__inner {
  padding: var(--s-6) 0;
  max-width: 640px;
}

.hero .kicker { color: rgba(255, 255, 255, 0.7); }
.hero h1 { color: #fff; margin-bottom: var(--s-2); }
.hero p { color: rgba(255, 255, 255, 0.9); font-size: 1.15rem; margin-bottom: var(--s-3); max-width: 52ch; }
.hero__actions { display: flex; gap: var(--s-2); flex-wrap: wrap; }

/* crossfade slides */
.hero__slides { position: absolute; inset: 0; z-index: -2; }
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide .ph { height: 100%; aspect-ratio: auto; }
.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* small page hero (no big image) */
.page-hero {
  position: relative;
  background: linear-gradient(120deg, var(--navy) 0%, var(--slate) 100%);
  color: #fff;
  padding: var(--s-5) 0;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(0, 146, 189, 0.35), transparent 70%);
  border-radius: 50%;
}
.page-hero .kicker { color: rgba(255, 255, 255, 0.7); }
.page-hero h1 { color: #fff; margin-bottom: var(--s-1); position: relative; }
.page-hero p { color: rgba(255, 255, 255, 0.85); max-width: 60ch; margin: 0; position: relative; }
.page-hero--image {
  background-size: cover;
  background-position: center;
  background-color: var(--navy);
}
.page-hero--image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 25, 47, 0.75) 0%, rgba(10, 25, 47, 0.55) 100%);
  z-index: 0;
}
.page-hero--image .container { position: relative; z-index: 1; }

/* ---- Steps (process) ---------------------------------------------------- */
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--s-3);
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3.4em;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.4em;
  height: 2.4em;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
}
.steps li h3 { font-size: 1.15rem; margin-bottom: 4px; }
.steps li p { color: var(--muted); margin: 0; }

/* ---- Testimonials ------------------------------------------------------- */
.quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s-4);
  box-shadow: var(--shadow);
  position: relative;
  display: flex;
  flex-direction: column;
}
.quote::before {
  content: "\201C";
  position: absolute;
  top: 6px;
  left: 18px;
  font-family: Georgia, serif;
  font-size: 4rem;
  color: var(--teal);
  opacity: 0.25;
  line-height: 1;
}
.quote p { font-size: 1.05rem; margin-bottom: var(--s-2); padding-top: var(--s-1); }
.quote cite {
  display: block;
  font-style: normal;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 700;
}
.quote__stars {
  display: block;
  height: 16px;
  width: 120px;
  margin: 10px auto 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23d4a017' d='M12 2l3.1 6.2 6.9.5-5 4.9 1.2 6.9L12 17l-6.2 3.5 1.2-6.9-5-4.9 6.9-.5z'/%3E%3Cpath fill='%23d4a017' d='M36 2l3.1 6.2 6.9.5-5 4.9 1.2 6.9L36 17l-6.2 3.5 1.2-6.9-5-4.9 6.9-.5z'/%3E%3Cpath fill='%23d4a017' d='M60 2l3.1 6.2 6.9.5-5 4.9 1.2 6.9L60 17l-6.2 3.5 1.2-6.9-5-4.9 6.9-.5z'/%3E%3Cpath fill='%23d4a017' d='M84 2l3.1 6.2 6.9.5-5 4.9 1.2 6.9L84 17l-6.2 3.5 1.2-6.9-5-4.9 6.9-.5z'/%3E%3Cpath fill='%23d4a017' d='M108 2l3.1 6.2 6.9.5-5 4.9 1.2 6.9L108 17l-6.2 3.5 1.2-6.9-5-4.9 6.9-.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

/* ---- Utility ------------------------------------------------------------ */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: var(--s-1) var(--s-2);
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---- Scroll reveal ------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.35s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--surface);
    padding: var(--s-2);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav__item { width: 100%; flex-direction: column; align-items: stretch; }
  .nav__link { width: 100%; justify-content: space-between; padding: 0.85em; border-radius: var(--radius-sm); }
  .nav__link[aria-current="page"]::after { display: none; }
  .nav__link[aria-current="page"] { background: var(--surface-3); }
  .nav__submenu {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    background: var(--surface-2);
    margin: 2px 0 6px 12px;
    padding: 4px;
  }
  .nav__item:not(.open) > .nav__submenu { display: none; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .site-header { backdrop-filter: none; background: #fff; }
  html { scroll-behavior: auto; }
  body { background-attachment: local, local; }
}

@media (max-width: 560px) {
  :root { --header-h: 64px; }
  .brand img { height: 38px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .hero__inner { padding: var(--s-4) var(--s-3); }
  .section { padding: var(--s-5) 0; }
  .nav-cta-btn { display: none; }
}

/* ---- Reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
