/* ==========================================================================
   SANJEEV NETRALAYA EYE CARE PVT LTD
   Design system + page styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand — deep navy, clinical blue, calm teal */
  --navy-950: #061826;
  --navy-900: #0A2540;
  --navy-800: #123453;
  --navy-700: #1B4A70;

  --blue-700: #0F5F8F;
  --blue-600: #1479AE;
  --blue-500: #2E97C9;
  --blue-200: #B9D8EA;
  --blue-100: #DCEBF5;
  --blue-50:  #F1F7FB;

  --teal-700: #0B6E6E;
  --teal-600: #0E8C88;
  --teal-500: #17A6A0;
  --teal-300: #6FD3CD;
  --teal-50:  #EFFAF9;

  --mint-600: #2C8F6C;
  --gold:     #D9A62A;

  /* Neutrals */
  --white: #FFFFFF;
  --paper: #F6FAFC;
  --text:  #16283A;
  --muted: #5A7186;
  --border: #DDE8F0;
  --border-strong: #C6D8E5;

  /* Type */
  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-quote: 'Newsreader', Georgia, serif;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-2xl: 32px;
  --r-pill: 999px;

  /* Shadows — soft, layered, never heavy */
  --sh-xs: 0 1px 2px rgba(10, 37, 64, .06);
  --sh-sm: 0 1px 3px rgba(10, 37, 64, .06), 0 4px 10px rgba(10, 37, 64, .04);
  --sh-md: 0 2px 6px rgba(10, 37, 64, .06), 0 12px 28px rgba(10, 37, 64, .07);
  --sh-lg: 0 4px 12px rgba(10, 37, 64, .07), 0 24px 48px rgba(10, 37, 64, .10);
  --sh-focus: 0 0 0 3px rgba(46, 151, 201, .45);

  /* Layout */
  --shell: 1240px;
  --shell-pad: clamp(1.15rem, 4vw, 2.5rem);
  --section-y: clamp(4.25rem, 8vw, 7.5rem);
  --topbar-h: 40px;
  --nav-h: 74px;

  /* Motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --t-fast: 180ms var(--ease);
  --t-base: 320ms var(--ease);
  --t-slow: 620ms var(--ease);
}

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 18px);
}

body {
  font-family: var(--font-body);
  font-size: clamp(1rem, .97rem + .14vw, 1.0625rem);
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 700;
  text-wrap: balance;
}

p { text-wrap: pretty; }

a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--teal-600); }

ul, ol { list-style: none; padding: 0; }

button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

input, select, textarea { font: inherit; color: inherit; }

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

::selection { background: var(--teal-500); color: #fff; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sprite symbol,
.sprite defs > g {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Filled marks */
#i-star, #i-quote, #i-whatsapp, #i-facebook { stroke: none; fill: currentColor; }

.ico {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 2000;
  padding: .8rem 1.25rem;
  background: var(--navy-900);
  color: #fff;
  border-radius: 0 0 var(--r-md) var(--r-md);
  font-weight: 600;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 0; color: #fff; }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--shell-pad);
}

.section { padding-block: var(--section-y); }
.section--paper { background: var(--paper); }

.section-head {
  max-width: 44rem;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .42rem .95rem .42rem .8rem;
  margin-bottom: 1.1rem;
  border-radius: var(--r-pill);
  background: var(--teal-50);
  border: 1px solid rgba(14, 140, 136, .18);
  color: var(--teal-700);
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  line-height: 1.4;
}
.eyebrow .ico { width: 1.05em; height: 1.05em; }

.eyebrow--light {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .28);
  color: #EAF6F7;
  backdrop-filter: blur(6px);
}

.h2 { font-size: clamp(1.85rem, 1.35rem + 2.1vw, 3rem); }

.lede {
  margin-top: 1.1rem;
  font-size: clamp(1.02rem, .99rem + .18vw, 1.14rem);
  color: var(--muted);
  line-height: 1.7;
}

.section-head--light .h2 { color: #fff; }
.section-head--light .lede { color: rgba(233, 243, 249, .82); }

.grad {
  background: linear-gradient(100deg, var(--teal-600) 5%, var(--blue-600) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* `background-image`, not the `background` shorthand — the shorthand would
   reset the `background-clip: text` inherited from .grad and paint a solid bar. */
.grad--light {
  background-image: linear-gradient(100deg, var(--teal-300) 5%, #9BD2F0 95%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Media frame with contained parallax */
.frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-2xl);
  background: var(--blue-50);
  box-shadow: var(--sh-md);
  aspect-ratio: 4 / 3;
}
.frame--tall { aspect-ratio: 4 / 5; }

.frame > img {
  position: absolute;
  inset: -8% 0;
  width: 100%;
  height: 116%;
  object-fit: cover;
  will-change: transform;
}

/* Decorative iris orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: .5;
  background:
    radial-gradient(circle at 50% 50%, rgba(23, 166, 160, .32) 0 22%, transparent 23%),
    radial-gradient(circle at 50% 50%, transparent 0 38%, rgba(46, 151, 201, .22) 39% 41%, transparent 42%),
    radial-gradient(circle at 50% 50%, transparent 0 58%, rgba(23, 166, 160, .16) 59% 61%, transparent 62%);
  will-change: transform;
}
.orb--a { width: 320px; height: 320px; top: 12%; right: -70px; }
.orb--b { width: 200px; height: 200px; bottom: 14%; left: -50px; opacity: .35; }
.orb--c { width: 380px; height: 380px; top: -120px; right: 4%; opacity: .3; }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.5rem;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast),
              transform var(--t-fast), box-shadow var(--t-fast);
}
.btn .ico { width: 1.15em; height: 1.15em; }

.btn--lg { padding: 1.02rem 1.9rem; font-size: 1rem; }
.btn--sm { padding: .68rem 1.2rem; font-size: .875rem; }
.btn--xs { padding: .55rem 1rem; font-size: .82rem; }
.btn--block { width: 100%; }

.btn--primary {
  background: linear-gradient(135deg, var(--blue-700), var(--teal-700));
  color: #fff;
  box-shadow: 0 6px 18px rgba(15, 95, 143, .28);
}
.btn--primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(15, 95, 143, .34);
}

.btn--ghost {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .5);
  color: #fff;
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, .96);
  border-color: #fff;
  color: var(--navy-900);
  transform: translateY(-2px);
}

.btn--light { background: #fff; color: var(--navy-900); box-shadow: var(--sh-md); }
.btn--light:hover { color: var(--blue-700); transform: translateY(-2px); }

.btn--outline-light { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--outline-light:hover { background: rgba(255, 255, 255, .14); color: #fff; transform: translateY(-2px); }

.btn--quiet {
  background: var(--white);
  border-color: var(--border-strong);
  color: var(--navy-800);
}
.btn--quiet:hover {
  border-color: var(--teal-600);
  color: var(--teal-700);
  background: var(--teal-50);
}

/* --------------------------------------------------------------------------
   5. Reveal animations
   -------------------------------------------------------------------------- */
/* Scoped to `.js` — with scripting off, content is simply visible. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }
[data-reveal-delay="5"] { transition-delay: .40s; }

/* --------------------------------------------------------------------------
   6. Header — utility bar + sticky nav
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
}

.topbar {
  background: var(--navy-900);
  color: rgba(226, 238, 246, .92);
  font-size: .8rem;
  max-height: var(--topbar-h);
  overflow: hidden;
  transition: max-height var(--t-base), opacity var(--t-base);
}
.site-header.is-scrolled .topbar { max-height: 0; opacity: 0; }

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--topbar-h);
}

.topbar__list { display: flex; align-items: center; gap: 1.4rem; }
.topbar__list li { display: flex; align-items: center; gap: .45rem; white-space: nowrap; }
.topbar__list .ico { width: 1em; height: 1em; color: var(--teal-300); }
.topbar a { color: inherit; font-weight: 500; }
.topbar a:hover { color: var(--teal-300); }
.topbar__tollfree { color: #fff; font-weight: 600; }

.nav {
  background: transparent;
  transition: background var(--t-base), box-shadow var(--t-base), backdrop-filter var(--t-base);
}
.site-header.is-scrolled .nav,
.site-header.is-nav-open .nav {
  background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(10, 37, 64, .07), 0 8px 28px rgba(10, 37, 64, .08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  height: var(--nav-h);
}

/* Brand
   The mark recolours through --mark-line / --mark-accent so one piece of
   markup serves the transparent header, the scrolled header and the footer. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: #fff;
  --mark-line: #fff;
  --mark-accent: var(--teal-300);
}
.brand:hover { color: #fff; }

.brand__mark {
  display: grid;
  place-items: center;
  width: 50px;
  height: 40px;
  flex: none;
}
.brand__mark svg { width: 100%; height: 100%; overflow: visible; }

/* Header badge: square, with the two artworks stacked so they can cross-fade.
   Only the header carries this modifier — the footer keeps the inline SVG mark. */
.brand__mark--img {
  position: relative;
  width: 70px;
  height: 70px;
}
.brand__logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity var(--t-base);
}

/* One badge serves every context — its navy ring and white field read against
   both the dark hero and the white stuck header, so there is no scroll swap. */
.brand__lid {
  fill: none;
  stroke: var(--mark-line);
  stroke-width: 3.6;
  stroke-linecap: round;
  transition: stroke var(--t-base);
}
.brand__iris { fill: var(--mark-accent); transition: fill var(--t-base); }
.brand__pupil { fill: var(--navy-900); }

.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 800;
  letter-spacing: -.025em;
  color: inherit;
}
.brand__name em { font-style: normal; font-weight: 500; }
/* Tracked so "Eye Care Pvt Ltd" lands at ~125px, sitting under the 153px
   wordmark rather than overhanging it. The negative margin cancels the trailing
   letter-space CSS adds after the final character, keeping left edges aligned. */
.brand__tag {
  font-size: .62rem;
  letter-spacing: .26em;
  margin-right: -.26em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255, 255, 255, .72);
  margin-top: .18rem;
}
.site-header.is-scrolled .brand,
.site-header.is-nav-open .brand {
  color: var(--navy-900);
  --mark-line: var(--navy-900);
  --mark-accent: var(--teal-600);
}
.site-header.is-scrolled .brand__tag,
.site-header.is-nav-open .brand__tag { color: var(--teal-700); }

/* Nav links */
.nav__list { display: flex; align-items: center; gap: clamp(.5rem, 1.15vw, 1.15rem); }

.nav__link {
  position: relative;
  display: block;
  padding: .5rem .18rem;
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .88);
  white-space: nowrap;
  transition: color var(--t-fast);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .1rem;
  height: 2px;
  border-radius: 2px;
  background: var(--teal-300);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base);
}
.nav__link:hover, .nav__link.is-active { color: #fff; }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.site-header.is-scrolled .nav__link { color: var(--navy-800); }
.site-header.is-scrolled .nav__link:hover,
.site-header.is-scrolled .nav__link.is-active { color: var(--teal-700); }
.site-header.is-scrolled .nav__link::after { background: var(--teal-600); }

.nav__panel { display: contents; }
.nav__cta-wrap { display: flex; }

.nav__toggle {
  display: none;
  position: relative;
  width: 46px; height: 46px;
  border-radius: var(--r-md);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .35);
  align-items: center;
  justify-content: center;
}
.nav__toggle .ico { width: 22px; height: 22px; }
.nav__toggle-close { display: none; }
.site-header.is-scrolled .nav__toggle,
.site-header.is-nav-open .nav__toggle { color: var(--navy-900); border-color: var(--border-strong); }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding-top: calc(var(--topbar-h) + var(--nav-h) + 2.5rem);
  padding-bottom: clamp(5rem, 10vw, 8rem);
  overflow: hidden;
  background: var(--navy-900);
}

.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__img {
  position: absolute;
  inset: -9% 0;
  width: 100%;
  height: 118%;
  object-fit: cover;
  object-position: 62% 40%;
  will-change: transform;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(6, 24, 38, .95) 0%, rgba(6, 24, 38, .86) 34%, rgba(6, 24, 38, .5) 62%, rgba(6, 24, 38, .32) 100%),
    linear-gradient(to top, rgba(6, 24, 38, .85) 0%, transparent 32%);
}

.hero__inner { position: relative; width: 100%; }
.hero__content { max-width: 40rem; }

.hero__title {
  margin-top: .35rem;
  font-size: clamp(2.35rem, 1.45rem + 3.7vw, 4.1rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.035em;
  color: #fff;
}

.hero__lede {
  margin-top: 1.5rem;
  max-width: 34rem;
  font-size: clamp(1.03rem, 1rem + .3vw, 1.2rem);
  line-height: 1.7;
  color: rgba(226, 238, 246, .88);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.1rem; }

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.2rem, 3vw, 2.75rem);
  margin-top: 2.9rem;
  padding-top: 1.9rem;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.hero__chips li { display: flex; flex-direction: column; }
.hero__chips strong {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.1rem + .9vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--teal-300);
}
.hero__chips span {
  font-size: .82rem;
  letter-spacing: .04em;
  color: rgba(226, 238, 246, .74);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.9rem;
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255, 255, 255, .62);
}
.hero__scroll:hover { color: #fff; }
.hero__scroll-line {
  width: 1px;
  height: 46px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, .75));
  animation: scrollCue 2.4s var(--ease) infinite;
}
@keyframes scrollCue {
  0%, 100% { transform: scaleY(.45); opacity: .4; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
}

/* --------------------------------------------------------------------------
   8. Trust strip
   -------------------------------------------------------------------------- */
.trust {
  position: relative;
  z-index: 2;
  margin-top: clamp(-4.5rem, -6vw, -3rem);
}

.trust__grid {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-lg);
}

.trust__item {
  display: flex;
  gap: 1rem;
  padding: 1.75rem clamp(1.25rem, 2.5vw, 2rem);
  background: #fff;
}
.trust__item > .ico {
  width: 2rem; height: 2rem;
  color: var(--teal-600);
  stroke-width: 1.45;
}
.trust__title {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: .3rem;
}
.trust__item p { font-size: .92rem; color: var(--muted); line-height: 1.6; }

/* --------------------------------------------------------------------------
   9. About
   -------------------------------------------------------------------------- */
.about__grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }

.about__media { position: relative; }

.badge-card {
  position: absolute;
  right: clamp(-.5rem, 1vw, 1rem);
  bottom: clamp(-1rem, -1vw, 1.5rem);
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 1rem 1.35rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
}
.badge-card .ico { width: 1.9rem; height: 1.9rem; color: var(--teal-600); }
.badge-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.1;
}
.badge-card span { font-size: .8rem; color: var(--muted); }

.mv { display: grid; gap: 1rem; margin-top: 2rem; }
.mv__card {
  padding: 1.35rem 1.5rem;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--r-lg);
}
.mv__card h3 {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: 1rem;
  margin-bottom: .4rem;
}
.mv__card h3 .ico { width: 1.2rem; height: 1.2rem; color: var(--teal-600); }
.mv__card p { font-size: .93rem; color: var(--muted); line-height: 1.65; }

.ticks { display: grid; gap: .7rem; margin-top: 2rem; }
.ticks li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  font-size: .96rem;
  color: var(--navy-800);
}
.ticks .ico {
  width: 1.35rem; height: 1.35rem;
  padding: .18rem;
  margin-top: .1rem;
  border-radius: 50%;
  background: var(--teal-50);
  color: var(--teal-700);
  stroke-width: 2.4;
}

.counters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1rem;
  margin-top: 2.5rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--border);
}
.counter__num {
  display: block;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  background: linear-gradient(120deg, var(--teal-600), var(--blue-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.counter__label {
  display: block;
  margin-top: .25rem;
  font-size: .85rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   10. Treatment cards
   -------------------------------------------------------------------------- */
.cards { display: grid; gap: clamp(1rem, 1.8vw, 1.5rem); }

.card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 2.4vw, 1.9rem);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xs);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-lg);
  border-color: var(--blue-100);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 3.15rem; height: 3.15rem;
  margin-bottom: 1.15rem;
  border-radius: var(--r-md);
  background: linear-gradient(140deg, var(--teal-50), var(--blue-50));
  border: 1px solid var(--blue-100);
  color: var(--teal-700);
  transition: background var(--t-base), color var(--t-base), transform var(--t-base);
}
.card__icon .ico { width: 1.6rem; height: 1.6rem; stroke-width: 1.5; }
.card:hover .card__icon {
  background: linear-gradient(140deg, var(--blue-700), var(--teal-700));
  border-color: transparent;
  color: #fff;
  transform: scale(1.04);
}

.card__title { font-size: 1.09rem; margin-bottom: .5rem; }
.card__text { flex: 1; font-size: .93rem; color: var(--muted); line-height: 1.65; }

.card__link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1.15rem;
  font-family: var(--font-display);
  font-size: .875rem;
  font-weight: 700;
  color: var(--blue-700);
}
.card__link .ico { width: 1.05rem; height: 1.05rem; transition: transform var(--t-base); }
.card__link:hover .ico { transform: translateX(4px); }

.card--cta {
  background: linear-gradient(150deg, var(--navy-900), var(--navy-800) 55%, var(--teal-700));
  border-color: transparent;
  justify-content: center;
}
.card--cta .card__title { color: #fff; font-size: 1.2rem; }
.card--cta .card__text { color: rgba(226, 238, 246, .8); flex: 0; margin-bottom: 1.3rem; }
.card--cta .btn--primary {
  background: #fff;
  color: var(--navy-900);
  align-self: flex-start;
  box-shadow: none;
}
.card--cta .btn--primary:hover { color: var(--blue-700); }

/* --------------------------------------------------------------------------
   11. Why choose us
   -------------------------------------------------------------------------- */
.why__grid { display: grid; gap: clamp(1rem, 1.8vw, 1.4rem); }

.why__item {
  padding: 1.6rem 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal-500);
  border-radius: var(--r-lg);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.why__item:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.why__item > .ico {
  width: 1.75rem; height: 1.75rem;
  margin-bottom: .85rem;
  color: var(--teal-600);
  stroke-width: 1.5;
}
.why__item h3 { font-size: 1rem; margin-bottom: .35rem; }
.why__item p { font-size: .9rem; color: var(--muted); line-height: 1.6; }

/* --------------------------------------------------------------------------
   12. Doctors
   -------------------------------------------------------------------------- */
/* Two-up even on the narrowest screens: seven full-width portrait cards would
   make the section enormous, and a letterbox crop would slice the faces. */
.docs { display: grid; gap: clamp(.7rem, 1.8vw, 1.5rem); grid-template-columns: repeat(2, 1fr); }

.doc {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-xs);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.doc:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: var(--blue-100); }

.doc__photo {
  position: relative;
  display: grid;
  place-items: center;
  /* Source portraits are 550×550, so a square frame crops nothing. */
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 50% 38%, rgba(23, 166, 160, .16) 0 26%, transparent 27%),
    radial-gradient(circle at 50% 38%, transparent 0 40%, rgba(46, 151, 201, .14) 41% 43%, transparent 44%),
    linear-gradient(160deg, var(--blue-50), var(--teal-50));
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.doc__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.doc:hover .doc__photo img { transform: scale(1.045); }

/* Fallback for any doctor added before a photograph is available. */
.doc__monogram {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -.04em;
  background: linear-gradient(140deg, var(--blue-700), var(--teal-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.doc__body { display: flex; flex-direction: column; flex: 1; padding: 1.35rem 1.4rem 1.5rem; }
.doc__name { font-size: 1.05rem; margin-bottom: .25rem; }
.doc__role {
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 600;
  color: var(--teal-700);
}
.doc__meta { flex: 1; margin-top: .7rem; }
.doc__meta li { font-size: .85rem; color: var(--muted); }
.doc__actions { display: grid; gap: .5rem; margin-top: 1.2rem; }

.doc--join {
  background: linear-gradient(155deg, var(--blue-50), var(--teal-50));
  border-style: dashed;
  border-color: var(--border-strong);
  justify-content: center;
}
.doc--join .doc__role { color: var(--muted); font-weight: 400; line-height: 1.6; margin-top: .4rem; }

/* --------------------------------------------------------------------------
   13. Facilities & technology (parallax)
   -------------------------------------------------------------------------- */
.tech {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy-950);
}
.tech__bg { position: absolute; inset: 0; z-index: -2; }
.tech__bg img {
  position: absolute;
  inset: -10% 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  will-change: transform;
}
.tech__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 24, 38, .93) 0%, rgba(6, 24, 38, .88) 45%, rgba(6, 24, 38, .95) 100%),
    radial-gradient(60% 50% at 15% 20%, rgba(14, 140, 136, .3), transparent 70%);
}

.tech__grid { display: grid; gap: clamp(1.1rem, 2vw, 1.75rem); }

.tech__card {
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-xl);
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: transform var(--t-base), border-color var(--t-base), background var(--t-base);
}
.tech__card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, .085);
  border-color: rgba(111, 211, 205, .4);
}
.tech__card .frame {
  border-radius: 0;
  box-shadow: none;
  aspect-ratio: 16 / 10;
}
.tech__card .frame > img {
  inset: 0;
  height: 100%;
  transition: transform var(--t-slow);
}
.tech__card:hover .frame > img { transform: scale(1.06); }

.tech__card figcaption { padding: 1.35rem 1.5rem 1.6rem; }
.tech__card h3 { color: #fff; font-size: 1.06rem; margin-bottom: .4rem; }
.tech__card p { font-size: .91rem; color: rgba(226, 238, 246, .76); line-height: 1.62; }

.tech__list {
  display: grid;
  gap: .8rem 1.75rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.tech__list li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .93rem;
  color: rgba(233, 243, 249, .9);
}
.tech__list .ico { width: 1.15rem; height: 1.15rem; color: var(--teal-300); stroke-width: 2.4; }

/* --------------------------------------------------------------------------
   14. Patient journey
   -------------------------------------------------------------------------- */
.journey__steps { position: relative; display: grid; gap: 2rem; }

.journey__step { position: relative; padding-left: 4.25rem; }
.journey__step h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.journey__step p { font-size: .92rem; color: var(--muted); line-height: 1.62; }

.journey__dot {
  position: absolute;
  left: 0;
  top: -.15rem;
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--blue-100);
  color: var(--teal-700);
  box-shadow: var(--sh-sm);
  z-index: 1;
  transition: background var(--t-base), color var(--t-base), border-color var(--t-base);
}
.journey__dot .ico { width: 1.35rem; height: 1.35rem; }
.journey__step:hover .journey__dot {
  background: linear-gradient(140deg, var(--blue-700), var(--teal-700));
  border-color: transparent;
  color: #fff;
}

/* connector — vertical on small screens */
.journey__step::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  top: 2.85rem;
  bottom: -2rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue-100), rgba(185, 216, 234, .25));
}
.journey__step:last-child::before { display: none; }

/* --------------------------------------------------------------------------
   15. Eye care
   -------------------------------------------------------------------------- */
.eyecare__grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }

.eyecare__items { display: grid; gap: 1.5rem; margin: 2.25rem 0; }

.eyecare__item { display: flex; gap: 1.1rem; }
.eyecare__num {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--teal-600);
  padding-top: .1rem;
  letter-spacing: -.02em;
}
.eyecare__item h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.eyecare__item p { font-size: .93rem; color: var(--muted); line-height: 1.65; }

/* --------------------------------------------------------------------------
   16. Statistics band (parallax)
   -------------------------------------------------------------------------- */
.stats {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 6rem);
  background: var(--navy-900);
}
.stats__bg { position: absolute; inset: 0; z-index: -2; }
.stats__bg img {
  position: absolute;
  inset: -10% 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  will-change: transform;
}
.stats__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, rgba(6, 24, 38, .95), rgba(11, 110, 110, .82)),
    radial-gradient(70% 90% at 80% 10%, rgba(46, 151, 201, .35), transparent 65%);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.25rem 1.5rem;
  text-align: center;
}
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 2.2vw, 3.15rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.05;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  display: block;
  margin-top: .45rem;
  font-size: .86rem;
  letter-spacing: .05em;
  color: rgba(226, 238, 246, .82);
}

/* --------------------------------------------------------------------------
   17. Testimonials carousel
   -------------------------------------------------------------------------- */
.carousel { position: relative; }

.carousel__viewport { overflow: hidden; border-radius: var(--r-xl); }
.carousel__viewport:focus-visible { outline-offset: 6px; }

.carousel__track {
  display: flex;
  gap: clamp(1rem, 1.8vw, 1.5rem);
  transition: transform .6s var(--ease);
  will-change: transform;
}

.quote {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-sm);
}

.quote__mark {
  width: 2.1rem; height: 2.1rem;
  color: var(--blue-100);
  margin-bottom: .75rem;
}

.stars { display: flex; gap: .18rem; margin-bottom: 1rem; }
.stars .ico { width: 1.05rem; height: 1.05rem; color: var(--gold); stroke: none; fill: currentColor; }

.quote blockquote {
  flex: 1;
  font-family: var(--font-quote);
  font-style: italic;
  font-size: clamp(1.02rem, .98rem + .28vw, 1.16rem);
  line-height: 1.68;
  color: var(--navy-800);
}

.quote__who {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-top: 1.6rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border);
}
.quote__avatar {
  display: grid;
  place-items: center;
  width: 2.85rem; height: 2.85rem;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--blue-50), var(--teal-50));
  border: 1px solid var(--blue-100);
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--teal-700);
}
.quote__who strong {
  display: block;
  font-family: var(--font-display);
  font-size: .96rem;
  color: var(--navy-900);
}
.quote__who span { font-size: .82rem; color: var(--muted); }

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2rem;
}
.carousel__btn {
  display: grid;
  place-items: center;
  width: 2.85rem; height: 2.85rem;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--border-strong);
  color: var(--navy-800);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.carousel__btn:hover {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #fff;
  transform: translateY(-2px);
}
.carousel__btn .ico { width: 1.2rem; height: 1.2rem; }

.carousel__dots { display: flex; align-items: center; gap: .5rem; }
.carousel__dots button {
  width: .55rem; height: .55rem;
  padding: 0;
  border-radius: var(--r-pill);
  background: var(--border-strong);
  transition: width var(--t-base), background var(--t-base);
}
.carousel__dots button[aria-selected="true"] { width: 1.6rem; background: var(--teal-600); }

/* --------------------------------------------------------------------------
   18. Appointment CTA band
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3.25rem, 6vw, 5rem);
  background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy-800) 45%, var(--teal-700) 130%);
  color: #fff;
}
.cta__inner {
  position: relative;
  display: grid;
  gap: 2rem;
  align-items: center;
}
.cta h2 { color: #fff; font-size: clamp(1.7rem, 1.3rem + 1.9vw, 2.6rem); }
/* Solid rather than translucent: this band ends in a lighter teal, and 84%
   alpha dropped below 4.5:1 against that end of the gradient. */
.cta__body p { margin-top: .8rem; color: #DCE9F2; font-size: 1.03rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* --------------------------------------------------------------------------
   19. Contact
   -------------------------------------------------------------------------- */
.contact__grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }

.branches { display: grid; gap: 1.25rem; }

.branch {
  padding: 1.6rem 1.65rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xs);
}
.branch__name {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: 1.1rem;
  margin-bottom: 1.1rem;
}
.branch__name > .ico { width: 1.25rem; height: 1.25rem; color: var(--teal-600); }
.branch__flag {
  padding: .22rem .6rem;
  border-radius: var(--r-pill);
  background: var(--teal-50);
  border: 1px solid rgba(14, 140, 136, .2);
  color: var(--teal-700);
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.branch__info { display: grid; gap: .85rem; }
.branch__info li { display: flex; gap: .7rem; font-size: .91rem; color: var(--muted); line-height: 1.6; }
.branch__info .ico { width: 1.15rem; height: 1.15rem; margin-top: .18rem; color: var(--blue-600); }
.branch__info a { font-weight: 500; }
.branch__toll { color: var(--teal-700); font-weight: 700; }

.branch .btn { margin-top: 1.25rem; }

.branch--more p { font-size: .93rem; color: var(--navy-800); font-weight: 600; }
.branch__note { margin-top: .4rem; font-size: .85rem; color: var(--muted); font-weight: 400 !important; }

.map {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  box-shadow: var(--sh-xs);
  background: var(--blue-50);
}
.map iframe { width: 100%; height: clamp(280px, 34vw, 400px); border: 0; }

/* Form */
.form-wrap {
  position: relative;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-lg);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.form-wrap::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: var(--r-2xl) var(--r-2xl) 0 0;
  background: linear-gradient(90deg, var(--blue-700), var(--teal-500));
}
.form-wrap__title { font-size: 1.35rem; margin-bottom: .4rem; }
.form-wrap__note { font-size: .91rem; color: var(--muted); margin-bottom: 1.6rem; }

.form { display: grid; gap: 1.1rem; }
.field-row { display: grid; gap: 1.1rem; }

.field { display: flex; flex-direction: column; gap: .4rem; }
.field label {
  font-family: var(--font-display);
  font-size: .84rem;
  font-weight: 600;
  color: var(--navy-800);
}
.field label span[aria-hidden] { color: #C2410C; }
.field__opt { font-weight: 400; color: var(--muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .78rem .95rem;
  background: var(--paper);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: .95rem;
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { resize: vertical; min-height: 5.5rem; }

.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--border-strong); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--blue-500);
  box-shadow: var(--sh-focus);
}
.field [aria-invalid="true"] { border-color: #C2410C; background: #FFF7F4; }

.field__error {
  font-size: .8rem;
  color: #B03A0B;
  min-height: 0;
}
.field__error:empty { display: none; }

.form__status {
  margin-top: .25rem;
  padding: .85rem 1rem;
  border-radius: var(--r-md);
  font-size: .9rem;
  font-weight: 500;
  display: none;
}
.form__status.is-success {
  display: block;
  background: #ECFAF3;
  border: 1px solid rgba(44, 143, 108, .3);
  color: #1F6B50;
}
.form__status.is-error {
  display: block;
  background: #FFF3EE;
  border: 1px solid rgba(194, 65, 12, .3);
  color: #9A3412;
}

.form__legal { font-size: .82rem; color: var(--muted); line-height: 1.6; }

/* --------------------------------------------------------------------------
   20. Footer
   -------------------------------------------------------------------------- */
.footer {
  padding-top: clamp(3rem, 6vw, 5rem);
  background: var(--navy-950);
  color: rgba(226, 238, 246, .78);
  font-size: .92rem;
}

.footer__grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }

.brand--footer { margin-bottom: 1.15rem; }
.brand--footer .brand__mark--img { width: 70px; height: 70px; }
.footer__brand p { line-height: 1.7; max-width: 32rem; }

.footer__social { display: flex; gap: .65rem; margin-top: 1.4rem; }
.footer__social a {
  display: grid;
  place-items: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .13);
  color: #fff;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.footer__social a:hover {
  background: var(--teal-600);
  border-color: var(--teal-600);
  color: #fff;
  transform: translateY(-2px);
}
.footer__social .ico { width: 1.15rem; height: 1.15rem; }

.footer__heading {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.1rem;
}

.footer__col ul { display: grid; gap: .6rem; }
.footer__col a { color: inherit; }
.footer__col a:hover { color: var(--teal-300); }

.footer__contact li { display: flex; gap: .65rem; line-height: 1.6; }
.footer__contact .ico { width: 1.1rem; height: 1.1rem; margin-top: .22rem; color: var(--teal-300); flex: none; }

.footer__emergency {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin-top: 1.4rem;
  padding: .85rem 1.15rem;
  border-radius: var(--r-md);
  background: rgba(23, 166, 160, .13);
  border: 1px solid rgba(111, 211, 205, .3);
  color: #fff;
}
.footer__emergency:hover { background: rgba(23, 166, 160, .22); color: #fff; }
.footer__emergency .ico { width: 1.35rem; height: 1.35rem; color: var(--teal-300); }
.footer__emergency span { display: flex; flex-direction: column; font-size: .76rem; letter-spacing: .05em; }
.footer__emergency strong { font-family: var(--font-display); font-size: 1rem; letter-spacing: 0; }

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .85rem;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer__legal a { color: inherit; }
.footer__legal a:hover { color: var(--teal-300); }

/* --------------------------------------------------------------------------
   21. Mobile action bar + back to top
   -------------------------------------------------------------------------- */
.actionbar {
  position: fixed;
  inset: auto 0 0;
  z-index: 900;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 24px rgba(10, 37, 64, .12);
  padding-bottom: env(safe-area-inset-bottom);
}
.actionbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .18rem;
  padding: .65rem .5rem;
  background: #fff;
  color: var(--navy-800);
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
}
.actionbar .ico { width: 1.3rem; height: 1.3rem; color: var(--teal-700); }
.actionbar__primary { background: linear-gradient(135deg, var(--blue-700), var(--teal-700)) !important; color: #fff !important; }
.actionbar__primary .ico { color: #fff; }

.to-top {
  position: fixed;
  right: 1.15rem;
  bottom: calc(4.75rem + env(safe-area-inset-bottom));
  z-index: 890;
  display: grid;
  place-items: center;
  width: 2.85rem; height: 2.85rem;
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  box-shadow: var(--sh-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--t-base), transform var(--t-base), visibility var(--t-base), background var(--t-fast);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--teal-700); }
.to-top .ico { width: 1.2rem; height: 1.2rem; }

/* --------------------------------------------------------------------------
   22. Responsive
   -------------------------------------------------------------------------- */

/* ≥ 560px */
@media (min-width: 35em) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .docs { grid-template-columns: repeat(2, 1fr); }
  .tech__list { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .mv { grid-template-columns: repeat(2, 1fr); }
}

/* ≥ 720px */
@media (min-width: 45em) {
  .trust__grid { grid-template-columns: repeat(3, 1fr); }
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
  .quote { flex: 0 0 calc((100% - clamp(1rem, 1.8vw, 1.5rem)) / 2); }
  .counters { grid-template-columns: repeat(4, 1fr); }
  .eyecare__grid { grid-template-columns: 1.15fr .85fr; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ≥ 900px — desktop navigation */
@media (min-width: 56.25em) {
  .about__grid { grid-template-columns: .85fr 1.15fr; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .docs { grid-template-columns: repeat(4, 1fr); }
  .tech__grid { grid-template-columns: repeat(3, 1fr); }
  .tech__list { grid-template-columns: repeat(3, 1fr); }
  .why__grid { grid-template-columns: repeat(4, 1fr); }
  .contact__grid { grid-template-columns: 1fr .85fr; }
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.25fr; }
  .cta__inner { grid-template-columns: 1fr auto; gap: 3rem; }

  .actionbar { display: none; }
  .to-top { bottom: 1.4rem; }

  /* Horizontal patient journey */
  .journey__steps { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
  .journey__step { padding-left: 0; padding-top: 4.5rem; text-align: center; }
  .journey__dot { left: 50%; top: 0; transform: translateX(-50%); }
  .journey__step::before {
    left: 50%;
    right: auto;
    top: 1.5rem;
    bottom: auto;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--blue-100), rgba(185, 216, 234, .3));
  }
}

/* ≥ 1080px */
@media (min-width: 67.5em) {
  .why__grid { grid-template-columns: repeat(4, 1fr); }
  .quote { flex: 0 0 calc((100% - 2 * clamp(1rem, 1.8vw, 1.5rem)) / 3); }
  .hero__scroll { display: flex; }
  .hero__content { max-width: 46rem; }
  .hero__lede { max-width: 36rem; }
}

/* < 900px — mobile navigation panel */
@media (max-width: 56.24em) {
  /* Needs the list ancestor to outrank `.topbar__list li { display: flex }`. */
  .topbar__list li.topbar__mail { display: none; }

  .nav__toggle { display: flex; }
  .nav__toggle[aria-expanded="true"] .nav__toggle-open { display: none; }
  .nav__toggle[aria-expanded="true"] .nav__toggle-close { display: block; }

  .nav__panel {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1rem var(--shell-pad) 1.75rem;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 18px 36px rgba(10, 37, 64, .14);
    max-height: calc(100svh - var(--nav-h));
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity var(--t-base), transform var(--t-base), visibility var(--t-base);
  }
  .nav__panel.is-open { opacity: 1; visibility: visible; transform: none; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li + li { border-top: 1px solid var(--border); }
  .nav__link {
    padding: .95rem .25rem;
    font-size: 1rem;
    color: var(--navy-800);
  }
  .nav__link::after { display: none; }
  .nav__link.is-active { color: var(--teal-700); }

  .nav__cta-wrap { margin-top: 1.25rem; }
  .nav__cta { width: 100%; }

  body { padding-bottom: 4.25rem; }
}

/* < 560px */
@media (max-width: 34.99em) {
  /* Doctors stay two-up; tighten the type so the cards do not feel cramped. */
  .doc__body { padding: .9rem .95rem 1.05rem; }
  .doc__name { font-size: .95rem; }
  .doc__role { font-size: .78rem; }
  .doc__meta li { font-size: .78rem; }
  .doc__actions { margin-top: .9rem; }
  /* Keep "Book Appointment" on one line inside a ~163px card. */
  .doc__actions .btn { padding: .52rem .55rem; font-size: .74rem; }
  .doc--join .doc__body { padding: 1.1rem; }

  /* Only the toll-free number fits — keep it, and keep it tappable. */
  .topbar__list:not(.topbar__list--end) { display: none; }
  .topbar__inner { justify-content: center; }
  .brand__mark { width: 42px; height: 34px; }
  .brand__mark--img { width: 46px; height: 46px; }
  .brand__name { font-size: 1.05rem; }
  /* ~110px under the 138px mobile wordmark. */
  .brand__tag { font-size: .57rem; letter-spacing: .22em; margin-right: -.22em; }
  .hero__actions .btn { width: 100%; }
  .cta__actions .btn { width: 100%; }
  .badge-card { right: .5rem; bottom: -1.25rem; padding: .8rem 1.05rem; }
  .badge-card strong { font-size: 1.1rem; }
}

/* --------------------------------------------------------------------------
   23. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal, .reveal { opacity: 1 !important; transform: none !important; }

  /* Neutralise parallax offsets applied by script */
  .hero__img,
  .frame > img,
  .tech__bg img,
  .stats__bg img,
  .doc__photo img,
  .orb { transform: none !important; }

  .hero__scroll-line { animation: none; }
  .card:hover, .doc:hover, .why__item:hover, .tech__card:hover, .btn:hover { transform: none !important; }
}

/* --------------------------------------------------------------------------
   24. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .actionbar, .to-top, .carousel__controls, .hero__scroll, .map { display: none !important; }
  .hero { min-height: auto; padding-top: 2rem; }
  .hero__scrim, .tech__scrim, .stats__scrim { background: none; }
  body { color: #000; }
}
