/* =========================================================================
   Advanced Diabetes Care Clinic — Ambernath East
   Hand-built stylesheet. No framework, no build step.

   Direction: warm bone canvas with the DiabeDoc logo palette — navy derived
   from the logo blue, plus the logo blue and orange as accents.
   Typography: Source Serif 4 for headings, Source Sans 3 for everything else.

   Sections: 1 Tokens · 2 Reset · 3 Layout · 4 Typography · 5 Buttons
             6 Header/Nav · 7 Hero · 8 Ticker · 9 Stats · 10 About
             11 Cards · 12 Programme · 13 Reviews · 14 FAQ · 15 Visit
             16 CTA band · 17 Footer · 18 Floating actions · 19 Motion
   ========================================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Canvas — warm bone rather than clinical white */
  --bone-50:  #FBF9F5;
  --bone-100: #F5F1E9;
  --bone-200: #EBE5D8;
  --bone-300: #DED6C4;

  /* Navy — primary. Darkened from the logo blue so it can carry text and
     buttons; the logo blue itself is only 2.8:1 on this canvas. */
  --navy-900: #0B1F33;
  --navy-800: #102D4A;
  --navy-700: #163E63;
  --navy-600: #1D5182;
  --navy-500: #2A6BA5;

  /* Sky — the logo blue (#5A9BD5) and tints of it. Fills and accents only. */
  --sky-500: #4A8BC7;
  --sky-400: #5A9BD5;
  --sky-200: #B4D3EC;
  --sky-100: #D9E9F6;
  --sky-50:  #EDF4FB;

  /* Orange — the logo orange (#FE8B4C) plus darkened steps. -400 is the true
     logo colour for fills; -600 is the darkest step, used wherever it's text. */
  --orange-600: #8F3E12;
  --orange-500: #B04E17;
  --orange-400: #FE8B4C;
  --orange-300: #FDA875;
  --orange-100: #FDE2D0;
  --orange-50:  #FEF3EB;

  /* Ink neutrals, cooled toward the navy.
     Contrast ratios below are measured against the bone canvas (#FBF9F5);
     every one of these clears WCAG AA (4.5:1) for normal-size text.
       ink-700  10.5:1   ink-600  7.9:1
       ink-500   6.2:1   ink-400  4.8:1  (smallest meta text only) */
  --ink-900: #101F2E;
  --ink-800: #1B2E40;
  --ink-700: #2C4155;
  --ink-600: #3E5061;
  --ink-500: #4E6072;
  --ink-400: #5F7183;
  --ink-300: #8697A6;

  --surface:  #FFFFFF;
  --line:     #E2DCCE;
  --line-soft:#EDE8DC;

  --star: #E0A93B;

  /* Type — Adobe's Source superfamily. Both faces were drawn for on-screen
     legibility: open apertures, unambiguous letterforms, and sturdy low-contrast
     strokes that hold up at small sizes and in high-contrast/zoom modes.
     Source Serif carries the formal register; Source Sans handles all UI text. */
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Space & shape */
  --shell: 1200px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --sec-y: clamp(4.25rem, 8.5vw, 8rem);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-2xl: 40px;
  --r-pill: 999px;

  --sh-xs: 0 1px 2px rgba(16, 31, 46, .05);
  --sh-sm: 0 2px 10px rgba(16, 31, 46, .05), 0 1px 2px rgba(16, 31, 46, .04);
  --sh-md: 0 14px 34px -16px rgba(16, 31, 46, .22), 0 2px 8px rgba(16, 31, 46, .04);
  --sh-lg: 0 40px 70px -30px rgba(11, 31, 51, .42), 0 10px 24px -14px rgba(16, 31, 46, .14);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  font-family: var(--font-body);
  font-size: 1.04rem;
  line-height: 1.68;
  color: var(--ink-700);
  background: var(--bone-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--navy-500); }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }
address { font-style: normal; }

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

.skip-link {
  position: absolute;
  left: 50%;
  top: -80px;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--navy-700);
  color: #fff;
  padding: .7rem 1.2rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-weight: 600;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

.ico {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico--wa { stroke-width: 1.5; }

/* ---------- 3. Layout ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--sec-y); }
.section--tint { background: var(--bone-100); }
.section--dark {
  background: var(--navy-900);
  background-image:
    radial-gradient(900px 460px at 12% 0%, rgba(74, 139, 199, .17), transparent 62%),
    radial-gradient(700px 400px at 92% 100%, rgba(254, 139, 76, .12), transparent 60%);
  color: var(--sky-100);
}
/* `.btn` also sets display and is declared later in this file, so a bare
   `.hide-sm` lost to it at equal specificity and never actually hid anything.
   Qualifying with .btn wins. */
.hide-sm, .btn.hide-sm { display: none; }
@media (min-width: 700px) { .hide-sm, .btn.hide-sm { display: inline-flex; } }

/* ---------- 4. Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1.14;
  letter-spacing: -.012em;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.15rem); line-height: 1.1; }
h2 { font-size: clamp(1.95rem, 3.9vw, 3rem); line-height: 1.12; }
h3 { font-size: 1.3rem; line-height: 1.28; }
h4 { font-size: 1.08rem; }
h1 em, h2 em {
  font-style: italic;
  font-weight: 600;
  color: var(--navy-600);
}

p { text-wrap: pretty; }
h1, h2 { text-wrap: balance; }

/* Section headings on dark panels */
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark h2 em { color: var(--sky-400); }

.eyebrow, .pill {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-body);
  font-size: .79rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--navy-600);
  margin-bottom: 1.15rem;
}
.eyebrow .dot, .pill__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--orange-500);
  box-shadow: 0 0 0 4px var(--orange-50);
}
.section--dark .eyebrow { color: var(--sky-400); }
.section--dark .eyebrow .dot { background: var(--sky-400); box-shadow: 0 0 0 4px rgba(90, 155, 213, .18); }

/* Hero pill gets a real chip treatment */
.pill {
  padding: .5rem 1rem .5rem .8rem;
  border: 1px solid var(--bone-300);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(6px);
  margin-bottom: 1.6rem;
}

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--ink-600);
  max-width: 52ch;
}

.sechead {
  max-width: 740px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(2.75rem, 5vw, 4rem);
}
.sechead--left { margin-inline: 0; text-align: left; }
.sechead__sub {
  margin-top: 1.1rem;
  color: var(--ink-500);
  font-size: 1.05rem;
}
.section--dark .sechead__sub { color: rgba(217, 233, 246, .72); }

.stars { color: var(--star); letter-spacing: .1em; font-size: .95rem; }
.stars--sm { font-size: .8rem; display: block; }

/* ---------- 5. Buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink-800);
  --btn-bd: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .82rem 1.4rem;
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: -.005em;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out),
              background-color .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease);
}
/* Sheen that wipes across on hover */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.22) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform .7s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { transform: translateX(130%); }
.btn:active { transform: translateY(0); }

.btn--primary {
  --btn-bg: var(--navy-700);
  --btn-fg: #fff;
  --btn-bd: var(--navy-700);
  box-shadow: 0 10px 24px -12px rgba(22, 62, 99, .85);
}
.btn--primary:hover { --btn-bg: var(--navy-800); --btn-bd: var(--navy-800); color: #fff; box-shadow: 0 18px 32px -14px rgba(22, 62, 99, .95); }

.btn--accent {
  --btn-bg: var(--sky-400);
  --btn-fg: var(--navy-900);
  --btn-bd: var(--sky-400);
  box-shadow: 0 12px 28px -14px rgba(90, 155, 213, .9);
}
.btn--accent:hover { --btn-bg: var(--sky-500); --btn-bd: var(--sky-500); color: var(--navy-900); }

.btn--outline { --btn-bd: var(--bone-300); --btn-fg: var(--ink-800); --btn-bg: rgba(255,255,255,.75); }
.btn--outline:hover { --btn-bd: var(--navy-600); --btn-fg: var(--navy-700); --btn-bg: #fff; }

.btn--ghost { --btn-fg: var(--ink-700); --btn-bd: transparent; }
.btn--ghost:hover { background: var(--sky-50); --btn-fg: var(--navy-700); }

.btn--white { --btn-bg: #fff; --btn-fg: var(--navy-800); --btn-bd: #fff; }
.btn--white:hover { --btn-bg: var(--bone-100); --btn-bd: var(--bone-100); color: var(--navy-900); }

.btn--ghostlight { --btn-bd: rgba(255,255,255,.4); --btn-fg: #fff; }
.btn--ghostlight:hover { background: rgba(255,255,255,.12); color: #fff; --btn-bd: rgba(255,255,255,.7); }

.btn--text {
  padding-inline: .25rem;
  --btn-fg: var(--navy-700);
  border-color: transparent;
  overflow: visible;
}
.btn--text::after { display: none; }
.btn--text:hover { --btn-fg: var(--navy-500); transform: none; gap: .85rem; }

.btn--sm { padding: .58rem 1.05rem; font-size: .88rem; }
.btn--lg { padding: 1rem 1.8rem; font-size: 1.02rem; }
.btn--block { display: flex; width: 100%; }

/* ---------- 6. Top bar, header & nav ---------- */
.topbar {
  background: var(--navy-900);
  color: var(--sky-200);
  font-size: .8rem;
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 40px;
  flex-wrap: wrap;
}
.topbar__item { display: inline-flex; align-items: center; gap: .45rem; }
.topbar__item--sep { display: none; }
.topbar__phone { color: #fff; font-weight: 700; margin-left: auto; }
.topbar__phone:hover { color: var(--sky-400); }
.topbar .ico { opacity: .7; }
@media (max-width: 760px) {
  .topbar__item:not(.topbar__phone) { display: none; }
  .topbar__phone { margin-left: 0; }
  .topbar__inner { justify-content: center; }
}
@media (min-width: 1000px) { .topbar__item--sep { display: inline-flex; } }

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 245, .78);
  backdrop-filter: saturate(1.5) blur(16px);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.header.is-stuck {
  border-bottom-color: var(--line-soft);
  box-shadow: 0 8px 26px -22px rgba(16, 31, 46, .6);
  background: rgba(251, 249, 245, .93);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 72px;
}

/* Scroll progress rail */
.progress {
  position: absolute;
  inset: auto 0 -1px 0;
  height: 2px;
  background: transparent;
  overflow: hidden;
}
.progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--navy-600), var(--sky-400));
}

/* `flex: none` + the default `min-width: auto` made the brand un-shrinkable, so
   its widest text set a floor for the whole header — and therefore the whole
   document. It must be allowed to give way on narrow screens. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  color: inherit;
  flex: 0 1 auto;
  min-width: 0;
}
.brand__text { min-width: 0; }
.brand__logo {
  width: auto;
  height: 40px;
  flex: none;
  transition: transform .45s var(--ease-out);
}
.brand:hover .brand__logo { transform: scale(1.05); }
/* Phones: the sticky bottom bar already carries Call / Book / Directions, so the
   header CTAs are redundant there — dropping them gives the clinic name the room
   it needs instead of forcing the page wider than the screen. */
@media (max-width: 620px) {
  .header__inner { gap: .65rem; }
  .header__actions .btn { display: none; }
  .brand__text strong { font-size: 1.05rem; }
}
@media (max-width: 420px) {
  .brand { gap: .6rem; }
  .brand__logo { height: 34px; }
  .brand__text strong { font-size: .98rem; }
  .brand__text small { font-size: .62rem; letter-spacing: .09em; }
}
@media (max-width: 340px) {
  .brand__logo { height: 30px; }
  .brand__text strong { font-size: .92rem; }
  .brand__text small { display: none; }
}
.brand__text { display: flex; flex-direction: column; line-height: 1.12; }
.brand__text strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.22rem;
  color: var(--ink-900);
  letter-spacing: -.015em;
}
.brand__text small { font-size: .69rem; color: var(--ink-400); letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.brand--light .brand__text strong { color: #fff; }
.brand--light .brand__text small { color: var(--sky-400); }

.nav { display: none; margin-left: auto; gap: .1rem; }
.nav a {
  position: relative;
  padding: .5rem .8rem;
  border-radius: var(--r-pill);
  font-size: .93rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink-600);
  transition: color .2s var(--ease);
}
/* Underline that grows from the centre */
.nav a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: .28rem;
  width: 0; height: 2px;
  border-radius: 2px;
  background: var(--sky-500);
  transform: translateX(-50%);
  transition: width .28s var(--ease-out);
}
.nav a:hover { color: var(--navy-700); }
.nav a:hover::after, .nav a.is-active::after { width: calc(100% - 1.6rem); }
.nav a.is-active { color: var(--navy-800); }
@media (min-width: 1040px) { .nav { display: flex; } }

.header__actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
@media (min-width: 1040px) { .header__actions { margin-left: 1.25rem; } }

.navtoggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 13px;
  cursor: pointer;
}
.navtoggle span {
  display: block;
  height: 1.8px;
  background: var(--ink-800);
  border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .2s var(--ease);
}
.navtoggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
.navtoggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navtoggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }
@media (min-width: 1040px) { .navtoggle { display: none; } }

@media (max-width: 1039px) {
  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    top: calc(100% + 10px);
    padding: .6rem;
    background: var(--bone-50);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow: var(--sh-md);
    animation: dropIn .26s var(--ease-out);
  }
  .nav.is-open a { padding: .85rem 1rem; font-size: 1.02rem; border-radius: 14px; }
  .nav.is-open a::after { display: none; }
  .nav.is-open a:hover { background: var(--sky-50); }
}
@keyframes dropIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 6vw, 5.5rem) clamp(3.5rem, 7vw, 6rem);
}
.hero__aura {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(10px);
}
.hero__aura--a {
  right: -12%; top: -28%;
  width: 760px; height: 760px;
  background: radial-gradient(circle, rgba(90, 155, 213, .26), rgba(90, 155, 213, 0) 66%);
}
.hero__aura--b {
  left: -18%; bottom: -34%;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(254, 139, 76, .14), rgba(254, 139, 76, 0) 68%);
}
.hero__inner {
  position: relative;
  display: grid;
  gap: clamp(3rem, 6vw, 4rem);
  align-items: center;
}
@media (min-width: 960px) {
  .hero__inner { grid-template-columns: 1.08fr .92fr; gap: 4.5rem; }
}

.hero h1 { margin-bottom: 1.35rem; }
.hero .lede { margin-bottom: 2.1rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.4rem; }

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem 1.7rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--bone-300);
  font-size: .9rem;
  color: var(--ink-500);
}
.hero__proof li { display: inline-flex; align-items: center; gap: .45rem; }
.hero__proof strong { color: var(--ink-900); font-weight: 800; }

/* Portrait — soft organic arch */
.hero__media { position: relative; padding-inline: clamp(0rem, 3vw, 1.5rem); }
.portrait {
  position: relative;
  border-radius: 46% 46% 30% 30% / 38% 38% 8% 8%;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy-600), var(--navy-900));
  box-shadow: var(--sh-lg);
  aspect-ratio: 4 / 4.7;
  max-width: 440px;
  margin-inline: auto;
}
.portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* The portrait is slightly wider than this frame, so `cover` crops the sides
     only — the X value is what matters. 42% sits his face on the frame's
     centre line; the Y value has no effect at this aspect ratio. */
  object-position: 42% 50%;
  transition: transform 1.1s var(--ease-out);
}
.portrait:hover img { transform: scale(1.04); }
.portrait figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 3.5rem 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: .12rem;
  color: #fff;
  background: linear-gradient(180deg, rgba(11,31,51,0) 0%, rgba(11,31,51,.9) 64%);
}
.portrait figcaption strong { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; letter-spacing: -.01em; }
.portrait figcaption span { font-size: .82rem; color: var(--sky-200); font-weight: 500; }

.floatcard {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .85rem 1.1rem;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
  will-change: transform;
}
.floatcard--exp {
  left: max(0px, calc(50% - 255px));
  top: 12%;
  flex-direction: column;
  align-items: flex-start;
  gap: .05rem;
  padding: .95rem 1.15rem;
}
.floatcard__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  line-height: 1;
  color: var(--navy-700);
}
.floatcard__num sup { font-size: .5em; top: -.6em; }
.floatcard__label { font-size: .77rem; line-height: 1.32; color: var(--ink-500); font-weight: 500; }
.floatcard--google { right: max(0px, calc(50% - 262px)); bottom: 14%; }
.floatcard__g { width: 26px; height: 26px; flex: none; }
.floatcard--google strong { display: block; font-size: .95rem; color: var(--ink-900); }
.floatcard--google span { font-size: .76rem; color: var(--ink-400); font-weight: 500; }
@media (max-width: 760px) {
  /* Flatter arch on small screens so it doesn't bite into the face. The crop
     no longer needs adjusting here — the frame keeps its aspect ratio at every
     width, so the desktop object-position holds. */
  .portrait { border-radius: 32% 32% 24% 24% / 22% 22% 6% 6%; }
}
/* On phones the chips are far too big to float over the photo — the Google one
   was 195px across a 330px portrait, sitting right on top of the doctor's name.
   Below this width they drop out of the overlay and sit under the photo as a
   two-up row, so nothing overlaps and both stay readable. */
@media (max-width: 640px) {
  .hero__media {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem;
    padding-inline: 0;
  }
  .portrait { grid-column: 1 / -1; margin-bottom: .25rem; }

  .floatcard {
    position: static;
    inset: auto;
    align-items: center;
    padding: .75rem .85rem;
    box-shadow: var(--sh-sm);
  }
  .floatcard--exp {
    flex-direction: row;
    align-items: center;
    gap: .55rem;
    padding: .75rem .85rem;
  }
  .floatcard__num { font-size: 1.55rem; }
  .floatcard__label { font-size: .71rem; line-height: 1.25; }

  .floatcard--google { gap: .5rem; }
  .floatcard__g { width: 22px; height: 22px; }
  .floatcard--google strong { font-size: .88rem; }
  .floatcard--google span { font-size: .67rem; line-height: 1.3; }
}

/* ---------- 8. Ticker ---------- */
.ticker {
  overflow: hidden;
  padding-block: 1.1rem;
  background: var(--navy-900);
  border-block: 1px solid var(--navy-800);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: slide 38s linear infinite;
}
.ticker__group {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  padding-right: 2.2rem;
  flex: none;
}
.ticker__group span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  color: var(--sky-100);
  white-space: nowrap;
}
.ticker__group i {
  width: 7px; height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--orange-500);
}
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- 9. Stats ---------- */
.stats { padding-block: clamp(3rem, 6vw, 4.5rem); background: var(--bone-50); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.25rem 1.5rem;
}
@media (min-width: 880px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }
.stat { display: flex; flex-direction: column; gap: .5rem; }
@media (min-width: 880px) {
  .stat + .stat { padding-left: 1.8rem; border-left: 1px solid var(--bone-300); }
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 4.4vw, 3.5rem);
  line-height: 1;
  color: var(--navy-700);
  letter-spacing: -.02em;
}
.stat__num small { font-size: .4em; color: var(--ink-400); }
.stat__label { font-size: .87rem; color: var(--ink-500); line-height: 1.5; max-width: 24ch; }

/* ---------- 10. About ---------- */
.about__grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); }
@media (min-width: 980px) { .about__grid { grid-template-columns: 1.06fr .94fr; align-items: start; } }
.about__intro p { color: var(--ink-600); margin-bottom: 1.15rem; max-width: 55ch; }
.about__intro h2 { margin-bottom: 1.5rem; }

.pullquote {
  margin: 2.25rem 0;
  padding: 1.5rem 1.7rem;
  border-left: 3px solid var(--orange-500);
  background: var(--orange-50);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.pullquote span {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.28;
  color: var(--ink-900);
  letter-spacing: -.015em;
}
.pullquote cite {
  display: block;
  margin-top: .65rem;
  font-family: var(--font-body);
  font-size: .8rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--orange-600);
}
.about__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }

.creds { display: grid; gap: .55rem; }
.creds li {
  display: flex;
  /* Every row is the same height, so centring puts the icon on the optical
     axis of the text block. Aligning to flex-start left it sitting 8px low
     against the title. */
  align-items: center;
  gap: 1rem;
  padding: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  transition: border-color .25s var(--ease), transform .25s var(--ease-out), box-shadow .25s var(--ease);
}
.creds li:hover {
  border-color: var(--sky-200);
  transform: translateX(6px);
  box-shadow: var(--sh-sm);
}
.creds__ico {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  flex: none;
  border-radius: 14px;
  background: var(--sky-50);
  border: 1px solid var(--sky-100);
  color: var(--navy-600);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.creds li:hover .creds__ico { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.creds__ico svg {
  width: 23px; height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Scoped to the text wrapper on purpose. A bare `.creds li span` also matches
   .creds__ico and, being more specific, silently overrode its `display: grid`
   with `display: block` — which killed the icon's centring. */
.creds li > div > strong { display: block; font-size: .98rem; color: var(--ink-900); font-weight: 700; }
.creds li > div > span { display: block; font-size: .84rem; color: var(--ink-500); line-height: 1.45; }

/* ---------- 11. Service cards ---------- */
.cards {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(278px, 1fr));
}
.card {
  position: relative;
  padding: 2rem 1.7rem 1.9rem;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: transform .32s var(--ease-out), box-shadow .32s var(--ease-out), border-color .3s var(--ease);
}
/* Mint wash that rises from the bottom on hover */
.card::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--sky-50));
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.card > * { position: relative; }
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); border-color: var(--sky-200); }
.card:hover::before { opacity: 1; }
.card__n {
  position: absolute;
  top: 1.4rem; right: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--bone-300);
  transition: color .3s var(--ease);
}
.card:hover .card__n { color: var(--sky-400); }
.card__ico {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 1.25rem;
  border-radius: 15px;
  background: var(--sky-50);
  color: var(--navy-600);
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .4s var(--ease-out);
}
.card:hover .card__ico { background: var(--navy-700); color: #fff; transform: rotate(-6deg) scale(1.06); }
.card__ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: .55rem; }
.card p { font-size: .94rem; color: var(--ink-500); }

/* ---------- 12. Programme ---------- */
.pillars {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-bottom: clamp(2.75rem, 5vw, 4.5rem);
}
.pillar {
  padding: 2rem 1.8rem;
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(180, 211, 236, .16);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease-out);
}
.pillar:hover { background: rgba(255,255,255,.08); border-color: rgba(180, 211, 236, .34); transform: translateY(-4px); }
.pillar__ico {
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  margin-bottom: 1.2rem;
  border-radius: 50%;
  background: var(--sky-400);
  color: var(--navy-900);
}
.pillar__ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pillar h3 { margin-bottom: .6rem; }
.pillar p { font-size: .94rem; color: rgba(217, 233, 246, .74); }

.steps {
  padding: clamp(2rem, 4vw, 3.5rem);
  border-radius: var(--r-2xl);
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(180, 211, 236, .16);
  text-align: center;
}
.steps__title { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 2.75rem; }
.steps__list {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  margin-bottom: 2.75rem;
  text-align: left;
}
.steps__list li { position: relative; padding-top: 1.6rem; border-top: 1px solid rgba(180, 211, 236, .22); }
.steps__n {
  position: absolute;
  top: -.95rem; left: 0;
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--orange-500);
  color: #fff;
  font-size: .85rem;
  font-weight: 800;
  box-shadow: 0 0 0 6px var(--navy-900);
}
.steps__list h4 { margin: .7rem 0 .45rem; }
.steps__list p { font-size: .9rem; color: rgba(217, 233, 246, .7); }

/* ---------- 13. Reviews ---------- */
.ratingbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xs);
}
.ratingbar__score { display: flex; align-items: center; gap: 1rem; }
.ratingbar__g { width: 34px; height: 34px; flex: none; }
.ratingbar__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.9rem;
  line-height: 1;
  color: var(--ink-900);
  letter-spacing: -.02em;
}
.ratingbar__meta { display: flex; flex-direction: column; gap: .1rem; font-size: .87rem; color: var(--ink-500); }
.ratingbar__meta strong { color: var(--ink-800); }
.ratingbar__actions { display: flex; flex-wrap: wrap; gap: .6rem; }

/* Auto-scrolling review marquee. Pauses on hover/focus so people can read.
   The seamless second copy is cloned by JS, so without JS this stays a plain
   horizontally scrollable row rather than a half-empty loop. */
.marquee { overflow-x: auto; }
.js .marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.marquee__track { display: flex; width: max-content; }
.js .marquee__track { animation: slide 64s linear infinite; }
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; gap: 1.2rem; padding-right: 1.2rem; flex: none; }

.review {
  width: 370px;
  flex: none;
  padding: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  transition: box-shadow .28s var(--ease), transform .28s var(--ease-out), border-color .28s var(--ease);
}
.review:hover { box-shadow: var(--sh-md); transform: translateY(-4px); border-color: var(--sky-200); }
.review__top { display: flex; align-items: center; gap: .8rem; margin-bottom: .95rem; }
.review__top div { flex: 1; min-width: 0; }
.review__top strong { display: block; font-size: .95rem; color: var(--ink-900); font-weight: 700; }
.review__g { width: 17px; height: 17px; flex: none; opacity: .9; }
.avatar {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--navy-600), var(--sky-500));
  color: #fff;
  font-size: .85rem;
  font-weight: 800;
}
.review p { font-size: .93rem; color: var(--ink-600); line-height: 1.6; }

#google-reviews-widget:empty { display: none; }
[data-reviews-fallback][hidden] { display: none; }

@media (max-width: 620px) { .review { width: 300px; } }

/* ---------- 14. FAQ ---------- */
.faq__shell { max-width: 900px; }
.faq { display: grid; gap: .7rem; }
.qa {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.qa[open] { border-color: var(--sky-200); box-shadow: var(--sh-sm); }
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink-900);
  cursor: pointer;
  list-style: none;
  transition: color .2s var(--ease);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--navy-700); }
.qa__chev {
  position: relative;
  width: 28px; height: 28px;
  flex: none;
  border-radius: 50%;
  background: var(--sky-50);
  transition: background-color .25s var(--ease), transform .35s var(--ease-out);
}
.qa__chev::before, .qa__chev::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 11px; height: 1.9px;
  background: var(--navy-700);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform .3s var(--ease-out), opacity .2s var(--ease), background-color .25s var(--ease);
}
.qa__chev::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa[open] .qa__chev { background: var(--navy-700); transform: rotate(180deg); }
.qa[open] .qa__chev::before, .qa[open] .qa__chev::after { background: #fff; }
.qa[open] .qa__chev::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }

/* Smooth open/close via a 0fr→1fr grid row.
   Without JS, [open] alone expands it — native behaviour, no animation.
   With JS, the script drives .is-open so the height can actually transition. */
.qa__wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .38s var(--ease-out);
}
.qa[open] .qa__wrap { grid-template-rows: 1fr; }
.js .qa[open] .qa__wrap { grid-template-rows: 0fr; }
.js .qa.is-open .qa__wrap { grid-template-rows: 1fr; }
.qa__body { overflow: hidden; padding-inline: 1.4rem; }
.qa__body p { padding-bottom: 1.35rem; font-size: .96rem; color: var(--ink-600); max-width: 66ch; }

/* ---------- 15. Visit & form ---------- */
.visit__grid { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 960px) { .visit__grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }

.visit__info { display: grid; gap: 1rem; }
.infocard {
  padding: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.infocard:hover { border-color: var(--sky-200); box-shadow: var(--sh-sm); }
.infocard h3 {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: 1.2rem;
  margin-bottom: .85rem;
}
.infocard h3 .ico { color: var(--sky-500); }
.infocard address { font-size: .96rem; color: var(--ink-600); line-height: 1.75; margin-bottom: 1.15rem; }
.infocard__note { font-size: .94rem; color: var(--ink-600); }

.hours { display: grid; gap: .7rem; margin-bottom: 1.1rem; }
.hours > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .7rem;
  border-bottom: 1px dashed var(--line);
}
.hours > div:last-child { padding-bottom: 0; border-bottom: 0; }
.hours dt { font-size: .95rem; font-weight: 700; color: var(--ink-800); }
.hours dd { margin: 0; font-size: .95rem; color: var(--ink-600); text-align: right; line-height: 1.6; }
.hours__closed { color: var(--ink-400); }
/* Stack the two columns before the times start wrapping mid-range */
@media (max-width: 380px) {
  .hours > div { flex-direction: column; gap: .15rem; }
  .hours dd { text-align: left; }
}

.contactlist { display: grid; gap: .75rem; }
.contactlist li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; }
.contactlist a { font-weight: 700; font-size: .99rem; }
.contactlist span { font-size: .82rem; color: var(--ink-400); }

.formcard {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-sm);
}
.formcard h3 { font-size: 1.75rem; margin-bottom: .5rem; }
.formcard__sub { font-size: .93rem; color: var(--ink-500); margin-bottom: 1.6rem; }
.formcard__fine { margin-top: .9rem; font-size: .81rem; color: var(--ink-400); text-align: center; }

.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .85rem; font-weight: 700; color: var(--ink-800); margin-bottom: .4rem; }
.field .opt { font-weight: 500; color: var(--ink-400); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .78rem .95rem;
  background: var(--bone-50);
  border: 1.5px solid var(--line);
  border-radius: 13px;
  /* Must not drop below 16px: iOS Safari zooms the whole page in when you focus
     a smaller control, and never zooms back out. */
  font-size: 1rem;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 92px; }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234E6072' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  background-size: 17px;
  padding-right: 2.4rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--sky-500);
  box-shadow: 0 0 0 4px var(--sky-50);
}
.field input.is-invalid, .field textarea.is-invalid { border-color: #C7442E; background: #FDF2F0; }
.hint { font-size: .8rem; color: var(--ink-400); margin-top: .3rem; }
.err { font-size: .82rem; color: #C7442E; margin-top: .3rem; }
.err:empty { display: none; }
/* When there's a real error, the format hint is redundant noise. */
.field:has(.err:not(:empty)) .hint { display: none; }

.mapwrap {
  margin-top: 1.5rem;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bone-200);
}
.mapwrap iframe { width: 100%; height: clamp(290px, 42vw, 420px); border: 0; }

/* ---------- 16. CTA band ---------- */
.ctaband {
  padding-block: clamp(3.5rem, 6.5vw, 5.5rem);
  background: var(--navy-800);
  background-image:
    radial-gradient(800px 400px at 8% 0%, rgba(90, 155, 213, .26), transparent 60%),
    radial-gradient(700px 380px at 95% 100%, rgba(254, 139, 76, .18), transparent 62%);
  color: #fff;
}
.ctaband__inner { display: grid; gap: 2.25rem; align-items: center; }
@media (min-width: 920px) { .ctaband__inner { grid-template-columns: 1.35fr auto; gap: 3rem; } }
.ctaband h2 { color: #fff; margin-bottom: .85rem; }
.ctaband p { color: rgba(217, 233, 246, .82); max-width: 52ch; }
.ctaband__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- 17. Footer ---------- */
.footer { background: var(--navy-900); color: var(--sky-200); padding-top: clamp(3rem, 5vw, 4.5rem); font-size: .92rem; }
.footer__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  padding-bottom: 3rem;
}
@media (min-width: 720px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.15fr; gap: 3rem; } }

.footer__brand p { margin: 1.15rem 0 1.35rem; color: rgba(180, 211, 236, .66); font-size: .89rem; max-width: 40ch; }
.footer__social { display: flex; gap: .6rem; }
.footer__social a {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(180, 211, 236, .24);
  color: var(--sky-200);
  transition: background-color .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease), transform .28s var(--ease-out);
}
.footer__social a:hover { background: var(--sky-400); border-color: var(--sky-400); color: var(--navy-900); transform: translateY(-3px); }
.footer__social svg { width: 17px; height: 17px; fill: currentColor; }

.footer__col h4 {
  font-family: var(--font-body);
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.15rem;
}
.footer__col a { display: block; padding: .32rem 0; color: rgba(180, 211, 236, .78); font-size: .9rem; transition: color .2s var(--ease), transform .22s var(--ease); }
.footer__col a:hover { color: #fff; transform: translateX(4px); }
.footer__col--contact address { color: rgba(180, 211, 236, .78); line-height: 1.7; margin-bottom: .9rem; font-size: .9rem; }

.footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem 2rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(180, 211, 236, .16);
  font-size: .83rem;
  color: rgba(180, 211, 236, .72);
}
.footer__disclaimer { max-width: 62ch; }

/* ---------- 18. Floating actions ---------- */
.fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: none;
  align-items: center;
  gap: 0;
  height: 58px;
  padding: 0 17.5px;
  border-radius: var(--r-pill);
  background: #25D366;
  color: #fff;
  font-size: .92rem;
  font-weight: 700;
  box-shadow: 0 16px 32px -14px rgba(37, 211, 102, .9);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), gap .3s var(--ease-out);
}
.fab:hover, .fab:focus-visible { transform: translateY(-4px); color: #fff; gap: .55rem; }
.fab svg { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.fab__label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition: max-width .3s var(--ease-out), opacity .22s var(--ease);
}
.fab:hover .fab__label, .fab:focus-visible .fab__label { max-width: 9rem; opacity: 1; }
@media (min-width: 760px) { .fab { display: inline-flex; } }

.mobilebar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 95;
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: .4rem;
  padding: .5rem .6rem calc(.5rem + env(safe-area-inset-bottom));
  background: rgba(251, 249, 245, .95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.mobilebar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .2rem;
  padding: .55rem .3rem;
  border-radius: 14px;
  font-size: .75rem;
  font-weight: 700;
  color: var(--ink-600);
  text-align: center;
  line-height: 1.2;
}
.mobilebar a .ico { width: 20px; height: 20px; }
/* Needs to out-specify `.mobilebar a` above, or the label stays dark on dark. */
.mobilebar a.mobilebar__primary { background: var(--navy-700); color: #fff; }
.mobilebar a.mobilebar__primary:hover { color: #fff; }
@media (min-width: 760px) { .mobilebar { display: none; } }
@media (max-width: 759px) { body { padding-bottom: 76px; } }

/* ---------- 19. Motion ----------
   Hidden starting states are scoped to .js (set by an inline script in <head>).
   If JavaScript is blocked or fails, everything renders normally instead of
   staying invisible. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  will-change: opacity, transform;
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* Hero entrance — staggered by an inline --d delay on each element */
.js .anim {
  opacity: 0;
  transform: translateY(18px);
  animation: riseIn .9s var(--ease-out) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes riseIn { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal, .js .anim { opacity: 1; transform: none; }
  .ticker__track, .marquee__track { animation: none; }
  /* Without motion the marquee can't auto-advance, so it must be scrollable by
     hand — otherwise the reviews past the fold become unreachable. These need
     to out-specify `.js .marquee { overflow: hidden }` above. The edge mask is
     dropped too, since it would fade a region people are scrolling manually. */
  .js .marquee, .js .ticker {
    overflow-x: auto;
    -webkit-mask-image: none;
            mask-image: none;
  }
  .btn:hover, .card:hover, .review:hover, .creds li:hover { transform: none; }
}

/* ---------- 20. Touch devices ----------
   Two things make a desktop-tuned page feel broken on a phone, and both are
   fixed here rather than by rewriting every rule above. */

/* (a) Hover styles latch on after a tap. Without this, tapping a service card
       leaves it lifted with its icon rotated, tapping a credential row leaves
       it shifted sideways, and tapping the portrait leaves it zoomed in — with
       no way to undo any of it short of reloading. */
@media (hover: none) {
  .btn:hover,
  .card:hover,
  .review:hover,
  .pillar:hover,
  .creds li:hover,
  .footer__col a:hover,
  .footer__social a:hover,
  .brand:hover .brand__logo,
  .portrait:hover img { transform: none; }

  .card:hover { box-shadow: var(--sh-xs); border-color: var(--line-soft); }
  .card:hover::before { opacity: 0; }
  .card:hover .card__ico {
    background: var(--sky-50);
    color: var(--navy-600);
    transform: none;   /* otherwise the icon stays rotated after a tap */
  }
  .card:hover .card__n { color: var(--bone-300); }

  .review:hover { box-shadow: var(--sh-xs); border-color: var(--line-soft); }
  .infocard:hover { box-shadow: none; border-color: var(--line-soft); }

  .creds li:hover { box-shadow: none; border-color: var(--line-soft); }
  .creds li:hover .creds__ico { background: var(--sky-50); border-color: var(--sky-100); color: var(--navy-600); }

  .pillar:hover { background: rgba(255, 255, 255, .05); border-color: rgba(180, 211, 236, .16); }
  .nav a:hover { background: transparent; }
  .footer__social a:hover { background: transparent; border-color: rgba(180, 211, 236, .24); color: var(--sky-200); }
}

/* (b) backdrop-filter on sticky/fixed elements forces the browser to re-blur
       what's behind them on every scroll frame. On phones that is the single
       biggest cause of stutter here — the header and the bottom bar were both
       doing it at once. Solid backgrounds look near-identical and scroll clean. */
@media (pointer: coarse) {
  .header, .header.is-stuck, .mobilebar, .pill, .floatcard {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .header { background: rgba(251, 249, 245, .96); }
  .header.is-stuck { background: var(--bone-50); }
  .mobilebar { background: var(--bone-50); }
  .pill { background: rgba(255, 255, 255, .92); }
  .floatcard { background: #fff; }

  /* Default Android tap flash is a bright blue box that reads as a glitch. */
  html { -webkit-tap-highlight-color: rgba(22, 62, 99, .10); }

  /* Comfortable touch targets — these were 21–34px tall. */
  .footer__col a { padding-block: .5rem; }
  .topbar__phone { padding-block: .4rem; }
  .contactlist a { display: inline-block; padding-block: .25rem; }
  .nav.is-open a { padding-block: .95rem; }

  /* The review marquee pauses on hover, which never fires on a touchscreen —
     so reviews just slid past unreadably. On phones it becomes a swipeable
     carousel instead, which also removes one always-running animation. */
  .js .marquee {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    -webkit-mask-image: none;
            mask-image: none;
  }
  .js .marquee__track { animation: none; }
  .marquee__group[data-marquee-clone] { display: none; }
  .marquee .review { scroll-snap-align: center; }
  /* Hide the scrollbar without disabling the scrolling itself */
  .js .marquee { scrollbar-width: none; }
  .js .marquee::-webkit-scrollbar { display: none; }
}

/* ---------- Print ---------- */
@media print {
  .topbar, .header, .fab, .mobilebar, .mapwrap, .ctaband, .visit__form, .ticker { display: none !important; }
  body { color: #000; background: #fff; }
  .js .reveal, .js .anim { opacity: 1; transform: none; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; }
}
