/* =============================================
   Coimbatore Dental Foundation — PHP site CSS
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --brand-navy:       #13284B;
  --brand-navy-deep:  #0D1D36;
  --brand-sky:        #4AA9E3;
  --brand-sky-soft:   #72C7F5;
  --brand-mist:       #F8FBFE;
  --ink:              #1B2430;
  --ink-muted:        #64748B;
  --color-border:     #E6EDF5;
  --gradient-sky:     linear-gradient(135deg, #72C7F5 0%, #4AA9E3 100%);
  --gradient-navy:    linear-gradient(140deg, #0D1D36 0%, #13284B 55%, #1e3a6e 100%);
  --gradient-glow:    radial-gradient(60% 60% at 50% 40%, rgba(114,199,245,0.35), transparent 70%);
  --shadow-soft:      0 4px 24px -12px rgba(19,40,75,0.18);
  --shadow-lift:      0 30px 60px -30px rgba(19,40,75,0.35);
  --shadow-glow:      0 20px 50px -25px rgba(74,169,227,0.55);
  --radius-card:      28px;
  --radius-pill:      9999px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 80px; }

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  background: var(--brand-mist);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,h2,h3,h4 {
  font-family: 'Inter', ui-sans-serif, sans-serif;
  letter-spacing: -0.025em;
  color: var(--brand-navy-deep);
  font-weight: 700;
}

::selection { background: rgba(74,169,227,0.25); color: var(--brand-navy-deep); }

a { text-decoration: none; color: inherit; }

img { max-width: 100%; height: auto; display: block; }

.container-wide {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
@media(min-width:768px){ .container-wide{ padding-inline:2.5rem; } }

/* ---- Eyebrow ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-sky);
}
.eyebrow::before {
  content: '';
  display: block;
  height: 1px;
  width: 24px;
  background: var(--brand-sky);
  flex-shrink: 0;
}
.eyebrow.center { justify-content: center; }

/* ---- Reveal animation ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms cubic-bezier(0.16,1,0.3,1),
              transform 800ms cubic-bezier(0.16,1,0.3,1);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal="visible"] { opacity: 1; transform: translateY(0); }
@media(prefers-reduced-motion:reduce){
  [data-reveal]{ opacity:1; transform:none; transition:none; }
  html{ scroll-behavior:auto; }
}

/* ---- Card lift ---- */
.card-lift {
  transition: transform 400ms cubic-bezier(0.16,1,0.3,1),
              box-shadow 400ms cubic-bezier(0.16,1,0.3,1),
              border-color 400ms ease;
}

/* ================================================
   HEADER — normal full-width bar
   ================================================ */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  height: 76px;
  padding: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 4px 20px -6px rgba(15, 23, 42, 0.08);
  pointer-events: auto;
}
@media(min-width:768px){ .site-header{ padding: 0; } }

/* The header container */
.header-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 1400px;
  width: 100%;
  margin-inline: auto;
  height: 76px;
  padding: 0 1.5rem;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
  transition: none;
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 0.5rem;
}
.header-logo img { height: 38px; width: auto; }

/* Desktop nav */
.header-nav {
  display: none;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: center;
}
@media(min-width:1024px){ .header-nav{ display: flex; } }

.header-nav a {
  position: relative;
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--brand-navy-deep);
  white-space: nowrap;
  transition: color 250ms, background 250ms;
}
.header-nav a:hover {
  color: var(--brand-sky);
  background: rgba(74, 169, 227, 0.08);
}

/* CTA button */
.header-cta-btn {
  display: none;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background: var(--brand-navy-deep);
  padding: 0.65rem 1.4rem;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  transition: background 300ms, transform 300ms, box-shadow 300ms;
  margin-left: auto;
}
@media(min-width:768px){ .header-cta-btn{ display: inline-flex; } }
.header-cta-btn:hover {
  background: var(--brand-sky);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px rgba(74,169,227,0.55);
}

/* Hamburger */
.hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
  transition: background 200ms, border-color 200ms;
}
@media(min-width:768px){ .hamburger{ margin-left: 0.5rem; } }
@media(min-width:1024px){ .hamburger{ display: none; } }
.hamburger:hover {
  background: var(--brand-mist);
  border-color: var(--brand-sky);
}
.hamburger svg { width: 18px; height: 18px; color: var(--brand-navy); }

/* Mobile nav dropdown — sits below the header */
.mobile-nav {
  position: absolute;
  top: 76px;
  left: 0;
  right: 0;
  max-width: 100%;
  margin: 0;
  border-radius: 0 0 24px 24px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226,232,240,0.9);
  box-shadow: 0 20px 40px -10px rgba(19,40,75,0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 300ms ease, transform 300ms ease, visibility 300ms;
}
.mobile-nav.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
@media(min-width: 1024px) {
  .mobile-nav { display: none !important; }
}
.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.25rem;
}
.mobile-nav a {
  padding: 0.7rem 1rem;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--brand-navy-deep);
  transition: background 200ms, color 200ms;
}
.mobile-nav a:hover { background: rgba(74,169,227,0.08); color: var(--brand-sky); }
.mobile-nav .btn-book {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--brand-navy-deep);
  padding: 0.875rem 1.5rem;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  transition: background 300ms;
}
.mobile-nav .btn-book:hover { background: var(--brand-sky); color: #fff; }

/* ================================================
   HERO SLIDER
   ================================================ */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
}

/* Track holds all slides side-by-side */
.hs-track {
  display: flex;
  height: 100%;
  transition: transform 900ms cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}

/* Individual slide */
.hs-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Dark gradient overlay */
.hs-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(13, 29, 54, 0.82) 0%,
    rgba(13, 29, 54, 0.55) 55%,
    rgba(13, 29, 54, 0.28) 100%
  );
  pointer-events: none;
}

/* Content wrapper — full container width, inner text constrained */
.hs-content {
  position: relative;
  z-index: 2;
  padding-top: 140px; /* header pill (~62px) + 1.25rem top padding + breathing room */
  padding-bottom: 6rem;
  width: 100%;
  display: flex;
  align-items: flex-start;
}

/* Inner text block */
.hs-inner {
  max-width: 640px;
  margin-left: 0;
  margin-right: auto;
}

/* Right-aligned variant (slide 2) */
.hs-content--right {
  justify-content: flex-end;
  text-align: right;
}
.hs-content--right .hs-inner {
  margin-left: auto;
  margin-right: 0;
}
.hs-content--right .hs-eyebrow {
  justify-content: flex-end;
}
.hs-content--right .hs-eyebrow::before {
  display: none;
}
.hs-content--right .hs-eyebrow::after {
  content: '';
  display: block;
  height: 1px;
  width: 24px;
  background: var(--brand-sky-soft);
  flex-shrink: 0;
}
.hs-content--right .hs-btns {
  justify-content: flex-end;
}
.hs-content--right .hs-badges {
  justify-content: flex-end;
}
.hs-content--right .hs-trust {
  justify-content: flex-end;
}

/* Flipped overlay for right-aligned slides */
.hs-overlay--right {
  background: linear-gradient(
    -105deg,
    rgba(13, 29, 54, 0.82) 0%,
    rgba(13, 29, 54, 0.55) 55%,
    rgba(13, 29, 54, 0.28) 100%
  ) !important;
}

.hs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-sky-soft);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms 200ms ease, transform 700ms 200ms ease;
}
.hs-eyebrow::before {
  content: '';
  display: block;
  height: 1px;
  width: 24px;
  background: var(--brand-sky-soft);
  flex-shrink: 0;
}

.hs-title {
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms 350ms ease, transform 700ms 350ms ease;
}
.hs-accent {
  background: linear-gradient(to right, #72C7F5, #4AA9E3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hs-desc {
  margin-top: 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms 480ms ease, transform 700ms 480ms ease;
}

.hs-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms 600ms ease, transform 700ms 600ms ease;
}

.hs-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem 2rem;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  backdrop-filter: blur(8px);
  transition: all 300ms;
}
.hs-btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.18);
}

/* Trust badges row (slide 1) */
.hs-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.75rem;
  margin-top: 2.5rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms 720ms ease, transform 700ms 720ms ease;
}
.hs-trust .trust-label { color: #fff; }
.hs-trust .trust-sub   { color: rgba(255,255,255,0.65); }
.hs-trust .trust-bit-icon { background: rgba(255,255,255,0.12); }

/* Active slide — animate content in */
.hs-slide.active .hs-eyebrow,
.hs-slide.active .hs-title,
.hs-slide.active .hs-desc,
.hs-slide.active .hs-btns,
.hs-slide.active .hs-trust,
.hs-slide.active .hs-badges {
  opacity: 1;
  transform: translateY(0);
}
.hs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  transition: all 300ms;
}
.hs-arrow:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-50%) scale(1.06);
}
.hs-prev { left: 1.5rem; }
.hs-next { right: 1.5rem; }
@media(min-width:768px){ .hs-prev{ left:2.5rem; } .hs-next{ right:2.5rem; } }

/* Dots */
.hs-dots {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.hs-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.45);
  border: none;
  cursor: pointer;
  transition: all 400ms ease;
  padding: 0;
}
.hs-dot.active {
  width: 28px;
  background: #fff;
}

/* Progress bar */
.hs-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.15);
  z-index: 10;
}
.hs-progress-bar {
  height: 100%;
  background: var(--brand-sky);
  width: 0%;
  transition: width linear;
}

/* ================================================
   HERO (old — kept for backwards compat selectors)
   ================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 7rem;
}
@media(min-width:768px){ .hero{ padding-top:8rem; } }
@media(min-width:1024px){ .hero{ padding-top:9rem; } }

.hero-grid {
  display: grid;
  gap: 3rem;
  padding-bottom: 4rem;
}
@media(min-width:1024px){
  .hero-grid{ grid-template-columns:1.05fr 1fr; align-items:center; gap:4rem; padding-bottom:6rem; }
}

.hero-eyebrow { margin-bottom: 1.5rem; }

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--brand-navy-deep);
  max-width: 640px;
}
.hero-gradient-text {
  background: linear-gradient(to right, var(--brand-sky), var(--brand-navy));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.hero-gradient-text svg {
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 100%;
}

.hero-desc {
  margin-top: 2rem;
  max-width: 560px;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink-muted);
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--brand-navy-deep);
  padding: 1rem 2rem;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  box-shadow: var(--shadow-glow);
  transition: all 300ms;
}
.btn-primary:hover { background: var(--brand-navy); transform: translateY(-1px); }
.btn-primary svg { transition: transform 300ms; }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(19,40,75,0.15);
  background: rgba(255,255,255,0.8);
  padding: 1rem 2rem;
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-navy-deep);
  backdrop-filter: blur(8px);
  transition: all 300ms;
}
.btn-ghost:hover {
  border-color: var(--brand-sky);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2.5rem 2rem;
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
  margin-top: 3rem;
}
.trust-bit { display: flex; align-items: center; gap: 0.75rem; }
.trust-bit-icon {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(114,199,245,0.2);
  color: var(--brand-sky);
  flex-shrink: 0;
}
.trust-bit-icon svg { width: 16px; height: 16px; }
.trust-label { font-size: 14px; font-weight: 600; color: var(--brand-navy-deep); line-height: 1.2; }
.trust-sub   { font-size: 12px; color: var(--ink-muted); }

/* Hero image side */
.hero-img-wrap {
  position: relative;
}
.hero-img-frame {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 36px;
  box-shadow: var(--shadow-lift);
}
.hero-img-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-img-frame::after {
  content:'';
  position:absolute; inset:0;
  background: linear-gradient(180deg,transparent 55%,rgba(13,29,54,0.35) 100%);
}
.float-card {
  position: absolute;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.95);
  padding: 1rem;
  box-shadow: var(--shadow-lift);
  backdrop-filter: blur(8px);
}
.float-card-inner { display: flex; align-items: center; gap: 0.75rem; }
.float-card-icon {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  color: #fff;
  flex-shrink: 0;
}
.float-card-icon svg { width: 16px; height: 16px; }
.float-card-title { font-size: 14px; font-weight: 600; color: var(--brand-navy-deep); line-height: 1.2; }
.float-card-sub   { font-size: 12px; color: var(--ink-muted); }
.float-card-top { top: 2rem; left: -2rem; }
@media(min-width:768px){ .float-card-top{ left:-3rem; } }
.float-card-btm { bottom: 6rem; right: -1rem; }
@media(min-width:768px){ .float-card-btm{ right:-1.5rem; } }
.float-badge {
  position: absolute;
  bottom: -1.5rem;
  left: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: var(--radius-pill);
  background: #fff;
  padding: 0.75rem 1.25rem;
  box-shadow: var(--shadow-lift);
}
.avatar-stack { display: flex; }
.avatar-stack .av {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -8px;
  background: linear-gradient(135deg,#72C7F5,#4AA9E3);
}
.avatar-stack .av:first-child { margin-left: 0; }
.float-badge-label { font-size: 12px; font-weight: 600; color: var(--brand-navy-deep); line-height: 1.2; }
.float-badge-sub   { font-size: 11px; color: var(--ink-muted); }

/* ================================================
   SKY GLOWS / BLOBS
   ================================================ */
.sky-glow {
  position: absolute;
  border-radius: 50%;
  background: var(--gradient-glow);
  filter: blur(40px);
  pointer-events: none;
}

/* ================================================
   BOOKING BAR
   ================================================ */
.booking-bar { position: relative; z-index: 10; margin-top: -2rem; }
.booking-form {
  display: grid;
  gap: 1rem;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  background: #fff;
  padding: 1.5rem;
  box-shadow: var(--shadow-lift);
}
@media(min-width:768px){
  .booking-form{
    grid-template-columns: 1.1fr 1fr 1fr 1fr auto;
    align-items: end;
    gap: 0.75rem;
    padding: 1.25rem;
  }
}
.field label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.field-label {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
}
.field-label svg { color: var(--brand-sky); width: 16px; height: 16px; flex-shrink: 0; }
.field input {
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: var(--brand-mist);
  padding: 0.75rem 1rem;
  font-size: 14px;
  color: var(--brand-navy-deep);
  outline: none;
  transition: all 200ms;
  width: 100%;
  font-family: inherit;
}
.field input::placeholder { color: rgba(100,116,139,0.7); }
.field input:focus {
  border-color: var(--brand-sky);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(74,169,227,0.15);
}
.btn-book-now {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 56px;
  border-radius: var(--radius-pill);
  background: var(--brand-navy-deep);
  padding: 0 2rem;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 300ms;
  font-family: inherit;
  white-space: nowrap;
}
.btn-book-now:hover { background: var(--brand-navy); transform: translateY(-1px); box-shadow: var(--shadow-glow); }
.btn-book-now svg { transition: transform 300ms; width: 16px; height: 16px; }
.btn-book-now:hover svg { transform: translateX(4px); }

/* ================================================
   MARQUEE
   ================================================ */
.marquee-section {
  overflow: hidden;
  background: var(--brand-navy-deep);
  padding: 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.marquee-track {
  /* fade edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.marquee-list {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}
.marquee-list:hover { animation-play-state: paused; }

@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.625rem;
  padding: 1.375rem 2rem;
  white-space: nowrap;
}

.marquee-val {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

.marquee-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.marquee-sep {
  flex-shrink: 0;
  align-self: center;
  width: 28px;
  height: 28px;
  background-image: url('../assets/tooth-svgrepo-com.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0.7;
}

@media(prefers-reduced-motion: reduce) {
  .marquee-list { animation: none; }
}

/* ================================================
   SECTION BACKGROUND DECORATIONS
   ================================================ */
.sec-bg-dots {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}
.sec-bg-dots.top-left { top: 3rem; left: 3rem; }
.sec-bg-dots.bottom-right { bottom: 3rem; right: 3rem; }
.sec-bg-dots.top-right { top: 4rem; right: 4rem; }
.sec-bg-dots.bottom-left { bottom: 4rem; left: 4rem; }

.sec-bg-graphic {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0.28;
}
.sec-bg-graphic.right-mid {
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 440px;
  max-width: 45vw;
}
.sec-bg-graphic.left-mid {
  left: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 440px;
  max-width: 45vw;
}
.sec-bg-graphic.top-right {
  right: -2%;
  top: 5%;
  width: 360px;
}

/* ================================================
   LEGACY / ABOUT
   ================================================ */
.legacy { position: relative; padding: 6rem 0; background: radial-gradient(ellipse at 15% 25%, #eff6ff 0%, #f8fafc 55%, #f1f8ff 100%); overflow: hidden; }
@media(min-width:1024px){ .legacy{ padding: 8rem 0; } }

.legacy-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
}
@media(min-width:1024px){ .legacy-grid{ grid-template-columns: 1fr 1.15fr; gap: 5rem; } }

/* ---- Image side ---- */
.legacy-img-wrap {
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 0;
}
.legacy-img-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 88%;
  height: 94%;
  background: #e3f2fd;
  border-radius: 40px 100px 40px 40px;
  z-index: 0;
}
@media(min-width:1024px) {
  .legacy-img-wrap {
    padding: 2.5rem 2.5rem 2.5rem 1.5rem;
  }
  .legacy-img-wrap::before {
    width: 85%;
    height: 92%;
    border-radius: 48px 130px 48px 48px;
  }
}

.legacy-img-frame {
  position: relative;
  z-index: 1;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 36px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
  background: #fff;
}
.legacy-img-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* Trusted Care badge — top left */
.legacy-trust-badge {
  position: absolute;
  top: 2rem;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #ffffff;
  border-radius: 9999px;
  padding: 0.65rem 1.25rem 0.65rem 0.65rem;
  box-shadow: 0 12px 30px -8px rgba(15, 23, 42, 0.12), 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid rgba(241, 245, 249, 0.9);
}
@media(min-width:1024px) {
  .legacy-trust-badge {
    top: 3.5rem;
    left: -1rem;
  }
}
.legacy-trust-icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #eff6ff;
  color: #1d63ed;
  flex-shrink: 0;
}
.legacy-trust-title { font-size: 13.5px; font-weight: 700; color: #0f172a; line-height: 1.2; }
.legacy-trust-sub   { font-size: 11.5px; color: #64748b; font-weight: 500; margin-top: 2px; }

/* 30+ Years badge — bottom left */
.legacy-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: #1d63ed;
  background-image: radial-gradient(circle at 90% 10%, rgba(255,255,255,0.2) 0%, transparent 50%),
                    radial-gradient(circle at 10% 90%, rgba(0,0,0,0.1) 0%, transparent 50%);
  border-radius: 24px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 20px 40px -10px rgba(29, 99, 237, 0.45);
  min-width: 160px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
@media(min-width:1024px) {
  .legacy-badge {
    bottom: 1rem;
    left: -1rem;
  }
}
.legacy-badge-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: grid; place-items: center;
  color: #ffffff;
  margin-bottom: 0.5rem;
}
.legacy-badge-value { font-size: 2.75rem; font-weight: 800; letter-spacing: -0.03em; color: #fff; line-height: 1; }
.legacy-badge-label { font-size: 13.5px; font-weight: 500; color: rgba(255,255,255,0.92); line-height: 1.35; margin-top: 0.35rem; }

/* ---- Content side ---- */
.legacy-content .eyebrow {
  color: #1d63ed;
  font-weight: 700;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
}
.legacy-content .eyebrow::before {
  background: #1d63ed;
  width: 28px;
  height: 2px;
}
.legacy-content h2 {
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  line-height: 1.15;
  margin-top: 1rem;
  color: #0f172a;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.legacy-content > p {
  margin-top: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #475569;
}

/* Doctor cards */
.doctor-cards {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
@media(min-width:540px){ .doctor-cards{ grid-template-columns: 1fr 1fr; } }

.doctor-card {
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05);
  transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.doctor-card:hover {
  transform: translateY(-4px);
  border-color: #1d63ed;
  box-shadow: 0 20px 40px -15px rgba(29, 99, 237, 0.15);
}
.doctor-card-icon {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #eff6ff;
  color: #1d63ed;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(29, 99, 237, 0.15);
}
.doctor-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 0.5rem;
  line-height: 1.3;
}
.doctor-card-role {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #1d63ed;
  margin-top: 0.25rem;
}
.doctor-card-rule {
  display: none;
}
.doctor-card p {
  font-size: 13.5px;
  line-height: 1.65;
  color: #64748b;
  margin-top: 0.85rem;
}

/* smile underline */
.smile-underline { position: relative; display: inline-block; white-space: nowrap; padding-bottom: 0.9rem; color: #1d63ed; }
.smile-underline svg { position: absolute; inset-inline: 0; bottom: -14px; width: 100%; height: auto; pointer-events: none; }

/* ================================================
   INVISALIGN
   ================================================ */
.invisalign { position: relative; overflow: hidden; padding: 6rem 0; background: #f8fafc; }
@media(min-width:1024px){ .invisalign{ padding: 8rem 0; } }
.invisalign-grid { display: grid; gap: 4rem; }
@media(min-width:1024px){ .invisalign-grid{ grid-template-columns: 1.15fr 1fr; align-items: center; gap: 5rem; } }
.invis-content { order: 2; }
@media(min-width:1024px){ .invis-content{ order: 1; } }
.invis-img-wrap { order: 1; position: relative; }
@media(min-width:1024px){ .invis-img-wrap{ order: 2; } }

.invis-content .eyebrow {
  color: #1d63ed;
  font-weight: 700;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.invis-content .eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: #1d63ed;
  display: inline-block;
}
.invis-content h2 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); line-height: 1.15; margin-top: 1rem; color: #0f172a; font-weight: 800; letter-spacing: -0.03em; }
.invis-content > p { margin-top: 1.5rem; max-width: 580px; font-size: 1.05rem; line-height: 1.75; color: #475569; }

.benefits-list { list-style: none; display: grid; gap: 1.25rem 2rem; margin-top: 2.25rem; }
@media(min-width:640px){ .benefits-list{ grid-template-columns: 1fr 1fr; } }
.benefits-list li { display: flex; align-items: flex-start; gap: 0.85rem; font-size: 0.95rem; line-height: 1.5; color: #0f172a; font-weight: 500; }
.benefit-icon { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #eff6ff; color: #1d63ed; flex-shrink: 0; margin-top: 2px; }

.mini-stats { display: grid; gap: 1rem; margin-top: 2.75rem; }
@media(min-width:640px){ .mini-stats{ grid-template-columns: repeat(3, 1fr); } }
.mini-stat {
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 1.25rem 1rem;
  box-shadow: 0 10px 25px -10px rgba(15, 23, 42, 0.05);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}
.mini-stat:hover {
  transform: translateY(-3px);
  border-color: #1d63ed;
  box-shadow: 0 15px 30px -10px rgba(29, 99, 237, 0.12);
}
.mini-stat-icon {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: #eff6ff;
  color: #1d63ed;
  flex-shrink: 0;
}
.mini-stat-title { font-size: 1rem; font-weight: 800; letter-spacing: -0.02em; color: #0f172a; line-height: 1.2; }
.mini-stat-sub { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: #64748b; margin-top: 2px; }

.invis-img-frame {
  position: relative;
  overflow: hidden;
  border-radius: 40px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
  background: #e3f2fd;
  background-image: radial-gradient(circle at 90% 10%, rgba(255,255,255,0.4) 0%, transparent 40%),
                    radial-gradient(circle at 10% 90%, rgba(29,99,237,0.1) 0%, transparent 40%);
}
.invis-img-frame img {
  aspect-ratio: 1;
  width: 100%;
  object-fit: cover;
  display: block;
}

.invis-float-top {
  position: absolute;
  top: 2.5rem;
  left: 0;
  z-index: 3;
  background: #ffffff;
  border-radius: 9999px;
  padding: 0.65rem 1.5rem 0.65rem 0.65rem;
  box-shadow: 0 15px 35px -10px rgba(15, 23, 42, 0.15), 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid rgba(241, 245, 249, 0.9);
}
@media(min-width:1024px) {
  .invis-float-top {
    left: -1.5rem;
  }
}
.invis-float-btm {
  position: absolute;
  bottom: 2rem;
  right: 0;
  z-index: 3;
  background: #ffffff;
  border-radius: 9999px;
  padding: 0.65rem 1.5rem 0.65rem 0.65rem;
  box-shadow: 0 15px 35px -10px rgba(15, 23, 42, 0.15), 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid rgba(241, 245, 249, 0.9);
}
@media(min-width:1024px) {
  .invis-float-btm {
    right: -1.5rem;
  }
}
.invis-float-top .float-card-icon, .invis-float-btm .float-card-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.invis-float-top .float-card-title, .invis-float-btm .float-card-title {
  font-size: 13.5px; font-weight: 700; color: #0f172a; line-height: 1.2;
}
.invis-float-top .float-card-sub, .invis-float-btm .float-card-sub {
  font-size: 11.5px; color: #64748b; font-weight: 500; margin-top: 1px;
}

/* ================================================
   WHY CHOOSE US
   ================================================ */
.why {
  position: relative;
  overflow: hidden;
  padding: 7rem 0 9rem;
  background: var(--gradient-navy);
  color: #fff;
}
@media(min-width:1024px){ .why{ padding: 9rem 0; } }
.why-heading { max-width: 40rem; margin-inline: auto; text-align: center; }
.why-heading h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.1; color: #fff; margin-top: 1.5rem; }
.why-heading p  { margin-top: 1.25rem; font-size: 17px; line-height: 1.65; color: rgba(255,255,255,0.7); }

.why-grid { display: grid; gap: 1rem; margin-top: 4rem; }
@media(min-width:640px){ .why-grid{ grid-template-columns: repeat(2, 1fr); } }
@media(min-width:1024px){ .why-grid{ grid-template-columns: repeat(3, 1fr); } }

.why-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  padding: 2rem;
  backdrop-filter: blur(4px);
  transition: all 400ms cubic-bezier(0.16,1,0.3,1);
}
.why-card:hover {
  transform: translateY(-4px);
  border-color: rgba(74,169,227,0.5);
  background: rgba(255,255,255,0.07);
}
.why-card::before {
  content:'';
  position: absolute;
  right: -4rem; top: -4rem;
  width: 13rem; height: 13rem;
  border-radius: 50%;
  background: var(--gradient-glow);
  opacity: 0;
  transition: opacity 500ms;
}
.why-card:hover::before { opacity: 0.7; }
.why-card-icon {
  position: relative;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 16px;
  background: rgba(255,255,255,0.1);
  color: var(--brand-sky-soft);
}
.why-card-icon svg { width: 20px; height: 20px; }
.why-card h3 { position:relative; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.025em; color: #fff; margin-top: 1.5rem; }
.why-card p  { position:relative; font-size: 15px; line-height: 1.65; color: rgba(255,255,255,0.7); margin-top: 0.75rem; }

/* ================================================
   TOURISM
   ================================================ */
.tourism { padding: 6rem 0; background: radial-gradient(ellipse at 85% 30%, #e8f4ff 0%, #f4f9ff 50%, #ffffff 100%); position: relative; overflow: hidden; }
@media(min-width:1024px){ .tourism{ padding: 8rem 0; } }
.tourism-grid { display: grid; gap: 4rem; }
@media(min-width:1024px){ .tourism-grid{ grid-template-columns: 1fr 1.15fr; align-items: center; gap: 5rem; } }

.tourism-eyebrow {
  display: inline-flex;
  align-items: center;
  color: #1d63ed;
  font-weight: 700;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
}
.tourism-eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: #1d63ed;
  margin-right: 10px;
}
.tourism-content h2 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); line-height: 1.15; margin-top: 1rem; color: #0f172a; font-weight: 800; letter-spacing: -0.03em; }
.tourism-content > p { margin-top: 1.5rem; max-width: 580px; font-size: 1.05rem; line-height: 1.75; color: #475569; }

.tourism-map-card {
  position: relative;
  border-radius: 32px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}
.tourism-map-card > svg, .tourism-map-card > img { width: 100%; height: auto; display: block; }

.tourism-divider {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 3.5rem 0 2.5rem;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.tourism-divider::before, .tourism-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.country-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media(max-width:480px){ .country-chips{ grid-template-columns: repeat(2, 1fr); } }
.country-chip {
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 0.85rem 0.75rem;
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
  transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}
.country-chip:hover {
  transform: translateY(-3px);
  border-color: #1d63ed;
  box-shadow: 0 10px 20px -5px rgba(29, 99, 237, 0.12);
}
.country-icon {
  display: grid; place-items: center;
  color: #1d63ed;
  flex-shrink: 0;
}
.country-code { font-size: 13px; font-weight: 800; color: #1d63ed; line-height: 1.1; }
.country-name { font-weight: 700; color: #0f172a; margin-top: 2px; font-size: 13px; line-height: 1.1; }

.steps-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; margin-top: 2.5rem; }
.step-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 10px 25px -10px rgba(15, 23, 42, 0.05);
  transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}
.step-item:hover {
  transform: translateY(-3px);
  border-color: #1d63ed;
  box-shadow: 0 15px 30px -10px rgba(29, 99, 237, 0.12);
}
.step-icon {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #eff6ff;
  color: #1d63ed;
  flex-shrink: 0;
}
.step-num {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1d63ed;
  min-width: 24px;
}
.step-sep {
  width: 1px;
  height: 32px;
  background: #e2e8f0;
  flex-shrink: 0;
}
.step-text-wrap { flex: 1; }
.step-title { font-size: 0.9rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: #0f172a; }
.step-copy  { font-size: 0.9rem; color: #64748b; margin-top: 3px; line-height: 1.5; font-weight: 400; }

.why-coimbatore-grid {
  display: grid;
  gap: 1.5rem;
}
@media(min-width:640px){ .why-coimbatore-grid{ grid-template-columns: repeat(3, 1fr); } }

.why-card {
  position: relative;
  border-radius: 24px;
  background: #0f172a;
  padding: 2rem 1.75rem;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 15px 35px -10px rgba(15, 23, 42, 0.2);
  transition: transform 300ms ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.why-card:hover { transform: translateY(-5px); }
.why-card::after {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(29, 99, 237, 0.3) 0%, transparent 70%);
  pointer-events: none;
}
.why-card-icon {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.1);
  color: var(--brand-sky-soft);
}
.why-card-icon svg { width: 20px; height: 20px; }
.why-card h3 { position:relative; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.025em; color: #fff; margin-top: 1.5rem; }
.why-card p  { position:relative; font-size: 15px; line-height: 1.65; color: rgba(255,255,255,0.7); margin-top: 0.75rem; }

/* ================================================
   GALLERY
   ================================================ */
.gallery {
  position: relative;
  padding: 5rem 0;
  background: linear-gradient(180deg, #f4f9ff 0%, #ffffff 60%, #f8fafc 100%);
}
@media(min-width: 1024px) {
  .gallery {
    height: 100vh;
    min-height: 700px;
    max-height: 1080px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2vh 0;
    overflow: hidden;
  }
  .gallery-container {
    height: 100%;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
}

.gallery-heading { max-width: 44rem; margin-inline: auto; text-align: center; }
.gallery-heading h2 { font-size: clamp(1.8rem, 3.2vw, 2.75rem); line-height: 1.15; margin-top: 0.75rem; color: #0f172a; font-weight: 800; letter-spacing: -0.025em; }
.gallery-heading p  { margin-top: 0.75rem; font-size: 1rem; line-height: 1.6; color: #64748b; }

.gallery-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
@media(min-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width: 1024px) {
  .gallery-grid {
    flex: 1;
    grid-template-columns: 1.15fr 1fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    margin: 3vh 0 2.5vh;
    min-height: 380px;
  }
}

.gallery-tile {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #0f172a;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.15);
  min-height: 240px;
}
@media(min-width: 1024px) {
  .gallery-tile { min-height: 100%; height: 100%; }
  .gallery-tile.tall { grid-row: span 2; }
}

.gallery-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}
@media(min-width: 1024px) { .gallery-tile img { position: absolute; inset: 0; } }
.gallery-tile:hover img { transform: scale(1.06); }
.gallery-tile::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.3) 40%, transparent 80%);
  pointer-events: none;
}

.gallery-card-badge {
  position: absolute;
  inset-inline: 0; bottom: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  z-index: 2;
  pointer-events: none;
}
@media(max-width: 640px) { .gallery-card-badge { padding: 1rem; gap: 0.75rem; } }

.gallery-badge-icon {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #ffffff;
  color: #1d63ed;
  flex-shrink: 0;
  box-shadow: 0 6px 16px -2px rgba(0, 0, 0, 0.2);
}
@media(max-width: 640px) { .gallery-badge-icon { width: 40px; height: 40px; } }
.gallery-badge-icon svg { width: 22px; height: 22px; }
@media(max-width: 640px) { .gallery-badge-icon svg { width: 18px; height: 18px; } }

.gallery-badge-text { text-align: left; }
.gallery-badge-title {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1.2;
}
.gallery-badge-sub {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 3px;
  font-weight: 500;
  line-height: 1.3;
}

.gallery-more-btn {
  text-align: center;
  margin-top: 1rem;
}
.btn-view-photos {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.75rem;
  background: #ffffff;
  color: #1d63ed;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 9999px;
  border: 1.5px solid #bfdbfe;
  text-decoration: none;
  box-shadow: 0 4px 15px -3px rgba(29, 99, 237, 0.08);
  transition: all 300ms ease;
}
.btn-view-photos:hover {
  background: #eff6ff;
  border-color: #1d63ed;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -5px rgba(29, 99, 237, 0.18);
}

.testimonials { position: relative; padding: 6rem 0; }
@media(min-width:1024px){ .testimonials{ padding: 8rem 0; } }
.test-heading { max-width: 40rem; margin-inline: auto; text-align: center; }
.test-heading h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.1; margin-top: 1.5rem; }
.google-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: rgba(255,255,255,0.8);
  padding: 0.5rem 1.25rem;
  font-size: 14px;
  backdrop-filter: blur(8px);
  margin-top: 1.5rem;
}
.stars { display: flex; color: var(--brand-sky); }
.stars svg { width: 16px; height: 16px; fill: currentColor; }
.rating-num { font-weight: 600; color: var(--brand-navy-deep); }
.rating-label { color: var(--ink-muted); }

.test-grid { display: grid; gap: 1.5rem; margin-top: 4rem; }
@media(min-width:1024px){ .test-grid{ grid-template-columns: repeat(3, 1fr); } }

.test-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  background: #fff;
  padding: 2rem;
  transition: all 400ms cubic-bezier(0.16,1,0.3,1);
}
.test-card:hover { transform: translateY(-4px); border-color: rgba(74,169,227,0.4); box-shadow: var(--shadow-glow); }
.test-quote-icon {
  position: absolute;
  right: -0.5rem; top: -1rem;
  width: 96px; height: 96px;
  color: rgba(114,199,245,0.15);
}
.test-quote-icon svg { width: 100%; height: 100%; }
.test-stars { display: flex; color: var(--brand-sky); }
.test-stars svg { width: 16px; height: 16px; fill: currentColor; }
.test-quote { position: relative; margin-top: 1.5rem; font-size: 17px; line-height: 1.65; color: var(--brand-navy-deep); }
.test-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--color-border);
  margin-top: 2rem;
  padding-top: 1.5rem;
}
.test-avatar {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
  background: var(--gradient-navy);
}
.test-name    { font-size: 14px; font-weight: 600; color: var(--brand-navy-deep); line-height: 1.2; }
.test-treatment { font-size: 12px; color: var(--ink-muted); }

/* ================================================
   SUMMARY / ABOUT US
   ================================================ */
.summary { padding: 6rem 0 7rem; }
.summary-card {
  position: relative;
  overflow: hidden;
  max-width: 56rem;
  margin-inline: auto;
  border-radius: 36px;
  border: 1px solid var(--color-border);
  background: #fff;
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
@media(min-width:768px){ .summary-card{ padding: 4rem; } }
.summary-card::before {
  content:'';
  position: absolute;
  top: -6rem; left: 50%;
  transform: translateX(-50%);
  width: 420px; height: 420px;
  border-radius: 50%;
  background: var(--gradient-glow);
  filter: blur(30px);
  opacity: 0.55;
  pointer-events: none;
}
.summary-card h2 { position: relative; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.1; margin-top: 1.5rem; }
.summary-card p  { position: relative; max-width: 42rem; margin: 1.5rem auto 0; font-size: 17px; line-height: 1.7; color: var(--ink-muted); }

/* ================================================
   FAQ
   ================================================ */
.faq { padding: 6rem 0; background: #ffffff; position: relative; overflow: hidden; }
@media(min-width:1024px){ .faq{ padding: 8rem 0; } }
.faq-grid { display: grid; gap: 4rem; }
@media(min-width:1024px){ .faq-grid{ grid-template-columns: 0.95fr 1.05fr; gap: 5rem; align-items: flex-start; } }

.faq-eyebrow {
  display: inline-flex;
  align-items: center;
  color: #1d63ed;
  font-weight: 700;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
}
.faq-eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: #1d63ed;
  margin-right: 0.5rem;
}
.faq-intro h2 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); line-height: 1.15; margin-top: 1rem; color: #0f172a; font-weight: 800; letter-spacing: -0.03em; }
.faq-intro p  { margin-top: 1.5rem; max-width: 440px; font-size: 1.05rem; line-height: 1.75; color: #475569; }

.faq-help-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 25px -10px rgba(15, 23, 42, 0.05);
  margin-top: 2.25rem;
  max-width: 420px;
  transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}
.faq-help-card:hover {
  transform: translateY(-3px);
  border-color: #1d63ed;
  box-shadow: 0 15px 30px -10px rgba(29, 99, 237, 0.12);
}
.faq-help-icon {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #eff6ff;
  color: #1d63ed;
  flex-shrink: 0;
}
.faq-help-text { flex: 1; text-align: left; }
.faq-help-title { font-size: 15px; font-weight: 800; color: #0f172a; line-height: 1.2; }
.faq-help-sub { font-size: 13.5px; color: #64748b; margin-top: 3px; line-height: 1.2; font-weight: 500; }
.faq-help-btn {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #1d63ed;
  color: #ffffff;
  flex-shrink: 0;
  transition: transform 300ms ease;
}
.faq-help-card:hover .faq-help-btn { transform: translateX(3px); }

.faq-tooth-graphic {
  margin-top: 3rem;
  max-width: 340px;
  opacity: 0.55;
  pointer-events: none;
}
.faq-tooth-graphic svg { width: 100%; height: auto; display: block; }

.accordion { display: flex; flex-direction: column; gap: 1rem; }
.accordion-item {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 10px 25px -10px rgba(15, 23, 42, 0.04);
  transition: all 350ms cubic-bezier(0.16,1,0.3,1);
}
.accordion-item.open {
  background: #f0f7ff;
  border-color: #bfdbfe;
  box-shadow: 0 20px 40px -15px rgba(29, 99, 237, 0.12);
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.acc-left-icon {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #eff6ff;
  color: #1d63ed;
  flex-shrink: 0;
  transition: all 300ms ease;
}
.accordion-item.open .acc-left-icon {
  background: #1d63ed;
  color: #ffffff;
}
.acc-chevron-up { display: none; }
.accordion-item.open .acc-chevron-up { display: block; }
.accordion-item.open .acc-chevron-down { display: none; }

.acc-question-text {
  flex: 1;
  font-size: 1.02rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.4;
  margin: 0 0.5rem;
}

.acc-toggle-symbol::before {
  content: '+';
  font-size: 1.5rem;
  font-weight: 500;
  color: #1d63ed;
  line-height: 1;
}
.accordion-item.open .acc-toggle-symbol::before {
  content: '−';
}

.accordion-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 400ms cubic-bezier(0.16,1,0.3,1);
}
.accordion-item.open .accordion-content { max-height: 500px; }
.accordion-body {
  padding: 0 1.5rem 1.5rem 4.85rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #475569;
}
@media(max-width:640px) {
  .accordion-body { padding: 0 1.25rem 1.25rem 1.25rem; }
}

/* ================================================
   CTA BAND
   ================================================ */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 0;
  background: linear-gradient(180deg, #f4f9ff 0%, #ffffff 80%);
  text-align: center;
}
@media(min-width:1024px){ .cta-band{ padding: 8rem 0 0; } }

.cta-bg-dots {
  position: absolute;
  top: 3rem;
  left: 5%;
  opacity: 0.3;
  pointer-events: none;
}
.cta-bg-tooth {
  position: absolute;
  top: 2rem;
  right: 5%;
  width: 280px;
  opacity: 0.5;
  pointer-events: none;
}
@media(max-width:1024px){ .cta-bg-tooth{ display: none; } }
.cta-bg-tooth svg { width: 100%; height: auto; display: block; }

.cta-header { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }

.cta-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid #bfdbfe;
  background: #ffffff;
  padding: 0.4rem 1.25rem;
  box-shadow: 0 4px 12px -2px rgba(29, 99, 237, 0.08);
  color: #1d63ed;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.cta-header h2 {
  margin-top: 1.5rem;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #0f172a;
  font-weight: 800;
}
.cta-header p {
  margin: 1.25rem auto 0;
  max-width: 580px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #475569;
}

.cta-btns-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2.5rem auto 0;
  position: relative;
  z-index: 2;
}

.cta-small-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 0.6rem 0.75rem 0.6rem 1rem;
  box-shadow: 0 4px 15px -3px rgba(15, 23, 42, 0.05);
  transition: all 300ms ease;
  color: #0f172a;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}
.cta-small-btn.primary {
  border: 1.5px solid #1d63ed;
  box-shadow: 0 8px 20px -4px rgba(29, 99, 237, 0.15);
}
.cta-small-btn:hover {
  transform: translateY(-2px);
  border-color: #1d63ed;
  box-shadow: 0 10px 25px -5px rgba(29, 99, 237, 0.2);
}

.cta-btn-icon {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #eff6ff;
  color: #1d63ed;
  flex-shrink: 0;
}
.cta-small-btn.primary .cta-btn-icon {
  background: #eff6ff;
  color: #1d63ed;
}

.cta-btn-text {
  line-height: 1;
}

.cta-btn-arrow {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #eff6ff;
  color: #1d63ed;
  flex-shrink: 0;
  transition: transform 300ms ease;
}
.cta-small-btn.primary .cta-btn-arrow {
  background: #1d63ed;
  color: #ffffff;
}
.cta-small-btn:hover .cta-btn-arrow {
  transform: translateX(3px);
  background: #1d63ed;
  color: #ffffff;
}

/* ================================================
   FOOTER
   ================================================ */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--gradient-navy);
  color: #fff;
}
.footer-glow {
  position: absolute;
  top: -6rem; right: -10%;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: var(--gradient-glow);
  filter: blur(20px);
  opacity: 0.4;
  pointer-events: none;
}
.footer-grid {
  position: relative;
  display: grid;
  gap: 3.5rem;
  padding: 6rem 0;
}
@media(min-width:1024px){ .footer-grid{ grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }

.footer-brand-logo { display: flex; align-items: center; gap: 0.75rem; }
.footer-brand-icon {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
  flex-shrink: 0;
}
.footer-brand-icon img { height: 40px; width: auto; }
.footer-brand-name { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.025em; }

.footer-brand p { max-width: 28rem; font-size: 15px; line-height: 1.65; color: rgba(255,255,255,0.7); margin-top: 1.5rem; }

.newsletter-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 28rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  padding: 0.375rem;
  backdrop-filter: blur(8px);
  margin-top: 2rem;
}
.newsletter-form input {
  flex: 1;
  background: transparent;
  padding: 0.5rem 1rem;
  font-size: 14px;
  color: #fff;
  border: none; outline: none;
  font-family: inherit;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.btn-subscribe {
  border-radius: var(--radius-pill);
  background: var(--brand-sky);
  padding: 0.5rem 1.25rem;
  font-size: 14px; font-weight: 600;
  color: #fff;
  border: none; cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: all 200ms;
}
.btn-subscribe:hover { background: var(--brand-sky-soft); color: var(--brand-navy-deep); }

.socials { display: flex; gap: 0.75rem; margin-top: 2rem; }
.social-btn {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.8);
  transition: all 300ms;
}
.social-btn svg { width: 16px; height: 16px; }
.social-btn:hover { transform: translateY(-1px); border-color: var(--brand-sky); color: #fff; }

.footer-col h4 {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.24em;
  color: var(--brand-sky-soft);
}
.footer-col ul { list-style: none; margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.875rem; }
.footer-col a { font-size: 15px; color: rgba(255,255,255,0.75); transition: color 200ms; }
.footer-col a:hover { color: #fff; }

.footer-contact h4 {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.24em;
  color: var(--brand-sky-soft);
}
.footer-contact ul { list-style: none; margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.footer-contact li { display: flex; gap: 0.75rem; font-size: 15px; color: rgba(255,255,255,0.75); }
.footer-contact li svg { width: 16px; height: 16px; color: var(--brand-sky); flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.5rem 0;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
@media(min-width:768px){ .footer-bottom-inner{ flex-direction:row; } }

/* ================================================
   CONTACT FORM PAGE
   ================================================ */
.contact-page { padding: 9rem 0 6rem; }
.contact-grid { display: grid; gap: 4rem; }
@media(min-width:1024px){ .contact-grid{ grid-template-columns: 1fr 1.2fr; align-items: start; } }
.contact-info h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; }
.contact-info p { font-size: 17px; line-height: 1.7; color: var(--ink-muted); margin-top: 1rem; }
.contact-details { list-style: none; display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.contact-details li { display: flex; gap: 0.75rem; font-size: 16px; color: var(--ink); }
.contact-details li svg { width: 20px; height: 20px; color: var(--brand-sky); flex-shrink: 0; margin-top: 2px; }

.contact-form-card {
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  background: #fff;
  padding: 2.5rem;
  box-shadow: var(--shadow-soft);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 0.5rem; color: var(--brand-navy-deep); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  background: var(--brand-mist);
  padding: 0.875rem 1rem;
  font-size: 14px;
  color: var(--brand-navy-deep);
  font-family: inherit;
  outline: none;
  transition: all 200ms;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--brand-sky);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(74,169,227,0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-submit {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--brand-navy-deep);
  padding: 1rem;
  font-size: 15px; font-weight: 600;
  color: #fff; border: none; cursor: pointer; font-family: inherit;
  transition: all 300ms;
}
.btn-submit:hover { background: var(--brand-navy); transform: translateY(-1px); box-shadow: var(--shadow-glow); }
.form-success {
  background: #ecfdf5; border: 1px solid #a7f3d0;
  border-radius: 12px; padding: 1rem;
  color: #065f46; font-size: 14px; font-weight: 500;
  margin-bottom: 1rem; display: none;
}

/* ================================================
   FULL VIEWPORT HEIGHT LAYOUT (100vh for all sections)
   ================================================ */
@media(min-width: 1024px) {
  .legacy,
  .invisalign,
  .why,
  .tourism,
  .gallery,
  .testimonials,
  .faq,
  .cta-band {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4vh 0 !important;
  }
}

/* ================================================
   PAGE HERO (inner pages)
   ================================================ */
.page-hero {
  padding: 9rem 0 4rem;
  text-align: center;
  background: var(--gradient-navy);
  color: #fff;
}
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); color: #fff; }
.page-hero p { max-width: 36rem; margin: 1rem auto 0; font-size: 17px; color: rgba(255,255,255,0.75); line-height: 1.65; }
