/* Bahera Dental Hospital Master Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Noto+Sans+Devanagari:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Brand Kit Colors */
  --primary-blue: #0A64AA;
  --deep-navy: #08487F;
  --signature-teal: #00AAAA;
  --teal-green: #14C7A8;
  --base-white: #FFFFFF;
  --charcoal-text: #1F1F1F;
  --slate-subtext: #4A5568;
  --bg-light: #F4F8FA;
  --card-border: #E2E8F0;

  /* Gradients */
  --brand-gradient: linear-gradient(135deg, #0A64AA 0%, #00AAAA 50%, #14C7A8 100%);
  --navy-gradient: linear-gradient(135deg, #08487F 0%, #0A64AA 100%);
  --teal-soft-grad: linear-gradient(135deg, #E6F7F7 0%, #F4F8FA 100%);

  /* Unified Typography to Eliminate Metric Reflow */
  --font-unified-head: 'Baloo 2', 'Poppins', 'Noto Sans Devanagari', sans-serif;
  --font-unified-body: 'Poppins', 'Noto Sans Devanagari', system-ui, -apple-system, sans-serif;

  /* Spacing & Shadows - Unified container width for pixel-perfect vertical alignment */
  --container-max: 1280px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 20px rgba(10, 100, 170, 0.12);
  --shadow-lg: 0 12px 32px rgba(8, 72, 127, 0.18);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  font-size: 16px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

body {
  font-family: var(--font-unified-body);
  color: var(--charcoal-text);
  background-color: var(--base-white);
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  position: relative;
  padding-top: 90px;
  -webkit-font-smoothing: antialiased;
}

/* Typography Base - Consistent metrics for zero layout shift */
h1, h2, h3, h4, h5, h6, .brand-title {
  font-family: var(--font-unified-head);
  font-weight: 700;
  color: var(--deep-navy);
  line-height: 1.3;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: all 0.25s ease;
}

a:hover {
  color: var(--signature-teal);
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container Utility */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section-padding {
  padding: 4.5rem 0;
}

@media (max-width: 768px) {
  body {
    padding-top: 68px;
  }
  .section-padding {
    padding: 3rem 0;
  }
}

/* Section Header Component */
.section-title-wrap {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem auto;
}

.badge-tag {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(0, 170, 170, 0.12);
  color: var(--deep-navy);
  border: 1px solid rgba(0, 170, 170, 0.3);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 50px;
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.section-title {
  font-size: 2.3rem;
  color: var(--deep-navy);
  margin-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--brand-gradient);
  margin: 0.75rem auto 0 auto;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--slate-subtext);
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.75rem;
  }
}

/* Buttons & CTAs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  font-family: var(--font-latin-head);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--brand-gradient);
  color: var(--base-white);
  box-shadow: 0 4px 15px rgba(10, 100, 170, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(20, 199, 168, 0.4);
  color: var(--base-white);
}

.btn-secondary {
  background: var(--base-white);
  color: var(--primary-blue);
  border-color: var(--primary-blue);
}

.btn-secondary:hover {
  background: var(--primary-blue);
  color: var(--base-white);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--base-white);
}

.btn-whatsapp:hover {
  background: #1EBE57;
  color: var(--base-white);
  transform: translateY(-2px);
}

/* 1. HERO SECTION */
.hero-section {
  background: var(--brand-gradient);
  color: var(--base-white);
  padding: 5rem 0 4.5rem 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.hero-container {
  max-width: var(--container-max);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  z-index: 2;
}

.hero-title {
  font-size: 3.3rem;
  color: var(--base-white);
  margin-bottom: 1.1rem;
  line-height: 1.2;
  font-weight: 800;
}

.hero-subline {
  font-size: 1.55rem;
  color: #E8F8F5;
  margin-bottom: 2rem;
  font-weight: 500;
  line-height: 1.5;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0;
  min-height: 52px;
  align-items: center;
}

/* High-Contrast Hero Action Buttons with Pulse Animations */
.hero-btn-call {
  background: linear-gradient(135deg, #FFD700 0%, #FF9900 100%) !important;
  color: #08487F !important;
  font-weight: 800 !important;
  border: 2.5px solid #FFFFFF !important;
  box-shadow: 0 6px 22px rgba(255, 153, 0, 0.45) !important;
  animation: pulseGlowGold 2.2s infinite ease-in-out;
  font-size: 1.1rem !important;
  padding: 0.95rem 2.2rem !important;
  border-radius: 50px !important;
}

.hero-btn-call:hover {
  transform: translateY(-3px) scale(1.03) !important;
  box-shadow: 0 10px 30px rgba(255, 153, 0, 0.65) !important;
  background: linear-gradient(135deg, #FFE033 0%, #FF8800 100%) !important;
  color: #052C4F !important;
}

.hero-btn-wa {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
  border: 2.5px solid #FFFFFF !important;
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.45) !important;
  animation: pulseGlowGreen 2.2s infinite ease-in-out 0.4s;
  font-size: 1.1rem !important;
  padding: 0.95rem 2.2rem !important;
  border-radius: 50px !important;
}

.hero-btn-wa:hover {
  transform: translateY(-3px) scale(1.03) !important;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.65) !important;
  color: #FFFFFF !important;
}

/* Eye-Catching Pulse Keyframe Animations */
@keyframes pulseGlowGold {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.75), 0 6px 22px rgba(255, 153, 0, 0.45);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(255, 215, 0, 0), 0 6px 22px rgba(255, 153, 0, 0.45);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0), 0 6px 22px rgba(255, 153, 0, 0.45);
  }
}

@keyframes pulseGlowGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.75), 0 6px 22px rgba(37, 211, 102, 0.45);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0), 0 6px 22px rgba(37, 211, 102, 0.45);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 6px 22px rgba(37, 211, 102, 0.45);
  }
}

.hero-visual-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(8, 72, 127, 0.3);
  border: 4px solid var(--base-white);
  height: 380px;
  background: #000;
}

.hero-hospital-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.5s ease;
}

.hero-visual-card:hover .hero-hospital-img {
  transform: scale(1.05);
}

.hero-img-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(0deg, rgba(8, 72, 127, 0.95) 0%, rgba(8, 72, 127, 0) 100%);
  color: var(--base-white);
  padding: 1.5rem 1rem 0.9rem 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-title {
    font-size: 2.2rem;
    min-height: auto;
    justify-content: center;
  }
  .hero-subline {
    min-height: auto;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-highlights {
    justify-content: center;
  }
}

/* 2. ABOUT SECTION */
.about-section {
  background-color: var(--base-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3.5rem;
  align-items: center;
}

.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(8, 72, 127, 0.22);
  border: 4px solid var(--base-white);
  height: 400px;
}

.about-clinic-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.about-img-wrap:hover .about-clinic-img {
  transform: scale(1.04);
}

.about-text-content {
  font-size: 1.08rem;
  color: var(--slate-subtext);
  line-height: 1.8;
}

.about-legacy-quote {
  background: var(--bg-light);
  border-left: 5px solid var(--primary-blue);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.5rem 0 0 0;
  font-weight: 500;
  color: var(--deep-navy);
}

.stat-card {
  background: var(--bg-light);
  border: 1px solid var(--card-border);
  padding: 1.75rem 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: transform 0.3s ease;
  min-height: 145px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--signature-teal);
  box-shadow: var(--shadow-md);
}

.stat-card-icon {
  font-size: 2rem;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.stat-card-val {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--deep-navy);
  margin-bottom: 0.2rem;
  font-family: var(--font-latin-head);
}

.stat-card-lbl {
  font-size: 0.85rem;
  color: var(--slate-subtext);
  font-weight: 600;
}

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

/* 4. LEGACY STRIP */
.legacy-strip-section {
  background: var(--navy-gradient);
  color: var(--base-white);
  padding: 2.5rem 0;
}

.legacy-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.legacy-strip-item {
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.legacy-strip-item:last-child {
  border-right: none;
}

.legacy-strip-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--teal-green);
  font-family: var(--font-latin-head);
}

.legacy-strip-lbl {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--base-white);
}

@media (max-width: 768px) {
  .legacy-strip-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .legacy-strip-item:nth-child(2) {
    border-right: none;
  }
}

/* Responsive Utilities */
.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
