/* =====================================================================
   Premium Walk-In Clinic — Design System
   Aesthetic: refined, premium-medical. Teal (trust) + coral (urgency)
   + gold hairline (premium). Fraunces display / Plus Jakarta Sans body.
   Matches the Premium Medical Clinic house style (numbered sections,
   trust bar, transparent pricing-ready, testimonial-ready modules).
   ===================================================================== */

:root {
  /* Brand */
  --teal-900: #082f37;
  --teal-800: #0a4250;
  --teal-700: #0c5666;
  --teal-600: #0e6c7e;   /* primary */
  --teal-500: #1a8497;
  --teal-300: #7ab8c2;
  --teal-100: #d6ebef;
  --teal-50:  #eef7f9;

  /* Brand red — sampled from the clinic's stethoscope logo (#B23A3D).
     Drives the logo, primary CTAs, and urgent accents. */
  --coral-600: #b23a3d;  /* brand red — CTA / accent */
  --coral-500: #c24a4c;
  --coral-400: #d06a6c;
  --coral-50:  #f9ecec;
  --red-700:   #8e2f33;  /* deep red — hover/pressed */

  --gold-600: #8d6620;
  --gold-500: #c69a4c;   /* premium hairline / detail */
  --gold-200: #ecd9af;

  /* Neutrals */
  --ink:      #112027;
  --slate:    #4d626c;
  --slate-400:#5f757b;
  --line:     #dfe8ea;
  --line-soft:#eef3f4;
  --paper:    #ffffff;
  --mist:     #f5f9fa;
  --shell:    #fbfcfc;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Shape */
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(8, 47, 55, .06), 0 1px 3px rgba(8, 47, 55, .05);
  --shadow: 0 10px 30px -12px rgba(8, 47, 55, .22);
  --shadow-lg: 0 28px 60px -24px rgba(8, 47, 55, .35);
  --shadow-teal: 0 18px 40px -16px rgba(14, 108, 126, .45);
  --shadow-coral: 0 16px 34px -14px rgba(178, 58, 61, .5);

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(1.1rem, 4vw, 2.4rem);
  --bar-h: 44px;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--shell);
  line-height: 1.65;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--coral-600); }
:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--teal-900);
  margin: 0 0 .5em;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
p { margin: 0 0 1.1rem; }
strong { font-weight: 700; }

/* ---------- Layout helpers ---------- */
.container-x { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.6rem, 8vw, 6.5rem); position: relative; }
.section--tight { padding-block: clamp(2.6rem, 5vw, 4rem); }
.bg-mist { background: var(--mist); }
.bg-teal { background: var(--teal-900); color: #dfeef1; }
.bg-shell { background: var(--shell); }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.measure { max-width: 62ch; }
.measure-sm { max-width: 48ch; }

/* gold hairline divider */
.hairline { height: 2px; width: 56px; background: linear-gradient(90deg, var(--gold-500), var(--gold-200)); border: 0; border-radius: 2px; margin: 0 0 1.4rem; }
.text-center .hairline { margin-inline: auto; }

/* ---------- Eyebrow (numbered section label) ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .76rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--teal-600); margin-bottom: 1rem;
}
.eyebrow__num {
  font-family: var(--font-display); font-size: .95rem; letter-spacing: 0;
  color: var(--gold-600); font-weight: 600;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold-500); display: inline-block; }

/* ---------- Buttons ---------- */
.btn-x {
  --btn-bg: var(--teal-600); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 700; font-size: .98rem; letter-spacing: .005em;
  padding: .92rem 1.6rem; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg); cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, color .2s ease;
  white-space: nowrap; line-height: 1;
}
.btn-x svg { width: 1.05em; height: 1.05em; }
.btn-x:hover { transform: translateY(-2px); color: var(--btn-fg); }
.btn-urgent { --btn-bg: var(--coral-600); box-shadow: var(--shadow-coral); }
.btn-urgent:hover { --btn-bg: var(--coral-500); box-shadow: 0 22px 40px -14px rgba(178,58,61,.6); }
.btn-teal { --btn-bg: var(--teal-600); box-shadow: var(--shadow-teal); }
.btn-teal:hover { --btn-bg: var(--teal-700); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--teal-800); border-color: var(--teal-300); }
.btn-ghost:hover { --btn-fg: var(--teal-900); border-color: var(--teal-600); background: var(--teal-50); }
.btn-light { --btn-bg: #fff; --btn-fg: var(--teal-800); box-shadow: var(--shadow); }
.btn-light:hover { --btn-fg: var(--coral-600); }
.btn-x--lg { padding: 1.05rem 1.9rem; font-size: 1.03rem; }
.btn-x--block { width: 100%; }

/* =====================================================================
   TOP UTILITY / TRUST BAR
   ===================================================================== */
.topbar {
  background: var(--teal-900); color: #cfe6ea;
  font-size: .82rem; font-weight: 500; letter-spacing: .01em;
  min-height: var(--bar-h);
}
.topbar .container-x { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--bar-h); }
.topbar__msg { display: inline-flex; align-items: center; gap: .5rem; }
.topbar__msg .dot { width: 7px; height: 7px; border-radius: 50%; background: #57d08a; box-shadow: 0 0 0 3px rgba(87,208,138,.22); flex: none; }
.topbar__links { display: inline-flex; align-items: center; gap: 1.4rem; }
.topbar__links a { color: #e9f4f6; display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
.topbar__links a:hover { color: #fff; }
.topbar__links svg { width: 14px; height: 14px; opacity: .8; }
@media (max-width: 720px) { .topbar__msg span.hide-sm { display: none; } .topbar__links a.hide-sm { display: none; } }

/* =====================================================================
   NAVBAR
   ===================================================================== */
.nav-x {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .3s ease, background .3s ease;
}
.nav-x.is-scrolled { box-shadow: var(--shadow-sm); background: rgba(255,255,255,.95); }
.nav-x .container-x { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand img, .brand svg { height: 44px; width: auto; }
.nav-links { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-block; padding: .55rem .85rem; border-radius: 999px;
  color: var(--ink); font-weight: 600; font-size: .96rem; position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--teal-700); background: var(--teal-50); }
.nav-actions { display: flex; align-items: center; gap: .7rem; }
.nav-phone { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--teal-800); }
.nav-phone svg { width: 18px; height: 18px; color: var(--coral-600); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; color: var(--teal-900); }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 992px) {
  .nav-toggle { display: inline-flex; }
  /* backdrop-filter creates a containing block that would trap the fixed
     menu inside the header — disable it on mobile so the panel anchors to
     the viewport and renders fully opaque. */
  .nav-x { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255,255,255,.97); }
  .nav-x.is-scrolled { background: #fff; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px);
    flex-direction: column; align-items: stretch; gap: .2rem;
    background: #fff; padding: 5.5rem 1.4rem 2rem; box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .35s cubic-bezier(.4,0,.2,1);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { padding: .85rem 1rem; font-size: 1.05rem; border-radius: var(--radius-sm); }
  .nav-links .nav-mobile-cta { margin-top: 1rem; }
  .nav-phone span { display: none; }
  body.nav-open { overflow: hidden; }
  .nav-scrim { position: fixed; inset: 0; background: rgba(8,47,55,.4); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 999; }
  .nav-scrim.show { opacity: 1; pointer-events: auto; }
}
@media (min-width: 993px) { .nav-mobile-cta, .nav-mobile-only { display: none !important; } }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { position: relative; background: var(--shell); overflow: clip; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(14,108,126,.10), transparent 60%),
    radial-gradient(50% 60% at 0% 90%, rgba(198,154,76,.10), transparent 60%);
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center; padding-block: clamp(2.5rem, 6vw, 5rem);
}
.hero__eyebrow { display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .9rem .4rem .5rem;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm);
  font-size: .8rem; font-weight: 600; color: var(--teal-800); margin-bottom: 1.4rem; }
.hero__eyebrow .pill { background: var(--coral-50); color: var(--coral-600); font-weight: 700; font-size: .72rem;
  padding: .25rem .6rem; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; }
.hero h1 { margin-bottom: .9rem; }
.hero h1 em { font-style: italic; color: var(--teal-600); }
.hero__lead { font-size: 1.16rem; color: var(--slate); max-width: 46ch; margin-bottom: 1.8rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.hero__meta .item { display: flex; align-items: center; gap: .6rem; font-size: .92rem; color: var(--slate); font-weight: 600; }
.hero__meta .item svg { width: 20px; height: 20px; color: var(--teal-600); flex: none; }

.hero__media { position: relative; }
.hero__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; aspect-ratio: 4/5; }
.hero__media::after { content: ""; position: absolute; inset: auto -14px -14px auto; width: 60%; height: 60%;
  border: 2px solid var(--gold-200); border-radius: var(--radius-lg); z-index: -1; }
.hero__card {
  position: absolute; left: -22px; bottom: 26px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 1.05rem 1.25rem; display: flex; align-items: center; gap: .9rem;
  border: 1px solid var(--line-soft); max-width: 270px;
}
.hero__card .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--coral-50); color: var(--coral-600);
  display: grid; place-items: center; flex: none; }
.hero__card .ic svg { width: 24px; height: 24px; }
.hero__card b { display: block; font-size: 1.02rem; color: var(--teal-900); }
.hero__card span { font-size: .85rem; color: var(--slate); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 460px; }
  .hero__media img { aspect-ratio: 16/11; }
  .hero__card { left: 8px; }
}

/* =====================================================================
   STATS / TRUST STRIP
   ===================================================================== */
.stats { background: #fff; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-soft); }
.stat { background: #fff; padding: 1.8rem var(--gutter); text-align: center; }
.stat__num { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.5rem); color: var(--teal-700); line-height: 1; margin-bottom: .35rem; }
.stat__num span { color: var(--gold-600); }
.stat__label { font-size: .86rem; color: var(--slate); font-weight: 600; letter-spacing: .02em; }
@media (max-width: 760px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Section heading block ---------- */
.section-head { margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head.center { text-align: center; max-width: 720px; margin-inline: auto; }
.section-head p { color: var(--slate); font-size: 1.08rem; margin-bottom: 0; }
.section-head.center .eyebrow::before { display: none; }

/* =====================================================================
   SERVICE CARDS
   ===================================================================== */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 900px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } }
.svc-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem;
  position: relative; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
}
.svc-card::before { content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 4px; background: var(--teal-600); transform: scaleY(0); transform-origin: top; transition: transform .3s ease; }
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.svc-card:hover::before { transform: scaleY(1); }
.svc-card__ic { width: 54px; height: 54px; border-radius: 14px; background: var(--teal-50); color: var(--teal-600);
  display: grid; place-items: center; margin-bottom: 1.1rem; transition: background .25s, color .25s; }
.svc-card:hover .svc-card__ic { background: var(--teal-600); color: #fff; }
.svc-card__ic svg { width: 28px; height: 28px; }
.svc-card h3 { font-size: 1.28rem; margin-bottom: .5rem; }
.svc-card p { color: var(--slate); font-size: .97rem; margin-bottom: 0; }
.svc-card .tag { position: absolute; top: 1.2rem; right: 1.2rem; font-size: .68rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--gold-600); background: #fff7e9; padding: .25rem .55rem; border-radius: 999px; }

/* chips list (conditions treated) */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { display: inline-flex; align-items: center; gap: .45rem; background: #fff; border: 1px solid var(--line);
  padding: .55rem 1rem; border-radius: 999px; font-size: .92rem; font-weight: 600; color: var(--teal-800); }
.chip svg { width: 15px; height: 15px; color: var(--coral-500); }
.chip:hover { border-color: var(--teal-300); background: var(--teal-50); }

/* =====================================================================
   HOW IT WORKS — numbered steps
   ===================================================================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; counter-reset: step; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: 1rem; } }
.step { position: relative; padding: 1.8rem 1.6rem 1.6rem; background: #fff; border-radius: var(--radius); border: 1px solid var(--line-soft); }
.step__n { font-family: var(--font-display); font-size: 2.6rem; color: var(--teal-100); line-height: 1; position: absolute; top: 1rem; right: 1.3rem; }
.step__ic { width: 48px; height: 48px; border-radius: 12px; background: var(--coral-50); color: var(--coral-600); display: grid; place-items: center; margin-bottom: 1rem; }
.step__ic svg { width: 26px; height: 26px; }
.step h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.step p { color: var(--slate); font-size: .95rem; margin-bottom: 0; }

/* =====================================================================
   GALLERY
   ===================================================================== */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 150px; gap: 14px; }
.gallery a { position: relative; overflow: hidden; border-radius: var(--radius); display: block; box-shadow: var(--shadow-sm); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.gallery a:hover img { transform: scale(1.07); }
.gallery a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,47,55,.35), transparent 55%); opacity: 0; transition: opacity .3s; }
.gallery a:hover::after { opacity: 1; }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }
.g-feat { grid-column: span 2; grid-row: span 2; }
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 120px; }
  .g-feat { grid-column: span 2; grid-row: span 2; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
  .g-feat, .g-wide { grid-column: span 2; grid-row: span 1; }
  .g-tall { grid-row: span 1; }
}

/* =====================================================================
   PRICING — flat fee
   ===================================================================== */
.price-card { display: grid; grid-template-columns: .82fr 1.18fr; background: #fff;
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
@media (max-width: 760px) { .price-card { grid-template-columns: 1fr; } }
.price-amount-side {
  position: relative; background: var(--teal-800); color: #eaf5f7;
  padding: clamp(2rem, 4vw, 3rem); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.price-amount-side::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 80% at 50% 0%, rgba(198,154,76,.22), transparent 60%); }
.price-badge { position: relative; display: inline-flex; align-items: center; gap: .4rem; background: var(--gold-500); color: #3a2a09;
  font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1.1rem; }
.price-amount { position: relative; font-family: var(--font-display); font-weight: 500; line-height: .95;
  font-size: clamp(3.6rem, 8vw, 5.4rem); color: #fff; }
.price-amount sup { font-size: .42em; vertical-align: .9em; font-weight: 500; margin-right: .04em; }
.price-per { position: relative; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #bfe0e5; margin-top: .4rem; }
.price-sub { position: relative; margin-top: 1rem; font-size: .96rem; color: #d7ebee; max-width: 26ch; }
.price-body { padding: clamp(1.8rem, 4vw, 2.6rem); }
.price-body h3 { font-size: 1.5rem; margin-bottom: 1.1rem; }
.price-list { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .85rem; }
.price-list li { display: flex; gap: .75rem; align-items: flex-start; font-size: 1.02rem; }
.price-list li .tick { width: 24px; height: 24px; border-radius: 50%; background: var(--coral-50); color: var(--coral-600);
  display: grid; place-items: center; flex: none; margin-top: .1rem; }
.price-list li .tick svg { width: 14px; height: 14px; }
.price-list li b { color: var(--teal-900); }
.price-fine { font-size: .88rem; color: var(--slate); border-top: 1px solid var(--line-soft); padding-top: 1.1rem; }

/* =====================================================================
   LOCATION / INFO PANEL
   ===================================================================== */
.locate { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
@media (max-width: 880px) { .locate { grid-template-columns: 1fr; } }
.locate__info { padding: clamp(1.8rem, 4vw, 3rem); }
.locate__map { min-height: 360px; }
.locate__map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; filter: saturate(1.05); }
.info-row { display: flex; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--line-soft); }
.info-row:last-child { border-bottom: 0; }
.info-row .ic { width: 42px; height: 42px; border-radius: 11px; background: var(--teal-50); color: var(--teal-600); display: grid; place-items: center; flex: none; }
.info-row .ic svg { width: 22px; height: 22px; }
.info-row .lbl { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--slate-400); font-weight: 700; margin-bottom: .15rem; }
.info-row .val { font-weight: 600; color: var(--teal-900); }
.info-row .val a { color: var(--teal-900); }
.info-row .val a:hover { color: var(--coral-600); }

.hours-table { width: 100%; border-collapse: collapse; margin-top: .4rem; }
.hours-table td { padding: .5rem 0; font-size: .95rem; border-bottom: 1px dashed var(--line); }
.hours-table tr:last-child td { border-bottom: 0; }
.hours-table td:last-child { text-align: right; font-weight: 700; color: var(--teal-800); }
.hours-table .closed td:last-child { color: var(--slate-400); font-weight: 600; }

/* =====================================================================
   AFFILIATION STRIP
   ===================================================================== */
.affil { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; text-align: center;
  background: var(--teal-50); border: 1px solid var(--teal-100); border-radius: var(--radius); padding: 1.3rem 1.6rem; }
.affil__txt { color: var(--teal-800); font-weight: 600; }
.affil__txt b { color: var(--teal-900); }
/* affiliation rendered as a quiet footnote */
.affil-note { text-align: center; font-size: .82rem; line-height: 1.6; color: var(--slate-400);
  max-width: 62ch; margin: 1.6rem auto 0; }
.affil-note strong { color: var(--slate); font-weight: 600; }

/* =====================================================================
   CTA BAND
   ===================================================================== */
.cta-band { position: relative; background: var(--teal-800); color: #e6f3f5; overflow: hidden; border-radius: var(--radius-xl); }
.cta-band::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(50% 80% at 100% 0%, rgba(198,154,76,.22), transparent 60%),
  radial-gradient(60% 90% at 0% 100%, rgba(26,132,151,.4), transparent 60%); }
.cta-band__inner { position: relative; padding: clamp(2.4rem, 5vw, 4rem); display: grid; grid-template-columns: 1.4fr auto; gap: 2rem; align-items: center; }
@media (max-width: 800px) { .cta-band__inner { grid-template-columns: 1fr; text-align: center; } .cta-band .hero__cta { justify-content: center; } }
.cta-band h2 { color: #fff; margin-bottom: .6rem; }
.cta-band p { color: #bfe0e5; margin-bottom: 0; font-size: 1.08rem; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { background: var(--teal-900); color: #a9cace; padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem; }
.footer a { color: #cfe6ea; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.2rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand img, .footer__brand svg { height: 48px; margin-bottom: 1rem; }
.footer__brand p { font-size: .94rem; color: #8fb6bb; max-width: 32ch; }
.footer h4 { color: #fff; font-family: var(--font-body); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; margin-bottom: 1.1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer ul a { font-size: .96rem; }
.footer__contact .row { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .9rem; font-size: .95rem; }
.footer__contact svg { width: 17px; height: 17px; color: var(--gold-500); margin-top: .2rem; flex: none; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; font-size: .85rem; color: #79a1a6; }
.footer__bottom a { color: #9cc1c6; }
.footer__legal { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer__disclaimer { font-size: .8rem; color: #79a3a8; max-width: 70ch; margin-top: 1rem; line-height: 1.6; }
.footer__credit { text-align: center; font-size: .8rem; color: #79a3a8; margin: 1.2rem 0 0; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.08); }
.footer__credit a { color: #9cc1c6; font-weight: 600; }

/* =====================================================================
   FORMS / CONTACT
   ===================================================================== */
.form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .86rem; font-weight: 700; color: var(--teal-900); margin-bottom: .4rem; }
.field label .req { color: var(--coral-500); }
.field .form-control, .field .form-select {
  width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: var(--shell); transition: border-color .2s, box-shadow .2s;
}
.field .form-control:focus, .field .form-select:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(26,132,151,.15); background: #fff; }
.field textarea.form-control { resize: vertical; min-height: 130px; }
.field .help-block { font-size: .82rem; color: var(--coral-600); margin-top: .35rem; }
.form-note { font-size: .84rem; color: var(--slate); margin-top: 1rem; display: flex; gap: .5rem; align-items: flex-start; }
.form-note svg { width: 16px; height: 16px; color: var(--teal-500); margin-top: .15rem; flex: none; }
.has-error .form-control, .has-error .form-select { border-color: var(--coral-400); }

/* contact split layout */
.contact-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
@media (max-width: 900px) { .contact-split { grid-template-columns: 1fr; } }
.contact-aside .info-card { background: var(--teal-900); color: #cfe6ea; border-radius: var(--radius-lg); padding: clamp(1.6rem,4vw,2.4rem); }
.contact-aside .info-card h3 { color: #fff; }
.contact-aside .info-card .info-row { border-color: rgba(255,255,255,.12); }
.contact-aside .info-card .info-row .ic { background: rgba(255,255,255,.08); color: #fff; }
.contact-aside .info-card .info-row .lbl { color: #8fb6bb; }
.contact-aside .info-card .info-row .val, .contact-aside .info-card .info-row .val a { color: #fff; }

/* =====================================================================
   THANK YOU
   ===================================================================== */
.ty { min-height: 64vh; display: grid; place-items: center; text-align: center; padding-block: 4rem; }
.ty__badge { width: 92px; height: 92px; border-radius: 50%; background: var(--teal-50); color: var(--teal-600); display: grid; place-items: center; margin: 0 auto 1.6rem; box-shadow: 0 0 0 10px rgba(14,108,126,.06); }
.ty__badge svg { width: 48px; height: 48px; }

/* =====================================================================
   ANIMATION (used alongside AOS; graceful without it)
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   LEGAL / PROSE PAGES
   ===================================================================== */
.legal-hero { background: var(--teal-50); border-bottom: 1px solid var(--teal-100); }
.legal-hero .container-x { padding-block: clamp(2.4rem, 5vw, 3.6rem); }
.legal-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .4rem; }
.legal-meta { color: var(--slate); font-size: .92rem; font-weight: 600; }
.legal-meta span { color: var(--teal-700); }

.draft-banner {
  display: flex; gap: .8rem; align-items: flex-start;
  background: var(--coral-50); border: 1px solid #f5cfca; border-left: 4px solid var(--coral-500);
  border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin-bottom: 2rem; font-size: .92rem; color: #7a2c23;
}
.draft-banner svg { width: 20px; height: 20px; color: var(--coral-600); flex: none; margin-top: .15rem; }
.draft-banner b { color: var(--coral-600); }

.prose { max-width: 78ch; margin-inline: auto; }
.prose > p:first-of-type { font-size: 1.1rem; color: var(--slate); }
.prose h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.7rem); margin-top: 2.6rem; padding-top: 1.4rem;
  border-top: 1px solid var(--line-soft);
}
.prose h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 1.6rem; }
.prose h3 { font-size: 1.18rem; margin-top: 1.6rem; color: var(--teal-800); }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3rem; margin-bottom: 1.1rem; }
.prose li { margin-bottom: .5rem; }
.prose a { color: var(--teal-700); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--coral-600); }
.prose .ph { background: #fff7e9; border-bottom: 1px dashed var(--gold-500); padding: 0 .25rem; font-weight: 600; color: var(--gold-600); border-radius: 3px; }
.prose .callout { background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin: 1.2rem 0; }
.prose .callout.emergency { background: var(--coral-50); border-color: #f5cfca; color: #7a2c23; }
.prose .callout.emergency b { color: var(--coral-600); }

.legal-toc { background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem; margin-bottom: 2.2rem; }
.legal-toc h2 { font-size: .8rem !important; text-transform: uppercase; letter-spacing: .12em; color: var(--slate-400); margin: 0 0 .8rem; border: 0 !important; padding: 0 !important; font-family: var(--font-body); }
.legal-toc ol { columns: 2; column-gap: 2rem; margin: 0; padding-left: 1.2rem; }
@media (max-width: 560px) { .legal-toc ol { columns: 1; } }
.legal-toc li { margin-bottom: .4rem; }

/* small utilities */
.lead { font-size: 1.16rem; color: var(--slate); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1rem; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.badge-soft { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 700; color: var(--teal-700);
  background: var(--teal-50); border: 1px solid var(--teal-100); padding: .35rem .8rem; border-radius: 999px; }
.badge-soft svg { width: 14px; height: 14px; }
.text-coral { color: var(--coral-600); }
.text-teal { color: var(--teal-700); }
