/* =========================================================
   Life Line Multispeciality Hospital — Public Site Styles
   ========================================================= */

:root {
  --primary: #123a70;
  --primary-dark: #0c2951;
  --primary-light: #1d56a3;
  --accent-red: #e0303f;
  --accent-teal: #0f9d8c;
  --accent-orange: #f5a623;
  --accent-purple: #8b5cf6;
  --bg-light: #f5f8fc;
  --bg-soft: #eef3fa;
  --text-dark: #16233c;
  --text-gray: #5b6472;
  --border-color: #e4e9f2;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-soft: 0 10px 30px rgba(18, 58, 112, 0.08);
  --shadow-card: 0 6px 20px rgba(18, 58, 112, 0.07);
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--primary);
  margin: 0 0 14px;
  line-height: 1.25;
}
p { margin: 0 0 14px; color: var(--text-gray); }

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

.section { padding: 84px 0; }
@media (max-width: 768px) { .section { padding: 56px 0; } }

.eyebrow {
  display: inline-block;
  color: var(--accent-red);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 10px;
}

.section-head { text-align: center; max-width: 700px; margin: 0 auto 48px; }
.section-head h2 { font-size: 34px; }
.section-sub { color: var(--text-gray); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(18,58,112,.25); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-danger { background: var(--accent-red); color: #fff; box-shadow: 0 8px 20px rgba(224,48,63,.25); }
.btn-danger:hover { background: #c22331; }
.btn-outline { background: #fff; color: var(--primary); border-color: var(--border-color); }
.btn-outline:hover { border-color: var(--primary); }
.btn-light { background: #fff; color: var(--primary); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.btn-block { width: 100%; justify-content: center; }
.btn-whatsapp { background: #25D366; color: #fff; box-shadow: 0 8px 20px rgba(37,211,102,.28); }
.btn-whatsapp:hover { background: #1fb356; }

/* ============ TOPBAR ============ */
.topbar { background: var(--primary-dark); color: #cfe0f7; font-size: 13px; }
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px;
  gap: 20px;
  flex-wrap: wrap;
}
.topbar-item { display: flex; align-items: center; gap: 8px; }
.topbar-item i { color: var(--accent-orange); }
.emergency-strip { color: #ffd3d8; margin-left: auto; }
@media (max-width: 700px) {
  .topbar-item:nth-child(1) { display: none; }
}

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  box-shadow: 0 2px 14px rgba(18,58,112,.08);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent-teal));
  color: #fff; border-radius: 12px; font-size: 20px;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-heading); font-size: 19px; color: var(--primary); }
.brand-thin { font-weight: 400; color: var(--accent-teal); }
.brand-text small { font-size: 10px; letter-spacing: 1.5px; color: var(--text-gray); font-weight: 600; }
.brand-text em { font-style: normal; font-size: 10px; color: var(--accent-red); }

.main-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.main-nav a { font-weight: 600; font-size: 13px; color: var(--text-dark); position: relative; padding: 6px 0; }
.main-nav a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--primary); transition: width .2s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--primary); }
.mobile-book-btn { display: none; }

.phone-pill {
  display: flex; align-items: center; gap: 10px;
  background: var(--primary); color: #fff;
  padding: 12px 20px; border-radius: 30px; font-weight: 600; font-size: 14px;
  flex-shrink: 0;
}
.phone-pill i { background: rgba(255,255,255,.18); padding: 8px; border-radius: 50%; }

.header-cta {
  display: flex; align-items: center; gap: 8px;
  background: var(--accent-red); color: #fff;
  padding: 12px 20px; border-radius: 30px; font-weight: 600; font-size: 14px;
  flex-shrink: 0; white-space: nowrap;
}
.header-cta:hover { background: #c22331; }

.nav-toggle {
  display: none; background: none; border: none; font-size: 22px;
  color: var(--primary); cursor: pointer; margin-left: auto;
}

@media (max-width: 1150px) {
  .header-cta span { display: none; }
  .header-cta { padding: 12px; }
}
@media (max-width: 992px) {
  .main-nav {
    position: fixed; top: 0; right: -280px; height: 100vh; width: 280px;
    background: #fff; flex-direction: column; align-items: flex-start;
    padding: 90px 28px; gap: 22px; box-shadow: -8px 0 30px rgba(0,0,0,.12);
    transition: right .3s ease; z-index: 200;
  }
  .main-nav.open { right: 0; }
  .nav-toggle { display: block; }
  .phone-pill span { display: none; }
  .header-cta { display: none; }
  .header-inner { padding: 12px 16px; }
  .mobile-book-btn {
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-red); color: #fff !important; padding: 13px; border-radius: 10px;
    font-weight: 700; width: 100%; margin-top: 10px;
  }
}

/* ============ HERO ============ */
.hero { background: linear-gradient(180deg, var(--bg-light) 0%, #fff 100%); padding: 60px 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center; }
.hero-copy h1 { font-size: 46px; font-weight: 800; letter-spacing: -0.5px; }
.hero-subtitle { font-size: 18px; color: var(--text-dark); font-weight: 500; }
.hero-desc { color: var(--text-gray); max-width: 540px; }

.hero-features { display: flex; flex-wrap: wrap; gap: 24px; margin: 22px 0 30px; }
.hero-features li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; color: var(--primary); }
.hero-features li i {
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft); border-radius: 50%; color: var(--accent-red); font-size: 14px;
}
.hero-features li:nth-child(2) i { color: var(--primary-light); }
.hero-features li:nth-child(3) i { color: var(--accent-teal); }
.hero-features li:nth-child(4) i { color: var(--accent-purple); }

.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }

@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 34px; }
  .hero-media { order: -1; }
}

/* ============ ABOUT ============ */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.about-copy p { max-width: 520px; }
.about-highlight { font-weight: 700; color: var(--primary); font-size: 17px; }
.about-media { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.about-img-main { border-radius: var(--radius-md); box-shadow: var(--shadow-card); height: 100%; object-fit: cover; }
.about-img-stack { display: flex; flex-direction: column; gap: 16px; }
.about-img-stack img { border-radius: var(--radius-md); box-shadow: var(--shadow-card); object-fit: cover; height: 100%; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { grid-template-columns: 1fr 1fr; }
}

/* ============ SPECIALITIES ============ */
.section.specialities-section { background: var(--bg-light); }
.speciality-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 18px;
}
.speciality-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 26px 14px;
  text-align: center;
  box-shadow: var(--shadow-card);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text-dark);
  transition: transform .2s ease, box-shadow .2s ease;
}
.speciality-card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(18,58,112,.14); }
.speciality-icon {
  width: 56px; height: 56px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--bg-soft); color: var(--primary); font-size: 22px;
}
.speciality-card:nth-child(4n+1) .speciality-icon { color: var(--accent-red); }
.speciality-card:nth-child(4n+2) .speciality-icon { color: var(--accent-teal); }
.speciality-card:nth-child(4n+3) .speciality-icon { color: var(--accent-purple); }
.speciality-card:nth-child(4n+4) .speciality-icon { color: var(--accent-orange); }

@media (max-width: 1100px) { .speciality-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { .speciality-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============ WHY CHOOSE US ============ */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.why-card {
  background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-md);
  padding: 32px 26px; text-align: center; transition: box-shadow .2s ease, transform .2s ease;
}
.why-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-4px); }
.why-icon {
  width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 24px; margin: 0 auto 18px;
}
.why-card h3 { font-size: 18px; }
.why-card p { font-size: 14.5px; margin: 0; }

@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* ============ STATS ============ */
.stats-strip { background: linear-gradient(120deg, var(--primary-dark), var(--primary)); padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-item { display: flex; align-items: center; gap: 16px; justify-content: center; color: #fff; }
.stat-icon {
  width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0;
}
.stat-item strong { display: block; font-size: 26px; font-family: var(--font-heading); }
.stat-item span { font-size: 13px; opacity: .85; }

@media (max-width: 800px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; } }

/* ============ TESTIMONIALS ============ */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.testimonial-card {
  background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-md);
  padding: 28px; box-shadow: var(--shadow-card);
}
.testimonial-card .stars { color: var(--accent-orange); margin-bottom: 12px; font-size: 14px; }
.testimonial-card p { font-style: italic; color: var(--text-dark); }
.testimonial-person { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.testimonial-person img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testimonial-person span { font-weight: 700; color: var(--primary); font-size: 14px; }

@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr; } }

/* ============ CTA BAND ============ */
.cta-band { background: linear-gradient(120deg, var(--accent-red), #a91d29); padding: 56px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; color: #fff; }
.cta-inner h2 { color: #fff; margin-bottom: 6px; font-size: 26px; }
.cta-inner p { color: rgba(255,255,255,.85); margin: 0; }
.cta-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============ PAGE BANNER ============ */
.page-banner {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  padding: 60px 0;
  color: #fff;
}
.page-banner h1 { color: #fff; margin-bottom: 8px; font-size: 32px; }
.page-banner p { color: rgba(255,255,255,.75); margin: 0; }
.page-banner a { color: #fff; font-weight: 600; }

/* ============ VISION / MISSION ============ */
.vm-section { background: var(--bg-light); }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.vm-card { background: #fff; border-radius: var(--radius-md); padding: 34px; box-shadow: var(--shadow-card); }
.vm-icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--bg-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px;
}
@media (max-width: 700px) { .vm-grid { grid-template-columns: 1fr; } }

/* ============ VALUES ============ */
.values-grid { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.value-chip {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--border-color); border-radius: 40px;
  padding: 12px 22px; font-weight: 600; color: var(--primary);
}
.value-chip i { color: var(--accent-teal); }

/* ============ DEPARTMENTS / SERVICES GRID (inner pages) ============ */
.dept-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.dept-card {
  background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-md);
  padding: 28px 22px; box-shadow: var(--shadow-card); scroll-margin-top: 100px;
}
.dept-icon {
  width: 54px; height: 54px; border-radius: 14px; background: var(--bg-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px;
}
.dept-card h3 { font-size: 17px; }
.dept-card p { font-size: 14px; margin: 0; }

@media (max-width: 1000px) { .dept-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .dept-grid { grid-template-columns: 1fr; } }

/* ============ DOCTORS ============ */
.doctor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.doctor-card {
  background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-card);
}
.doctor-photo { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-soft); }
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; }
.doctor-body { padding: 22px; }
.doctor-body h3 { margin-bottom: 4px; font-size: 19px; }
.doctor-designation { color: var(--accent-red); font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.doctor-meta { margin-bottom: 18px; }
.doctor-meta li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-gray); margin-bottom: 8px; }
.doctor-meta li i { color: var(--primary); width: 16px; }

@media (max-width: 900px) { .doctor-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .doctor-grid { grid-template-columns: 1fr; } }

.doctor-actions { display: flex; flex-direction: column; gap: 10px; }

/* ============ FACULTY FILTER TABS ============ */
.faculty-filter {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px;
}
.faculty-filter a {
  padding: 10px 20px; border-radius: 30px; border: 1px solid var(--border-color);
  font-weight: 600; font-size: 13.5px; color: var(--text-dark); background: #fff;
  transition: all .2s ease;
}
.faculty-filter a:hover { border-color: var(--primary); color: var(--primary); }
.faculty-filter a.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ============ DEPARTMENT CARD LINK ============ */
.dept-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; color: var(--accent-red); margin-top: 6px; }
.dept-link:hover { text-decoration: underline; }

/* ============ CONTACT PAGE ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-info-card {
  display: flex; gap: 16px; background: var(--bg-light); border-radius: var(--radius-md); padding: 20px;
}
.contact-info-card span {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.contact-info-card h4 { margin: 0 0 4px; font-size: 15px; }
.contact-info-card p { margin: 0; font-size: 14px; }

.contact-form-wrap { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-card); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; color: var(--text-dark); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--border-color);
  font-family: var(--font-body); font-size: 14.5px; background: var(--bg-light);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary); background: #fff;
}
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.alert-success { background: #e6f7ee; color: #147a4f; }
.alert-error { background: #fdeceb; color: var(--accent-red); }
.alert ul { margin: 0; padding-left: 18px; }
.map-embed { margin-top: 40px; border-radius: var(--radius-md); overflow: hidden; }
.map-embed iframe { width: 100%; height: 360px; border: 0; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ============ FOOTER ============ */
.site-footer { background: var(--primary-dark); color: #c9d7ec; padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand p { color: #a9bcda; font-size: 14px; margin: 16px 0; }
.brand-footer .brand-text strong { color: #fff; }
.brand-footer .brand-text small { color: #9fb3d3; }
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; transition: background .2s ease;
}
.social-links a:hover { background: var(--accent-red); }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #a9bcda; font-size: 14px; }
.footer-col ul li a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #a9bcda; }
.footer-contact li i { color: var(--accent-orange); margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; color: #92a5c4; }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ============ FLOATING CALL BUTTON ============ */
.floating-call {
  position: fixed; bottom: 24px; right: 24px; z-index: 150;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent-red); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  box-shadow: 0 10px 24px rgba(224,48,63,.4);
  animation: pulse 2s infinite;
}
.floating-whatsapp {
  position: fixed; bottom: 92px; right: 24px; z-index: 150;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  box-shadow: 0 10px 24px rgba(37,211,102,.45);
  animation: pulseGreen 2s infinite;
}
@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
@media (max-width: 560px) {
  .floating-call { bottom: 16px; right: 16px; width: 50px; height: 50px; font-size: 19px; }
  .floating-whatsapp { bottom: 76px; right: 16px; width: 50px; height: 50px; font-size: 23px; }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(224,48,63,.5); }
  70% { box-shadow: 0 0 0 14px rgba(224,48,63,0); }
  100% { box-shadow: 0 0 0 0 rgba(224,48,63,0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .floating-call, .floating-whatsapp { animation: none; }
}

.form-hint-inline { color: var(--text-gray); font-weight: 400; font-size: 12.5px; }
