﻿/* =========================================================
   ANR Datamart -- design tokens and component styles
   ========================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; margin: 0; padding: 0; }
img, picture, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }

/* ---------- Tokens: light (default) ----------
   Forest & Sage palette: --color-navy/--color-teal names are kept for a
   smaller diff, but now hold a deep forest green + fresh green pairing. */
:root {
  --color-navy: #183526;
  --color-navy-ink: #102318;
  --color-teal: #2C6B45;
  --color-teal-hover: #234F34;
  --color-bg: #F4F8F4;
  --color-surface: #FFFFFF;
  --color-bg-alt: #E7F0E6;
  --color-text: #1B2A20;
  --color-text-secondary: #4C5C50;
  --color-border: rgba(24, 53, 38, 0.16);
  --color-border-strong: rgba(24, 53, 38, 0.30);
  --color-error: #B42318;
  --color-error-bg: #FBEAE9;
  --color-success: #2F7A50;
  --color-success-bg: #E9F5EC;
  --color-focus: #2C6B45;

  --font-heading: 'Manrope', 'Segoe UI', Arial, sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;

  --shadow-sm: 0 1px 2px rgba(24, 53, 38, 0.07);
  --shadow-md: 0 6px 18px rgba(24, 53, 38, 0.10);

  --content-max: 1200px;
  --reading-max: 68ch;

  --transition-fast: 160ms ease;
  --transition-base: 220ms ease;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --color-navy: #0B140E;
  --color-navy-ink: #060B07;
  --color-teal: #5CAE79;
  --color-teal-hover: #7EC498;
  --color-bg: #0F1C14;
  --color-surface: #182920;
  --color-bg-alt: #1E3326;
  --color-text: #E9F3EC;
  --color-text-secondary: #AFC6B7;
  --color-border: rgba(233, 243, 236, 0.14);
  --color-border-strong: rgba(233, 243, 236, 0.27);
  --color-error: #E5847A;
  --color-error-bg: #2A1712;
  --color-success: #7ECB98;
  --color-success-bg: #10281A;
  --color-focus: #5CAE79;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --color-navy: #0B140E;
    --color-navy-ink: #060B07;
    --color-teal: #5CAE79;
    --color-teal-hover: #7EC498;
    --color-bg: #0F1C14;
    --color-surface: #182920;
    --color-bg-alt: #1E3326;
    --color-text: #E9F3EC;
    --color-text-secondary: #AFC6B7;
    --color-border: rgba(233, 243, 236, 0.14);
    --color-border-strong: rgba(233, 243, 236, 0.27);
    --color-error: #E5847A;
    --color-error-bg: #2A1712;
    --color-success: #7ECB98;
    --color-success-bg: #10281A;
    --color-focus: #5CAE79;
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--transition-base), color var(--transition-base);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-navy);
  line-height: 1.15;
}
:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] h4 { color: var(--color-text); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) h1,
  :root:not([data-theme="light"]):not([data-theme="dark"]) h2,
  :root:not([data-theme="light"]):not([data-theme="dark"]) h3,
  :root:not([data-theme="light"]):not([data-theme="dark"]) h4 { color: var(--color-text); }
}

h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { color: var(--color-text); }
.text-secondary { color: var(--color-text-secondary); }

a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
main a:not(.btn):not(.card-link) {
  color: var(--color-teal);
  text-decoration: underline;
}
main a:not(.btn):not(.card-link):hover { color: var(--color-teal-hover); }

/* ---------- Focus ---------- */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--color-navy);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top var(--transition-fast);
}
.skip-link:focus { top: 1rem; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 768px) {
  .container { padding-inline: 2rem; }
}

section { padding-block: 3.5rem; }
@media (min-width: 1024px) {
  section { padding-block: 5.5rem; }
}

.section-alt { background: var(--color-bg-alt); }
.section-surface { background: var(--color-surface); }

.eyebrow {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--color-teal);
  margin-bottom: 0.75rem;
  display: block;
}

.lede {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  max-width: var(--reading-max);
}

.reading-width { max-width: var(--reading-max); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  min-height: 44px;
  text-decoration: none;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}
.btn-primary {
  background: var(--color-teal);
  color: #fff;
}
.btn-primary:hover { background: var(--color-teal-hover); }
.btn-secondary {
  background: transparent;
  border-color: var(--color-navy);
  color: var(--color-navy);
}
:root[data-theme="dark"] .btn-secondary { border-color: var(--color-text); color: var(--color-text); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) .btn-secondary { border-color: var(--color-text); color: var(--color-text); }
}
.btn-secondary:hover { background: var(--color-bg-alt); }
.btn-on-dark {
  background: #fff;
  color: var(--color-navy);
}
.btn-on-dark:hover { background: var(--color-bg-alt); }
.btn-outline-on-dark {
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.btn-outline-on-dark:hover { background: rgba(255,255,255,0.1); }

.text-link {
  font-weight: 600;
  color: var(--color-teal);
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.text-link:hover { color: var(--color-teal-hover); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: saturate(180%) blur(6px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}
.brand {
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--color-navy);
}
:root[data-theme="dark"] .brand { color: var(--color-text); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) .brand { color: var(--color-text); }
}
.brand-anr {
  position: relative;
}
.brand-anr::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 3px;
  border-radius: 2px;
  background: var(--color-teal);
}
/* Footer/CTA bands are always the dark "primary" colour regardless of site
   theme, so their wordmark underline always uses the brighter on-dark accent. */
.footer-brand .brand-anr::after {
  background: #5CAE79;
}

.primary-nav {
  display: none;
}
@media (min-width: 900px) {
  .primary-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
  }
}
.primary-nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--color-text);
  padding-block: 0.4rem;
  border-bottom: 2px solid transparent;
}
.primary-nav a:hover { color: var(--color-teal); }
.primary-nav a[aria-current="page"] {
  color: var(--color-teal);
  border-bottom-color: var(--color-teal);
}

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

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}
.theme-toggle:hover { background: var(--color-bg-alt); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="light"]):not([data-theme="dark"]) .theme-toggle .icon-moon { display: block; }
}

.header-actions .btn-primary { display: none; }
@media (min-width: 640px) {
  .header-actions .btn-primary { display: inline-flex; }
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}
.menu-toggle svg { width: 22px; height: 22px; }
@media (min-width: 900px) {
  .menu-toggle { display: none; }
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}
.mobile-menu.is-open { display: block; }
@media (min-width: 900px) {
  .mobile-menu { display: none !important; }
}
.mobile-menu ul { display: flex; flex-direction: column; padding: 0.5rem 0; }
.mobile-menu a {
  display: block;
  padding: 0.9rem 1.25rem;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--color-border);
  min-height: 44px;
}
.mobile-menu a[aria-current="page"] { color: var(--color-teal); }
.mobile-menu .mobile-cta { padding: 1rem 1.25rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 55fr 45fr; gap: 3rem; }
}
.hero-copy h1 { margin-bottom: 1.1rem; }
.hero-copy .lede { margin-bottom: 1.75rem; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.hero-trustline {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  font-weight: 600;
}
.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(155deg, var(--color-navy) 0%, #2F5A3E 100%);
  border: 1px solid var(--color-border);
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.03) contrast(1.02);
}

.data-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
}
:root[data-theme="dark"] .data-grid-bg { opacity: 0.08; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) .data-grid-bg { opacity: 0.08; }
}

/* ---------- Outcome strip ---------- */
.outcome-strip {
  padding-block: 2rem;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.outcome-list {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 700px) {
  .outcome-list { grid-template-columns: repeat(3, 1fr); }
}
.outcome-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
}
.outcome-item .dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--color-teal);
  flex-shrink: 0;
}

/* ---------- Services narrative ---------- */
.service-feature {
  display: grid;
  gap: 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 860px) {
  .service-feature { grid-template-columns: 1.1fr 0.9fr; align-items: center; padding: 3rem; }
}
.service-feature-visual {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  aspect-ratio: 4/3;
  overflow: hidden;
}
.service-feature-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.03) contrast(1.02);
}

.service-editorial {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 700px) {
  .service-editorial { grid-template-columns: 1fr 1fr; }
}
.service-editorial-item {
  padding-top: 1.5rem;
  border-top: 2px solid var(--color-border-strong);
}
.service-editorial-item h3 { margin-bottom: 0.6rem; }
.service-editorial-item p { color: var(--color-text-secondary); }

.section-foot-link { margin-top: 2rem; }

/* ---------- Process ---------- */
.process-list {
  display: grid;
  gap: 2rem;
  counter-reset: step;
}
@media (min-width: 860px) {
  .process-list {
    grid-template-columns: repeat(4, 1fr);
    position: relative;
  }
  .process-list::before {
    content: "";
    position: absolute;
    top: 22px;
    left: 5%;
    right: 5%;
    height: 1px;
    background: var(--color-border-strong);
  }
}
.process-item { position: relative; padding-top: 0; }
.process-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--color-teal);
  color: var(--color-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  background: var(--color-bg);
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
}
.process-item h3 { margin-bottom: 0.4rem; font-size: 1.1rem; }
.process-item p { color: var(--color-text-secondary); font-size: 0.98rem; }

/* ---------- Industries split ---------- */
.industries-split {
  display: grid;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 800px) {
  .industries-split { grid-template-columns: 1fr 1fr; }
}
.industry-panel {
  padding: 2.5rem;
  background: var(--color-surface);
}
.industry-panel:first-child {
  border-bottom: 1px solid var(--color-border);
}
@media (min-width: 800px) {
  .industry-panel:first-child {
    border-bottom: none;
    border-right: 1px solid var(--color-border);
  }
}
.industry-panel h3 { margin-bottom: 0.9rem; }
.industry-panel p { color: var(--color-text-secondary); }

/* ---------- Why ANR ---------- */
.principles-list {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}
@media (min-width: 700px) {
  .principles-list { grid-template-columns: repeat(2, 1fr); }
}
.principle-item {
  display: flex;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}
.principle-item svg { width: 28px; height: 28px; flex-shrink: 0; color: var(--color-teal); }
.principle-item h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.principle-item p { color: var(--color-text-secondary); font-size: 0.98rem; }

/* ---------- Closing CTA ---------- */
.cta-band {
  position: relative;
  background: var(--color-navy);
  color: #fff;
  overflow: hidden;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.82); }
.cta-band-inner {
  position: relative;
  max-width: 720px;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-navy);
  color: rgba(255,255,255,0.85);
  padding-block: 3rem 2rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}
.footer-brand { color: #fff; font-family: var(--font-heading); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; margin-bottom: 0.9rem; }
.site-footer p { color: rgba(255,255,255,0.75); }
.site-footer h2, .site-footer h3 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,0.85); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-nav li { margin-bottom: 0.6rem; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.75rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
}
.footer-legal p { color: rgba(255,255,255,0.7); margin-bottom: 0.5rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1rem;
  font-size: 0.85rem;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-block: 3rem 1rem; }
@media (min-width: 1024px) { .page-hero { padding-block: 4rem 1.5rem; } }
.page-hero h1 { margin-bottom: 1rem; }

.breadcrumb-note { color: var(--color-text-secondary); font-size: 0.95rem; margin-bottom: 1rem; }

/* ---------- Service detail sections ---------- */
.service-detail {
  padding-block: 2.5rem;
  border-top: 1px solid var(--color-border);
}
.service-detail:first-of-type { border-top: none; }
.service-detail-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 860px) {
  .service-detail-grid { grid-template-columns: 0.9fr 1.6fr; gap: 3rem; }
}
.service-detail h2 { margin-bottom: 0.25rem; }
.service-detail-body dl { display: grid; gap: 1.25rem; margin-top: 1rem; }
.service-detail-body dt { font-family: var(--font-heading); font-weight: 700; color: var(--color-navy); margin-bottom: 0.3rem; }
:root[data-theme="dark"] .service-detail-body dt { color: var(--color-text); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) .service-detail-body dt { color: var(--color-text); }
}
.service-detail-body dd { color: var(--color-text-secondary); margin: 0; }
.related-services { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; }

/* ---------- Notice / callout ---------- */
.callout {
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-teal);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin-block: 2rem;
}
.callout p { margin: 0; color: var(--color-text); }

/* ---------- About ---------- */
.company-facts {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.company-facts dl { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem 1.5rem; }
.company-facts dt { font-weight: 600; color: var(--color-text-secondary); }
.company-facts dd { margin: 0; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1.3fr; }
}
.contact-info-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  height: fit-content;
}
.contact-info-card h2 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.contact-info-card .email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 0.25rem;
}

form { margin-top: 0.5rem; }
.form-row { margin-bottom: 1.5rem; }
.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.required-mark { color: var(--color-error); }
.form-row input[type="text"],
.form-row input[type="email"],
.form-row select,
.form-row textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
}
.form-row textarea { min-height: 140px; resize: vertical; }
.form-row input:focus-visible,
.form-row select:focus-visible,
.form-row textarea:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 1px;
}
.form-hint { font-size: 0.9rem; color: var(--color-text-secondary); margin-top: 0.35rem; }
.form-error-text {
  display: none;
  color: var(--color-error);
  font-size: 0.9rem;
  margin-top: 0.4rem;
  font-weight: 600;
}
.form-row.has-error input,
.form-row.has-error select,
.form-row.has-error textarea {
  border-color: var(--color-error);
}
.form-row.has-error .form-error-text { display: block; }

.checkbox-row { display: flex; align-items: flex-start; gap: 0.7rem; }
.checkbox-row input[type="checkbox"] { width: 20px; height: 20px; margin-top: 0.2rem; flex-shrink: 0; }
.checkbox-row label { font-weight: 400; margin-bottom: 0; }

.error-summary {
  display: none;
  background: var(--color-error-bg);
  border: 2px solid var(--color-error);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.error-summary.is-visible { display: block; }
.error-summary h2 { font-size: 1.05rem; color: var(--color-error); margin-bottom: 0.6rem; }
.error-summary ul { display: grid; gap: 0.4rem; }
.error-summary a { color: var(--color-error); font-weight: 600; }

.form-success {
  display: none;
  background: var(--color-success-bg);
  border: 2px solid var(--color-success);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.form-success.is-visible { display: block; }
.form-success h2 { color: var(--color-success); font-size: 1.1rem; margin-bottom: 0.5rem; }

.honeypot-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Accessibility / privacy content pages ---------- */
.prose { max-width: var(--reading-max); }
.prose h2 { margin-top: 2.5rem; margin-bottom: 0.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 1rem; color: var(--color-text-secondary); }
.prose ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1rem; }
.prose li { color: var(--color-text-secondary); margin-bottom: 0.4rem; }
.prose a { font-weight: 600; }

/* ---------- 404 ---------- */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
}
.error-page-inner { max-width: 560px; }
.error-code {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-teal);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--transition-base), transform var(--transition-base);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Visually hidden ---------- */
.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;
}
