/* ============================================================
   SMILING DENTAL CLINIC — ELITE TIER WEBSITE
   Shared stylesheet (styles.css) — v2 with SVG icons + animations
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  --bg-white: #FFFFFF;
  --bg-soft: #F0F7FF;
  --bg-navy: #0F2A47;
  --text-navy: #0F2A47;
  --text-gray: #64748B;
  --text-light: #CBD5E1;
  --accent-blue: #2563EB;
  --accent-blue-dark: #1D4ED8;
  --accent-blue-light: #BFDBFE;
  --accent-teal: #0D9488;
  --accent-gold: #D4A574;
  --accent-gold-bright: #FBBF24;
  --accent-purple: #8B5CF6;
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  --border-soft: #E2E8F0;
  --shadow-card: 0 4px 20px rgba(15, 42, 71, 0.08);
  --shadow-card-hover: 0 16px 40px rgba(37, 99, 235, 0.18);
  --shadow-header: 0 2px 16px rgba(15, 42, 71, 0.06);
  --shadow-modal: 0 24px 64px rgba(15, 42, 71, 0.32);
  --radius-card: 8px;
  --radius-button: 6px;
  --radius-pill: 999px;
  --header-height: 80px;
  --max-width: 1200px;
  --section-pad-y: 96px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --z-header: 100;
  --z-chatbot: 90;
  --z-whatsapp: 80;
  --z-overlay: 150;
  --z-modal: 200;

  /* Category colors for badges */
  --cat-general: #2563EB;
  --cat-cosmetic: #0D9488;
  --cat-orthodontics: #D4A574;
  --cat-surgery: #8B5CF6;
  --cat-pediatric: #10B981;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); -webkit-text-size-adjust: 100%; overflow-x: hidden; max-width: 100vw; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400; font-size: 16px; line-height: 1.6;
  color: var(--text-navy); background: var(--bg-white);
  overflow-x: hidden; max-width: 100vw;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-blue-dark); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
.skip-link { position: absolute; top: -100px; left: 0; background: var(--accent-blue); color: #fff; padding: 12px 24px; z-index: 1000; border-radius: 0 0 6px 0; font-weight: 600; }
.skip-link:focus { top: 0; color: #fff; }
*:focus-visible { outline: 3px solid var(--accent-blue); outline-offset: 2px; border-radius: 4px; }

/* ---------- 3. SVG icon system ---------- */
/* Global SVG sizing — prevents inline SVGs from rendering at huge sizes */
.icon { width: 24px; height: 24px; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 32px; height: 32px; }
.icon-xl { width: 40px; height: 40px; }

/* Constrain all inline SVGs by context — prevents 292px SVG bug */
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-large svg { width: 20px; height: 20px; }
.brand-icon svg { width: 24px; height: 24px; }
.card-icon svg { width: 28px; height: 28px; }
.feature-card .card-icon svg { width: 28px; height: 28px; }
.nav-link svg { width: 16px; height: 16px; }
.schedule-label svg { width: 12px; height: 12px; }
.schedule-time svg { width: 13px; height: 13px; }
.service-meta svg { width: 14px; height: 14px; }
.hours-col h3 svg { width: 20px; height: 20px; }
.hours-col .emerg svg { width: 18px; height: 18px; }
.contact-card h3 svg { width: 22px; height: 22px; }
.contact-list .ico svg { width: 16px; height: 16px; }
.footer-contact li svg { width: 16px; height: 16px; }
.footer-social a svg { width: 18px; height: 18px; }
.mvv-card .icon-circle svg { width: 32px; height: 32px; }
.accred-card .icon svg { width: 24px; height: 24px; }
.chatbot-toggle svg { width: 28px; height: 28px; }
.chatbot-avatar svg { width: 22px; height: 22px; }
.chat-send svg { width: 16px; height: 16px; }
.whatsapp-float svg { width: 30px; height: 30px; }
.badge svg, .badge-popular svg { width: 12px; height: 12px; }
.card-link svg { width: 14px; height: 14px; }
.section-navy .icon-lg { width: 24px; height: 24px; }
/* Emergency section icon */
.section-navy .text-center > div:first-child svg { width: 56px; height: 56px; }

/* ---------- 4. Layout ---------- */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-pad-y) 0; }
.section-soft { background: var(--bg-soft); }
.section-navy { background: var(--bg-navy); color: var(--text-light); }
.section-white { background: var(--bg-white); }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-label { display: inline-block; font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 4px; color: var(--accent-blue); margin-bottom: 16px; }
.section-title { font-weight: 700; font-size: 40px; line-height: 1.15; color: var(--text-navy); margin-bottom: 16px; }
.section-subtitle { font-size: 17px; color: var(--text-gray); line-height: 1.6; }
.section-navy .section-title { color: #fff; }
.section-navy .section-label { color: var(--accent-blue-light); }
.section-navy .section-subtitle { color: var(--text-light); }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 32px; font-family: inherit; font-weight: 600; font-size: 16px;
  border-radius: var(--radius-button);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  cursor: pointer; text-align: center; line-height: 1.2; border: 2px solid transparent;
}
.btn:hover { transform: scale(1.03); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent-blue); color: #fff; box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3); }
.btn-primary:hover { background: var(--accent-blue-dark); color: #fff; box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4); }
.btn-outline { background: transparent; color: var(--accent-blue); border-color: var(--accent-blue); }
.btn-outline:hover { background: var(--accent-blue); color: #fff; }
.btn-white { background: #fff; color: var(--accent-blue); box-shadow: 0 4px 14px rgba(0,0,0,0.15); }
.btn-white:hover { background: #F8FAFC; color: var(--accent-blue-dark); }
.btn-outline-white { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-white:hover { background: #fff; color: var(--accent-blue); }
.btn-large { padding: 18px 40px; font-size: 17px; }
.btn-whatsapp { background: #25D366; color: #fff; box-shadow: 0 4px 14px rgba(37,211,102,0.3); }
.btn-whatsapp:hover { background: #1FB855; color: #fff; }
.btn-block { width: 100%; }
.btn .icon { width: 18px; height: 18px; }

/* ---------- 6. Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--header-height);
  background: rgba(255,255,255,0); z-index: var(--z-header);
  transition: background var(--transition), box-shadow var(--transition);
  display: flex; align-items: center;
}
.site-header.scrolled { background: rgba(255,255,255,0.98); backdrop-filter: blur(8px); box-shadow: var(--shadow-header); }
.site-header.transparent-on-hero:not(.scrolled) .nav-link,
.site-header.transparent-on-hero:not(.scrolled) .brand-name { color: #fff; }
.site-header.transparent-on-hero:not(.scrolled) .brand-icon { background: rgba(255,255,255,0.18); }
.site-header.transparent-on-hero:not(.scrolled) .brand-icon svg { color: #fff; }
.site-header.transparent-on-hero:not(.scrolled) .hamburger span { background: #fff; }

.header-inner { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-icon {
  width: 44px; height: 44px; background: var(--accent-blue); border-radius: var(--radius-button);
  display: grid; place-items: center; transition: background var(--transition); color: #fff;
}
.brand-icon svg { width: 24px; height: 24px; }
.brand-name { font-weight: 700; font-size: 18px; color: var(--text-navy); transition: color var(--transition); line-height: 1.2; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative; padding: 10px 16px; font-weight: 500; font-size: 15px;
  color: var(--text-navy); border-radius: var(--radius-button);
  transition: color var(--transition);
}
.nav-link::after {
  content: ''; position: absolute; left: 16px; right: 16px; bottom: 4px;
  height: 2px; background: var(--accent-blue);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.nav-link:hover { color: var(--accent-blue); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.active { color: var(--accent-blue); font-weight: 600; }
.nav-link.active::after { transform: scaleX(1); }
.nav-cta { margin-left: 16px; padding: 12px 24px; }

.hamburger { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; border-radius: var(--radius-button); cursor: pointer; }
.hamburger span { width: 24px; height: 2px; background: var(--text-navy); transition: transform var(--transition), opacity var(--transition); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 7. Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: calc(var(--header-height) + 40px) 24px 80px; background-size: cover; background-position: center; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(15,42,71,0.85) 0%, rgba(15,42,71,0.5) 50%, rgba(37,99,235,0.3) 100%); z-index: 1; }
.hero-inner { position: relative; z-index: 2; max-width: 900px; width: 100%; color: #fff; }
.hero-eyebrow { display: inline-block; font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 4px; color: var(--accent-blue-light); margin-bottom: 24px; }
.hero-title { font-weight: 700; font-size: 64px; line-height: 1.1; color: #fff; margin-bottom: 24px; letter-spacing: -1px; }
.hero-sub { font-size: 20px; line-height: 1.6; color: var(--text-light); max-width: 700px; margin: 0 auto 40px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.hero-trust { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; font-size: 14px; font-weight: 500; color: #fff; }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust .stars { color: var(--accent-gold-bright); letter-spacing: 1px; }
.scroll-cue { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 2; color: #fff; font-size: 24px; animation: bounce 2s infinite; opacity: 0.8; }
@keyframes bounce { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,12px); } }

.hero-sm { position: relative; min-height: 50vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: calc(var(--header-height)+60px) 24px 60px; background-size: cover; background-position: center; }
.hero-sm::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(15,42,71,0.88) 0%, rgba(15,42,71,0.6) 100%); z-index: 1; }
.hero-sm .hero-inner { z-index: 2; position: relative; }
.hero-sm .hero-title { font-size: 48px; }
.hero-md { min-height: 40vh; }
.hero-md .hero-title { font-size: 44px; }

/* ---------- 8. Stats bar ---------- */
.stats-bar { background: var(--accent-blue); color: #fff; padding: 56px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 32px; text-align: center; }
.stat-num { font-weight: 700; font-size: 48px; line-height: 1; color: #fff; margin-bottom: 8px; }
.stat-label { font-weight: 400; font-size: 14px; text-transform: uppercase; letter-spacing: 2px; color: var(--accent-blue-light); }

/* ---------- 9. Cards ---------- */
.card { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-card); padding: 32px; box-shadow: var(--shadow-card); transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); height: 100%; }
.card:hover { transform: translateY(-6px) scale(1.04); box-shadow: var(--shadow-card-hover); border-color: var(--accent-blue); }
.card-icon { width: 56px; height: 56px; border-radius: 50%; background: rgba(37,99,235,0.1); display: grid; place-items: center; margin-bottom: 20px; color: var(--accent-blue); }
.card-icon svg { width: 28px; height: 28px; }
.card-icon.teal { background: rgba(13,148,136,0.1); color: var(--accent-teal); }
.card-icon.gold { background: rgba(212,165,116,0.15); color: var(--accent-gold); }
.card-icon.purple { background: rgba(139,92,246,0.1); color: var(--accent-purple); }
.card-icon.green { background: rgba(16,185,129,0.1); color: var(--success); }
.card-title { font-weight: 600; font-size: 20px; color: var(--text-navy); margin-bottom: 12px; }
.card-text { font-size: 15px; color: var(--text-gray); line-height: 1.6; margin-bottom: 16px; }
.card-link { font-weight: 600; font-size: 14px; color: var(--accent-blue); display: inline-flex; align-items: center; gap: 6px; transition: gap var(--transition), color var(--transition); }
.card-link:hover { gap: 10px; color: var(--accent-blue-dark); }

/* Service card with image — whole card scales on hover, image stays put */
.service-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-6px) scale(1.04); box-shadow: var(--shadow-card-hover); border-color: var(--accent-blue); }
.service-image { width: 100%; height: 180px; overflow: hidden; position: relative; }
.service-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.service-card:hover .service-image img { transform: scale(1.02); }
.service-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.service-body .card-title { margin-bottom: 8px; }
.service-body .card-text { margin-bottom: 12px; }
.service-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-gray); margin-bottom: 8px; }
.service-meta svg { width: 14px; height: 14px; }
.service-body .price { font-weight: 700; font-size: 20px; color: var(--accent-blue); margin: 8px 0 16px; }

/* Badges with spacing + unique colors */
.badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; padding: 5px 12px; border-radius: var(--radius-pill); }
.badge-general { background: rgba(37,99,235,0.1); color: var(--cat-general); border: 1px solid rgba(37,99,235,0.2); }
.badge-cosmetic { background: rgba(13,148,136,0.1); color: var(--cat-cosmetic); border: 1px solid rgba(13,148,136,0.2); }
.badge-orthodontics { background: rgba(212,165,116,0.15); color: var(--cat-orthodontics); border: 1px solid rgba(212,165,116,0.3); }
.badge-surgery { background: rgba(139,92,246,0.1); color: var(--cat-surgery); border: 1px solid rgba(139,92,246,0.2); }
.badge-pediatric { background: rgba(16,185,129,0.1); color: var(--cat-pediatric); border: 1px solid rgba(16,185,129,0.2); }
.badge-popular { background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-bright) 100%); color: #fff; border: none; box-shadow: 0 2px 8px rgba(212,165,116,0.3); }
.badge-popular svg { width: 12px; height: 12px; }

/* Feature card */
.feature-card { background: #fff; border-radius: var(--radius-card); padding: 28px; border-left: 4px solid var(--accent-blue); box-shadow: var(--shadow-card); transition: transform var(--transition), box-shadow var(--transition); height: 100%; }
.feature-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: var(--shadow-card-hover); }

/* ---------- 10. Doctor cards ---------- */
.doctor-card { background: #fff; border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); transition: transform var(--transition), box-shadow var(--transition); height: 100%; display: flex; flex-direction: column; }
.doctor-card:hover { transform: translateY(-8px) scale(1.03); box-shadow: var(--shadow-card-hover); }
.doctor-photo { width: 100%; height: 280px; object-fit: cover; object-position: center 25%; filter: grayscale(20%); transition: filter 0.5s ease, transform 0.5s ease; }
.doctor-card:hover .doctor-photo { filter: grayscale(0); transform: scale(1.05); }
.doctor-info { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.doctor-name { font-weight: 600; font-size: 20px; color: var(--text-navy); margin-bottom: 4px; }
.doctor-role { font-weight: 500; font-size: 14px; color: var(--accent-blue); margin-bottom: 6px; }
.doctor-qual { font-weight: 400; font-size: 13px; color: var(--text-gray); margin-bottom: 12px; }
.doctor-specialties { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tag { font-size: 12px; font-weight: 500; padding: 4px 10px; background: var(--bg-soft); color: var(--text-navy); border-radius: var(--radius-pill); }

/* Doctor schedule — clean layout */
.doctor-schedule { background: var(--bg-soft); border-radius: var(--radius-button); padding: 12px 14px; margin-bottom: 16px; }
.schedule-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-gray); margin-bottom: 6px; display: flex; align-items: center; gap: 4px; }
.schedule-label svg { width: 12px; height: 12px; }
.schedule-days { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 4px; }
.day-badge { font-size: 11px; font-weight: 600; padding: 3px 8px; background: var(--accent-blue); color: #fff; border-radius: 4px; }
.day-badge.off { background: var(--border-soft); color: var(--text-gray); }
.schedule-time { font-size: 13px; font-weight: 600; color: var(--text-navy); }

.doctor-actions { margin-top: auto; display: flex; gap: 8px; flex-direction: column; }

/* ---------- 11. Testimonials ---------- */
.testimonial-card { background: #fff; border-radius: var(--radius-card); padding: 32px; box-shadow: var(--shadow-card); border-top: 3px solid var(--accent-gold); height: 100%; display: flex; flex-direction: column; transition: transform var(--transition), box-shadow var(--transition); }
.testimonial-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: var(--shadow-card-hover); }
.testimonial-stars { color: var(--accent-gold-bright); font-size: 18px; letter-spacing: 2px; margin-bottom: 16px; }
.testimonial-text { font-size: 16px; line-height: 1.7; color: var(--text-navy); margin-bottom: 24px; flex: 1; font-style: italic; }
.testimonial-author { font-weight: 600; font-size: 15px; color: var(--text-navy); }
.testimonial-meta { font-size: 13px; color: var(--text-gray); margin-top: 2px; }
.testimonial-source { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 12px; font-weight: 500; color: var(--text-gray); }
.google-badge { width: 18px; height: 18px; background: #fff; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 10px; color: #4285F4; }

/* ---------- 12. Insurance ---------- */
/* Insurance cards — 3-column grid for perfect alignment */
.insurance-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; max-width: 720px; margin-left: auto; margin-right: auto; }
.insurance-card { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-card); padding: 24px 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; box-shadow: var(--shadow-card); transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.insurance-card:hover { transform: translateY(-4px) scale(1.05); box-shadow: var(--shadow-card-hover); border-color: var(--accent-blue); }
.insurance-card .ins-icon { width: 40px; height: 40px; display: grid; place-items: center; color: var(--accent-blue); }
.insurance-card .ins-icon svg { width: 32px; height: 32px; }
.insurance-card .ins-name { font-weight: 700; font-size: 15px; color: var(--text-navy); text-align: center; }
.insurance-card .ins-type { font-size: 11px; color: var(--text-gray); text-transform: uppercase; letter-spacing: 1px; }

/* ---------- 13. Hours/location ---------- */
.hours-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 48px; }
.hours-col h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 2px; color: var(--accent-blue-light); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.hours-col h3 svg { width: 20px; height: 20px; }
.hours-col ul li { padding: 8px 0; color: var(--text-light); font-size: 15px; border-bottom: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; gap: 16px; }
.hours-col ul li:last-child { border-bottom: none; }
.hours-col ul li strong { color: #fff; font-weight: 500; }
.hours-col .emerg { margin-top: 16px; padding: 12px 16px; background: rgba(239,68,68,0.15); border-left: 3px solid var(--error); border-radius: 4px; font-size: 14px; color: #fff; display: flex; align-items: center; gap: 8px; }
.hours-col .emerg svg { width: 18px; height: 18px; flex-shrink: 0; }
.hours-col-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }

/* ---------- 14. Final CTA ---------- */
.final-cta { background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-dark) 100%); color: #fff; padding: 80px 0; text-align: center; }
.final-cta h2 { font-weight: 700; font-size: 40px; margin-bottom: 16px; color: #fff; }
.final-cta p { font-size: 18px; color: var(--accent-blue-light); margin-bottom: 32px; }

/* ---------- 15. Footer ---------- */
.site-footer { background: #0A1F36; color: var(--text-light); padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { margin-top: 16px; font-size: 14px; line-height: 1.7; color: var(--text-light); max-width: 320px; }
.footer-col h4 { color: #fff; font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: var(--text-light); font-size: 14px; transition: color var(--transition); }
.footer-col ul li a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-light); margin-bottom: 12px; }
.footer-contact li svg { width: 16px; height: 16px; color: var(--accent-blue-light); flex-shrink: 0; margin-top: 2px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--text-gray); }

/* Social media links — also used in contact card */
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.08); display: grid; place-items: center; color: #fff; transition: background var(--transition), transform var(--transition); }
.footer-social a:hover { background: var(--accent-blue); transform: scale(1.1); }
.footer-social a svg { width: 18px; height: 18px; }

/* Contact card social links — styled for light background */
.contact-social { display: flex; gap: 12px; margin-top: 20px; }
.contact-social a { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; color: var(--accent-blue); transition: background var(--transition), color var(--transition), transform var(--transition); }
.contact-social a:hover { background: var(--accent-blue); color: #fff; transform: scale(1.1); }
.contact-social a svg { width: 18px; height: 18px; }

/* ---------- 16. Animations ---------- */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.page-enter { animation: pageEnter 0.5s ease; }
@keyframes pageEnter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- 17. Grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 32px; }

/* ---------- 18. About page ---------- */
.story-grid { display: grid; grid-template-columns: 60% 40%; gap: 48px; align-items: start; }
.story-text p { margin-bottom: 20px; font-size: 16px; line-height: 1.8; color: var(--text-navy); }
.story-img { border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); margin-bottom: 24px; }
.story-img img { width: 100%; height: 320px; object-fit: cover; }
.founder-quote { background: var(--bg-soft); border-left: 4px solid var(--accent-blue); padding: 24px; border-radius: var(--radius-card); }
.founder-quote blockquote { font-style: italic; font-size: 16px; color: var(--text-navy); margin-bottom: 16px; line-height: 1.7; }
.founder-quote .who { font-weight: 600; font-size: 14px; color: var(--text-navy); }
.founder-quote .who span { display: block; font-weight: 400; color: var(--text-gray); font-size: 13px; }

.mvv-card { background: #fff; border-radius: var(--radius-card); padding: 36px; text-align: center; box-shadow: var(--shadow-card); height: 100%; border-top: 4px solid var(--accent-blue); transition: transform var(--transition), box-shadow var(--transition); }
.mvv-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: var(--shadow-card-hover); }
.mvv-card .icon-circle { width: 64px; height: 64px; border-radius: 50%; background: rgba(37,99,235,0.1); display: grid; place-items: center; margin: 0 auto 16px; color: var(--accent-blue); }
.mvv-card .icon-circle svg { width: 32px; height: 32px; }
.mvv-card h3 { font-weight: 700; font-size: 22px; color: var(--text-navy); margin-bottom: 12px; }
.mvv-card p { color: var(--text-gray); font-size: 15px; line-height: 1.7; }

/* ---------- 19. Timeline (redesigned with image cards) ---------- */
.timeline { position: relative; max-width: 900px; margin: 0 auto; padding: 24px 0; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; background: linear-gradient(to bottom, var(--accent-blue), var(--accent-teal)); transform: translateX(-50%); border-radius: 2px; }
.timeline-item { position: relative; width: 50%; padding: 0 40px 56px; box-sizing: border-box; }
.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; text-align: left; }
.timeline-dot { position: absolute; top: 8px; width: 22px; height: 22px; background: #fff; border: 4px solid var(--accent-blue); border-radius: 50%; box-shadow: 0 0 0 4px rgba(37,99,235,0.15); z-index: 2; transition: all var(--transition); cursor: pointer; }
.timeline-item:nth-child(odd) .timeline-dot { right: -11px; }
.timeline-item:nth-child(even) .timeline-dot { left: -11px; }
.timeline-item:hover .timeline-dot, .timeline-item.active .timeline-dot { background: var(--accent-blue); box-shadow: 0 0 0 6px rgba(37,99,235,0.25); transform: scale(1.15); }
.timeline-year { font-weight: 700; font-size: 28px; color: var(--accent-blue); margin-bottom: 4px; }
.timeline-title { font-weight: 600; font-size: 18px; color: var(--text-navy); margin-bottom: 6px; }
.timeline-desc { font-size: 14px; color: var(--text-gray); line-height: 1.6; }

/* Slide-out card — responsive width */
.timeline-card-out { position: absolute; top: 0; width: min(320px, 28vw); min-width: 240px; background: #fff; border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card-hover); opacity: 0; visibility: hidden; transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s; z-index: 10; }
.timeline-item:nth-child(odd) .timeline-card-out { right: calc(100% + 24px); transform: translateX(20px); }
.timeline-item:nth-child(even) .timeline-card-out { left: calc(100% + 24px); transform: translateX(-20px); }
/* Desktop: only trigger on dot hover, not whole item */
@media (min-width: 769px) {
  .timeline-dot:hover ~ .timeline-card-out,
  .timeline-item.dot-hovered .timeline-card-out { opacity: 1; visibility: visible; transform: translateX(0); }
}
.timeline-item.active .timeline-card-out { opacity: 1; visibility: visible; transform: translateX(0); }
.timeline-card-strip { background: var(--accent-blue); color: #fff; padding: 12px 16px; font-weight: 700; font-size: 15px; }
.timeline-card-strip span { font-size: 12px; font-weight: 400; opacity: 0.9; display: block; }
.timeline-card-out img { width: 100%; height: 140px; object-fit: cover; }
.timeline-card-body { padding: 12px 16px; font-size: 13px; color: var(--text-gray); line-height: 1.5; }

/* ---------- 20. Services toolbar ---------- */
.services-toolbar { position: sticky; top: var(--header-height); z-index: 50; background: rgba(255,255,255,0.96); backdrop-filter: blur(8px); box-shadow: 0 4px 12px rgba(15,42,71,0.06); padding: 16px 0; margin-bottom: 48px; }
.toolbar-inner { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tab { padding: 8px 18px; font-size: 14px; font-weight: 500; border-radius: var(--radius-pill); background: var(--bg-soft); color: var(--text-navy); border: 1px solid transparent; transition: all var(--transition); cursor: pointer; }
.filter-tab:hover { background: rgba(37,99,235,0.1); transform: scale(1.05); }
.filter-tab.active { background: var(--accent-blue); color: #fff; box-shadow: 0 4px 12px rgba(37,99,235,0.3); }
.toolbar-right { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.search-input, .sort-select { padding: 10px 16px; font-size: 14px; border: 1px solid var(--border-soft); border-radius: var(--radius-button); background: #fff; font-family: inherit; color: var(--text-navy); transition: border-color var(--transition), transform var(--transition); }
.search-input { min-width: 220px; }
.search-input:focus, .sort-select:focus { border-color: var(--accent-blue); outline: none; }
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }

/* Service card entrance animation — smooth, elegant, staggered */
.service-card-enter { animation: cardEnter 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards; opacity: 0; }
@keyframes cardEnter { 
  from { opacity: 0; transform: translateY(20px) scale(0.97); } 
  to { opacity: 1; transform: translateY(0) scale(1); } 
}
.doctor-card-enter { animation: cardEnter 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards; opacity: 0; }

/* Skeleton */
.skeleton-card { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-card); height: 380px; overflow: hidden; }
.skeleton { background: linear-gradient(90deg, #EEF2F7 25%, #E2E8F0 50%, #EEF2F7 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 6px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-img { width: 100%; height: 180px; }
.skeleton-body { padding: 24px; }
.skeleton-line { height: 14px; margin-bottom: 10px; }
.skeleton-line.w-60 { width: 60%; } .skeleton-line.w-80 { width: 80%; } .skeleton-line.w-40 { width: 40%; } .skeleton-line.w-30 { width: 30%; }

.state-msg { text-align: center; padding: 64px 24px; background: var(--bg-soft); border-radius: var(--radius-card); color: var(--text-navy); }
.state-msg h3 { font-weight: 600; font-size: 22px; margin-bottom: 12px; }
.state-msg p { color: var(--text-gray); margin-bottom: 16px; }
.state-msg.error { background: rgba(239,68,68,0.08); }

/* ---------- 21. Gallery ---------- */
.gallery-filters { display: flex; gap: 8px; justify-content: center; margin-bottom: 40px; flex-wrap: wrap; }
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
/* Gallery — smooth transition-based filtering (no jitter) */
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius-card); cursor: pointer; aspect-ratio: 4/3; background: var(--bg-soft); opacity: 1; transform: translateY(0) scale(1); transition: opacity 0.5s cubic-bezier(0.22,1,0.36,1), transform 0.5s cubic-bezier(0.22,1,0.36,1); }
.gallery-item.hidden { display: none; }
.gallery-item.entering { opacity: 0; transform: translateY(16px) scale(0.96); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,42,71,0.6) 0%, transparent 50%); opacity: 0; transition: opacity var(--transition); }
.gallery-item:hover::after { opacity: 1; }
.gallery-caption { position: absolute; bottom: 16px; left: 16px; right: 16px; color: #fff; font-weight: 500; font-size: 14px; z-index: 2; opacity: 0; transform: translateY(8px); transition: opacity var(--transition), transform var(--transition); }
.gallery-item:hover .gallery-caption { opacity: 1; transform: translateY(0); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(15,42,71,0.92); z-index: var(--z-modal); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox-content { max-width: 90vw; max-height: 90vh; position: relative; }
.lightbox-content img { max-width: 90vw; max-height: 80vh; object-fit: contain; border-radius: var(--radius-card); box-shadow: var(--shadow-modal); }
.lightbox-caption { text-align: center; color: #fff; margin-top: 16px; font-size: 15px; }
@media (max-width: 768px) {
  .lightbox-caption { position: absolute; bottom: 16px; left: 0; right: 0; margin: 0; padding: 12px 24px; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); font-size: 14px; }
}
.lightbox-close, .lightbox-prev, .lightbox-next { position: absolute; background: rgba(255,255,255,0.15); color: #fff; border-radius: 50%; width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer; transition: background var(--transition); border: none; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.3); }
.lightbox-close { top: 24px; right: 24px; } .lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); } .lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------- 22. Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 32px; align-items: start; }
.contact-card { background: #fff; border-radius: var(--radius-card); padding: 32px; box-shadow: var(--shadow-card); height: 100%; }
.contact-card h3 { font-weight: 700; font-size: 20px; color: var(--text-navy); margin-bottom: 24px; display: flex; align-items: center; gap: 10px; }
.contact-card h3 svg { width: 24px; height: 24px; color: var(--accent-blue); }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--border-soft); }
.contact-list li:last-child { border-bottom: none; }
.contact-list .ico { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; flex-shrink: 0; color: var(--accent-blue); }
.contact-list .ico svg { width: 16px; height: 16px; }
.contact-list .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-gray); margin-bottom: 2px; }
.contact-list .val { font-size: 15px; color: var(--text-navy); font-weight: 500; }
.contact-list .val a { color: var(--text-navy); }
.contact-list .val a:hover { color: var(--accent-blue); }
.map-embed { border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); margin-bottom: 16px; height: 280px; }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.form-embed { border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); }
.form-embed iframe { width: 100%; height: 600px; border: 0; display: block; }

/* ---------- 23. Chatbot widget ---------- */
.chatbot-toggle {
  position: fixed; bottom: 96px; right: 24px; width: 60px; height: 60px;
  border-radius: 50%; background: var(--accent-blue); color: #fff;
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 8px 24px rgba(37,99,235,0.4);
  z-index: var(--z-chatbot);
  transition: transform var(--transition), box-shadow var(--transition);
  border: none;
}
.chatbot-toggle:hover { transform: scale(1.08); box-shadow: 0 12px 32px rgba(37,99,235,0.5); }
.chatbot-toggle svg { width: 28px; height: 28px; }
.chatbot-toggle .notif { position: absolute; top: -4px; right: -4px; width: 20px; height: 20px; background: var(--error); border: 2px solid #fff; border-radius: 50%; font-size: 10px; font-weight: 700; display: grid; place-items: center; }

.chatbot-window { position: fixed; bottom: 168px; right: 24px; width: 360px; max-width: calc(100vw - 32px); height: 480px; max-height: calc(100vh - 200px); background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-modal); z-index: var(--z-chatbot); display: none; flex-direction: column; overflow: hidden; animation: chatOpen 0.3s ease; }
.chatbot-window.open { display: flex; }
@keyframes chatOpen { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.chatbot-header { background: var(--accent-blue); color: #fff; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; }
.chatbot-header .info { display: flex; align-items: center; gap: 12px; }
.chatbot-avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.2); display: grid; place-items: center; }
.chatbot-avatar svg { width: 22px; height: 22px; color: #fff; }
.chatbot-name { font-weight: 600; font-size: 15px; }
.chatbot-status { font-size: 12px; color: var(--accent-blue-light); display: flex; align-items: center; gap: 6px; }
.chatbot-status .dot { width: 8px; height: 8px; background: var(--success); border-radius: 50%; }
.chatbot-close { background: transparent; color: #fff; border: none; cursor: pointer; width: 32px; height: 32px; border-radius: 50%; transition: background var(--transition); font-size: 22px; }
.chatbot-close:hover { background: rgba(255,255,255,0.2); }
.chatbot-body { flex: 1; overflow-y: auto; padding: 16px; background: var(--bg-soft); display: flex; flex-direction: column; gap: 12px; }
.chat-msg { max-width: 80%; padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; animation: msgIn 0.3s ease; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.chat-msg.bot { background: #fff; color: var(--text-navy); border-bottom-left-radius: 4px; align-self: flex-start; box-shadow: var(--shadow-card); }
.chat-msg.user { background: var(--accent-blue); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-typing { align-self: flex-start; background: #fff; padding: 12px 16px; border-radius: 12px; border-bottom-left-radius: 4px; display: flex; gap: 4px; box-shadow: var(--shadow-card); }
.chat-typing span { width: 8px; height: 8px; background: var(--text-gray); border-radius: 50%; animation: typing 1.4s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%,60%,100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-6px); opacity: 1; } }
.chat-quick-replies { padding: 12px 16px; background: #fff; border-top: 1px solid var(--border-soft); display: flex; flex-wrap: wrap; gap: 6px; }
.quick-reply { padding: 6px 12px; font-size: 12px; font-weight: 500; border-radius: var(--radius-pill); background: var(--bg-soft); color: var(--accent-blue); border: 1px solid var(--accent-blue); cursor: pointer; transition: background var(--transition), color var(--transition), transform var(--transition); }
.quick-reply:hover { background: var(--accent-blue); color: #fff; transform: scale(1.05); }
.chat-input-row { padding: 12px 16px; background: #fff; border-top: 1px solid var(--border-soft); display: flex; gap: 8px; }
.chat-input { flex: 1; padding: 10px 14px; border: 1px solid var(--border-soft); border-radius: var(--radius-pill); font-family: inherit; font-size: 14px; outline: none; transition: border-color var(--transition); }
.chat-input:focus { border-color: var(--accent-blue); }
.chat-send { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-blue); color: #fff; border: none; cursor: pointer; display: grid; place-items: center; transition: background var(--transition), transform var(--transition); }
.chat-send:hover { background: var(--accent-blue-dark); transform: scale(1.05); }
.chat-send svg { width: 16px; height: 16px; }

/* ---------- 24. Floating WhatsApp ---------- */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; width: 60px; height: 60px;
  border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 6px 20px rgba(37,211,102,0.4);
  z-index: var(--z-whatsapp);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; box-shadow: 0 10px 28px rgba(37,211,102,0.5); }
.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-float::before { content: 'Chat with us'; position: absolute; right: 72px; top: 50%; transform: translateY(-50%); background: var(--text-navy); color: #fff; padding: 6px 12px; border-radius: var(--radius-button); font-size: 12px; font-weight: 500; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity var(--transition); }
.whatsapp-float:hover::before { opacity: 1; }

/* ---------- 25. Booking modal ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,42,71,0.7); backdrop-filter: blur(4px); z-index: var(--z-overlay); display: none; align-items: center; justify-content: center; padding: 24px; }
.modal-overlay.open { display: flex; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal { background: #fff; border-radius: var(--radius-card); width: 100%; max-width: 640px; max-height: 90vh; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-modal); animation: modalIn 0.3s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--border-soft); display: flex; justify-content: space-between; align-items: center; background: var(--bg-soft); }
.modal-header h3 { font-weight: 700; font-size: 20px; color: var(--text-navy); }
.modal-header .sub { font-size: 13px; color: var(--text-gray); margin-top: 2px; }
.modal-close { background: transparent; border: none; font-size: 24px; cursor: pointer; color: var(--text-gray); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; transition: background var(--transition); }
.modal-close:hover { background: var(--border-soft); color: var(--text-navy); }
.modal-body { flex: 1; overflow-y: auto; padding: 0; }
.modal-body iframe { width: 100%; height: 500px; border: 0; display: block; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border-soft); display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--bg-soft); font-size: 13px; color: var(--text-gray); }

/* ---------- 26. Accreditations ---------- */
.accred-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; }
.accred-card { background: #fff; border-radius: var(--radius-card); padding: 24px 32px; box-shadow: var(--shadow-card); display: flex; align-items: center; gap: 14px; min-width: 220px; transition: transform var(--transition); }
.accred-card:hover { transform: translateY(-6px) scale(1.02); }
.accred-card .icon { width: 48px; height: 48px; border-radius: 50%; background: rgba(37,99,235,0.1); display: grid; place-items: center; color: var(--accent-blue); flex-shrink: 0; }
.accred-card .icon svg { width: 24px; height: 24px; }
.accred-card .name { font-weight: 600; font-size: 14px; color: var(--text-navy); }
.accred-card .desc { font-size: 12px; color: var(--text-gray); }

/* ---------- 27. Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hours-grid { grid-template-columns: 1fr; gap: 32px; }
  .story-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  :root { --section-pad-y: 64px; }
  /* Mobile nav — z-index above header so links are visible */
  .main-nav { position: fixed; top: 0; right: -100%; width: 80%; max-width: 320px; height: 100vh; background: #fff; flex-direction: column; align-items: flex-start; padding: calc(var(--header-height) + 24px) 24px 24px; box-shadow: -8px 0 32px rgba(15,42,71,0.16); transition: right var(--transition); z-index: 101; gap: 8px; overflow-y: auto; }
  .main-nav.open { right: 0; }
  .main-nav .nav-link { width: 100%; padding: 14px 16px; color: var(--text-navy) !important; text-align: left; }
  .main-nav .nav-link::after { display: none; }
  .main-nav .nav-cta { width: 100%; margin-left: 0; margin-top: 12px; }
  /* Hamburger becomes the close button — fixed position above nav */
  .hamburger { display: flex; z-index: 103; position: fixed; top: 18px; right: 24px; background: rgba(255,255,255,0.95); border-radius: 50%; padding: 8px; box-shadow: 0 2px 8px rgba(15,42,71,0.15); }
  /* Hamburger lines always dark — visible on both white circle and transparent header */
  .hamburger span { background: var(--text-navy) !important; }
  /* Hide the separate close button — hamburger handles it */
  .nav-close-btn { display: none !important; }
  .hero-title { font-size: 40px; }
  .hero-sm .hero-title { font-size: 36px; }
  .hero-sub { font-size: 17px; }
  .hero-trust { gap: 16px; font-size: 13px; }
  .section-title { font-size: 30px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .stat-num { font-size: 36px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .transformations-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Timeline mobile — vertical with slide-down cards */
  .timeline::before { left: 18px; }
  .timeline-item { width: 100%; padding-left: 48px; padding-right: 0; text-align: left !important; left: 0 !important; }
  .timeline-item .timeline-dot { left: 7px !important; right: auto !important; }
  .timeline-card-out { position: relative; width: 100%; right: auto !important; left: auto !important; margin-top: 16px; transform: translateY(-10px); }
  .timeline-item.active .timeline-card-out { transform: translateY(0); }

  .toolbar-inner { flex-direction: column; align-items: stretch; }
  .search-input { min-width: 0; width: 100%; }
  .toolbar-right { flex-direction: column; align-items: stretch; }
  .sort-select { width: 100%; }

  .chatbot-window { width: calc(100vw - 32px); right: 16px; bottom: 168px; }
  .chatbot-toggle { right: 16px; bottom: 88px; }
  .whatsapp-float { right: 16px; bottom: 16px; }
  .whatsapp-float::before { display: none; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 8px; right: 8px; }
  
  /* Prevent horizontal scroll */
  .section, .container, .stats-bar, .final-cta, .site-footer { max-width: 100vw; overflow-x: hidden; }
  .hours-grid { gap: 32px; }
  .story-grid { gap: 32px; }
  .contact-grid { gap: 24px; }
  .insurance-row { gap: 12px; }
  .accred-row { gap: 16px; }
  .section-header { margin-bottom: 40px; }
  .hero { padding: calc(var(--header-height) + 24px) 16px 60px; }
  .hero-sm { padding: calc(var(--header-height) + 40px) 16px 40px; }
  
  /* Fix image cropping — show full image on mobile, no face cutoff */
  .doctor-photo { height: 380px; object-fit: contain; object-position: center; background: var(--bg-soft); box-sizing: content-box; border-bottom: 1px solid var(--border-soft); }
  .doctor-card:hover .doctor-photo { transform: none; filter: grayscale(0); }
  .service-image { height: 220px; }
  .service-image img { object-fit: cover; object-position: center; }
}

@media (max-width: 375px) {
  .container { padding: 0 16px; }
  .hero-title { font-size: 32px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .section-title { font-size: 26px; }
  .stat-num { font-size: 30px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .insurance-row { grid-template-columns: 1fr; gap: 12px; }
  .card { padding: 24px; }
  .doctor-photo { height: 380px; object-fit: contain; object-position: center; background: var(--bg-soft); padding: 12px; }
  .hero-trust { gap: 12px; font-size: 12px; }
  .section-label { letter-spacing: 2px; font-size: 12px; }
  .btn { padding: 14px 24px; font-size: 15px; }
  .btn-large { padding: 16px 32px; font-size: 16px; }
  .stats-bar { padding: 40px 0; }
  .footer-bottom { font-size: 12px; }
}

/* ---------- 28. Utility ---------- */
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ============================================================
   v3 PREMIUM ENHANCEMENTS
   ============================================================ */

/* ---------- 29. Scroll progress bar ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--accent-blue), var(--accent-teal)); z-index: 200; width: 0%; transition: width 0.1s ease; }

/* ---------- 30. Back to top button ---------- */
.back-to-top { position: fixed; bottom: 168px; right: 24px; width: 44px; height: 44px; border-radius: 50%; background: var(--text-navy); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 16px rgba(15,42,71,0.2); z-index: 70; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity var(--transition), visibility var(--transition), transform var(--transition), background var(--transition); border: none; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent-blue); transform: translateY(-2px) scale(1.05); }
.back-to-top svg { width: 20px; height: 20px; }
@media (max-width: 768px) {
  .back-to-top { bottom: 168px; right: 16px; }
}

/* ---------- 31. Background dot pattern ---------- */
.bg-pattern { position: relative; }
.bg-pattern::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(37,99,235,0.06) 1px, transparent 1px); background-size: 24px 24px; pointer-events: none; z-index: 0; }
.bg-pattern > * { position: relative; z-index: 1; }

/* ---------- 32. Animated counters ---------- */
.stat-num[data-count] { display: inline-block; }

/* ---------- 33. Button ripple effect ---------- */
.btn { position: relative; overflow: hidden; }
.btn .ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.4); transform: scale(0); animation: rippleAnim 0.6s ease-out; pointer-events: none; }
@keyframes rippleAnim { to { transform: scale(4); opacity: 0; } }

/* ---------- 34. Testimonial photos ---------- */
.testimonial-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.testimonial-photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent-gold); flex-shrink: 0; }
.testimonial-stars { margin-bottom: 0; }
.testimonial-date { font-size: 12px; color: var(--text-gray); margin-top: 8px; }

/* ---------- 35. Before/After gallery items ---------- */
.gallery-item.ba-item { aspect-ratio: 16/10; }
.gallery-item .ba-label { position: absolute; top: 12px; left: 12px; background: var(--accent-blue); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 4px 10px; border-radius: var(--radius-pill); z-index: 3; }

/* ---------- 35b. Smile Transformations section ---------- */
.transformations-section { padding: var(--section-pad-y) 0; background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%); }
.transformations-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.ba-card { background: #fff; border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); transition: transform var(--transition), box-shadow var(--transition); }
.ba-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: var(--shadow-card-hover); }

/* Before/After slideshow — all cards synced together */
.ba-slideshow { position: relative; width: 100%; aspect-ratio: 4/3; overflow: hidden; }
.ba-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-slide-before { z-index: 1; }
.ba-slide-after { z-index: 2; opacity: 0; animation: baCrossfade 8s ease-in-out infinite; }
@keyframes baCrossfade {
  0%, 38% { opacity: 0; }
  50%, 88% { opacity: 1; }
  100% { opacity: 0; }
}
/* Small subtle label at bottom */
.ba-label { position: absolute; bottom: 12px; left: 12px; z-index: 3; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; padding: 4px 12px; border-radius: var(--radius-pill); background: rgba(15,42,71,0.7); color: #fff; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.ba-label-before { animation: baLabelBefore 8s ease-in-out infinite; }
.ba-label-after { animation: baLabelAfter 8s ease-in-out infinite; opacity: 0; }
@keyframes baLabelBefore {
  0%, 38% { opacity: 1; }
  50%, 88% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes baLabelAfter {
  0%, 38% { opacity: 0; }
  50%, 88% { opacity: 1; }
  100% { opacity: 0; }
}

.ba-card-body { padding: 16px 20px; text-align: center; }
.ba-card-title { font-weight: 600; font-size: 16px; color: var(--text-navy); margin-bottom: 4px; }
.ba-card-desc { font-size: 13px; color: var(--text-gray); }

/* ---------- 36. Newsletter signup ---------- */
.newsletter-form { display: flex; gap: 8px; margin-top: 16px; max-width: 320px; }
.newsletter-form input { flex: 1; padding: 10px 14px; border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius-button); background: rgba(255,255,255,0.08); color: #fff; font-family: inherit; font-size: 14px; outline: none; transition: border-color var(--transition); }
.newsletter-form input::placeholder { color: var(--text-light); }
.newsletter-form input:focus { border-color: var(--accent-blue); }
.newsletter-form button { padding: 10px 18px; background: var(--accent-blue); color: #fff; border: none; border-radius: var(--radius-button); font-weight: 600; font-size: 14px; cursor: pointer; transition: background var(--transition), transform var(--transition); white-space: nowrap; }
.newsletter-form button:hover { background: var(--accent-blue-dark); transform: scale(1.03); }
.newsletter-form button svg { width: 16px; height: 16px; }

/* ---------- 37. Booking modal fallback ---------- */
.modal-fallback { padding: 48px 32px; text-align: center; }
.modal-fallback .icon-circle { width: 64px; height: 64px; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; margin: 0 auto 20px; color: var(--accent-blue); }
.modal-fallback .icon-circle svg { width: 32px; height: 32px; }
.modal-fallback h4 { font-weight: 700; font-size: 20px; color: var(--text-navy); margin-bottom: 8px; }
.modal-fallback p { color: var(--text-gray); font-size: 15px; margin-bottom: 24px; line-height: 1.6; }
.modal-fallback .fallback-actions { display: flex; flex-direction: column; gap: 10px; max-width: 280px; margin: 0 auto; }

/* ---------- 38. Real Google "G" logo ---------- */
.google-g { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- 39. Pricing section polish ---------- */
.pricing-feature-card { background: #fff; border-radius: var(--radius-card); padding: 32px; box-shadow: var(--shadow-card); border-top: 4px solid var(--accent-teal); transition: transform var(--transition), box-shadow var(--transition); height: 100%; }
.pricing-feature-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: var(--shadow-card-hover); }
.pricing-feature-card .check-icon { width: 24px; height: 24px; border-radius: 50%; background: rgba(16,185,129,0.1); color: var(--success); display: grid; place-items: center; flex-shrink: 0; }
.pricing-feature-card .check-icon svg { width: 14px; height: 14px; }

/* ---------- 40. Section divider ---------- */
.section-divider { height: 4px; width: 60px; background: linear-gradient(90deg, var(--accent-blue), var(--accent-teal)); border-radius: 2px; margin: 0 auto 24px; }

/* ---------- 41. Chatbot mobile scroll fix ---------- */
@media (max-width: 768px) {
  .chatbot-body { max-height: calc(100vh - 280px); }
  .chatbot-window { height: 420px; }
}

/* ---------- 42. Page transition overlay ---------- */
.page-transition { position: fixed; inset: 0; background: var(--accent-blue); z-index: 999; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.page-transition.active { opacity: 0.15; pointer-events: all; }

/* ---------- 43. Mobile menu overlay ---------- */
.mobile-menu-overlay { position: fixed; inset: 0; background: rgba(15,42,71,0.5); backdrop-filter: blur(2px); z-index: 100; opacity: 0; visibility: hidden; transition: opacity var(--transition), visibility var(--transition); }
.mobile-menu-overlay.open { opacity: 1; visibility: visible; }
@media (min-width: 769px) { .mobile-menu-overlay { display: none; } }

/* Mobile menu close button (X) inside the nav */
.nav-close-btn { display: none; }
@media (max-width: 768px) {
  .nav-close-btn { display: grid; place-items: center; position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; background: var(--bg-soft); color: var(--text-navy); cursor: pointer; border: none; z-index: 103; font-size: 22px; line-height: 1; transition: background var(--transition); }
  .nav-close-btn:hover { background: var(--border-soft); }
  .nav-close-btn svg { width: 20px; height: 20px; }
}
