/* =========================================
   WHITE TEETH — Premium Dental Clinic CSS
   ========================================= */

/* --- Variables --- */
:root {
  --white: #FFFFFF;
  --sky: #2A8FD4;
  --sky-dark: #1A6FAA;
  --sky-light: #7EC8F0;
  --blue-pale: #EBF6FF;
  --blue-soft: #D4EEFF;
  --soft-gray: #F4F8FB;
  --text-dark: #0D2B4A;
  --text-mid: #3A5570;
  --text-light: #6A8AA0;
  --border: #D8EAF5;
  --shadow: 0 8px 32px rgba(42,143,212,0.10);
  --shadow-hover: 0 20px 50px rgba(42,143,212,0.18);
  --radius: 20px;
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);

  /* Fonts */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

/* --- 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-dark);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.7;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; }

/* --- Utilities --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 100px 0; }
.bg-soft { background: var(--soft-gray); }

.glass {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.85);
}

/* --- Section Labels & Heads --- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-pale);
  color: var(--sky);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-head {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}
.section-head h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 16px; }
.section-head p { color: var(--text-mid); font-size: 1.05rem; }

h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-dark);
}
h2 em {
  font-style: italic;
  color: var(--sky);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  transition: var(--transition);
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--sky) 0%, var(--sky-dark) 100%);
  color: white;
  box-shadow: 0 6px 24px rgba(42,143,212,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(42,143,212,0.45);
}
.btn-outline {
  border: 2px solid var(--sky);
  color: var(--sky);
  background: transparent;
}
.btn-outline:hover {
  background: var(--sky);
  color: white;
  transform: translateY(-2px);
}
.full-btn {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1rem;
}

/* ===================================================
   LOADER
=================================================== */
#loader {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #1A6FAA 0%, #2A8FD4 60%, #7EC8F0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; }

.loader-inner { text-align: center; }
.loader-tooth {
  width: 70px;
  height: 80px;
  margin: 0 auto 16px;
  animation: loaderPulse 1.2s ease-in-out infinite;
}
.loader-tooth svg { width: 100%; height: 100%; }
.loader-inner p {
  color: white;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}
@keyframes loaderPulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.85; }
}

/* ===================================================
   EMERGENCY BANNER
=================================================== */
.emergency-banner {
  background: linear-gradient(90deg, #1A6FAA, #2A8FD4);
  color: white;
  text-align: center;
  padding: 10px 48px;
  font-size: 0.85rem;
  font-weight: 500;
  position: relative;
  z-index: 1000;
}
.emergency-banner i { margin-right: 8px; }
.emergency-banner strong { font-weight: 700; }
.banner-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  opacity: 0.75;
  font-size: 1rem;
  transition: opacity 0.2s;
}
.banner-close:hover { opacity: 1; }

/* ===================================================
   NAVBAR
=================================================== */
#navbar {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
#navbar.scrolled {
  box-shadow: 0 4px 24px rgba(42,143,212,0.12);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--sky);
  letter-spacing: 0.03em;
}
.logo-icon {
  width: 32px;
  height: 36px;
  color: var(--sky);
}
.logo-icon svg { width: 100%; height: 100%; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--sky);
  background: var(--blue-pale);
}
.nav-cta {
  background: linear-gradient(135deg, var(--sky), var(--sky-dark));
  color: white !important;
  border-radius: 50px;
  padding: 8px 20px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(42,143,212,0.3);
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(42,143,212,0.4);
  background: var(--sky) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--sky);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================================================
   FLOATING BUTTONS
=================================================== */
.float-appt-btn {
  position: fixed;
  right: 24px;
  bottom: 90px;
  background: linear-gradient(135deg, var(--sky), var(--sky-dark));
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 6px 24px rgba(42,143,212,0.4);
  z-index: 800;
  transition: var(--transition);
}
.float-appt-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 36px rgba(42,143,212,0.5);
}

.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sky);
  color: white;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 800;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
}
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top:hover { background: var(--sky-dark); transform: translateY(-2px); }

/* ===================================================
   HERO
=================================================== */
.hero {
  position: relative;
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, #EBF6FF 0%, #F7FAFD 40%, #FFFFFF 100%);
  padding: 80px 0;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
}
.shape-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--sky-light), transparent);
  top: -200px; right: -200px;
  animation: shapeDrift 12s ease-in-out infinite alternate;
}
.shape-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--sky), transparent);
  bottom: -100px; left: -100px;
  animation: shapeDrift 15s ease-in-out infinite alternate-reverse;
}
.shape-3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, #B0D8F5, transparent);
  top: 30%; left: 40%;
  opacity: 0.08;
  animation: shapeDrift 8s ease-in-out infinite alternate;
}
@keyframes shapeDrift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(30px, -30px) scale(1.05); }
}

/* Floating teeth icons */
.floating-teeth {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.ft {
  position: absolute;
  font-size: 1.2rem;
  color: var(--sky-light);
  opacity: 0.35;
  animation: floatIcon 6s ease-in-out infinite;
}
.ft-1 { top: 15%; left: 8%; animation-delay: 0s; font-size: 1.5rem; }
.ft-2 { top: 60%; left: 4%; animation-delay: 1.2s; }
.ft-3 { top: 80%; right: 8%; animation-delay: 2.4s; font-size: 1rem; }
.ft-4 { top: 20%; right: 12%; animation-delay: 0.8s; font-size: 0.9rem; color: #FFD060; opacity: 0.4; }
.ft-5 { top: 45%; right: 5%; animation-delay: 1.8s; font-size: 1.1rem; }

@keyframes floatIcon {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-18px) rotate(8deg); }
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--sky-light), var(--sky));
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 50px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(42,143,212,0.25);
  animation: fadeSlideUp 0.8s ease both;
}

.hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: 20px;
  animation: fadeSlideUp 0.9s 0.1s ease both;
}
.hero-text h1 em {
  font-style: italic;
  color: var(--sky);
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 460px;
  line-height: 1.8;
  margin-bottom: 36px;
  animation: fadeSlideUp 0.9s 0.2s ease both;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  animation: fadeSlideUp 0.9s 0.3s ease both;
}
.hero-trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  animation: fadeSlideUp 0.9s 0.4s ease both;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-mid);
  font-weight: 500;
}
.trust-item i { color: var(--sky); font-size: 0.85rem; }

/* Hero Visual */
.hero-visual { position: relative; }
.hero-card-wrap {
  position: relative;
  max-width: 440px;
  margin-left: auto;
}
.hero-img-frame {
  border-radius: 28px;
  overflow: hidden;
  background: var(--blue-pale);
  box-shadow: var(--shadow-hover);
  animation: fadeSlideLeft 1s 0.2s ease both;
}
.hero-img-placeholder {
  background: linear-gradient(145deg, #EBF6FF, #D4EEFF);
  border-radius: 28px;
  overflow: hidden;
}
.hero-img-placeholder svg { width: 100%; height: auto; display: block; }

.hero-float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(42,143,212,0.15);
}
.hero-float-card i {
  font-size: 1.3rem;
  color: var(--sky);
  background: var(--blue-pale);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-float-card strong {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
}
.hero-float-card span {
  font-size: 0.75rem;
  color: var(--text-light);
}

.card-1 {
  bottom: 20px;
  left: -30px;
  animation: fadeSlideUp 1s 0.5s ease both, cardFloat 5s 1.5s ease-in-out infinite;
}
.card-2 {
  top: 20px;
  right: -30px;
  animation: fadeSlideLeft 1s 0.7s ease both, cardFloat 6s 2s ease-in-out infinite;
}
.card-3 {
  top: 50%;
  left: -40px;
  transform: translateY(-50%);
  animation: fadeSlideUp 1s 0.9s ease both, cardFloat 7s 2.5s ease-in-out infinite;
}

@keyframes cardFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.card-3 { animation: fadeSlideUp 1s 0.9s ease both, cardFloat3 7s 2.5s ease-in-out infinite; }
@keyframes cardFloat3 {
  0%,100% { transform: translateY(-50%); }
  50% { transform: translateY(calc(-50% - 8px)); }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideLeft {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ===================================================
   ABOUT
=================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 80px;
}

.about-img-wrap { position: relative; }
.about-img-frame {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  background: var(--blue-pale);
}
.about-img-frame svg { width: 100%; height: auto; }

.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.about-badge i {
  font-size: 1.6rem;
  color: var(--sky);
}
.about-badge span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
}

.about-text h2 { margin-bottom: 16px; }
.about-text p {
  color: var(--text-mid);
  font-size: 1.05rem;
  margin-bottom: 32px;
  line-height: 1.9;
}

.about-features { display: flex; flex-direction: column; gap: 18px; }
.about-feat {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.about-feat > i {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--blue-pale);
  color: var(--sky);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}
.about-feat:hover > i {
  background: var(--sky);
  color: white;
  transform: scale(1.05);
}
.about-feat div strong {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
}
.about-feat div span {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 24px;
}
.stat-card {
  text-align: center;
  background: white;
  border-radius: var(--radius);
  padding: 36px 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.stat-icon {
  font-size: 1.8rem;
  color: var(--sky);
  margin-bottom: 12px;
}
.stat-num {
  display: inline;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  color: var(--sky);
  line-height: 1;
}
.stat-plus {
  display: inline;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--sky);
}
.stat-card p {
  margin-top: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-mid);
}

/* ===================================================
   SERVICES
=================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 28px;
}
.service-card {
  background: white;
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--sky-light), var(--sky));
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--sky-light);
}
.svc-icon {
  width: 56px; height: 56px;
  background: var(--blue-pale);
  color: var(--sky);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  transition: var(--transition);
}
.service-card:hover .svc-icon {
  background: var(--sky);
  color: white;
  transform: scale(1.08) rotate(-5deg);
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-dark);
}
.service-card p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 20px;
}
.svc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sky);
  transition: var(--transition);
}
.svc-link i { transition: transform var(--transition); }
.svc-link:hover i { transform: translateX(4px); }

/* ===================================================
   BEFORE / AFTER
=================================================== */
.before-after { background: var(--white); }
.ba-cards {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 28px;
}
.ba-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.ba-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

.ba-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.ba-before, .ba-after {
  position: relative;
  overflow: hidden;
}
.ba-before svg, .ba-after svg { width: 100%; height: auto; }
.ba-label {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,0.55);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ba-info {
  padding: 20px;
  background: white;
}
.ba-info h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-dark);
}
.ba-info p { font-size: 0.82rem; color: var(--text-light); }

/* ===================================================
   WHY CHOOSE US
=================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 28px;
}
.why-card {
  background: white;
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.why-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  background: linear-gradient(145deg, #EBF6FF 0%, white 100%);
}
.why-icon {
  width: 64px; height: 64px;
  background: var(--blue-pale);
  color: var(--sky);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 20px;
  transition: var(--transition);
}
.why-card:hover .why-icon {
  background: var(--sky);
  color: white;
  transform: scale(1.1) rotate(-5deg);
}
.why-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.why-card p { font-size: 0.88rem; color: var(--text-mid); line-height: 1.7; }

/* ===================================================
   DOCTORS
=================================================== */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 28px;
}
.doctor-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.doctor-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.doc-img { overflow: hidden; }
.doc-img svg { width: 100%; height: auto; transition: transform 0.5s ease; }
.doctor-card:hover .doc-img svg { transform: scale(1.04); }
.doc-info {
  padding: 24px;
  text-align: center;
}
.doc-info h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-dark);
}
.doc-info > span {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--sky);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.doc-rating {
  margin: 10px 0 14px;
  color: #FFB800;
  font-size: 0.85rem;
  display: flex;
  justify-content: center;
  gap: 3px;
}
.doc-social { display: flex; justify-content: center; gap: 10px; }
.doc-social a {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--blue-pale);
  color: var(--sky);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: var(--transition);
}
.doc-social a:hover { background: var(--sky); color: white; }

/* ===================================================
   TESTIMONIALS
=================================================== */
.testimonial-slider-wrap { overflow: hidden; position: relative; }
.testimonial-track {
  display: flex;
  gap: 28px;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.testimonial-slide { min-width: 100%; }

.testi-card {
  max-width: 680px;
  margin: 0 auto;
  border-radius: var(--radius);
  padding: 44px;
  box-shadow: var(--shadow-hover);
  text-align: center;
}
.testi-stars {
  color: #FFB800;
  font-size: 1.1rem;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 4px;
}
.testi-card p {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.9;
  font-style: italic;
  margin-bottom: 28px;
  font-family: var(--font-display);
}
.testi-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.testi-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.testi-avatar svg { width: 100%; height: 100%; }
.testi-author strong {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  text-align: left;
}
.testi-author span {
  font-size: 0.78rem;
  color: var(--text-light);
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 36px;
}
.slider-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: white;
  color: var(--sky);
  border: 2px solid var(--sky);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.slider-btn:hover { background: var(--sky); color: white; }
.slider-dots { display: flex; gap: 8px; }
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: var(--transition);
}
.dot.active {
  background: var(--sky);
  width: 24px;
  border-radius: 4px;
}

/* ===================================================
   APPOINTMENT
=================================================== */
.appointment {
  background: linear-gradient(135deg, #EBF6FF 0%, white 60%);
}
.appt-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.appt-info h2 { margin-bottom: 16px; }
.appt-info > p { color: var(--text-mid); line-height: 1.8; margin-bottom: 28px; }

.appt-features { margin-bottom: 32px; }
.appt-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-mid);
  margin-bottom: 10px;
}
.appt-feat i { color: #27AE60; font-size: 1rem; }

.appt-contact {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.appt-contact div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-mid);
  margin-bottom: 10px;
}
.appt-contact div:last-child { margin-bottom: 0; }
.appt-contact i {
  width: 32px; height: 32px;
  background: var(--blue-pale);
  color: var(--sky);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.appt-form {
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-hover);
}
.appt-form h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 28px;
  color: var(--text-dark);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group.full { margin-bottom: 20px; }
.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 6px;
}
.form-group label i { color: var(--sky); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dark);
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(42,143,212,0.12);
}
.form-group input.error,
.form-group select.error { border-color: #E55; }
.form-err {
  font-size: 0.75rem;
  color: #E55;
  min-height: 16px;
}
.form-group textarea { resize: vertical; min-height: 80px; }

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  background: #EEFAF2;
  color: #27AE60;
  border-radius: 12px;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1.5px solid #A8E6C0;
}
.form-success.show { display: flex; animation: fadeSlideUp 0.4s ease; }

/* ===================================================
   GALLERY
=================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.gallery-item:hover { transform: scale(1.02); box-shadow: var(--shadow-hover); }
.gallery-img svg { width: 100%; height: auto; display: block; }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,43,74,0.7) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
  opacity: 0;
  transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: translateY(8px);
  transition: transform var(--transition);
}
.gallery-item:hover .gallery-overlay span { transform: translateY(0); }

/* ===================================================
   FAQ
=================================================== */
.faq-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}
.faq-head h2 { margin-bottom: 16px; }
.faq-head > p { color: var(--text-mid); line-height: 1.8; }

.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: white;
  border-radius: 16px;
  border: 1.5px solid var(--border);
  overflow: hidden;
  transition: border-color var(--transition);
  box-shadow: 0 2px 12px rgba(42,143,212,0.06);
}
.faq-item.open { border-color: var(--sky-light); }

.faq-q {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: color var(--transition);
}
.faq-q:hover { color: var(--sky); }
.faq-q i {
  font-size: 0.8rem;
  color: var(--sky);
  min-width: 20px;
  transition: transform var(--transition);
  flex-shrink: 0;
}
.faq-item.open .faq-q i { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-a p {
  padding: 0 20px 20px;
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.8;
}

/* ===================================================
   FOOTER
=================================================== */
.footer {
  background: #0D2B4A;
  color: rgba(255,255,255,0.8);
  position: relative;
}
.footer-wave {
  line-height: 0;
  overflow: hidden;
}
.footer-wave svg { width: 100%; height: 80px; display: block; }
.footer-body { padding: 60px 0 32px; max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin-bottom: 16px;
}
.footer-logo .logo-icon { color: var(--sky-light); }
.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
  max-width: 260px;
  margin-bottom: 24px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--sky); color: white; }

.footer-col h4 {
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--sky-light); }

.footer-contact p, .footer-hours p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 10px;
  line-height: 1.5;
}
.footer-contact p i { color: var(--sky-light); min-width: 14px; margin-top: 2px; }
.footer-hours { margin-top: 16px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 16px; }
.footer-hours strong { color: rgba(255,255,255,0.85); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.5); }
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--sky-light); }

/* ===================================================
   REVEAL ANIMATIONS
=================================================== */
.reveal, .reveal-right {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right { transform: translateX(40px); }
.reveal.visible, .reveal-right.visible {
  opacity: 1;
  transform: translate(0,0);
}

/* ===================================================
   RESPONSIVE
=================================================== */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-text { text-align: center; }
  .hero-sub { max-width: 560px; margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .hero-card-wrap { max-width: 400px; margin: 0 auto; }
  .card-1 { left: -10px; }
  .card-2 { right: -10px; }
  .card-3 { left: -10px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats-row { grid-template-columns: repeat(2,1fr); }
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .ba-cards { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .why-grid { grid-template-columns: repeat(2,1fr); }
  .doctors-grid { grid-template-columns: repeat(2,1fr); }
  .appt-inner { grid-template-columns: 1fr; gap: 48px; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .faq-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  .section-pad { padding: 72px 0; }
  .nav-links {
    position: fixed;
    top: 0; left: 0; right: 0;
    flex-direction: column;
    background: white;
    padding: 90px 24px 32px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    transform: translateY(-110%);
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
    z-index: 850;
    gap: 4px;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-link { display: block; padding: 12px 16px; font-size: 1rem; }
  .hamburger { display: flex; z-index: 860; position: relative; }

  .hero { padding: 60px 0; min-height: auto; }
  .hero-text h1 { font-size: 2.8rem; }
  .hero-float-card { display: none; }
  .stats-row { grid-template-columns: repeat(2,1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .doctors-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .gallery-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .float-appt-btn span { display: none; }
  .float-appt-btn { padding: 14px; border-radius: 50%; }
  .testi-card { padding: 28px; }
  .appt-form { padding: 28px; }
}

@media (max-width: 480px) {
  .hero-text h1 { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .ba-cards { grid-template-columns: 1fr; }
  h2 { font-size: 1.85rem; }
}