/* ===================================================
   HBN Homoeopathic Clinic - Design System
   Harmony · Balanced · Nature
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ===== Custom Properties ===== */
:root {
  --primary: #0D7C66;
  --primary-light: #10B981;
  --primary-lighter: #34D399;
  --primary-dark: #064E3B;
  --primary-50: #ECFDF5;
  --primary-100: #D1FAE5;
  --primary-200: #A7F3D0;
  --accent-lime: #A3E635;
  --accent-gold: #F59E0B;
  --accent-gold-light: #FDE68A;
  --bg-light: #F0FDF4;
  --bg-cream: #FAFAF5;
  --bg-white: #FFFFFF;
  --bg-dark: #022C22;
  --bg-dark-card: #0A3D2E;
  --text-primary: #1E293B;
  --text-secondary: #475569;
  --text-light: #94A3B8;
  --text-white: #F1F5F9;
  --text-white-muted: #CBD5E1;
  --border-light: rgba(13, 124, 102, 0.12);
  --border-dark: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-dark: rgba(2, 44, 34, 0.85);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
  --shadow-glow: 0 0 40px rgba(13, 124, 102, 0.25);
  --shadow-card: 0 4px 20px rgba(13, 124, 102, 0.08);
  --shadow-card-hover: 0 12px 40px rgba(13, 124, 102, 0.15);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-accent: 'Outfit', sans-serif;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
  --transition-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
  --container-max: 1200px;
  --nav-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: var(--nav-height);
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-cream);
  overflow-x: hidden;
  width: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition-base); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ===== Preloader ===== */
.preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg-dark);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.loaded { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-logo {
  display: flex; align-items: center; justify-content: center;
  animation: preloaderPulse 1.2s ease-in-out infinite;
}
.preloader-logo img { width: 120px; height: auto; object-fit: contain; }
.preloader-logo svg { width: 80px; height: 80px; }
@keyframes preloaderPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--text-primary); }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h5 { font-size: 1.125rem; }

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gold {
  background: linear-gradient(135deg, var(--accent-gold), #D97706);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Layout ===== */
.container {
  width: 100%; max-width: var(--container-max);
  margin: 0 auto; padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
  position: relative;
}
.section-sm { padding: 4rem 0; }
.section-dark {
  background: var(--bg-dark);
  color: var(--text-white);
}
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--text-white); }
.section-green {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--text-white);
}
.section-green h2, .section-green h3 { color: var(--text-white); }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem;
}
.section-header .subtitle {
  font-family: var(--font-accent);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 0.75rem;
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
}
.section-header .subtitle::before,
.section-header .subtitle::after {
  content: ''; width: 30px; height: 1.5px;
  background: var(--primary-light);
}
.section-dark .section-header .subtitle { color: var(--accent-lime); }
.section-dark .section-header .subtitle::before,
.section-dark .section-header .subtitle::after { background: var(--accent-lime); }
.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-top: 1rem;
}
.section-dark .section-header p { color: var(--text-white-muted); }

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

/* ===== Navigation ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex; align-items: center;
  transition: all var(--transition-base);
  background: transparent;
}
.navbar.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.5rem; font-weight: 700;
  color: var(--text-white);
  transition: color var(--transition-base);
  z-index: 1001;
}
.navbar.scrolled .nav-logo { color: var(--primary-dark); }
.nav-logo img, .nav-logo svg { width: 45px; height: 45px; }
.nav-logo-text span { display: block; font-family: var(--font-accent); font-size: 0.65rem; font-weight: 400; letter-spacing: 2px; text-transform: uppercase; opacity: 0.7; }

.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
}
.nav-links a {
  font-family: var(--font-accent);
  font-size: 0.9rem; font-weight: 500;
  padding: 0.5rem 1rem; border-radius: var(--radius-full);
  color: rgba(255,255,255,0.9);
  transition: all var(--transition-base);
  position: relative;
}
.navbar.scrolled .nav-links a { color: var(--text-secondary); }
.nav-links a:hover,
.nav-links a.active {
  color: var(--text-white);
  background: rgba(255,255,255,0.15);
}
.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active {
  color: var(--primary);
  background: var(--primary-50);
}

.nav-cta {
  font-family: var(--font-accent);
  font-size: 0.875rem; font-weight: 600;
  padding: 0.625rem 1.5rem !important;
  background: var(--primary) !important;
  color: white !important;
  border-radius: var(--radius-full) !important;
  transition: all var(--transition-base) !important;
}
.nav-cta:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* Mobile Nav */
.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  width: 28px; height: 20px;
  z-index: 1001;
}
.nav-toggle span {
  display: block; width: 100%; height: 2px;
  background: white; border-radius: 2px;
  transition: all var(--transition-base);
}
.navbar.scrolled .nav-toggle span { background: var(--text-primary); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-right-icons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1001;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  background: linear-gradient(160deg, var(--bg-dark) 0%, var(--primary-dark) 50%, var(--primary) 100%);
  overflow: hidden;
}
.hero-bg-pattern {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(163, 230, 53, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(13, 124, 102, 0.2) 0%, transparent 50%);
  animation: heroPatternFloat 15s ease-in-out infinite;
}
@keyframes heroPatternFloat {
  0%, 100% { transform: scale(1) translate(0, 0); }
  33% { transform: scale(1.05) translate(10px, -10px); }
  66% { transform: scale(0.98) translate(-5px, 5px); }
}

.hero-particles {
  position: absolute; inset: 0; overflow: hidden;
}
.hero-particle {
  position: absolute;
  width: 6px; height: 6px;
  background: rgba(163, 230, 53, 0.4);
  border-radius: 50%;
  animation: particleFloat 8s ease-in-out infinite;
}
.hero-particle:nth-child(2n) { background: rgba(16, 185, 129, 0.3); width: 4px; height: 4px; }
.hero-particle:nth-child(3n) { background: rgba(255, 255, 255, 0.15); width: 8px; height: 8px; }
@keyframes particleFloat {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) translateX(50px); opacity: 0; }
}

.hero .container { position: relative; z-index: 2; }
.hero-content {
  max-width: 700px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-family: var(--font-accent);
  font-size: 0.8rem; font-weight: 500;
  color: var(--accent-lime);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 0.2s both;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-lime);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  color: var(--text-white);
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.8s ease 0.4s both;
}
.hero h1 .highlight {
  position: relative; display: inline-block;
  color: var(--accent-lime);
}
.hero h1 .highlight::after {
  content: '';
  position: absolute; bottom: 2px; left: 0; right: 0;
  height: 4px; border-radius: 2px;
  background: var(--accent-lime);
  opacity: 0.4;
}
.hero-text {
  font-size: 1.15rem; color: var(--text-white-muted);
  max-width: 550px; margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s ease 0.6s both;
}
.hero-actions {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.8s both;
}
.hero-stats {
  display: flex; gap: 3rem; margin-top: 4rem;
  animation: fadeInUp 0.8s ease 1s both;
}
.hero-stat { text-align: left; }
.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem; font-weight: 700;
  color: var(--text-white);
  line-height: 1;
}
.hero-stat-number span { color: var(--accent-lime); }
.hero-stat-label {
  font-family: var(--font-accent);
  font-size: 0.85rem; color: var(--text-white-muted);
  margin-top: 0.25rem;
}

.hero-image {
  position: absolute; right: -5%; top: 50%; transform: translateY(-50%);
  width: 45%; max-width: 600px;
  animation: fadeInRight 1s ease 0.6s both;
}
.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
}
.hero-image-wrapper img {
  width: 100%; height: auto;
  object-fit: cover;
}
.hero-image-glow {
  position: absolute; inset: -20%;
  background: radial-gradient(circle, rgba(13, 124, 102, 0.3) 0%, transparent 70%);
  z-index: -1;
  animation: glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-accent);
  font-size: 0.95rem; font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  cursor: pointer; border: none;
  position: relative; overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  opacity: 0; transition: opacity var(--transition-base);
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  box-shadow: 0 4px 15px rgba(13, 124, 102, 0.35);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(13, 124, 102, 0.4);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--border-light);
}
.btn-outline-dark:hover {
  background: var(--primary-50);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-white {
  background: white;
  color: var(--primary-dark);
  box-shadow: var(--shadow-md);
}
.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.btn-sm { padding: 0.625rem 1.5rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }
.btn-icon { width: 50px; height: 50px; padding: 0; border-radius: 50%; }

/* ===== Cards ===== */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all var(--transition-base);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--primary-lighter);
}

.card-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}
.card-glass:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-dark {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}
.card-dark:hover {
  transform: translateY(-4px);
  border-color: rgba(163, 230, 53, 0.3);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* ===== Service Cards ===== */
.service-card {
  padding: 2.5rem 2rem;
  text-align: center;
}
.service-card .icon-wrapper {
  width: 72px; height: 72px;
  margin: 0 auto 1.5rem;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
  border-radius: var(--radius-lg);
  font-size: 1.75rem;
  transition: all var(--transition-spring);
}
.service-card:hover .icon-wrapper {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-glow);
}
.service-card:hover .icon-wrapper svg { color: white; }
.service-card h4 {
  font-family: var(--font-accent);
  font-size: 1.15rem; font-weight: 600;
  margin-bottom: 0.75rem;
}
.service-card p {
  font-size: 0.92rem; color: var(--text-secondary); line-height: 1.6;
}
.card-dark.service-card p, .card-dark p {
  color: var(--text-white-muted);
}

/* ===== Doctor Cards ===== */
.doctor-card {
  border-radius: var(--radius-2xl);
  overflow: hidden;
}
.doctor-card-image {
  position: relative;
  height: 380px; overflow: hidden;
}
.doctor-card-image img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  transition: transform 0.6s ease;
}
.doctor-card:hover .doctor-card-image img {
  transform: scale(1.05);
}
.doctor-card-image::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}
.doctor-card-badge {
  position: absolute; top: 1.25rem; left: 1.25rem; z-index: 2;
  padding: 0.4rem 1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  font-family: var(--font-accent);
  font-size: 0.75rem; font-weight: 600;
  color: var(--primary-dark);
  border: 1px solid var(--glass-border);
}
.doctor-card-body {
  padding: 1.75rem 2rem 2rem;
}
.doctor-card-body h3 {
  font-size: 1.4rem; margin-bottom: 0.25rem;
}
.doctor-card-body .qualification {
  font-family: var(--font-accent);
  font-size: 0.85rem; font-weight: 500;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.doctor-card-body .specialization {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}
.doctor-tags {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.doctor-tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: var(--primary-50);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-family: var(--font-accent);
  font-size: 0.75rem; font-weight: 500;
}

/* ===== Stats / Counter ===== */
.stats-section {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 5rem 0;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 2;
}
.stat-item {
  text-align: center;
  padding: 2rem;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: white;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-number .suffix { font-size: 0.7em; color: var(--accent-lime); }
.stat-label {
  font-family: var(--font-accent);
  font-size: 0.9rem; font-weight: 400;
  color: rgba(255,255,255,0.75);
}

/* ===== Testimonials ===== */
.testimonial-card {
  padding: 2.5rem;
}
.testimonial-stars {
  display: flex; gap: 0.25rem;
  margin-bottom: 1.25rem;
  color: var(--accent-gold);
  font-size: 1.1rem;
}
.testimonial-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
}
.testimonial-text::before {
  content: '"';
  position: absolute; top: -10px; left: -5px;
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--primary-100);
  line-height: 1;
}
.testimonial-author {
  display: flex; align-items: center; gap: 1rem;
}
.testimonial-author-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700;
  font-family: var(--font-accent);
}
.testimonial-author-name {
  font-family: var(--font-accent);
  font-weight: 600; font-size: 0.95rem;
}
.testimonial-author-role {
  font-size: 0.8rem; color: var(--text-light);
}

/* ===== About Preview ===== */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-image-stack {
  position: relative;
  height: 500px;
}
.about-image-main {
  position: absolute;
  width: 75%; height: 80%;
  top: 0; left: 0;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.about-image-main img { width: 100%; height: 100%; object-fit: cover; }
.about-image-secondary {
  position: absolute;
  width: 55%; height: 55%;
  bottom: 0; right: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 5px solid var(--bg-white);
}
.about-image-secondary img { width: 100%; height: 100%; object-fit: cover; }
.about-badge-float {
  position: absolute;
  top: 50%; right: 5%;
  background: var(--bg-white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: float 6s ease-in-out infinite;
  z-index: 3;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}
.about-badge-float .number {
  font-family: var(--font-heading);
  font-size: 2rem; font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.about-badge-float .label {
  font-family: var(--font-accent);
  font-size: 0.75rem; font-weight: 500;
  color: var(--text-secondary);
}

.about-content .subtitle {
  font-family: var(--font-accent);
  font-size: 0.875rem; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.about-content .subtitle::before {
  content: ''; width: 30px; height: 1.5px;
  background: var(--primary-light);
}
.about-content h2 { margin-bottom: 1.25rem; }
.about-content > p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.about-features {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
  margin-bottom: 2rem;
}
.about-feature {
  display: flex; align-items: flex-start; gap: 0.75rem;
}
.about-feature-icon {
  width: 40px; height: 40px; min-width: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-50);
  border-radius: var(--radius-md);
  color: var(--primary);
  font-size: 1.1rem;
}
.about-feature-text {
  font-family: var(--font-accent);
  font-size: 0.9rem; font-weight: 500;
  color: var(--text-primary);
}

/* ===== CTA Section ===== */
.cta-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--bg-dark), var(--primary-dark));
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(163, 230, 53, 0.1), transparent 70%);
  border-radius: 50%;
}
.cta-content {
  text-align: center;
  position: relative; z-index: 2;
  max-width: 650px; margin: 0 auto;
}
.cta-content h2 { color: white; margin-bottom: 1rem; }
.cta-content p { color: var(--text-white-muted); font-size: 1.1rem; margin-bottom: 2.5rem; }
.cta-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ===== Contact Section ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}
.contact-info-card {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}
.contact-info-card:hover {
  background: var(--primary-50);
}
.contact-info-icon {
  width: 52px; height: 52px; min-width: 52px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-md);
  color: white; font-size: 1.25rem;
}
.contact-info-text h4 {
  font-family: var(--font-accent);
  font-size: 1rem; font-weight: 600;
  margin-bottom: 0.25rem;
}
.contact-info-text p {
  font-size: 0.9rem; color: var(--text-secondary);
  line-height: 1.6;
}

.contact-form {
  background: var(--bg-white);
  padding: 3rem;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-family: var(--font-accent);
  font-size: 0.875rem; font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-cream);
  color: var(--text-primary);
  transition: all var(--transition-base);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 124, 102, 0.1);
  background: var(--bg-white);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-dark);
  color: var(--text-white-muted);
  padding: 5rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border-dark);
}
.footer-brand .nav-logo { margin-bottom: 1.25rem; color: white; }
.footer-brand p {
  font-size: 0.9rem; line-height: 1.7;
  color: var(--text-white-muted);
  max-width: 300px;
}
.footer h5 {
  font-family: var(--font-accent);
  font-weight: 600; font-size: 1rem;
  color: white; margin-bottom: 1.25rem;
}
.footer-links a {
  display: block;
  font-size: 0.9rem; color: var(--text-white-muted);
  padding: 0.35rem 0;
  transition: all var(--transition-base);
}
.footer-links a:hover {
  color: var(--accent-lime);
  padding-left: 8px;
}
.footer-contact-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.footer-contact-item svg {
  width: 18px; height: 18px; min-width: 18px;
  margin-top: 3px; color: var(--primary-light);
}
.footer-social {
  display: flex; gap: 0.75rem; margin-top: 1.5rem;
}
.footer-social a {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.08);
  color: var(--text-white-muted);
  transition: all var(--transition-base);
}
.footer-social a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}
.footer-bottom {
  padding: 1.5rem 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.85rem; color: var(--text-light);
}

/* ===== WhatsApp Float ===== */
.whatsapp-float {
  position: fixed; bottom: 2rem; right: 2rem;
  z-index: 999;
  width: 60px; height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.75rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--transition-base);
  animation: whatsappPulse 2s ease-in-out infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}
@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6), 0 0 0 15px rgba(37, 211, 102, 0.1); }
}

/* ===== Wave Dividers ===== */
.wave-divider {
  position: absolute; bottom: -1px; left: 0; right: 0;
  width: 100%; overflow: hidden;
  line-height: 0;
}
.wave-divider svg { width: 100%; height: 80px; }
.wave-divider-top {
  position: absolute; top: -1px; left: 0; right: 0;
  width: 100%; overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}
.wave-divider-top svg { width: 100%; height: 80px; }

/* ===== Scroll Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ===== Page Header (for inner pages) ===== */
.page-header {
  position: relative;
  padding: 10rem 0 5rem;
  background: linear-gradient(160deg, var(--bg-dark) 0%, var(--primary-dark) 50%, var(--primary) 100%);
  overflow: hidden;
  text-align: center;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 30% 50%, rgba(16, 185, 129, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(163, 230, 53, 0.08) 0%, transparent 40%);
}
.page-header h1 {
  color: white;
  position: relative; z-index: 2;
  margin-bottom: 1rem;
}
.page-header p {
  color: var(--text-white-muted);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
  position: relative; z-index: 2;
}
.page-header .breadcrumb {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-accent);
  font-size: 0.85rem;
  color: var(--text-white-muted);
  margin-top: 1.5rem;
  position: relative; z-index: 2;
}
.page-header .breadcrumb a { color: var(--accent-lime); }
.page-header .breadcrumb a:hover { text-decoration: underline; }
.page-header .breadcrumb .separator { opacity: 0.5; }

.page-header .wave-divider { z-index: 3; }

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover img {
  transform: scale(1.08);
}
.gallery-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item-caption {
  position: absolute; bottom: 1.5rem; left: 1.5rem;
  z-index: 2;
  color: white;
  font-family: var(--font-accent);
  font-weight: 600;
  opacity: 0; transform: translateY(10px);
  transition: all var(--transition-base);
}
.gallery-item:hover .gallery-item-caption {
  opacity: 1; transform: translateY(0);
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 2px;
  background: var(--border-light);
  transform: translateX(-50%);
}
.timeline-item {
  position: relative;
  padding: 0 0 3rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: start;
}
.timeline-dot {
  width: 16px; height: 16px;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid var(--bg-white);
  box-shadow: 0 0 0 3px var(--primary-100);
  position: relative; z-index: 2;
  justify-self: center;
  margin-top: 0.25rem;
}
.timeline-content {
  padding: 1.5rem;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.timeline-year {
  font-family: var(--font-heading);
  font-size: 1.25rem; font-weight: 700;
  color: var(--primary);
}
.timeline-item:nth-child(odd) .timeline-content { grid-column: 1; }
.timeline-item:nth-child(odd) .timeline-year { grid-column: 3; text-align: left; }
.timeline-item:nth-child(even) .timeline-content { grid-column: 3; }
.timeline-item:nth-child(even) .timeline-year { grid-column: 1; text-align: right; }

/* ===== Philosophy Section ===== */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.philosophy-card {
  text-align: center;
  padding: 3rem 2rem;
}
.philosophy-card .letter {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent-lime));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.philosophy-card h4 {
  font-family: var(--font-accent);
  margin-bottom: 0.75rem;
}
.philosophy-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== Working Hours ===== */
.hours-table {
  width: 100%;
  border-collapse: collapse;
}
.hours-table tr {
  border-bottom: 1px solid var(--border-light);
}
.hours-table td {
  padding: 1rem 0;
  font-family: var(--font-accent);
  font-size: 0.95rem;
}
.hours-table td:first-child { font-weight: 600; color: var(--text-primary); }
.hours-table td:last-child { text-align: right; color: var(--text-secondary); }
.hours-table tr.today { background: var(--primary-50); border-radius: var(--radius-md); }
.hours-table tr.today td { color: var(--primary); font-weight: 600; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.9);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: all var(--transition-base);
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 90%; max-height: 90vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}
.lightbox-close {
  position: absolute; top: 2rem; right: 2rem;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: white; font-size: 1.5rem;
  cursor: pointer;
  transition: all var(--transition-base);
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); transform: rotate(90deg); }

/* ===== Map ===== */
.map-container {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--bg-white);
  height: 400px;
}
.map-container iframe {
  width: 100%; height: 100%;
  border: none;
}

/* ===== Utility Classes ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-image { display: none; }
  .hero-content { max-width: 100%; }
  .about-preview { grid-template-columns: 1fr; gap: 3rem; }
  .about-image-stack { height: 400px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .philosophy-grid { grid-template-columns: 1fr; }
  .timeline::before { left: 24px; }
  .timeline-item { grid-template-columns: auto 1fr; gap: 1.5rem; }
  .timeline-item .timeline-year { grid-column: 2 !important; text-align: left !important; font-size: 0.85rem; }
  .timeline-item .timeline-content { grid-column: 2 !important; }
  .timeline-dot { grid-column: 1; grid-row: 1; }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: var(--glass-dark);
    backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
    flex-direction: column;
    justify-content: center; align-items: center;
    gap: 0.5rem;
    opacity: 0; visibility: hidden;
    transition: all var(--transition-base);
  }
  .nav-links.active { opacity: 1; visibility: visible; }
  .nav-links a {
    font-size: 1.25rem; padding: 0.75rem 2rem;
    color: white !important;
  }
  .nav-toggle { display: flex; }

  .section { padding: 4rem 0; }
  .section-header { margin-bottom: 3rem; }

  .hero { min-height: 100svh; align-items: flex-start; padding-top: 140px; padding-bottom: 3rem; }
  .hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-stats { gap: 2rem; flex-wrap: wrap; }
  .hero-stat-number { font-size: 2rem; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .stat-item { padding: 1.25rem; }

  .about-features { grid-template-columns: 1fr; }
  .about-image-stack { height: 350px; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }

  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 2rem 1.5rem; }

  .gallery-grid { grid-template-columns: 1fr; }

  .doctor-card-image { height: 300px; }

  .page-header { padding: 8rem 0 4rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { gap: 1.5rem; }
  .whatsapp-float { bottom: 1.5rem; right: 1.5rem; width: 52px; height: 52px; }
}

/* Fix for short screens (laptops with 125/150% scaling) */
@media (max-height: 850px) and (min-width: 769px) {
  .hero {
    align-items: flex-start;
    padding-top: 160px;
    padding-bottom: 4rem;
  }
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 0 transparent); }
  50% { transform: translateY(-3px) scale(1.02); filter: drop-shadow(0 5px 10px rgba(16, 185, 129, 0.4)); }
}

/* ============================================
   DARK THEME — Polished Deep Emerald
   ============================================ */

/* --- Core Variable Overrides --- */
[data-theme="dark"] {
  /* Backgrounds — deep emerald, NOT pure black */
  --bg-light: #0C1F1A;
  --bg-cream: #091612;
  --bg-white: #112B24;
  --bg-dark: #040E0B;
  --bg-dark-card: #0E2820;

  /* Primary palette — slightly brighter for dark surfaces */
  --primary-50: rgba(13, 124, 102, 0.12);
  --primary-100: rgba(13, 124, 102, 0.18);
  --primary-200: rgba(13, 124, 102, 0.25);

  /* Text */
  --text-primary: #E2E8F0;
  --text-secondary: #94A3B8;
  --text-light: #64748B;

  /* Glass */
  --glass-bg: rgba(17, 43, 36, 0.75);
  --glass-border: rgba(13, 124, 102, 0.18);
  --glass-dark: rgba(4, 14, 11, 0.92);

  /* Borders */
  --border-light: rgba(13, 124, 102, 0.12);

  /* Shadows — deeper for dark backgrounds */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.35);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.45);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.55);
  --shadow-glow: 0 0 30px rgba(16, 185, 129, 0.2);
  --shadow-card: 0 2px 12px rgba(0,0,0,0.3);
  --shadow-card-hover: 0 8px 30px rgba(0,0,0,0.4);

  /* Gold accent — warmer on dark */
  --accent-gold-light: #FDE68A;
}

/* Body transition */
body {
  background-color: var(--bg-cream);
  color: var(--text-primary);
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* --- Theme Toggle Button --- */
.theme-toggle {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

/* Icon states */
.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }
[data-theme="dark"] .theme-toggle .moon-icon { display: none; }
[data-theme="dark"] .theme-toggle .sun-icon { display: block; }

/* Scrolled navbar toggle */
.navbar.scrolled .theme-toggle {
  color: var(--primary-dark);
  background: rgba(13, 124, 102, 0.08);
  border-color: var(--border-light);
}
[data-theme="dark"] .navbar.scrolled .theme-toggle {
  color: var(--primary-light);
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(13, 124, 102, 0.2);
}
[data-theme="dark"] .theme-toggle {
  color: var(--accent-gold);
}

/* --- Navbar --- */
[data-theme="dark"] .navbar.scrolled {
  background: rgba(9, 22, 18, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: rgba(13, 124, 102, 0.1);
}
[data-theme="dark"] .navbar.scrolled .nav-logo {
  color: var(--text-primary);
}
[data-theme="dark"] .navbar.scrolled .nav-links a {
  color: var(--text-secondary);
}
[data-theme="dark"] .navbar.scrolled .nav-links a:hover,
[data-theme="dark"] .navbar.scrolled .nav-links a.active {
  color: var(--primary-light);
  background: rgba(13, 124, 102, 0.12);
}
[data-theme="dark"] .navbar.scrolled .nav-toggle span {
  background: var(--text-primary);
}

/* --- Logo --- */
[data-theme="dark"] .nav-logo img,
[data-theme="dark"] .footer-brand .nav-logo img,
[data-theme="dark"] .preloader-logo img {
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(16, 185, 129, 0.3));
}

/* --- Hero & Page Header --- */
[data-theme="dark"] .hero {
  background: linear-gradient(160deg, #040E0B 0%, #091612 40%, #0C1F1A 100%);
}
[data-theme="dark"] .page-header {
  background: linear-gradient(160deg, #040E0B 0%, #091612 40%, #0C1F1A 100%);
}

/* --- Cards & Glass --- */
[data-theme="dark"] .card {
  background: var(--bg-white);
  border-color: rgba(13, 124, 102, 0.1);
}
[data-theme="dark"] .card:hover {
  border-color: rgba(13, 124, 102, 0.25);
}
[data-theme="dark"] .card-glass {
  background: var(--glass-bg);
  border-color: var(--glass-border);
}

/* --- Service Cards --- */
[data-theme="dark"] .service-card .icon-wrapper {
  background: linear-gradient(135deg, rgba(13, 124, 102, 0.15), rgba(16, 185, 129, 0.1));
}
[data-theme="dark"] .service-card p {
  color: var(--text-secondary);
}

/* --- Doctor Cards --- */
[data-theme="dark"] .doctor-card-badge {
  background: rgba(9, 22, 18, 0.85);
  color: var(--primary-light);
  border-color: rgba(13, 124, 102, 0.2);
}
[data-theme="dark"] .doctor-tag {
  background: rgba(13, 124, 102, 0.12);
  color: var(--primary-light);
}

/* --- About Section --- */
[data-theme="dark"] .about-feature-icon {
  background: rgba(13, 124, 102, 0.12);
}
[data-theme="dark"] .about-badge-float {
  background: var(--bg-white);
  box-shadow: var(--shadow-lg);
}

/* --- Testimonials --- */
[data-theme="dark"] .testimonial-text {
  color: var(--text-secondary);
}
[data-theme="dark"] .testimonial-text::before {
  color: rgba(13, 124, 102, 0.2);
}

/* --- Contact Form --- */
[data-theme="dark"] .contact-form {
  background: var(--bg-white);
  border-color: rgba(13, 124, 102, 0.1);
}
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-group select {
  background: var(--bg-cream);
  border-color: rgba(13, 124, 102, 0.15);
  color: var(--text-primary);
}
[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus,
[data-theme="dark"] .form-group select:focus {
  background: var(--bg-light);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 124, 102, 0.15);
}
[data-theme="dark"] .form-group input::placeholder,
[data-theme="dark"] .form-group textarea::placeholder {
  color: var(--text-light);
}
[data-theme="dark"] .contact-info-card:hover {
  background: rgba(13, 124, 102, 0.08);
}

/* --- Timeline --- */
[data-theme="dark"] .timeline::before {
  background: rgba(13, 124, 102, 0.15);
}
[data-theme="dark"] .timeline-content {
  background: var(--bg-white);
  border-color: rgba(13, 124, 102, 0.1);
}
[data-theme="dark"] .timeline-dot {
  border-color: var(--bg-cream);
  box-shadow: 0 0 0 3px rgba(13, 124, 102, 0.2);
}


/* --- Stats Section --- */
[data-theme="dark"] .stats-section {
  background: linear-gradient(135deg, #040E0B 0%, #0A1D22 100%);
}
[data-theme="dark"] .stats-section::before {
  opacity: 0.1;
}

/* --- Footer --- */
[data-theme="dark"] .footer {
  background: #040E0B;
  border-top: 1px solid rgba(13, 124, 102, 0.08);
}

/* --- Map Container --- */
[data-theme="dark"] .map-container {
  border-color: var(--bg-white);
}
[data-theme="dark"] .map-container iframe {
  filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(105%);
}

/* --- Hours Table --- */
[data-theme="dark"] .hours-table tr {
  border-bottom-color: rgba(13, 124, 102, 0.1);
}
[data-theme="dark"] .hours-table tr.today {
  background: rgba(13, 124, 102, 0.1);
}

/* --- Philosophy Cards (about page) --- */
[data-theme="dark"] .philosophy-card p {
  color: var(--text-secondary);
}

/* --- Section Alternating Backgrounds --- */
[data-theme="dark"] .section[style*="background: var(--bg-light)"] {
  background: var(--bg-light) !important;
}

/* --- Inline var(--primary-50) elements get a dark-friendly tint --- */
/* These are handled by overriding --primary-50 in the variable block above */

/* --- Wave Divider SVG color fix --- */
[data-theme="dark"] .wave-divider svg path,
[data-theme="dark"] .wave-divider-top svg path {
  fill: var(--bg-cream);
}

/* --- btn-white in dark mode --- */
[data-theme="dark"] .btn-white {
  background: var(--bg-white);
  color: var(--primary-light);
}
[data-theme="dark"] .btn-white:hover {
  background: var(--bg-light);
}

/* --- btn-outline-dark in dark mode --- */
[data-theme="dark"] .btn-outline-dark {
  color: var(--primary-light);
  border-color: rgba(13, 124, 102, 0.2);
}
[data-theme="dark"] .btn-outline-dark:hover {
  background: rgba(13, 124, 102, 0.1);
  border-color: var(--primary-light);
}

/* --- Smooth transition on all major elements --- */
[data-theme="dark"] .card,
[data-theme="dark"] .card-glass,
[data-theme="dark"] .contact-form,
[data-theme="dark"] .timeline-content,
[data-theme="dark"] .about-badge-float,
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
  transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}

/* ===== View Transition Theme Animation ===== */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.6s;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
