/* ================================================================
   RESIDENTAL CARE – Premium Dental Clinic Website
   Design System: Warm-Teal × Deep Navy × Cream
   Fonts: Cormorant Garamond (display) + Outfit (body)
   ================================================================ */

/* ── CSS VARIABLES ──────────────────────────────────────────────── */
:root {
  /* Brand palette */
  --teal-900: #134e4a;
  --teal-800: #115e59;
  --teal-700: #0f766e;
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --teal-300: #5eead4;
  --teal-100: #ccfbf1;
  --teal-50:  #f0fdfa;

  --navy-900: #0c1930;
  --navy-800: #0f2644;
  --navy-700: #1a3a5c;
  --navy-600: #1e4976;

  --sky-600:  #0284c7;
  --sky-500:  #0ea5e9;
  --sky-200:  #bae6fd;
  --sky-50:   #f0f9ff;

  --cream:    #fafaf8;
  --warm-50:  #f8f7f4;
  --warm-100: #f0ede6;

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Outfit', system-ui, -apple-system, sans-serif;

  /* Greys */
  --gray-50:  #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Semantic */
  --text:       #1e293b;
  --text-muted: #64748b;
  --border:     #e2e8f0;
  --bg:         #ffffff;

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-xl: 0 30px 80px rgba(0,0,0,0.12), 0 10px 24px rgba(0,0,0,0.06);
  --shadow-teal: 0 8px 32px rgba(13,148,136,0.25);
  --shadow-navy: 0 8px 32px rgba(12,25,48,0.2);

  /* Layout */
  --max-w: 1200px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --r-sm: 8px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 36px;
}

/* ── RESET ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
input, select, textarea, button { font-family: inherit; }

/* ── UTILITIES ───────────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }
.section { padding: 100px 0; }
.section--tinted { background: var(--warm-50); }

/* Tags */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-700);
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.tag--light { color: var(--teal-300); background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }

/* Section titles */
.sec-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--gray-900);
  margin-bottom: 16px;
}
.sec-title em { font-style: italic; color: var(--teal-700); }
.sec-title--light { color: #fff; }
.sec-title--light em { color: var(--teal-300); }

.sec-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.75;
}
.sec-header { text-align: center; margin-bottom: 64px; }
.sec-header .sec-desc { margin: 0 auto; }
.sec-header--light .sec-desc { color: rgba(255,255,255,0.7); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 14px 28px;
  border-radius: 100px;
  cursor: pointer;
  border: none;
  transition: all 0.28s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--teal-700), var(--teal-600));
  color: white;
  box-shadow: var(--shadow-teal);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(13,148,136,0.35); }
.btn--hero-primary {
  background: white;
  color: var(--teal-700);
  box-shadow: var(--shadow-lg);
  font-size: 0.95rem;
  padding: 16px 32px;
}
.btn--hero-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-xl); background: var(--teal-50); }
.btn--hero-ghost {
  background: rgba(255,255,255,0.12);
  color: white;
  border: 1.5px solid rgba(255,255,255,0.35);
  font-size: 0.95rem;
  padding: 16px 32px;
  backdrop-filter: blur(8px);
}
.btn--hero-ghost:hover { background: rgba(255,255,255,0.22); border-color: white; transform: translateY(-2px); }
.btn--nav {
  background: linear-gradient(135deg, var(--teal-700), var(--sky-600));
  color: white;
  font-size: 0.85rem;
  padding: 10px 22px;
  box-shadow: 0 4px 16px rgba(13,148,136,0.3);
}
.btn--nav:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(13,148,136,0.4); }
.btn--cta-white {
  background: white;
  color: var(--teal-700);
  font-size: 0.9rem;
  padding: 13px 26px;
  box-shadow: var(--shadow-md);
}
.btn--cta-white:hover { background: var(--teal-50); transform: translateY(-2px); }
.btn--submit {
  background: linear-gradient(135deg, var(--teal-700), var(--sky-600));
  color: white;
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 16px;
  box-shadow: var(--shadow-teal);
}
.btn--submit:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(13,148,136,0.4); }
.btn-arrow { transition: transform 0.2s; }
.btn--submit:hover .btn-arrow { transform: translateX(4px); }

/* ================================================================
   LOADER
   ================================================================ */
.loader {
  position: fixed;
  inset: 0;
  background: var(--navy-900);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader.hide { opacity: 0; visibility: hidden; }
.loader__logo { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.loader__tooth {
  width: 64px;
  animation: loader-pulse 1.5s ease-in-out infinite;
}
@keyframes loader-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.8; }
}
.loader__brand { display: flex; font-family: var(--font-display); font-size: 2rem; font-weight: 700; }
.loader__resi { color: white; }
.loader__dental { color: var(--teal-500); }
.loader__bar {
  width: 200px;
  height: 3px;
  background: rgba(255,255,255,0.12);
  border-radius: 3px;
  overflow: hidden;
}
.loader__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal-600), var(--sky-500));
  border-radius: 3px;
  animation: loader-fill 1.8s ease forwards;
}
@keyframes loader-fill {
  from { width: 0; }
  to { width: 100%; }
}

/* ================================================================
   HEADER
   ================================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s var(--ease);
}
.header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.nav {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}
/* Logo */
.nav__logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-mark {
  width: 52px; height: 66px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(13,148,136,0.3));
  transition: transform 0.3s var(--ease-bounce);
}
.logo-mark:hover { transform: scale(1.06) rotate(-2deg); }
.logo-mark svg { width: 100%; height: 100%; }
.logo-mark--sm { width: 38px; height: 48px; }
.logo-text { display: flex; flex-direction: column; gap: 2px; }
.logo-wordmark {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
}
.logo-resi { color: var(--navy-800); }
.logo-dental { color: var(--teal-700); }
.logo-care { color: var(--gray-400); font-weight: 500; font-size: 1.1rem; }
.logo-tagline {
  font-size: 0.62rem;
  font-weight: 400;
  color: var(--gray-400);
  letter-spacing: 0.04em;
  line-height: 1;
}
.logo-wordmark--ft { font-size: 1.3rem; }
.logo-tagline--ft { font-size: 0.6rem; color: rgba(255,255,255,0.4); }
.logo-resi { color: var(--navy-800); }
.footer .logo-resi { color: white; }
.footer .logo-dental { color: var(--teal-400, #2dd4bf); }
.footer .logo-care { color: rgba(255,255,255,0.5); }

.nav__menu {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 2px;
}
.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s;
}
.nav__link:hover, .nav__link.active {
  color: var(--teal-700);
  background: var(--teal-50);
}
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.nav__toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--teal-900) 60%, var(--navy-800) 100%);
  overflow: hidden;
}
.hero__noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.5;
}
.hero__orbs { position: absolute; inset: 0; pointer-events: none; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}
.orb--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(13,148,136,0.3) 0%, transparent 70%);
  top: -100px; right: -50px;
  animation: orb-drift 12s ease-in-out infinite;
}
.orb--2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(14,165,233,0.2) 0%, transparent 70%);
  bottom: 100px; left: -80px;
  animation: orb-drift 16s ease-in-out infinite reverse;
}
.orb--3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(94,234,212,0.15) 0%, transparent 70%);
  top: 50%; right: 25%;
  animation: orb-drift 20s ease-in-out infinite 3s;
}
@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(30px, -40px); }
  66% { transform: translate(-20px, 30px); }
}

.hero__grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 120px 28px 80px;
}

/* Hero Left */
.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--teal-300);
  border: 1px solid rgba(94,234,212,0.3);
  background: rgba(94,234,212,0.08);
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.pill__dot {
  width: 7px; height: 7px;
  background: var(--teal-400, #2dd4bf);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  color: white;
  margin-bottom: 24px;
}
.hero__em {
  font-style: italic;
  color: transparent;
  background: linear-gradient(90deg, var(--teal-300), var(--sky-200));
  -webkit-background-clip: text;
  background-clip: text;
}
.hero__sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 40px;
  max-width: 480px;
  line-height: 1.75;
}
.hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}
.hero__stats {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 20px 28px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r);
  backdrop-filter: blur(8px);
  width: fit-content;
}
.stat { text-align: center; }
.stat__num {
  display: inline;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: white;
  line-height: 1;
}
.stat__plus {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--teal-300);
  vertical-align: super;
  font-size: 1.1rem;
}
.stat__label {
  display: block;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
  white-space: nowrap;
}
.stat__sep { width: 1px; height: 44px; background: rgba(255,255,255,0.15); }

/* Hero Right */
.hero__visual-wrap { position: relative; display: flex; justify-content: center; align-items: center; height: 560px; }

/* ── HERO SCENE ── */
.hero__scene {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Glowing ring backdrop */
.scene__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(13,148,136,0.2);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: ring-pulse 4s ease-in-out infinite;
}
.scene__ring--outer {
  width: 480px; height: 480px;
  border-color: rgba(13,148,136,0.12);
  animation-delay: 0s;
  background: radial-gradient(circle, rgba(13,148,136,0.04) 0%, transparent 70%);
}
.scene__ring--inner {
  width: 360px; height: 360px;
  border-color: rgba(6,182,212,0.18);
  animation-delay: 1s;
  background: radial-gradient(circle, rgba(6,182,212,0.06) 0%, transparent 70%);
}
@keyframes ring-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.04); opacity: 0.7; }
}

/* Main large tooth */
.scene__tooth-wrap {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: tooth-float 7s ease-in-out infinite;
  z-index: 2;
  filter: drop-shadow(0 24px 48px rgba(13,148,136,0.3));
}
.scene__tooth-svg { width: 260px; }
@keyframes tooth-float {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-18px); }
}

/* Doctor illustration */
.scene__doctor {
  position: absolute;
  bottom: -8px;
  left: -10px;
  z-index: 3;
  animation: doctor-sway 8s ease-in-out infinite;
  filter: drop-shadow(4px 8px 20px rgba(0,0,0,0.25));
}
.scene__doctor svg { width: 130px; }
@keyframes doctor-sway {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(1.5deg) translateY(-4px); }
}

/* Patient smile arc */
.scene__smile-arc {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  animation: smile-glow 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 16px rgba(13,148,136,0.4));
}
.scene__smile-arc svg { width: 240px; }
@keyframes smile-glow {
  0%, 100% { filter: drop-shadow(0 4px 16px rgba(13,148,136,0.4)); }
  50% { filter: drop-shadow(0 4px 24px rgba(6,182,212,0.6)); }
}

.hero__tooth-ring {
  position: relative;
  animation: tooth-float 7s ease-in-out infinite;
  filter: drop-shadow(0 30px 60px rgba(13,148,136,0.35));
}
.big-tooth { width: 280px; }

.float-card {
  position: absolute;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--r);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.15);
  z-index: 10;
}
.float-card--tl { top: 24px; left: -16px; animation: fc-float 6s ease-in-out infinite; }
.float-card--br { bottom: 80px; right: -16px; animation: fc-float 8s ease-in-out infinite 1s; }
.float-card--tr {
  top: 70px; right: -16px;
  padding: 12px 20px;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: white;
  animation: fc-float 5s ease-in-out infinite 2s;
}
@keyframes fc-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.fc-icon { font-size: 1.6rem; flex-shrink: 0; }
.fc-text { display: flex; flex-direction: column; }
.fc-text strong { font-size: 0.9rem; font-weight: 600; color: white; }
.fc-text span { font-size: 0.75rem; color: rgba(255,255,255,0.65); margin-top: 2px; }
.fc-badge {
  width: 24px; height: 24px;
  background: var(--teal-500);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  font-weight: 700;
}

/* Marquee */
.hero__marquee {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
  background: rgba(0,0,0,0.15);
}
.marquee__track {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  animation: marquee-scroll 28s linear infinite;
}
.marquee__track span {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.marquee__track .sep { color: var(--teal-500); }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ================================================================
   ABOUT
   ================================================================ */
.about__wrap {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 80px;
  align-items: center;
}
.about__card-stack { position: relative; }
.about__main-card {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
}
.about__avatar svg { width: 100%; display: block; }
.about__float-badge {
  position: absolute;
  background: white;
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 16px 20px;
}
.about__float-badge--exp {
  top: -16px;
  right: -20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.badge-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--teal-700);
  line-height: 1;
}
.badge-txt { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }
.about__float-badge--cert {
  bottom: -16px;
  left: -20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.about__float-badge--cert span { font-size: 1.5rem; }
.about__float-badge--cert strong { display: block; font-size: 0.85rem; color: var(--gray-800); }
.about__float-badge--cert small { font-size: 0.72rem; color: var(--text-muted); }

.about__intro {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 14px;
}
.about__body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}
.about__quals { display: flex; flex-direction: column; gap: 18px; margin-bottom: 36px; }
.qual { display: flex; align-items: flex-start; gap: 16px; }
.qual__dot {
  width: 10px; height: 10px;
  background: linear-gradient(135deg, var(--teal-700), var(--sky-500));
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
.qual strong { display: block; font-size: 0.9rem; color: var(--gray-800); font-weight: 600; }
.qual span { font-size: 0.8rem; color: var(--text-muted); }

/* ================================================================
   SERVICES
   ================================================================ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.svc-card {
  background: white;
  border-radius: var(--r);
  padding: 26px;
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.svc-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-700), var(--sky-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(13,148,136,0.15); }
.svc-card:hover::after { transform: scaleX(1); }

.svc-card__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.svc-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  padding: 10px;
}
.svc-icon svg { width: 100%; height: 100%; }
.svc-icon--blue   { background: #EFF6FF; }
.svc-icon--teal   { background: var(--teal-50); }
.svc-icon--sky    { background: var(--sky-50); }
.svc-icon--violet { background: #F5F3FF; }
.svc-icon--orange { background: #FFF7ED; }
.svc-icon--rose   { background: #FFF1F2; }
.svc-icon--emerald{ background: #F0FDF4; }

.svc-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #EFF6FF;
  color: #1D4ED8;
}
.svc-badge--teal   { background: var(--teal-50); color: var(--teal-700); }
.svc-badge--sky    { background: var(--sky-50); color: var(--sky-600); }
.svc-badge--violet { background: #F5F3FF; color: #7C3AED; }
.svc-badge--orange { background: #FFF7ED; color: #EA580C; }
.svc-badge--rose   { background: #FFF1F2; color: #E11D48; }
.svc-badge--emerald{ background: #F0FDF4; color: #059669; }

.svc-card h3 { font-size: 1rem; font-weight: 600; color: var(--gray-800); margin-bottom: 8px; }
.svc-card p { font-size: 0.865rem; color: var(--text-muted); line-height: 1.65; }

.svc-card--cta {
  background: linear-gradient(135deg, var(--teal-800), var(--teal-700) 50%, var(--sky-600));
  border-color: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
}
.svc-card--cta::after { display: none; }
.svc-card--cta:hover { transform: translateY(-6px); }
.svc-cta-logo { width: 52px; margin: 0 auto; }
.svc-card--cta h3 { color: white; font-size: 1.05rem; }
.svc-card--cta p { color: rgba(255,255,255,0.8); }

/* ================================================================
   WHY US
   ================================================================ */
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-item {
  padding: 32px 28px;
  background: white;
  border-radius: var(--r);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--ease);
}
.why-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(13,148,136,0.2);
}
.why-item__icon { font-size: 2rem; margin-bottom: 12px; }
.why-item__num {
  position: absolute;
  top: 20px; right: 22px;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gray-100);
  line-height: 1;
}
.why-item h3 { font-size: 0.975rem; font-weight: 600; color: var(--gray-800); margin-bottom: 10px; }
.why-item p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.68; }

/* ================================================================
   GALLERY
   ================================================================ */
.gallery__filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 9px 22px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: white;
  color: var(--gray-500);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
}
.filter-btn:hover { border-color: var(--teal-600); color: var(--teal-700); }
.filter-btn.active {
  background: linear-gradient(135deg, var(--teal-700), var(--teal-600));
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-teal);
}
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gal-item { transition: all 0.25s; }
.gal-item.hidden { display: none; }
.gal-inner {
  background: white;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease);
}
.gal-inner:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.gal-before-after {
  display: flex;
  align-items: center;
  padding: 16px;
  gap: 10px;
  background: var(--gray-50);
}
.gal-ba { flex: 1; position: relative; }
.gal-ba svg { width: 100%; display: block; border-radius: 8px; }
.gal-ba__label {
  position: absolute;
  top: 6px; left: 6px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.45);
  color: white;
  padding: 3px 7px;
  border-radius: 4px;
}
.gal-ba__label.after { background: rgba(13,148,136,0.75); }
.gal-arrow { font-size: 1.2rem; color: var(--gray-300); flex-shrink: 0; }
.gal-info { padding: 14px 18px; }
.gal-info h4 { font-size: 0.875rem; font-weight: 600; color: var(--gray-800); margin-bottom: 3px; }
.gal-info span { font-size: 0.75rem; color: var(--text-muted); }

.gal-stat-card {
  padding: 28px 20px;
  background: linear-gradient(135deg, var(--teal-800), var(--sky-600));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  min-height: 160px;
  justify-content: center;
}
.gal-stat-card--blue { background: linear-gradient(135deg, var(--navy-700), var(--sky-600)); }
.gal-stat-card--violet { background: linear-gradient(135deg, #4c1d95, #7c3aed); }
.gal-stat-icon { font-size: 2rem; }
.gal-stat-num { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: white; line-height: 1; }
.gal-stat-num small { font-size: 1rem; opacity: 0.7; }
.gal-stat-label { font-size: 0.85rem; font-weight: 600; color: white; }
.gal-stat-sub { font-size: 0.72rem; color: rgba(255,255,255,0.65); }
.gal-stat-tags { display: flex; gap: 6px; margin-top: 4px; }
.gal-stat-tags span {
  font-size: 0.65rem; font-weight: 600; padding: 3px 10px;
  background: rgba(255,255,255,0.15);
  border-radius: 100px; color: white; border: 1px solid rgba(255,255,255,0.2);
}
.gallery__note { text-align: center; margin-top: 24px; font-size: 0.78rem; color: var(--gray-400); font-style: italic; }

/* ================================================================
   TESTIMONIALS
   ================================================================ */
.testi {
  position: relative;
  background: var(--navy-900);
  overflow: hidden;
}
.testi__bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(13,148,136,0.2) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(2,132,199,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.testi__inner { position: relative; z-index: 1; }
.testi__slider { max-width: 820px; margin: 0 auto; }
.testi__cards { position: relative; min-height: 260px; }
.testi-card {
  display: none;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-lg);
  padding: 44px 48px;
  backdrop-filter: blur(10px);
  animation: testi-in 0.45s ease;
}
.testi-card--active { display: block; }
@keyframes testi-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.testi-card__stars { font-size: 1.1rem; letter-spacing: 3px; color: #FBBF24; margin-bottom: 18px; }
.testi-card p {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: rgba(255,255,255,0.88);
  line-height: 1.7;
  margin-bottom: 28px;
}
.testi-card__author { display: flex; align-items: center; gap: 14px; }
.testi-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--av-bg, #0D9488);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem;
  color: white; flex-shrink: 0;
}
.testi-card__author strong { display: block; color: white; font-size: 0.9rem; }
.testi-card__author span { font-size: 0.75rem; color: rgba(255,255,255,0.5); }
.testi__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}
.testi-arrow {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.07);
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s;
  display: flex; align-items: center; justify-content: center;
}
.testi-arrow:hover { background: rgba(255,255,255,0.18); border-color: white; }
.testi__dots { display: flex; gap: 8px; }
.testi-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: none; cursor: pointer;
  transition: all 0.3s;
}
.testi-dot.active { background: white; width: 28px; border-radius: 4px; }

/* ================================================================
   CONTACT
   ================================================================ */
.contact__wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: start;
}
.contact__intro { color: var(--text-muted); margin-bottom: 32px; }
.contact__info-cards { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.info-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: var(--warm-50);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  transition: all 0.25s;
}
.info-card:hover { border-color: rgba(13,148,136,0.3); background: var(--teal-50); }
.info-card__icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.info-card strong { display: block; font-size: 0.75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 3px; }
.info-card span, .info-card a { font-size: 0.9rem; color: var(--gray-800); }
.info-card a:hover { color: var(--teal-700); }

.contact__quick-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.qbtn {
  display: flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: 100px;
  font-size: 0.875rem; font-weight: 600;
  cursor: pointer; border: none; transition: all 0.25s;
}
.qbtn--wa { background: #25D366; color: white; }
.qbtn--wa:hover { background: #1da851; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,0.35); }
.qbtn--call { background: var(--warm-50); color: var(--gray-700); border: 1.5px solid var(--border); }
.qbtn--call:hover { background: var(--teal-700); color: white; border-color: transparent; transform: translateY(-2px); }

.contact__map {
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.contact__map iframe { display: block; }

/* Appointment Form */
.appt-form {
  background: white;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.appt-form__header {
  background: linear-gradient(135deg, var(--teal-800), var(--teal-700));
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.appt-form__header h3 { font-size: 1.15rem; font-weight: 600; color: white; }
.appt-form__header p { font-size: 0.78rem; color: rgba(255,255,255,0.6); }
form { padding: 28px 32px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fg { margin-bottom: 16px; }
.fg label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.fg input, .fg select, .fg textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  color: var(--gray-800);
  background: var(--gray-50);
  outline: none;
  transition: all 0.25s;
  appearance: none;
}
.fg input:focus, .fg select:focus, .fg textarea:focus {
  border-color: var(--teal-600);
  background: white;
  box-shadow: 0 0 0 3px rgba(13,148,136,0.1);
}
.fg textarea { resize: vertical; min-height: 72px; }
.form-note { text-align: center; font-size: 0.75rem; color: var(--text-muted); margin-top: 12px; }

.form-success {
  background: white;
  border-radius: var(--r-xl);
  padding: 60px 40px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  text-align: center;
}
.success-anim svg { width: 80px; margin: 0 auto 24px; }
.form-success h3 { font-family: var(--font-display); font-size: 1.7rem; color: var(--gray-900); margin-bottom: 12px; }
.form-success p { color: var(--text-muted); margin-bottom: 28px; max-width: 320px; margin-left: auto; margin-right: auto; }

/* ================================================================
   FOOTER
   ================================================================ */
.footer { background: var(--navy-900); color: white; }
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding: 72px 28px 56px;
}
.footer__brand p { font-size: 0.875rem; color: rgba(255,255,255,0.45); line-height: 1.75; margin: 16px 0; }
.footer__logo { display: flex; align-items: center; gap: 12px; }
.footer__address { display: flex; align-items: flex-start; gap: 10px; font-size: 0.82rem; color: rgba(255,255,255,0.4); }
.footer__address span:first-child { flex-shrink: 0; }
.footer__col h4 { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.35); margin-bottom: 18px; }
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col ul li, .footer__col ul a { font-size: 0.875rem; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer__col ul a:hover { color: var(--teal-400, #2dd4bf); }
.footer-contact { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.footer-contact a { font-size: 0.875rem; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-contact a:hover { color: var(--teal-400, #2dd4bf); }
.footer-hours { display: flex; flex-direction: column; gap: 4px; }
.footer-hours strong { font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.footer-hours span { font-size: 0.82rem; color: rgba(255,255,255,0.5); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.07); }
.footer__bottom-inner {
  padding: 20px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer__bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.28); }

/* ================================================================
   SCROLL-TO-TOP
   ================================================================ */
.scroll-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--teal-700), var(--sky-600));
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-teal);
  z-index: 800;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s var(--ease-bounce);
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-3px) scale(1.08); }

/* ================================================================
   SCROLL ANIMATIONS
   ================================================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
[data-animate="fade-right"] { transform: translateX(-28px); }
[data-animate="fade-left"]  { transform: translateX(28px); }
[data-animate].in-view      { opacity: 1; transform: none; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1100px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 0; padding: 110px 28px 60px; }
  .hero__right { display: none; }
  .about__wrap { grid-template-columns: 1fr; gap: 40px; }
  .about__img-col { display: none; }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__wrap { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .nav__menu {
    position: fixed;
    top: 76px; left: 0; right: 0; bottom: 0;
    background: white;
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    overflow-y: auto;
    z-index: 999;
    box-shadow: var(--shadow-xl);
  }
  .nav__menu.open { transform: translateX(0); }
  .nav__link { display: block; width: 100%; padding: 14px 16px; font-size: 1rem; }
  .nav__toggle { display: flex; }
  .btn--nav { display: none; }
  .services__grid { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: 1fr; }
  .frow { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
  .hero__stats { flex-wrap: wrap; justify-content: center; }
  .testi-card { padding: 28px 24px; }
  .testi-card p { font-size: 1rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero__title { font-size: 2.4rem; }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
  .appt-form__header { padding: 18px 20px; }
  form { padding: 20px; }
  .form-success { padding: 40px 24px; }
}

/* ================================================================
   PHOTO PLACEHOLDERS & GALLERY GUIDE
   (Remove these styles once you add real photos)
   ================================================================ */

/* Doctor photo placeholder */
.photo-placeholder {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}
.photo-placeholder svg { width: 100%; display: block; }
.photo-placeholder__label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(12, 25, 48, 0.85);
  color: rgba(255,255,255,0.75);
  font-size: 0.72rem;
  padding: 10px 14px;
  text-align: center;
  font-family: var(--font-body);
  backdrop-filter: blur(4px);
}
.photo-placeholder__label code {
  background: rgba(13,148,136,0.4);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.68rem;
  color: #5eead4;
}

/* When real photo is added to about section */
.about__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 20px;
}

/* Gallery photo placeholders */
.gal-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px 20px;
  min-height: 160px;
  background: linear-gradient(135deg, rgba(13,148,136,0.15), rgba(6,182,212,0.1));
  text-align: center;
}
.gpp__icon { font-size: 2.2rem; }
.gpp__title { font-size: 0.9rem; font-weight: 600; color: white; }
.gpp__hint {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.55);
}
.gpp__hint code {
  background: rgba(255,255,255,0.15);
  padding: 2px 7px;
  border-radius: 4px;
  color: #5eead4;
  font-size: 0.68rem;
}

/* Real photo when added to gallery */
.gal-real-photo {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* Gallery photo guide banner */
.gallery__photo-guide {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: linear-gradient(135deg, #f0fdfa, #e0f2fe);
  border: 1px solid #99f6e4;
  border-radius: var(--r);
  padding: 20px 24px;
  margin-top: 32px;
  margin-bottom: 16px;
}
.gpg__icon { font-size: 1.8rem; flex-shrink: 0; }
.gallery__photo-guide strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal-800);
  margin-bottom: 4px;
}
.gallery__photo-guide p {
  font-size: 0.82rem;
  color: var(--teal-700);
  line-height: 1.6;
  margin: 0;
}
.gallery__photo-guide code {
  background: rgba(13,148,136,0.15);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.78rem;
  color: var(--teal-800);
}

/* Mobile viewport fix */
.hero { min-height: calc(var(--vh, 1vh) * 100); }

/* ── RESPONSIVE: photo placeholders on mobile ── */
@media (max-width: 768px) {
  .gallery__photo-guide { flex-direction: column; gap: 10px; }
}
