/* ==========================================================================
   ANDAMAN NAVY — theme
   Loaded after style.css and themes.css, so it wins on source order.
   Activated by data-theme="navy" on <html>.

   Two rules govern everything here:

     1. Call is red and WhatsApp is green, always, on every background. Those
        two colours are not decoration — they are how a frightened person
        finds the phone. Nothing in this file touches --red-cta or --wa.

     2. Navy carries the chrome and the deep blocks; the reading surfaces stay
        near-white. A medical site that goes dark everywhere becomes harder to
        read at the moment it matters most.
   ========================================================================== */

[data-theme="navy"] {
  /* ---- Canvas: cool, quiet, and still white where words live ---- */
  --bg:         #FFFFFF;
  --bg-2:       #F1F5FB;
  --surface:    #F7FAFE;
  --surface-2:  #E9F0F9;
  --surface-3:  #D6E3F3;

  --line:       rgba(11, 36, 64, .12);
  --line-2:     rgba(11, 36, 64, .24);

  /* ---- Text: all three verified ≥4.5:1 on --bg ---- */
  --text:       #0B2440;
  --text-2:     #3F587B;
  --text-3:     #62779A;

  /* ---- Brand ---- */
  --navy:       #0B2440;
  --navy-deep:  #06182E;
  --navy-lift:  #16406E;
  --cobalt:     #1B4370;
  --teal:       #9BB8DC;          /* decorative only, pulled to steel */

  /* Azure is the one bright note. #0B63CE clears AA on white for links and
     kickers; #6FB4FF is its counterpart for type on deep navy. */
  --azure:      #0B63CE;
  --azure-lift: #6FB4FF;

  --accent:     var(--azure);
  --accent-2:   var(--azure);
  --tint:       rgba(11, 99, 206, .07);
  --tint-line:  rgba(11, 99, 206, .18);
  --scrim:      rgba(255, 255, 255, .84);

  /* ---- Deep blocks (token names come from themes.css) ---- */
  --deep-a:      #0B2440;
  --deep-b:      #16406E;
  --deep-c:      #102F52;
  --deep-ink:    #06182E;
  --glow:        rgba(111, 180, 255, .16);
  --on-deep:     #9FC6F2;
  --on-deep-ico: #CBE0FA;
  --solid:       #0B2440;
  --solid-hi:    #16406E;
  --mid:         #16406E;
  --chip-soft:   #E9F0F9;
  --chip-soft-2: #D6E3F3;
  --chip-soft-3: #EEF4FC;
  --near-white:  #F5F9FE;
  --near-white-2:#F8FBFE;

  --field-rest:   #7FA6D6;
  --field-active: #6FB4FF;
  --field-alpha:  0.78;

  --shadow-sm: 0 1px 2px rgba(6, 24, 46, .06), 0 6px 18px rgba(6, 24, 46, .06);
  --shadow-md: 0 18px 44px rgba(6, 24, 46, .13);

  /* Apple-ish motion: long travel, long settle, no bounce. */
  --stage-ease: cubic-bezier(.16, 1, .3, 1);
  --stage-dur:  900ms;
}

/* ==========================================================================
   Header — transparent over the hero, navy once you leave it
   ========================================================================== */

[data-theme="navy"] body.home .header {
  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background var(--t-mid) var(--ease),
              border-color var(--t-mid) var(--ease);
}
[data-theme="navy"] body.home .header.is-stuck {
  background: rgba(6, 24, 46, .88);
  border-bottom-color: rgba(255, 255, 255, .10);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}

/* The navy wordmark disappears on navy, so swap in the knockout logo while
   the header sits over the dark hero. */
[data-theme="navy"] .home-hero ~ * .header,
[data-theme="navy"] .header .brand img { transition: opacity var(--t-mid) var(--ease); }

[data-theme="navy"] body.home .header .brand {
  background: url("../img/logo-light.png") left center / contain no-repeat;
}
[data-theme="navy"] body.home .header .brand img { visibility: hidden; }
[data-theme="navy"] body.home .header.is-stuck .brand { background-image: url("../img/logo-light.png"); }

[data-theme="navy"] body.home .nav a { color: rgba(255, 255, 255, .82); }
[data-theme="navy"] body.home .nav a:hover,
[data-theme="navy"] body.home .nav a[aria-current="page"] { color: #fff; }
[data-theme="navy"] body.home .nav a::after { background: var(--azure-lift); }
[data-theme="navy"] body.home .burger {
  color: #fff;
  border-color: rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .08);
}
[data-theme="navy"] body.home .header-language button { color: rgba(255, 255, 255, .75); }
[data-theme="navy"] body.home .header-language button[aria-pressed="true"] { color: #fff; }

/* The mobile nav panel is its own surface, so it stays readable. */
[data-theme="navy"] .nav.open { background: var(--navy-deep); }
[data-theme="navy"] .nav.open a { color: rgba(255, 255, 255, .88); }

/* ==========================================================================
   The landing page as a sequence of screens

   Full-height sections that arrive one at a time as you scroll. Deliberately
   NOT scroll-snap: hijacking the scroll wheel on a page somebody opens in
   pain is the wrong trade. This is momentum plus reveal, not a slideshow.
   ========================================================================== */

[data-theme="navy"] .home-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-content: center;
  padding-block: calc(var(--header-h) + var(--s8)) var(--s9);
  background:
    radial-gradient(120% 90% at 20% 0%, #16406E 0%, transparent 60%),
    radial-gradient(100% 80% at 85% 20%, #1B4E86 0%, transparent 55%),
    linear-gradient(168deg, #0B2440 0%, #06182E 100%);
  color: #fff;
  overflow: hidden;
}

/* The dot field sits over the gradient, not instead of it — so the section
   still looks finished on the phones that never download Three.js. */
[data-theme="navy"] .home-hero #field {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .85;
}
[data-theme="navy"] .home-hero > .container { position: relative; z-index: 1; }

[data-theme="navy"] .home-hero .eyebrow {
  color: var(--azure-lift);
  background: rgba(111, 180, 255, .10);
  border-color: rgba(111, 180, 255, .28);
}
[data-theme="navy"] .home-hero .display {
  color: #fff;
  letter-spacing: -.025em;
  text-wrap: balance;
}
[data-theme="navy"] .home-hero .lead { color: rgba(255, 255, 255, .74); }
[data-theme="navy"] .home-hero .hero-call-number { color: inherit; }
[data-theme="navy"] .home-hero .hero-quick-link {
  color: rgba(255, 255, 255, .88);
  border-bottom-color: rgba(255, 255, 255, .28);
}
[data-theme="navy"] .home-hero .hero-quick-link:hover { color: #fff; }
[data-theme="navy"] .home-hero .hero-quick-link + .hero-quick-link::before {
  background: rgba(255, 255, 255, .24);
}

/* Call and WhatsApp are untouched — see the note at the top of this file.
   They only gain a lift so they sit above the field rather than in it. */
[data-theme="navy"] .home-hero .btn-call,
[data-theme="navy"] .home-hero .btn-wa {
  box-shadow: 0 10px 30px rgba(6, 24, 46, .45);
}

/* Credentials strip, reworked for a dark ground */
[data-theme="navy"] .home-hero .proof-strip {
  margin-top: var(--s8);
  border-top: 1px solid rgba(255, 255, 255, .14);
  border-bottom: 0;
  background: transparent;
  padding-top: var(--s6);
}
[data-theme="navy"] .home-hero .proof-item { color: rgba(255, 255, 255, .92); }
[data-theme="navy"] .home-hero .proof-item svg { color: var(--azure-lift); }
[data-theme="navy"] .home-hero .proof-item small { color: rgba(255, 255, 255, .58); }

/* ---- The scroll cue ---- */
[data-theme="navy"] .scroll-cue {
  position: absolute;
  left: 50%;
  bottom: var(--s6);
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .55);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  min-height: 44px;
}
[data-theme="navy"] .scroll-cue:hover { color: #fff; }
[data-theme="navy"] .scroll-cue span.rail {
  display: block;
  width: 1px;
  height: 34px;
  background: linear-gradient(rgba(255, 255, 255, .5), transparent);
  animation: cue 2.4s var(--stage-ease) infinite;
}
@keyframes cue {
  0%   { transform: scaleY(.2); transform-origin: top; opacity: 0; }
  40%  { transform: scaleY(1);  transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1);  transform-origin: bottom; opacity: 0; }
}

/* ---- Full-height staged sections ---- */
[data-theme="navy"] .stage {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: var(--s9);
}
/* Content-heavy sections should never be forced to fit one screen. */
[data-theme="navy"] .stage--auto { min-height: 0; }

/* One deep panel mid-page gives the sequence a rhythm instead of a flat
   scroll of white cards. */
[data-theme="navy"] .stage--deep {
  background:
    radial-gradient(90% 70% at 15% 10%, var(--deep-b) 0%, transparent 60%),
    linear-gradient(160deg, var(--deep-a) 0%, var(--deep-ink) 100%);
  color: #fff;
  border: 0;
}
[data-theme="navy"] .stage--deep h2,
[data-theme="navy"] .stage--deep h3 { color: #fff; }
[data-theme="navy"] .stage--deep .lead,
[data-theme="navy"] .stage--deep p { color: rgba(255, 255, 255, .72); }
[data-theme="navy"] .stage--deep .kicker { color: var(--azure-lift); }

/* ---- The reveal itself ---- */
[data-theme="navy"] [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  transition: opacity var(--stage-dur) var(--stage-ease),
              transform var(--stage-dur) var(--stage-ease);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
[data-theme="navy"] [data-reveal].in {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* Section headings arrive slightly ahead of their content. */
[data-theme="navy"] .stage .section-head { --d: 0ms; }

/* ---- Typographic scale for the staged page ---- */
[data-theme="navy"] .stage > .container > .section-head h2,
[data-theme="navy"] .home-hero .display {
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
  line-height: 1.03;
  letter-spacing: -.028em;
}
[data-theme="navy"] .stage > .container > .section-head .lead {
  max-width: 46ch;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
}
[data-theme="navy"] .stage .kicker {
  letter-spacing: .16em;
  font-size: .72rem;
}

/* ==========================================================================
   Components, restated in navy
   ========================================================================== */

[data-theme="navy"] .footer { background: var(--navy-deep); }

[data-theme="navy"] .svc-card,
[data-theme="navy"] .branch {
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-mid) var(--ease),
              box-shadow var(--t-mid) var(--ease);
}
[data-theme="navy"] .svc-card:hover,
[data-theme="navy"] .branch:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

[data-theme="navy"] .stage--deep .svc-card,
[data-theme="navy"] .stage--deep .branch {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .14);
}
[data-theme="navy"] .stage--deep .svc-card h3 a,
[data-theme="navy"] .stage--deep .branch h3 a { color: #fff; }
[data-theme="navy"] .stage--deep .branch-addr { color: rgba(255, 255, 255, .62); }

[data-theme="navy"] .btn-ghost {
  border-color: var(--line-2);
  color: var(--navy);
}
[data-theme="navy"] .stage--deep .btn-ghost {
  border-color: rgba(255, 255, 255, .34);
  color: #fff;
}
[data-theme="navy"] .stage--deep .branch-actions .chip {
  background: rgba(255, 255, 255, .11);
  border-color: rgba(255, 255, 255, .22);
  color: #fff;
}
[data-theme="navy"] .stage--deep .branch-actions .chip:hover {
  background: rgba(111, 180, 255, .22);
  border-color: rgba(111, 180, 255, .45);
  color: #fff;
}

/* The emergency strip has to stay legible on the deepest navy there is. */
[data-theme="navy"] .emergency-strip {
  background: rgba(111, 180, 255, .10);
  border: 1px solid rgba(111, 180, 255, .22);
  color: rgba(255, 255, 255, .90);
}
[data-theme="navy"] .emergency-strip a { color: var(--azure-lift); }

/* ==========================================================================
   Phones, and anyone who asked for less motion
   ========================================================================== */

@media (max-width: 860px) {
  /* One screen per section stops being generous and starts being a tunnel
     on a 390px viewport, so sections size to their content again. The hero
     keeps its full screen because that is the one that has to land. */
  [data-theme="navy"] .stage {
    min-height: 0;
    padding-block: var(--s8);
  }
  [data-theme="navy"] .home-hero {
    padding-block: calc(var(--header-h) + var(--s7)) var(--s8);
  }
  [data-theme="navy"] .home-hero .proof-strip { margin-top: var(--s6); }
  [data-theme="navy"] .scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  [data-theme="navy"] [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  [data-theme="navy"] .scroll-cue span.rail { animation: none; }
}

/* ==========================================================================
   Scrolling between screens
   ========================================================================== */

/* The scroll cue and the in-page nav links land softly. Anchored to the
   theme rather than the document so it is one line to undo. */
[data-theme="navy"] { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  [data-theme="navy"] { scroll-behavior: auto; }
}

/* Sticky header would otherwise cover the heading of whatever you jumped to. */
[data-theme="navy"] .stage { scroll-margin-top: var(--header-h); }

/* When Three.js is skipped — a phone, a metered connection, reduced motion —
   the hero keeps its gradient and simply loses the dots. Nothing about the
   section depends on the canvas existing. */
[data-theme="navy"].no-webgl .home-hero #field { display: none; }

/* ==========================================================================
   Making the header sit ON the hero rather than above it

   .header is position:sticky, which still occupies flow — so a transparent
   header just showed the white page behind it. On the landing page only, it
   comes out of flow and floats over the hero; the hero already reserves
   --header-h of top padding for it.
   ========================================================================== */

[data-theme="navy"] body.home .header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
}
[data-theme="navy"] body.home .brand {
  width: 178px;
  height: 44px;
}
[data-theme="navy"] body.home .brand img { width: 178px; }

/* The primary header action is navy-on-navy once the bar goes transparent. */
[data-theme="navy"] body.home .header-contact--primary {
  background: #fff;
  color: var(--navy);
}
[data-theme="navy"] body.home .header-contact--primary:hover {
  background: var(--azure-lift);
  color: var(--navy-deep);
}
[data-theme="navy"] body.home .header-contact:not(.header-contact--primary) {
  color: rgba(255, 255, 255, .82);
}
[data-theme="navy"] body.home .header-language {
  background: rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .20);
}
[data-theme="navy"] body.home .header-language button[aria-pressed="true"] {
  background: rgba(255, 255, 255, .90);
  color: var(--navy);
}

/* Once the bar is solid navy, the same treatment still reads correctly, so
   nothing needs to change on scroll beyond the background itself. */

/* ---- Credentials strip: the <b> and <small> carry their own colours ---- */
[data-theme="navy"] .home-hero .proof-strip,
[data-theme="navy"] .home-hero .proof-item { border-color: rgba(255, 255, 255, .14); }
[data-theme="navy"] .home-hero .proof-item b { color: #fff; }
[data-theme="navy"] .home-hero .proof-item small { color: rgba(255, 255, 255, .60); }
[data-theme="navy"] .home-hero .proof-item > svg { color: var(--azure-lift); }

/* Two full-size buttons will not sit side by side at 390px without clipping
   "Chat on WhatsApp", and these are the two things the page exists for, so
   they stack and go full width rather than shrink. */
@media (max-width: 560px) {
  [data-theme="navy"] .home-hero .hero-cta {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 10px;
  }
  [data-theme="navy"] .home-hero .hero-cta .btn { width: 100%; flex: initial; }
  [data-theme="navy"] .home-hero .hero-quick-link {
    justify-content: center;
    margin-top: 4px;
  }
}

/* ==========================================================================
   Hero cards

   The four credentials live in the hero's second column. Left-aligning the
   headline opened a hole on the right; this fills it with the reassurance a
   nervous visitor reads while deciding whether to press Call, instead of a
   decorative panel that says nothing.
   ========================================================================== */

[data-theme="navy"] .hero-cards ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

[data-theme="navy"] .hero-card {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  padding: var(--s4);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 14px;
  background: rgba(255, 255, 255, .055);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background var(--t-mid) var(--ease),
              border-color var(--t-mid) var(--ease),
              transform var(--t-mid) var(--ease);
}
[data-theme="navy"] .hero-card:hover {
  background: rgba(255, 255, 255, .09);
  border-color: rgba(111, 180, 255, .34);
  transform: translateY(-2px);
}
[data-theme="navy"] .hero-card > svg {
  flex: none;
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 9px;
  background: rgba(111, 180, 255, .14);
  color: var(--azure-lift);
}
[data-theme="navy"] .hero-card b {
  display: block;
  font-size: .88rem;
  line-height: 1.3;
  color: #fff;
  letter-spacing: -.005em;
  text-wrap: balance;
}
[data-theme="navy"] .hero-card small {
  display: block;
  margin-top: 3px;
  font-size: .76rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, .58);
  text-wrap: pretty;
}

/* Two columns from 1100px, where the headline has stopped needing the width. */
@media (min-width: 1100px) {
  [data-theme="navy"] .home-hero .hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 372px);
    align-items: center;
    gap: var(--s8);
  }
  [data-theme="navy"] .home-hero .hero-inner { padding-bottom: 0; }
}

/* Below that the cards sit under the buttons, two up, then one. */
@media (max-width: 1099px) {
  [data-theme="navy"] .hero-cards { margin-top: var(--s6); }
  [data-theme="navy"] .hero-cards ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  [data-theme="navy"] .hero-cards ul { grid-template-columns: 1fr; }
  [data-theme="navy"] .hero-card { padding: var(--s3) var(--s4); }
  [data-theme="navy"] .hero-card > svg { width: 30px; height: 30px; padding: 6px; }
}

/* ==========================================================================
   Making the header sit ON the hero rather than above it

   .header is position:sticky, which still occupies flow — so a transparent
   header just showed the white page behind it. On the landing page only, it
   comes out of flow and floats over the hero; the hero already reserves
   --header-h of top padding for it.
   ========================================================================== */

[data-theme="navy"] body.home .header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
}
[data-theme="navy"] body.home .brand {
  width: 178px;
  height: 44px;
}
[data-theme="navy"] body.home .brand img { width: 178px; }

/* The primary header action is navy-on-navy once the bar goes transparent. */
[data-theme="navy"] body.home .header-contact--primary {
  background: #fff;
  color: var(--navy);
}
[data-theme="navy"] body.home .header-contact--primary:hover {
  background: var(--azure-lift);
  color: var(--navy-deep);
}
[data-theme="navy"] body.home .header-contact:not(.header-contact--primary) {
  color: rgba(255, 255, 255, .82);
}
[data-theme="navy"] body.home .header-language {
  background: rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .20);
}
[data-theme="navy"] body.home .header-language button[aria-pressed="true"] {
  background: rgba(255, 255, 255, .90);
  color: var(--navy);
}

/* Once the bar is solid navy, the same treatment still reads correctly, so
   nothing needs to change on scroll beyond the background itself. */

/* ---- Credentials strip: the <b> and <small> carry their own colours ---- */
[data-theme="navy"] .home-hero .proof-strip,
[data-theme="navy"] .home-hero .proof-item { border-color: rgba(255, 255, 255, .14); }
[data-theme="navy"] .home-hero .proof-item b { color: #fff; }
[data-theme="navy"] .home-hero .proof-item small { color: rgba(255, 255, 255, .60); }
[data-theme="navy"] .home-hero .proof-item > svg { color: var(--azure-lift); }

/* Two full-size buttons will not sit side by side at 390px without clipping
   "Chat on WhatsApp", and these are the two things the page exists for, so
   they stack and go full width rather than shrink. */
@media (max-width: 560px) {
  [data-theme="navy"] .home-hero .hero-cta {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 10px;
  }
  [data-theme="navy"] .home-hero .hero-cta .btn { width: 100%; flex: initial; }
  [data-theme="navy"] .home-hero .hero-quick-link {
    justify-content: center;
    margin-top: 4px;
  }
}

/* ==========================================================================
   Credentials band

   These four lines used to sit inside the hero as a bordered card, which made
   the first screen carry two competing blocks and wrapped every label onto
   two ragged lines. They are now their own beat directly under the hero,
   still on navy so the gradient reads as one continuous opening, and sized so
   each label holds one line at desktop widths.
   ========================================================================== */

[data-theme="navy"] .credentials {
  background: linear-gradient(180deg, #06182E 0%, #081E36 100%);
  color: #fff;
  padding-block: var(--s6);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

[data-theme="navy"] .cred-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

[data-theme="navy"] .cred {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  padding: var(--s2) var(--s4);
  border-left: 1px solid rgba(255, 255, 255, .10);
}
[data-theme="navy"] .cred:first-child { border-left: 0; padding-left: 0; }
[data-theme="navy"] .cred:last-child { padding-right: 0; }

/* The icon gets a soft plate so it reads as a mark rather than a stray glyph. */
[data-theme="navy"] .cred > svg {
  flex: none;
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 9px;
  background: rgba(111, 180, 255, .12);
  color: var(--azure-lift);
}
[data-theme="navy"] .cred b {
  display: block;
  font-size: .86rem;
  line-height: 1.32;
  color: #fff;
  letter-spacing: -.005em;
  /* Two of these four labels wrap and two do not; balance stops the wrapped
     ones breaking after a single word. */
  text-wrap: balance;
}
[data-theme="navy"] .cred small {
  display: block;
  margin-top: 3px;
  font-size: .76rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, .58);
  text-wrap: pretty;
}

@media (max-width: 980px) {
  [data-theme="navy"] .cred-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  [data-theme="navy"] .cred {
    padding: var(--s4) var(--s4);
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .10);
  }
  [data-theme="navy"] .cred:nth-child(-n+2) { border-top: 0; }
  [data-theme="navy"] .cred:nth-child(odd) { padding-left: 0; }
  [data-theme="navy"] .cred:nth-child(even) { padding-right: 0; }
}
@media (max-width: 520px) {
  [data-theme="navy"] .cred-row { grid-template-columns: 1fr; }
  [data-theme="navy"] .cred {
    padding: var(--s3) 0;
    border-top: 1px solid rgba(255, 255, 255, .10);
  }
  [data-theme="navy"] .cred:nth-child(-n+2) { border-top: 1px solid rgba(255, 255, 255, .10); }
  [data-theme="navy"] .cred:first-child { border-top: 0; }
  [data-theme="navy"] .cred:nth-child(odd),
  [data-theme="navy"] .cred:nth-child(even) { padding-inline: 0; }
  [data-theme="navy"] .cred > svg { width: 30px; height: 30px; padding: 6px; }
}

/* The hero no longer holds the strip, so it can centre on the one thing it
   is for: the headline and the two buttons. */
[data-theme="navy"] .home-hero .hero-shell { margin-bottom: 0; }

/* ==========================================================================
   Inner pages — services, service detail, locations, branches, insurance,
   about, contact

   The landing page earns a transparent header because it has a dark hero
   underneath. Every other page gets the same navy bar, solid, so the chrome
   is the theme's constant. Reading surfaces below it stay light: the branch
   pages carry closure panels, hours and addresses that people read under
   pressure, and dark type on a light ground is the right call there.
   ========================================================================== */

[data-theme="navy"] body:not(.home) .header {
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
[data-theme="navy"] body:not(.home) .header.is-stuck {
  background: rgba(6, 24, 46, .94);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 10px 30px rgba(6, 24, 46, .28);
}

/* The navy wordmark is invisible on navy — swap to the knockout logo. */
[data-theme="navy"] body:not(.home) .brand {
  width: 178px;
  height: 44px;
  background: url("../img/logo-light.png") left center / contain no-repeat;
}
[data-theme="navy"] body:not(.home) .brand img { visibility: hidden; width: 178px; }

[data-theme="navy"] body:not(.home) .nav a { color: rgba(255, 255, 255, .82); }
[data-theme="navy"] body:not(.home) .nav a:hover,
[data-theme="navy"] body:not(.home) .nav a[aria-current="page"] { color: #fff; }
[data-theme="navy"] body:not(.home) .nav a::after { background: var(--azure-lift); }
[data-theme="navy"] body:not(.home) .burger {
  color: #fff;
  border-color: rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .08);
}
[data-theme="navy"] body:not(.home) .header-contact--primary {
  background: #fff;
  color: var(--navy);
}
[data-theme="navy"] body:not(.home) .header-contact--primary:hover {
  background: var(--azure-lift);
  color: var(--navy-deep);
}
[data-theme="navy"] body:not(.home) .header-contact:not(.header-contact--primary) {
  color: rgba(255, 255, 255, .82);
}
[data-theme="navy"] body:not(.home) .header-language {
  background: rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .20);
}
[data-theme="navy"] body:not(.home) .header-language button { color: rgba(255, 255, 255, .75); }
[data-theme="navy"] body:not(.home) .header-language button[aria-pressed="true"] {
  background: rgba(255, 255, 255, .90);
  color: var(--navy);
}

/* ---- Page heroes: a tinted band, not a flat white slab ---- */
[data-theme="navy"] .page-hero {
  position: relative;
  background:
    radial-gradient(70% 120% at 88% 0%, rgba(111, 180, 255, .13) 0%, transparent 62%),
    linear-gradient(180deg, #EEF4FC 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
/* A hairline of brand colour where the navy bar meets the page. */
[data-theme="navy"] .page-hero::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--azure) 0%, var(--azure-lift) 45%, transparent 100%);
}

[data-theme="navy"] .page-hero .crumbs { color: var(--text-3); }
[data-theme="navy"] .page-hero .crumbs a { color: var(--azure); }
[data-theme="navy"] .page-hero h1 { letter-spacing: -.025em; }
[data-theme="navy"] .kicker { color: var(--azure); }

[data-theme="navy"] .section-head h2 { letter-spacing: -.02em; }
[data-theme="navy"] .section--soft { background: var(--surface); }

/* The eyebrow pill is green by default because branch pages use it to say
   "open". Where it is just a label — contact, insurance, about — it should
   carry the theme instead. Status eyebrows are the ones with a pulse dot or
   .is-closed, and those keep their green and red: same rule as Call and
   WhatsApp, colour that means something is never restyled.
   Browsers without :has() simply keep the old green, which is not a break. */
[data-theme="navy"] .page-hero .eyebrow:not(.is-closed):not(:has(.pulse)) {
  border-color: rgba(11, 99, 206, .22);
  background: rgba(11, 99, 206, .07);
  color: var(--azure);
}

/* ==========================================================================
   Alignment

   style.css centres the hero above 861px while every section heading below it
   is left-aligned, so the landing page changed axis halfway down. Everything
   goes left: one rhythm from the first screen to the footer, a headline that
   can run wider before it wraps, and open space on the right where the dot
   field is densest.
   ========================================================================== */

@media (min-width: 861px) {
  [data-theme="navy"] .home-hero .hero-inner {
    max-width: 20ch;          /* the headline governs the column width */
    max-width: min(100%, 62ch);
    margin-inline: 0;
    text-align: left;
  }
  [data-theme="navy"] .home-hero .hero-cta { justify-content: flex-start; }
  /* style.css clamps .hero .display to 16ch, which broke this headline over
     three lines once it moved left. Two lines reads as confident, three as
     cramped. */
  [data-theme="navy"] .home-hero .display { margin-inline: 0; max-width: 24ch; }
  [data-theme="navy"] .home-hero .lead { max-width: 52ch; margin-inline: 0; }
  [data-theme="navy"] .home-hero .hero-quick-links {
    justify-content: flex-start;
    margin-inline: 0;
  }
  [data-theme="navy"] .home-hero .hero-quick-link { justify-content: flex-start; }

  /* The cue belongs to the page, not to the text column, so it stays centred. */
}

/* Mobile was already left-aligned; keep the buttons full width. */

/* ==========================================================================
   Alternating grounds

   The landing page now runs navy → white → navy → white → navy → white →
   navy → navy → navy. Each change of ground marks a change of subject, which
   is what makes a long scroll readable; the run of navy at the end is
   deliberate, closing the page the way it opened.
   ========================================================================== */

/* Cards on a deep ground: glass, not white slabs punched into navy. */
[data-theme="navy"] .stage--deep .svc-card,
[data-theme="navy"] .stage--deep .branch {
  background: rgba(255, 255, 255, .055);
  border-color: rgba(255, 255, 255, .13);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
[data-theme="navy"] .stage--deep .svc-card:hover,
[data-theme="navy"] .stage--deep .branch:hover {
  background: rgba(255, 255, 255, .09);
  border-color: rgba(111, 180, 255, .30);
}
[data-theme="navy"] .stage--deep .svc-card h3,
[data-theme="navy"] .stage--deep .svc-card h3 a,
[data-theme="navy"] .stage--deep .branch h3,
[data-theme="navy"] .stage--deep .branch h3 a { color: #fff; }
[data-theme="navy"] .stage--deep .svc-card p,
[data-theme="navy"] .stage--deep .branch p,
[data-theme="navy"] .stage--deep .branch-addr { color: rgba(255, 255, 255, .66); }
[data-theme="navy"] .stage--deep .svc-card .tlink { color: var(--azure-lift); }
[data-theme="navy"] .stage--deep .svc-card-icon {
  background: rgba(6, 24, 46, .72);
  color: var(--azure-lift);
}
[data-theme="navy"] .stage--deep .subbrand { color: rgba(255, 255, 255, .62); }

/* Branch chips: the Map chip is the soft one, so it needs a dark-ground
   variant. Call and WhatsApp keep their own colours, as always. */
[data-theme="navy"] .stage--deep .branch-actions .branch-action--map {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .88);
}
[data-theme="navy"] .stage--deep .branch-actions .branch-action--redirect {
  background: rgba(111, 180, 255, .16);
  border-color: rgba(111, 180, 255, .38);
  color: #fff;
}
/* The "details being confirmed" flag has to stay readable on navy. */
[data-theme="navy"] .stage--deep .verify { color: #FFB4B8; }
[data-theme="navy"] .stage--deep .badge-open { background: rgba(6, 24, 46, .78); }
[data-theme="navy"] .stage--deep .filter-bar .chip { color: rgba(255, 255, 255, .82); }

/* ---- "Need a doctor right now?" closes the page on navy ---- */
[data-theme="navy"] .band {
  background:
    radial-gradient(90% 80% at 12% 0%, var(--deep-b) 0%, transparent 62%),
    linear-gradient(160deg, var(--deep-a) 0%, var(--deep-ink) 100%);
  border-top: 0;
  border-bottom: 0;
  color: #fff;
}
[data-theme="navy"] .band::before {
  background: radial-gradient(circle, rgba(111, 180, 255, .16), transparent 66%);
}
[data-theme="navy"] .band h2 { color: #fff; }
[data-theme="navy"] .band .lead { color: rgba(255, 255, 255, .72); }
[data-theme="navy"] .band .btn-ghost {
  border-color: rgba(255, 255, 255, .34);
  color: #fff;
}
[data-theme="navy"] .band .btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .08);
}

/* ==========================================================================
   Insurer logos

   These were desaturated at rest and only came up to colour on hover, which
   meant a visitor scanning for their own insurer saw ten grey rectangles.
   Recognition is the entire job of this wall, so the logos are always in
   colour; the tile does the settling down instead of the logo.
   ========================================================================== */

[data-theme="navy"] .insurer img {
  filter: none;
  opacity: 1;
}
[data-theme="navy"] .insurer {
  background: #fff;
  border-color: var(--line);
}
[data-theme="navy"] .insurer:hover {
  border-color: rgba(11, 99, 206, .32);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
[data-theme="navy"] .insurer {
  transition: border-color var(--t-mid) var(--ease),
              box-shadow var(--t-mid) var(--ease),
              transform var(--t-mid) var(--ease);
}

/* The open-clinic count sat in the mark's red, which on a medical site reads
   as an alert rather than a number. */
[data-theme="navy"] .findmap-count b { color: var(--azure); }
[data-theme="navy"] .findmap-count { color: var(--text-2); }

/* ==========================================================================
   Fixes on the deep sections
   ========================================================================== */

/* .btn-ghost carries background: var(--bg) — white. On a navy section that
   made "View all services" white text on a white button. */
[data-theme="navy"] .stage--deep .btn-ghost,
[data-theme="navy"] .band .btn-ghost {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .30);
  color: #fff;
}
[data-theme="navy"] .stage--deep .btn-ghost:hover,
[data-theme="navy"] .band .btn-ghost:hover {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
}

/* Cards were too close in value to the ground behind them. Lift the surface,
   strengthen the edge, and give them a shadow so they sit on the navy rather
   than dissolve into it. */
[data-theme="navy"] .stage--deep .svc-card,
[data-theme="navy"] .stage--deep .branch {
  background: rgba(255, 255, 255, .085);
  border-color: rgba(255, 255, 255, .20);
  box-shadow: 0 18px 40px rgba(3, 12, 24, .35);
}
[data-theme="navy"] .stage--deep .svc-card:hover,
[data-theme="navy"] .stage--deep .branch:hover {
  background: rgba(255, 255, 255, .13);
  border-color: rgba(111, 180, 255, .45);
}
[data-theme="navy"] .stage--deep .branch-addr,
[data-theme="navy"] .stage--deep .svc-card p,
[data-theme="navy"] .stage--deep .branch p { color: rgba(255, 255, 255, .76); }

/* The status badge kept its dark-red ink after I darkened its plate, so
   "Temporarily closed" was dark red on near-black. */
[data-theme="navy"] .stage--deep .badge-open {
  background: rgba(6, 24, 46, .82);
  border-color: rgba(255, 255, 255, .22);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
[data-theme="navy"] .stage--deep .badge-open.is-closed {
  border-color: rgba(255, 150, 155, .45);
  color: #FFB4B8;
}
[data-theme="navy"] .stage--deep .verify {
  background: rgba(255, 150, 155, .12);
  border-color: rgba(255, 150, 155, .38);
  color: #FFB4B8;
}

/* ==========================================================================
   The photo fallback

   Some branches may have no photograph on file. The old fallback was
   the pre-theme teal gradient with the full-colour logo and uppercase white
   type crowded onto one line, which read as a broken image rather than a
   deliberate one.

   Deliberately NOT another branch's photo: these cards carry an address
   somebody navigates to, and showing the wrong building is worse than
   showing no building.
   ========================================================================== */

[data-theme="navy"] .branch-photo-fallback {
  flex-direction: column;
  gap: var(--s3);
  padding: var(--s5);
  text-align: center;
  color: rgba(255, 255, 255, .52);
  background:
    radial-gradient(80% 70% at 50% 0%, rgba(111, 180, 255, .16) 0%, transparent 62%),
    linear-gradient(150deg, #123255 0%, #0A2440 60%, #06182E 100%);
}
/* A quiet grid, so the panel reads as a designed placeholder. */
[data-theme="navy"] .branch-photo-fallback::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(70% 60% at 50% 50%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 50%, #000 0%, transparent 78%);
  pointer-events: none;
}
[data-theme="navy"] .branch-photo-fallback img {
  position: relative;
  width: 42px;
  height: 42px;
  opacity: .9;
}
[data-theme="navy"] .branch-photo-fallback span {
  position: relative;
  max-width: none;
  font-size: .58rem;
  letter-spacing: .18em;
  line-height: 1.5;
  color: rgba(255, 255, 255, .42);
}
[data-theme="navy"] .branch-photo-fallback b {
  margin-top: 6px;
  font-size: 1.05rem;
  letter-spacing: -.015em;
  color: rgba(255, 255, 255, .92);
}

/* ==========================================================================
   Mobile nav drawer

   .nav is position: fixed and lives inside .header. backdrop-filter makes an
   element a containing block for fixed descendants, so a blurred header traps
   the drawer inside a 72px bar — the menu works at the top of the page and
   breaks the moment .is-stuck turns on. style.css already disables the filter
   below 861px with a comment saying exactly this; the theme's scrolled-header
   rules put it back. Keep the blur for desktop only.
   ========================================================================== */

@media (max-width: 860px) {
  [data-theme="navy"] body.home .header,
  [data-theme="navy"] body.home .header.is-stuck,
  [data-theme="navy"] body:not(.home) .header,
  [data-theme="navy"] body:not(.home) .header.is-stuck {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  /* Without the blur the bar needs a solid ground to stay legible over content. */
  [data-theme="navy"] body.home .header.is-stuck,
  [data-theme="navy"] body:not(.home) .header.is-stuck {
    background: var(--navy-deep);
  }
  /* The drawer is its own surface and must clear the page behind it. */
  [data-theme="navy"] .nav {
    background: var(--navy-deep);
    box-shadow: -20px 0 55px rgba(3, 8, 16, .55);
  }
  [data-theme="navy"] .nav a {
    color: rgba(255, 255, 255, .90);
    border-bottom-color: rgba(255, 255, 255, .10);
  }
  [data-theme="navy"] .nav-backdrop { background: rgba(3, 8, 16, .58); }
}

/* ==========================================================================
   The closed-branch chip

   style.css stacks branch chips icon-over-label below 620px — right for
   "Call", "Map", "WhatsApp", one short word under a glyph. This chip carries
   a destination, and the phone grid is a deliberate two columns, so at ~143px
   a single sentence wrapped to three ragged lines against its own border.
   The label is now two elements — what it is, then where it goes — so the
   break is designed rather than accidental.
   ========================================================================== */

[data-theme="navy"] :is(.location-branch-grid, .home-branch-grid) .branch-actions .branch-action--redirect {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  height: auto;
  min-height: 48px;
  padding: 9px 12px;
  justify-content: center;
  text-align: left;
  white-space: normal;
}
[data-theme="navy"] :is(.location-branch-grid, .home-branch-grid) .branch-actions .branch-action--redirect svg { flex: none; width: 16px; height: 16px; }
[data-theme="navy"] :is(.location-branch-grid, .home-branch-grid) .branch-actions .branch-action--redirect .ro {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}
[data-theme="navy"] :is(.location-branch-grid, .home-branch-grid) .branch-actions .branch-action--redirect .ro-lead {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
}
[data-theme="navy"] :is(.location-branch-grid, .home-branch-grid) .branch-actions .branch-action--redirect .ro-name {
  font-size: .78rem;
  font-weight: 800;
  color: #fff;
  text-wrap: balance;
}

@media (max-width: 980px) {
  [data-theme="navy"] :is(.location-branch-grid, .home-branch-grid) .branch-actions .branch-action--redirect { justify-content: flex-start; }
  [data-theme="navy"] .home-branch-grid .branch-body { padding-bottom: var(--s4); }
}
@media (max-width: 620px) {
  [data-theme="navy"] :is(.location-branch-grid, .home-branch-grid) .branch-actions .branch-action--redirect { padding: 8px 10px; gap: 7px; }
  [data-theme="navy"] :is(.location-branch-grid, .home-branch-grid) .branch-actions .branch-action--redirect .ro-lead { font-size: .58rem; letter-spacing: .04em; }
  [data-theme="navy"] :is(.location-branch-grid, .home-branch-grid) .branch-actions .branch-action--redirect .ro-name { font-size: .74rem; }
}

/* Mobile-only breathing room. Keep the original desktop, palette, dot field
   and every word; credentials follow the first decision screen. */
@media (max-width: 860px) {
  [data-theme="navy"] .home-hero {
    min-height: 0;
    padding-block: calc(var(--header-h) + 28px) 36px;
    align-content: start;
  }
  [data-theme="navy"] .home-hero .hero-inner {
    min-width: 0;
    min-height: calc(100svh - var(--header-h) - var(--dock-h) - 28px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 32px;
  }
  [data-theme="navy"] .home-hero .eyebrow {
    align-self: flex-start;
    max-width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: .64rem;
    line-height: 1.65;
    letter-spacing: .09em;
    margin-bottom: 24px;
  }
  [data-theme="navy"] .home-hero .eyebrow .pulse { flex: none; }
  [data-theme="navy"] .home-hero .display {
    font-size: clamp(2rem, 8.8vw, 2.8rem);
    line-height: 1.12;
    max-width: 19ch;
    margin-bottom: 20px;
  }
  [data-theme="navy"] .home-hero .lead {
    font-size: .94rem;
    line-height: 1.7;
    margin-bottom: 28px;
  }
  [data-theme="navy"] .home-hero .hero-cta {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 10px;
    margin-bottom: 12px;
  }
  [data-theme="navy"] .home-hero .hero-cta .btn {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 10px 9px;
    font-size: .8rem;
    white-space: normal;
    gap: 7px;
    box-shadow: none;
  }
  [data-theme="navy"] .home-hero .hero-cta .btn > svg { flex: none; width: 18px; height: 18px; }
  [data-theme="navy"] .home-hero .hero-quick-links { margin-top: 0; gap: 8px 14px; }
  [data-theme="navy"] .home-hero .hero-quick-link {
    justify-content: flex-start;
    gap: 7px;
    margin-top: 0;
    min-height: 44px;
    font-size: .76rem;
  }
  [data-theme="navy"] .home-hero .hero-quick-link svg { flex: none; width: 16px; height: 16px; }
  [data-theme="navy"] .home-hero .hero-quick-link svg:last-child { display: none; }
  [data-theme="navy"] .home-hero .hero-cards {
    margin-top: 0;
    padding-top: 26px;
    border-top: 1px solid rgba(255,255,255,.14);
  }
  [data-theme="navy"] .home-hero .hero-cards ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  [data-theme="navy"] .home-hero .hero-card { flex-direction: column; padding: 15px; gap: 10px; }
  [data-theme="navy"] .home-hero .hero-card b { font-size: .8rem; line-height: 1.45; text-wrap: pretty; }
  [data-theme="navy"] .home-hero .hero-card small { font-size: .73rem; line-height: 1.5; }
}
