/* GDC Raj — mobile-first styles */
:root {
  --bg: #f3f6fa;
  --surface: #ffffff;
  --surface-2: #eaf1f8;
  --ink: #0f1b2a;
  --ink-2: #3f4d5c;
  --muted: #667487;
  --line: #dee6ef;
  --brand: #1c6fb8;
  --brand-ink: #ffffff;
  --brand-soft: #dcebf8;
  --green: #2e9b45;
  --green-soft: #e1f3e5;
  --accent: #f59e0b;
  --danger: #dc2626;
  --danger-soft: #fdecec;
  --ok: #2e9b45;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 27, 42, .06), 0 4px 16px rgba(15, 27, 42, .06);
  --font: "Plus Jakarta Sans", "Hind Siliguri", system-ui, -apple-system, sans-serif;
  --bn: "Hind Siliguri", var(--font);
  --nav-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b121b;
    --surface: #111b27;
    --surface-2: #172434;
    --ink: #e6edf5;
    --ink-2: #b3c0ce;
    --muted: #8392a3;
    --line: #22303f;
    --brand: #5aa9ee;
    --brand-ink: #06182b;
    --brand-soft: #133150;
    --green: #4cc463;
    --green-soft: #143a22;
    --ok: #4cc463;
    --danger: #f87171;
    --danger-soft: #3a1717;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { width: 1em; height: 1em; fill: currentColor; flex: none; }
button, input, select { font: inherit; color: inherit; }
.bn { font-family: var(--bn); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
main:focus { outline: none; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top));
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.logo {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--brand); color: var(--brand-ink); font-size: 22px;
}
.brand-text { font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; line-height: 1.1; }
.brand-text b { color: var(--brand); }
.brand-text small { display: block; font: 500 .72rem/1.2 var(--bn); color: var(--muted); letter-spacing: 0; }
.desk-nav { display: none; }
.lang-btn {
  height: 36px; min-width: 44px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface-2); font-weight: 700; font-size: .85rem; cursor: pointer; color: var(--ink-2);
}
.lang-btn:hover { border-color: var(--brand); color: var(--brand); }
body.lang-bn { font-family: var(--bn); }
body.lang-bn .hero h1, body.lang-bn .page-head h1 { letter-spacing: 0; line-height: 1.3; }
.btn.wa { background: #25d366; border-color: #25d366; color: #fff; }
@media (prefers-color-scheme: dark) { .btn.wa { background: #1faa52; border-color: #1faa52; } }
.sos {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
  background: var(--danger); color: #fff; border-radius: 999px; font-weight: 700; font-size: .95rem;
}

/* Bottom nav (mobile) */
.bottom-nav {
  position: fixed; inset: auto 0 0 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface); border-top: 1px solid var(--line);
}
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: .7rem; font-weight: 600; color: var(--muted);
}
.bottom-nav svg { font-size: 22px; }
.bottom-nav a.active { color: var(--brand); }
.bottom-nav a.em svg { color: var(--danger); }

/* Hero */
.hero {
  background:
    radial-gradient(900px 260px at 100% -10%, color-mix(in srgb, #2e9b45 45%, transparent), transparent 60%),
    linear-gradient(160deg, var(--brand) 0%, #13508a 100%);
  color: #fff; padding: 28px 0 72px;
}
@media (prefers-color-scheme: dark) { .hero { background: radial-gradient(900px 260px at 100% -10%, rgba(46,155,69,.28), transparent 60%), linear-gradient(160deg, #123a62, #0b1e33); } }
.hero h1 { margin: 0 0 6px; font-size: clamp(1.6rem, 6vw, 2.6rem); line-height: 1.15; letter-spacing: -.02em; }
.hero p { margin: 0; opacity: .9; }
.hero .bn-tag { font-family: var(--bn); font-size: 1.05rem; opacity: .95; margin-bottom: 4px; }

.search-card {
  margin-top: -48px; position: relative; z-index: 2;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px;
}
.search-box {
  display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 52px;
  background: var(--surface-2); border-radius: 12px; border: 1px solid transparent;
}
.search-box:focus-within { border-color: var(--brand); background: var(--surface); }
.search-box svg { color: var(--muted); font-size: 20px; }
.search-box input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 1rem; }
.quick-chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px 2px; scrollbar-width: none; }
.quick-chips::-webkit-scrollbar { display: none; }

.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); cursor: pointer;
  white-space: nowrap;
}
.chip .si { font-size: 16px; color: var(--brand); }
.spec .mono .si { font-size: 22px; }
.chip.active, .chip:hover { background: var(--brand-soft); color: var(--brand); border-color: color-mix(in srgb, var(--brand) 40%, transparent); }

/* Sections */
.section { padding: 24px 0 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head h2 { margin: 0; font-size: 1.2rem; letter-spacing: -.01em; }
.section-head h2 .bn { font-weight: 500; color: var(--muted); font-size: .9rem; margin-left: 6px; }
.link { color: var(--brand); font-weight: 700; font-size: .9rem; white-space: nowrap; }

/* Quick actions */
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.qa {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 12px 4px; background: var(--surface); border-radius: 14px; border: 1px solid var(--line);
  font-size: .75rem; font-weight: 600; color: var(--ink-2);
}
.ic { display: grid; place-items: center; flex: none; }
.qa .ic { width: 42px; height: 42px; border-radius: 12px; font-size: 22px; }
.ic.teal { background: var(--brand-soft); color: var(--brand); }
.ic.green { background: var(--green-soft); color: var(--green); }
.ic.red { background: var(--danger-soft); color: var(--danger); }
.ic.amber { background: color-mix(in srgb, var(--accent) 18%, transparent); color: #b45309; }
.ic.blue { background: color-mix(in srgb, #3b82f6 16%, transparent); color: #2563eb; }
@media (prefers-color-scheme: dark) { .ic.amber { color: #fbbf24; } .ic.blue { color: #93c5fd; } }

/* Specialty grid */
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.spec {
  display: flex; align-items: center; gap: 10px; padding: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
}
.spec .mono { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; flex: none; font-weight: 800; font-size: 1.05rem; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
@media (prefers-color-scheme: dark) { .spec .mono { color: color-mix(in srgb, var(--c) 55%, white); } }
.spec strong { display: block; font-size: .9rem; line-height: 1.2; }
.spec span { font-size: .75rem; color: var(--muted); font-family: var(--bn); }
.spec:hover { border-color: var(--brand); }

/* Cards */
.list { display: grid; gap: 12px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; box-shadow: var(--shadow);
}
.doc-card { display: grid; grid-template-columns: 60px 1fr; gap: 12px; align-items: start; }
.avatar {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center;
  font-weight: 800; font-size: 1.2rem; color: #fff; letter-spacing: -.02em;
}
.avatar.lg { width: 88px; height: 88px; font-size: 1.8rem; border-radius: 22px; }
.doc-card h3 { margin: 0; font-size: 1rem; line-height: 1.3; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.verified { color: var(--brand); font-size: 1rem; }
@media (prefers-color-scheme: dark) { .verified { color: #60a5fa; } }
.deg { margin: 2px 0 6px; font-size: .8rem; color: var(--muted); }
.tag {
  display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: .72rem; font-weight: 700;
  background: var(--brand-soft); color: var(--brand);
}
.meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: .8rem; color: var(--ink-2); }
.meta span { display: inline-flex; align-items: center; gap: 4px; }
.meta svg { color: var(--muted); }
.card-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); white-space: nowrap;
  background: var(--surface); font-weight: 700; font-size: .9rem; cursor: pointer;
}
.btn.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn.danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn.grow { flex: 1 1 0; min-width: 0; padding: 0 12px; }
.btn.icon { width: 44px; padding: 0; }
.btn.icon.on { color: var(--danger); }
.card-actions .btn { height: 38px; border-radius: 10px; font-size: .9rem; }
.card-actions .btn.icon { width: 38px; }
.btn svg { font-size: 18px; }

/* Filters */
.page-head { padding: 18px 0 6px; }
.page-head h1 { margin: 0; font-size: 1.5rem; letter-spacing: -.02em; }
.page-head p { margin: 2px 0 0; color: var(--muted); font-family: var(--bn); }
.filters { position: sticky; top: 59px; z-index: 10; background: var(--bg); padding: 10px 0; }
.filter-row { display: flex; gap: 8px; margin-top: 8px; }
.select {
  flex: 1; min-width: 0; height: 42px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); padding: 0 10px; font-size: .85rem;
}
.result-count { font-size: .85rem; color: var(--muted); margin: 4px 0 10px; }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty .big { font-size: 2.6rem; color: var(--muted); display: flex; justify-content: center; margin-bottom: 4px; }

/* Profile */
.profile-top { text-align: center; padding: 22px 0 8px; }
.profile-top .avatar { margin: 0 auto 10px; }
.profile-top h1 { margin: 0; font-size: 1.35rem; display: inline-flex; gap: 6px; align-items: center; }
.profile-top .deg { font-size: .9rem; }
.bmdc { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); padding: 4px 10px; border-radius: 999px; margin-top: 8px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px; text-align: center; }
.stat b { display: block; font-size: 1.1rem; }
.stat span { font-size: .72rem; color: var(--muted); }
.block { margin-top: 16px; }
.block h2 { font-size: 1rem; margin: 0 0 8px; }
.chamber { display: grid; gap: 6px; }
.chamber + .chamber { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.chamber h3 { margin: 0; font-size: .95rem; }
.chamber .row { display: flex; gap: 8px; font-size: .85rem; color: var(--ink-2); align-items: flex-start; }
.chamber .row svg { margin-top: 3px; color: var(--brand); }
.days { display: flex; gap: 4px; flex-wrap: wrap; }
.day { font-size: .7rem; font-weight: 700; padding: 3px 7px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }
.day.on { background: var(--brand-soft); color: var(--brand); }
.pill-list { display: flex; flex-wrap: wrap; gap: 6px; }
.sticky-cta {
  position: sticky; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 8px); z-index: 5;
  display: flex; gap: 8px; margin-top: 16px; padding: 8px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
}
.breadcrumb { font-size: .8rem; color: var(--muted); padding-top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.breadcrumb a { color: var(--brand); font-weight: 600; }

/* Hospital card */
.hosp-card { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: start; }
.hosp-card h3 { line-height: 1.35; }
.hosp-card .ic { width: 48px; height: 48px; font-size: 24px; border-radius: 14px; }
.hosp-card h3 { margin: 0; font-size: 1rem; }
.hosp-card.has-map { grid-template-columns: 48px 1fr auto; position: relative; }
.hosp-card .stretch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.hosp-card:hover { border-color: var(--brand); }
.map-btn {
  position: relative; z-index: 1; align-self: center; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 10px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-size: .7rem; font-weight: 700;
}
.map-btn svg { font-size: 20px; }
.map-btn:hover { background: var(--brand); color: var(--brand-ink); }

/* Emergency */
.em-hero { background: var(--danger); color: #fff; border-radius: var(--radius); padding: 18px; margin-top: 16px; }
.em-hero h2 { margin: 0 0 4px; }
.em-hero .btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.em-hero .btn {
  background: #fff; color: var(--danger); border: 0; height: auto; min-height: 64px; padding: 8px 10px;
  flex-direction: column; gap: 2px; white-space: normal; text-align: center; line-height: 1.25;
}
.em-hero .btn b { display: inline-flex; align-items: center; gap: 6px; font-size: 1.05rem; white-space: nowrap; }
.em-hero .btn small { font-weight: 500; font-size: .72rem; color: var(--ink-2); }
.svc { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
@media (max-width: 520px) { .svc > .btn { flex: 1 1 100%; } }
.svc .grow { flex: 1; min-width: 0; }
.svc h3 { margin: 0; font-size: .95rem; }

/* Tools */
.bmi-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field label { display: block; font-size: .8rem; font-weight: 700; margin-bottom: 4px; color: var(--ink-2); }
.field input { width: 100%; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); padding: 0 12px; font-size: 1rem; }
.bmi-out { margin-top: 14px; padding: 14px; border-radius: 12px; background: var(--surface-2); text-align: center; }
.bmi-out b { font-size: 2rem; display: block; }
.notice { font-size: .8rem; background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); color: var(--ink-2); border-radius: 12px; padding: 10px 12px; margin-top: 12px; }

/* Footer */
.site-footer { padding: 28px 0 24px; margin-top: 32px; border-top: 1px solid var(--line); background: var(--surface); }
.site-footer p { margin: 0 0 8px; font-size: .9rem; color: var(--ink-2); }
.site-footer a { color: var(--brand); font-weight: 600; }
.foot-brand { font-size: 1.2rem !important; color: var(--ink) !important; }

/* Tablet / desktop enhancements */
@media (min-width: 640px) {
  .spec-grid { grid-template-columns: repeat(3, 1fr); }
  .list.two { grid-template-columns: repeat(2, 1fr); }
  .quick-grid { grid-template-columns: repeat(8, 1fr); }
}
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .bottom-nav { display: none; }
  .desk-nav { display: flex; gap: 4px; }
  .desk-nav a { padding: 8px 14px; border-radius: 10px; font-weight: 600; color: var(--ink-2); }
  .desk-nav a.active, .desk-nav a:hover { background: var(--brand-soft); color: var(--brand); }
  .topbar { padding-left: max(16px, calc((100vw - 1120px) / 2 + 16px)); padding-right: max(16px, calc((100vw - 1120px) / 2 + 16px)); }
  .hero { padding: 56px 0 96px; }
  .spec-grid { grid-template-columns: repeat(4, 1fr); }
  .list.two { grid-template-columns: repeat(3, 1fr); }
  .profile-layout { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; }
  .profile-layout .side { position: sticky; top: 80px; }
  .sticky-cta { bottom: 16px; }
  .filters { top: 61px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
