/* =========================================================
   Innovision Eye Hospital — Design System
   Brand: teal primary, olive accent, Poppins, rounded, airy.
   ========================================================= */

:root {
  /* Brand */
  --c-primary: #3F8B8C;
  --c-primary-dark: #0F6F73;
  --c-primary-light: #4CC3C7;
  --c-accent: #AFB564;
  --c-accent-soft: #E7E9C8;

  /* Neutral */
  --c-ink: #0E2A2E;
  --c-text: #1B3A3F;
  --c-muted: #6E8388;
  --c-line: #E2EDED;
  --c-bg: #F4FAFA;
  --c-card: #FFFFFF;
  --c-tint: #EAF5F5;

  /* Effects */
  --shadow-xs: 0 1px 2px rgba(14,42,46,.06);
  --shadow-sm: 0 6px 18px -10px rgba(14,42,46,.20);
  --shadow-md: 0 18px 40px -22px rgba(14,42,46,.30);
  --shadow-lg: 0 30px 60px -28px rgba(14,42,46,.35);
  --shadow-glow: 0 24px 60px -22px rgba(63,139,140,.55);

  /* Radii */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Type scale */
  --fs-eyebrow: .78rem;
  --fs-body: 1rem;
  --fs-lg: 1.125rem;
  --fs-h3: 1.35rem;
  --fs-h2: clamp(1.5rem, 2.4vw, 2rem);
  --fs-h1: clamp(2rem, 4.4vw, 3.4rem);

  /* Layout */
  --container: 1180px;
  --gutter: clamp(1rem, 3vw, 2rem);
  --gradient-hero: radial-gradient(1200px 600px at 90% -10%, rgba(76,195,199,.28), transparent 60%),
                    radial-gradient(900px 500px at -10% 110%, rgba(175,181,100,.22), transparent 55%),
                    linear-gradient(180deg, #F4FAFA 0%, #EAF5F5 100%);
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--c-primary-light); color: #08222A; }

h1, h2, h3, h4 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  color: var(--c-ink);
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-h1); line-height: 1.08; margin: 0; }
h2 { font-size: var(--fs-h2); line-height: 1.18; margin: 0 0 .8rem; }
h3 { font-size: var(--fs-h3); line-height: 1.28; margin: 0 0 .5rem; }

.container {
  width: min(var(--container), calc(100% - var(--gutter) * 2));
  margin: 0 auto;
}
.site-shell { display: flex; flex-direction: column; min-height: 100vh; overflow-x: hidden; }
main { flex: 1; }

/* ---------- Reusable atoms ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--fs-eyebrow);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--c-primary-dark);
  background: rgba(63,139,140,.10);
  border: 1px solid rgba(63,139,140,.20);
  border-radius: var(--r-pill);
  padding: .42rem .85rem;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-primary);
  box-shadow: 0 0 0 4px rgba(63,139,140,.18);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .55rem;
  padding: .85rem 1.35rem;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: .98rem;
  border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .55rem;
  padding: .85rem 1.35rem;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: .98rem;
  border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
  color: #fff;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  box-shadow: var(--shadow-glow);
}
.btn-primary svg { width: 16px; height: 16px; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 30px 60px -22px rgba(63,139,140,.7); }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .55rem;
  padding: .85rem 1.35rem;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: .98rem;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
  color: var(--c-primary-dark);
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(63,139,140,.25);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: #fff; border-color: var(--c-primary); }
.btn-ghost svg { width: 16px; height: 16px; }

/* ---------- Topbar ---------- */
.topbar {
  background: linear-gradient(90deg, #0B252A 0%, #0F6F73 100%);
  color: #D7ECEE;
  font-size: .86rem;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem 1.4rem;
  padding: .6rem 0;
  flex-wrap: wrap;
}
.topbar a { color: #fff; font-weight: 600; }
.topbar a:hover { color: var(--c-primary-light); }
.topbar .tb-left,
.topbar .tb-right { display: inline-flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.topbar .tb-meta { display: inline-flex; align-items: center; gap: .5rem; opacity: .95; line-height: 1.35; }
.topbar .tb-address strong { color: #fff; font-weight: 600; margin-right: .25rem; }
.topbar .tb-divider { width: 1px; height: 16px; background: rgba(255,255,255,.22); }
.topbar .tb-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(175,181,100,.22);
  border: 1px solid rgba(175,181,100,.55);
  color: #F2F4D8;
  padding: .25rem .65rem;
  border-radius: var(--r-pill);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .01em;
}
.topbar .tb-chip svg { color: var(--c-accent); }
.topbar svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(63,139,140,.10);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled {
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 78px;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand img { height: 76px; width: auto; border-radius: 8px; }

.primary-nav { display: flex; gap: .25rem; align-items: center; }
.primary-nav a {
  position: relative;
  padding: .55rem .85rem;
  border-radius: var(--r-md);
  color: #1B3A3F;
  font-weight: 500;
  font-size: .96rem;
  transition: color .2s ease;
}
.primary-nav a::after {
  content: "";
  position: absolute; left: 50%; bottom: 4px;
  width: 0; height: 2px;
  background: var(--c-primary);
  transition: width .25s ease, left .25s ease;
}
.primary-nav a:hover { color: var(--c-primary-dark); }
.primary-nav a:hover::after,
.primary-nav a.active::after { width: 22px; left: calc(50% - 11px); }
.primary-nav a.active { color: var(--c-primary-dark); font-weight: 600; }

/* ---------- Services dropdown ---------- */
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-dd-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .55rem .85rem;
  border-radius: var(--r-md);
  border: none; background: none;
  color: #1B3A3F;
  font-weight: 500; font-size: .96rem;
  font-family: inherit;
  cursor: pointer;
  transition: color .2s ease;
  position: relative;
}
.nav-dd-btn::after {
  content: "";
  position: absolute; left: 50%; bottom: 4px;
  width: 0; height: 2px;
  background: var(--c-primary);
  transition: width .25s ease, left .25s ease;
}
.nav-dd-btn:hover,
.nav-dd-btn.active { color: var(--c-primary-dark); }
.nav-dd-btn.active::after { width: 22px; left: calc(50% - 11px); }
.nav-dropdown:hover .nav-dd-btn::after { width: 22px; left: calc(50% - 11px); }
.nav-dd-btn svg { transition: transform .2s ease; flex-shrink: 0; }
.nav-dd-btn[aria-expanded="true"] svg { transform: rotate(180deg); }

/* invisible bridge fills the gap so mouse doesn't leave .nav-dropdown */
.nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%; left: 0; right: 0;
  height: 12px;
}
.dd-panel {
  display: none;
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: .6rem;
  width: 230px;
  z-index: 200;
  animation: ddFadeIn .18s ease;
}
.dd-panel.open { display: flex; flex-direction: column; }
@keyframes ddFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.dd-item {
  display: flex; align-items: center; gap: .7rem;
  padding: .55rem .75rem;
  border-radius: var(--r-md);
  color: #1B3A3F; font-size: .9rem; font-weight: 500;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.dd-item:hover,
.dd-item.active { background: rgba(63,139,140,.09); color: var(--c-primary-dark); }
.dd-item.active { font-weight: 600; }
.dd-icon { width: 28px; height: 28px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(63,139,140,.10); border-radius: 6px; }
.dd-icon svg { width: 16px; height: 16px; }

.header-cta { padding: .7rem 1.15rem; }
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(63,139,140,.25);
  background: #fff;
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--c-primary-dark);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4.5rem);
  background: var(--gradient-hero);
  overflow: hidden;
  isolation: isolate;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
  z-index: -1;
  animation: float 14s ease-in-out infinite;
}
.hero::before {
  width: 360px; height: 360px;
  background: radial-gradient(circle, var(--c-primary-light), transparent 70%);
  top: -100px; right: -80px;
}
.hero::after {
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--c-accent), transparent 70%);
  bottom: -120px; left: -80px;
  animation-delay: -7s;
}
@keyframes float {
  0%, 100% { transform: translate3d(0,0,0); }
  50% { transform: translate3d(0,-22px,0); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.hero-copy h1 { margin: .9rem 0 1rem; }
.hero-copy h1 .accent {
  background: linear-gradient(120deg, var(--c-primary) 0%, var(--c-primary-light) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-copy p {
  color: var(--c-muted);
  font-size: var(--fs-lg);
  max-width: 56ch;
  margin: 0 0 1.6rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; }

.hero-trust {
  display: flex; flex-wrap: wrap; gap: .55rem;
  margin-top: 1.6rem;
}
.trust-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff;
  border: 1px solid var(--c-line);
  padding: .5rem .85rem;
  border-radius: var(--r-pill);
  font-size: .84rem;
  color: var(--c-text);
  box-shadow: var(--shadow-xs);
}
.trust-pill svg { width: 14px; height: 14px; color: var(--c-primary); }

.hero-visual {
  position: relative;
  aspect-ratio: 5 / 5;
  max-width: 520px;
  margin-left: auto;
  width: 100%;
}
.hero-visual .blob {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  border-radius: 42% 58% 55% 45% / 50% 45% 55% 50%;
  transform: rotate(-6deg);
  z-index: 0;
  box-shadow: var(--shadow-lg);
  animation: morph 12s ease-in-out infinite;
}
@keyframes morph {
  0%,100% { border-radius: 42% 58% 55% 45% / 50% 45% 55% 50%; }
  50% { border-radius: 55% 45% 40% 60% / 45% 55% 45% 55%; }
}
.hero-visual img {
  position: relative; z-index: 1;
  width: 92%; height: 92%;
  margin: 4%;
  object-fit: cover;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}
.hero-badge {
  position: absolute; z-index: 2;
  background: #fff;
  border-radius: var(--r-lg);
  padding: .8rem 1rem;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: .65rem;
  font-size: .86rem;
  font-weight: 500;
}
.hero-badge .dot {
  width: 10px; height: 10px; border-radius: 50%; background: #2bbf7a;
  box-shadow: 0 0 0 4px rgba(43,191,122,.18);
}
.hero-badge.b-top { top: 6%; left: -12px; }
.hero-badge.b-bot { bottom: 8%; right: -8px; }
.hero-badge strong { color: var(--c-primary-dark); }

/* compact hero (non-home pages) */
.hero.compact { padding: clamp(2.2rem, 4vw, 3.5rem) 0 clamp(1.8rem, 3vw, 2.6rem); }
.hero.compact .hero-grid { grid-template-columns: 1.4fr 1fr; }
.hero.compact .hero-visual { aspect-ratio: 4 / 3; max-width: 460px; }

/* ---------- Service page polish ---------- */
body.service-page main {
  background:
    radial-gradient(1100px 420px at 100% -10%, rgba(76,195,199,.12), transparent 64%),
    radial-gradient(1100px 440px at -10% 110%, rgba(175,181,100,.10), transparent 70%),
    linear-gradient(180deg, #f7fbfb 0%, #f1f7f7 100%);
}

body.service-page .hero.compact {
  background:
    radial-gradient(1000px 320px at 92% -10%, rgba(76,195,199,.22), transparent 62%),
    linear-gradient(180deg, #f0f8f8 0%, #e7f3f3 100%);
  border-bottom: 1px solid rgba(63,139,140,.12);
}
body.service-page .hero.compact .hero-copy h1 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.1;
  letter-spacing: -.02em;
}
body.service-page .hero.compact .hero-copy p {
  font-size: clamp(1.04rem, 1.2vw, 1.16rem);
  max-width: 60ch;
  line-height: 1.7;
}
body.service-page .hero.compact .hero-visual { max-width: 520px; }
body.service-page .hero.compact .hero-visual img {
  border-radius: 22px;
  box-shadow: 0 28px 60px -32px rgba(15,111,115,.55);
}

/* Vertical rhythm */
body.service-page .service-stack { gap: clamp(1.6rem, 3.4vw, 2.8rem); }

/* Card: editorial, light, generous whitespace */
body.service-page .card {
  padding: clamp(1.6rem, 3.6vw, 2.8rem);
  border: 1px solid rgba(63,139,140,.12);
  background: #fff;
  box-shadow: 0 18px 40px -32px rgba(14,42,46,.32);
  transition: box-shadow .3s ease, transform .3s ease;
}
body.service-page .card:hover {
  box-shadow: 0 26px 56px -36px rgba(14,42,46,.42);
  transform: translateY(-2px);
}
/* Disable left-bar accent on service pages — too busy */
body.service-page .card::before { display: none; }

/* Card head: stronger heading, no kicker */
body.service-page .card-head {
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(63,139,140,.12);
}
body.service-page .card .card-icon {
  width: 52px; height: 52px;
}
body.service-page .card h2 {
  font-size: clamp(1.4rem, 2.1vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -.018em;
  line-height: 1.2;
  color: var(--c-primary-dark);
  position: relative;
}
body.service-page .card h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-top: .55rem;
  background: linear-gradient(90deg, var(--c-primary), var(--c-primary-light));
  border-radius: 999px;
}

body.service-page .card-head { border-bottom: 0; padding-bottom: 0; }
body.service-page .card .card-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(76,195,199,.22), rgba(63,139,140,.10));
  box-shadow: inset 0 0 0 1px rgba(63,139,140,.16);
}
body.service-page .card .card-icon svg { width: 26px; height: 26px; }

/* Body copy: optimal measure, generous line-height */
body.service-page .card p {
  color: #2a4a4d;
  font-size: clamp(1rem, 1.05vw, 1.075rem);
  line-height: 1.78;
  max-width: 68ch;
  margin: 0 0 1rem;
}
body.service-page .card p:last-child { margin-bottom: 0; }
body.service-page .card p.lead {
  font-size: clamp(1.08rem, 1.18vw, 1.18rem);
  color: #1d3f43;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: -.005em;
}

/* Bullets: airy, two-column on wide */
body.service-page .check-list {
  margin-top: 1rem;
  gap: .75rem 1.6rem;
}
@media (min-width: 860px) {
  body.service-page .check-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
body.service-page .check-list li {
  background: transparent;
  border: 0;
  padding: .1rem 0 .1rem 2rem;
  line-height: 1.65;
  color: #2a4a4d;
}
body.service-page .check-list li::before {
  top: 5px;
  background-color: rgba(63,139,140,.10);
}

/* Section grid: editorial 7/5 split, alternating zigzag */
body.service-page .card .section-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 3vw, 2.8rem);
  align-items: center;
}
body.service-page .card.is-reverse .section-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
}
body.service-page .card.is-reverse .section-grid > .section-grid-text {
  order: 2;
}
body.service-page .card.is-reverse .section-grid > .section-grid-figure {
  order: 1;
}

/* Figure: respect natural aspect ratio (no forced crop), polished frame */
body.service-page .section-grid-figure {
  margin: 0;
  display: grid;
  gap: .75rem;
}
body.service-page .section-grid-figure > img,
body.service-page .card .section-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 16px;
  border: 0;
  box-shadow: none;
  display: block;
}

/* Gallery layouts inside section */
body.service-page .media-grid {
  display: grid;
  gap: .75rem;
  margin-top: 0;
}
body.service-page .media-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(63,139,140,.10);
  box-shadow: 0 16px 30px -22px rgba(14,42,46,.4);
}
body.service-page .m-banner { grid-template-columns: 1fr; }
body.service-page .m-banner img { aspect-ratio: 16/9; }
body.service-page .m-duo { grid-template-columns: repeat(2, 1fr); }
body.service-page .m-duo img { aspect-ratio: 4/3; }
body.service-page .m-trio { grid-template-columns: repeat(2, 1fr); }
body.service-page .m-trio img { aspect-ratio: 1/1; }
body.service-page .m-trio img:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16/9;
}

/* When gallery follows an image+text section */
body.service-page .section-gallery-wrap {
  margin-top: clamp(1.2rem, 2.4vw, 1.8rem);
  padding-top: clamp(1.2rem, 2.4vw, 1.8rem);
  border-top: 1px solid rgba(63,139,140,.10);
}
body.service-page .section-gallery-wrap .media-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
body.service-page .section-gallery-wrap .media-grid img { aspect-ratio: 4/3; }

/* Responsive collapse */
@media (max-width: 860px) {
  body.service-page .card .section-grid,
  body.service-page .card.is-reverse .section-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
  body.service-page .card.is-reverse .section-grid > .section-grid-text { order: 2; }
  body.service-page .card.is-reverse .section-grid > .section-grid-figure { order: 1; }
  body.service-page .m-trio { grid-template-columns: 1fr 1fr; }
  body.service-page .m-trio img:first-child { aspect-ratio: 16/9; }
}

/* ---------- Section system ---------- */
main { padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem); }
.stack { display: grid; gap: clamp(1.25rem, 2.4vw, 2rem); }

/* ---------- Card ---------- */
.card {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  padding: clamp(1.25rem, 2.4vw, 2rem);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; left: 0; top: 28px; bottom: 28px;
  width: 3px;
  background: linear-gradient(180deg, var(--c-primary), var(--c-primary-light));
  border-radius: var(--r-pill);
  opacity: 0;
  transition: opacity .3s ease;
}
.card:hover::before { opacity: 1; }

.card .card-head {
  display: flex; align-items: center; gap: .85rem;
  margin-bottom: 1rem;
}
.card .card-icon {
  width: 46px; height: 46px;
  border-radius: var(--r-md);
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(76,195,199,.20), rgba(63,139,140,.10));
  color: var(--c-primary-dark);
  flex-shrink: 0;
}
.card .card-icon svg { width: 22px; height: 22px; }
.card h2 { margin: 0; font-size: 1.4rem; }
.card p { color: var(--c-text); margin: 0 0 .8rem; }
.card p:last-child { margin-bottom: 0; }

/* split card (with image) */
.card .section-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(1rem, 2vw, 2rem);
  align-items: center;
}
.card .section-grid img {
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

/* check-list */
.check-list {
  list-style: none; padding: 0; margin: .25rem 0 0;
  display: grid; gap: .65rem;
}
.check-list li {
  position: relative;
  padding: .15rem 0 .15rem 2rem;
  color: var(--c-text);
  line-height: 1.55;
}
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 4px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background-color: rgba(63,139,140,.12);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F6F73' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}

/* ---------- Service grid (home) ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.service-tile {
  display: block;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 1.4rem;
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service-tile::after {
  content: "";
  position: absolute; right: -40px; bottom: -40px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76,195,199,.20), transparent 70%);
  transition: transform .4s ease;
}
.service-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(63,139,140,.35);
}
.service-tile:hover::after { transform: scale(1.4); }
.service-tile .s-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: .9rem;
  box-shadow: var(--shadow-sm);
  position: relative; z-index: 1;
}
.service-tile .s-icon svg { width: 24px; height: 24px; }
.service-tile h3 { font-size: 1.08rem; margin: 0 0 .35rem; color: var(--c-ink); position: relative; z-index: 1; }
.service-tile p { color: var(--c-muted); font-size: .92rem; margin: 0; position: relative; z-index: 1; }
.service-tile .arrow {
  display: inline-flex; align-items: center; gap: .35rem;
  margin-top: .8rem;
  color: var(--c-primary-dark);
  font-weight: 600;
  font-size: .88rem;
  position: relative; z-index: 1;
}
.service-tile .arrow svg { transition: transform .25s ease; width: 14px; height: 14px; }
.service-tile:hover .arrow svg { transform: translateX(4px); }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.stat {
  text-align: center;
  background: linear-gradient(160deg, #fff 0%, #F4FAFA 100%);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 1.5rem 1rem;
}
.stat .num {
  font-size: 2rem; font-weight: 700;
  background: linear-gradient(120deg, var(--c-primary) 0%, var(--c-primary-light) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; line-height: 1;
}
.stat .lbl { color: var(--c-muted); font-size: .88rem; margin-top: .35rem; display: block; }

/* ---------- Centres (contact) ---------- */
.centres-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.centre {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 1.4rem;
  display: flex; flex-direction: column; gap: .5rem;
  transition: transform .3s ease, box-shadow .3s ease;
}
.centre:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.centre .c-tag {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
  color: var(--c-primary-dark);
}
.centre .c-tag svg { width: 14px; height: 14px; }
.centre h3 { font-size: 1.05rem; margin: .15rem 0; }
.centre .c-addr { color: var(--c-muted); font-size: .92rem; line-height: 1.55; margin: 0; }
.centre.is-main {
  background: linear-gradient(160deg, var(--c-primary-dark) 0%, var(--c-primary) 100%);
  color: #fff;
  border-color: transparent;
}
.centre.is-main h3, .centre.is-main .c-tag { color: #fff; }
.centre.is-main .c-addr { color: rgba(255,255,255,.86); }
.centre .c-actions {
  display: flex; flex-wrap: wrap; gap: .4rem;
  margin-top: .6rem;
}
.centre .c-actions a {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .86rem; font-weight: 500;
  padding: .4rem .7rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-line);
  color: var(--c-primary-dark);
  background: #fff;
}
.centre.is-main .c-actions a { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.3); }
.centre .c-actions a:hover { border-color: var(--c-primary); }
.centre .c-actions svg { width: 14px; height: 14px; }

/* ---------- Timeline (doctor) ---------- */
.timeline { position: relative; padding-left: 1.5rem; margin: .5rem 0 0; list-style: none; }
.timeline::before {
  content: "";
  position: absolute; left: 8px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--c-primary-light), var(--c-primary-dark), transparent);
  border-radius: 2px;
}
.timeline li {
  position: relative;
  padding: .25rem 0 1rem;
  color: var(--c-text);
  line-height: 1.6;
}
.timeline li::before {
  content: "";
  position: absolute; left: -1.5rem; top: .55rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--c-primary);
  box-shadow: 0 0 0 3px rgba(63,139,140,.12);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li b, .timeline li strong { color: var(--c-primary-dark); }

/* ---------- Gallery ---------- */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.media-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease;
}
.media-grid img:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }

/* ---------- Video card ---------- */
.video-card {
  position: relative;
  margin-top: 1.4rem;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/9;
}
.video-card video.video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
[data-video-overlay] {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  cursor: pointer;
  background:
    radial-gradient(ellipse at center, rgba(14,42,46,.52) 0%, rgba(14,42,46,.72) 100%);
  transition: background .3s ease;
}
[data-video-overlay]:hover {
  background:
    radial-gradient(ellipse at center, rgba(14,42,46,.38) 0%, rgba(14,42,46,.58) 100%);
}
[data-video-overlay] span {
  color: rgba(255,255,255,.88);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .02em;
  text-shadow: 0 2px 8px rgba(0,0,0,.55);
}
.video-play-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  filter: drop-shadow(0 8px 24px rgba(63,139,140,.7));
  transition: transform .25s ease, filter .25s ease;
}
.video-play-btn svg { width: 80px; height: 80px; display: block; }
.video-play-btn:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 12px 32px rgba(63,139,140,.9));
}

/* ---------- CTA banner ---------- */
.cta-banner {
  margin-top: 1rem;
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  background:
    radial-gradient(900px 300px at 100% 0%, rgba(76,195,199,.45), transparent 60%),
    linear-gradient(135deg, var(--c-primary-dark), #093F44);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.2rem;
  align-items: center;
  box-shadow: var(--shadow-lg);
}
.cta-banner h2 { color: #fff; margin: 0 0 .35rem; }
.cta-banner p { color: rgba(255,255,255,.86); margin: 0; }
.cta-banner .btn-primary {
  background: #fff;
  color: var(--c-primary-dark);
  box-shadow: 0 14px 30px -16px rgba(0,0,0,.4);
}
.cta-banner .btn-primary:hover { background: var(--c-accent-soft); color: var(--c-primary-dark); }

/* ---------- Footer ---------- */
.site-footer {
  background:
    radial-gradient(800px 240px at 100% 0%, rgba(63,139,140,.45), transparent 60%),
    linear-gradient(180deg, #0B252A 0%, #061518 100%);
  color: #CFE5E8;
  margin-top: clamp(2rem, 4vw, 4rem);
}
.site-footer .container { padding: clamp(2.4rem, 4vw, 3.5rem) 0 1.5rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr .9fr 1.4fr;
  gap: 2rem;
}
.footer-grid h4 {
  color: #fff;
  font-size: .98rem;
  margin: 0 0 1rem;
  letter-spacing: .04em;
}
.footer-grid a, .footer-grid p {
  color: #B7CDD0;
  font-size: .92rem;
  margin: .35rem 0;
  display: block;
  line-height: 1.6;
}
.footer-grid a:hover { color: var(--c-primary-light); }
.footer-brand p { margin-top: .5rem; max-width: 36ch; }

/* Reach Us column */
.footer-reach .f-line {
  display: inline-flex; align-items: center; gap: .55rem;
  margin: .35rem 0;
}
.footer-reach .f-line svg { width: 15px; height: 15px; color: var(--c-primary-light); flex-shrink: 0; }
.footer-reach .f-line span { color: #DDEDEF; }
.footer-reach .f-line:hover span { color: var(--c-primary-light); }

.f-locations {
  margin-top: 1.1rem;
  padding: 1rem 1.1rem;
  background: rgba(76,195,199,.08);
  border: 1px solid rgba(76,195,199,.18);
  border-radius: var(--r-md);
}
.f-tag {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-primary-light);
  margin-bottom: .4rem;
}
.f-tag svg { width: 13px; height: 13px; }
.f-main p { color: #E3F1F2; margin: 0; font-size: .9rem; line-height: 1.55; }

.f-opds {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem;
  margin-top: .85rem;
  padding-top: .85rem;
  border-top: 1px dashed rgba(207,229,232,.18);
}
.f-opds-label {
  font-size: .78rem;
  color: #93B6BB;
  margin-right: .25rem;
}
.f-chip {
  display: inline-flex; align-items: center;
  padding: .22rem .65rem;
  border-radius: var(--r-pill);
  background: rgba(175,181,100,.14);
  border: 1px solid rgba(175,181,100,.4);
  color: #E7EBC0;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .01em;
}
.f-chip:hover { background: rgba(175,181,100,.22); }

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(207,229,232,.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  color: #8FB1B7; font-size: .84rem;
}

/* ---------- Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.show { opacity: 1; transform: translateY(0); }
.fade-in[data-delay="1"] { transition-delay: .08s; }
.fade-in[data-delay="2"] { transition-delay: .16s; }
.fade-in[data-delay="3"] { transition-delay: .24s; }
.fade-in[data-delay="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid,
  .hero.compact .hero-grid,
  .card .section-grid,
  .footer-grid,
  .cta-banner { grid-template-columns: 1fr; }
  .hero-visual { margin: 0 auto; }
  .nav-toggle { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
  .header-cta { display: none; }
  .primary-nav {
    position: fixed; top: 78px; left: var(--gutter); right: var(--gutter);
    background: #fff;
    border-radius: var(--r-lg);
    border: 1px solid var(--c-line);
    padding: .75rem;
    flex-direction: column; align-items: stretch;
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
    opacity: 0; pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
  }
  .primary-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .primary-nav a { padding: .8rem 1rem; }
  .primary-nav a::after { display: none; }
  .primary-nav a.active { background: rgba(63,139,140,.10); }
  /* mobile dropdown */
  .nav-dropdown { flex-direction: column; align-items: stretch; }
  .nav-dd-btn { padding: .8rem 1rem; width: 100%; justify-content: space-between; }
  .nav-dd-btn::after { display: none; }
  .nav-dd-btn.active { background: rgba(63,139,140,.10); }
  .dd-panel {
    position: static; transform: none;
    box-shadow: none; border: none;
    border-radius: var(--r-md);
    background: rgba(63,139,140,.05);
    width: 100%; padding: .35rem;
    animation: none;
  }
  .dd-panel.open { display: flex; }
  @keyframes ddFadeIn { from {} to {} }
  .footer-bottom { justify-content: center; text-align: center; }

  body.service-page .section-grid > div:last-child {
    position: static;
  }

  body.service-page .check-list,
  body.service-page .media-grid {
    grid-template-columns: 1fr;
  }

  body.service-page .media-grid img:nth-child(3n + 1),
  body.service-page .media-grid img:nth-child(3n + 2),
  body.service-page .media-grid img:nth-child(3n) {
    grid-column: auto;
    aspect-ratio: 4/3;
  }
}

@media (max-width: 560px) {
  .topbar .container { font-size: .8rem; }
  .topbar .tb-meta.hide-sm { display: none; }
  .hero-badge.b-top, .hero-badge.b-bot { display: none; }
  .cta-banner { text-align: center; }
}
