/* ==========================================================================
   AGELESS MEDICAL AESTHETICS — Design System
   Mobile-first. CSS Custom Properties + Grid/Flexbox. No build step.
   Palette, type scale and metallic treatments derive from the brand reference.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Polished-gold ramp, cooled a second time (see BUILD-NOTES, "Colour
     temperature"). Saturation is x0.70 of the champagne pass and the HUE IS
     HELD — rotating toward green is what produced the olive first attempt,
     so temperature comes from desaturation here and from genuinely cool
     neutrals below, never from pushing gold off its own axis. */
  --gold-deep:    #676358;
  --gold-dark:    #777266;   /* text + links: 4.79:1 on white */
  --gold:         #A9A493;
  --gold-mid:     #C0BCAD;
  --gold-light:   #DAD7CD;
  --gold-pale:    #EEEBE6;
  --gold-wash:    #F8F8F6;

  /* Silver ramp — the secondary band / rule treatment. A faint blue cast at
     the same lightness: dead-neutral grey reads warm next to cool neutrals. */
  --silver-dark:  #8A8E92;
  --silver:       #B7B9BB;
  --silver-mid:   #D0D2D4;
  --silver-light: #ECEDEE;
  --silver-wash:  #F6F6F6;

  /* Neutrals — these carry most of the temperature change. */
  --ink:          #24262A;
  --ink-soft:     #545A63;
  --ink-mute:     #5F6670;   /* was #857F76, which failed AA at 3.97:1 */
  --line:         #DCE0E4;
  --cream:        #F7F9FA;
  --white:        #FFFFFF;

  /* Semantic */
  --bg:           #E1E5EA;        /* the field the white panels sit on */
  --panel:        var(--white);
  --text:         var(--ink);
  --text-soft:    var(--ink-soft);
  --focus:        #44566A;

  /* Metallic fills */
  --foil-gold: linear-gradient(
    100deg,
    #7F7A6E 0%, #BEB9AA 16%, #E4E1D9 31%, #A9A493 47%,
    #777266 62%, #D0CCC1 80%, #8E897D 100%
  );
  --foil-silver: linear-gradient(
    100deg,
    #969A9E 0%, #D7D8D9 14%, #F4F4F4 28%, #C2C4C6 44%,
    #9B9EA1 60%, #E3E4E5 80%, #AAADB0 100%
  );
  /* Kept a separate, darker ramp from --foil-gold on purpose: the band ramp
     blows out to near-white as a highlight, and that same stop on a white
     page leaves a headline nearly invisible. Do not collapse them. */
  --foil-gold-text: linear-gradient(
    100deg,
    #676358  0%, #868175 14%, #B1AC9F 28%, #7F7A6E 44%,
    #676358 60%, #9B9685 78%, #716C60 100%
  );

  /* Nav / footer band, traced off the approved design: brushed silver on the
     left third, warming through champagne into gold across the right. */
  --band: linear-gradient(
    96deg,
    #8D8F90   0%,
    #C5C7C8   5%,
    #EEF0F1  12%,
    #D4D6D7  21%,
    #B3B5B6  29%,
    #DBD9D3  38%,
    #BFBAAC  48%,
    #A49F8E  58%,
    #CAC7BA  70%,
    #ABA697  82%,
    #948E81  92%,
    #888A8B 100%
  );

  /* Type */
  --font-display: 'Jost', 'Futura', 'Century Gothic', 'Avenir Next', system-ui, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing scale */
  --s-1: 0.25rem; --s-2: 0.5rem;  --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.5rem;  --s-6: 2rem;    --s-7: 3rem;    --s-8: 4rem;
  --s-9: 6rem;    --s-10: 8rem;

  /* Layout */
  --wrap:      1200px;
  --wrap-tight: 900px;
  --radius:    2px;
  --radius-lg: 4px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur:  260ms;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-decoration: none; }
a:hover { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }

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

/* Screen-reader-only, but focusable when it needs to be */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 999;
  background: var(--ink); color: var(--white);
  padding: var(--s-3) var(--s-5); font-weight: 600; letter-spacing: 0.06em;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--s-4); color: var(--white); }

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.12;
  margin: 0 0 var(--s-4);
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.1rem, 6.2vw, 4.15rem); text-transform: uppercase; letter-spacing: 0.035em; }
h2 { font-size: clamp(1.65rem, 3.9vw, 2.7rem); text-transform: uppercase; letter-spacing: 0.05em; }
h3 { font-size: clamp(1.15rem, 2.1vw, 1.45rem); letter-spacing: 0.03em; font-weight: 400; }
h4 { font-size: 1.05rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; }

p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  color: var(--text-soft);
  line-height: 1.75;
  max-width: 62ch;
}

/* Metallic text — the hero / section-title treatment */
.foil {
  background: var(--foil-gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
/* Fallback for engines without background-clip:text */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .foil { color: var(--gold-dark); -webkit-text-fill-color: currentColor; }
}

/* Small caps eyebrow above a section title */
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.76rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 500;
  margin: 0 0 var(--s-3);
  display: block;
}

/* Thin gold rule with a diamond centre — recurring divider motif */
.rule {
  display: flex; align-items: center; justify-content: center;
  gap: var(--s-3); margin: var(--s-5) 0;
}
.rule::before, .rule::after {
  content: ''; height: 1px; flex: 1 1 auto; max-width: 120px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}
.rule span {
  width: 7px; height: 7px; transform: rotate(45deg);
  background: var(--foil-gold); flex: 0 0 auto;
}
.rule--left { justify-content: flex-start; }
.rule--left::after { display: none; }

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap--tight { width: min(100% - 2.5rem, var(--wrap-tight)); margin-inline: auto; }

.section { padding-block: clamp(var(--s-7), 8vw, var(--s-9)); }
.section--tight { padding-block: clamp(var(--s-6), 5vw, var(--s-7)); }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section--wash  { background: var(--gold-wash); }
.section--ink   { background: var(--ink); color: var(--white); }
.section--ink .lede, .section--ink p { color: rgba(255,255,255,0.82); }

.section-head { text-align: center; margin-bottom: var(--s-6); }
.section-head .lede { margin-inline: auto; }
.section-head--left { text-align: left; }
.section-head--left .lede { margin-inline: 0; }

/* --------------------------------------------------------------------------
   5. Metallic band (nav + footer chrome)
   -------------------------------------------------------------------------- */
.band {
  background: var(--band);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), inset 0 -1px 0 rgba(0,0,0,0.14);
}

/* Section nav band — the approved design repeats the navigation immediately
   above the tile grid. It is a genuine second route to the same four pages, so
   it is marked aria-hidden and the links are removed from the tab order: a
   screen reader or keyboard user has already passed the real nav above. */
.section-band {
  background: var(--band);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), inset 0 -1px 0 rgba(0,0,0,0.14);
}
.section-band ul {
  display: flex; align-items: stretch; justify-content: center;
  list-style: none; margin: 0; padding: 0; min-height: 52px;
  flex-wrap: wrap;
}
/* The <li> must be a flex container, exactly as `.nav__list li` is. The <ul>
   stretches each <li> to the full band height, but a list-item <li> does not
   pass that height on, so the <a> kept its own 25px content height and sat
   flush against the top of a 52px cell — 27px of empty band beneath it, with
   the full-height dividers making the misalignment obvious. */
.section-band li { display: flex; }
.section-band li + li { border-left: 1px solid rgba(255,255,255,0.7); }
.section-band a {
  display: flex; align-items: center;
  font-family: var(--font-display); font-size: clamp(0.86rem, 1.15vw, 1rem); font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink);
  padding: 0 clamp(var(--s-3), 1.9vw, var(--s-5));
  text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}
.section-band a:hover { color: var(--gold-deep); background: rgba(255,255,255,0.35); text-decoration: none; }

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  font-family: var(--font-display);
  font-size: 0.83rem; font-weight: 500;
  letter-spacing: 0.19em; text-transform: uppercase;
  padding: 1.05rem 2.3rem;
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; text-align: center; text-decoration: none;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--foil-gold);
  color: #FFF;
  border-color: var(--gold-dark);
  box-shadow: 0 2px 14px rgba(36, 44, 58, 0.26);
  text-shadow: 0 1px 2px rgba(24, 30, 40, 0.45);
}
.btn--primary:hover { color: #FFF; box-shadow: 0 8px 24px rgba(36, 44, 58, 0.34); }

.btn--outline {
  background: transparent; color: var(--gold-dark); border-color: var(--gold);
}
.btn--outline:hover { background: var(--gold-wash); color: var(--gold-deep); }

.btn--ghost-light {
  background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55);
}
.btn--ghost-light:hover { background: rgba(255,255,255,0.1); color: var(--white); }

.btn--sm { padding: 0.7rem 1.4rem; font-size: 0.74rem; letter-spacing: 0.15em; }
.btn--block { display: flex; width: 100%; }

.btn-row {
  display: flex; flex-wrap: wrap; gap: var(--s-3);
}
.btn-row--center { justify-content: center; }

/* --------------------------------------------------------------------------
   7. Header + navigation
   -------------------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; }

.header-mark {
  background: var(--white);
  padding-block: var(--s-4);
  display: flex; justify-content: center;
  border-bottom: 1px solid var(--silver-light);
}
.header-mark a { display: inline-flex; }
.logo { width: clamp(104px, 15vw, 138px); height: auto; }

.nav {
  position: relative;
}
.nav__inner {
  display: flex; align-items: stretch; justify-content: center;
  min-height: 54px;
}
.nav__list {
  display: none;
  list-style: none; margin: 0; padding: 0;
  align-items: stretch;
}
.nav__list li { display: flex; }
/* The approved design's PRIMARY band runs unbroken — no dividers. Only the
   secondary band above the tiles is segmented. */

.nav__link {
  display: flex; align-items: center;
  font-family: var(--font-display);
  font-size: clamp(0.86rem, 1.15vw, 1rem); font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink);
  padding: 0 clamp(var(--s-3), 1.9vw, var(--s-5));
  text-shadow: 0 1px 0 rgba(255,255,255,0.5);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav__link:hover,
.nav__link:focus-visible { color: var(--gold-deep); background: rgba(255,255,255,0.35); text-decoration: none; }
.nav__link[aria-current="page"] {
  color: var(--gold-deep);
  box-shadow: inset 0 -3px 0 var(--gold-dark);
}

/* Mobile toggle */
.nav__toggle {
  display: flex; align-items: center; gap: var(--s-3);
  margin-inline: auto;
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink); padding: var(--s-3) var(--s-4);
}
.nav__toggle-bars { display: block; width: 20px; height: 12px; position: relative; }
.nav__toggle-bars i,
.nav__toggle-bars::before,
.nav__toggle-bars::after {
  content: ''; position: absolute; left: 0; right: 0; height: 1.5px;
  background: var(--ink); transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav__toggle-bars::before { top: 0; }
.nav__toggle-bars i { top: 5px; }
.nav__toggle-bars::after { bottom: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars i { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }

.nav__panel {
  display: none;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.nav__panel.is-open { display: block; }
.nav__panel ul { list-style: none; margin: 0; padding: 0; }
.nav__panel li + li { border-top: 1px solid var(--silver-light); }
.nav__panel a {
  display: block; padding: var(--s-4) var(--s-5);
  font-family: var(--font-display); font-size: 0.85rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink);
}
.nav__panel a:hover { background: var(--gold-wash); color: var(--gold-deep); text-decoration: none; }
.nav__panel .nav__cta { padding: var(--s-4) var(--s-5); border-top: 1px solid var(--silver-light); }

@media (min-width: 860px) {
  .nav__list { display: flex; }
  .nav__toggle { display: none; }
  .nav__panel { display: none !important; }
}

/* Utility bar above the mark — phone + hours, desktop only */
.topbar {
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.topbar__inner {
  display: none; align-items: center; justify-content: space-between;
  min-height: 36px; gap: var(--s-5);
}
.topbar a { color: var(--gold-light); }
.topbar a:hover { color: var(--white); }
@media (min-width: 860px) { .topbar__inner { display: flex; } }

/* --------------------------------------------------------------------------
   8. Cards / tiles
   -------------------------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-5);
}

/* Service grid — traced off the approved design: a white panel divided by
   hairlines into 3 x 2, each cell nothing but a gold line icon over a
   letter-spaced caps label. The whole cell is the link.
   Benefit copy deliberately lives on the TREATMENTS page, not in here —
   putting it in the tile is what breaks the resemblance. */
.tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--silver-mid);
  overflow: hidden;
}
@media (min-width: 560px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(3, 1fr); } }

.tile {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: var(--s-4);
  min-height: clamp(170px, 22vw, 215px);
  padding: clamp(var(--s-5), 3.5vw, var(--s-6)) var(--s-4);
  background: var(--white);
  /* Hairline grid: every cell draws its right + bottom edge, then the cells on
     the last column/row have theirs removed, so the outer border never doubles. */
  border-right: 1px solid var(--silver-mid);
  border-bottom: 1px solid var(--silver-mid);
  transition: background-color var(--dur) var(--ease);
}
@media (min-width: 900px) {
  .tile:nth-child(3n) { border-right: 0; }
  .tile:nth-last-child(-n+3) { border-bottom: 0; }
}
@media (min-width: 560px) and (max-width: 899px) {
  .tile:nth-child(2n) { border-right: 0; }
  .tile:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 559px) {
  .tile { border-right: 0; }
  .tile:last-child { border-bottom: 0; }
}

.tile:hover, .tile:focus-within { background: var(--gold-wash); }
.tile__icon { width: 54px; height: 54px; color: var(--gold-dark); }
.tile__icon svg { width: 100%; height: 100%; }
.tile__name {
  font-family: var(--font-display); font-size: clamp(0.82rem, 1.5vw, 0.95rem);
  font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); margin: 0; line-height: 1.35;
}
/* Stretched link — the whole cell is the hit area, with no nested interactives.
   The <a> stays inside the heading so the link text IS the accessible name. */
.tile__name a { color: inherit; text-decoration: none; }
.tile__link::after { content: ''; position: absolute; inset: 0; }
.tile__link:hover { text-decoration: none; color: var(--gold-deep); }
.tile:hover .tile__name a { color: var(--gold-deep); }

/* --------------------------------------------------------------------------
   9. Forms
   -------------------------------------------------------------------------- */
.field { margin-bottom: var(--s-4); }
.field label,
.form-label {
  display: block; margin-bottom: var(--s-2);
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink);
}
.field .hint { font-size: 0.82rem; color: var(--ink-mute); margin-top: var(--s-2); }
.req { color: var(--gold-dark); }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="password"], input[type="search"], select, textarea {
  width: 100%;
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--white);
  border: 1px solid var(--silver-mid);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(68, 86, 106, 0.22);
}
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] {
  border-color: #B4443A; box-shadow: 0 0 0 3px rgba(180, 68, 58, 0.14);
}
.field-error { color: #9B3227; font-size: 0.85rem; margin-top: var(--s-2); }

.form-grid {
  display: grid; grid-template-columns: 1fr; gap: 0 var(--s-4);
}
@media (min-width: 700px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .field--full { grid-column: 1 / -1; }
}

.consent {
  display: flex; gap: var(--s-3); align-items: flex-start;
  font-size: 0.87rem; color: var(--text-soft); line-height: 1.6;
}
.consent input[type="checkbox"] { width: 18px; height: 18px; margin-top: 3px; flex: 0 0 auto; accent-color: var(--gold-dark); }

.form-status {
  padding: var(--s-4); border-radius: var(--radius); margin-top: var(--s-4);
  font-size: 0.92rem; display: none;
}
.form-status.is-visible { display: block; }
.form-status--ok   { background: var(--gold-wash); border: 1px solid var(--gold-light); color: var(--gold-deep); }
.form-status--err  { background: #FBEEEC; border: 1px solid #E6BDB7; color: #9B3227; }

/* --------------------------------------------------------------------------
   10. Accordion (FAQ)
   -------------------------------------------------------------------------- */
.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  background: none; border: 0; cursor: pointer; text-align: left;
  padding: var(--s-5) 0;
  font-family: var(--font-display); font-size: clamp(1rem, 1.7vw, 1.12rem); font-weight: 400;
  color: var(--ink); letter-spacing: 0.015em; line-height: 1.4;
}
.accordion__trigger:hover { color: var(--gold-deep); }
/* The question text MUST stay wrapped in this one element. The trigger is a flex
   row with `justify-content: space-between`, so any inline element in the question
   — a <sup> trademark, an <em> — becomes a separate flex item and space-between
   spreads the free width BETWEEN the pieces. A <sup>&reg;</sup> was being pushed
   158px clear of the words on either side of it, tearing the sentence in three. */
.accordion__label { flex: 1 1 auto; min-width: 0; }
.accordion__icon {
  flex: 0 0 auto; width: 22px; height: 22px; position: relative;
}
.accordion__icon::before,
.accordion__icon::after {
  content: ''; position: absolute; background: var(--gold-dark);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.accordion__icon::before { top: 50%; left: 0; right: 0; height: 1.5px; transform: translateY(-50%); }
.accordion__icon::after  { left: 50%; top: 0; bottom: 0; width: 1.5px; transform: translateX(-50%); }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { opacity: 0; transform: translateX(-50%) rotate(90deg); }

.accordion__panel {
  display: none;
  padding: 0 0 var(--s-5);
  max-width: 74ch;
  color: var(--text-soft);
}
.accordion__panel.is-open { display: block; }

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.site-footer { margin-top: 0; }

.footer-main { background: var(--ink); color: rgba(255,255,255,0.78); padding-block: var(--s-7); }
.footer-main a { color: rgba(255,255,255,0.78); }
.footer-main a:hover { color: var(--gold-light); }
.footer-cols {
  display: grid; gap: var(--s-6);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .footer-cols { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-cols { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } }

.footer-col h4 { color: var(--gold-light); margin-bottom: var(--s-4); font-size: 0.8rem; letter-spacing: 0.2em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: var(--s-2); font-size: 0.92rem; }
.footer-col address { font-style: normal; font-size: 0.92rem; line-height: 1.8; }

.newsletter { display: flex; gap: var(--s-2); margin-top: var(--s-3); flex-wrap: wrap; }
.newsletter input { flex: 1 1 170px; background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.25); color: var(--white); }
.newsletter input::placeholder { color: rgba(255,255,255,0.45); }

.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.14);
  margin-top: var(--s-6); padding-top: var(--s-5);
  font-size: 0.8rem; color: rgba(255,255,255,0.55); line-height: 1.7;
}
.footer-legal__links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); margin-bottom: var(--s-3); }

/* Agency credit. Quieter than the copyright line above it, with the one link
   underlined so it reads as a link at this size rather than as bolder text. */
.footer-credit { margin-top: var(--s-3); color: rgba(255,255,255,0.42); }
.footer-credit a {
  color: rgba(255,255,255,0.62);
  text-decoration: underline; text-underline-offset: 2px;
  text-decoration-color: rgba(255,255,255,0.28);
}
.footer-credit a:hover { color: var(--gold-light); text-decoration-color: var(--gold-light); }

.social { display: flex; gap: var(--s-3); margin-top: var(--s-3); }
.social a {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.25); border-radius: 50%;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.social a:hover { border-color: var(--gold-light); background: rgba(255,255,255,0.07); }
.social svg { width: 17px; height: 17px; }

/* --------------------------------------------------------------------------
   12. Utilities
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: var(--s-4); }

/* --------------------------------------------------------------------------
   Document pages — privacy, terms, accessibility, sitemap
   --------------------------------------------------------------------------
   These are dense reading, not display layouts. Privacy alone carries THIRTEEN
   <h2>s; at the global display size (up to 2.7rem) every one of them lands like
   a headline and the page reads as thirteen announcements rather than one
   document. They also use no <h3> at all, so the scale has room to come down
   without collapsing the hierarchy — h1 (page title) still sits far above.

   Best practice applied rather than just "smaller":
   · Size just above body text, with weight and letter-spacing doing the work
     that scale was doing. At 300 the lighter global heading weight goes limp
     this small, so these are 500.
   · Hierarchy carried by SPACE. `.stack` gives every sibling the same 1rem
     gap, which leaves a heading equidistant from the paragraph it belongs to
     and the one it does not. Proximity should group a heading with its own
     content, so there is now more space above a heading than below it.
   · Nothing here touches the global h2 — the marketing pages still use the
     display scale their layouts are built around.

   The values are not invented: `.sitemap-cols h2` already carried exactly this
   treatment and reads correctly, so the sitemap never had the oversized heading
   at all. Reusing its numbers gives the site ONE document-heading style rather
   than two that differ by a rounding error. */
.doc h2 {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  line-height: 1.35;
}
.doc.stack > * + h2 { margin-top: var(--s-7); }
.doc.stack > h2 + *  { margin-top: var(--s-3); }
.muted { color: var(--ink-mute); }
.small { font-size: 0.87rem; }
.nowrap { white-space: nowrap; }
