/* ===========================
   V. K. MULTISPECIALITY DENTAL CLINIC - style.css
   =========================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --primary: #1a9e6e;
  --primary-dark: #137a54;
  --primary-light: #e6f7f1;
  --accent: #00c9a7;
  --navy: #0d2b45;
  --text: #2c3e50;
  --text-light: #6b7c93;
  --white: #ffffff;
  --off-white: #f8fafb;
  --border: #e2eaef;
  --shadow-sm: 0 2px 12px rgba(26,158,110,0.08);
  --shadow-md: 0 8px 32px rgba(13,43,69,0.12);
  --shadow-lg: 0 20px 60px rgba(13,43,69,0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --nav-h: 80px;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --transition: 0.28s cubic-bezier(0.4,0,0.2,1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100%;
  zoom: 1;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* --- Utility --- */
.container {
  width: min(100% - 40px, 1200px);
  max-width: 1200px;
  margin: 0 auto;
}

.icon-svg {
  width: 1.15em;
  height: 1.15em;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-sub {
  color: var(--text-light);
  font-size: 1rem;
  max-width: 520px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  min-height: 48px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(26,158,110,0.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26,158,110,0.45);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  font-weight: 700;
}

.btn-white:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.btn-ghost-white {
  border: 2px solid rgba(255,255,255,0.55);
  color: var(--white);
  background: transparent;
}

.btn-ghost-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.8);
  transform: translateY(-2px);
}

/* --- Scroll Reveal Animations --- */
.fade-up,
.fade-in,
.zoom-in {
  opacity: 0;
  transition: opacity 0.75s ease-out, transform 0.75s ease-out;
  will-change: opacity, transform;
}

.fade-up { transform: translateY(20px); }
.fade-in { transform: none; }
.zoom-in { transform: scale(0.96); }
.btn.fade-in { transform: scale(0.96); }

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in.visible,
.btn.fade-in.visible,
.zoom-in.visible {
  opacity: 1;
  transform: scale(1);
}

.fade-in.visible { transform: none; }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .fade-up,
  .fade-in,
  .zoom-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===========================
   NAVIGATION
   =========================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}


.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  letter-spacing: -0.02em;
  line-height: 1.2;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-logo .logo-icon {
  width: 96px;
  height: 96px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  border-radius: 50px !important;
  padding: 10px 20px !important;
  white-space: nowrap;
  overflow: visible;
  flex-shrink: 0;
}

.nav-cta:hover {
  background: var(--primary-dark) !important;
  color: var(--white) !important;
}

.hamburger {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 8px;
  transition: background var(--transition);
  /* Contain the span animations — size never changes */
  position: relative;
}

.hamburger:hover { background: var(--primary-light); }

.hamburger span {
  display: block;
  position: absolute;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  left: 50%;
  transform-origin: center;
}

/* Stack the 3 lines vertically via top offsets */
.hamburger span:nth-child(1) { transform: translateX(-50%) translateY(-7px); }
.hamburger span:nth-child(2) { transform: translateX(-50%) translateY(0); }
.hamburger span:nth-child(3) { transform: translateX(-50%) translateY(7px); }

/* Open state — X shape */
.hamburger.open span:nth-child(1) { transform: translateX(-50%) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: translateX(-50%) scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateX(-50%) rotate(-45deg); }

/* Mobile Nav */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  z-index: 999;
  box-shadow: var(--shadow-md);
}

.mobile-menu.open { display: block; }

.mobile-menu a {
  display: block;
  padding: 12px 24px;
  color: var(--text);
  font-weight: 500;
  font-size: 1rem;
  transition: all var(--transition);
  border-left: 3px solid transparent;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--primary);
  background: var(--primary-light);
  border-left-color: var(--primary);
}

/* ===========================
   PAGE HEADER (inner pages)
   =========================== */
.page-header {
  padding: calc(var(--nav-h) + 60px) 0 60px;
  background: linear-gradient(135deg, var(--navy) 0%, #1a4d6e 100%);
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,201,167,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 12px;
}

.page-header p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
}

.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { text-decoration: underline; }

/* ===========================
   HERO (HOME)
   =========================== */

/* Hero palette tokens */
.hero {
  --hero-bg:        #cce8e3;
  --hero-deep:      #0d5c60;
  --hero-btn:       #0d5c60;
  --hero-peach:     #fde3d7;
  --hero-yellow:    #feefba;
  --hero-lavender:  #e4ddf2;
  --hero-card-text: #1a4548;
}

.hero {
  display: flex;
  align-items: flex-start;
  padding-top: var(--nav-h);
  background: linear-gradient(135deg, #b8eae0 0%, #cde8f0 35%, #d8e8f8 65%, #ddd6f0 100%);
  position: relative;
}

.hero::before, .hero::after { display: none; }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  width: 100%;
  padding: 32px 0 56px;
}

.hero-content {
  text-align: left;
  padding-left: 40px;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--hero-deep);
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(13,92,96,0.12);
}

.badge-dot { display: none; }

/* Headline */
.hero h1 {
  font-family: var(--font-body);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}

/* "Smile with Confidence" */
.hero h1 .h1-accent {
  display: block;
  color: #1B2D4F;
}

/* "Every Single Day" */
.hero h1 .h1-main {
  display: block;
  color: #1B2D4F;
}

.hero-title-line { display: inline; }

/* Desc */
.hero-desc {
  font-size: 0.98rem;
  color: #2D3748;
  line-height: 1.7;
  margin-bottom: 30px;
  max-width: 430px;
}

/* CTA */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-bottom: 0;
}

.btn-hero-deep {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--hero-deep);
  color: var(--white);
  border-radius: 50px;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 18px rgba(13,92,96,0.30);
}

.btn-hero-deep:hover {
  background: #0a4a4e;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(13,92,96,0.38);
  color: var(--white);
}

/* Hidden on desktop, shown on mobile */
.btn-hero-secondary {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--hero-deep);
  border: 2px solid var(--hero-deep);
  border-radius: 50px;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-hero-secondary:hover {
  background: rgba(13,92,96,0.08);
  color: var(--hero-deep);
  transform: translateY(-2px);
}

/* Feature stat cards */
.hero-feat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.hero-feat-card {
  border-radius: 18px;
  padding: 20px 16px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 124px;
  transition: transform var(--transition);
}

.hero-feat-card:hover { transform: translateY(-3px); }

.hero-feat-peach   { background: var(--hero-peach); }
.hero-feat-yellow  { background: var(--hero-yellow); }
.hero-feat-lavender{ background: var(--hero-lavender); }

.hero-feat-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--hero-card-text);
  line-height: 1.2;
}

.hero-feat-sub {
  font-size: 0.8rem;
  color: #5a7475;
  margin-top: 4px;
}

.hero-feat-arrow {
  align-self: flex-end;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(13,92,96,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--hero-deep);
  text-decoration: none;
  transition: background var(--transition);
  margin-top: 10px;
}

.hero-feat-arrow:hover { background: rgba(13,92,96,0.22); }

/* Right: single hero image */
.hero-visual {
  position: relative;
  width: 100%;
  min-width: 0;
}

/* Frame wrapper — positioning context for ring on both desktop & mobile */
.hero-slides-frame {
  position: relative;
  width: 100%;
}

/* ---- Circular hero slideshow ---- */
.hero-circle-wrap {
  position: relative;
  width: min(500px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  /* Pad so the decorative ring doesn't overflow the column */
  padding: 16px;
}

/* decorative spinning ring — positioned relative to .hero-slides-frame */
.hero-circle-ring {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 3px dashed rgba(13,92,96,0.25);
  animation: ring-spin 18s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes ring-spin {
  to { transform: rotate(360deg); }
}

/* Gentle breathing pulse for the rectangular hero frame (mobile). */
@keyframes ring-pulse {
  0%, 100% {
    transform: scale(1);
    border-color: rgba(13,92,96,0.30);
  }
  50% {
    transform: scale(1.015);
    border-color: rgba(13,92,96,0.5);
  }
}

/* Marching ants for mobile rectangular slideshow ring */
@keyframes marching-ants {
  to { stroke-dashoffset: -56; }
}

.hero-circle-slides {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 16px 56px rgba(13,43,69,0.18);
  border: 6px solid var(--white);
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero-slide.active {
  opacity: 1;
}

/* dot indicators */
.hero-slide-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(13,92,96,0.28);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}

.hero-dot.active {
  background: var(--hero-deep);
  transform: scale(1.3);
}

/* hide old overlay cards (no longer in HTML but keep rule safe) */
.hero-img-single, .hero-img-overlays,
.overlay-card, .overlay-white, .overlay-teal,
.overlay-arrow { display: none; }

/* Legacy classes — hidden in new hero design */
.hero-image-collage, .hero-img-row, .hero-img-wrap,
.hero-img-main, .hero-img-small, .hero-card,
.hero-card-icon, .hero-stats, .hero-stat { display: none; }

/* ===========================
   SMILE BANNER (HOME — second section)
   =========================== */
.smile-banner-section {
  padding: 0 0 72px;
  background: var(--white);
}

.smile-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 28px;
  overflow: hidden;
  min-height: 360px;
}

.smile-banner-img {
  overflow: hidden;
  min-height: 360px;
}

.smile-banner-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.smile-banner-content {
  background: #43b5bb;
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.smile-banner-content h2 {
  font-family: var(--font-body);
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  font-weight: 700;
  line-height: 1.22;
  color: var(--white);
  letter-spacing: -0.02em;
  margin: 0;
}

.smile-banner-content p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.6;
  margin: 0;
}

.smile-banner-arrow {
  align-self: flex-start;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.15rem;
  text-decoration: none;
  transition: all var(--transition);
  margin-top: 4px;
}

.smile-banner-arrow:hover {
  background: rgba(255,255,255,0.18);
  border-color: var(--white);
}

/* ===========================
   FEATURES STRIP
   =========================== */
.features-strip {
  padding: 64px 0 64px;
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 0;
  position: relative;
  z-index: 2;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 16px;
  transition: all var(--transition);
}

.feature-card:hover .feature-icon {
  background: var(--primary);
  color: var(--white);
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===========================
   ABOUT SECTION (HOME)
   =========================== */
.about-section {
  padding: 80px 0;
  background: var(--off-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-img-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.about-img-wrap img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
}

.about-badge {
  position: absolute;
  bottom: 28px;
  right: 16px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  padding: 18px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.about-badge .num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1;
}

.about-badge .txt { font-size: 0.78rem; opacity: 0.85; margin-top: 4px; }

.about-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 28px 0;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.check-item::before {
  content: '✓';
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ===========================
   CLINIC GALLERY
   =========================== */
.gallery-section {
  padding: 80px 0;
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item-portrait img {
  height: 480px;
  object-fit: cover;
  object-position: center top;
}

.gallery-item-wide {
  grid-column: span 2;
}

.gallery-item-wide img {
  height: 300px;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-item-wide {
    grid-column: span 2;
  }
  .gallery-item img {
    height: 220px;
  }
  .gallery-item-wide img {
    height: 260px;
  }
  .gallery-item-portrait img {
    height: 380px;
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .gallery-item-wide {
    grid-column: span 1;
  }
  .gallery-item img,
  .gallery-item-wide img {
    height: 220px;
  }
  .gallery-item-portrait img {
    height: 320px;
  }
}

/* ===========================
   SERVICES SECTION
   =========================== */
.services-section {
  padding: 80px 0;
  background: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header .section-label { justify-content: center; }
.section-header .section-label::before { display: none; }
.section-header .section-label::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.section-header .section-sub { margin: 0 auto; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  flex-shrink: 0;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.service-card:hover .service-card-img img {
  transform: scale(1.05);
}

.service-card-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}

.service-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  background: var(--primary);
  color: var(--white);
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.service-card p {
  font-size: 0.87rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* All services grid */
.services-all-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ===========================
   DOCTORS SECTION
   =========================== */
.doctors-section {
  padding: 80px 0;
  background: var(--off-white);
}

.doctors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.doctors-grid-single {
  grid-template-columns: minmax(300px, 360px);
  justify-content: center;
}

.doctor-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.doctor-card-single {
  width: 100%;
}

.doctor-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}

.doctor-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: top;
  background: linear-gradient(135deg, var(--primary-light), #e8f8f4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

.doctor-img-wrap {
  position: relative;
  overflow: hidden;
}

.doctor-img-placeholder {
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, var(--primary-light) 0%, #c8efe5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.doctor-icon {
  width: 118px;
  height: 118px;
  stroke-width: 1.35;
}

.doctor-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.doctor-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.doctor-specialty {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.doctor-body p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* ===========================
   TESTIMONIALS
   =========================== */
.testimonials-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--navy) 0%, #1a4d6e 100%);
  color: var(--white);
  overflow: hidden;
}

.testimonials-section .section-title { color: var(--white); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.testi-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
}

.testi-card:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(0,201,167,0.4);
  transform: translateY(-4px);
}

.testi-stars {
  color: #fbbf24;
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testi-card blockquote {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  font-style: italic;
  margin-bottom: 20px;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: white;
  flex-shrink: 0;
}

.testi-author strong {
  display: block;
  font-size: 0.95rem;
  color: var(--white);
}

.testi-author span {
  font-size: 0.78rem;
  color: var(--accent);
}

/* ===========================
   CTA BANNER
   =========================== */
.cta-section {
  padding: 80px 0;
  background: var(--primary);
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  font-size: 1.05rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===========================
   CONTACT SECTION (HOME)
   =========================== */
.contact-preview {
  padding: 80px 0;
  background: var(--off-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: var(--navy);
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--text-light);
  margin-bottom: 32px;
  line-height: 1.7;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.ci-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.ci-icon.green { background: var(--primary); }

.ci-text strong {
  display: block;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 2px;
}

.ci-text span {
  font-size: 0.9rem;
  color: var(--text-light);
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 340px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===========================
   FOOTER
   =========================== */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .nav-logo {
  color: var(--white);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  max-width: 260px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--accent); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.88rem;
}

.footer-contact-item span:first-child {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a { color: var(--accent); }

/* ===========================
   FORM STYLES
   =========================== */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 7px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,158,110,0.12);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #e74c3c;
}

.form-group textarea { resize: vertical; min-height: 130px; }

.error-msg {
  font-size: 0.78rem;
  color: #e74c3c;
  margin-top: 5px;
  display: none;
}

.form-group.has-error .error-msg { display: block; }

.success-banner {
  background: var(--primary-light);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  text-align: center;
  display: none;
}

.success-banner.visible { display: block; }

.success-banner .check { font-size: 2.5rem; margin-bottom: 8px; }
.success-banner h3 { color: var(--primary); font-size: 1.15rem; margin-bottom: 6px; }
.success-banner p { color: var(--text-light); font-size: 0.9rem; }

/* ===========================
   ABOUT PAGE
   =========================== */
.about-page-section {
  padding: 80px 0;
}

.about-page-section:nth-child(even) { background: var(--off-white); }

.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.mission-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  transition: all var(--transition);
}

.mission-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.mission-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary-light), #c8efe5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
}

.mission-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.mission-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===========================
   APPOINTMENT PAGE
   =========================== */
.appointment-section {
  padding: 80px 0;
  background: var(--off-white);
}

.appointment-grid {
  display: grid;
  grid-template-columns: minmax(0, 820px);
  justify-content: center;
  gap: 48px;
  align-items: start;
}

.appt-form-card {
  order: 1;
}

.appt-info {
  order: 2;
}

.appt-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--navy);
  margin-bottom: 16px;
}

.appt-info p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 32px;
}

.appt-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.appt-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.step-num {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.step-text strong {
  display: block;
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 3px;
}

.step-text span {
  font-size: 0.85rem;
  color: var(--text-light);
}

.appt-form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.appt-form-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ===========================
   CONTACT PAGE
   =========================== */
.contact-page {
  padding: 80px 0;
  background: var(--white);
}

.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.contact-form-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.contact-form-card p {
  color: var(--text-light);
  margin-bottom: 28px;
  font-size: 0.92rem;
}

.map-full {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 420px;
  margin-top: 40px;
}

.map-full iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===========================
   DOCTORS PAGE
   =========================== */
.doctors-page {
  padding: 80px 0;
  background: var(--white);
}

.doctors-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.doctor-full-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.doctor-full-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}

.doctor-full-card .doctor-img-placeholder {
  height: 320px;
  font-size: 7rem;
}

.doctor-full-card .doc-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.doctor-full-card .doc-body h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.doctor-full-card .doc-specialty {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.doctor-full-card .doc-body p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 20px;
}

.doc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.doc-tag {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
}

/* ===========================
   SERVICES PAGE
   =========================== */
.services-page {
  padding: 80px 0;
  background: var(--white);
}

.service-group {
  margin-bottom: 64px;
}

.service-group-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-light);
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-group-title span {
  font-size: 1.4rem;
}

/* ===========================
   ABOUT GRID REVERSED (desktop only)
   =========================== */
.about-grid-reversed {
  direction: ltr; /* reset — children control their own order */
}

@media (min-width: 1025px) {
  .hero-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 56px;
    text-align: left;
  }

  .hero-content {
    max-width: 540px;
  }

  .hero-badge {
    margin-left: 0;
  }

  .hero-desc {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-stats {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-visual {
    flex: 0 0 560px;
    justify-content: flex-end;
    padding-bottom: 54px;
  }

  .hero-image-collage {
    max-width: 620px;
  }

  .hero-img-wrap {
    max-width: 660px;
    border-radius: 22px;
  }

  .hero-card {
    display: flex;
    bottom: 18px;
    left: -36px;
  }

  .about-grid-reversed {
    grid-template-columns: 1fr 1fr;
  }
  .about-grid-reversed .about-img-wrap {
    order: 2;
  }
  .about-grid-reversed > div:last-child {
    order: 1;
  }
}

/* ===========================
   DOCTOR PAGE STYLES
   =========================== */
.doctor-hero {
  padding: 80px 0;
  background: var(--white);
}

.doctor-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: center;
}

.doctor-hero-img {
  position: relative;
}

.doc-hero-placeholder {
  width: 100%;
  height: 480px;
  background: linear-gradient(135deg, var(--primary-light), #c8efe5);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10rem;
  box-shadow: var(--shadow-md);
}

.doc-exp-badge {
  position: absolute;
  bottom: 24px;
  right: 16px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius);
  padding: 16px 22px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.doc-exp-badge .num {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}

.doc-exp-badge .txt {
  font-size: 0.75rem;
  opacity: 0.85;
  margin-top: 4px;
}

.doctor-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy);
  margin-bottom: 8px;
}

.doctor-role {
  color: var(--primary);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.doc-desc {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

.doc-expertise {
  margin: 28px 0;
}

.doc-expertise h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}

.expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.expertise-tag {
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 600;
}

.doc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
  padding: 28px;
  background: var(--off-white);
  border-radius: var(--radius);
}

.doc-stat {
  text-align: center;
}

.doc-stat .num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--primary);
}

.doc-stat .lbl {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 4px;
}

.approach-section {
  padding: 80px 0;
  background: var(--off-white);
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.approach-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.approach-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.approach-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.approach-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.approach-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===========================
   CONTACT CARDS GRID
   =========================== */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .hero-inner {
    gap: 36px;
  }
  .hero h1 {
    font-size: clamp(2rem, 3.8vw, 2.8rem);
  }
  .hero-feat-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .smile-banner-content {
    padding: 40px 36px;
  }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-grid-reversed .about-img-wrap { order: unset; }
  .about-grid-reversed > div:last-child { order: unset; }
  .about-img-wrap { max-width: 500px; margin: 0 auto; }

  .doctor-hero-grid { grid-template-columns: 1fr; gap: 40px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }

  .appointment-grid { grid-template-columns: 1fr; }
  .contact-page-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .container { width: min(100% - 32px, 1200px); }

  p,
  .section-sub,
  .feature-card p,
  .service-card p,
  .doctor-body p,
  .testi-card blockquote,
  .contact-info p,
  .ci-text span,
  .footer-brand p,
  .footer-col ul li a,
  .footer-contact-item {
    font-size: 1rem;
    line-height: 1.6;
  }

  .nav-inner { gap: 8px; }
  .nav-logo {
    gap: 10px;
    font-size: 1rem;
    min-width: 0;
    flex: 1;
    overflow: hidden;
  }
  .nav-logo .logo-icon {
    width: 68px;
    height: 68px;
    flex-shrink: 0;
  }
  .nav-logo img.logo-icon {
    object-position: center;
  }

  .nav-links { display: none; }
  .hamburger { display: flex; }

  .btn {
    font-size: 1rem;
  }

  .contact-item a,
  .footer-col ul li a,
  .footer-contact-item a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
  }

  .page-header {
    padding: calc(var(--nav-h) + 44px) 0 44px;
  }
  .page-header p {
    font-size: 0.98rem;
    max-width: 100%;
  }

  .hero {
    align-items: flex-start;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 12px 24px 16px;
    gap: 10px;
  }
  .hero-content {
    text-align: center;
    padding-left: 0;
  }
  .hero-badge {
    margin-bottom: 10px;
    font-size: 0.92rem;
  }
  .hero h1 {
    font-size: 74px;
    line-height: 1.08;
    margin-bottom: 6px;
  }
  .hero-desc {
    font-size: 1.12rem;
    max-width: 100%;
    margin-bottom: 14px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-feat-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 22px;
  }
  .hero-feat-title { font-size: 0.88rem; }
  .hero-feat-sub   { font-size: 0.72rem; }
  /* ----- Mobile hero: reorder + rectangular slideshow ----- */
  /* Let hero-content's children become flex items of hero-inner so the
     slideshow can sit between the description and the button. */
  .hero-content { display: contents; }

  .hero-inner {
    display: flex;
    flex-direction: column;
  }

  .hero-badge      { order: 1; align-self: center; }
  .hero h1         { order: 2; }
  .hero-desc       { order: 3; }
  .hero-visual     { order: 4; }
  .hero-actions    { order: 5; }
  .hero-feat-cards {
    order: 6;
    margin-top: 4px;
    gap: 0;
    background: #d4ede8;
    border: 1.5px solid #b2d8d0;
    border-radius: 16px;
    padding: 8px 16px;
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-feat-card {
    background: transparent !important;
    border-radius: 0;
    min-height: unset;
    padding: 6px 10px;
    border-right: 1px solid rgba(13,92,96,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .hero-feat-card:last-child { border-right: none; }
  .hero-feat-card .hero-feat-body { display: flex; flex-direction: column; align-items: center; }
  .hero-feat-card .hero-feat-arrow { display: none; }
  .hero-feat-title { font-size: 1rem; font-weight: 700; color: #0D5C60; line-height: 1.1; }
  .hero-feat-sub   { font-size: 0.6875rem; font-weight: 400; color: #0D5C60; opacity: 0.7; margin-top: 3px; }

  /* Show secondary button & stack both full-width on mobile */
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  .btn-hero-deep,
  .btn-hero-secondary {
    width: 260px;
    max-width: 100%;
  }

  .btn-hero-secondary {
    display: flex;
  }

  /* Rectangular slideshow — constrained width so stat boxes fit above */
  .hero-circle-wrap {
    width: min(380px, 94%);
    margin: 0 auto;
    padding: 0;
    gap: 10px;
  }

  .hero-circle-slides {
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    border-width: 4px;
  }

  /* Ring hugs the image — SVG marching ants */
  .hero-circle-ring {
    inset: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    aspect-ratio: unset;
    border: none;
    border-radius: 0;
    background: none;
    animation: none;
    overflow: visible;
  }
  .hero-ring-rect {
    fill: none;
    stroke: rgba(13,92,96,0.5);
    stroke-width: 1;
    stroke-dasharray: 8 6;
    stroke-dashoffset: 0;
    animation: marching-ants 4s linear infinite;
  }

  /* Smile banner stacks vertically */
  .smile-banner {
    grid-template-columns: 1fr;
    border-radius: 0;
    overflow: visible;
    width: min(100% - 40px, 560px);
    margin: 0 auto;
  }
  .smile-banner-img {
    min-height: 220px;
    border-radius: 22px 22px 0 0;
    overflow: hidden;
  }
  .smile-banner-content {
    padding: 36px 28px;
    gap: 14px;
    border-radius: 0 0 22px 22px;
  }
  .smile-banner-section {
    padding: 0 0 56px;
    margin-top: 32px;
  }

  .section-label {
    justify-content: center;
  }

  .about-section,
  .services-section,
  .doctors-section,
  .testimonials-section,
  .cta-section,
  .contact-preview {
    padding: 64px 0;
  }

  .about-grid,
  .about-grid > div,
  .contact-grid,
  .contact-info {
    text-align: center;
  }

  .about-checks {
    justify-items: center;
  }

  .check-item {
    justify-content: center;
    text-align: left;
  }

  .service-card,
  .doctor-body {
    text-align: center;
  }

  .service-icon {
    margin-left: auto;
    margin-right: auto;
  }

  .contact-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .features-grid { grid-template-columns: 1fr; gap: 16px; }

  .services-grid,
  .services-all-grid { grid-template-columns: 1fr 1fr; gap: 14px; }

  .doctors-grid,
  .doctors-page-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .testimonials-grid { grid-template-columns: 1fr; gap: 16px; }

  .about-checks { grid-template-columns: 1fr; }

  .mission-grid { grid-template-columns: 1fr; gap: 16px; }

  .form-row { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; gap: 36px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }

  .section-header { margin-bottom: 32px; }
  .section-sub { max-width: 100%; }

  .appt-form-card { padding: 24px; }
  .contact-form-card { padding: 24px; }

  .hero-card { display: none; }

  /* Doctor page */
  .doc-hero-placeholder { height: 300px; font-size: 7rem; }
  .doc-exp-badge { right: 0; }
  .approach-grid { grid-template-columns: 1fr; gap: 16px; }
  .doc-stats { grid-template-columns: repeat(3, 1fr); }

  /* Contact cards */
  .contact-cards-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .services-grid,
  .services-all-grid,
  .mission-grid {
    grid-template-columns: 1fr;
  }

  .doctors-grid-single {
    grid-template-columns: minmax(0, 360px);
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-hero-deep,
  .hero-actions .btn-hero-secondary {
    width: min(100%, 280px);
  }

  .hero-inner {
    display: flex;
    flex-direction: column;
    text-align: center;
  }
  .hero-stats {
    width: 100%;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    margin-top: 8px;
  }
  .hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
  .hero-img-wrap {
    width: 100%;
    max-width: none;
    border-radius: 16px;
  }
  .hero-img-wrap img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
  }

  .hero::after {
    display: block;
  }

  .features-strip {
    padding-top: 28px;
  }

  .features-grid {
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  .container { width: min(100% - 40px, 1200px); }

  .nav-logo {
    gap: 8px;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
  }
  .nav-logo .logo-icon {
    width: 58px;
    height: 58px;
  }
  .mobile-menu a {
    min-height: 48px;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-header h1 {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }

  .hero {
    padding-top: var(--nav-h);
    padding-bottom: 0;
  }
  .hero-inner {
    padding: 16px 0 28px;
    gap: 10px;
  }
  .hero h1 {
    font-size: clamp(1.85rem, 9.5vw, 2.4rem);
    margin-bottom: 8px;
  }
  .hero-desc {
    font-size: 0.93rem;
    line-height: 1.6;
    margin-bottom: 12px;
  }
  .hero-badge {
    width: auto;
    justify-content: center;
    margin-bottom: 10px;
  }

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

  .hero-stat .lbl {
    font-size: 0.78rem;
    line-height: 1.3;
  }

  .hero-actions {
    margin-bottom: 16px;
  }
  .hero-stats {
    padding: 20px 16px;
    margin-bottom: 0;
  }
  .hero-img-wrap {
    margin-top: 0;
    margin-bottom: 0;
  }

  .hero-image-collage {
    max-width: 420px;
    gap: 8px;
  }

  .hero-img-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-img-small {
    aspect-ratio: 4 / 3;
  }

  .service-card-body,
  .doctor-body,
  .testi-card,
  .contact-card,
  .appt-form-card,
  .contact-form-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; justify-content: center; }

  .doc-stats { grid-template-columns: 1fr; gap: 12px; }

  .approach-card { flex-direction: column; gap: 12px; }
}

/* ===========================
   IPHONE SE (375px) & NARROW PHONES
   =========================== */
@media (max-width: 390px) {
  .container { width: min(100% - 24px, 1200px); }

  /* Nav: clip text so it never pushes hamburger off screen */
  .nav-logo {
    font-size: 0.88rem;
    gap: 8px;
  }
  .nav-logo .logo-icon {
    width: 52px;
    height: 52px;
  }

  /* Hero */
  .hero h1 {
    font-size: clamp(1.75rem, 9vw, 2.1rem);
  }
  .hero-desc {
    font-size: 0.92rem;
  }
  .hero-badge {
    font-size: 0.74rem;
    padding: 6px 12px;
  }

  .hero-feat-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .hero-feat-cards .hero-feat-card:last-child {
    grid-column: auto;
  }
  .hero-feat-card {
    min-height: 80px;
    padding: 10px 7px;
  }
  .hero-feat-title { font-size: 0.78rem; }
  .hero-feat-sub   { font-size: 0.65rem; }
  .hero-feat-arrow { width: 22px; height: 22px; font-size: 0.72rem; }

  /* Smile banner */
  .smile-banner-content { padding: 26px 18px; }

  /* Tighter card padding */
  .service-card-body, .feature-card, .testi-card, .mission-card,
  .appt-form-card, .contact-form-card {
    padding: 18px 14px;
  }

  /* Footer single column */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  footer { padding: 40px 0 20px; }

  /* Section spacing */
  .about-section, .services-section, .doctors-section,
  .testimonials-section, .cta-section, .contact-preview, .gallery-section {
    padding: 44px 0;
  }

  .section-title { font-size: clamp(1.55rem, 7vw, 1.9rem); }
}
