/* ============================================================
   Noble Care Hospital — Premium Design System
   Tokens → components → sections. Light + dark via <html data-theme>.
   ============================================================ */

:root {
  /* Brand palette */
  --primary: #0e7c86;
  --primary-dark: #0a5b62;
  --primary-light: #35a7b1;
  --green: #2f9e6e;
  --red: #e0503a;
  --accent: #f4a259;

  /* Surfaces & text */
  --ink: #142d34;
  --muted: #5b7480;
  --bg: #ffffff;
  --bg-alt: #f4f9fa;
  --surface: #ffffff;
  --line: #dcebee;
  --glass: rgba(255, 255, 255, 0.78);
  --hero-grad: linear-gradient(135deg, #e4f3f4 0%, #f7fbfc 55%, #fdf3e7 100%);

  /* Type */
  --font-head: "Manrope", "Poppins", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, sans-serif;

  /* Shape & depth */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 10px rgba(14, 124, 134, 0.07);
  --shadow: 0 10px 30px rgba(14, 124, 134, 0.10);
  --shadow-lg: 0 22px 55px rgba(10, 60, 66, 0.16);

  /* Spacing scale */
  --space-1: 8px;
  --space-2: 14px;
  --space-3: 22px;
  --space-4: 36px;
  --space-5: 56px;
  --space-6: 92px;
}

[data-theme="dark"] {
  --primary: #2fb3bd;
  --primary-dark: #7fd6dd;
  --primary-light: #35a7b1;
  --green: #4dbd8d;
  --red: #f0705c;
  --accent: #f4a259;
  --ink: #e6f1f3;
  --muted: #9db4bc;
  --bg: #0d1b1e;
  --bg-alt: #12252a;
  --surface: #16292e;
  --line: #234148;
  --glass: rgba(13, 27, 30, 0.78);
  --hero-grad: linear-gradient(135deg, #0f2226 0%, #0d1b1e 55%, #1c2420 100%);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 22px 55px rgba(0, 0, 0, 0.5);
}

/* ---------- Reset & base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  transition: background 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.22; font-weight: 800; letter-spacing: -0.015em; }

img { max-width: 100%; }

a { color: var(--primary); text-decoration: none; }

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

.container { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--primary), var(--green));
  z-index: 300; transition: width 0.08s linear;
}

/* ---------- Topbar ---------- */
.topbar { background: var(--primary-dark); color: #fff; font-size: 0.84rem; padding: 7px 0; position: relative; z-index: 110; }
[data-theme="dark"] .topbar { background: #08272b; }
.topbar-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.topbar a { color: #fff; margin-left: 16px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.header.scrolled {
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 26px rgba(10, 60, 66, 0.12);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 13px 22px; gap: 14px; }
.logo { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.28rem; color: var(--ink); white-space: nowrap; font-family: var(--font-head); }
.logo em { color: var(--primary); font-style: normal; }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 13px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; font-size: 1.4rem; flex: none;
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .logo-mark { color: #06282c; }

.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink); font-weight: 500; font-size: 0.93rem; position: relative; }
.nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--primary); border-radius: 2px; transition: width 0.25s ease;
}
.nav > a:not(.btn):hover::after { width: 100%; }
.nav a:hover { color: var(--primary); }
.nav-close { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  width: 42px; height: 42px; border-radius: 50%; font-size: 1.05rem;
  cursor: pointer; transition: transform 0.2s ease; box-shadow: var(--shadow-sm);
}
.theme-toggle:hover { transform: rotate(20deg); }
.btn-emergency {
  background: var(--red); color: #fff !important; padding: 10px 17px;
  border-radius: 999px; font-weight: 600; font-size: 0.88rem; white-space: nowrap;
  animation: pulse-soft 2.4s ease-in-out infinite;
}
@keyframes pulse-soft {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224, 80, 58, 0.45); }
  50% { box-shadow: 0 0 0 9px rgba(224, 80, 58, 0); }
}
.nav-toggle { display: none; font-size: 1.6rem; background: none; border: none; cursor: pointer; color: var(--ink); }

.drawer-overlay {
  position: fixed; inset: 0; background: rgba(6, 20, 22, 0.5);
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease; z-index: 98;
}
.drawer-overlay.show { opacity: 1; pointer-events: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 999px;
  font-weight: 600; border: 2px solid transparent; cursor: pointer;
  transition: all 0.22s ease; font-size: 0.95rem; font-family: var(--font-body);
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(14, 124, 134, 0.28);
}
[data-theme="dark"] .btn-primary { color: #06282c !important; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(14, 124, 134, 0.4); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
[data-theme="dark"] .btn-outline:hover { color: #06282c; }
.btn-whatsapp { background: #25d366; color: #fff !important; }
.btn-whatsapp:hover { background: #1eb457; transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--primary) !important; white-space: nowrap; }
.btn-light:hover { background: #e8f5f6; }
.btn-block { width: 100%; text-align: center; }
.nav-cta { padding: 10px 20px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100vh - 106px);
  display: flex; align-items: center;
  background: var(--hero-grad);
  padding: 64px 0 96px;
}
.hero-blob { position: absolute; border-radius: 50%; filter: blur(64px); opacity: 0.5; pointer-events: none; will-change: transform; }
.hero-blob.b1 { width: 500px; height: 500px; background: rgba(14, 124, 134, 0.18); top: -150px; right: -130px; }
.hero-blob.b2 { width: 400px; height: 400px; background: rgba(244, 162, 89, 0.18); bottom: -130px; left: -110px; }
.hero-blob.b3 { width: 260px; height: 260px; background: rgba(47, 158, 110, 0.14); top: 30%; left: 42%; }

.hero-decor { position: absolute; inset: 0; pointer-events: none; }
.float-shape {
  position: absolute; color: var(--primary); opacity: 0.13; font-size: 2.2rem;
  animation: floaty 7s ease-in-out infinite;
}
.float-shape.s1 { top: 16%; left: 6%; font-size: 2.8rem; }
.float-shape.s2 { top: 64%; left: 12%; animation-delay: 1.6s; color: var(--red); }
.float-shape.s3 { top: 24%; right: 9%; animation-delay: 3s; font-size: 3.2rem; }
.float-shape.s4 { bottom: 14%; right: 20%; animation-delay: 4.4s; color: var(--green); }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-22px) rotate(8deg); }
}

.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; width: 100%; }
.eyebrow {
  color: var(--primary); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.11em; font-size: 0.78rem; margin-bottom: 13px;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero-sub { color: var(--muted); font-size: 1.08rem; margin-bottom: 28px; max-width: 36rem; }
.hero-actions { display: flex; gap: 13px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.chip {
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: 7px 16px; font-size: 0.83rem; font-weight: 500;
}

/* Glass quick-info card */
.hero-glass {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px 22px; box-shadow: var(--shadow); max-width: 560px;
}
.hero-glass > div { text-align: center; padding: 4px 8px; }
.hero-glass > div + div { border-left: 1px solid var(--line); }
.hero-glass strong { display: block; font-family: var(--font-head); font-size: 1.02rem; color: var(--primary); }
.hero-glass span { font-size: 0.78rem; color: var(--muted); }

.hero-card-stack { display: grid; gap: 16px; }
.hero-card {
  background: var(--surface); border-radius: var(--radius); padding: 20px 24px;
  box-shadow: var(--shadow); border-left: 4px solid var(--primary);
  transition: transform 0.25s ease;
}
.hero-card:hover { transform: translateX(6px); }
.hero-card h3 { font-size: 1rem; margin-bottom: 4px; font-weight: 700; }
.hero-card p { color: var(--muted); font-size: 0.9rem; }

.scroll-indicator {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 3; color: var(--muted); font-size: 1.4rem; opacity: 0.8;
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

/* Entrance & reveal animations */
.fade-up { opacity: 0; transform: translateY(26px); animation: fadeUp 0.8s ease forwards; }
.fade-up.d1 { animation-delay: 0.12s; }
.fade-up.d2 { animation-delay: 0.24s; }
.fade-up.d3 { animation-delay: 0.36s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Trust / counters ---------- */
.stats { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; padding: 46px 0; }
[data-theme="dark"] .stats { background: linear-gradient(135deg, #0a3a3f, #10565d); }
.stats-inner { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; text-align: center; }
.stat-icon { font-size: 1.5rem; display: block; margin-bottom: 6px; opacity: 0.9; }
.stat strong { display: block; font-size: 2.05rem; font-family: var(--font-head); font-weight: 800; }
.stat span { opacity: 0.85; font-size: 0.87rem; }

/* ---------- Sections ---------- */
.section { padding: var(--space-6) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 42rem; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); margin-bottom: 12px; }
.section-head p { color: var(--muted); }

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center; }
.about-media {
  min-height: 340px; border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.25), transparent 60%),
    linear-gradient(145deg, var(--primary), var(--primary-dark));
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
}
[data-theme="dark"] .about-media { background: linear-gradient(145deg, #10565d, #0a3a3f); }
.about-badge {
  width: 112px; height: 112px; border-radius: 32px; background: #fff;
  color: #0e7c86; font-size: 3.4rem; display: flex;
  align-items: center; justify-content: center; box-shadow: var(--shadow);
}
.about-text h2 { font-size: clamp(1.75rem, 3vw, 2.35rem); margin-bottom: 14px; }
.about-text > p { color: var(--muted); margin-bottom: 18px; }
.checklist { list-style: none; margin-bottom: 26px; }
.checklist li { padding-left: 32px; position: relative; margin-bottom: 10px; }
.checklist li::before {
  content: "✔"; position: absolute; left: 0; top: 1px;
  width: 21px; height: 21px; border-radius: 50%;
  background: rgba(47, 158, 110, 0.14); color: var(--green);
  font-size: 0.72rem; display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* Vision / Mission / Values */
.vmv-grid { margin-top: var(--space-5); }
.vmv-card {
  background: var(--surface); border: 1px solid var(--line);
  border-top: 4px solid var(--primary); border-radius: var(--radius); padding: 32px 28px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.vmv-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.vmv-card h3 { font-size: 1.1rem; margin: 12px 0 8px; font-weight: 700; }
.vmv-card p { color: var(--muted); font-size: 0.93rem; }
.vmv-icon { font-size: 1.9rem; }

/* Timeline */
.timeline { max-width: 720px; margin: var(--space-5) auto 0; position: relative; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 3px;
  background: linear-gradient(var(--primary), var(--green)); border-radius: 3px;
}
.timeline-item { position: relative; padding-bottom: 30px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -32px; top: 6px; width: 15px; height: 15px;
  background: var(--surface); border: 3px solid var(--primary); border-radius: 50%;
}
.timeline-item h3 { font-size: 1.02rem; margin-bottom: 4px; font-weight: 700; }
.timeline-item p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card h3 { font-size: 1.05rem; margin-bottom: 8px; font-weight: 700; }
.card p { color: var(--muted); font-size: 0.92rem; }
.card-icon {
  width: 56px; height: 56px; border-radius: 17px;
  background: linear-gradient(145deg, var(--bg-alt), var(--surface));
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 16px;
  transition: transform 0.25s ease;
}
.card:hover .card-icon { transform: scale(1.1) rotate(-4deg); }

/* Departments */
.dept-card { text-align: left; padding: 24px 20px; display: flex; flex-direction: column; }
.dept-card .card-icon { width: 50px; height: 50px; font-size: 1.35rem; margin-bottom: 12px; }
.dept-card h3 { font-size: 0.98rem; }
.dept-card p { font-size: 0.86rem; margin-bottom: 12px; flex: 1; }
.dept-count {
  align-self: flex-start; margin-bottom: 10px;
  background: rgba(47, 158, 110, 0.12); color: var(--green);
  font-size: 0.72rem; font-weight: 600; padding: 3px 11px; border-radius: 999px;
}
.dept-link { font-size: 0.85rem; font-weight: 600; }
.dept-link:hover { text-decoration: underline; }

/* Services & facilities */
.facility {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 18px; font-weight: 500; font-size: 0.95rem;
  display: flex; align-items: center; gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.facility:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.facility span { color: var(--ink); }

/* Insurance strip */
.insurance-strip { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; padding: 48px 0; }
[data-theme="dark"] .insurance-strip { background: linear-gradient(135deg, #0a3a3f, #10565d); }
.insurance-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.insurance-inner h2 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); margin-bottom: 8px; }
.insurance-inner p { opacity: 0.92; max-width: 44rem; font-size: 0.95rem; margin-bottom: 14px; }
.scheme-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.scheme-chips .chip { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.3); color: #fff; }

/* ---------- Doctors ---------- */
.doctor-tools { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.doctor-search {
  padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); min-width: 250px; font-family: inherit;
  box-shadow: var(--shadow-sm);
}
.doctor-search:focus { outline: 2px solid var(--primary); border-color: transparent; }
.filter-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.filter-btn {
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  padding: 9px 18px; border-radius: 999px; cursor: pointer; font-family: inherit;
  font-size: 0.86rem; font-weight: 500; transition: all 0.2s ease;
}
.filter-btn.active, .filter-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
[data-theme="dark"] .filter-btn.active, [data-theme="dark"] .filter-btn:hover { color: #06282c; }

.doctor-card { text-align: center; display: flex; flex-direction: column; position: relative; }
.doctor-avatar {
  width: 92px; height: 92px; margin: 0 auto 14px; border-radius: 50%;
  background: linear-gradient(145deg, var(--bg-alt), var(--surface));
  border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 2.6rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.doctor-card:hover .doctor-avatar { transform: scale(1.06); border-color: var(--primary); }
.doctor-role {
  display: inline-block; align-self: center;
  background: rgba(14, 124, 134, 0.1); color: var(--primary);
  font-weight: 600; font-size: 0.78rem; margin-bottom: 10px;
  padding: 4px 14px; border-radius: 999px;
}
[data-theme="dark"] .doctor-role { background: rgba(47, 179, 189, 0.15); }
.doctor-meta { color: var(--muted); font-size: 0.83rem; margin: 8px 0 14px; line-height: 1.7; }
.doctor-card .btn { margin-top: auto; }

/* Packages */
.package-card { display: flex; flex-direction: column; }
.package-list { list-style: none; margin: 4px 0 20px; flex: 1; }
.package-list li { padding-left: 26px; position: relative; margin-bottom: 8px; color: var(--muted); font-size: 0.92rem; }
.package-list li::before { content: "✔"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* ---------- Gallery + lightbox ---------- */
.gallery-filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 30px; }
.gallery-tile {
  min-height: 175px; border-radius: var(--radius);
  background: linear-gradient(145deg, var(--bg-alt), var(--surface));
  border: 1px dashed var(--line); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: var(--muted); font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gallery-tile:hover { transform: scale(1.03); box-shadow: var(--shadow); }
.gallery-tile span { font-size: 2.3rem; }

.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(6, 20, 22, 0.88);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox-content {
  background: var(--surface); color: var(--ink); border-radius: var(--radius-lg);
  padding: 60px 40px; text-align: center; max-width: 520px; width: 100%;
  position: relative; box-shadow: var(--shadow-lg);
}
.lightbox-content span { font-size: 4rem; display: block; margin-bottom: 14px; }
.lightbox-close {
  position: absolute; top: 12px; right: 16px; background: none; border: none;
  font-size: 1.6rem; cursor: pointer; color: var(--muted);
}

/* ---------- Reviews ---------- */
.reviews-cta {
  text-align: center; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 48px 32px; max-width: 640px; margin: 0 auto;
  box-shadow: var(--shadow-sm);
}
.reviews-cta .stars { font-size: 1.5rem; letter-spacing: 4px; margin-bottom: 12px; }
.reviews-cta p { color: var(--muted); margin-bottom: 20px; }

/* ---------- Blog ---------- */
.blog-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.blog-cover {
  height: 150px; display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem; background: linear-gradient(145deg, var(--bg-alt), var(--surface));
  border-bottom: 1px solid var(--line);
}
.blog-body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.blog-tag {
  align-self: flex-start; background: var(--bg-alt); border: 1px solid var(--line);
  color: var(--primary); font-size: 0.74rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px;
}
.blog-body h3 { margin-bottom: 8px; }
.blog-body p { flex: 1; }
.blog-body .dept-link { margin-top: 14px; }

/* Article pages */
.article-container { max-width: 760px; }
.article-container h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 14px 0 12px; }
.article-meta { color: var(--muted); font-size: 0.88rem; margin-bottom: 30px; }
.article-container h2 { font-size: 1.3rem; margin: 30px 0 12px; }
.article-container p, .article-container li { color: var(--muted); margin-bottom: 12px; }
.article-container ul { margin: 0 0 16px 22px; }
.article-note {
  background: var(--bg-alt); border-left: 4px solid var(--accent);
  padding: 16px 20px; border-radius: var(--radius-sm); font-size: 0.9rem; margin-top: 34px;
}

/* ---------- FAQ ---------- */
.faq-container { max-width: 820px; }
.faq-group-title { font-size: 1.05rem; font-weight: 700; color: var(--primary); margin: 30px 0 14px; font-family: var(--font-head); }
.faq-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 12px; overflow: hidden; transition: box-shadow 0.2s ease;
}
.faq-item[open] { box-shadow: var(--shadow-sm); }
.faq-item summary {
  cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none;
  position: relative; padding-right: 44px; font-size: 0.96rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  color: var(--primary); font-size: 1.3rem; font-weight: 700; transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item[open] summary { color: var(--primary-dark); }
.faq-item p { padding: 0 20px 18px; color: var(--muted); font-size: 0.94rem; }

/* ---------- Appointment ---------- */
.appointment-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.appointment-text h2 { font-size: clamp(1.75rem, 3vw, 2.35rem); margin-bottom: 14px; }
.appointment-text p { color: var(--muted); margin-bottom: 22px; }
.contact-quick { display: flex; gap: 14px; flex-wrap: wrap; }
.appointment-form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px; box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.appointment-form input,
.appointment-form select,
.appointment-form textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line);
  border-radius: 12px; font-family: inherit; font-size: 0.95rem;
  color: var(--ink); background: var(--bg-alt);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.appointment-form textarea { margin-bottom: 14px; resize: vertical; }
.appointment-form input:focus,
.appointment-form select:focus,
.appointment-form textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 124, 134, 0.15);
}
.form-status { margin-top: 12px; font-size: 0.9rem; color: var(--primary-dark); font-weight: 500; }

/* ---------- Contact ---------- */
.contact-grid .card { text-align: center; }
.contact-grid .card-icon { margin: 0 auto 16px; }
.map-wrap {
  margin-top: 36px; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.map-wrap iframe { display: block; width: 100%; height: 400px; border: 0; }
.map-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 22px; }

/* ---------- Footer ---------- */
.footer { background: #122a31; color: #cfe0e6; }
[data-theme="dark"] .footer { background: #091518; }
.footer-inner {
  display: grid; grid-template-columns: 1.3fr 0.8fr 0.9fr 1fr;
  gap: 36px; padding: 60px 22px 38px;
}
.footer h4 { color: #fff; margin-bottom: 14px; font-size: 1rem; font-weight: 700; }
.footer a { display: block; color: #cfe0e6; margin-bottom: 8px; font-size: 0.92rem; }
.footer a:hover { color: #fff; }
.footer p { font-size: 0.92rem; margin-bottom: 8px; }
.logo-footer { color: #fff; margin-bottom: 12px; display: inline-flex; }
.logo-footer em { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 16px 0; text-align: center; font-size: 0.85rem;
}
.footer-bottom a { display: inline; color: #cfe0e6; }

/* ---------- Floating buttons ---------- */
.fab-stack {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.fab {
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; color: #fff; box-shadow: 0 10px 24px rgba(0,0,0,0.28);
  transition: transform 0.2s ease; border: none; cursor: pointer;
}
.fab:hover { transform: scale(1.1); }
.fab-call { background: var(--accent); }
.fab-map { background: #4285f4; }
.fab-top { background: var(--primary); opacity: 0; pointer-events: none; transition: opacity 0.3s ease, transform 0.2s ease; }
.fab-top.show { opacity: 1; pointer-events: auto; }

/* ---------- Legal pages ---------- */
.legal-container { max-width: 780px; }
.legal-container h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 26px; }
.legal-container h2 { font-size: 1.25rem; margin: 30px 0 12px; }
.legal-container p { color: var(--muted); margin-bottom: 12px; }
.legal-container ul { margin: 0 0 16px 20px; color: var(--muted); }
.legal-container li { margin-bottom: 10px; }
.legal-updated { font-size: 0.85rem; margin-top: 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .stats-inner { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .hero-inner, .about-inner, .appointment-inner { grid-template-columns: 1fr; }
  .hero { min-height: 0; padding: 70px 0 96px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .insurance-inner { flex-direction: column; align-items: flex-start; }

  /* Drawer navigation */
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 99;
    width: min(300px, 84vw);
    background: var(--surface);
    flex-direction: column; align-items: flex-start;
    padding: 76px 28px 28px; gap: 20px;
    box-shadow: var(--shadow-lg);
    transform: translateX(105%); transition: transform 0.32s ease;
  }
  .nav.open { transform: translateX(0); }
  .nav a { font-size: 1.02rem; }
  .nav-close {
    display: block; position: absolute; top: 18px; right: 20px;
    background: none; border: none; font-size: 1.5rem; color: var(--muted); cursor: pointer;
  }
  .nav-toggle { display: block; }
}

@media (max-width: 640px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .topbar-inner { justify-content: center; }
  .footer-inner { grid-template-columns: 1fr; }
  .map-wrap iframe { height: 300px; }
  .btn-emergency { display: none; }
  .hero-glass { grid-template-columns: 1fr; gap: 10px; }
  .hero-glass > div + div { border-left: 0; border-top: 1px solid var(--line); padding-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal, .fade-up { opacity: 1; transform: none; }
}
