/* ========================================================================
   KCare Hospital — Brand Design System v2.0
   Aligned with Brand Hub: navy #0E2A47, teal #158A8D, red #D2342A
   Fonts: Plus Jakarta Sans (EN) + Mukta (HI)
   ======================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Mukta:wght@400;500;600;700;800&display=swap');

:root {
  --navy-900: #0E2A47;
  --navy-800: #14375B;
  --navy-700: #1E4A75;
  --navy-600: #2B5F8F;
  --navy-500: #4B7BA8;
  --navy-100: #E6EEF6;
  --navy-50:  #F3F7FB;

  --teal-900: #0F5A5C;
  --teal-800: #127174;
  --teal-700: #158A8D;
  --teal-600: #23A8AB;
  --teal-500: #4CC1C3;
  --teal-100: #D6F1F2;
  --teal-50:  #EDF9F9;

  --red-600: #D2342A;
  --red-500: #E64940;
  --red-100: #FBE3E1;

  --ink-900: #0B1320;
  --ink-800: #1A2333;
  --ink-700: #2F3847;
  --ink-600: #4A5468;
  --ink-500: #6B7382;
  --ink-400: #9099A6;
  --ink-300: #C4CAD3;
  --ink-200: #E4E7EC;
  --ink-100: #F1F3F6;
  --ink-50:  #F8F9FB;
  --white:   #FFFFFF;

  --success: #16A46A;
  --success-light: #D4F4E2;
  --warning: #D98A1C;

  --font-en: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-hi: 'Mukta', 'Plus Jakarta Sans', sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(14,42,71,0.06), 0 1px 3px rgba(14,42,71,0.05);
  --shadow-md: 0 4px 12px rgba(14,42,71,0.08), 0 2px 4px rgba(14,42,71,0.04);
  --shadow-lg: 0 12px 32px rgba(14,42,71,0.12), 0 4px 8px rgba(14,42,71,0.06);
  --shadow-xl: 0 20px 48px rgba(14,42,71,0.16), 0 8px 16px rgba(14,42,71,0.08);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-en); color: var(--ink-700); background: var(--ink-50); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Typography ── */
.hindi, .hi { font-family: var(--font-hi); }
h1 { font-size: clamp(1.875rem, 4.5vw, 2.875rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; color: var(--navy-900); }
h2 { font-size: clamp(1.375rem, 3vw, 1.875rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; color: var(--navy-900); }
h3 { font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.015em; color: var(--navy-900); }
h4 { font-size: 1rem; font-weight: 700; color: var(--navy-900); }
p { color: var(--ink-700); line-height: 1.65; }
.eyebrow { display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--teal-700); margin-bottom: 0.75rem; }

/* ── Layout ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 768px) { .container { padding: 0 2rem; } }
.section-pad { padding: 4.5rem 0; }
@media (max-width: 767px) { .section-pad { padding: 3rem 0; } }

/* ── Header: 3 tiers ── */
#kcare-header { position: sticky; top: 0; z-index: 100; }

.header-emergency { background: var(--red-600); color: white; padding: 7px 0; font-size: 0.8125rem; font-weight: 600; }
.header-emergency .inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.header-emergency .pulse { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: white; margin-right: 7px; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.3;} }

.header-info { background: var(--navy-900); color: #B8C2D1; padding: 8px 0; font-size: 0.8125rem; }
.header-info .inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.header-info a { color: #B8C2D1; transition: color 0.15s; }
.header-info a:hover { color: var(--teal-500); }
.header-info .sep { color: var(--navy-600); margin: 0 10px; }

.header-nav { background: white; border-bottom: 1px solid var(--ink-200); box-shadow: var(--shadow-sm); }
.header-nav .inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; gap: 1.5rem; }
.header-nav .logo img { height: 50px; width: auto; }
.nav-links { display: flex; align-items: center; list-style: none; gap: 0.125rem; }
.nav-links a { display: block; padding: 8px 11px; font-size: 0.875rem; font-weight: 500; color: var(--ink-700); border-radius: var(--radius-sm); transition: all 0.15s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--navy-700); background: var(--navy-50); }
.nav-ctas { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--ink-700); font-size: 1.375rem; }
.mobile-nav { display: none; background: white; border-top: 1px solid var(--ink-100); }
.mobile-nav a { display: block; padding: 13px 1.25rem; font-size: 0.9375rem; font-weight: 500; color: var(--ink-800); border-bottom: 1px solid var(--ink-100); }
.mobile-nav a:hover { background: var(--navy-50); color: var(--navy-700); }
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav-cta { padding: 1rem 1.25rem; display: flex; gap: 0.75rem; }

@media (max-width: 1023px) { .nav-links, .nav-ctas .hide-sm { display: none; } .mobile-menu-btn { display: block; } }
@media (min-width: 1024px) { .mobile-menu-btn { display: none; } }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: var(--radius-md); font-family: var(--font-en); font-weight: 600; font-size: 0.9rem; border: none; cursor: pointer; transition: all 0.15s; text-decoration: none; white-space: nowrap; line-height: 1; }
.btn-primary { background: var(--navy-700); color: white; }
.btn-primary:hover { background: var(--navy-800); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-accent { background: var(--teal-700); color: white; }
.btn-accent:hover { background: var(--teal-800); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-emergency { background: var(--red-600); color: white; }
.btn-emergency:hover { background: #B82920; box-shadow: var(--shadow-md); }
.btn-outline { background: white; color: var(--navy-700); border: 1.5px solid var(--navy-700); }
.btn-outline:hover { background: var(--navy-50); }
.btn-ghost { background: transparent; color: var(--navy-700); }
.btn-ghost:hover { background: var(--navy-50); }
.btn-outline-white { background: transparent; color: white; border: 1.5px solid rgba(255,255,255,0.6); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: white; }
.btn-sm { padding: 8px 16px; font-size: 0.8125rem; }
.btn-lg { padding: 15px 28px; font-size: 1rem; }

/* ── Badges ── */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: var(--radius-full); font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.badge-emergency { background: var(--red-100); color: var(--red-600); }
.badge-ayushman { background: #ECFAE6; color: #3A7A1F; }
.badge-247 { background: var(--navy-100); color: var(--navy-800); }
.badge-insurance { background: #FFF4E0; color: #8B5A13; }
.badge-teal { background: var(--teal-100); color: var(--teal-800); }
.badge-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* ── Pills ── */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--radius-full); font-size: 0.8125rem; font-weight: 600; }
.pill-success { background: var(--success-light); color: var(--success); }
.pill-warning { background: #FEF3C7; color: #D97706; }
.pill-teal { background: var(--teal-50); color: var(--teal-700); }
.pill-navy { background: var(--navy-100); color: var(--navy-800); }

/* ── Cards ── */
.card { background: white; border-radius: var(--radius-xl); border: 1px solid var(--ink-200); transition: all 0.2s; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.dept-card { background: white; border-radius: var(--radius-md); border: 1px solid var(--ink-200); padding: 1.5rem; transition: all 0.2s; display: block; text-decoration: none; }
.dept-card:hover { border-color: var(--teal-600); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.dept-card .dept-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--teal-100); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; margin-bottom: 1rem; }
.dept-card h4 { font-size: 1rem; font-weight: 700; color: var(--navy-900); margin-bottom: 2px; }
.dept-card .hi-name { font-family: var(--font-hi); font-size: 0.875rem; color: var(--ink-500); margin-bottom: 0.75rem; }
.dept-card p { font-size: 0.875rem; color: var(--ink-600); margin-bottom: 0.75rem; line-height: 1.5; }
.dept-card .link { font-size: 0.875rem; font-weight: 600; color: var(--teal-700); }

.doc-card { background: white; border-radius: var(--radius-md); border: 1px solid var(--ink-200); overflow: hidden; transition: all 0.2s; }
.doc-card:hover { border-color: var(--teal-600); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.doc-card .photo-wrap { aspect-ratio: 1; background: linear-gradient(135deg, var(--navy-100), var(--teal-100)); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.doc-card .photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.doc-card .initials { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, var(--navy-700), var(--navy-600)); color: white; display: flex; align-items: center; justify-content: center; font-size: 1.75rem; font-weight: 700; }
.doc-card .info { padding: 1.25rem; }
.doc-card .info h4 { font-size: 1rem; font-weight: 700; color: var(--navy-900); margin-bottom: 2px; }
.doc-card .spec { font-size: 0.8125rem; color: var(--teal-700); font-weight: 600; margin-bottom: 2px; }
.doc-card .spec-hi { font-family: var(--font-hi); font-size: 0.75rem; color: var(--ink-500); margin-bottom: 0.75rem; }
.doc-card .bar { display: flex; justify-content: space-between; align-items: center; padding-top: 0.75rem; border-top: 1px solid var(--ink-100); }
.doc-card .exp { font-size: 0.75rem; color: var(--ink-600); }
.doc-card .exp b { color: var(--navy-900); }

.service-card { background: white; border-radius: var(--radius-md); border: 1px solid var(--ink-200); padding: 1.5rem; transition: all 0.2s; display: block; }
.service-card:hover { border-color: var(--navy-600); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.service-card .svc-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--navy-100); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; margin-bottom: 1rem; }
.service-card h4 { font-size: 1rem; font-weight: 700; color: var(--navy-900); margin-bottom: 0.5rem; }
.service-card p { font-size: 0.875rem; color: var(--ink-600); line-height: 1.5; }

/* ── Stat strip ── */
.stat-strip { background: var(--navy-900); color: white; padding: 3rem 0; }
.stat-strip .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
@media (max-width: 767px) { .stat-strip .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }
.stat-strip .stat { border-left: 2px solid var(--teal-600); padding-left: 1.25rem; }
.stat-strip .stat b { display: block; font-size: 2.25rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1; color: white; margin-bottom: 0.5rem; }
.stat-strip .stat b em { font-style: normal; color: var(--teal-500); }
.stat-strip .stat span { font-size: 0.875rem; color: #B8C2D1; }

/* ── Section header ── */
.section-header { max-width: 640px; margin-bottom: 2.5rem; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { font-size: 1.0625rem; color: var(--ink-600); }

/* ── Page hero ── */
.page-hero { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: white; padding: 3.5rem 0; }
.page-hero h1 { color: white; margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,0.8); font-size: 1.0625rem; max-width: 640px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: rgba(255,255,255,0.6); margin-bottom: 1rem; }
.breadcrumb a { color: var(--teal-500); }
.breadcrumb .sep { color: rgba(255,255,255,0.3); }

/* ── Footer ── */
.site-footer { background: var(--navy-900); color: #B8C2D1; padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--navy-800); }
@media (max-width: 1023px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 599px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
.footer-grid h4 { font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: white; margin-bottom: 1.25rem; }
.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: 0.625rem; }
.footer-grid ul a { font-size: 0.9rem; color: #B8C2D1; transition: color 0.15s; }
.footer-grid ul a:hover { color: var(--teal-500); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; margin-bottom: 0.875rem; }
.footer-contact-item i { color: var(--teal-500); margin-top: 3px; flex-shrink: 0; width: 16px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 0; font-size: 0.8125rem; color: var(--ink-500); flex-wrap: wrap; gap: 0.75rem; }
.footer-bottom a { color: var(--teal-500); }
.ayushman-strip { display: flex; align-items: center; gap: 8px; background: rgba(22,164,106,0.12); border: 1px solid rgba(22,164,106,0.25); color: #4ADE80; padding: 8px 14px; border-radius: var(--radius-full); font-size: 0.8125rem; font-weight: 600; margin-top: 1.5rem; width: fit-content; }

/* ── Floaters ── */
.whatsapp-float { position: fixed; bottom: 5rem; right: 1.5rem; z-index: 99; width: 52px; height: 52px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(37,211,102,0.4); transition: all 0.2s; }
.whatsapp-float:hover { transform: scale(1.1); }
.back-to-top { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 99; width: 40px; height: 40px; background: var(--navy-700); color: white; border: none; border-radius: var(--radius-sm); cursor: pointer; display: none; align-items: center; justify-content: center; font-size: 1rem; box-shadow: var(--shadow-md); transition: all 0.2s; }
.back-to-top:hover { background: var(--navy-800); }
.back-to-top.visible { display: flex; }

/* ── Insurance ── */
.tpa-card { background: white; border: 1px solid var(--ink-200); border-radius: var(--radius-md); padding: 1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 0.875rem; transition: all 0.15s; }
.tpa-card:hover { border-color: var(--teal-600); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tpa-card .mono { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--navy-50); color: var(--navy-700); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.8125rem; border: 1px solid var(--navy-100); flex-shrink: 0; }
.tpa-card .ins-name { font-size: 0.9rem; font-weight: 700; color: var(--ink-900); }
.tpa-card .ins-type { font-size: 0.6875rem; color: var(--ink-500); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.tpa-card .dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(22,164,106,0.15); flex-shrink: 0; }

/* ── Gov cards ── */
.gov-card { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: white; border-radius: var(--radius-lg); padding: 1.75rem 2rem; position: relative; overflow: hidden; }
.gov-card::after { content: ''; position: absolute; right: -40px; top: -40px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(35,168,171,0.2), transparent 70%); }
.gov-card .label { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--teal-500); font-weight: 700; margin-bottom: 0.625rem; }
.gov-card h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 0.375rem; color: white; letter-spacing: -0.01em; }
.gov-card .hi-line { font-family: var(--font-hi); color: var(--teal-500); font-size: 0.9rem; margin-bottom: 0.875rem; }
.gov-card p { font-size: 0.875rem; color: rgba(255,255,255,0.85); line-height: 1.55; position: relative; z-index: 1; }
.gov-card.teal { background: linear-gradient(135deg, var(--teal-800), var(--teal-600)); }

/* ── Form ── */
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 0.8125rem; color: var(--ink-600); font-weight: 600; }
.field input, .field select, .field textarea { padding: 11px 14px; border-radius: var(--radius-md); border: 1.5px solid var(--ink-200); font-family: var(--font-en); font-size: 0.9375rem; background: white; color: var(--ink-900); width: 100%; transition: border-color 0.15s, box-shadow 0.15s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-600); box-shadow: 0 0 0 3px rgba(35,168,171,0.15); }
.field textarea { resize: vertical; min-height: 100px; }

/* ── Trust strip ── */
.trust-strip { display: flex; gap: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--ink-200); flex-wrap: wrap; }
.trust-item { font-size: 0.8375rem; color: var(--ink-700); }
.trust-item b { display: block; font-size: 1.3rem; font-weight: 800; color: var(--navy-900); line-height: 1; margin-bottom: 2px; }

/* ── Filter bar ── */
.filter-bar { background: white; border: 1px solid var(--ink-200); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-end; box-shadow: var(--shadow-sm); margin-bottom: 2rem; }
.filter-bar .field { flex: 1; min-width: 140px; }
.filter-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; }
.filter-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; background: var(--navy-100); color: var(--navy-800); border-radius: var(--radius-full); font-size: 0.8rem; font-weight: 600; cursor: pointer; border: none; }

/* ── Misc ── */
.text-center { text-align: center; }
.text-teal { color: var(--teal-700); }
.text-navy { color: var(--navy-700); }
.divider { height: 1px; background: var(--ink-200); margin: 2rem 0; }
.bg-white { background: white; }
.bg-ink-50 { background: var(--ink-50); }
.bg-teal-50 { background: var(--teal-50); }

@media print { #kcare-header, .site-footer, .whatsapp-float, .back-to-top { display: none !important; } }

/* ── Responsive grid helpers ── */
@media (max-width: 1023px) {
  /* 4-col → 2-col */
  [style*="grid-template-columns:repeat(4,1fr)"] { grid-template-columns: repeat(2,1fr) !important; }
  /* 3-col → 2-col for cards */
  [style*="grid-template-columns:repeat(3,1fr)"] { grid-template-columns: repeat(2,1fr) !important; }
  /* Hero 2-col → 1-col */
  section [style*="grid-template-columns:1fr .9fr"],
  section [style*="grid-template-columns:1fr 1fr"],
  .page-inner [style*="grid-template-columns:1fr .85fr"] { grid-template-columns: 1fr !important; }
}
@media (max-width: 639px) {
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns:repeat(2,1fr)"],
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns:1fr .9fr"],
  [style*="grid-template-columns:1fr .85fr"],
  [style*="grid-template-columns:1.1fr .9fr"],
  [style*="grid-template-columns:1fr .38fr"] { grid-template-columns: 1fr !important; }
  .stat-strip .stats-grid { grid-template-columns: repeat(2,1fr) !important; }
  .gov-card p { max-width: 100% !important; }
}
