/* ==========================================================================
   DR. RAHUL SHARMA - CLINIC WEBSITE STYLESHEET (VANILLA CSS)
   Aesthetic: Clean, Modern, Trustworthy Medical Portal
   ========================================================================== */

/* --- CSS Variables / Design Tokens --- */
:root {
  --primary: #008080;
  --primary-dark: #005f5f;
  --primary-light: #e6f6f6;
  --primary-hover: #006666;
  --secondary: #0284c7;
  --accent: #06b6d4;
  --accent-light: #ecfeff;
  
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-dark: #091e2b;
  --bg-darker: #06151f;
  
  --border-light: #e2e8f0;
  --border-subtle: #edf2f7;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 30px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -4px rgba(0, 0, 0, 0.04);
  --shadow-teal: 0 10px 25px -5px rgba(0, 128, 128, 0.25);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --whatsapp-color: #25d366;
  --whatsapp-dark: #128c7e;
  
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition);
}

/* --- Layout Utility Classes --- */
.container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section-padding {
  padding-top: 80px;
  padding-bottom: 80px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--primary);
  background-color: var(--primary-light);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 128, 128, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-teal);
}

.btn-whatsapp {
  background-color: var(--whatsapp-color);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

.btn-outline-whatsapp {
  background-color: transparent;
  color: var(--whatsapp-dark);
  border: 1.5px solid #25d366;
}

.btn-outline-whatsapp:hover {
  background-color: #f0fdf4;
  color: #15803d;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-main);
  border: 1.5px solid var(--border-light);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: var(--primary-light);
}

.btn-white {
  background-color: #ffffff;
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  background-color: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.88rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
  background-color: rgba(255, 255, 255, 0.98);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 128, 128, 0.2);
}

.logo-text h1, .logo-text .brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.15;
  margin: 0;
}

.logo-text .brand-tagline {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 32px;
}

.nav-link {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link.active::after, .nav-link:hover::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  background-color: var(--bg-subtle);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding-top: 50px;
  padding-bottom: 70px;
  background: radial-gradient(circle at 80% 20%, rgba(204, 251, 241, 0.4) 0%, rgba(248, 250, 252, 0.9) 60%),
              linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  border: 1px solid rgba(0, 128, 128, 0.15);
}

.hero-badge-top span.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--whatsapp-color);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(37, 211, 102, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-main);
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero-title .highlight {
  color: var(--primary);
  background: linear-gradient(120deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-info h4 {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.stat-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-img-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid #ffffff;
  background-color: #ffffff;
}

.hero-img-card img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: top center;
  border-radius: calc(var(--radius-lg) - 4px);
}

.hero-floating-badge {
  position: absolute;
  bottom: 24px;
  left: -20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border-subtle);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.floating-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #fef08a;
  color: #854d0e;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-text h5 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.floating-text p {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-section {
  background-color: #ffffff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
}

.about-image-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image-container img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.about-image-overlay-card {
  position: absolute;
  top: 24px;
  left: 24px;
  background: rgba(0, 128, 128, 0.88);
  backdrop-filter: blur(6px);
  color: #ffffff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.about-image-overlay-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.about-image-overlay-card p {
  font-size: 0.78rem;
  opacity: 0.9;
}

.about-content h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}

.about-bio {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.credentials-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.credential-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.cred-icon {
  color: var(--primary);
  background-color: var(--primary-light);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.cred-text {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-main);
  padding-top: 4px;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-section {
  background-color: var(--bg-page);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 128, 128, 0.25);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-card:hover .service-icon-box {
  background: var(--primary);
  color: #ffffff;
  transform: scale(1.08);
}

.service-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.service-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
}

.service-link:hover {
  gap: 10px;
  color: var(--primary-dark);
}

/* ==========================================================================
   Why Choose Us Section
   ========================================================================== */
.why-section {
  background-color: #ffffff;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.why-card {
  text-align: center;
  padding: 24px 16px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.why-card:hover {
  background-color: var(--bg-page);
  transform: translateY(-4px);
}

.why-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.7rem;
}

.why-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.why-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Facilities / Gallery Section
   ========================================================================== */
.facility-section {
  background-color: var(--bg-page);
}

.facility-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.facility-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 320px;
}

.facility-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.facility-card:hover img {
  transform: scale(1.05);
}

.facility-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(0deg, rgba(9, 30, 43, 0.9) 0%, rgba(9, 30, 43, 0.4) 70%, transparent 100%);
  color: #ffffff;
}

.facility-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.facility-info p {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* ==========================================================================
   Testimonials Carousel
   ========================================================================== */
.testimonials-section {
  background-color: #ffffff;
}

.testimonial-carousel-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonial-track-wrapper {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  padding: 40px;
}

.testimonial-slide {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.testimonial-slide.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.testimonial-quote-icon {
  font-size: 2.5rem;
  color: var(--primary);
  opacity: 0.3;
  margin-bottom: 12px;
  line-height: 1;
}

.testimonial-text {
  font-size: 1.12rem;
  color: var(--text-main);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 24px;
}

.testimonial-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 18px;
}

.patient-info h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.patient-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.rating-stars {
  color: #f59e0b;
  display: flex;
  gap: 2px;
  font-size: 1.1rem;
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  z-index: 10;
}

.carousel-nav-btn:hover {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.carousel-nav-prev {
  left: -22px;
}

.carousel-nav-next {
  right: -22px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--border-light);
  transition: var(--transition);
  cursor: pointer;
}

.carousel-dot.active {
  background-color: var(--primary);
  width: 28px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   Appointment CTA Banner Strip
   ========================================================================== */
.cta-banner-section {
  background: linear-gradient(135deg, var(--primary) 0%, #006b6b 100%);
  padding: 48px 0;
  color: #ffffff;
}

.cta-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-banner-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cta-banner-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.cta-banner-left h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.cta-banner-left p {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--bg-dark);
  color: #cbd5e1;
  padding-top: 70px;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.2fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col-about h3 {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.footer-tagline {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-desc {
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  transition: var(--transition);
}

.social-icon-btn:hover {
  background-color: var(--primary);
  color: #ffffff;
  transform: translateY(-3px);
}

.social-icon-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-col-title {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--primary);
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-nav a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #94a3b8;
}

.contact-item .contact-icon {
  color: var(--accent);
  font-size: 1.15rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.contact-item a:hover {
  color: #ffffff;
}

.footer-map-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-preview-img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  background-color: #1e293b;
}

.map-card-body {
  padding: 14px;
}

.map-card-body p {
  font-size: 0.82rem;
  color: #cbd5e1;
  margin-bottom: 10px;
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #64748b;
  font-size: 0.85rem;
}

/* ==========================================================================
   Floating WhatsApp Widget
   ========================================================================== */
.floating-whatsapp-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
}

.floating-whatsapp-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--whatsapp-color);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  position: relative;
  transition: var(--transition);
}

.floating-whatsapp-btn:hover {
  transform: scale(1.1);
  background-color: var(--whatsapp-dark);
}

.floating-whatsapp-btn svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
}

.whatsapp-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #ef4444;
  border: 2px solid #ffffff;
}

.whatsapp-popup-card {
  position: absolute;
  bottom: 74px;
  right: 0;
  width: 320px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
  display: none;
  animation: slideUp 0.3s ease-out forwards;
}

.whatsapp-popup-card.open {
  display: block;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.whatsapp-popup-header {
  background-color: var(--primary);
  color: #ffffff;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.whatsapp-doctor-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.whatsapp-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.whatsapp-popup-body {
  padding: 16px;
  background-color: #f8fafc;
}

.whatsapp-chat-bubble {
  background-color: #ffffff;
  padding: 12px 14px;
  border-radius: 12px 12px 12px 2px;
  box-shadow: var(--shadow-sm);
  font-size: 0.88rem;
  color: var(--text-main);
  margin-bottom: 14px;
  border: 1px solid var(--border-subtle);
}

.whatsapp-quick-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wa-quick-btn {
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: left;
  transition: var(--transition);
}

.wa-quick-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-dark);
}

/* ==========================================================================
   Appointment Booking Modal (Google Form Integration POC)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
  animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content-card {
  background: #ffffff;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow-y: auto;
  position: relative;
}

.modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-page);
  position: sticky;
  top: 0;
  z-index: 10;
}

.modal-header h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}

.modal-close-btn:hover {
  background: #fee2e2;
  color: #ef4444;
}

.modal-body {
  padding: 28px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text-main);
  background: #ffffff;
  transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.15);
}

.modal-success-box {
  display: none;
  text-align: center;
  padding: 36px 20px;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 18px;
}

/* ==========================================================================
   Mobile Navigation Drawer & Bottom Bar
   ========================================================================== */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 290px;
  height: 100%;
  background: #ffffff;
  box-shadow: var(--shadow-xl);
  z-index: 1001;
  padding: 24px;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: auto;
}

.mobile-nav-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 6px 0;
  display: block;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  color: var(--primary);
}

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  z-index: 1000;
  display: none;
}

.mobile-drawer-backdrop.open {
  display: block;
}

/* Mobile Quick Bottom Bar */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-light);
  z-index: 990;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  align-items: center;
  justify-content: space-around;
  padding: 0 10px;
}

.mobile-bar-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-main);
  font-size: 0.72rem;
  font-weight: 600;
  flex: 1;
  height: 100%;
  text-decoration: none;
}

.mobile-bar-action svg {
  width: 22px;
  height: 22px;
  fill: var(--whatsapp-color);
}

.mobile-bar-action .material-symbols-rounded {
  font-size: 22px;
  color: var(--primary);
}

.mobile-bar-action.primary-action {
  background: var(--primary);
  color: #ffffff;
  border-radius: var(--radius-md);
  height: 44px;
  flex: 1.6;
  margin: 0 4px;
  box-shadow: 0 4px 12px rgba(0, 128, 128, 0.3);
}

.mobile-bar-action.primary-action .material-symbols-rounded {
  color: #ffffff;
  font-size: 18px;
}

.mobile-bar-action.primary-action span {
  font-size: 0.78rem;
  font-weight: 700;
}

/* ==========================================================================
   Responsive Breakpoints & Mobile Optimization
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-stats-row {
    max-width: 550px;
    margin: 0 auto;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .facility-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 64px; /* offset for mobile bottom bar */
  }

  .nav-links, .header-cta .btn-whatsapp {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }

  .mobile-bottom-bar {
    display: flex;
  }

  .floating-whatsapp-container {
    bottom: 76px;
    right: 18px;
  }

  .floating-whatsapp-btn {
    width: 52px;
    height: 52px;
  }

  .floating-whatsapp-btn svg {
    width: 28px;
    height: 28px;
  }
  
  .hero-section {
    padding-top: 32px;
    padding-bottom: 48px;
  }

  .hero-title {
    font-size: 2.2rem;
    letter-spacing: -0.5px;
  }

  .hero-desc {
    font-size: 1rem;
    margin-bottom: 24px;
  }
  
  .hero-stats-row {
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: left;
    max-width: 320px;
  }
  
  .cta-banner-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cta-banner-left {
    flex-direction: column;
    gap: 12px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-group.full-width {
    grid-column: span 1;
  }

  .modal-backdrop {
    padding: 12px;
    align-items: flex-end;
  }

  .modal-content-card {
    max-height: 88vh;
    border-radius: 20px 20px 0 0;
  }

  .modal-header {
    padding: 18px 20px;
  }

  .modal-body {
    padding: 20px 18px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .carousel-nav-btn {
    display: none;
  }

  .testimonial-track-wrapper {
    padding: 28px 20px;
  }

  .testimonial-text {
    font-size: 1rem;
  }

  .section-padding {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .section-title {
    font-size: 1.85rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-title {
    font-size: 1.95rem;
  }

  .hero-img-card img {
    max-height: 400px;
  }

  .hero-floating-badge {
    left: 8px;
    bottom: 12px;
    padding: 8px 12px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .about-image-container img {
    height: 280px;
  }

  .whatsapp-popup-card {
    width: calc(100vw - 36px);
    right: -8px;
  }
}
