/* ============================================================
   DENTAL DECODÉ — Claymorphism + Glassmorphism Design System
   ============================================================ */

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

/* ── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  /* Brand palette */
  --clay-peach:      #F2C4A8;
  --clay-peach-mid:  #E8A880;
  --clay-peach-deep: #C97D50;
  --clay-mint:       #B8E0D2;
  --clay-sky:        #C8DFF5;
  --clay-lavender:   #D4C5F0;
  --clay-cream:      #FDF8F3;
  --clay-white:      #FFFFFF;
  --clay-warm:       #FBF0E8;

  /* Text */
  --text-900: #1A1410;
  --text-600: #6B5D54;
  --text-400: #A08878;
  --text-inv: #FFFFFF;

  /* Claymorphism shadows — the core look */
  --clay-shadow-sm:  0 2px 0 rgba(180,110,60,0.18), 0 4px 12px rgba(180,110,60,0.10), 0 8px 24px rgba(180,110,60,0.07);
  --clay-shadow-md:  0 4px 0 rgba(180,110,60,0.20), 0 8px 24px rgba(180,110,60,0.12), 0 20px 48px rgba(180,110,60,0.08);
  --clay-shadow-lg:  0 6px 0 rgba(180,110,60,0.22), 0 12px 32px rgba(180,110,60,0.14), 0 32px 64px rgba(180,110,60,0.09);
  --clay-shadow-hover: 0 8px 0 rgba(180,110,60,0.24), 0 16px 40px rgba(180,110,60,0.18), 0 36px 72px rgba(180,110,60,0.11);

  /* Glass */
  --glass-bg:        rgba(255,255,255,0.70);
  --glass-border:    rgba(255,255,255,0.80);
  --glass-blur:      blur(20px);

  /* Radii — clay uses very large radii */
  --r-sm:   12px;
  --r-md:   20px;
  --r-lg:   28px;
  --r-xl:   36px;
  --r-2xl:  48px;
  --r-pill: 9999px;

  /* Type */
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur:  0.38s;
}

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--clay-cream);
  color: var(--text-900);
  line-height: 1.65;
  overflow-x: hidden;
  padding-top: 88px;
}
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
figure { margin: 0; }
a { color: inherit; }

/* ── CLAY CARD (core primitive) ───────────────────────────── */
.clay-card {
  background: var(--clay-white);
  border-radius: var(--r-xl);
  box-shadow: var(--clay-shadow-md);
  border: 2px solid rgba(255,255,255,0.9);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.clay-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--clay-shadow-hover);
}

/* ── GLASS CARD ────────────────────────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--r-xl);
  box-shadow: var(--clay-shadow-md);
}

/* ── LAYOUT UTILS ──────────────────────────────────────────── */
.section-pad   { padding: clamp(64px, 9vw, 120px) 0; }
.container     { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.w-100         { width: 100%; }
.mt-2          { margin-top: 0.5rem; }
.mt-3          { margin-top: 1rem; }
.mt-5          { margin-top: 3rem; }
.text-center   { text-align: center; }

/* ── SECTION HEADER ────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: clamp(36px, 5vw, 64px); }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay-peach-deep);
  background: linear-gradient(135deg, rgba(242,196,168,0.25), rgba(232,168,128,0.15));
  border: 1.5px solid rgba(242,196,168,0.50);
  padding: 5px 16px;
  border-radius: var(--r-pill);
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(201,125,80,0.10);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--text-900);
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-sub {
  font-size: clamp(0.93rem, 1.5vw, 1.05rem);
  color: var(--text-600);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── SMILE DIVIDER ─────────────────────────────────────────── */
.smile-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
}
.smile-divider svg { display: block; width: 100%; }

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--clay-peach-mid), var(--clay-peach-deep));
  color: #fff;
  border: none;
  padding: 14px 30px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  min-height: 50px;
  box-shadow: 0 4px 0 rgba(160,90,40,0.30), 0 8px 24px rgba(201,125,80,0.28);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 0 rgba(160,90,40,0.30), 0 14px 32px rgba(201,125,80,0.34);
  color: #fff;
}
.btn-primary:active { transform: translateY(1px); box-shadow: 0 2px 0 rgba(160,90,40,0.28), 0 4px 12px rgba(201,125,80,0.20); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  color: var(--text-900);
  border: 2px solid rgba(255,255,255,0.85);
  padding: 13px 26px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  min-height: 50px;
  box-shadow: var(--clay-shadow-sm);
  transition: all var(--dur) var(--ease);
}
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--clay-shadow-md); color: var(--text-900); }

/* ── ANIMATIONS ────────────────────────────────────────────── */
@keyframes fadeUp   { from { opacity:0; transform:translateY(28px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeLeft { from { opacity:0; transform:translateX(-28px); } to { opacity:1; transform:translateX(0); } }
@keyframes fadeRight{ from { opacity:0; transform:translateX(28px); } to { opacity:1; transform:translateX(0); } }
@keyframes orbFloat { 0%,100%{ transform:translateY(0) scale(1); } 50%{ transform:translateY(-24px) scale(1.04); } }
@keyframes toothBob { 0%,100%{ transform:translateY(0) rotate(-4deg); } 50%{ transform:translateY(-12px) rotate(4deg); } }
@keyframes scrollBounce { 0%,100%{ transform:translateX(-50%) translateY(0); } 50%{ transform:translateX(-50%) translateY(6px); } }
@keyframes whatsappPulse { 0%{ transform:scale(1); opacity:0.6; } 70%{ transform:scale(1.65); opacity:0; } 100%{ opacity:0; } }
@keyframes shimmer { 0%{ background-position:200% 50%; } 100%{ background-position:-200% 50%; } }

.animate-fade-up,
.animate-fade-left,
.animate-fade-right { opacity: 0; }

.animate-fade-up.in-view   { animation: fadeUp    0.72s var(--ease) both; }
.animate-fade-left.in-view  { animation: fadeLeft  0.72s var(--ease) both; }
.animate-fade-right.in-view { animation: fadeRight 0.72s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  .animate-fade-up, .animate-fade-left, .animate-fade-right { opacity:1 !important; animation:none !important; }
  .hero-bg-orb, .tooth-deco { animation: none !important; }
}

/* ============================================================
   NAVBAR
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: clamp(8px,1.4vw,14px) clamp(12px,3vw,32px);
  transition: padding var(--dur) var(--ease);
}
.site-header.scrolled { padding-top: 6px; padding-bottom: 6px; }

.glass-nav {
  background: rgba(253,248,243,0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 2px solid rgba(255,255,255,0.90);
  border-radius: var(--r-2xl);
  box-shadow: var(--clay-shadow-md);
  transition: box-shadow var(--dur) var(--ease);
}
.site-header.scrolled .glass-nav { box-shadow: var(--clay-shadow-lg); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 22px;
  gap: 12px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-brand img { border-radius: var(--r-sm); object-fit: cover; }
.brand-name { font-weight: 800; font-size: 1rem; color: var(--text-900); letter-spacing: -0.02em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0; padding: 0;
}
.nav-link-item {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-600);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  transition: color var(--dur), background var(--dur);
}
.nav-link-item:hover, .nav-link-item.active {
  color: var(--clay-peach-deep);
  background: rgba(242,196,168,0.18);
}

.btn-primary-nav {
  background: linear-gradient(135deg, var(--clay-peach-mid), var(--clay-peach-deep));
  color: #fff;
  border: none;
  padding: 9px 20px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(160,90,40,0.28), 0 6px 16px rgba(201,125,80,0.22);
  transition: transform var(--dur), box-shadow var(--dur);
  min-height: 40px;
}
.btn-primary-nav:hover { transform: translateY(-2px); box-shadow: 0 5px 0 rgba(160,90,40,0.28), 0 10px 24px rgba(201,125,80,0.30); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2.5px;
  background: var(--text-900);
  border-radius: 3px;
  transition: all 0.3s var(--ease);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: clamp(60px,10vh,100px) clamp(16px,4vw,48px) clamp(60px,9vh,90px);
  background: linear-gradient(145deg, #FDF3EC 0%, #FBF0E6 35%, #F7EDE5 65%, #F9F3EF 100%);
}

/* Background orbs */
.hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(72px);
  opacity: 0.50;
  animation: orbFloat 9s ease-in-out infinite;
}
.orb-1 { width: 560px; height: 560px; background: radial-gradient(circle, #F2C4A8 0%, transparent 70%); top: -160px; left: -120px; animation-delay: 0s; }
.orb-2 { width: 420px; height: 420px; background: radial-gradient(circle, #B8E0D2 0%, transparent 70%); bottom: -80px; right: -80px; animation-delay: -3.5s; }
.orb-3 { width: 300px; height: 300px; background: radial-gradient(circle, #D4C5F0 0%, transparent 70%); top: 35%; left: 42%; animation-delay: -6s; opacity: 0.30; }

/* Floating tooth decorations */
.tooth-deco {
  position: absolute;
  font-size: 2.8rem;
  pointer-events: none;
  animation: toothBob 6s ease-in-out infinite;
  opacity: 0.18;
  user-select: none;
}
.tooth-1 { top: 12%; right: 8%; animation-delay: 0s; }
.tooth-2 { bottom: 18%; left: 5%; animation-delay: -2.5s; font-size: 2rem; }
.tooth-3 { top: 55%; right: 3%; animation-delay: -4.5s; font-size: 1.6rem; }

.hero-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(24px, 3vw, 52px);
  align-items: center;
  width: 100%;
  max-width: 1220px;
  position: relative;
  z-index: 1;
}

/* Hero text */
.hero-text { max-width: 490px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay-peach-deep);
  background: rgba(242,196,168,0.20);
  border: 1.5px solid rgba(242,196,168,0.45);
  padding: 5px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 16px;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 600;
  line-height: 1.04;
  color: var(--text-900);
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}
.hero-headline em { font-style: italic; color: var(--clay-peach-deep); }
.hero-tagline {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 600;
  color: var(--text-600);
  margin-bottom: 12px;
}
.hero-sub {
  font-size: clamp(0.88rem, 1.3vw, 0.97rem);
  color: var(--text-600);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 420px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero image */
.hero-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero-img-glow {
  position: absolute;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(242,196,168,0.45) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}
.hero-img {
  width: clamp(190px, 22vw, 310px);
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 24px 48px rgba(160,90,40,0.22));
}

/* Hero form / clay appointment card */
.hero-form-wrap { width: 100%; max-width: 390px; }
.appt-card {
  padding: clamp(22px, 3vw, 34px);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 2px solid rgba(255,255,255,0.95);
  border-radius: var(--r-xl);
  box-shadow: var(--clay-shadow-lg);
}
.appt-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-900);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.appt-title::before { content: '🦷'; font-size: 1.1rem; }

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  color: var(--text-400);
  font-size: 0.85rem;
  animation: scrollBounce 2.2s ease-in-out infinite;
  text-decoration: none;
  z-index: 2;
  background: rgba(255,255,255,0.6);
  border: 1.5px solid rgba(255,255,255,0.8);
  border-radius: var(--r-pill);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--clay-shadow-sm);
}

/* ============================================================
   FORM SYSTEM
   ============================================================ */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.field-group {
  position: relative;
  display: flex;
  flex-direction: column;
}
.glass-input {
  background: rgba(255,255,255,0.65);
  border: 1.5px solid rgba(242,196,168,0.40);
  border-radius: var(--r-md);
  padding: 15px 14px 10px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-900);
  width: 100%;
  min-height: 50px;
  transition: border-color var(--dur), box-shadow var(--dur), background var(--dur);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: inset 0 2px 6px rgba(160,90,40,0.06);
}
.glass-input:focus {
  border-color: var(--clay-peach-mid);
  background: rgba(255,255,255,0.95);
  box-shadow: 0 0 0 3px rgba(242,196,168,0.28), inset 0 2px 6px rgba(160,90,40,0.04);
}
.glass-input::placeholder { color: transparent; }
.glass-select { padding-top: 12px; padding-bottom: 10px; cursor: pointer; }
.glass-textarea { resize: none; padding-top: 15px; }

.float-label {
  position: absolute;
  top: 14px; left: 14px;
  font-size: 0.84rem;
  color: var(--text-400);
  pointer-events: none;
  transition: all 0.22s var(--ease);
  transform-origin: left top;
}
.glass-input:focus + .float-label,
.glass-input:not(:placeholder-shown) + .float-label {
  transform: translateY(-9px) scale(0.78);
  color: var(--clay-peach-deep);
  font-weight: 600;
}
.float-label--select, .float-label--date { display: none; }

.reason-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-600);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.reason-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  margin-bottom: 10px;
}
.reason-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(242,196,168,0.40);
  border-radius: var(--r-md);
  padding: 9px 8px;
  cursor: pointer;
  transition: all 0.22s var(--ease);
  background: rgba(255,255,255,0.55);
  box-shadow: inset 0 1px 3px rgba(160,90,40,0.06);
}
.reason-chip input { display: none; }
.reason-chip span {
  font-size: 0.80rem;
  font-weight: 600;
  color: var(--text-600);
  text-align: center;
  pointer-events: none;
}
.reason-chip:hover { border-color: var(--clay-peach-mid); background: rgba(242,196,168,0.12); }
.reason-chip:has(input:checked) {
  border-color: var(--clay-peach-deep);
  background: linear-gradient(135deg, rgba(242,196,168,0.25), rgba(232,168,128,0.18));
  box-shadow: 0 2px 0 rgba(160,90,40,0.15), 0 4px 12px rgba(201,125,80,0.12);
}
.reason-chip:has(input:checked) span { color: var(--clay-peach-deep); font-weight: 700; }

.form-privacy {
  display: block;
  font-size: 0.75rem;
  color: var(--text-400);
  margin-top: 8px;
  line-height: 1.5;
}

/* ============================================================
   STATS SECTION
   ============================================================ */
.stats-section {
  padding: clamp(40px, 6vw, 72px) 0;
  background: linear-gradient(180deg, #FDF3EC 0%, var(--clay-cream) 100%);
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--clay-mint), var(--clay-peach), var(--clay-lavender), var(--clay-sky));
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2.5vw, 28px);
}
.stat-card {
  padding: clamp(24px, 3.5vw, 42px) clamp(18px, 2.5vw, 30px);
  text-align: center;
  border-radius: var(--r-xl);
  border: 2px solid rgba(255,255,255,0.95);
  box-shadow: var(--clay-shadow-md);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur);
  position: relative;
  overflow: hidden;
}
.stat-card:nth-child(1) { background: linear-gradient(145deg, #FFF5EE, #FFE8D6); }
.stat-card:nth-child(2) { background: linear-gradient(145deg, #EEFAF6, #D6F2E8); }
.stat-card:nth-child(3) { background: linear-gradient(145deg, #F0EEFF, #E2D8F8); }
.stat-card::after {
  content: '';
  position: absolute;
  bottom: -20px; right: -20px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  pointer-events: none;
}
.stat-card:hover { transform: translateY(-6px) scale(1.01); box-shadow: var(--clay-shadow-hover); }

.stat-icon { font-size: 2.2rem; margin-bottom: 10px; display: block; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  font-weight: 600;
  color: var(--text-900);
  line-height: 1;
  margin-bottom: 8px;
  display: block;
}
.stat-suffix { font-size: 0.55em; vertical-align: super; color: var(--clay-peach-deep); font-weight: 700; }
.stat-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-600);
}
.stat-stars { font-size: 0.95rem; margin-top: 6px; letter-spacing: 2px; }

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services-section {
  background: linear-gradient(160deg, #1C1410 0%, #2A1C14 50%, #1E1610 100%);
  position: relative;
  overflow: hidden;
}
.services-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 60%, rgba(242,196,168,0.07) 0%, transparent 55%),
              radial-gradient(ellipse at 80% 20%, rgba(184,224,210,0.05) 0%, transparent 50%);
  pointer-events: none;
}
.services-section .section-eyebrow { color: var(--clay-peach-light, #F5D8C0); background: rgba(242,196,168,0.10); border-color: rgba(242,196,168,0.20); }
.services-section .section-title   { color: #fff; }
.services-section .section-sub     { color: rgba(255,255,255,0.50); }

/* Smile wave top */
.services-wave-top { background: var(--clay-cream); }
.services-wave-top svg path { fill: #1C1410; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2.5vw, 26px);
  position: relative;
  z-index: 1;
}
.service-card {
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.10);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur), background var(--dur);
  backdrop-filter: blur(12px);
}
.service-card:hover {
  transform: translateY(-10px);
  background: rgba(255,255,255,0.11);
  box-shadow: 0 6px 0 rgba(0,0,0,0.3), 0 24px 64px rgba(0,0,0,0.40);
}
.service-img-wrap { position: relative; overflow: hidden; height: 195px; }
.service-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s var(--ease); }
.service-card:hover .service-img-wrap img { transform: scale(1.07); }
.service-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(28,20,16,0.75) 100%);
}
.service-body { padding: clamp(16px, 2.5vw, 26px); }
.service-icon { font-size: 1.5rem; margin-bottom: 8px; display: block; }
.service-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}
.service-desc { font-size: 0.86rem; color: rgba(255,255,255,0.58); line-height: 1.65; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-section {
  background: var(--clay-white);
  position: relative;
  overflow: hidden;
}
.about-section::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(184,224,210,0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.about-img-frame { position: relative; }
.about-img {
  border-radius: var(--r-2xl);
  width: 100%;
  object-fit: cover;
  box-shadow: var(--clay-shadow-lg);
  border: 3px solid rgba(255,255,255,0.90);
}
.about-float-badge {
  position: absolute;
  bottom: -18px; right: -18px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border: 2px solid rgba(255,255,255,0.95);
  border-radius: var(--r-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--clay-shadow-md);
}
.badge-icon { font-size: 1.6rem; }
.about-float-badge strong { display: block; font-size: 0.88rem; font-weight: 700; }
.about-float-badge small  { font-size: 0.73rem; color: var(--text-600); }

.about-text-col p { color: var(--text-600); margin-bottom: 12px; font-size: 0.94rem; }
.about-tagline { font-size: 1rem; font-weight: 600; color: var(--clay-peach-deep); margin-bottom: 16px; }
.about-trust-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.80rem;
  font-weight: 700;
  color: var(--text-600);
  background: linear-gradient(135deg, rgba(242,196,168,0.15), rgba(184,224,210,0.12));
  border: 1.5px solid rgba(242,196,168,0.30);
  padding: 7px 14px;
  border-radius: var(--r-pill);
  box-shadow: var(--clay-shadow-sm);
}
.trust-item i { color: var(--clay-peach-deep); font-size: 0.88rem; }

/* ============================================================
   SPECIALTIES
   ============================================================ */
.specialties-section {
  background: linear-gradient(160deg, var(--clay-cream) 0%, #F5EDE5 100%);
  position: relative;
}
.specialties-section::after {
  content: '🦷';
  position: absolute;
  top: 40px; right: clamp(20px,5vw,80px);
  font-size: 5rem;
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
}

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(12px, 2vw, 22px);
}
.specialty-card {
  padding: clamp(20px, 2.5vw, 28px);
  border-radius: var(--r-xl);
  border: 2px solid rgba(255,255,255,0.95);
  box-shadow: var(--clay-shadow-sm);
  background: var(--clay-white);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur);
  position: relative;
  overflow: hidden;
}
.specialty-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--clay-peach), var(--clay-mint));
  border-radius: var(--r-pill) var(--r-pill) 0 0;
  opacity: 0;
  transition: opacity var(--dur);
}
.specialty-card:hover { transform: translateY(-6px); box-shadow: var(--clay-shadow-lg); }
.specialty-card:hover::before { opacity: 1; }
.specialty-icon { font-size: 1.9rem; margin-bottom: 12px; display: block; }
.specialty-card h3 { font-size: 0.97rem; font-weight: 700; color: var(--clay-peach-deep); margin-bottom: 8px; }
.specialty-card p  { font-size: 0.85rem; color: var(--text-600); line-height: 1.65; }

/* ============================================================
   DOCTOR
   ============================================================ */
.doctor-section { background: var(--clay-warm); position: relative; overflow: hidden; }
.doctor-section::before {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(212,197,240,0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.doctor-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.doctor-img-frame {
  background: rgba(255,255,255,0.88);
  border: 2px solid rgba(255,255,255,0.95);
  border-radius: var(--r-2xl);
  box-shadow: var(--clay-shadow-lg);
  padding: 8px;
  position: relative;
}
.doctor-img {
  border-radius: calc(var(--r-2xl) - 8px);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 3/4;
  display: block;
}
.doctor-credential-badge {
  position: absolute;
  bottom: 18px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--clay-peach-mid), var(--clay-peach-deep));
  color: #fff;
  padding: 7px 22px;
  border-radius: var(--r-pill);
  font-size: 0.80rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 3px 0 rgba(140,70,20,0.28), 0 8px 20px rgba(201,125,80,0.30);
  letter-spacing: 0.04em;
}

.doctor-title { font-size: 0.95rem; font-weight: 700; color: var(--clay-peach-deep); margin-bottom: 18px; }
.doctor-text-col p { color: var(--text-600); margin-bottom: 12px; font-size: 0.94rem; }
.doctor-quote {
  background: linear-gradient(135deg, rgba(242,196,168,0.18), rgba(184,224,210,0.12));
  border-left: 4px solid var(--clay-peach-mid);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 16px 20px;
  font-size: 0.90rem;
  font-style: italic;
  color: var(--text-900);
  margin: 18px 0;
  box-shadow: var(--clay-shadow-sm);
}
.doctor-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.chip {
  background: linear-gradient(135deg, rgba(242,196,168,0.20), rgba(242,196,168,0.10));
  border: 1.5px solid rgba(242,196,168,0.45);
  color: var(--clay-peach-deep);
  padding: 6px 16px;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: var(--clay-shadow-sm);
}

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews-section {
  background: linear-gradient(145deg, #F9F3EF 0%, #F4EBE2 100%);
  position: relative;
  overflow: hidden;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2.5vw, 26px);
}
.review-card {
  background: var(--clay-white);
  border: 2px solid rgba(255,255,255,0.95);
  border-radius: var(--r-xl);
  box-shadow: var(--clay-shadow-sm);
  padding: clamp(20px, 2.5vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur);
}
.review-card:hover { transform: translateY(-6px); box-shadow: var(--clay-shadow-lg); }
.review-stars { color: #F59E0B; font-size: 1rem; letter-spacing: 2px; }
.review-text { font-size: 0.88rem; color: var(--text-600); line-height: 1.75; flex: 1; font-style: italic; }
.review-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid rgba(242,196,168,0.40); box-shadow: var(--clay-shadow-sm); }
.review-author strong { display: block; font-size: 0.86rem; font-weight: 700; }
.review-author small  { font-size: 0.73rem; color: var(--text-400); }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-section { background: var(--clay-cream); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 1.8vw, 18px);
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  cursor: pointer;
  border: 2.5px solid rgba(255,255,255,0.90);
  box-shadow: var(--clay-shadow-sm);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.gallery-item:hover { transform: scale(1.02); box-shadow: var(--clay-shadow-md); }
.gallery-item img { width: 100%; height: 230px; object-fit: cover; transition: transform 0.55s var(--ease); display: block; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(28,20,16,0.0);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s;
  border-radius: inherit;
}
.gallery-overlay i { color: rgba(255,255,255,0); font-size: 1.6rem; transition: color 0.3s; }
.gallery-item:hover .gallery-overlay { background: rgba(28,20,16,0.38); }
.gallery-item:hover .gallery-overlay i { color: #fff; }

/* ============================================================
   CONTACT & MAP
   ============================================================ */
.contact-section { background: linear-gradient(160deg, var(--clay-cream), #F0E8E0); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 3vw, 36px);
  align-items: start;
}
.contact-map {
  padding: 18px;
  border-radius: var(--r-xl);
  border: 2px solid rgba(255,255,255,0.95);
  box-shadow: var(--clay-shadow-md);
  background: var(--clay-white);
}
.contact-map iframe { border-radius: calc(var(--r-xl) - 8px); display: block; }
.map-address {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-top: 14px;
  font-size: 0.88rem;
  color: var(--text-600);
  margin: 0;
}
.map-address i { color: var(--clay-peach-deep); margin-top: 2px; flex-shrink: 0; }

.contact-card {
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--r-xl);
  border: 2px solid rgba(255,255,255,0.95);
  box-shadow: var(--clay-shadow-md);
  background: var(--clay-white);
}
.contact-clinic-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-900);
}
.contact-tagline { font-size: 0.88rem; color: var(--text-600); margin-bottom: 22px; line-height: 1.65; }
.contact-detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1.5px solid rgba(242,196,168,0.18);
}
.contact-detail:last-of-type { border-bottom: none; }
.contact-detail-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, rgba(242,196,168,0.20), rgba(184,224,210,0.15));
  border: 1.5px solid rgba(242,196,168,0.30);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--clay-peach-deep);
  flex-shrink: 0;
  box-shadow: var(--clay-shadow-sm);
}
.contact-detail strong { display: block; font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 3px; color: var(--text-400); }
.contact-detail p { margin: 0; font-size: 0.9rem; color: var(--text-900); }
.contact-detail a { color: var(--clay-peach-deep); text-decoration: none; font-weight: 600; }
.contact-detail a:hover { text-decoration: underline; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: linear-gradient(145deg, #1A1410, #2C1E16);
  padding: clamp(36px, 6vw, 64px) 0 clamp(24px, 3vw, 36px);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--clay-peach), var(--clay-mint), var(--clay-lavender), var(--clay-peach));
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 800; font-size: 1.05rem;
}
.footer-brand img { border-radius: var(--r-sm); }
.footer-links { display: flex; gap: clamp(12px, 3vw, 28px); flex-wrap: wrap; justify-content: center; }
.footer-links a { color: rgba(255,255,255,0.50); font-size: 0.86rem; text-decoration: none; font-weight: 500; transition: color var(--dur); }
.footer-links a:hover { color: var(--clay-peach); }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.60);
  font-size: 1rem; text-decoration: none;
  transition: all var(--dur);
}
.footer-social a:hover { background: var(--clay-peach-mid); color: #fff; border-color: var(--clay-peach-mid); transform: translateY(-2px); }
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.30); margin: 0; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-content { border: none; background: transparent; }
.glass-modal {
  background: rgba(253,248,243,0.96);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 2px solid rgba(255,255,255,0.90);
  border-radius: var(--r-2xl);
  box-shadow: var(--clay-shadow-lg), 0 0 0 1px rgba(255,255,255,0.5) inset;
}
.modal-dialog { max-width: 680px; margin: 32px auto; }
.modal-header { padding: 26px 30px 18px; }
.modal-body   { padding: 0 30px 30px; }
.modal-title  { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--text-900); }
.btn-close-custom {
  width: 36px; height: 36px;
  background: rgba(0,0,0,0.07);
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.10);
  cursor: pointer;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur), transform var(--dur) var(--ease);
  color: var(--text-900);
  flex-shrink: 0;
  line-height: 1;
}
.btn-close-custom:hover { background: rgba(0,0,0,0.14); transform: rotate(90deg); }
.modal-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 4px;
}

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 80px; right: 22px;
  background: #25D366;
  color: #fff;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 1.5rem;
  box-shadow: 0 4px 0 rgba(0,100,40,0.25), 0 10px 28px rgba(37,211,102,0.38);
  z-index: 998;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.35);
  transition: transform var(--dur), box-shadow var(--dur);
}
.whatsapp-float:hover { transform: scale(1.10) translateY(-2px); color: #fff; box-shadow: 0 6px 0 rgba(0,100,40,0.25), 0 14px 36px rgba(37,211,102,0.46); }
.whatsapp-float::after {
  content: '';
  position: absolute;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.4; z-index: -1;
  animation: whatsappPulse 2.4s infinite;
}

/* ============================================================
   MOBILE STICKY BAR
   ============================================================ */
.mobile-book-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(253,248,243,0.96);
  backdrop-filter: blur(20px);
  border-top: 1.5px solid rgba(242,196,168,0.30);
  padding: 10px 16px;
  z-index: 997;
}
.mobile-book-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--clay-peach-mid), var(--clay-peach-deep));
  border: none;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  padding: 15px;
  border-radius: var(--r-pill);
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(140,70,20,0.28), 0 8px 20px rgba(201,125,80,0.30);
  transition: transform var(--dur), box-shadow var(--dur);
  min-height: 52px;
  letter-spacing: 0.01em;
}
.mobile-book-btn:hover { transform: translateY(-2px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; }
  .hero-image-wrap { display: flex; justify-content: center; order: -1; margin-bottom: 8px; }
}

@media (max-width: 900px) {
  .services-grid,
  .reviews-grid,
  .gallery-grid   { grid-template-columns: repeat(2, 1fr); }
  .about-grid,
  .doctor-grid    { grid-template-columns: 1fr; }
  .about-img-col  { max-width: 500px; margin: 0 auto; }
  .about-float-badge { right: 0; }
  .doctor-img-col { max-width: 340px; margin: 0 auto; }
  .contact-grid   { grid-template-columns: 1fr; }
  .stats-grid     { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile */
@media (max-width: 768px) {
  body { padding-top: 72px; }

  /* Nav */
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px); left: 0; right: 0;
    background: rgba(253,248,243,0.97);
    backdrop-filter: blur(24px);
    border: 2px solid rgba(255,255,255,0.90);
    border-radius: var(--r-xl);
    flex-direction: column;
    padding: 14px;
    gap: 4px;
    box-shadow: var(--clay-shadow-lg);
    z-index: 100;
  }
  .nav-links.open { display: flex; }
  .nav-link-item  { padding: 10px 16px; border-radius: var(--r-md); }

  /* Hero */
  .hero-section { padding-top: 80px; padding-bottom: 80px; min-height: auto; }
  .hero-container { grid-template-columns: 1fr; gap: 20px; }
  .hero-image-wrap { display: flex; justify-content: center; order: -1; margin-bottom: 4px; }
  .hero-form-wrap { max-width: 100%; }
  .hero-text { max-width: 100%; text-align: center; }
  .hero-sub { margin: 0 auto 24px; }
  .hero-ctas { justify-content: center; }
  .form-row { grid-template-columns: 1fr; gap: 8px; margin-bottom: 8px; }

  /* Stats */
  .stats-grid { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; }

  /* Grids */
  .services-grid,
  .reviews-grid,
  .gallery-grid,
  .specialties-grid { grid-template-columns: 1fr; }

  .gallery-item img { height: 210px; }

  /* Mobile float / sticky */
  .whatsapp-float { bottom: 76px; }
  .mobile-book-bar { display: block; }

  /* Modal */
  .modal-dialog { margin: 14px; max-width: none; }
  .modal-header { padding: 20px 20px 12px; }
  .modal-body   { padding: 0 20px 20px; }
  .modal-form-grid { grid-template-columns: 1fr; }

  /* About badge */
  .about-float-badge { display: none; }
  .tooth-deco { display: none; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: clamp(2.2rem, 11vw, 2.9rem); }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas > * { width: 100%; max-width: 290px; justify-content: center; }
  .btn-primary, .btn-ghost { padding: 13px 22px; }
  .reason-grid { grid-template-columns: repeat(2, 1fr); }
  .about-trust-row { flex-direction: column; gap: 8px; }
}

/* 4K */
@media (min-width: 2000px) {
  .container { max-width: 1400px; }
  body { font-size: 18px; }
}

/* ============================================================
   MARQUEE REVIEWS
   ============================================================ */
@keyframes marqueeLeft  { from { transform: translateX(0); }     to { transform: translateX(-50%); } }
@keyframes marqueeRight { from { transform: translateX(-50%); }  to { transform: translateX(0); } }

.reviews-section { padding-bottom: clamp(40px,6vw,80px); overflow: hidden; }
.reviews-section .container { margin-bottom: 0; }

.marquee-wrap {
  width: 100%;
  overflow: hidden;
  margin-bottom: 16px;
  /* fade edges */
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.marquee-wrap--2 { margin-bottom: 0; }

.marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  will-change: transform;
}
.marquee-left  { animation: marqueeLeft  38s linear infinite; }
.marquee-right { animation: marqueeRight 48s linear infinite; }

/* Pause on hover */
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }

.marquee-card {
  flex: 0 0 300px;
  width: 300px;
  background: var(--clay-white);
  border: 2px solid rgba(255,255,255,0.95);
  border-radius: var(--r-xl);
  box-shadow: var(--clay-shadow-sm);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: default;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.marquee-card:hover {
  box-shadow: var(--clay-shadow-md);
  transform: translateY(-4px);
}
.marquee-card .review-text  { font-size: 0.85rem; }
.marquee-card .review-stars { font-size: 0.88rem; letter-spacing: 1px; }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none !important; }
}

/* ============================================================
   DARK MODE (day / night toggle)
   ============================================================ */

/* Toggle button */
.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  border: 1.5px solid rgba(255,255,255,0.80);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: var(--clay-shadow-sm);
  transition: background var(--dur), transform var(--dur) var(--ease), box-shadow var(--dur);
  flex-shrink: 0;
}
.theme-toggle:hover { transform: rotate(20deg) scale(1.10); box-shadow: var(--clay-shadow-md); }

/* ── DARK THEME OVERRIDES ── */
[data-theme="dark"] {
  --clay-cream:      #191510;
  --clay-white:      #221C16;
  --clay-warm:       #1E180F;
  --clay-peach:      #D4956A;
  --clay-peach-mid:  #C97D50;
  --clay-peach-deep: #B06535;
  --clay-mint:       #2D5448;
  --clay-sky:        #1E3A52;
  --clay-lavender:   #2E2548;
  --text-900: #F0E8DF;
  --text-600: #A89080;
  --text-400: #70584A;
  --text-inv: #191510;
  --glass-bg:     rgba(34,28,22,0.75);
  --glass-border: rgba(255,255,255,0.10);
  --clay-shadow-sm:   0 2px 0 rgba(0,0,0,0.40), 0 4px 12px rgba(0,0,0,0.30), 0 8px 24px rgba(0,0,0,0.20);
  --clay-shadow-md:   0 4px 0 rgba(0,0,0,0.45), 0 8px 24px rgba(0,0,0,0.35), 0 20px 48px rgba(0,0,0,0.22);
  --clay-shadow-lg:   0 6px 0 rgba(0,0,0,0.50), 0 12px 32px rgba(0,0,0,0.38), 0 32px 64px rgba(0,0,0,0.25);
  --clay-shadow-hover:0 8px 0 rgba(0,0,0,0.52), 0 16px 40px rgba(0,0,0,0.42), 0 36px 72px rgba(0,0,0,0.28);
}

[data-theme="dark"] body {
  background: var(--clay-cream);
  color: var(--text-900);
}

/* Navbar */
[data-theme="dark"] .glass-nav {
  background: rgba(28,22,15,0.88);
  border-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .nav-links {
  background: rgba(28,22,15,0.97);
  border-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .brand-name,
[data-theme="dark"] .nav-link-item { color: var(--text-900); }
[data-theme="dark"] .theme-toggle {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
}

/* Hero */
[data-theme="dark"] .hero-section {
  background: linear-gradient(145deg, #1A1410 0%, #201810 35%, #1C1610 100%);
}
[data-theme="dark"] .appt-card {
  background: rgba(34,28,22,0.92);
  border-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .glass-input {
  background: rgba(255,255,255,0.05);
  border-color: rgba(201,125,80,0.25);
  color: var(--text-900);
}
[data-theme="dark"] .glass-input:focus {
  background: rgba(255,255,255,0.09);
  border-color: var(--clay-peach-mid);
}
[data-theme="dark"] .reason-chip {
  background: rgba(255,255,255,0.05);
  border-color: rgba(201,125,80,0.22);
}
[data-theme="dark"] .reason-chip span { color: var(--text-600); }

/* Stat cards */
[data-theme="dark"] .stat-card:nth-child(1) { background: linear-gradient(145deg, #2A1E14, #3A2418); }
[data-theme="dark"] .stat-card:nth-child(2) { background: linear-gradient(145deg, #122820, #183428); }
[data-theme="dark"] .stat-card:nth-child(3) { background: linear-gradient(145deg, #1C1630, #24203C); }

/* Services dark section — already dark, minimal change */
[data-theme="dark"] .services-wave-top { background: var(--clay-cream); }

/* About */
[data-theme="dark"] .about-section { background: #1E1812; }
[data-theme="dark"] .about-float-badge { background: rgba(34,28,22,0.92); border-color: rgba(255,255,255,0.08); }

/* Specialties */
[data-theme="dark"] .specialties-section { background: linear-gradient(160deg, #191510, #1F180E); }
[data-theme="dark"] .specialty-card { background: #221C16; border-color: rgba(255,255,255,0.06); }

/* Doctor */
[data-theme="dark"] .doctor-section { background: #1A1510; }
[data-theme="dark"] .doctor-img-frame { background: rgba(34,28,22,0.90); border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .doctor-quote {
  background: rgba(201,125,80,0.10);
  color: var(--text-900);
}

/* Reviews */
[data-theme="dark"] .reviews-section { background: linear-gradient(145deg, #191510, #1E180E); }
[data-theme="dark"] .review-card,
[data-theme="dark"] .marquee-card { background: #221C16; border-color: rgba(255,255,255,0.06); }

/* Gallery */
[data-theme="dark"] .gallery-section { background: #1A1510; }
[data-theme="dark"] .gallery-item { border-color: rgba(255,255,255,0.06); }

/* Contact */
[data-theme="dark"] .contact-section { background: linear-gradient(160deg, #191510, #1E1810); }
[data-theme="dark"] .contact-map,
[data-theme="dark"] .contact-card { background: #221C16; border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .contact-detail { border-color: rgba(201,125,80,0.12); }

/* Modal */
[data-theme="dark"] .glass-modal {
  background: rgba(28,22,14,0.97);
  border-color: rgba(255,255,255,0.07);
}
[data-theme="dark"] .modal-title { color: var(--text-900); }
[data-theme="dark"] .btn-close-custom { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.12); color: var(--text-900); }
[data-theme="dark"] .btn-close-custom:hover { background: rgba(255,255,255,0.15); }

/* Mobile bar */
[data-theme="dark"] .mobile-book-bar {
  background: rgba(26,20,14,0.96);
  border-color: rgba(201,125,80,0.18);
}

/* Section eyebrows in dark */
[data-theme="dark"] .section-eyebrow {
  background: rgba(201,125,80,0.12);
  border-color: rgba(201,125,80,0.22);
}

/* Trust items */
[data-theme="dark"] .trust-item { background: rgba(201,125,80,0.08); border-color: rgba(201,125,80,0.18); }

/* Chips */
[data-theme="dark"] .chip { background: rgba(201,125,80,0.10); border-color: rgba(201,125,80,0.22); }

/* Reason chip selected */
[data-theme="dark"] .reason-chip:has(input:checked) { background: rgba(201,125,80,0.15); }

/* Contact detail icon */
[data-theme="dark"] .contact-detail-icon { background: rgba(201,125,80,0.10); border-color: rgba(201,125,80,0.18); }

/* Scroll cue */
[data-theme="dark"] .scroll-cue { background: rgba(34,28,22,0.70); border-color: rgba(255,255,255,0.10); }

/* Ghost btn in dark */
[data-theme="dark"] .btn-ghost { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.12); color: var(--text-900); }

/* Smooth transition for theme switch */
body, .glass-nav, .glass-input, .review-card, .marquee-card,
.specialty-card, .contact-card, .contact-map, .stat-card,
.about-float-badge, .doctor-img-frame, .glass-modal, .mobile-book-bar,
.hero-section, .about-section, .specialties-section, .doctor-section,
.reviews-section, .gallery-section, .contact-section, .trust-item, .chip {
  transition: background 0.40s ease, border-color 0.40s ease, color 0.40s ease, box-shadow 0.40s ease;
}

/* ── HERO VISIBILITY SAFETY NET ────────────────────────────── */
/* Ensure hero content is never stuck invisible if observer is slow */
.hero-section .animate-fade-up,
.hero-section .animate-fade-left,
.hero-section .animate-fade-right {
  animation: fadeUp 0.72s var(--ease) both;
  opacity: 1;
}
.hero-section .animate-fade-up   { animation-name: fadeUp; }
.hero-section .animate-fade-left  { animation-name: fadeLeft; }
.hero-section .animate-fade-right { animation-name: fadeRight; }

/* ============================================================
   PAGE LOADER (once per session) — Claymorphic
   ============================================================ */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #FDF3EC 0%, #FBF0E6 50%, #F7EDE5 100%);
  transition: opacity 0.5s ease, visibility 0.5s ease;
  overflow: hidden;
}
.page-loader.loader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
[data-theme="dark"] .page-loader {
  background: linear-gradient(145deg, #1A1410 0%, #201810 50%, #1C1610 100%);
}

/* Claymorphic card housing the loader content */
.loader-clay-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 48px;
  background: var(--clay-white);
  border: 2px solid rgba(255,255,255,0.95);
  border-radius: var(--r-2xl);
  box-shadow: var(--clay-shadow-lg);
  animation: loaderCardPop 0.5s var(--ease) both;
}
@keyframes loaderCardPop {
  from { opacity: 0; transform: scale(0.92) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.loader-tooth-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* SVG is explicitly sized via width/height attrs + CSS as a safeguard */
.loader-tooth {
  display: block;
  width: 56px;
  height: 66px;
  max-width: 56px;
  max-height: 66px;
}
.loader-tooth path {
  fill: var(--clay-peach-mid);
}
.loader-tooth {
  filter: drop-shadow(0 6px 14px rgba(201,125,80,0.35));
  animation: toothPulse 1.1s ease-in-out infinite;
  transform-origin: 50% 90%;
}
@keyframes toothPulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%       { transform: scale(1.08) rotate(-4deg); }
}

.loader-sparkle {
  position: absolute;
  font-size: 0.95rem;
  opacity: 0;
  line-height: 1;
  animation: sparklePop 1.6s ease-in-out infinite;
  pointer-events: none;
}
.loader-sparkle.s1 { top: 4px; right: 2px; animation-delay: 0.2s; }
.loader-sparkle.s2 { bottom: 10px; left: -2px; font-size: 0.75rem; animation-delay: 0.8s; }
@keyframes sparklePop {
  0%, 100% { opacity: 0; transform: scale(0.6); }
  50%       { opacity: 1; transform: scale(1.1); }
}

.loader-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-900);
  margin: 0;
}

/* Bouncing dots under the text */
.loader-dots {
  display: flex;
  gap: 6px;
}
.loader-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--clay-peach-mid);
  animation: dotBounce 1s ease-in-out infinite;
}
.loader-dots span:nth-child(2) { animation-delay: 0.15s; }
.loader-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dotBounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50%       { transform: translateY(-6px); opacity: 1; }
}

[data-theme="dark"] .loader-clay-card {
  background: #221C16;
  border-color: rgba(255,255,255,0.08);
}

@media (max-width: 480px) {
  .loader-clay-card { padding: 32px 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .loader-tooth, .loader-sparkle, .loader-dots span, .loader-clay-card { animation: none !important; }
  .loader-sparkle { opacity: 0.7; }
}

/* ============================================================
   HERO ENHANCEMENTS — visible, GPU-cheap dental decorations
   ============================================================ */

/* Tooth deco — now larger, more opaque, but still transform-only */
.tooth-deco {
  font-size: 2.6rem;
  opacity: 0.35;
  filter: drop-shadow(0 6px 14px rgba(201,125,80,0.18));
  will-change: transform;
}
.tooth-1 { top: 10%;  right: 9%;  animation-delay: 0s; }
.tooth-2 { bottom: 16%; left: 5%;  animation-delay: -2.2s; font-size: 1.9rem; }
.tooth-3 { top: 52%;  right: 4%;  animation-delay: -4.4s; font-size: 1.5rem; }
.tooth-4 { top: 22%;  left: 7%;   animation-delay: -1.4s; font-size: 1.7rem; opacity: 0.28; }
.tooth-5 { bottom: 30%; right: 14%; animation-delay: -3.2s; font-size: 1.4rem; opacity: 0.30; }
.tooth-6 { top: 72%;  left: 14%;  animation-delay: -5.6s; font-size: 1.6rem; opacity: 0.25; }

/* Cheaper bob animation — transform only, no blur/scale combo */
@keyframes toothBob {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50%       { transform: translateY(-14px) rotate(5deg); }
}
.tooth-deco { animation: toothBob 7s ease-in-out infinite; }

/* Hero trust strip */
.hero-trust-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.hero-trust-pill {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--clay-peach-deep);
  background: rgba(255,255,255,0.65);
  border: 1.5px solid rgba(242,196,168,0.45);
  padding: 6px 13px;
  border-radius: var(--r-pill);
  box-shadow: var(--clay-shadow-sm);
  white-space: nowrap;
}
[data-theme="dark"] .hero-trust-pill {
  background: rgba(255,255,255,0.06);
  border-color: rgba(201,125,80,0.25);
  color: var(--clay-peach);
}

/* Hero image ring — subtle rotating dashed ring, transform-only (cheap) */
.hero-img-ring {
  position: absolute;
  width: clamp(220px, 24vw, 340px);
  height: clamp(220px, 24vw, 340px);
  border: 2px dashed rgba(201,125,80,0.30);
  border-radius: 50%;
  animation: ringSpin 22s linear infinite;
  will-change: transform;
  pointer-events: none;
}
@keyframes ringSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .tooth-deco, .hero-img-ring { animation: none !important; }
}

@media (max-width: 768px) {
  .tooth-4, .tooth-5, .tooth-6 { display: none; }
  .hero-img-ring { display: none; }
  .hero-trust-strip { justify-content: center; }
}

/* Lock scroll behind loader on initial paint */
body:has(.page-loader:not(.loader-hidden)) {
  overflow: hidden;
}

/* ============================================================
   HERO CLAYMORPHIC SCENE (karaoke-app inspired, dental themed)
   ============================================================ */

.hero-scene {
  position: relative;
  width: clamp(220px, 26vw, 360px);
  height: clamp(260px, 32vw, 420px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Glowing rainbow arc behind the image — pure CSS conic gradient ring */
.hero-scene-arc {
  position: absolute;
  width: 86%;
  height: 86%;
  border-radius: 50%;
  background: conic-gradient(
    from 200deg,
    rgba(242,196,168,0.55),
    rgba(184,224,210,0.45),
    rgba(212,197,240,0.45),
    rgba(200,223,245,0.45),
    rgba(242,196,168,0.55)
  );
  -webkit-mask: radial-gradient(circle, transparent 58%, black 60%, black 64%, transparent 66%);
          mask: radial-gradient(circle, transparent 58%, black 60%, black 64%, transparent 66%);
  filter: blur(2px);
  opacity: 0.8;
  animation: arcSpin 16s linear infinite;
  will-change: transform;
}
@keyframes arcSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Soft clay clouds at the base, echoing the reference image */
.hero-scene-cloud {
  position: absolute;
  bottom: 6%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff, #F2E8DD 70%);
  box-shadow: var(--clay-shadow-sm);
  opacity: 0.9;
}
.cloud-1 { width: 64px; height: 34px; left: 4%; }
.cloud-2 { width: 48px; height: 26px; right: 6%; bottom: 10%; }

/* Floating claymorphic icon bubbles */
.clay-bubble {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(150deg, #ffffff 0%, #FCEFE4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow:
    0 3px 0 rgba(180,110,60,0.18),
    0 6px 16px rgba(180,110,60,0.16),
    inset 0 2px 3px rgba(255,255,255,0.9),
    inset 0 -3px 5px rgba(180,110,60,0.10);
  border: 2px solid rgba(255,255,255,0.9);
  animation: bubbleFloat 5s ease-in-out infinite;
  will-change: transform;
  z-index: 2;
}
.clay-bubble span { line-height: 1; transform: translateY(-1px); }

.cb-1 { width: 60px; height: 60px; font-size: 1.7rem; top: 4%;  left: -4%;  animation-delay: 0s; }
.cb-2 { width: 40px; height: 40px; font-size: 1.2rem; top: 14%; right: -2%; animation-delay: -1.2s; }
.cb-3 { width: 56px; height: 56px; font-size: 1.6rem; bottom: 16%; left: -8%; animation-delay: -2.4s; }
.cb-4 { width: 44px; height: 44px; font-size: 1.25rem; bottom: 6%; right: -6%; animation-delay: -3.4s; }
.cb-5 { width: 36px; height: 36px; font-size: 1.05rem; top: 42%; right: -10%; animation-delay: -0.6s; }

@keyframes bubbleFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-12px) rotate(6deg); }
}

[data-theme="dark"] .clay-bubble {
  background: linear-gradient(150deg, #2A2018 0%, #1E160F 100%);
  border-color: rgba(255,255,255,0.08);
  box-shadow:
    0 3px 0 rgba(0,0,0,0.45),
    0 6px 16px rgba(0,0,0,0.35),
    inset 0 2px 3px rgba(255,255,255,0.06),
    inset 0 -3px 5px rgba(0,0,0,0.25);
}
[data-theme="dark"] .hero-scene-cloud {
  background: radial-gradient(circle at 30% 30%, #2A2018, #1A140E 70%);
}

/* The hero image itself sits above bubbles, centered */
.hero-scene .hero-img {
  position: relative;
  z-index: 1;
  width: clamp(170px, 19vw, 260px);
}

/* Responsive scaling */
@media (max-width: 1024px) {
  .hero-image-wrap { display: flex; }
  .hero-scene { width: clamp(200px, 40vw, 300px); height: clamp(230px, 46vw, 340px); }
}

@media (max-width: 768px) {
  .hero-scene { width: 240px; height: 270px; margin: 0 auto; }
  .cb-1, .cb-2, .cb-3, .cb-4, .cb-5 { transform: scale(0.85); }
  .hero-scene-cloud { transform: scale(0.85); }
}

@media (max-width: 480px) {
  .hero-scene { width: 200px; height: 230px; }
  .cb-2, .cb-5 { display: none; } /* trim for very small phones, keep perf high */
}

@media (prefers-reduced-motion: reduce) {
  .hero-scene-arc, .clay-bubble { animation: none !important; }
}
