/* ==========================================================
   Consultants Clinic — Shared Stylesheet
   ========================================================== */

:root {
  --teal-950: #06322f;
  --teal-900: #0b4743;
  --teal-700: #0f766e;
  --teal-600: #0e8f83;
  --teal-500: #14a89b;
  --teal-100: #d7f2ee;
  --teal-50: #eefaf8;
  --amber-500: #f0a531;
  --amber-100: #fdeccc;
  --ink: #10211f;
  --ink-soft: #4a5c5a;
  --line: #dfeae8;
  --bg: #f7fbfa;
  --white: #ffffff;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-sm: 0 2px 10px rgba(11, 71, 67, 0.06);
  --shadow-md: 0 14px 34px rgba(11, 71, 67, 0.10);
  --shadow-lg: 0 28px 60px rgba(11, 71, 67, 0.16);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { 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.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-700);
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  padding: 7px 16px;
  border-radius: 999px;
}

.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--amber-500);
}

.eyebrow.on-dark {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--amber-500);
}

.section-head { max-width: 660px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); margin: 18px 0 14px; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

.section-pad { padding: 100px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.btn svg { width: 16px; height: 16px; }

.btn-primary {
  background: var(--teal-700);
  color: var(--white);
  box-shadow: 0 12px 26px rgba(15, 118, 110, 0.28);
}
.btn-primary:hover { background: var(--teal-900); transform: translateY(-2px); box-shadow: 0 18px 34px rgba(15, 118, 110, 0.34); }

.btn-ghost {
  background: var(--white);
  color: var(--teal-900);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--teal-600); color: var(--teal-700); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-light {
  background: var(--amber-500);
  color: var(--teal-950);
}
.btn-light:hover { background: #ffb84d; transform: translateY(-2px); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); transform: translateY(-2px); }

.btn-block { width: 100%; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--teal-950);
  color: #cfe8e5;
  font-size: 0.83rem;
}
.topbar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}
.topbar-group { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.topbar-item { display: inline-flex; align-items: center; gap: 8px; }
.topbar-item svg { width: 15px; height: 15px; stroke: var(--amber-500); }
.topbar strong { color: var(--white); font-weight: 600; }

/* ---------- Header ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}
header.site-header.scrolled { box-shadow: var(--shadow-md); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--teal-600), var(--teal-900));
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.32);
  flex: none;
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-text .name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--teal-950);
  line-height: 1.1;
}
.brand-text .tag {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-600);
  font-weight: 600;
}

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--amber-500);
  border-radius: 2px;
  transition: width 0.25s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--teal-700); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  place-items: center;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--teal-900);
  border-radius: 2px;
  position: relative;
  transition: background 0.2s ease;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px; height: 2px;
  background: var(--teal-900);
  border-radius: 2px;
  transition: transform 0.25s ease, top 0.25s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.open span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 96px;
  background:
    radial-gradient(900px 460px at 88% -10%, rgba(20, 168, 155, 0.14), transparent 62%),
    radial-gradient(700px 420px at -8% 108%, rgba(240, 165, 49, 0.12), transparent 60%),
    linear-gradient(180deg, var(--teal-50), var(--bg));
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 64px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.15rem);
  color: var(--teal-950);
  margin: 22px 0 20px;
}
.hero h1 .accent {
  color: var(--teal-600);
  font-style: italic;
  position: relative;
  white-space: nowrap;
}
.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  height: 10px;
  background: rgba(240, 165, 49, 0.32);
  border-radius: 6px;
  z-index: -1;
}

.hero p.lead {
  font-size: 1.16rem;
  color: var(--ink-soft);
  max-width: 540px;
  margin-bottom: 34px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 42px; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--teal-900);
}
.hero-points .check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--teal-100);
  display: grid;
  place-items: center;
  flex: none;
}
.hero-points .check svg { width: 12px; height: 12px; stroke: var(--teal-700); }

/* Hero visual */
.hero-visual { position: relative; }

.hero-card-main {
  background: var(--white);
  border-radius: 28px;
  padding: 30px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  position: relative;
  z-index: 2;
}
.hero-photo {
  border-radius: 20px;
  height: 260px;
  background:
    linear-gradient(160deg, rgba(15, 118, 110, 0.86), rgba(11, 71, 67, 0.92)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0 12px, transparent 12px 24px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  color: var(--white);
  overflow: hidden;
  position: relative;
}
.hero-photo .pulse-ring {
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.22);
}
.hero-photo .pulse-ring::after {
  content: "";
  position: absolute;
  inset: 34px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.16);
}
.hero-photo h3 { font-size: 1.32rem; margin-bottom: 6px; }
.hero-photo p { font-size: 0.9rem; opacity: 0.85; }

.hero-card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
.mini-stat {
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-radius: 16px;
  padding: 16px 18px;
}
.mini-stat .num {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--teal-700);
  line-height: 1.1;
}
.mini-stat .lbl { font-size: 0.82rem; color: var(--ink-soft); }

.float-badge {
  position: absolute;
  z-index: 3;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  padding: 13px 18px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.float-badge .icon {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex: none;
}
.float-badge .icon svg { width: 19px; height: 19px; }
.float-badge .title { display: block; font-size: 0.83rem; font-weight: 600; color: var(--ink); line-height: 1.25; }
.float-badge .sub { display: block; font-size: 0.72rem; color: var(--ink-soft); }

.badge-open { top: -22px; left: -26px; animation: floaty 5s ease-in-out infinite; }
.badge-open .icon { background: var(--amber-100); }
.badge-open .icon svg { stroke: #b57811; }

.badge-emergency { bottom: -26px; right: -18px; animation: floaty 6s ease-in-out infinite reverse; }
.badge-emergency .icon { background: var(--teal-100); }
.badge-emergency .icon svg { stroke: var(--teal-700); }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0 84px;
  background:
    radial-gradient(760px 380px at 88% -20%, rgba(20, 168, 155, 0.22), transparent 62%),
    linear-gradient(155deg, var(--teal-950), var(--teal-900));
  color: var(--white);
  text-align: center;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 {
  font-size: clamp(2.25rem, 4.6vw, 3.45rem);
  margin: 20px 0 16px;
}
.page-hero .lead {
  color: #c2ded9;
  font-size: 1.11rem;
  max-width: 640px;
  margin: 0 auto 30px;
}
.page-hero .hero-actions { justify-content: center; margin-bottom: 0; }

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  color: #9fc4bf;
}
.breadcrumb a { color: var(--amber-500); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb svg { width: 13px; height: 13px; stroke: #7ea9a3; }

/* ---------- Stats strip ---------- */
.stats-strip {
  background: var(--teal-950);
  color: var(--white);
  padding: 40px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat .num {
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 700;
  color: var(--amber-500);
  line-height: 1.1;
}
.stat .lbl { color: #b6d7d3; font-size: 0.92rem; margin-top: 4px; }
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, 0.12); }

/* ---------- Specialty cards ---------- */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.spec-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.spec-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal-600), var(--teal-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.spec-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal-100);
}
.spec-card:hover::before { transform: scaleX(1); }

.spec-icon {
  width: 60px; height: 60px;
  border-radius: 18px;
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.spec-icon svg { width: 30px; height: 30px; stroke: var(--teal-700); }
.spec-card:hover .spec-icon { background: var(--teal-700); border-color: var(--teal-700); }
.spec-card:hover .spec-icon svg { stroke: var(--white); }

.spec-card h3 { font-size: 1.32rem; color: var(--teal-950); margin-bottom: 10px; }
.spec-card > p { color: var(--ink-soft); font-size: 0.945rem; margin-bottom: 18px; }

.spec-list { margin-bottom: 24px; }
.spec-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.875rem;
  color: var(--ink-soft);
  padding: 5px 0;
}
.spec-list li svg { width: 15px; height: 15px; stroke: var(--teal-500); flex: none; }

.spec-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal-700);
}
.spec-link svg { width: 15px; height: 15px; stroke: var(--teal-700); transition: transform 0.25s ease; }
.spec-card:hover .spec-link svg { transform: translateX(5px); }

/* Dark variant */
.spec-card.dark {
  background: linear-gradient(155deg, var(--teal-900), var(--teal-950));
  border-color: var(--teal-900);
}
.spec-card.dark h3 { color: var(--white); }
.spec-card.dark > p { color: #b6d7d3; }
.spec-card.dark .spec-icon { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.18); }
.spec-card.dark .spec-icon svg { stroke: var(--white); }
.spec-card.dark:hover .spec-icon { background: var(--amber-500); border-color: var(--amber-500); }
.spec-card.dark:hover .spec-icon svg { stroke: var(--teal-950); }
.spec-card.dark .spec-list li { color: #cfe8e5; }
.spec-card.dark .spec-list li svg { stroke: var(--amber-500); }
.spec-card.dark .spec-link { color: var(--amber-500); }
.spec-card.dark .spec-link svg { stroke: var(--amber-500); }

/* ---------- Feature list ---------- */
.feature-list { display: grid; gap: 22px; margin-top: 36px; }
.feature {
  display: flex;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.feature:hover { transform: translateX(6px); box-shadow: var(--shadow-md); }
.feature .fi {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--teal-700);
  display: grid;
  place-items: center;
  flex: none;
}
.feature .fi svg { width: 22px; height: 22px; stroke: var(--white); }
.feature h4 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 600; margin-bottom: 3px; }
.feature p { font-size: 0.895rem; color: var(--ink-soft); }

/* ---------- Why us (home) ---------- */
.why-us {
  padding: 100px 0;
  background: var(--white);
  border-block: 1px solid var(--line);
}
.why-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 66px;
  align-items: center;
}
.why-visual { position: relative; }

.why-photo {
  border-radius: 26px;
  height: 480px;
  background:
    linear-gradient(165deg, rgba(20, 168, 155, 0.92), rgba(6, 50, 47, 0.94)),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.05) 0 16px, transparent 16px 32px);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  padding: 40px;
}
.why-photo .cross {
  width: 96px; height: 96px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: grid;
  place-items: center;
  margin-bottom: 26px;
}
.why-photo .cross svg { width: 52px; height: 52px; }
.why-photo h3 { font-size: 1.75rem; margin-bottom: 10px; }
.why-photo p { opacity: 0.88; font-size: 0.97rem; max-width: 320px; }

.why-float {
  position: absolute;
  bottom: 30px;
  right: -22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  padding: 18px 22px;
  display: flex;
  gap: 13px;
  align-items: center;
  max-width: 250px;
}
.why-float .ring {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--amber-100);
  display: grid;
  place-items: center;
  flex: none;
}
.why-float .ring svg { width: 22px; height: 22px; stroke: #b57811; }
.why-float .t { display: block; font-weight: 600; font-size: 0.9rem; }
.why-float .s { display: block; font-size: 0.78rem; color: var(--ink-soft); }

/* ---------- Doctors ---------- */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.doc-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.doc-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }

.doc-photo {
  height: 230px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.doc-photo .initials {
  font-family: var(--font-display);
  font-size: 3.1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.02em;
}
.doc-photo .dept-chip {
  position: absolute;
  bottom: 14px; left: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--teal-900);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.doc-photo.t1 { background: linear-gradient(150deg, #0f766e, #06322f); }
.doc-photo.t2 { background: linear-gradient(150deg, #14a89b, #0b4743); }
.doc-photo.t3 { background: linear-gradient(150deg, #b57811, #7c4a06); }
.doc-photo.t4 { background: linear-gradient(150deg, #2c7a70, #123f3b); }

.doc-body { padding: 22px 24px 26px; text-align: center; }
.doc-body h3 { font-size: 1.16rem; color: var(--teal-950); }
.doc-body .role { color: var(--teal-600); font-size: 0.86rem; font-weight: 600; margin: 4px 0 10px; }
.doc-body p { font-size: 0.865rem; color: var(--ink-soft); margin-bottom: 16px; }
.doc-body .qual {
  display: inline-flex;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 999px;
}

/* ---------- Detail pages: overview ---------- */
.overview-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: start;
}

.overview-copy h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.55rem);
  color: var(--teal-950);
  margin: 16px 0 18px;
}
.overview-copy p {
  color: var(--ink-soft);
  font-size: 1.03rem;
  margin-bottom: 16px;
}

.overview-copy .check-list { margin-top: 22px; display: grid; gap: 12px; }
.overview-copy .check-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.95rem;
  color: var(--ink);
}
.overview-copy .check-list svg {
  width: 19px; height: 19px;
  stroke: var(--teal-600);
  flex: none;
  margin-top: 3px;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.info-card .info-head {
  background: linear-gradient(140deg, var(--teal-700), var(--teal-900));
  color: var(--white);
  padding: 22px 26px;
}
.info-card .info-head h3 { font-size: 1.25rem; }
.info-card .info-head p { font-size: 0.85rem; opacity: 0.85; margin-top: 3px; }
.info-card .info-body { padding: 26px; display: grid; gap: 16px; }
.info-row {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.info-row:last-child { border-bottom: none; padding-bottom: 0; }
.info-row .ii {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  display: grid;
  place-items: center;
  flex: none;
}
.info-row .ii svg { width: 19px; height: 19px; stroke: var(--teal-700); }
.info-row .lbl { display: block; font-size: 0.74rem; letter-spacing: 0.11em; text-transform: uppercase; color: var(--teal-600); font-weight: 600; }
.info-row .val { display: block; font-size: 0.925rem; color: var(--ink); font-weight: 500; }

/* ---------- Detail pages: conditions / services ---------- */
.chip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.chip {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 17px 20px;
  font-size: 0.935rem;
  font-weight: 500;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.chip:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-100);
}
.chip .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--amber-500);
  flex: none;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.service-item {
  display: flex;
  gap: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.service-item .si {
  width: 50px; height: 50px;
  border-radius: 15px;
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  display: grid;
  place-items: center;
  flex: none;
}
.service-item .si svg { width: 24px; height: 24px; stroke: var(--teal-700); }
.service-item h4 { font-family: var(--font-body); font-size: 1.045rem; font-weight: 600; margin-bottom: 5px; }
.service-item p { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- Detail pages: when to visit ---------- */
.when-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.when-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 34px;
}
.when-panel li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.955rem;
}
.when-panel li:last-child { border-bottom: none; }
.when-panel li svg {
  width: 19px; height: 19px;
  stroke: var(--amber-500);
  flex: none;
  margin-top: 3px;
}

/* ---------- CTA banner ---------- */
.cta-inner {
  background:
    radial-gradient(600px 300px at 85% 10%, rgba(240, 165, 49, 0.22), transparent 60%),
    linear-gradient(120deg, var(--teal-700), var(--teal-950));
  border-radius: 28px;
  padding: 58px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  color: var(--white);
  box-shadow: var(--shadow-lg);
}
.cta-inner h2 { font-size: clamp(1.75rem, 3.2vw, 2.35rem); margin-bottom: 10px; }
.cta-inner p { color: #c2ded9; max-width: 480px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Testimonials ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.testi-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testi-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.testi-card .quote-mark {
  font-family: var(--font-display);
  font-size: 4.4rem;
  line-height: 0.8;
  color: var(--teal-100);
  position: absolute;
  top: 26px; right: 28px;
}
.stars { display: flex; gap: 3px; margin-bottom: 16px; }
.stars svg { width: 17px; height: 17px; fill: var(--amber-500); }
.testi-card > p { font-size: 0.955rem; color: var(--ink-soft); font-style: italic; margin-bottom: 22px; }
.testi-person { display: flex; align-items: center; gap: 13px; }
.testi-person .avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--teal-500), var(--teal-900));
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.92rem;
  flex: none;
}
.testi-person .nm { display: block; font-weight: 600; font-size: 0.92rem; }
.testi-person .sp { display: block; font-size: 0.79rem; color: var(--teal-600); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; margin-inline: auto; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  margin-bottom: 14px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.faq-item.open { box-shadow: var(--shadow-md); border-color: var(--teal-100); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 1.015rem;
  font-weight: 600;
  color: var(--teal-950);
  text-align: left;
  padding: 21px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  cursor: pointer;
}
.faq-q .plus {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  display: grid;
  place-items: center;
  flex: none;
  transition: transform 0.3s ease, background 0.3s ease;
}
.faq-q .plus svg { width: 14px; height: 14px; stroke: var(--teal-700); }
.faq-item.open .plus { transform: rotate(45deg); background: var(--teal-700); }
.faq-item.open .plus svg { stroke: var(--white); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-a p { padding: 0 24px 22px; color: var(--ink-soft); font-size: 0.945rem; }

/* ---------- Appointment form ---------- */
.appt-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 60px;
  align-items: start;
}

.appt-contact { display: grid; gap: 16px; margin-bottom: 34px; }
.contact-line {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 15px 19px;
}
.contact-line .ci {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--amber-100);
  display: grid;
  place-items: center;
  flex: none;
}
.contact-line .ci svg { width: 20px; height: 20px; stroke: #b57811; }
.contact-line .lbl { display: block; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.11em; color: var(--teal-600); font-weight: 600; }
.contact-line .val { display: block; font-size: 1.01rem; font-weight: 600; color: var(--teal-950); }

.hours { border-top: 1px solid var(--line); padding-top: 22px; }
.hours h4 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 12px;
  font-weight: 600;
}
.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.93rem;
  color: var(--ink-soft);
  padding: 6px 0;
}
.hours-row strong { color: var(--teal-900); font-weight: 600; }

.appt-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.appt-form h3 { font-size: 1.55rem; color: var(--teal-950); margin-bottom: 6px; }
.appt-form .sub { color: var(--ink-soft); font-size: 0.93rem; margin-bottom: 26px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--teal-900); }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 0.93rem;
  color: var(--ink);
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal-600);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(20, 168, 155, 0.14);
}

.form-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.79rem;
  color: var(--ink-soft);
  margin-top: 14px;
}
.form-note svg { width: 14px; height: 14px; stroke: var(--teal-600); flex: none; }

.form-success {
  display: none;
  background: var(--teal-50);
  border: 1.5px solid var(--teal-100);
  color: var(--teal-900);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 18px;
  align-items: center;
  gap: 10px;
}
.form-success.show { display: flex; }
.form-success svg { width: 20px; height: 20px; stroke: var(--teal-700); flex: none; }

/* ---------- About page bits ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.value-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.value-card .vi {
  width: 54px; height: 54px;
  border-radius: 16px;
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.value-card .vi svg { width: 26px; height: 26px; stroke: var(--teal-700); }
.value-card h3 { font-size: 1.22rem; color: var(--teal-950); margin-bottom: 9px; }
.value-card p { font-size: 0.925rem; color: var(--ink-soft); }

.timeline { display: grid; gap: 0; }
.timeline-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-item .year {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--teal-600);
}
.timeline-item h4 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; margin-bottom: 5px; }
.timeline-item p { color: var(--ink-soft); font-size: 0.945rem; }

/* ---------- Map placeholder ---------- */
.map-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background:
    repeating-linear-gradient(0deg, rgba(15,118,110,0.06) 0 34px, transparent 34px 70px),
    repeating-linear-gradient(90deg, rgba(15,118,110,0.06) 0 34px, transparent 34px 70px),
    var(--teal-50);
  min-height: 320px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px;
}
.map-card .pin {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--teal-700);
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  box-shadow: 0 12px 26px rgba(15, 118, 110, 0.35);
}
.map-card .pin svg { width: 30px; height: 30px; stroke: var(--white); }
.map-card h3 { color: var(--teal-950); margin-bottom: 6px; }
.map-card p { color: var(--ink-soft); font-size: 0.945rem; }

/* ---------- Footer ---------- */
footer {
  background: var(--teal-950);
  color: #a9cbc6;
  padding: 72px 0 0;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 44px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.footer-brand .brand-text .name { color: var(--white); }
.footer-brand .brand-text .tag { color: var(--amber-500); }
.footer-brand > p { margin: 20px 0 22px; max-width: 320px; line-height: 1.75; }
.socials { display: flex; gap: 11px; }
.socials a {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.11);
  display: grid;
  place-items: center;
  transition: background 0.25s ease, transform 0.25s ease;
}
.socials a:hover { background: var(--amber-500); transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; fill: currentColor; color: var(--white); }

footer h4 {
  font-family: var(--font-body);
  color: var(--white);
  font-size: 0.88rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 22px;
  font-weight: 600;
}
.footer-links { display: grid; gap: 11px; }
.footer-links a { transition: color 0.2s ease, padding-left 0.2s ease; }
.footer-links a:hover { color: var(--amber-500); padding-left: 5px; }

.footer-contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.footer-contact svg { width: 17px; height: 17px; stroke: var(--amber-500); flex: none; margin-top: 3px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 26px 0;
  font-size: 0.83rem;
  color: #7ea9a3;
}
.footer-bottom .legal { display: flex; gap: 22px; }
.footer-bottom .legal a:hover { color: var(--amber-500); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-badge { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid, .why-grid, .appt-grid, .overview-grid, .when-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 560px; }
  .spec-grid, .chip-grid { grid-template-columns: repeat(2, 1fr); }
  .doc-grid, .value-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .why-float { right: 12px; }
}

@media (max-width: 860px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: grid; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    padding: 26px 6%;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .stat:nth-child(odd) { border-left: none; }
  .testi-grid, .service-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; padding: 46px 30px; }
  .cta-inner p { margin-inline: auto; }
  .cta-actions { justify-content: center; }
  .timeline-item { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 620px) {
  .topbar { display: none; }
  .hero { padding: 56px 0 70px; }
  .page-hero { padding: 56px 0 60px; }
  .spec-grid, .doc-grid, .footer-grid, .chip-grid, .value-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .appt-form { padding: 28px 22px; }
  .float-badge { position: static; margin-top: 14px; animation: none; }
  .hero-card-main { padding: 20px; }
  .section-pad, .why-us { padding: 68px 0; }
  .why-float { position: static; margin-top: 16px; max-width: none; }
}

/* ---------- Doctor profile page ---------- */
.profile-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 84px;
  background:
    radial-gradient(800px 420px at 90% -20%, rgba(20, 168, 155, 0.25), transparent 62%),
    linear-gradient(155deg, var(--teal-950), var(--teal-900));
  color: var(--white);
}
.profile-hero-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 56px;
  align-items: center;
}
.profile-info { min-width: 0; }
.profile-hero .breadcrumb { margin-bottom: 8px; }
.profile-hero h1 {
  font-size: clamp(2.15rem, 4.2vw, 3.15rem);
  margin: 16px 0 8px;
}
.profile-hero .role-line {
  color: var(--amber-500);
  font-weight: 600;
  font-size: 1.08rem;
  margin-bottom: 16px;
}
.profile-hero .lead {
  color: #c2ded9;
  max-width: 580px;
  margin-bottom: 28px;
}
.profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}
.profile-stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 13px 22px;
}
.profile-stat .num {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--amber-500);
  line-height: 1.15;
}
.profile-stat .lbl {
  font-size: 0.76rem;
  color: #b6d7d3;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.profile-photo-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 26px;
  padding: 34px 30px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.profile-avatar {
  width: 180px; height: 180px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border: 4px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(150deg, #0f766e, #06322f);
}
.profile-avatar.t2 { background: linear-gradient(150deg, #14a89b, #0b4743); }
.profile-avatar.t3 { background: linear-gradient(150deg, #b57811, #7c4a06); }
.profile-avatar.t4 { background: linear-gradient(150deg, #2c7a70, #123f3b); }
.profile-avatar .initials {
  font-family: var(--font-display);
  font-size: 3.6rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.94);
  letter-spacing: 0.02em;
}
.profile-photo-card .stars { justify-content: center; margin-bottom: 10px; }
.profile-photo-card .p-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 2px;
}
.profile-photo-card .p-dept {
  color: var(--amber-500);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.profile-quickfacts {
  margin-top: 22px;
  display: grid;
  gap: 12px;
  text-align: left;
}
.profile-quickfact {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.865rem;
  color: #b6d7d3;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 12px;
}
.profile-quickfact strong {
  color: var(--white);
  font-weight: 600;
  text-align: right;
}

/* OPD schedule */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.schedule-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.schedule-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.schedule-card .day {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--teal-950);
  margin-bottom: 4px;
}
.schedule-card .time { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 12px; }
.schedule-card .status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-700);
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  padding: 5px 12px;
  border-radius: 999px;
}
.schedule-card .status .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal-500);
}
.schedule-card.closed .status {
  color: var(--ink-soft);
  background: var(--bg);
  border-color: var(--line);
}
.schedule-card.closed .status .dot { background: #b8c6c4; }

@media (max-width: 1024px) {
  .profile-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .profile-photo-card { max-width: 460px; margin-inline: auto; width: 100%; }
  .schedule-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .profile-hero { padding: 48px 0 60px; }
  .schedule-grid { grid-template-columns: 1fr; }
}
