/* ==========================================================================
   UnityLink — Shared Design System v3 "Quiet Premium / Opening Doors"
   Editorial, calm, credible. Warm and dignity-first. Cinematic motion.
   Fonts: "Fraunces" (500/600/700) headings · "Inter" (400/500/600) body
   Load on every page:
   <link rel="preconnect" href="https://fonts.googleapis.com">
   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
   <link href="https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
   Also load on every page (end of <head>):
   <script src="scripts.js" defer></script>
   Motion resilience: all hidden initial states are gated behind html.js
   (added by scripts.js) AND prefers-reduced-motion: no-preference, so
   content is always visible if JS fails or motion is reduced.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --navy: #182338;
  --navy-soft: #243350;
  --clay: #C25E3C;
  --clay-dark: #A64B2E;
  --gold: #C9A227;
  --gold-deep: #A8861D;      /* gold for text on light backgrounds */
  --sage: #7C8B72;
  --sage-dark: #67755E;
  --paper: #FAF7F2;
  --linen: #F1EAE0;
  --ink: #20242C;
  --stone: #5F6470;
  --white: #fff;

  --line: #E7DFD3;           /* hairline borders */
  --line-dark: #CFC4B2;      /* hover borders */
  --line-input: #D9D0C2;     /* form field borders */

  /* Legacy aliases (safety net for any old inline usage on inner pages) */
  --indigo: var(--navy);
  --indigo-deep: var(--navy);
  --coral: var(--clay);
  --coral-dark: var(--clay-dark);
  --sun: var(--gold);
  --teal: var(--sage);
  --cream: var(--paper);
  --soft: var(--stone);

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --radius-btn: 8px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --radius-arch: 26px 26px 10px 10px;   /* doorway motif */

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);   /* cinematic ease */

  --shadow-sm: 0 1px 2px rgba(24, 35, 56, 0.05), 0 8px 24px rgba(24, 35, 56, 0.06);
  --shadow-md: 0 1px 2px rgba(24, 35, 56, 0.06), 0 12px 32px rgba(24, 35, 56, 0.09);
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.14;
  color: var(--navy);
  letter-spacing: -0.012em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: -0.015em; }
h3 { font-size: 1.22rem; }

p { color: var(--stone); }

a { color: var(--clay); text-decoration: none; }
a:hover { color: var(--clay-dark); }

/* Animated hairline underline for in-copy + footer links */
p a:not(.btn):not(.contact-chip),
.footer-links a,
.footer-contact a,
.footer-urgent a,
.urgent-strip a,
.breadcrumb a {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.35s var(--ease-out), color 0.2s ease;
}
p a:not(.btn):not(.contact-chip):hover,
.footer-links a:hover,
.footer-contact a:hover,
.footer-urgent a:hover,
.urgent-strip a:hover,
.breadcrumb a:hover {
  background-size: 100% 1px;
}

ul { list-style: none; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: var(--gold); color: var(--navy); }

/* ---------- 3. Layout helpers ---------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 112px 0; }
.section-alt {
  background: var(--linen);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 680px;
  margin: 0 auto 64px;
  text-align: center;
}
.section-head p { margin-top: 16px; font-size: 1.05rem; }

/* Kicker — quiet letterspaced small caps, no pill.
   Optional numbering: <span class="kicker"><span class="kicker-num">01</span>Who we help</span>
   Un-numbered kickers (inner pages) render exactly as before. */
.kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 16px;
}
.kicker-teal { color: var(--sage-dark); background: none; }
.kicker-sun { color: var(--gold-deep); background: none; }

.kicker-num {
  color: var(--gold-deep);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}
.kicker-num::after {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
  vertical-align: middle;
  margin: 0 12px;
  transform: translateY(-1px);
}

/* On dark heroes the kicker turns gold */
.hero .kicker,
.page-hero .kicker,
.cta-band .kicker { color: var(--gold); }
.hero .kicker-num,
.page-hero .kicker-num,
.cta-band .kicker-num { color: inherit; }

.highlight { color: var(--gold); background: none; }

/* Decorative shapes from v1 — retired. Old markup disappears harmlessly. */
.shape { display: none !important; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 28px;
  border-radius: var(--radius-btn);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
              box-shadow 0.25s ease, transform 0.25s var(--ease-out);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--clay);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--clay-dark); color: var(--white); box-shadow: var(--shadow-md); }

/* Primary buttons carry a quiet arrow that nudges forward on hover */
.btn-primary::after {
  content: "";
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M14 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.3s var(--ease-out);
}
.btn-primary:hover::after { transform: translateX(4px); }

/* Outline button for dark (navy) backgrounds */
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: var(--white);
}

/* Outline button for light backgrounds */
.btn-ghost-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost-dark:hover { background: var(--navy); color: var(--white); }

.btn-teal {
  background: var(--sage);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-teal:hover { background: var(--sage-dark); color: var(--white); }

.btn-lg { padding: 15px 34px; font-size: 1.03rem; }
.btn-block { width: 100%; }

/* ---------- 5. Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.35s ease;
}
/* Added by scripts.js after 8px of scroll */
.site-header.is-scrolled {
  box-shadow: 0 1px 0 rgba(24, 35, 56, 0.04), 0 10px 28px rgba(24, 35, 56, 0.09);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.32rem;
  letter-spacing: 0.002em;
  color: var(--navy);
  text-decoration: none;
}
.logo:hover { color: var(--navy); }
.logo span:not(.logo-mark) { color: var(--clay); }

/* Logomark — transparent tile holding the inline "opening doors" SVG
   (two interlocking arches: clay + gold). No box, no background. */
.logo-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 0;
  background: transparent;
  color: var(--clay); /* fallback if legacy "U" markup remains on a page */
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
}
.logo span.logo-mark { color: var(--clay); }
.logo-mark svg { width: 100%; height: 100%; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--ink);
  padding: 9px 13px;
  border-radius: var(--radius-btn);
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-links a:hover { background: rgba(24, 35, 56, 0.05); color: var(--navy); }
.nav-links a.active { color: var(--clay); font-weight: 600; }

.nav-links .btn {
  padding: 10px 20px;
  font-size: 0.92rem;
  margin-left: 10px;
  color: var(--white);
}
.nav-links .btn:hover { background: var(--clay-dark); color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
  border-radius: var(--radius-btn);
}
.nav-toggle:hover { background: rgba(24, 35, 56, 0.05); }
.nav-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  margin: 6px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 6. Urgent strip (directly under header, every page) ---------- */
.urgent-strip {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--navy-soft);
}
.urgent-strip-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 9px;
  padding-bottom: 9px;
}
.urgent-strip svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: var(--gold);
}
.urgent-strip p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.89rem;
  font-weight: 500;
  line-height: 1.5;
}
.urgent-strip a {
  color: var(--gold);
  font-weight: 600;
  white-space: nowrap;
}
.urgent-strip a:hover { color: var(--white); }
.urgent-strip .strip-sep { color: rgba(255, 255, 255, 0.35); margin: 0 2px; }

/* ---------- 7. Hero (homepage) ---------- */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding: 108px 0 116px;
  overflow: hidden;
}

/* Asymmetric two-column stage: copy left, layered arches right */
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 64px;
  align-items: center;
}

.hero-inner { max-width: 640px; }
.hero-inner::before {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 24px;
}

.hero h1 { color: var(--white); margin: 18px 0 24px; }
.hero p.lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.14rem;
  line-height: 1.75;
  max-width: 580px;
  margin-bottom: 40px;
}

/* Hero badge — a plain letterspaced kicker, no pill */
.hero-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}
.hero-inner .hero-actions { margin-bottom: 0; }

/* Layered "opening doors" composition — flat, abstract, premium.
   Each layer carries data-depth for the gentle parallax in scripts.js. */
.hero-art {
  position: relative;
  height: 480px;
}
.hero-arch {
  position: absolute;
  will-change: transform;
}
.hero-arch-sage { left: 2%; top: 16px; width: 216px; }
.hero-arch-gold { left: 27%; top: 78px; width: 238px; }
.hero-arch-clay { right: 4px; bottom: 32px; width: 186px; }

/* Reassurance row with small SVG check icons */
.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}
.check-row li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.93rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}
.check-row li::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A227' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.5l5 5 10-11'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* If a check-row is used on a light section, flip the text colour */
.section .check-row li,
.section-alt .check-row li { color: var(--ink); }

/* ---------- 7b. Stats / assurance band (slim, hairline-separated) ---------- */
.stats-band {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.stats-band-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 32px 0;
}
.stat {
  padding: 4px 32px;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.stat span {
  display: block;
  margin-top: 3px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ---------- 8. Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding: 72px 0 80px;
}
.page-hero .container::before {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 20px;
}
.page-hero h1 { color: var(--white); margin: 14px 0 14px; font-size: clamp(2rem, 4vw, 3rem); }
.page-hero p.lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 620px;
}
.page-hero .hero-actions { margin: 32px 0 0; }

/* ---------- 9. Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}
.breadcrumb a { color: rgba(255, 255, 255, 0.85); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: rgba(255, 255, 255, 0.35); }
.breadcrumb .current { color: var(--gold); }

/* ---------- 10. Cards ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s var(--ease-out);
}
.card:hover {
  border-color: var(--line-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  color: var(--ink);
}
.card h3 { margin: 22px 0 10px; }
.card p { font-size: 0.95rem; flex-grow: 1; }

/* Icon tile — arch-topped (doorway motif). 24×24 inline SVG line icon inside */
.card-icon {
  width: 52px;
  height: 58px;
  border-radius: var(--radius-arch);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem; /* graceful fallback for any legacy glyphs */
  color: var(--clay);
  background: rgba(194, 94, 60, 0.10);
}
.card-icon svg { width: 26px; height: 26px; }

/* Colour variants — class names kept, recoloured to the new palette */
.card-teal .card-icon { color: var(--sage-dark); background: rgba(124, 139, 114, 0.14); }
.card-sun .card-icon { color: var(--gold-deep); background: rgba(201, 162, 39, 0.14); }
.card-indigo .card-icon { color: var(--navy); background: rgba(24, 35, 56, 0.07); }

.card-link {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--clay);
}
.card-link svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease-out); }
.card:hover .card-link { text-decoration: underline; text-underline-offset: 4px; }
.card:hover .card-link svg { transform: translateX(4px); }
.card-teal .card-link { color: var(--sage-dark); }
.card-sun .card-link { color: var(--gold-deep); }
.card-indigo .card-link { color: var(--navy); }

/* Plain info card (non-link) */
.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.info-card:hover { border-color: var(--line-dark); box-shadow: var(--shadow-sm); }
.info-card h3 { margin-bottom: 10px; }

/* ---------- 11. Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.step {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
.step h3 { margin: 22px 0 10px; }
.step p { font-size: 0.95rem; }

/* Serif numeral inside a thin navy ring */
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--navy);
  background: transparent;
  color: var(--clay);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.4rem;
  box-shadow: none;
}

/* ---------- 12. Commitments band (formerly trust strip) ---------- */
.trust-strip {
  background: var(--linen);
  color: var(--ink);
  padding: 96px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 36px;
  text-align: left;
}
.trust-item h3 { color: var(--navy); font-size: 1.1rem; margin-top: 18px; }
.trust-item p { color: var(--stone); font-size: 0.93rem; margin-top: 8px; }
/* Arch-topped, echoing the doorway */
.trust-icon {
  width: 46px;
  height: 52px;
  margin: 0;
  border-radius: var(--radius-arch);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem; /* graceful fallback for any legacy glyphs */
  color: var(--clay);
  background: var(--white);
  border: 1px solid var(--line);
}
.trust-icon svg { width: 24px; height: 24px; }

/* ---------- 13. CTA band ---------- */
.cta-band {
  position: relative;
  background: var(--navy);
  color: var(--white);
  border-top: 2px solid var(--gold);
  padding: 96px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 16px; }
.cta-band p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
  max-width: 560px;
  margin: 0 auto 32px;
}
.cta-band .btn-primary {
  background: var(--clay);
  color: var(--white);
  box-shadow: none;
}
.cta-band .btn-primary:hover { background: var(--clay-dark); color: var(--white); }

/* ---------- 14. Forms ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow-sm);
  max-width: 720px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 22px;
}
.form-grid .form-field-full { grid-column: 1 / -1; }

.form-field { display: flex; flex-direction: column; gap: 8px; }

.form-field label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}
.form-field .hint { font-size: 0.82rem; color: var(--stone); font-weight: 400; }
.required { color: var(--clay); }

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-input);
  border-radius: var(--radius-btn);
  padding: 13px 15px;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23182338' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: #9FA4AE; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(194, 94, 60, 0.15);
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--line-input);
  border-radius: 10px;
  padding: 16px 18px;
}
.consent-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin-top: 3px;
  accent-color: var(--clay);
  cursor: pointer;
}
.consent-row label {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--stone);
  font-family: var(--font-body);
  cursor: pointer;
}

.form-submit { margin-top: 26px; }

.form-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--stone);
  margin-top: 16px;
}

/* ---------- 15. Contact chips (phone / WhatsApp / email) ---------- */
.contact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  padding: 12px 20px;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--navy);
  transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s var(--ease-out);
}
.contact-chip svg { width: 18px; height: 18px; color: var(--clay); }
.contact-chip:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
  color: var(--navy);
}

/* ---------- 16. Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  padding: 80px 0 0;
  border-top: 2px solid var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 18px;
}
.footer-col p { color: rgba(255, 255, 255, 0.72); font-size: 0.93rem; }

.site-footer .logo { color: var(--white); margin-bottom: 16px; }
.site-footer .logo span:not(.logo-mark) { color: var(--gold); }
/* The logomark SVG sits directly on navy — no tile behind it */
.site-footer .logo-mark { background: transparent; color: var(--gold); }

.footer-contact { margin-top: 22px; }
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.78);
}
.footer-contact svg { width: 17px; height: 17px; flex: 0 0 17px; color: var(--gold); }
.footer-contact a { color: rgba(255, 255, 255, 0.9); }
.footer-contact a:hover { color: var(--gold); }

.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.93rem;
}
.footer-links a:hover { color: var(--gold); }

.footer-urgent li {
  margin-bottom: 12px;
  font-size: 0.93rem;
  padding-left: 22px;
  position: relative;
}
.footer-urgent li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 12px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A227' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M14 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.footer-urgent a { color: var(--gold); font-weight: 600; }
.footer-urgent a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 24px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- 17. Utilities ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 40px; }
.mb-2 { margin-bottom: 24px; }

/* ---------- 18. Motion system (scroll reveal, hero entrance) ----------
   All hidden initial states live behind html.js (added by scripts.js)
   AND prefers-reduced-motion: no-preference. If JS never runs, or the
   visitor prefers reduced motion, everything is simply visible. */
@media (prefers-reduced-motion: no-preference) {

  /* Scroll reveal — .reveal on an element, .reveal-stagger on a parent
     whose direct children rise in with a 90ms cascade (delays set by JS).
     scripts.js adds .is-visible on intersection and .reveal-done once
     the animation has finished, handing transitions back to components. */
  .js .reveal:not(.reveal-done),
  .js .reveal-stagger:not(.reveal-done) > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  }
  .js .reveal.is-visible:not(.reveal-done),
  .js .reveal-stagger.is-visible:not(.reveal-done) > * {
    opacity: 1;
    transform: translateY(0);
  }

  /* Hero entrance — sequenced rise on load (homepage) */
  .js .hero .hero-badge,
  .js .hero h1,
  .js .hero p.lead,
  .js .hero .hero-actions,
  .js .hero .check-row,
  .js .hero .hero-art,
  .js .stats-band-inner {
    opacity: 0;
    animation: rise-in 0.9s var(--ease-out) forwards;
  }
  .js .hero .hero-badge   { animation-delay: 0.08s; }
  .js .hero h1            { animation-delay: 0.18s; }
  .js .hero p.lead        { animation-delay: 0.30s; }
  .js .hero .hero-actions { animation-delay: 0.42s; }
  .js .hero .check-row    { animation-delay: 0.52s; }
  .js .hero .hero-art     { animation-delay: 0.25s; animation-duration: 1.1s; }
  .js .stats-band-inner   { animation-delay: 0.60s; }

  /* Gentle single-block rise for inner page heroes */
  .js .page-hero .container {
    opacity: 0;
    animation: rise-in 0.8s var(--ease-out) 0.06s forwards;
  }

  @keyframes rise-in {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* ---------- 19. Responsive ---------- */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero-layout { grid-template-columns: 1fr; gap: 0; }
  .hero-art { display: none; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: -24px;
    right: -24px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--white);
    padding: 12px 20px 20px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 14px; font-size: 1rem; border-radius: var(--radius-btn); }
  .nav-links .btn { margin: 10px 0 0; justify-content: center; }

  .section { padding: 72px 0; }
  .hero { padding: 76px 0 84px; }
  .page-hero { padding: 56px 0 64px; }
  .trust-strip { padding: 64px 0; }
  .section-head { margin-bottom: 48px; }

  .stats-band-inner { grid-template-columns: 1fr 1fr; row-gap: 24px; padding: 28px 0; }
  .stat { padding: 2px 0 2px 24px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }

  .urgent-strip-inner { flex-wrap: wrap; row-gap: 2px; }
}

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 32px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-actions .btn { width: 100%; }
  .cta-band { padding: 64px 0; }
}

/* ---------- 20. Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
  /* Belt and braces: the motion system never hides content here */
  .reveal,
  .reveal-stagger > *,
  .hero .hero-badge,
  .hero h1,
  .hero p.lead,
  .hero .hero-actions,
  .hero .check-row,
  .hero .hero-art,
  .stats-band-inner,
  .page-hero .container {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-arch { transform: none !important; }
}
