/* Jagriti Hospital V2 – Premium Mobile-First Styles
   Clean, clinical, trustworthy, conversion-focused */

:root {
  --primary: #0B3D5C;
  --primary-dark: #082C42;
  --primary-light: #1A5F8A;
  --accent: #2E8B7A;
  --accent-soft: #E8F5F2;
  --gold: #C4A35A;
  --text: #1A2B3C;
  --text-muted: #5A6A7A;
  --bg: #F7F9FC;
  --white: #FFFFFF;
  --border: #E2E8F0;
  --danger: #C53030;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(11, 61, 92, 0.07);
  --shadow-lg: 0 12px 40px rgba(11, 61, 92, 0.12);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --sticky-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--sticky-h); /* space for mobile sticky bar */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-light); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 18px; }

/* ========== HEADER ========== */
.header-top {
  background: var(--primary-dark);
  color: #fff;
  font-size: .82rem;
  padding: 7px 0;
}
.header-top .container {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px;
}
.header-top a { color: rgba(255,255,255,.9); }
.header-top a:hover { color: #fff; }

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 1px 8px rgba(0,0,0,.04);
}
.header-main {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; gap: 12px;
}
.logo-link { display: flex; align-items: center; gap: 10px; }
.logo-link img { height: 46px; width: auto; }
.logo-text { font-weight: 700; font-size: 1.15rem; color: var(--primary); line-height: 1.2; }
.logo-text span { display: block; font-size: .68rem; font-weight: 500; color: var(--text-muted); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--border);
  border-radius: 8px; padding: 7px 11px; cursor: pointer; font-size: 1.2rem; color: var(--primary);
}
.main-nav ul { display: flex; list-style: none; gap: 2px; align-items: center; }
.main-nav a {
  display: block; padding: 7px 12px; color: var(--text); font-weight: 500;
  font-size: .92rem; border-radius: 8px;
}
.main-nav a:hover, .main-nav a.active { background: var(--accent-soft); color: var(--accent); }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 20px; border-radius: 8px; font-weight: 600; font-size: .93rem;
  border: none; cursor: pointer; transition: all .2s; text-align: center; line-height: 1.3;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #247A6A; color: #fff; }
.btn-outline {
  background: transparent; border: 2px solid var(--primary); color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1DA851; color: #fff; }
.btn-call { background: var(--danger); color: #fff; }
.btn-call:hover { background: #9B2C2C; color: #fff; }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn-block { width: 100%; }

/* ========== HERO ========== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0A2F45 100%);
  color: #fff; padding: 48px 0 56px; position: relative; overflow: hidden;
}
.hero .container { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block; background: rgba(255,255,255,.15);
  padding: 5px 13px; border-radius: 50px; font-size: .8rem; margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(1.55rem, 4.2vw, 2.35rem); font-weight: 700;
  line-height: 1.25; margin-bottom: 10px; max-width: 680px;
}
.hero-tagline {
  font-size: 1.05rem; opacity: .93; margin-bottom: 8px; font-weight: 500;
}
.hero p { font-size: .98rem; opacity: .88; max-width: 520px; margin-bottom: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 20px;
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,.18);
}
.stat-item strong { display: block; font-size: 1.35rem; font-weight: 700; }
.stat-item span { font-size: .8rem; opacity: .85; }

/* ========== SECTIONS ========== */
section { padding: 52px 0; }
.section-header { text-align: center; max-width: 620px; margin: 0 auto 32px; }
.section-header h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem); color: var(--primary); margin-bottom: 8px;
}
.section-header p { color: var(--text-muted); font-size: .98rem; }
.section-label {
  display: inline-block; font-size: .75rem; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px;
}

/* ========== CARDS ========== */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px;
}
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  transition: transform .22s, box-shadow .22s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-img { height: 160px; overflow: hidden; background: #E8EEF2; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px 18px; }
.card-body h3 { font-size: 1.05rem; color: var(--primary); margin-bottom: 6px; }
.card-body p { font-size: .9rem; color: var(--text-muted); margin-bottom: 10px; }
.card-link { font-weight: 600; font-size: .88rem; color: var(--accent); }

/* Service quick cards */
.service-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px;
}
.service-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px 12px; text-align: center; transition: all .2s;
}
.service-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.service-card .icon { font-size: 1.5rem; margin-bottom: 6px; }
.service-card h3 { font-size: .88rem; color: var(--primary); font-weight: 600; line-height: 1.3; }

/* ========== DOCTOR CARDS ========== */
.doctor-card { text-align: center; padding: 22px 14px; }
.doctor-avatar {
  width: 90px; height: 90px; border-radius: 50%;
  background: linear-gradient(135deg, #E8EEF2, #D0DCE6);
  margin: 0 auto 12px; display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; color: var(--primary); font-weight: 700;
  overflow: hidden;
}
.doctor-avatar img { width: 100%; height: 100%; object-fit: cover; }
.doctor-card h3 { font-size: 1rem; margin-bottom: 3px; }
.doctor-card .specialty { font-size: .82rem; color: var(--accent); font-weight: 600; margin-bottom: 4px; }
.doctor-card .opd { font-size: .8rem; color: var(--text-muted); margin-bottom: 10px; }

/* ========== STICKY MOBILE BAR ========== */
.mobile-sticky {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  background: var(--white); border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0,0,0,.08); height: var(--sticky-h);
}
.mobile-sticky .inner {
  display: grid; grid-template-columns: repeat(4, 1fr); height: 100%;
}
.mobile-sticky a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 600; color: var(--text); gap: 2px;
}
.mobile-sticky a span { font-size: 1.2rem; }
.mobile-sticky a.call { color: var(--danger); }
.mobile-sticky a.wa { color: #25D366; }

/* ========== FORMS ========== */
.form-section {
  background: var(--white); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
}
.form-group { margin-bottom: 15px; }
.form-group label {
  display: block; font-weight: 600; font-size: .88rem; margin-bottom: 5px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border);
  border-radius: 8px; font-size: .95rem; font-family: inherit; background: var(--bg);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary-light); background: #fff;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: .8rem; color: var(--text-muted); margin-top: 10px; }

/* ========== FOOTER ========== */
.site-footer {
  background: #0A2A3C; color: rgba(255,255,255,.8); padding: 44px 0 20px; font-size: .88rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 28px;
}
.footer-brand p { margin-top: 10px; line-height: 1.5; max-width: 260px; }
.footer-brand img { height: 40px; filter: brightness(0) invert(1); }
.footer-col h4 { color: #fff; font-size: .9rem; margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 7px; }
.footer-col a { color: rgba(255,255,255,.72); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 16px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .8rem;
}
.disclaimer { font-size: .75rem; opacity: .65; max-width: 580px; margin-top: 12px; }

/* ========== PAGE HERO ========== */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0A2F45 100%);
  color: #fff; padding: 36px 0;
}
.page-hero h1 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 6px; }
.page-hero p { opacity: .9; max-width: 540px; font-size: .95rem; }
.breadcrumb { font-size: .8rem; margin-bottom: 10px; opacity: .8; }
.breadcrumb a { color: rgba(255,255,255,.85); }

/* ========== FAQ ========== */
.faq-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 10px; overflow: hidden;
}
.faq-question {
  width: 100%; text-align: left; padding: 14px 18px; background: none; border: none;
  font-size: .95rem; font-weight: 600; color: var(--primary); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; font-family: inherit;
}
.faq-answer { padding: 0 18px 14px; color: var(--text-muted); font-size: .9rem; display: none; }
.faq-item.open .faq-answer { display: block; }

/* ========== WHATSAPP FLOAT (desktop) ========== */
.whatsapp-float {
  position: fixed; bottom: 80px; right: 18px; z-index: 998;
  width: 52px; height: 52px; background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(37,211,102,.4); color: #fff; font-size: 1.6rem;
  transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.07); color: #fff; }

/* ========== UTILITY ========== */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.bg-white { background: #fff; }
.bg-soft { background: var(--accent-soft); }
.philosophy {
  background: var(--accent-soft); border-radius: var(--radius); padding: 28px; text-align: center;
}
.philosophy blockquote {
  font-size: 1.2rem; font-weight: 600; color: var(--primary); margin-bottom: 8px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 10px 16px 16px; box-shadow: var(--shadow);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav a { padding: 11px 14px; }
  .header-main { position: relative; }
  .mobile-sticky { display: block; }
  .whatsapp-float { bottom: 76px; }
  .hero { padding: 36px 0 44px; }
  section { padding: 40px 0; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .hero-cta .btn { flex: 1 1 45%; }
  .service-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
