/* ==========================================================================
   Balar Medicine & Orthopedic Hospital — Stylesheet
   Theme system: light (default) + dark, toggled via [data-theme] on <html>
   Fonts: Plus Jakarta Sans (headings) + Inter (body)
   ========================================================================== */

:root {
  /* ---- Raw brand palette (identity colors, constant across themes) ---- */
  --navy-950: #050f1c;
  --navy-900: #081b30;
  --navy-800: #0c2846;
  --navy-700: #123a60;
  --navy-600: #1a4a78;

  --sky-600: #1c86b8;
  --sky-500: #2ea6d8;
  --sky-400: #56c2ea;
  --sky-100: #eaf6fb;

  --gold-700: #a8792e;
  --gold-600: #c69440;
  --gold-500: #dcaa56;
  --gold-400: #ecc884;
  --gold-100: #fbf1de;

  --white: #ffffff;
  --danger: #d94f45;
  --success: #2f9e6a;

  --accent: var(--gold-600);
  --accent-dark: var(--gold-700);
  --accent-light: var(--gold-100);
  --brand: var(--sky-500);
  --brand-dark: var(--sky-600);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --theme-transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  --header-height: 76px;
  --topbar-height: 42px;

  /* ---- Semantic tokens: LIGHT THEME (default) ---- */
  --bg-page: #f7fafc;
  --bg-surface: #ffffff;
  --bg-surface-2: #eef6fa;
  --bg-surface-3: #fbf1de;
  --bg-header: #ffffff;
  --bg-footer: var(--navy-950);
  --bg-topbar: var(--navy-950);

  --text-heading: var(--navy-900);
  --text-body: #3c4a58;
  --text-muted: #6b7a87;
  --text-on-dark: #d9e8f0;
  --text-on-dark-muted: #a9c0cf;

  --border-soft: #e3ecf1;
  --card-bg: #ffffff;

  --hero-bg-1: #eaf6fb;
  --hero-bg-2: #ffffff;
  --hero-bg-3: #fdf4e3;
  --hero-heading: var(--navy-900);
  --hero-text: #46586a;
  --hero-orbit-border: rgba(10, 40, 70, 0.14);
  --hero-orbit-glow: rgba(46, 166, 216, 0.16);

  --timings-bg-1: #eef6fa;
  --timings-bg-2: #ffffff;
  --timings-heading: var(--navy-900);
  --timings-text: var(--text-muted);
  --timings-card-bg: #ffffff;
  --timings-card-border: var(--border-soft);

  --shadow-sm: 0 4px 16px rgba(8, 27, 48, 0.06);
  --shadow-md: 0 14px 36px rgba(8, 27, 48, 0.10);
  --shadow-lg: 0 24px 55px rgba(8, 27, 48, 0.16);
}

/* ---- Semantic tokens: DARK THEME ---- */
html[data-theme="dark"] {
  --bg-page: var(--navy-950);
  --bg-surface: var(--navy-900);
  --bg-surface-2: var(--navy-800);
  --bg-surface-3: #2a2010;
  --bg-header: var(--navy-900);
  --bg-footer: #030a13;
  --bg-topbar: #030a13;

  --text-heading: #f3f7fa;
  --text-body: var(--text-on-dark);
  --text-muted: var(--text-on-dark-muted);
  --text-on-dark: #e7f0f5;
  --text-on-dark-muted: #a9c0cf;

  --border-soft: rgba(255,255,255,0.12);
  --card-bg: var(--navy-800);

  --hero-bg-1: var(--navy-950);
  --hero-bg-2: var(--navy-800);
  --hero-bg-3: var(--navy-700);
  --hero-heading: #ffffff;
  --hero-text: var(--text-on-dark);
  --hero-orbit-border: rgba(255,255,255,0.16);
  --hero-orbit-glow: rgba(220,170,86,0.16);

  --timings-bg-1: var(--navy-950);
  --timings-bg-2: var(--navy-800);
  --timings-heading: #ffffff;
  --timings-text: var(--text-on-dark);
  --timings-card-bg: rgba(255,255,255,0.05);
  --timings-card-border: rgba(255,255,255,0.12);

  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 14px 36px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 55px rgba(0, 0, 0, 0.5);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-body);
  background: var(--bg-page);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: var(--theme-transition);
}

h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
  color: var(--text-heading);
  line-height: 1.25;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, textarea { font-family: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section.section { padding: 100px 0; transition: var(--theme-transition); }

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 54px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sky-100);
  color: var(--brand-dark);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 30px;
  margin-bottom: 16px;
}
html[data-theme="dark"] .section-tag {
  background: rgba(255,255,255,0.08);
  color: var(--sky-400);
}
.section-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.04rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  text-align: center;
  line-height: 1.2;
  position: relative;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--navy-950);
  box-shadow: 0 10px 24px rgba(198, 148, 64, 0.32);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-600), var(--gold-700));
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(198, 148, 64, 0.4);
  color: var(--navy-950);
}
.btn-secondary {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(46, 166, 216, 0.3);
}
.btn-secondary:hover { background: var(--brand-dark); transform: translateY(-2px); }
.btn-outline {
  border-color: var(--border-soft);
  color: var(--text-heading);
  background: transparent;
}
html[data-theme="dark"] .btn-outline { border-color: rgba(255,255,255,0.35); color: var(--white); }
.btn-outline:hover { background: var(--bg-surface-2); border-color: var(--brand); }
.btn-white { background: var(--white); color: var(--navy-900); }
.btn-white:hover { background: var(--gold-100); color: var(--navy-950); }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.7; cursor: not-allowed; transform: none !important; }

/* ==========================================================================
   Topbar
   ========================================================================== */
.topbar {
  background: var(--bg-topbar);
  color: var(--text-on-dark);
  font-size: 0.82rem;
  min-height: var(--topbar-height);
  display: flex;
  align-items: center;
  transition: var(--theme-transition);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  flex-wrap: wrap;
  padding: 6px 0;
}
.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-on-dark);
  white-space: nowrap;
}
.topbar-right { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.topbar-phone { color: var(--gold-400); font-weight: 600; }
.topbar-item i { color: var(--gold-500); font-size: 0.85rem; }
.topbar-address { transition: var(--transition); border-radius: 4px; }
.topbar-address:hover { color: var(--gold-400); }
.topbar-address:hover i { color: var(--gold-400); }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-header);
  box-shadow: var(--shadow-sm);
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  transition: var(--theme-transition), box-shadow 0.3s ease;
}
.header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-width: 0;
}
.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-name.light { color: var(--white); }
.brand-tag {
  font-size: 0.72rem;
  color: var(--gold-700);
  font-weight: 600;
  letter-spacing: 0.03em;
}
html[data-theme="dark"] .brand-tag { color: var(--gold-400); }

.nav-list {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-heading);
  position: relative;
  padding: 8px 0;
  transition: var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: var(--transition);
  border-radius: 2px;
}
.nav-link:hover, .nav-link.active { color: var(--brand-dark); }
html[data-theme="dark"] .nav-link:hover,
html[data-theme="dark"] .nav-link.active { color: var(--sky-400); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-surface-2);
  color: var(--text-heading);
  border: 1px solid var(--border-soft);
  font-size: 1rem;
  transition: var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover { background: var(--gold-100); color: var(--gold-700); border-color: var(--gold-400); transform: rotate(15deg); }
html[data-theme="dark"] .theme-toggle:hover { background: rgba(255,255,255,0.1); color: var(--gold-400); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: var(--bg-surface-2);
  border: none;
  border-radius: 10px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-heading);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 15% 15%, var(--hero-orbit-glow), transparent 45%),
    linear-gradient(160deg, var(--hero-bg-1) 0%, var(--hero-bg-2) 55%, var(--hero-bg-3) 100%);
  overflow: hidden;
  padding: 72px 0 0;
  transition: var(--theme-transition);
}
.hero-bg-shapes { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.shape { position: absolute; border-radius: 50%; }
.shape-1 {
  width: 520px; height: 520px; top: -220px; right: -160px;
  background: radial-gradient(circle at 30% 30%, rgba(46, 166, 216, 0.14), transparent 70%);
}
.shape-2 {
  width: 360px; height: 360px; bottom: -160px; left: -100px;
  background: radial-gradient(circle at 30% 30%, rgba(220, 170, 86, 0.14), transparent 70%);
}
.shape-3 {
  width: 240px; height: 240px; top: 46%; left: 58%;
  background: radial-gradient(circle, rgba(46, 166, 216, 0.08), transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  padding-bottom: 70px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--bg-surface);
  color: var(--gold-700);
  border: 1px solid var(--border-soft);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
html[data-theme="dark"] .hero-badge { color: var(--gold-400); }

.hero-content h1 {
  color: var(--hero-heading);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}
.text-accent {
  background: linear-gradient(100deg, var(--sky-600), var(--gold-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-theme="dark"] .text-accent {
  background: linear-gradient(100deg, var(--sky-400), var(--gold-400));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-content p.hero-desc {
  color: var(--hero-text);
  font-size: 1.06rem;
  max-width: 560px;
  margin-bottom: 34px;
}
.hero-content p.hero-desc strong { color: var(--hero-heading); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}
.hero-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--hero-heading);
}
.hero-stat i {
  font-size: 1.25rem;
  color: var(--navy-950);
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}
.hero-stat strong { display: block; font-size: 0.95rem; }
.hero-stat span { display: block; font-size: 0.78rem; color: var(--hero-text); }

/* ---------- Hero visual: brand emblem ---------- */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero-visual-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-emblem {
  position: relative;
  width: 62%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-emblem-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--hero-orbit-glow), transparent 60%),
    linear-gradient(150deg, rgba(255,255,255,0.5), rgba(255,255,255,0.05));
  border: 1px solid var(--hero-orbit-border);
  box-shadow: var(--shadow-lg);
}
html[data-theme="dark"] .hero-emblem-ring {
  background: radial-gradient(circle at 32% 28%, var(--hero-orbit-glow), transparent 60%),
    linear-gradient(150deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01));
  box-shadow: inset 0 0 60px rgba(0,0,0,0.25), var(--shadow-lg);
}
.hero-emblem-ring::before,
.hero-emblem-ring::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px dashed var(--hero-orbit-border);
}
.hero-emblem-ring::before { inset: -22px; }
.hero-emblem-ring::after { inset: -44px; border-color: rgba(198, 148, 64, 0.3); }
.hero-emblem-logo {
  position: relative;
  z-index: 1;
  width: 70%;
  border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(255,255,255,0.4), var(--shadow-lg);
  animation: floatY 5s ease-in-out infinite;
}
html[data-theme="dark"] .hero-emblem-logo { box-shadow: 0 0 0 10px rgba(255,255,255,0.05), var(--shadow-lg); }

.hero-float-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--bg-surface);
  color: var(--text-heading);
  padding: 11px 18px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: floatY 4.5s ease-in-out infinite;
  white-space: nowrap;
  border: 1px solid var(--border-soft);
}
.hero-float-chip i {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--navy-950);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem;
  flex-shrink: 0;
}
.chip-1 { top: 4%; left: -4%; animation-delay: 0s; }
.chip-2 { top: 44%; right: -8%; animation-delay: 0.6s; }
.chip-3 { bottom: 4%; left: 6%; animation-delay: 1.2s; }

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

/* ==========================================================================
   About
   ========================================================================== */
.about { background: var(--bg-surface-2); transition: var(--theme-transition); }
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
}
.about-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 42px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
  transition: var(--theme-transition), transform 0.3s ease, box-shadow 0.3s ease;
}
.about-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.about-card-accent {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: var(--text-on-dark);
  border: none;
}
.about-card-accent h3, .about-card-accent p { color: var(--white); }
.about-icon {
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px;
  background: var(--sky-100);
  color: var(--brand-dark);
  font-size: 1.6rem;
  margin-bottom: 22px;
  flex-shrink: 0;
}
html[data-theme="dark"] .about-icon { background: rgba(46,166,216,0.14); color: var(--sky-400); }
.about-card-accent .about-icon { background: rgba(255,255,255,0.12); color: var(--gold-400); }
.about-card h3 { font-size: 1.32rem; margin-bottom: 16px; }
.about-card p { color: var(--text-muted); margin-bottom: 20px; }
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 13px;
  color: var(--text-body);
  font-size: 0.95rem;
}
.about-list i { color: var(--success); margin-top: 3px; flex-shrink: 0; }

.about-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 10px;
}
.about-mini-grid div {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.08);
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 0.88rem;
  transition: var(--transition);
}
.about-mini-grid div:hover { background: rgba(255,255,255,0.14); transform: translateY(-2px); }
.about-mini-grid i { color: var(--gold-400); font-size: 1.1rem; flex-shrink: 0; }

/* ==========================================================================
   Services
   ========================================================================== */
.services { background: var(--bg-surface); transition: var(--theme-transition); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 34px 26px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition), var(--theme-transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(220,170,86,0.08), transparent 60%);
  opacity: 0;
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-400);
}
.service-card:hover::before { opacity: 1; }
.service-card:hover .service-icon { transform: scale(1.08) rotate(-4deg); }
.service-icon {
  width: 58px; height: 58px;
  border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, var(--sky-500), var(--navy-700));
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 20px;
  transition: var(--transition);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(18, 58, 96, 0.25);
}
.service-card h3 { font-size: 1.08rem; margin-bottom: 10px; position: relative; z-index: 1; }
.service-card p { color: var(--text-muted); font-size: 0.9rem; position: relative; z-index: 1; flex-grow: 1; }
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-700);
  font-weight: 600;
  font-size: 0.86rem;
  margin-top: 18px;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}
html[data-theme="dark"] .service-link { color: var(--gold-400); }
.service-link i { transition: var(--transition); font-size: 0.78rem; }
.service-card:hover .service-link { gap: 12px; color: var(--gold-600); }
.service-card:hover .service-link i { transform: translateX(3px); }
.service-card-cta {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  align-items: flex-start;
}
.service-card-cta:hover { border-color: transparent; }
.service-card-cta h3, .service-card-cta p { color: var(--white); }
.service-card-cta p { opacity: 0.85; margin-bottom: 22px; }
.service-card-cta .service-icon { background: rgba(255,255,255,0.14); box-shadow: none; }
.service-card-cta .btn { position: relative; z-index: 1; }

/* ==========================================================================
   Doctor
   ========================================================================== */
.doctor { background: var(--bg-surface-2); overflow: hidden; transition: var(--theme-transition); }
.doctor-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 60px;
}
.doctor-visual { display: flex; flex-direction: column; align-items: center; position: relative; }
.doctor-photo-frame {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--navy-900), var(--sky-500));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  padding: 8px;
  flex-shrink: 0;
}
.doctor-photo-frame::before {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 2px dashed var(--gold-400);
  opacity: 0.6;
}
.doctor-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 4px solid rgba(255,255,255,0.9);
}
.doctor-badge {
  position: relative;
  margin-top: -22px;
  background: var(--bg-surface);
  color: var(--text-heading);
  padding: 11px 22px;
  border-radius: 30px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 0.85rem;
  z-index: 2;
  border: 1px solid var(--border-soft);
}
.doctor-badge i { color: var(--gold-600); }

.doctor-stats {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  width: 100%;
  max-width: 320px;
}
.doctor-stat {
  flex: 1;
  text-align: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 14px 8px;
  transition: var(--transition);
}
.doctor-stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.doctor-stat strong { display: block; color: var(--text-heading); font-size: 1.05rem; font-family: 'Plus Jakarta Sans', sans-serif; }
.doctor-stat span { display: block; color: var(--text-muted); font-size: 0.72rem; margin-top: 4px; }

.doctor-role {
  color: var(--gold-700);
  font-weight: 600;
  margin: 8px 0 18px;
  font-size: 1.05rem;
}
html[data-theme="dark"] .doctor-role { color: var(--gold-400); }
.doctor-desc { color: var(--text-muted); margin-bottom: 26px; max-width: 560px; }
.doctor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}
.doctor-tags span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-body);
  transition: var(--transition);
}
.doctor-tags span:hover { border-color: var(--brand); transform: translateY(-2px); }
.doctor-tags i { color: var(--success); flex-shrink: 0; }

/* ==========================================================================
   Timings
   ========================================================================== */
.timings {
  background: linear-gradient(160deg, var(--timings-bg-1), var(--timings-bg-2));
  transition: var(--theme-transition);
}
.timings .section-head h2,
.timings .section-sub { color: var(--timings-heading); }
.timings .section-sub { color: var(--timings-text); }

.timings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 720px;
  margin: 0 auto;
}
.timing-card {
  background: var(--timings-card-bg);
  border: 1px solid var(--timings-card-border);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  color: var(--timings-heading);
  backdrop-filter: blur(4px);
  transition: var(--transition), var(--theme-transition);
  box-shadow: var(--shadow-sm);
}
.timing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--brand); }
.timing-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--sky-500), var(--navy-700));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(18, 58, 96, 0.25);
}
.timing-card h3 { color: var(--timings-heading); font-size: 1.15rem; margin-bottom: 20px; }
.timing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--timings-card-border);
  font-size: 0.92rem;
  gap: 10px;
}
.timing-row:last-of-type { border-bottom: none; }
.timing-row span { display: flex; align-items: center; gap: 8px; color: var(--timings-text); }
.timing-row i { color: var(--brand-dark); flex-shrink: 0; }
html[data-theme="dark"] .timing-row i { color: var(--sky-400); }
.timing-row strong { color: var(--timings-heading); }

.timings-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 640px;
  margin: 40px auto 0;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--gold-100), var(--bg-surface));
  border: 1px solid var(--gold-400);
  border-radius: 30px;
  color: var(--text-heading);
  font-size: 0.92rem;
  text-align: center;
  flex-wrap: wrap;
}
html[data-theme="dark"] .timings-note {
  background: rgba(220,170,86,0.1);
  border-color: rgba(220,170,86,0.35);
  color: var(--text-on-dark);
}
.timings-note i { color: var(--gold-600); font-size: 1.1rem; flex-shrink: 0; }
.timings-note a { color: var(--gold-700); font-weight: 700; }
html[data-theme="dark"] .timings-note a { color: var(--gold-400); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { background: var(--bg-surface); transition: var(--theme-transition); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 46px;
  margin-bottom: 54px;
}
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; gap: 18px; }
.contact-item-icon {
  width: 50px; height: 50px;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--sky-100);
  color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
}
html[data-theme="dark"] .contact-item-icon { background: rgba(46,166,216,0.14); color: var(--sky-400); }
.contact-item h4 { font-size: 1rem; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.contact-item p { color: var(--text-muted); font-size: 0.92rem; }
.contact-item a { color: var(--brand-dark); font-weight: 600; }
html[data-theme="dark"] .contact-item a { color: var(--sky-400); }

.contact-item-link {
  border-radius: var(--radius-md);
  padding: 12px;
  margin: -12px;
  transition: var(--transition);
}
.contact-item-link:hover { background: var(--bg-surface-2); }
.contact-item-link:hover .contact-item-icon { background: var(--brand); color: var(--white); transform: scale(1.06); }
.contact-item-external { font-size: 0.7rem; color: var(--text-muted); }
.contact-item-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-700);
  font-weight: 600;
  font-size: 0.84rem;
  margin-top: 6px;
  transition: var(--transition);
}
html[data-theme="dark"] .contact-item-cta { color: var(--gold-400); }
.contact-item-link:hover .contact-item-cta { gap: 10px; color: var(--gold-600); }

.contact-socials { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.contact-socials a {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.contact-socials a:hover { background: var(--gold-600); color: var(--navy-950); transform: translateY(-3px) scale(1.05); }

.contact-form-wrap {
  background: var(--bg-surface-2);
  border-radius: var(--radius-lg);
  padding: 42px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
  transition: var(--theme-transition);
}
.contact-form h3 { margin-bottom: 24px; font-size: 1.32rem; }
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-heading);
}
.form-row input, .form-row textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  background: var(--bg-surface);
  transition: var(--transition);
  resize: vertical;
  color: var(--text-heading);
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(46,166,216,0.14);
}
.form-row input::placeholder, .form-row textarea::placeholder { color: var(--text-muted); }
.form-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 16px;
  transition: var(--transition);
}
.form-note.success { color: var(--success); font-weight: 600; }
.form-note.error { color: var(--danger); font-weight: 600; }
.hidden-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

.fa-spinner { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 360px;
  border: 1px solid var(--border-soft);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--bg-footer);
  color: var(--text-on-dark);
  padding-top: 74px;
  transition: var(--theme-transition);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 54px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-col h4 {
  color: var(--white);
  font-size: 1.02rem;
  margin-bottom: 22px;
  position: relative;
}
.footer-brand p { color: var(--text-on-dark); font-size: 0.9rem; margin: 18px 0 22px; opacity: 0.85; }
.footer-col ul li { margin-bottom: 13px; font-size: 0.9rem; opacity: 0.9; }
.footer-col ul li a { transition: var(--transition); }
.footer-col ul li a:hover { color: var(--gold-400); padding-left: 4px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact i { color: var(--sky-400); margin-top: 3px; flex-shrink: 0; }
.footer-contact a:hover { color: var(--gold-400); }
.footer-socials a { background: rgba(255,255,255,0.08); }
.footer-socials a:hover { background: var(--gold-600); color: var(--navy-950); }

.footer-bottom { padding: 24px 0; }
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
  opacity: 0.75;
}

/* ==========================================================================
   Floating buttons
   ========================================================================== */
.fab-group {
  position: fixed;
  bottom: 26px;
  left: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
}
.fab-group.show { opacity: 1; visibility: visible; transform: translateY(0); }
.fab {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.fab-whatsapp { background: #25d366; }
.fab-call { background: var(--brand); }
.fab:hover { transform: scale(1.1); }

.back-to-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 998;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--gold-600); color: var(--navy-950); }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1140px) {
  .container { padding: 0 20px; }
  .doctor-grid { gap: 40px; }
}

@media (max-width: 1024px) {
  section.section { padding: 80px 0; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .doctor-grid { grid-template-columns: 1fr; text-align: center; }
  .doctor-visual { margin: 0 auto; }
  .doctor-desc { margin-left: auto; margin-right: auto; }
  .doctor-tags { justify-content: center; }
  .doctor-stats { margin-left: auto; margin-right: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; padding-bottom: 50px; }
  .hero-content { text-align: center; }
  .hero-content p.hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; margin-bottom: 50px; }
  .hero-visual-card { max-width: 280px; }
}

@media (max-width: 900px) {
  .topbar-item span { display: none; }
  .topbar-phone span { display: inline; }
  .topbar-inner { justify-content: space-between; }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-header);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, var(--theme-transition);
    z-index: 999;
    border-top: 1px solid var(--border-soft);
  }
  .nav.open { max-height: calc(100vh - var(--header-height)); overflow-y: auto; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; }
  .nav-list li { width: 100%; border-bottom: 1px solid var(--border-soft); }
  .nav-list li:last-child { border-bottom: none; }
  .nav-link { display: block; padding: 14px 4px; width: 100%; }
  .nav-link::after { display: none; }
  .nav-link.active { color: var(--brand-dark); font-weight: 600; }

  .hamburger { display: flex; }
  .header-actions .btn.btn-primary.btn-sm { display: none; }
}

@media (max-width: 768px) {
  section.section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }
  .services-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .timings-grid { grid-template-columns: 1fr; max-width: 420px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-stats { gap: 18px; justify-content: flex-start; }
  .hero-content { text-align: left; }
  .hero-content p.hero-desc { margin-left: 0; margin-right: 0; }
  .hero-actions { justify-content: flex-start; }
  .doctor-photo-frame { width: 240px; height: 240px; }
  .about-card, .contact-form-wrap { padding: 30px; }
  .map-wrap { height: 280px; }
  .chip-1, .chip-2, .chip-3 { display: none; }
  .timings-note { flex-direction: column; text-align: center; }

  .fab-group { bottom: 18px; left: 18px; gap: 12px; }
  .fab { width: 50px; height: 50px; font-size: 1.25rem; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .brand-tag { display: none; }
  .brand-name { font-size: 0.92rem; max-width: 160px; }
  .brand-logo { width: 42px; height: 42px; }
  .services-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 60px; }
  .hero-content h1 { font-size: 1.85rem; }
  .hero-content p.hero-desc { font-size: 0.98rem; }
  .hero-badge { font-size: 0.76rem; padding: 7px 14px; }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero-visual-card { max-width: 240px; }
  .hero-float-chip { padding: 8px 13px; font-size: 0.72rem; }
  .hero-float-chip i { width: 22px; height: 22px; font-size: 0.62rem; }
  .about-card, .contact-form-wrap { padding: 24px; }
  .about-mini-grid { grid-template-columns: 1fr; }
  .doctor-photo-frame { width: 200px; height: 200px; }
  .doctor-stats { flex-direction: column; max-width: 100%; }
  .doctor-tags { flex-direction: column; align-items: stretch; }
  .doctor-tags span { justify-content: center; }
  .timing-card { padding: 26px 22px; }
  .contact-item { flex-direction: column; text-align: center; align-items: center; }
  .contact-item-icon { margin-bottom: 6px; }
  .contact-item-link { flex-direction: column; text-align: center; align-items: center; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .fab-group { left: 14px; bottom: 14px; }
  .fab { width: 50px; height: 50px; font-size: 1.3rem; }
  .back-to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }
  .btn { width: 100%; }
  .service-card-cta .btn { width: auto; }
  .doctor-content .btn { width: 100%; }
  .theme-toggle { width: 38px; height: 38px; font-size: 0.9rem; }
}

@media (max-width: 380px) {
  .hero-content h1 { font-size: 1.6rem; }
  .section-head h2 { font-size: 1.5rem; }
  .brand-name { max-width: 120px; font-size: 0.82rem; }
  .brand-logo { width: 38px; height: 38px; }
}
