/* =====================================================
   Unique Janch Ghar — main stylesheet (brand-v3)
   Vanilla CSS · mobile-first · no framework
   Brand: Vivid Indigo #1F3A8F + Vivid Crimson #B91D2F
   Body text: Slate 700 #3A3D55 · Headings: Slate 900 #0E1024
   Backgrounds: White + Vivid Cream #FBF6EC + Slate 050 #F4F4F8
   Fonts: Inter + IBM Plex Sans (Latin) + Noto Sans Devanagari (Hindi)
   ===================================================== */

/* ---- Tokens ---- */
:root {
  /* Brand v3 — vivid digital palette */
  --indigo:        #1F3A8F;     /* primary brand · medical authority */
  --indigo-dark:   #132358;     /* deeper navy for headings */
  --indigo-soft:   #F2F4FC;     /* tints / hovers */
  --crimson:       #B91D2F;     /* accent · the lens-drop */
  --crimson-dark:  #901624;
  --cream:         #FBF6EC;     /* warm digital background */

  /* WhatsApp brand green kept for CTA recognizability */
  --wa-green:      #25D366;
  --wa-green-d:    #128C7E;

  /* Heritage darks for copy */
  --ink:           #0E1024;     /* Slate 900 — headings on light */
  --body:          #3A3D55;     /* Slate 700 — body text */
  --mid:           #6B6E83;     /* Slate 500 — captions */
  --line:          #E0E1EA;     /* Slate 100 — dividers */
  --bg:            #FFFFFF;
  --bg-alt:        #FBF6EC;     /* Vivid Cream — alternating sections */
  --bg-soft:       #F4F4F8;     /* Slate 050 */

  --font-en: 'Inter', 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-hi: 'Noto Sans Devanagari', 'Inter', system-ui, sans-serif;

  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(31, 58, 143, 0.08);
  --shadow:    0 4px 12px rgba(31, 58, 143, 0.14);

  --maxw: 1080px;
}

/* ---- Reset + base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-en);
  font-size: 16px;
  line-height: 1.55;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
:lang(hi), .hi-xl, .brand-hi, .svc-hi {
  font-family: var(--font-hi);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--indigo); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; color: var(--crimson); }
:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 2px;
  border-radius: 4px;
}
.muted { color: var(--mid); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---- Section rhythm ---- */
section { padding: 56px 0; }
section:nth-of-type(even) { background: var(--bg-alt); }
.section-title {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.section-sub {
  margin: 0 0 28px;
  color: var(--mid);
}

/* ---- Header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
}
.brand-mark svg { width: 38px; height: 38px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-hi { font-size: 16px; font-weight: 700; color: var(--crimson); }
.brand-en { font-size: 11px; color: var(--mid); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }

.menu-toggle {
  display: inline-flex; flex-direction: column; gap: 4px;
  width: 40px; height: 40px;
  background: transparent; border: 1px solid var(--line);
  border-radius: 8px;
  align-items: center; justify-content: center;
  cursor: pointer;
}
.menu-toggle span {
  display: block; width: 18px; height: 2px; background: var(--indigo); border-radius: 2px;
}

.primary-nav {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--line);
  flex-direction: column;
  padding: 8px 20px 16px;
}
.primary-nav.is-open { display: flex; }
.primary-nav a {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink); font-weight: 500;
}
.primary-nav a:last-child { border: none; }
.nav-cta {
  background: var(--wa-green);
  color: #fff !important;
  text-align: center;
  border-radius: 8px;
  padding: 12px 16px !important;
  margin-top: 8px;
}
.nav-cta:hover { background: var(--wa-green-d); text-decoration: none; }

@media (min-width: 768px) {
  .menu-toggle { display: none; }
  .primary-nav {
    display: flex !important;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: none;
    background: transparent;
  }
  .primary-nav a {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
  }
  .primary-nav a:hover { background: var(--indigo-soft); text-decoration: none; color: var(--indigo); }
  .nav-cta { margin: 0 0 0 8px; }
  .nav-cta:hover { background: var(--wa-green-d); }
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(180deg, var(--cream) 0%, #fff 100%);
  padding: 56px 0 64px;
  text-align: center;
}
.hero-mark {
  width: 96px; height: 96px;
  margin: 0 auto 20px;
}
.hero-mark svg { width: 100%; height: 100%; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--indigo);
  font-weight: 700;
  font-size: 12px;
  margin: 0 0 12px;
}
.hero h1 {
  margin: 0 0 16px;
  line-height: 1.05;
}
.hi-xl {
  display: block;
  font-size: clamp(36px, 8vw, 64px);
  font-weight: 700;
  color: var(--crimson);
  letter-spacing: -0.01em;
}
.en-xl {
  display: block;
  font-size: clamp(18px, 3vw, 24px);
  color: var(--indigo);
  font-weight: 700;
  margin-top: 6px;
  letter-spacing: 0.06em;
}
.hero-tagline {
  font-size: 17px;
  color: var(--ink);
  max-width: 640px;
  margin: 0 auto 16px;
}
.hero-tagline strong {
  color: var(--crimson);
  font-weight: 700;
}
.hero-address {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 640px;
  margin: 0 auto 24px;
  font-size: 14px;
  color: var(--mid);
  text-align: left;
}
.hero-address svg { color: var(--indigo); flex-shrink: 0; margin-top: 3px; }

.hero-ctas {
  display: flex; flex-direction: column; gap: 10px;
  align-items: center; justify-content: center;
}
@media (min-width: 480px) {
  .hero-ctas { flex-direction: row; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
  text-decoration: none !important;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--wa-green);
  color: #fff;
}
.btn-primary:hover { background: var(--wa-green-d); }
.btn-ghost {
  background: #fff;
  color: var(--indigo);
  border-color: var(--indigo);
}
.btn-ghost:hover { background: var(--indigo-soft); }
.btn-lg { padding: 16px 28px; font-size: 17px; }

/* ---- Doctors ---- */
.doctors { background: #fff !important; }
.doctor-grid {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
  margin-top: 16px;
}
@media (min-width: 600px) { .doctor-grid { grid-template-columns: 1fr 1fr; } }
.doctor-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.doctor-avatar {
  width: 64px; height: 64px;
  background: var(--indigo-soft);
  color: var(--indigo);
  border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto 12px;
  font-weight: 700;
  font-size: 22px;
  font-family: var(--font-hi);
}
.doctor-card h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 18px;
}
.doctor-cred {
  margin: 0 0 4px;
  color: var(--crimson);
  font-size: 14px;
  font-weight: 600;
}
.doctor-role { margin: 0; color: var(--mid); font-size: 13px; }

/* ---- Services ---- */
.service-grid {
  display: grid; gap: 12px;
  grid-template-columns: 1fr;
  margin-top: 16px;
}
@media (min-width: 480px) { .service-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) { .service-grid { grid-template-columns: repeat(4, 1fr); } }
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  display: flex; flex-direction: column; gap: 4px;
  color: var(--body) !important;
  text-decoration: none !important;
  transition: border-color .15s ease, transform .12s ease, box-shadow .15s ease;
}
.service-card:hover {
  border-color: var(--indigo);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.svc-hi { font-weight: 700; font-size: 17px; color: var(--ink); }
.svc-en { font-size: 13px; color: var(--mid); }
.svc-cta {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--crimson);
}

/* ---- Why us ---- */
.trust-grid {
  display: grid; gap: 12px;
  grid-template-columns: 1fr 1fr;
  margin-top: 16px;
}
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  border: 1px solid var(--line);
}
.trust-ico {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--indigo-soft);
  color: var(--crimson);
  display: grid; place-items: center;
  margin: 0 auto 10px;
  font-size: 20px;
  font-weight: 700;
}
.trust-card h3 {
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--ink);
}
.trust-card p {
  margin: 0; font-size: 13px; color: var(--body);
  font-family: var(--font-hi);
}

/* ---- Hours ---- */
.hours-table {
  width: 100%; max-width: 520px;
  border-collapse: collapse;
  margin-top: 16px;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.hours-table th, .hours-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: none; }
.hours-table th { background: var(--indigo-soft); color: var(--indigo); font-weight: 700; }
.hours-note {
  margin-top: 16px; font-size: 14px; color: var(--mid);
}
.hours-note strong { color: var(--wa-green-d); }

/* ---- Location ---- */
.loc-address { margin: 0 0 16px; font-size: 15px; color: var(--ink); }
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.loc-cta { margin-top: 16px; }

/* ---- Contact ---- */
.contact-grid {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
  margin-top: 16px;
}
@media (min-width: 768px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.contact-item h3 {
  margin: 0 0 8px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mid);
  font-weight: 700;
}
.contact-item p { margin: 0; font-size: 16px; color: var(--ink); }
.contact-item a { font-weight: 600; }
.contact-cta { text-align: center; margin-top: 32px; }

/* ---- Floating WhatsApp ---- */
.fab-wa {
  position: fixed;
  right: 16px; bottom: 16px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--wa-green);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.5);
  z-index: 60;
  transition: transform .15s ease, background .15s ease;
}
.fab-wa:hover { background: var(--wa-green-d); transform: scale(1.05); text-decoration: none; }

/* ---- Footer ---- */
.site-footer {
  background: var(--indigo-dark);
  color: #fff;
  padding: 28px 0;
  font-size: 14px;
}
.site-footer a { color: #fff; text-decoration: underline; }
.site-footer a:hover { color: var(--cream); }
.footer-row {
  display: flex; flex-direction: column; gap: 8px;
  text-align: center; align-items: center;
}
.footer-row p { margin: 0; }
.badge {
  background: rgba(255,255,255,0.12);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
}
@media (min-width: 768px) {
  .footer-row { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ---- Privacy page (shared layout) ---- */
.legal-page {
  max-width: 760px; margin: 0 auto;
  padding: 48px 20px 80px;
}
.legal-page h1 { color: var(--ink); margin-top: 0; }
.legal-page h2 { color: var(--indigo); margin-top: 32px; font-size: 20px; }
.legal-page p, .legal-page li { color: var(--body); }
.legal-page strong { color: var(--ink); }

/* ---- Reduced motion respect ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
