/* ============================================================
   CENTURY EYE CARE — premium clinical-warm, photography-led
   Bricolage Grotesque (display) · Figtree (body) · Great Vibes (logo)
   Navy + clinical blue + teal accent on airy white.
   ============================================================ */

:root {
  --navy:       #15315c;   /* deep brand navy (dark sections) */
  --navy-900:   #0f2murn;  /* placeholder, overwritten below */
  --navy-deep:  #0e2444;
  --blue:       #1f63c9;   /* logo "Eye" royal blue / primary */
  --blue-deep:  #174ea0;
  --teal:       #14a9bd;   /* tagline accent, used sparingly */
  --ink:        #1d2a40;   /* body text on light */
  --muted:      #56627a;   /* secondary text on light (>4.5:1) */
  --gray:       #6b7689;   /* logo gray lettering */
  --white:      #ffffff;
  --mist:       #eef3fb;   /* cool blue-tinted surface */
  --mist-2:     #e4ecf7;
  --line:       #dde5f0;

  --display: "Bricolage Grotesque", "Figtree", sans-serif;
  --body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --script: "Great Vibes", cursive;

  --shell: 1200px;
  --header-h: 80px;   /* fixed header height — hero content must clear this */
  --r: 18px;
  --r-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 30px 60px -32px rgba(21, 49, 92, 0.5);
  --shadow-sm: 0 14px 32px -22px rgba(21, 49, 92, 0.55);

  /* z-scale */
  --z-sticky: 100;
  --z-menu: 200;
}
:root { --navy-900: #0c1f3d; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--white);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }
::selection { background: var(--blue); color: #fff; }

.shell { width: min(100% - 2.5rem, var(--shell)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--navy); color: #fff; padding: 0.7rem 1.1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- type scale ---------- */
.section-h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--navy);
  text-wrap: balance;
}
.section-h2.light { color: #fff; }
.section-sub {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  color: var(--muted);
  max-width: 60ch;
  margin-top: 1rem;
  text-wrap: pretty;
}
.section-intro { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.tag {
  display: inline-block;
  font-family: var(--body); font-weight: 700;
  font-size: 0.82rem; letter-spacing: 0.04em;
  color: var(--blue-deep);
  background: var(--mist); border: 1px solid var(--line);
  padding: 0.4em 0.95em; border-radius: 999px;
  margin-bottom: 1.3rem;
}
.tag-spa { color: #0e7d8c; background: #e6f7f9; border-color: #c5ebef; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-family: var(--body); font-weight: 600; font-size: 0.98rem;
  padding: 0.8em 1.5em; border-radius: 999px; border: 1.6px solid transparent;
  cursor: pointer; transition: transform 0.35s var(--ease), background 0.25s, color 0.25s, box-shadow 0.35s, border-color 0.25s;
}
.btn-lg { padding: 0.95em 1.8em; font-size: 1.04rem; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 12px 26px -14px rgba(31,99,201,0.8); }
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(31,99,201,0.85); }
.btn-quiet { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--navy); background: var(--white); transform: translateY(-2px); }
.btn-on-dark { background: #fff; color: var(--navy); }
.btn-on-dark:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }
.btn-on-dark-ghost { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.5); backdrop-filter: blur(4px); }
.btn-on-dark-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* ============================================================
   LOGO
   ============================================================ */
.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo img { height: 52px; width: auto; display: block; transition: height 0.4s var(--ease); }
.header.scrolled .logo img { height: 46px; }
.logo-light img { height: 58px; }
/* logo swaps light/dark depending on header state */
.logo .logo-light-img { display: none; }
.header.over-hero .logo .logo-dark { display: none; }
.header.over-hero .logo .logo-light-img { display: block; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-sticky);
  padding: 0.7rem 0; transition: background 0.4s var(--ease), box-shadow 0.4s, padding 0.4s;
}
.header.scrolled {
  background: rgba(255,255,255,0.9); backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -24px rgba(21,49,92,0.6);
  padding: 0.4rem 0;
}
/* transparent + light while over the dark cinematic hero */
.header.over-hero { background: transparent; box-shadow: none; }
.header.over-hero .nav a { color: rgba(255,255,255,0.92); }
.header.over-hero .nav a:hover { color: #fff; }
.header.over-hero .header-phone { color: #fff; }
.header.over-hero .header-phone svg { color: #fff; }
.header.over-hero .burger span { background: #fff; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav { display: flex; gap: 2rem; }
.nav a {
  font-weight: 600; font-size: 0.98rem; color: var(--ink); position: relative; padding: 0.3em 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--blue); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav a:hover { color: var(--blue-deep); }
.nav a:hover::after { transform: scaleX(1); }
.header-cta { display: flex; align-items: center; gap: 1.3rem; }
.header-phone { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; font-size: 0.95rem; color: var(--navy); }
.header-phone svg { color: var(--blue); }
.header-phone:hover { color: var(--blue-deep); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { width: 26px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.35s var(--ease), opacity 0.3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; flex-direction: column; gap: 1.1rem; padding: 1.4rem 1.25rem 1.9rem; background: #fff; border-top: 1px solid var(--line); }
.mobile-nav a { font-size: 1.08rem; font-weight: 600; }
.mobile-nav .mobile-phone { color: var(--blue-deep); }
.mobile-nav .btn { margin-top: 0.3rem; }

/* ============================================================
   CINEMATIC HERO — full-bleed living eye
   ============================================================ */
.hero-cine {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: clamp(7rem, 13vw, 10rem) 0 clamp(4rem, 8vw, 7rem);
  overflow: hidden;
  background: #08152c;
}
.hero-cine-bg { position: absolute; inset: 0; z-index: 0; }
.hero-eye {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: 62% 50%;
  transform: scale(1.06); transform-origin: 62% 50%;
  animation: heroBreath 22s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes heroBreath { from { transform: scale(1.04); } to { transform: scale(1.16); } }
.hero-grad {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(6,16,34,0.94) 0%, rgba(6,16,34,0.72) 38%, rgba(6,16,34,0.32) 66%, rgba(6,16,34,0.5) 100%),
    radial-gradient(140% 100% at 0% 50%, rgba(6,16,34,0.7), transparent 60%),
    linear-gradient(0deg, rgba(6,16,34,0.85) 0%, transparent 30%);
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(40% 50% at 72% 48%, rgba(31,140,210,0.28), transparent 70%);
  mix-blend-mode: screen;
  animation: heroPulse 9s ease-in-out infinite alternate;
}
@keyframes heroPulse { from { opacity: 0.6; } to { opacity: 1; } }

.hero-cine-inner { position: relative; z-index: 2; max-width: 760px; color: #fff; }
.hero-cine .hero-loc { font-weight: 600; color: #8fd0ff; letter-spacing: 0.04em; margin-bottom: 1.2rem; }
.hero-cine .hero-h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.7rem, 6.6vw, 5.4rem); line-height: 0.98; letter-spacing: -0.04em;
  color: #fff; text-wrap: balance; text-shadow: 0 10px 50px rgba(0,0,0,0.45);
}
.hero-cine .hero-lede {
  font-size: clamp(1.1rem, 1.6vw, 1.32rem); color: rgba(255,255,255,0.84);
  max-width: 48ch; margin: 1.5rem 0 2.3rem; text-wrap: pretty;
}
.hero-cine .hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-cine .hero-reviews {
  display: inline-flex; align-items: center; gap: 0.7rem; margin-top: 2.3rem;
  font-size: 0.97rem; color: rgba(255,255,255,0.8); font-weight: 500;
}
.hero-cine .hero-reviews:hover { color: #fff; }
.stars { color: #ffc66b; letter-spacing: 1px; }

.hero-cue {
  position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(255,255,255,0.7);
}
.hero-cue i { width: 1px; height: 34px; background: linear-gradient(rgba(255,255,255,0.8), transparent); animation: cueLine 1.9s var(--ease) infinite; }
@keyframes cueLine { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 46% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

@media (prefers-reduced-motion: reduce) {
  .hero-eye { animation: none; transform: scale(1.06); }
  .hero-glow, .hero-cue i { animation: none; }
}

/* ============================================================
   BAND
   ============================================================ */
.band { background: var(--navy); color: #fff; }
.band-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding: clamp(2rem, 4vw, 3rem) 0; }
.band-item { display: flex; flex-direction: column; gap: 0.25rem; position: relative; padding-left: 1.25rem; }
.band-item::before { content: ""; position: absolute; left: 0; top: 0.15em; width: 3px; height: 1.2em; background: var(--teal); border-radius: 2px; }
.band-item strong { font-family: var(--display); font-weight: 600; font-size: 1.12rem; }
.band-item span { color: #aebfd9; font-size: 0.95rem; }

/* ============================================================
   SERVICES
   ============================================================ */
.services { padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(3rem, 6vw, 5rem); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.feature {
  border-radius: var(--r); overflow: hidden; background: #fff; border: 1px solid var(--line);
  transition: transform 0.5s var(--ease), box-shadow 0.5s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-img { aspect-ratio: 4 / 3; overflow: hidden; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.feature:hover .feature-img img { transform: scale(1.05); }
.feature-body { padding: 1.5rem 1.5rem 1.7rem; }
.feature-body h3 { font-family: var(--display); font-weight: 600; font-size: 1.45rem; color: var(--navy); letter-spacing: -0.01em; margin-bottom: 0.45rem; }
.feature-body p { color: var(--muted); font-size: 1.02rem; }

.svc-list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 1.6rem; }
.svc-list li { padding: 1.4rem 1.3rem; border-radius: var(--r-sm); background: var(--mist); border: 1px solid transparent; transition: border-color 0.3s, background 0.3s; }
.svc-list li:hover { background: #fff; border-color: var(--line); }
.svc-list h4 { font-family: var(--display); font-weight: 600; font-size: 1.12rem; color: var(--navy); margin-bottom: 0.3rem; }
.svc-list p { color: var(--muted); font-size: 0.95rem; line-height: 1.5; }

/* ============================================================
   ABOUT (navy drench)
   ============================================================ */
.about { background: var(--navy); color: #fff; padding: clamp(4.5rem, 9vw, 8rem) 0; margin-top: clamp(2rem, 5vw, 4rem); }
.about-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; align-items: center; gap: clamp(2.5rem, 6vw, 5rem); }
.about-media { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 5; }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-text > p { color: #c4d2e8; font-size: 1.12rem; margin-top: 1.3rem; max-width: 52ch; text-wrap: pretty; }
.values { display: grid; gap: 0.1rem; margin: 2rem 0; }
.values > div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 1rem 0; border-top: 1px solid rgba(255,255,255,0.14); align-items: baseline; }
.values dt { font-family: var(--display); font-weight: 600; font-size: 1.2rem; color: #fff; }
.values dd { color: #aebfd9; }

/* ============================================================
   SPLIT (eye spa / optical)
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2.5rem, 6vw, 5rem); padding: clamp(4.5rem, 9vw, 8rem) 0; }
.split.reverse .split-media { order: -1; }
.split-media { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 5 / 4; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.ticklist { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; margin: 1.6rem 0 2rem; }
.ticklist li { display: flex; align-items: center; gap: 0.8rem; font-size: 1.08rem; color: var(--ink); }
.ticklist li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; background: #e6f7f9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%230e7d8c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center/14px no-repeat; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.6rem 0 2rem; }
.chips li { font-size: 0.86rem; font-weight: 600; color: var(--navy); background: var(--mist); border: 1px solid var(--line); padding: 0.5em 1em; border-radius: 999px; }

/* ============================================================
   QUOTE
   ============================================================ */
.quote { background: var(--mist); padding: clamp(4rem, 8vw, 7rem) 0; }
.quote-inner { display: grid; grid-template-columns: auto 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.quote-photo { width: clamp(120px, 18vw, 190px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: var(--shadow-sm); flex-shrink: 0; }
.quote-photo img { width: 100%; height: 100%; object-fit: cover; }
.quote blockquote p {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.4rem, 3vw, 2.3rem); line-height: 1.22; letter-spacing: -0.02em;
  color: var(--navy); text-wrap: balance;
}
.quote blockquote footer { margin-top: 1.3rem; font-weight: 600; color: var(--blue-deep); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.faq-list { border-top: 1px solid var(--line); max-width: 880px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.5rem 0.25rem; font-family: var(--display); font-weight: 600;
  font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--navy); transition: color 0.25s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--blue-deep); }
.faq-mark { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq-mark::before, .faq-mark::after { content: ""; position: absolute; background: var(--blue); border-radius: 2px; transition: transform 0.35s var(--ease), opacity 0.35s; }
.faq-mark::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq-mark::after { top: 0; left: 8px; width: 2px; height: 18px; }
.faq-item[open] .faq-mark::after { transform: scaleY(0); opacity: 0; }
.faq-item[open] summary { color: var(--blue-deep); }
.faq-body { overflow: hidden; max-height: 0; opacity: 0; padding-right: 3rem; transition: max-height 0.4s var(--ease), opacity 0.4s var(--ease), padding-bottom 0.4s var(--ease); }
.faq-item[open] .faq-body { max-height: 340px; opacity: 1; padding-bottom: 1.5rem; }
.faq-body p { color: var(--muted); font-size: 1.05rem; max-width: 68ch; }

/* ============================================================
   BOOK / LOCATIONS
   ============================================================ */
.book { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; padding: clamp(4.5rem, 9vw, 8rem) 0; }
.book-head { max-width: 620px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.book-h2 { font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.02; letter-spacing: -0.03em; }
.book-sub { color: #c4d2e8; font-size: 1.15rem; margin-top: 1rem; text-wrap: pretty; }
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.loc-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--r); padding: 2rem; transition: background 0.3s, transform 0.4s var(--ease); }
.loc-card:hover { background: rgba(255,255,255,0.09); transform: translateY(-4px); }
.loc-card h3 { font-family: var(--display); font-weight: 600; font-size: 1.7rem; }
.loc-addr { color: #c4d2e8; margin: 0.7rem 0 1rem; line-height: 1.6; }
.loc-phone { display: inline-block; font-family: var(--display); font-weight: 600; font-size: 1.5rem; color: #fff; }
.loc-phone:hover { color: #7fb0f2; }
.loc-links { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; font-size: 0.92rem; color: #aebfd9; }
.loc-links a { color: var(--teal); font-weight: 600; }
.loc-links a:hover { color: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy-900); color: #aebfd9; padding: clamp(3.5rem, 6vw, 5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand .logo { margin-bottom: 1.4rem; }
.footer-institute { font-weight: 700; letter-spacing: 0.04em; color: #e7eefa; }
.footer-tag { color: #8497b6; margin-top: 0.3rem; font-size: 0.95rem; letter-spacing: 0.02em; }
.footer-col h4 { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); margin-bottom: 1rem; }
.footer-col p { line-height: 1.8; font-size: 0.98rem; }
.footer-col a { display: block; margin-bottom: 0.55rem; transition: color 0.25s; }
.footer-col a:hover { color: #fff; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.82rem; color: #74849f; }

/* ============================================================
   MOTION — visible by default; animates only when JS confirmed
   ============================================================ */
html.js .anim { opacity: 0; transform: translateY(20px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
html.js .anim.in { opacity: 1; transform: none; }
/* hero load stagger */
html.js .hero .anim { transition-delay: 0.05s; }
html.js .hero-h1.anim { transition-delay: 0.12s; }
html.js .hero-lede.anim { transition-delay: 0.2s; }
html.js .hero-actions.anim { transition-delay: 0.28s; }
html.js .hero-reviews.anim { transition-delay: 0.36s; }
html.js .hero-media.anim { transition-delay: 0.18s; }

@media (prefers-reduced-motion: reduce) {
  html.js .anim { opacity: 1; transform: none; transition: none; }
  .feature:hover .feature-img img { transform: none; }
  * { scroll-behavior: auto !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .nav, .header-cta { display: none; }
  .burger { display: flex; }
  .header.open .mobile-nav { display: flex; }
  .hero { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 7.5rem; }
  .hero-media { max-width: 460px; }
  .band-row { grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .svc-list { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 420px; aspect-ratio: 5 / 4; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split .split-media, .split.reverse .split-media { order: -1; max-width: 540px; }
  .loc-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .band-row { grid-template-columns: 1fr; gap: 1.2rem; }
  .feature-grid, .svc-list { grid-template-columns: 1fr; }
  .quote-inner { grid-template-columns: 1fr; text-align: left; }
  .loc-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .hero-badge { left: 0; right: 0; max-width: none; }
  .values > div { grid-template-columns: 1fr; gap: 0.2rem; }
}

/* ============================================================
   LAYERED 3D HERO (hero4 version) — exploded eye + vertical layer rail
   ============================================================ */
.hero4 {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; align-items: center;
  padding: clamp(7rem,12vw,9rem) 0 clamp(4rem,8vw,7rem);
  background: radial-gradient(120% 90% at 65% 50%, #0e2a52 0%, #081b38 45%, #03070f 100%), #03070f;
}
.hero4-glowbg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(38% 46% at 62% 50%, rgba(40,150,230,0.32), transparent 70%);
  animation: h4pulse 9s ease-in-out infinite alternate;
}
@keyframes h4pulse { from { opacity: 0.6; } to { opacity: 1; } }

.hero4-inner {
  position: relative; z-index: 2; width: 100%;
  display: grid; grid-template-columns: minmax(0, 470px) 1fr; align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}
.hero4-text { max-width: 470px; color: #fff; }
.hero4 .hero-loc { font-weight: 600; color: #8fd0ff; letter-spacing: 0.04em; margin-bottom: 1.1rem; }
.hero4 .hero-h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.5rem, 5.4vw, 4.6rem); line-height: 0.98; letter-spacing: -0.04em;
  color: #fff; text-wrap: balance; text-shadow: 0 10px 50px rgba(0,0,0,0.5);
}
.hero4 .hero-lede { font-size: clamp(1.05rem,1.5vw,1.26rem); color: rgba(255,255,255,0.84); max-width: 42ch; margin: 1.4rem 0 2.2rem; text-wrap: pretty; }
.hero4 .hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero4 .hero-reviews { display: inline-flex; align-items: center; gap: 0.7rem; margin-top: 2.2rem; font-size: 0.96rem; color: rgba(255,255,255,0.8); font-weight: 500; }
.hero4 .hero-reviews:hover { color: #fff; }

/* exploded eye stage */
.hero4-stage { position: relative; display: grid; place-items: center; perspective: 1200px; min-height: 60vh; }
.hero4-eye {
  width: min(118%, 760px); height: auto; object-fit: contain;
  filter: drop-shadow(0 40px 80px rgba(0,0,0,0.6));
  will-change: transform; transform-origin: 60% 50%;
  animation: h4float 11s ease-in-out infinite alternate;
}
@keyframes h4float { from { transform: translateY(-10px); } to { transform: translateY(12px); } }

/* vertical layer rail */
.layer-rail {
  position: absolute; right: clamp(0.6rem, 2.2vw, 2.4rem); top: 50%; transform: translateY(-50%);
  z-index: 3; list-style: none; display: flex; flex-direction: column; gap: 0.55rem;
}
.layer-rail::before {
  content: ""; position: absolute; left: 31px; top: 8%; bottom: 8%; width: 1px;
  background: linear-gradient(rgba(143,208,255,0), rgba(143,208,255,0.5), rgba(143,208,255,0)); z-index: -1;
}
.layer-chip {
  display: flex; align-items: center; gap: 0.85rem; cursor: default;
  padding: 0.3rem 0.7rem 0.3rem 0.3rem; border-radius: 999px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.4s var(--ease), background 0.3s, border-color 0.3s;
}
.layer-chip:hover { transform: translateX(-8px); background: rgba(40,120,200,0.18); border-color: rgba(143,208,255,0.45); }
.lc-frame {
  width: 62px; height: 62px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  border: 1px solid rgba(143,208,255,0.35); box-shadow: 0 6px 20px -8px rgba(0,0,0,0.7);
  background: #05101f;
}
.lc-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.layer-chip:hover .lc-frame img { transform: scale(1.12); }
.lc-frame { transition: box-shadow 0.4s; }
.layer-chip:hover .lc-frame { box-shadow: 0 0 0 3px rgba(143,208,255,0.25), 0 10px 26px -8px rgba(40,150,230,0.7); }
.lc-meta { display: flex; flex-direction: column; line-height: 1.2; padding-right: 0.4rem; }
.lc-meta b { font-family: var(--display); font-weight: 600; font-size: 0.98rem; color: #fff; }
.lc-meta i { font-style: normal; font-size: 0.74rem; color: rgba(255,255,255,0.6); }

@media (max-width: 1080px) {
  .hero4-inner { grid-template-columns: 1fr; }
  .hero4-text { max-width: 620px; }
  .hero4-stage { min-height: 42vh; order: 2; }
  .hero4-eye { width: min(100%, 560px); }
  /* rail becomes a horizontal strip under the eye */
  .layer-rail { position: static; transform: none; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }
  .layer-rail::before { display: none; }
  .layer-chip { padding: 0.3rem 0.5rem; }
  .lc-meta { display: none; }
  .lc-frame { width: 54px; height: 54px; }
}
@media (max-width: 560px) {
  .lc-frame { width: 46px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero4-glowbg, .hero4-eye { animation: none; }
}

/* mobile: stack hero content above the layer rail (override) */
@media (max-width: 1080px) {
  .hero4 { flex-direction: column; align-items: stretch; }
  .hero4-inner { width: 100%; }
  .layer-rail { width: 100%; margin-top: 2rem; }
}
@media (max-width: 1080px) { .hero4 .hero-cue { display: none; } }

/* ============================================================
   SCROLL-ASSEMBLY HERO (replaces the static layered hero)
   ============================================================ */
.hero4 { position: relative; display: block; height: 100svh; min-height: 100svh; padding: 0; overflow: hidden; }

.assemble-stage { position: absolute; inset: 0; z-index: 1; }
.assemble-poster, .assemble-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.assemble-poster { object-fit: contain; z-index: 1; opacity: 1; transition: opacity 0.5s var(--ease); }
.assemble-canvas { z-index: 2; opacity: 0; transition: opacity 0.5s var(--ease); }
.hero4.canvas-ready .assemble-poster { opacity: 0; }
.hero4.canvas-ready .assemble-canvas { opacity: 1; }

/* left legibility scrim */
.hero4::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(95deg, rgba(4,12,28,0.92) 0%, rgba(4,12,28,0.55) 32%, rgba(4,12,28,0.06) 58%, transparent 74%);
}

.assemble-msgs { position: absolute; inset: var(--header-h) 0 0 0; z-index: 4; max-width: none; margin: 0; }
.amsg {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -46%);
  width: min(100% - 3rem, var(--shell));
  display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.amsg.is-active { opacity: 1; transform: translate(-50%, -50%); pointer-events: auto; }
.amsg .hero-loc { color: #8fd0ff; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 1rem; }
.amsg .hero-h1 {
  font-family: var(--display); font-weight: 700; color: #fff;
  font-size: clamp(2.4rem, 5.6vw, 4.8rem); line-height: 0.98; letter-spacing: -0.04em;
  text-shadow: 0 10px 50px rgba(0,0,0,0.5);
}
.amsg-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: #7fdce6; margin-bottom: 0.9rem; }
.amsg-line {
  font-family: var(--display); font-weight: 600; color: #fff;
  font-size: clamp(2rem, 4.8vw, 3.7rem); line-height: 1.02; letter-spacing: -0.03em;
  text-shadow: 0 8px 40px rgba(0,0,0,0.55);
}
.amsg .hero-lede { color: rgba(255,255,255,0.85); font-size: clamp(1.05rem,1.5vw,1.26rem); max-width: 42ch; margin: 1.3rem 0 2rem; text-wrap: pretty; }
.amsg .hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.amsg .hero-reviews { display: inline-flex; align-items: center; gap: 0.7rem; margin-top: 2rem; color: rgba(255,255,255,0.8); font-weight: 500; font-size: 0.96rem; }
.amsg .hero-reviews:hover { color: #fff; }

/* scroll cue only matters at the very start */
.hero4 .hero-cue { z-index: 5; }
.hero4.assembling .hero-cue { opacity: 0; transition: opacity 0.4s; pointer-events: none; }

/* reduced motion / no canvas: static hero, show the final (actionable) message */
@media (prefers-reduced-motion: reduce) {
  .hero4 { height: auto; }
  .assemble-canvas { display: none; }
  .amsg:not(.amsg-final) { display: none; }
  .amsg-final { position: relative; top: auto; left: auto; transform: none; opacity: 1; width: min(100% - 3rem, var(--shell)); margin: 0 auto; min-height: 100svh; justify-content: center; padding-top: var(--header-h); }
  .hero4 .hero-cue { display: none; }
}

/* No scrub controller (GSAP CDN blocked, or still loading): render a valid
   STATIC hero. Without this the messages stay absolutely centred inside a
   100svh block and slide up under the fixed header as soon as you scroll. */
.hero4.is-static { height: auto; }
.hero4.is-static .assemble-canvas { display: none; }
.hero4.is-static .amsg:not(.amsg-final) { display: none; }
.hero4.is-static .assemble-msgs {
  position: relative; inset: auto; transform: none;
  width: min(100% - 3rem, var(--shell)); margin: 0 auto;
  display: flex; align-items: center; min-height: 100svh; padding-top: var(--header-h);
}
.hero4.is-static .amsg-final {
  position: relative; top: auto; left: auto; transform: none;
  opacity: 1; pointer-events: auto; width: min(54%, 600px);
}
@media (max-width: 900px) { .hero4.is-static .amsg-final { width: 100%; } }
.hero4.is-static .hero-cue { display: none; }

/* desktop: eye on the right, copy on the left */
@media (min-width: 901px) {
  .assemble-stage { left: auto; right: 0; width: 60%; }
  .hero4::before {
    background: linear-gradient(95deg, rgba(4,12,28,0.97) 0%, rgba(4,12,28,0.86) 30%, rgba(4,12,28,0.45) 50%, rgba(4,12,28,0.05) 66%, transparent 76%);
  }
  .assemble-msgs { left: 50%; right: auto; transform: translateX(-50%); width: min(100% - 4rem, var(--shell)); }
  .amsg { left: 0; width: min(54%, 600px); transform: translate(0, -46%); }
  .amsg.is-active { transform: translate(0, -50%); }
}

/* feather the eye stage's left edge so the frame blends into the hero bg */
@media (min-width: 901px) {
  .assemble-stage {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 13%);
            mask-image: linear-gradient(to right, transparent 0, #000 13%);
  }
}

/* grade hero bg dark on the right so the eye frame blends (desktop) */
@media (min-width: 901px) {
  .hero4 { background: linear-gradient(105deg, #0f2c57 0%, #0a1f3e 30%, #06122a 50%, #03080f 66%, #020509 100%); }
  .assemble-stage { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 9%); mask-image: linear-gradient(to right, transparent 0, #000 9%); }
}

/* ============================================================
   ENHANCED SCROLL REVEALS (page below the hero)
   ============================================================ */
html.js .anim {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1),
              transform 0.8s cubic-bezier(0.22,1,0.36,1),
              filter 0.8s ease;
  transition-delay: var(--rvd, 0ms);
  will-change: opacity, transform;
}
/* image wrappers: a soft "focus-in" that fits an eye-care brand */
html.js .anim.rv-img { transform: translateY(36px); filter: blur(14px); }
html.js .anim.in { opacity: 1; transform: none; filter: none; }

/* parallax images sit slightly scaled so the drift never reveals an edge */
.about-media img.px-img, .split-media img.px-img, .quote-photo img.px-img {
  transform: scale(1.14); will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  html.js .anim { opacity: 1; transform: none; filter: none; transition: none; }
  .about-media img.px-img, .split-media img.px-img, .quote-photo img.px-img { transform: none; }
}

/* ============================================================
   MULTI-PAGE: mega-menu nav, logo swap, page heroes, components
   ============================================================ */
/* logo light/dark swap (two wrapped logos) */
.logo-light-wrap { display: none; }
.header.over-hero .logo-dark-wrap { display: none; }
.header.over-hero .logo-light-wrap { display: inline-flex; }

/* nav items + dropdowns */
.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav-top { font-weight: 600; font-size: 0.96rem; color: var(--ink); display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3em 0; white-space: nowrap; }
.header.over-hero .nav-top { color: rgba(255,255,255,0.92); }
.header.over-hero .nav-top:hover { color: #fff; }
.nav-top:hover { color: var(--blue-deep); }
.caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-1px); opacity: 0.7; transition: transform 0.3s; }
.nav-item { position: relative; }
.nav-item:hover .caret { transform: rotate(225deg) translateY(-1px); }

.menu {
  position: absolute; top: calc(100% + 0.6rem); z-index: 50;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 30px 60px -28px rgba(21,49,92,0.5);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
}
.nav-item:hover .menu, .nav-item:focus-within .menu { opacity: 1; visibility: visible; transform: translateY(0); }
.menu::before { content: ""; position: absolute; top: -0.6rem; left: 0; right: 0; height: 0.6rem; } /* hover bridge */
.menu a { display: block; padding: 0.55rem 0.7rem; border-radius: 8px; font-size: 0.95rem; font-weight: 500; color: var(--ink); white-space: nowrap; transition: background 0.2s, color 0.2s; }
.menu a:hover { background: var(--mist); color: var(--blue-deep); }
.menu-list { left: 0; padding: 0.7rem; min-width: 250px; }

.menu-mega { left: 0; transform: translate(0, 8px); width: min(880px, 76vw); padding: 1.5rem; }
.nav-item:hover .menu-mega, .nav-item:focus-within .menu-mega { transform: translate(0, 0); }
.mega-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.mega-col h4 { font-family: var(--body); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); margin-bottom: 0.6rem; padding: 0 0.7rem; }
.mega-col a { font-size: 0.92rem; }
.mega-age { border-left: 1px solid var(--line); padding-left: 0.6rem; }

/* mobile accordion menu */
.m-acc { border-bottom: 1px solid var(--line); }
.m-acc summary { list-style: none; cursor: pointer; font-size: 1.08rem; font-weight: 600; padding: 0.9rem 0; display: flex; justify-content: space-between; align-items: center; }
.m-acc summary::-webkit-details-marker { display: none; }
.m-acc summary::after { content: "+"; font-size: 1.3rem; color: var(--blue); }
.m-acc[open] summary::after { content: "–"; }
.m-acc > div { padding-bottom: 0.8rem; display: flex; flex-direction: column; gap: 0.1rem; }
.m-acc > div a { font-size: 0.98rem; font-weight: 500; padding: 0.4rem 0; }
.m-cat { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); margin: 0.7rem 0 0.2rem; }

/* ============================================================
   PAGE HERO (interior pages) — dark navy banner
   ============================================================ */
.page-hero {
  position: relative; overflow: hidden; background: var(--navy);
  padding: clamp(8rem, 13vw, 11rem) 0 clamp(3rem, 6vw, 5rem); color: #fff;
}
.page-hero-glow { position: absolute; inset: 0; background: radial-gradient(60% 70% at 80% 30%, rgba(40,150,230,0.28), transparent 60%); pointer-events: none; }
.page-hero .shell { position: relative; z-index: 1; }
.crumb { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; font-size: 0.85rem; color: #9fb3d4; margin-bottom: 1.4rem; }
.crumb a { color: #9fb3d4; } .crumb a:hover { color: #fff; }
.crumb span[aria-hidden] { opacity: 0.5; }
.ph-eyebrow { font-weight: 600; letter-spacing: 0.04em; color: #8fd0ff; margin-bottom: 0.9rem; }
.ph-title { font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 5.6vw, 4.4rem); line-height: 1.0; letter-spacing: -0.03em; text-wrap: balance; }
.ph-sub { font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: #c4d2e8; margin-top: 1.1rem; max-width: 60ch; text-wrap: pretty; }

/* generic section helpers */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-mist { background: var(--mist); }

/* prose */
.prose p { font-size: 1.12rem; color: var(--ink); max-width: 68ch; margin-bottom: 1.2rem; line-height: 1.7; text-wrap: pretty; }
.prose p strong { color: var(--navy); }

/* split page (main + aside) */
.split-page { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.split-page-aside { position: sticky; top: 6rem; }
.aside-img { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; margin-bottom: 1.4rem; }
.aside-img.tall { aspect-ratio: 4/5; }
.aside-img img { width: 100%; height: 100%; object-fit: cover; }
.aside-card { background: var(--mist); border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem 1.5rem; }
.aside-card h4 { font-family: var(--body); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); margin-bottom: 0.8rem; }
.aside-card a { display: block; padding: 0.4rem 0; font-weight: 500; color: var(--ink); }
.aside-card a:hover { color: var(--blue-deep); }
.aside-all { margin-top: 0.4rem; color: var(--blue-deep) !important; font-weight: 600 !important; border-top: 1px solid var(--line); padding-top: 0.7rem !important; }

/* card grids */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.svc-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; transition: transform 0.45s var(--ease), box-shadow 0.45s; }
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.svc-card-img { aspect-ratio: 16/10; overflow: hidden; background: var(--navy); }
.svc-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.svc-card:hover .svc-card-img img { transform: scale(1.06); }
.svc-card-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.svc-card-body h3 { font-family: var(--display); font-weight: 600; font-size: 1.35rem; color: var(--navy); letter-spacing: -0.01em; }
.svc-card-body p { color: var(--muted); font-size: 0.98rem; flex: 1; }
.card-go { font-weight: 600; font-size: 0.92rem; color: var(--blue-deep); }

/* age cards */
.age-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.age-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.8rem; transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.age-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.age-label { font-family: var(--display); font-weight: 600; font-size: 1.6rem; color: var(--navy); display: block; margin-bottom: 0.5rem; }
.age-card p { color: var(--muted); margin-bottom: 1rem; }

/* why */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.why-card { background: var(--mist); border-radius: var(--r); padding: 2rem 1.8rem; }
.why-n { font-family: var(--display); font-size: 1.1rem; color: var(--teal); font-weight: 600; }
.why-card h3 { font-family: var(--display); font-weight: 600; font-size: 1.6rem; color: var(--navy); margin: 0.4rem 0 0.5rem; }
.why-card p { color: var(--muted); }

/* team / doctors */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.6rem; }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.8rem; text-align: center; transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.doctor-portrait { width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 1.1rem; background: linear-gradient(150deg, var(--blue), var(--navy)); display: grid; place-items: center; }
.doctor-portrait span { font-family: var(--display); font-size: 2rem; color: #fff; font-weight: 600; }
.team-card h3 { font-family: var(--display); font-weight: 600; font-size: 1.3rem; color: var(--navy); }
.doctor-role { color: var(--blue-deep); font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; margin: 0.3rem 0 0.8rem; }
.team-note { color: var(--muted); margin-top: 2rem; max-width: 60ch; }
.doctor-aside { text-align: center; }
.doctor-aside .doctor-portrait { width: 160px; height: 160px; }
.doctor-aside .doctor-portrait span { font-size: 3rem; }
.doctor-aside .btn { margin-top: 0.6rem; }

/* locations */
.loc-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.loc-card-lg { background: var(--mist); border: 1px solid var(--line); border-radius: var(--r); padding: 2.2rem; }
.loc-card-lg h3 { font-family: var(--display); font-weight: 600; font-size: 1.9rem; color: var(--navy); }
.loc-card-lg .loc-addr { color: var(--muted); margin: 0.7rem 0 1rem; line-height: 1.7; }
.loc-card-lg .loc-phone { font-family: var(--display); font-weight: 600; font-size: 1.5rem; color: var(--navy); display: inline-block; }
.loc-card-lg .loc-phone:hover { color: var(--blue); }
.loc-hours { color: var(--muted); margin-top: 0.6rem; font-size: 0.95rem; }
.loc-card-lg .loc-links { margin-top: 1rem; }
.loc-card-lg .loc-links a { color: var(--blue-deep); font-weight: 600; }

/* education */
.edu-grid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.edu-card2 { display: block; background: var(--mist); border: 1px solid transparent; border-radius: var(--r); padding: 1.8rem; transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s; }
.edu-card2:hover { transform: translateY(-6px); border-color: var(--teal); box-shadow: var(--shadow); background: #fff; }
.edu-idx { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: #fff; border: 1px solid var(--line); color: var(--teal); font-family: var(--display); font-weight: 600; margin-bottom: 1rem; }
.edu-card2 h3 { font-family: var(--display); font-weight: 600; font-size: 1.3rem; color: var(--navy); margin-bottom: 0.4rem; }
.edu-card2 p { color: var(--muted); font-size: 0.98rem; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 2rem; box-shadow: var(--shadow-sm); }
.form-note { font-size: 0.85rem; color: var(--muted); background: var(--mist); padding: 0.7rem 0.9rem; border-radius: 8px; margin-bottom: 1.3rem; }
.field { margin-bottom: 1.1rem; display: flex; flex-direction: column; gap: 0.4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--navy); letter-spacing: 0.02em; }
.field input, .field select, .field textarea { font-family: var(--body); font-size: 1rem; padding: 0.7em 0.9em; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,99,201,0.15); }
.contact-aside { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-loc { background: var(--mist); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; }
.contact-loc h3 { font-family: var(--display); font-weight: 600; font-size: 1.4rem; color: var(--navy); }
.contact-loc .loc-addr { color: var(--muted); margin: 0.5rem 0 0.6rem; line-height: 1.6; }
.contact-loc .loc-phone { font-weight: 700; color: var(--navy); font-size: 1.1rem; }
.contact-loc .loc-hours { font-size: 0.9rem; }
.contact-loc .loc-link { display: inline-block; margin-top: 0.6rem; color: var(--blue-deep); font-weight: 600; }

/* CTA band (interior pages) */
.cta-band { background: linear-gradient(180deg, var(--navy), var(--navy-deep)); color: #fff; padding: clamp(3.5rem, 7vw, 6rem) 0; text-align: center; }
.cta-inner { max-width: 720px; margin: 0 auto; }
.cta-inner h2 { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -0.02em; }
.cta-inner p { color: #c4d2e8; font-size: 1.15rem; margin: 1rem 0 2rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* responsive */
@media (max-width: 1080px) {
  .nav, .header-cta { display: none; }
  .burger { display: flex; }
  .header.open .mobile-nav { display: flex; }
  .split-page, .contact-grid { grid-template-columns: 1fr; }
  .split-page-aside { position: static; }
  .loc-grid2 { grid-template-columns: 1fr; }
  .mega-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
}

/* dropdown links must stay dark even when the header is in over-hero (white) mode */
.header.over-hero .menu a { color: var(--ink); }
.header.over-hero .menu a:hover { color: var(--blue-deep); }
.header.over-hero .menu .mega-col h4 { color: var(--teal); }

/* contact form success + fine print */
.form-fine { font-size: 0.78rem; color: var(--muted); margin-top: 1rem; line-height: 1.5; }
.form-fine code { font-size: 0.92em; background: var(--mist); padding: 0.05em 0.35em; border-radius: 4px; }
.form-success { text-align: center; padding: 1.5rem 1rem; }
.form-success .ok { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: #e6f7f9; color: #0e7d8c; font-size: 1.4rem; margin-bottom: 1rem; }
.form-success h3 { font-family: var(--display); font-weight: 600; font-size: 1.6rem; color: var(--navy); margin-bottom: 0.5rem; }
.form-success p { color: var(--muted); max-width: 42ch; margin: 0 auto; }

/* doctor portrait polish */
.doctor-portrait { box-shadow: 0 0 0 6px rgba(31,99,201,0.1), 0 18px 40px -18px rgba(21,49,92,0.5); position: relative; }
.doctor-portrait::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 2px 10px rgba(255,255,255,0.25); }

/* ============================================================
   FEEDBACK WIDGET
   ============================================================ */
.fb { position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 300; }
.fb-tab {
  display: inline-flex; align-items: center; gap: 0.55rem; cursor: pointer;
  font-family: var(--body); font-weight: 600; font-size: 0.95rem; color: #fff;
  background: var(--blue); border: 0; padding: 0.75em 1.25em; border-radius: 999px;
  box-shadow: 0 16px 34px -12px rgba(31,99,201,0.7);
  transition: transform 0.35s var(--ease), background 0.3s;
}
.fb-tab:hover { background: var(--blue-deep); transform: translateY(-2px); }
.fb.open .fb-tab { opacity: 0; pointer-events: none; }

.fb-panel {
  position: absolute; right: 0; bottom: 0; width: min(360px, calc(100vw - 2rem));
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 40px 80px -30px rgba(21,49,92,0.6); padding: 1.4rem;
  animation: fbUp 0.35s var(--ease);
}
@keyframes fbUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.fb-head { display: flex; align-items: center; justify-content: space-between; }
.fb-head h3 { font-family: var(--display); font-weight: 600; font-size: 1.3rem; color: var(--navy); }
.fb-x { background: none; border: 0; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 0.2rem; }
.fb-x:hover { color: var(--navy); }
.fb-sub { font-size: 0.92rem; color: var(--muted); margin: 0.4rem 0 1rem; }
.fb-rate { display: flex; gap: 0.5rem; margin-bottom: 0.9rem; }
.fb-emoji { font-size: 1.5rem; line-height: 1; background: var(--mist); border: 1.5px solid transparent; border-radius: 12px; padding: 0.4rem 0.55rem; cursor: pointer; transition: transform 0.2s, border-color 0.2s, background 0.2s; }
.fb-emoji:hover { transform: translateY(-2px); }
.fb-emoji.sel { border-color: var(--blue); background: #eaf1fd; }
.fb-panel input, .fb-panel textarea { width: 100%; font-family: var(--body); font-size: 0.98rem; padding: 0.65em 0.85em; border: 1.5px solid var(--line); border-radius: 10px; margin-bottom: 0.8rem; color: var(--ink); }
.fb-panel input:focus, .fb-panel textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,99,201,0.15); }
.fb-panel .btn { width: 100%; }
.fb-page { font-size: 0.74rem; color: var(--muted); margin-top: 0.7rem; text-align: center; }
.fb-done { text-align: center; padding: 1.5rem 0.5rem; }
.fb-done span { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: #e6f7f9; color: #0e7d8c; font-size: 1.2rem; margin-bottom: 0.7rem; }
.fb-done p { color: var(--navy); font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .fb-panel { animation: none; } }

/* feedback widget: type chips, capture, media preview, recording bar */
.fb-types { display: flex; gap: 0.4rem; margin-bottom: 0.8rem; }
.fb-type { flex: 1; font-family: var(--body); font-size: 0.85rem; font-weight: 600; color: var(--muted); background: var(--mist); border: 1.5px solid transparent; border-radius: 10px; padding: 0.5em 0.4em; cursor: pointer; transition: border-color 0.2s, background 0.2s, color 0.2s; }
.fb-type:hover { color: var(--navy); }
.fb-type.sel { border-color: var(--blue); background: #eaf1fd; color: var(--blue-deep); }
.fb-capture { display: flex; gap: 0.5rem; margin: 0.2rem 0 0.9rem; }
.fb-cap { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; font-family: var(--body); font-size: 0.88rem; font-weight: 600; color: var(--navy); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 0.6em 0.5em; cursor: pointer; transition: border-color 0.2s, background 0.2s, transform 0.2s; }
.fb-cap:hover { border-color: var(--blue); background: var(--mist); transform: translateY(-1px); }
.fb-cap svg { color: var(--blue); }
.fb-media { position: relative; margin-bottom: 0.9rem; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #05101f; }
.fb-media-inner img, .fb-media-inner video { display: block; width: 100%; max-height: 180px; object-fit: contain; background: #05101f; }
.fb-media-x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,0.6); color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.fb-media-x:hover { background: rgba(0,0,0,0.85); }
.fb.recording .fb-tab { opacity: 0; pointer-events: none; }
.fb-recbar { position: absolute; right: 0; bottom: 0; display: inline-flex; align-items: center; gap: 0.6rem; background: var(--navy); color: #fff; padding: 0.7em 1em; border-radius: 999px; box-shadow: var(--shadow); font-size: 0.9rem; font-weight: 600; white-space: nowrap; }
.fb-recdot { width: 11px; height: 11px; border-radius: 50%; background: #ff5252; animation: fbpulse 1.1s ease-in-out infinite; }
@keyframes fbpulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.fb-recbar button { background: rgba(255,255,255,0.16); color: #fff; border: 1px solid rgba(255,255,255,0.4); border-radius: 999px; padding: 0.35em 0.9em; font-weight: 600; cursor: pointer; }
.fb-recbar button:hover { background: #fff; color: var(--navy); }
@media (prefers-reduced-motion: reduce) { .fb-recdot { animation: none; } }

/* ensure hidden attribute wins over the flex display on these widgets */
.fb-recbar[hidden], .fb-media[hidden] { display: none !important; }
