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

:root {
  --primary-color: #0d6efd;
  --secondary-color: #0dcaf0;
  --dark-color: #0f172a;
  --light-color: #f8fafc;
  --body-font: 'Inter', sans-serif;
  --heading-font: 'Plus Jakarta Sans', sans-serif;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  color: #334155;
  background-color: var(--light-color);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main, .main-content {
  flex: 1;
}
@media (max-width: 767px) {
  body {
    padding-bottom: 140px; /* To prevent WhatsApp and Emergency bar from overlapping footer/forms */
  }
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: var(--heading-font);
  font-weight: 700;
  color: #0f172a;
}

/* Navbar */
.navbar-premium {
  background-color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
}
.navbar-brand {
  color: var(--primary-color) !important;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.nav-link {
  color: #475569 !important;
  font-weight: 500;
  margin: 0 12px;
  transition: color 0.3s ease;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary-color) !important;
}
.btn-cta {
  background-color: var(--primary-color);
  color: #ffffff !important;
  font-weight: 600;
  padding: 0.6rem 1.8rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}
.btn-cta:hover {
  background-color: #0b5ed7;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(13, 110, 253, 0.75)), url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?auto=format&fit=crop&q=60&w=1440') center/cover;
  color: #ffffff;
  padding: 120px 0 160px;
  text-align: center;
}
@media (max-width: 767px) {
  .hero-section {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(13, 110, 253, 0.75)), url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?auto=format&fit=crop&q=60&w=800') center/cover;
    padding: 100px 0 120px;
  }
}
.hero-section h1 {
  font-size: 4rem;
  color: #ffffff;
  margin-bottom: 24px;
  line-height: 1.2;
}
.hero-section p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  font-weight: 300;
  color: #e2e8f0;
}

/* Trust Block */
.trust-block {
  background: #ffffff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  margin-top: -80px;
  position: relative;
  z-index: 10;
}
.trust-block h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
}
.trust-stat {
  text-align: center;
  padding: 20px;
  border-right: 1px solid #e2e8f0;
}
.trust-stat:last-child {
  border-right: none;
}
.trust-stat i {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
}
@media (max-width: 768px) {
  .trust-stat { border-right: none; border-bottom: 1px solid #e2e8f0; }
  .trust-stat:last-child { border-bottom: none; }
}

/* Cards & Image Uniformity */
.premium-card {
  background: #ffffff;
  border: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border-radius: 12px;
  transition: all 0.3s ease;
  height: 100%;
  overflow: hidden;
}
@media (max-width: 767px) {
  .hero-section h1 {
    font-size: 2rem !important;
  }
  .premium-card, .team-card, .infrastructure-img {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
  .card-body-custom, .team-info {
    padding: 18px !important;
  }
}
.premium-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}
.card-img-custom {
  aspect-ratio: 16/9;
  object-fit: cover;
  width: 100%;
  border-radius: 12px 12px 0 0;
  transition: transform 0.5s ease;
}
.premium-card:hover .card-img-custom {
  transform: scale(1.05);
}
.card-body-custom {
  padding: 24px;
}
.service-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* Buttons */
.btn-ghost {
  color: var(--primary-color);
  background: transparent;
  border: 2px solid var(--primary-color);
  font-weight: 600;
  border-radius: 50px;
  padding: 0.5rem 1.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}
.btn-ghost:hover {
  background: var(--primary-color);
  color: #ffffff;
}

/* Insurance Grid */
.insurance-section {
  padding: 20px 0 80px;
  background-color: #ffffff;
}
.insurance-logo {
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
  max-width: 140px;
  height: auto;
  margin: 20px auto;
  display: block;
}
.insurance-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Fat Footer */
.fat-footer {
  background-color: var(--dark-color);
  color: #94a3b8;
  padding: 80px 0 0;
  margin-top: auto;
}
.fat-footer .text-muted {
  color: #94a3b8 !important;
}
.fat-footer h5 {
  color: #ffffff;
  margin-bottom: 24px;
  font-size: 1.2rem;
}
.fat-footer ul {
  list-style: none;
  padding: 0;
}
.fat-footer ul li {
  margin-bottom: 12px;
}
.fat-footer ul li a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s ease;
}
.fat-footer ul li a:hover {
  color: var(--secondary-color);
}
.footer-contact i {
  width: 25px;
  color: var(--secondary-color);
}
.footer-bottom {
  background-color: #0b1120;
  text-align: center;
  padding: 20px 0;
  margin-top: 60px;
  font-size: 0.95rem;
  color: #64748b;
}

/* Sticky Emergency Bar */
.sticky-emergency {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #ef4444;
  color: #ffffff;
  text-align: center;
  padding: 12px;
  font-weight: 600;
  z-index: 1050;
  display: none;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}
@media (max-width: 767px) {
  .sticky-emergency {
    display: block;
  }
}

/* Form Styles */
.form-control-custom {
  border-radius: 10px;
  padding: 14px 20px;
  border: 1px solid #cbd5e1;
  background-color: #f8fafc;
  transition: all 0.3s ease;
}
.form-control-custom:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15);
  background-color: #ffffff;
  outline: none;
}

/* Pages generic */
.page-header {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(13, 110, 253, 0.85));
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
}
.page-header h1 {
  color: #ffffff;
  margin: 0;
}
.section-padding {
  padding: 80px 0;
}

/* About Section */
.doctor-bio-img, .infrastructure-img {
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  width: 100%;
  height: auto;
  object-fit: cover;
}
.infrastructure-img {
  aspect-ratio: 4/3;
  margin-bottom: 20px;
}
.accordion-button:not(.collapsed) {
  background-color: rgba(13, 110, 253, 0.05);
  color: var(--primary-color);
  font-weight: 600;
}
.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(0,0,0,.125);
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 60px;
  right: 20px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 35px;
  box-shadow: 0px 4px 15px rgba(0,0,0,0.2);
  z-index: 1060;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.whatsapp-float:hover {
  background-color: #1ebe57;
  color: #FFF;
  transform: translateY(-5px);
  box-shadow: 0px 6px 20px rgba(0,0,0,0.3);
}
@media (max-width: 767px) {
  .whatsapp-float {
    bottom: 70px; /* Above the sticky emergency bar */
  }
}

/* Testimonial Cards */
.testimonial-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  height: 100%;
}
.testimonial-card:hover {
  transform: translateY(-5px);
}
.testimonial-text {
  font-style: italic;
  color: #64748b;
  margin-bottom: 20px;
}
.testimonial-author {
  font-weight: 700;
  color: var(--dark-color);
}
.rating-stars {
  color: #f59e0b;
}

/* Team Section */
.team-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  height: 100%;
}
.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}
.team-img-wrapper {
  aspect-ratio: 1/1;
  overflow: hidden;
}
.team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.team-card:hover .team-img {
  transform: scale(1.05);
}
.team-info {
  padding: 24px;
}
.team-title {
  color: var(--primary-color);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 15px;
}
.opd-timings {
  background-color: #f8fafc;
  padding: 15px;
  border-radius: 8px;
  font-size: 0.9rem;
  border: 1px solid #e2e8f0;
}
.opd-timings strong {
  color: var(--dark-color);
}



/* Button micro-interactions */
.btn {
  transition: transform 0.1s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.btn:active {
  transform: scale(0.95);
}

/* Footer Link Animations */
.fat-footer ul li a {
  position: relative;
  display: inline-block;
}
.fat-footer ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}
.fat-footer ul li a:hover::after {
  width: 100%;
}

/* Insurance Icon styling */
.insurance-icon {
  transition: color 0.3s ease, transform 0.3s ease;
}
.insurance-icon:hover {
  color: var(--primary-color) !important;
  transform: translateY(-5px);
}


/* Native Resilience & UX Loader */
.global-loader { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: #ffffff; z-index: 99999; display: flex; justify-content: center; align-items: center; transition: opacity 0.5s ease; }
.global-loader.hidden { opacity: 0; pointer-events: none; }
.loader-spinner { width: 50px; height: 50px; border: 5px solid #e2e8f0; border-top-color: var(--primary-color); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.network-banner { position: fixed; top: 0; left: 0; width: 100%; text-align: center; padding: 10px; color: #fff; z-index: 100000; font-weight: 600; transform: translateY(-100%); transition: transform 0.3s ease; }
.network-banner.show { transform: translateY(0); }
.network-offline { background-color: #ef4444; }
.network-slow { background-color: #f59e0b; }
