/* ==========================================================================
   Bavishi Dental Clinic - Premium Luxury Medical Design System
   Apple-Inspired Minimalist White Theme with Motion Graphics & Mobile Optimization (320px+)
   ========================================================================== */

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

:root {
  /* Color Palette */
  --primary: #0EA5E9;
  --primary-hover: #0284C7;
  --primary-light: #E0F2FE;
  --secondary: #F8FBFD;
  --accent: #00BCD4;
  --accent-glow: rgba(0, 188, 212, 0.25);
  
  --bg-main: #FFFFFF;
  --bg-subtle: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.85);
  
  --text-dark: #0F172A;
  --text-medium: #334155;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  
  --border-light: #E2E8F0;
  --border-focus: #0EA5E9;
  
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #3B82F6;
  
  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Elevation & Shadows */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(14, 165, 233, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 20px 40px -15px rgba(14, 165, 233, 0.15), 0 10px 20px -5px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 25px rgba(14, 165, 233, 0.3);
  
  /* Radius & Transitions */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-medium);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Containers */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-bg-subtle {
  background-color: var(--secondary);
}

/* Motion Graphics */
.motion-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 1;
  pointer-events: none;
  opacity: 0.6;
}

.blob-1 {
  top: -10%;
  right: -5%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, transparent 70%);
  animation: blobFloat 8s ease-in-out infinite alternate;
}

.blob-2 {
  bottom: 5%;
  left: -5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 188, 212, 0.15) 0%, transparent 70%);
  animation: blobFloat 10s ease-in-out infinite alternate-reverse;
}

@keyframes blobFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.1); }
  100% { transform: translate(-20px, 30px) scale(0.95); }
}

.animate-float {
  animation: floatMotion 4s ease-in-out infinite;
}

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

.animate-subtle-bounce {
  animation: subtleBounce 5s ease-in-out infinite;
}

@keyframes subtleBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.01); }
}

.pulse-glow {
  animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(14, 165, 233, 0); }
  100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
}

.pulse-icon {
  animation: pulseIcon 1.5s infinite;
}

@keyframes pulseIcon {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.8; }
}

/* Page Hero Banner */
.page-hero-banner {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #FFFFFF;
  padding: 4.5rem 0 3.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero-banner h1 {
  color: #FFFFFF;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.page-hero-banner p {
  color: #94A3B8;
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  max-width: 650px;
  margin: 0 auto;
}

/* Top Demo Banner */
.top-demo-banner {
  background: linear-gradient(90deg, #0EA5E9 0%, #00BCD4 100%);
  color: #FFFFFF;
  text-align: center;
  padding: 0.45rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  z-index: 1050;
  position: relative;
}

.top-demo-banner span.badge {
  background: rgba(255, 255, 255, 0.25);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  font-size: 0.7rem;
}

/* Emergency Banner */
.emergency-banner {
  background: #FFF1F2;
  border-bottom: 1px solid #FECDD3;
  color: #9F1239;
  padding: 0.5rem 0.75rem;
  font-size: 0.825rem;
  font-weight: 500;
  text-align: center;
}
.emergency-banner strong {
  font-weight: 700;
  color: #BE123C;
}

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition-normal);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.95);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo-img {
  height: 42px;
  width: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-dark);
  white-space: nowrap;
}

/* Desktop Nav Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--text-medium);
  position: relative;
  padding: 0.5rem 0;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

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

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  border: 1px solid var(--border-light);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--text-dark);
  font-size: 1.25rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.mobile-menu-toggle:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* Mobile Drawer Overlay */
.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2500;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-normal);
}

.mobile-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 320px;
  height: 100%;
  background: #FFFFFF;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: var(--transition-normal);
}

.mobile-drawer-overlay.active .mobile-drawer-content {
  transform: translateX(0);
}

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

.mobile-drawer-close {
  background: var(--secondary);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: auto;
}

.mobile-drawer-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1rem;
  transition: var(--transition-fast);
}

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

.mobile-drawer-footer {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #0284C7 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(14, 165, 233, 0.45);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--primary);
  border: 1px solid var(--border-light);
}

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

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

.btn-outline:hover {
  background: var(--primary);
  color: #FFFFFF;
}

.btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #1DA851;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1rem;
}

/* Section Header Typography */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem auto;
}

.section-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.5px;
  margin-bottom: 0.85rem;
}

.section-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-muted);
  font-weight: 400;
}

/* Hero Section */
.hero {
  padding: 3.5rem 0 4.5rem 0;
  background: radial-gradient(circle at 90% 10%, rgba(14, 165, 233, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 10% 90%, rgba(0, 188, 212, 0.06) 0%, transparent 50%);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-dark);
}

.rating-stars {
  color: #F59E0B;
}

.hero-headline {
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.15rem;
  letter-spacing: -1px;
}

.hero-headline span.highlight {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subheadline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 90%;
  line-height: 1.65;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
}

.trust-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-dark);
}

.trust-badge-item i {
  color: var(--primary);
  font-size: 1rem;
}

/* Hero Media / Graphic Showcase */
.hero-media-wrapper {
  position: relative;
}

.hero-card-main {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}

/* Floating Glass Card in Hero */
.floating-glass-card {
  position: absolute;
  bottom: -15px;
  left: -15px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 250px;
}

.floating-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

/* Counter Bar */
.counters-section {
  background: var(--bg-main);
  margin-top: -2.5rem;
  position: relative;
  z-index: 10;
}

.counters-wrapper {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.counter-item {
  border-right: 1px solid var(--border-light);
}

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

.counter-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.counter-label {
  font-size: clamp(0.8rem, 1.8vw, 0.95rem);
  color: var(--text-muted);
  font-weight: 600;
}

/* Why Choose Us Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  position: relative;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(14, 165, 233, 0.3);
}

.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  background: #E0F2FE;
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  transition: var(--transition-fast);
}

.feature-icon-wrapper i {
  color: var(--primary) !important;
  font-size: 1.6rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.feature-card:hover .feature-icon-wrapper {
  background: var(--primary);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}

.feature-card:hover .feature-icon-wrapper i {
  color: #FFFFFF !important;
}

.feature-title {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.feature-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
}

/* Treatments / Services Cards */
.treatments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.treatment-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.treatment-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(14, 165, 233, 0.4);
}

.treatment-header {
  padding: 1.5rem 1.5rem 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.treatment-badge {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.treatment-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: #E0F2FE;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.treatment-icon i {
  color: var(--primary) !important;
  font-size: 1.4rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.treatment-card:hover .treatment-icon {
  background: var(--primary);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.treatment-card:hover .treatment-icon i {
  color: #FFFFFF !important;
}

.treatment-body {
  padding: 0 1.5rem 1.25rem 1.5rem;
  flex-grow: 1;
}

.treatment-title {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.treatment-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.treatment-footer {
  padding: 1.1rem 1.5rem;
  background: var(--secondary);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* About Doctor Section */
.doctor-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}

.doctor-image-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 0.85rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  position: relative;
}

.doctor-img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.doctor-badge-floating {
  position: absolute;
  bottom: 1.5rem;
  right: -1rem;
  background: var(--bg-card);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.doctor-info h2 {
  font-size: clamp(2rem, 4vw, 2.4rem);
  margin-bottom: 0.4rem;
}

.doctor-title {
  color: var(--primary);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.doctor-bio {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.75;
}

.achievements-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.achievement-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.achievement-item i {
  color: var(--primary);
}

/* Before & After Interactive Slider */
.before-after-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  height: 400px;
  user-select: none;
}

.ba-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-before {
  width: 50%;
  overflow: hidden;
  z-index: 2;
  border-right: 3px solid #FFFFFF;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.ba-before img {
  width: 800px;
  max-width: none;
  height: 100%;
  object-fit: cover;
}

.ba-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 40px;
  height: 100%;
  margin-left: -20px;
  z-index: 10;
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ba-handle-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  font-size: 1rem;
}

.ba-label {
  position: absolute;
  top: 1rem;
  padding: 0.35rem 0.85rem;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  z-index: 5;
}
.ba-label.label-before { left: 1rem; }
.ba-label.label-after { right: 1rem; }

/* Testimonials & Google Reviews */
.reviews-slider {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0.25rem 1.25rem 0.25rem;
  -webkit-overflow-scrolling: touch;
}

.review-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  flex: 0 0 340px;
  scroll-snap-align: start;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.review-author {
  font-weight: 700;
  font-size: 1rem;
}

.review-stars {
  color: #F59E0B;
  font-size: 0.85rem;
  margin-top: 2px;
}

.review-text {
  font-size: 0.925rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.6;
}

/* Online Appointment Booking Form Card */
.booking-section {
  background: linear-gradient(180deg, var(--secondary) 0%, var(--bg-main) 100%);
}

.booking-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  max-width: 900px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

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

.form-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-subtle);
  color: var(--text-dark);
  outline: none;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px var(--primary-light);
}

textarea.form-control {
  resize: vertical;
  min-height: 90px;
}

.form-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
}

/* Contact Page Components */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-details h4 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.contact-details p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.map-responsive {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  width: 100%;
  height: 420px;
  position: relative;
  border: 1px solid var(--border-light);
}

.map-responsive iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block;
}

/* ==========================================================================
   Admin Control Panel Grid Fixes (Horizontal Layout for Doctor Dashboard)
   ========================================================================== */

.admin-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  margin-bottom: 2rem;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
  width: 100%;
}

.stat-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100px;
}

.stat-val {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  margin-top: 0.4rem;
  color: var(--text-dark);
}

.admin-container {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.custom-table th, .custom-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.custom-table th {
  background: var(--secondary);
  font-weight: 700;
  color: var(--text-dark);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.custom-table tr:hover td {
  background: #F8FAFC;
}

/* Floating Action Buttons */
.floating-actions {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 999;
}

.floating-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 1.25rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-normal);
  border: none;
  cursor: pointer;
}

.floating-btn:hover {
  transform: scale(1.1);
}

.float-call { background: var(--primary); }
.float-whatsapp { background: #25D366; }
.float-book { background: var(--accent); }
.float-top { background: var(--text-dark); opacity: 0; pointer-events: none; }
.float-top.show { opacity: 1; pointer-events: auto; }

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-normal);
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: translateY(20px);
  transition: var(--transition-normal);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--secondary);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Footer */
.footer {
  background: #0F172A;
  color: #94A3B8;
  padding: 4.5rem 0 2rem 0;
  border-top: 1px solid #1E293B;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  color: #FFFFFF;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.footer-title {
  color: #FFFFFF;
  font-size: 1.05rem;
  margin-bottom: 1.15rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid #1E293B;
  padding-top: 1.75rem;
  text-align: center;
  font-size: 0.85rem;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1200px) {
  .desktop-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  .nav-phone-btn { display: none; }
}

@media (max-width: 1024px) {
  .hero-grid, .doctor-grid, .contact-grid, .results-booking-grid {
    grid-template-columns: 1fr !important;
    gap: 2.25rem !important;
  }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .counters-wrapper { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .counter-item:nth-child(2) { border-right: none; }
}

@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full-width { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .achievements-list { grid-template-columns: 1fr; }
  .before-after-container { height: 320px; }
  .hero-img { height: 320px; }
  .doctor-img { height: 360px; }
  .doctor-badge-floating { right: 0; bottom: 1rem; padding: 0.75rem 1rem; }

  /* Mobile Admin Styling */
  .admin-container { padding: 0 0.85rem; }
  .admin-card { padding: 1.25rem 1rem; border-radius: var(--radius-md); }
  .admin-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .stat-card { padding: 1rem 0.85rem; min-height: 85px; }
  .stat-val { font-size: 1.6rem; }
  .stat-card i { font-size: 1.6rem !important; }

  /* Modals Mobile Adaptation */
  .modal-card { padding: 1.25rem 1rem; width: 95%; max-height: 92vh; border-radius: 16px; }
  .modal-card form div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 0.85rem; }
  .header-container { height: 64px; }
  .brand-logo-img { height: 36px; }
  .nav-book-btn { padding: 0.55rem 1rem; font-size: 0.8rem; }
  .nav-book-btn i { display: none; }
  
  .hero { padding: 2.5rem 0 3.5rem 0; }
  .hero-cta-group { flex-direction: column; width: 100%; }
  .hero-cta-group .btn { width: 100%; text-align: center; }
  
  .admin-stats-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .counters-wrapper { grid-template-columns: 1fr; text-align: center; }
  .counter-item { border-right: none; border-bottom: 1px solid var(--border-light); padding-bottom: 1rem; }
  .counter-item:last-child { border-bottom: none; padding-bottom: 0; }
  
  .floating-glass-card { position: relative; bottom: 0; left: 0; margin-top: 1rem; max-width: 100%; }
  
  .booking-card { padding: 2rem 1.1rem; }
  .contact-info-card { padding: 1.5rem 1.1rem; }
  
  .floating-actions { bottom: 1rem; right: 1rem; }
  .floating-btn { width: 44px; height: 44px; font-size: 1.15rem; }
  
  .before-after-container { height: 260px; }

  /* Touch-friendly buttons on mobile */
  .btn-sm { padding: 0.55rem 0.85rem; font-size: 0.825rem; }
  .custom-table th, .custom-table td { padding: 0.65rem 0.65rem; font-size: 0.82rem; }
}
