/* ===========================
   NISE 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;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

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;
}

.nav-logo .logo-icon {
  width: 76px;
  height: 76px;
  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-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: 8px;
  transition: background var(--transition);
}

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

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* 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);
  /* Horizontal green → teal gradient with a visible left-to-right shift, tied to the green logo */
  background: linear-gradient(90deg, #C3E3D2 0%, #DCEFE4 50%, #CDE6E8 100%);
  position: relative;
  overflow: hidden;
}

/* Soft radial glow behind the hero image area (right side) so the
   image reads against a sense of light source */
.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 8%;
  width: 620px;
  height: 620px;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(255,255,255,0.85) 0%, rgba(244,238,252,0.55) 38%, rgba(244,238,252,0) 70%);
  pointer-events: none;
  z-index: 0;
}

.hero::after { display: none; }

/* keep content above the glow */
.hero-inner { position: relative; z-index: 1; }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  width: 100%;
  /* reduced top padding so the hero (and its CTA buttons) sit higher / above the fold */
  padding: 16px 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;
  /* Soft raised feel on the lavender background */
  box-shadow: 0 6px 18px rgba(124, 92, 168, 0.18);
}

.badge-dot { display: none; }

/* Headline */
.hero h1 {
  font-family: var(--font-body);
  font-size: clamp(3.3rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.0;
  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);
}

/* Outline hero button ("Our Services") */
.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--hero-deep);
  border: 2px solid var(--hero-deep);
  border-radius: 50px;
  padding: 12px 30px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: all var(--transition);
}

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

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

/* 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), box-shadow var(--transition);
  /* Soft, airy lift off the lavender background */
  box-shadow: 0 10px 26px rgba(124, 92, 168, 0.16);
}

.hero-feat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(124, 92, 168, 0.22);
}

.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%;
}

/* ---- Circular hero slideshow ---- */
.hero-circle-wrap {
  position: relative;
  width: min(390px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

/* frame wraps ONLY the image + ring so the dashed border stays concentric */
.hero-circle-frame {
  position: relative;
  width: 100%;
  display: block;
}

/* decorative spinning ring */
.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;
}

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

/* Marching-ants border (used for the rectangular image on mobile) */
.hero-ants {
  display: none; /* desktop uses the circular spinning ring above */
  position: absolute;
  inset: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}

.hero-ants rect {
  fill: none;
  stroke: rgba(13,92,96,0.55);
  stroke-width: 2;
  stroke-dasharray: 2.2 2.2;       /* normalised to pathLength="100" */
  stroke-linecap: round;
  animation: ant-march 12s linear infinite;
}

@keyframes ant-march {
  to { stroke-dashoffset: -100; }   /* one full loop around the path */
}

.hero-circle-slides {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  /* Soft, diffused lavender-tinted glow so the circle lifts off the bg */
  box-shadow:
    0 30px 70px rgba(124, 92, 168, 0.30),
    0 12px 32px rgba(124, 92, 168, 0.18);
  /* Slightly more defined white ring as a clear focal point */
  border: 8px 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;
}

/* ===========================
   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 {
  --card-pad-x: 24px;
  --card-pad-top: 28px;
  --card-border: 1px;
  background: var(--white);
  border: var(--card-border) solid var(--border);
  border-radius: var(--radius);
  padding: var(--card-pad-top) var(--card-pad-x);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

/* Image inset across the top of a service card (homepage preview).
   Using width:100% + box-sizing:border-box means the image can NEVER
   exceed the card's content width — no overhang on any side, at any
   breakpoint. It sits flush within the card's padding with its own
   rounded top corners, and a consistent gap to the icon below. */
.service-card-img {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  height: 180px;
  object-fit: cover;
  object-position: center;
  margin: 0 0 20px;
  border-radius: var(--radius-sm);
}

.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 500px;
    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: -20px;
  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
   =========================== */

/* --- Tablet (≤ 1024px) --- */
@media (max-width: 1024px) {
  .hero-inner { gap: 36px; }
  .hero h1 { font-size: clamp(2.3rem, 4.5vw, 3.2rem); }
  .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; }
}

/* --- Mobile (≤ 768px) --- */
@media (max-width: 768px) {

  /* --- Base & Global --- */
  :root { --nav-h: 64px; }

  /* Prevent ANY horizontal overflow globally */
  html, body { overflow-x: hidden; max-width: 100vw; }

  /* Tighter container on mobile */
  .container { width: min(100% - 32px, 1200px); }

  /* All images stay within their parent */
  img { max-width: 100%; height: auto; }

  /* Consistent body text size — no zoom hack */
  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: 0.95rem;
    line-height: 1.65;
  }

  /* --- Navigation --- */
  .nav-inner { gap: 7px; }
  .nav-logo {
    gap: 5px;
    font-size: 0.82rem;
    line-height: 1.15;
    min-width: 0;
    flex: 1;
    /* Let the full clinic name show — wrap instead of truncating */
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  .nav-logo .logo-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }
  .hamburger {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .nav-links { display: none; }

  /* Mobile menu links — comfortable tap targets */
  .mobile-menu a {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 8px 24px;
    font-size: 1rem;
  }

  /* --- Buttons --- */
  .btn { font-size: 0.95rem; min-height: 48px; }

  /* --- Page Header (inner pages) --- */
  .page-header {
    padding: calc(var(--nav-h) + 26px) 0 26px;
  }
  .page-header h1 { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  .page-header p { font-size: 0.95rem; max-width: 100%; }

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

  .section-header { margin-bottom: 18px; }
  .section-sub { max-width: 100%; }
  .section-label { justify-content: center; }

  /* --- Hero --- */
  .hero { align-items: flex-start; }

  /* Flatten the hero so text, image and buttons can be freely ordered:
     badge → headline → description → image → buttons → stat cards */
  .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* tighter top so the CTA buttons (which sit below the image on mobile) are visible on load */
    padding: 8px 0 20px;
    gap: 0;
  }
  .hero-content {
    display: contents;        /* children join the column flow */
    text-align: center;
  }
  .hero-badge {
    order: 1;
    margin: 0 auto 8px;
    font-size: 0.8rem;
  }
  .hero h1 {
    order: 2;
    width: 100%;
    text-align: center;
    font-size: clamp(2.2rem, 9.5vw, 3.2rem);
    line-height: 1.12;
    margin-bottom: 6px;
  }
  .hero-desc {
    order: 3;
    width: 100%;
    text-align: center;
    font-size: 0.95rem;
    max-width: 100%;
    margin: 0 auto 10px;
  }
  .hero-visual    { order: 4; }
  .hero-actions   { order: 5; }
  .hero-feat-cards{ order: 6; }

  /* Buttons — stacked, centered, compact (fit content, not edge-to-edge) */
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 0 auto;
  }
  .btn-hero-deep,
  .btn-hero-outline {
    width: auto;
    min-width: 60%;
    max-width: 70%;
    min-height: 48px;
    font-size: 1rem;
  }

  /* Feature stat cards — compact 3-col strip */
  .hero-feat-cards {
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin-top: 10px;
  }
  .hero-feat-card {
    min-height: unset;
    padding: 6px 10px 5px;
    border-radius: 12px;
    flex-direction: column;
    justify-content: flex-start;
    gap: 3px;
  }
  .hero-feat-body { display: flex; flex-direction: column; gap: 1px; }
  .hero-feat-title { font-size: 0.8rem; font-weight: 700; }
  .hero-feat-sub   { font-size: 0.65rem; margin-top: 0; }
  .hero-feat-arrow { width: 20px; height: 20px; font-size: 0.65rem; margin-top: 4px; }

  /* Hero image — rounded rectangle below the text (matches reference) */
  .hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto 12px;
  }
  .hero-circle-wrap {
    width: min(360px, 82vw);
    gap: 8px;
  }
  /* hide the circular spinning ring, show the rectangular marching ants */
  .hero-circle-ring { display: none; }
  .hero-ants { display: block; }
  .hero-circle-slides {
    aspect-ratio: 4 / 3;
    border-radius: 18px;
    border: 5px solid var(--white);
  }
  .hero-feat-cards { margin-top: 12px; }

  /* --- Smile Banner --- */
  .smile-banner-section { padding: 0 0 32px; }
  .smile-banner {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }
  .smile-banner-img {
    min-height: 200px;
    max-height: 260px;
  }
  .smile-banner-img img { width: 100%; height: 100%; object-fit: cover; }
  .smile-banner-content { padding: 32px 24px; gap: 8px; }
  .smile-banner-content h2 { font-size: clamp(1.3rem, 5vw, 1.8rem); }

  /* --- About Section --- */
  /* Stack to a single column, but keep text LEFT-aligned for readability */
  .about-grid { grid-template-columns: 1fr; gap: 24px; text-align: left; }
  .about-grid > div { text-align: left; }
  .about-img-wrap {
    max-width: 100%;
    overflow: visible; /* allow badge to breathe */
  }
  .about-img-wrap img { width: 100%; height: 280px; object-fit: cover; }
  /* Badge stays inside on mobile */
  .about-badge {
    position: static;
    display: inline-block;
    margin-top: 10px;
    border-radius: var(--radius);
  }
  /* Single left-aligned column so the checks form a tidy flush-left stack */
  .about-checks {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 10px;
    margin: 20px 0;
  }
  .check-item { justify-content: flex-start; text-align: left; }

  /* --- Services (homepage preview) --- */
  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .service-card { text-align: left; }
  .service-icon { margin-left: 0; margin-right: 0; }
  /* keep the card image a fixed height (the global `img{height:auto}`
     above must not flatten it) and fully inside the card */
  .service-card-img { width: 100%; max-width: 100%; height: 160px; }

  /* --- Services Page --- */
  .services-all-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  /* Fix card-bleed images on mobile: reset the negative-margin trick */
  .services-all-grid .service-card {
    overflow: hidden;
    padding: 0;
  }
  .services-all-grid .service-card img {
    width: 100% !important;
    height: 160px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }
  .services-all-grid .service-card h3,
  .services-all-grid .service-card p {
    padding: 8px 14px 0;
  }
  .services-all-grid .service-card p { padding-bottom: 9px; }
  .service-group { margin-bottom: 28px; }
  .service-group-title { font-size: 1.25rem; }

  /* --- Doctors --- */
  .doctors-grid,
  .doctors-page-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .doctor-img-placeholder { height: 240px; }

  /* --- Testimonials --- */
  .testimonials-grid { grid-template-columns: 1fr; gap: 10px; }

  /* --- CTA --- */
  .cta-section { padding: 36px 0; }
  .cta-actions {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .cta-actions .btn { width: 100%; max-width: 320px; justify-content: center; }

  /* --- Contact (homepage) --- */
  .contact-grid { grid-template-columns: 1fr; gap: 20px; }
  .contact-info { text-align: center; }
  .contact-item { flex-direction: row; align-items: flex-start; text-align: left; }
  .contact-items { gap: 13px; }
  .map-wrap { height: 260px; }
  .contact-item a,
  .footer-col ul li a,
  .footer-contact-item a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* --- Footer --- */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 4px; }

  /* --- Features Strip --- */
  .features-grid { grid-template-columns: 1fr; gap: 10px; }

  /* --- About Page --- */
  .mission-grid { grid-template-columns: 1fr; gap: 10px; }

  /* --- Appointment Page --- */
  .appt-form-card { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 10px; }

  /* --- Contact Page --- */
  .contact-page-grid { grid-template-columns: 1fr; gap: 20px; }
  .contact-form-card { padding: 24px 20px; }
  .contact-cards-grid { grid-template-columns: 1fr; gap: 15px; }
  .map-full { height: 280px; }

  /* --- Doctor Profile Page --- */
  .doc-hero-placeholder { height: 260px; font-size: 6rem; }
  .doc-exp-badge { right: 0; position: static; margin-top: 10px; display: inline-block; }
  .doctor-hero-img { text-align: center; }
  .approach-grid { grid-template-columns: 1fr; gap: 10px; }
  .doc-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}

/* --- Small mobile (≤ 480px) --- */
@media (max-width: 480px) {
  .container { width: min(100% - 24px, 1200px); }

  /* Nav: smaller logo, ensure hamburger never gets pushed off */
  .nav-logo { font-size: 0.88rem; gap: 5px; }
  .nav-logo .logo-icon { width: 36px; height: 36px; }
  .hamburger { width: 44px; height: 44px; padding: 4px; }

  /* Hero */
  .hero-inner { padding: 18px 0 26px; gap: 18px; }
  .hero h1 { font-size: clamp(2rem, 10vw, 2.8rem); }
  .hero-desc { font-size: 0.9rem; }
  .hero-badge { font-size: 0.76rem; padding: 5px 14px; }
  .hero-circle-wrap { width: min(320px, 80vw); }

  /* Feature stat cards — stay compact 3-col even on very small screens */
  .hero-feat-cards { grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 8px; }
  .hero-feat-card { padding: 5px 8px 4px; border-radius: 10px; }
  .hero-feat-title { font-size: 0.75rem; }
  .hero-feat-sub   { font-size: 0.6rem; }
  .hero-feat-arrow { width: 18px; height: 18px; font-size: 0.6rem; margin-top: 3px; }

  /* Services page cards — single column */
  .services-all-grid { grid-template-columns: 1fr; gap: 10px; }
  .services-all-grid .service-card img { height: 200px !important; }

  /* Homepage services */
  .services-grid { grid-template-columns: 1fr; gap: 9px; }

  /* Smile banner */
  .smile-banner-content { padding: 16px 20px; }
  .smile-banner-content h2 { font-size: 1.25rem; }

  /* About image */
  .about-img-wrap img { height: 240px; }

  /* Cards padding */
  .service-card,
  .testi-card,
  .appt-form-card,
  .contact-form-card {
    padding: 13px 16px;
  }
  /* keep the full-bleed image in sync with the reduced card padding
     so it stays centred and never overflows the right edge */
  .service-card { --card-pad-x: 16px; --card-pad-top: 13px; }
  .services-all-grid .service-card { padding: 0; }

  /* CTA */
  .cta-actions .btn { max-width: 100%; }

  /* Contact map */
  .map-wrap { height: 220px; }
  .map-full { height: 240px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 16px; }
  footer { padding: 31px 0 13px; }

  /* Doctor stats */
  .doc-stats { grid-template-columns: 1fr; gap: 8px; }
  .approach-card { flex-direction: column; gap: 8px; }

  /* Mission grid already 1-col; ensure it */
  .mission-grid { grid-template-columns: 1fr; }

  /* Appointment form */
  .appt-form-card { padding: 13px 16px; }
  .appt-form-card h3 { font-size: 1.25rem; }
}

