/* =========================================================
   GURUKIRPA DENTAL CARE — STYLESHEET
   Sections:
   1. Reset & Variables
   2. Base / Typography
   3. Layout helpers
   4. Loader / Scroll progress / Cursor
   5. Navbar
   6. Buttons
   7. Hero
   8. Trust / Stats
   9. About
   10. Doctor
   11. Services
   12. Why Choose Us
   13. Testimonials
   14. Gallery + Lightbox
   15. Process timeline
   16. FAQ accordion
   17. CTA banner
   18. Contact + Form
   19. Footer
   20. Floating buttons
   21. Reveal animations
   22. Responsive
========================================================= */

/* ---------- 1. RESET & VARIABLES ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  /* Brand colors (from brief) */
  --primary: #0F4C81;
  --primary-dark: #0b3a64;
  --secondary: #0097A7;
  --accent: #20C997;
  --bg: #F8FBFD;
  --white: #FFFFFF;
  --text: #1F2937;
  --text-soft: #5b6675;
  --light-gray: #EEF4F7;
  --border: rgba(15, 76, 129, .12);

  --gradient-brand: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-accent: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);

  --shadow-sm: 0 4px 14px rgba(15, 76, 129, .06);
  --shadow-md: 0 12px 32px rgba(15, 76, 129, .10);
  --shadow-lg: 0 24px 60px rgba(15, 76, 129, .14);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 100px;

  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --nav-h: 84px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 2. BASE / TYPOGRAPHY ---------- */
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.18;
  margin: 0;
  color: var(--text);
}

p { margin: 0; }

a {
  text-decoration: none;
  color: inherit;
}

img { max-width: 100%; display: block; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--accent); color: #fff; }

/* visible keyboard focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2.5px solid var(--secondary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. LAYOUT HELPERS ---------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

main section {
  padding: 100px 0;
  position: relative;
}

.eyebrow {
  display: inline-block;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--secondary);
  margin: 0 0 14px;
  position: relative;
  padding-left: 18px;
}
.eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 2px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin-bottom: 18px;
  letter-spacing: -.01em;
}

.section-text {
  color: var(--text-soft);
  font-size: 1.03rem;
  max-width: 560px;
}
.section-text--center { margin: 0 auto; text-align: center; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-head .section-text { max-width: 100%; }

.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.glass {
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .6);
}

/* ---------- 4. LOADER / SCROLL PROGRESS / CURSOR ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity .6s var(--ease), visibility .6s var(--ease);
}
.loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__mark { color: var(--primary); animation: pulse 1.4s ease-in-out infinite; }
.loader__bar {
  width: 160px;
  height: 4px;
  border-radius: 4px;
  background: var(--light-gray);
  overflow: hidden;
}
.loader__bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--gradient-brand);
  border-radius: 4px;
  animation: loaderFill 1.4s var(--ease) forwards;
}
@keyframes loaderFill { to { width: 100%; } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.12); opacity: .7; } }

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient-accent);
  z-index: 1001;
  transition: width .08s linear;
}

.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  border-radius: 50%;
  z-index: 1002;
  transform: translate(-50%, -50%);
  display: none;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--primary);
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1.5px solid var(--secondary);
  transition: width .2s var(--ease), height .2s var(--ease), opacity .2s var(--ease), border-color .2s var(--ease);
  opacity: .6;
}
.cursor-ring.is-active { width: 50px; height: 50px; border-color: var(--accent); }

@media (hover: hover) and (pointer: fine) {
  .cursor-dot, .cursor-ring { display: block; }
}

/* ---------- 5. NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), height .35s var(--ease);
}
.navbar.is-scrolled {
  height: 70px;
  background: rgba(248, 251, 253, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--primary);
  white-space: nowrap;
}
.navbar__logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
}
.navbar__logo-text strong { color: var(--secondary); }

.navbar__nav {
  display: flex;
  gap: 30px;
  align-items: center;
}
.navlink {
  position: relative;
  font-size: .95rem;
  font-weight: 500;
  color: var(--text);
  padding: 6px 0;
  transition: color .25s;
}
.navlink::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gradient-accent);
  border-radius: 2px;
  transition: width .3s var(--ease);
}
.navlink:hover, .navlink.active { color: var(--primary); }
.navlink:hover::after, .navlink.active::after { width: 100%; }

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.navbar__call { display: flex; gap: 8px; align-items: center; }

.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 24px;
}
.navbar__toggle span {
  display: block;
  width: 100%;
  height: 2.3px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.navbar__toggle.is-open span:nth-child(1) { transform: translateY(7.3px) rotate(45deg); }
.navbar__toggle.is-open span:nth-child(2) { opacity: 0; }
.navbar__toggle.is-open span:nth-child(3) { transform: translateY(-7.3px) rotate(-45deg); }

/* ---------- 6. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: .95rem;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
  white-space: nowrap;
}
.btn--sm { padding: 10px 20px; font-size: .85rem; }
.btn--lg { padding: 16px 34px; font-size: 1rem; }

.btn--primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 76, 129, .25);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(15, 76, 129, .32); }

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 1.6px solid var(--border);
}
.btn--outline:hover { background: var(--light-gray); transform: translateY(-3px); }

.btn--ghost { color: var(--primary); }
.btn--ghost:hover { color: var(--secondary); }

.btn--white { background: #fff; color: var(--primary); }
.btn--white:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.btn--outline-light { border: 1.6px solid rgba(255, 255, 255, .55); color: #fff; }
.btn--outline-light:hover { background: rgba(255, 255, 255, .12); transform: translateY(-3px); }

/* ripple */
.ripple { isolation: isolate; }
.ripple-span {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  transform: scale(0);
  animation: rippleAnim .6s var(--ease) forwards;
  pointer-events: none;
}
@keyframes rippleAnim { to { transform: scale(2.6); opacity: 0; } }

/* ---------- 7. HERO ---------- */
.hero {
  padding-top: calc(var(--nav-h) + 56px);
  padding-bottom: 70px;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__wave {
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 220px;
  fill: var(--light-gray);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .35;
  animation: float 9s ease-in-out infinite;
}
.blob--1 { width: 320px; height: 320px; background: var(--secondary); top: -80px; right: -60px; }
.blob--2 { width: 260px; height: 260px; background: var(--accent); bottom: 40px; left: -80px; animation-delay: -3s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -25px) scale(1.08); }
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 50px;
  align-items: center;
}

.hero__title {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  letter-spacing: -.02em;
  margin-bottom: 20px;
}
.hero__subtitle {
  color: var(--text-soft);
  font-size: 1.08rem;
  max-width: 480px;
  margin-bottom: 32px;
}
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: .85rem;
  font-weight: 500;
}
.hero-badge__icon { color: var(--accent); font-weight: 700; }

.hero__visual { position: relative; display: flex; justify-content: center; }
.hero__visual-glow {
  position: absolute;
  width: 360px; height: 360px;
  background: var(--gradient-accent);
  border-radius: 50%;
  filter: blur(80px);
  opacity: .25;
  top: 10%;
  z-index: -1;
}
.hero__portrait { position: relative; width: min(100%, 360px); }
.hero__portrait-frame {
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #fff, var(--light-gray));
  box-shadow: var(--shadow-lg);
  padding: 16px;
  animation: floatSlow 6s ease-in-out infinite;
}
.hero__portrait-art { width: 100%; display: block; }
@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 12px 16px;
  font-size: .8rem;
  animation: floatSlow 5s ease-in-out infinite;
}
.floating-card strong { display: block; font-size: 1rem; color: var(--primary); }
.floating-card small { color: var(--text-soft); }
.floating-card__icon { font-size: 1.4rem; }
.floating-card--1 { top: 8%; right: -8%; animation-delay: -1.5s; }
.floating-card--2 { bottom: 10%; left: -10%; animation-delay: -3s; }

/* ---------- 8. TRUST / STATS ---------- */
.trust { padding: 0; margin-top: -40px; }
.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px 30px;
  position: relative;
  z-index: 2;
}
.trust-card { text-align: center; padding: 10px; border-right: 1px solid var(--border); }
.trust-card:last-child { border-right: none; }
.trust-card__num {
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.trust-card__num--text { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.trust-card__label { display: block; margin-top: 6px; font-size: .9rem; color: var(--text-soft); }

/* ---------- 9. ABOUT ---------- */
.about__inner {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.about__image-frame { position: relative; }
.about__art {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about__badge {
  position: absolute;
  bottom: -24px; right: -24px;
  background: var(--gradient-brand);
  color: #fff;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  text-align: center;
  min-width: 140px;
}
.about__badge strong { display: block; font-size: 1.6rem; }
.about__badge span { font-size: .8rem; opacity: .9; }

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 30px;
}
.feature-list__item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-weight: 500;
  font-size: .92rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.feature-list__item:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.feature-list__icon { font-size: 1.2rem; }

/* ---------- 10. DOCTOR ---------- */
.doctor { background: var(--light-gray); }
.doctor-card {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 50px;
  align-items: center;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 50px;
}
.doctor-card__frame { animation: floatSlow 7s ease-in-out infinite; }
.doctor-card__art { width: 100%; border-radius: var(--radius-md); }
.doctor-card__name { font-size: clamp(1.6rem, 2.6vw, 2rem); }
.doctor-card__role { color: var(--secondary); font-weight: 600; margin-top: 6px; margin-bottom: 22px; }

.doctor-card__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 22px;
  padding: 20px;
  background: var(--light-gray);
  border-radius: var(--radius-md);
}
.doctor-card__meta-label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-soft); margin-bottom: 4px; }
.doctor-card__meta-value { font-weight: 600; font-size: .95rem; }

.doctor-card__desc { color: var(--text-soft); margin-bottom: 28px; }
.doctor-card__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 11. SERVICES ---------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity .35s;
  z-index: 0;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { opacity: .06; }
.service-card__icon {
  font-size: 1.8rem;
  width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px;
  background: var(--light-gray);
  margin-bottom: 18px;
  position: relative; z-index: 1;
  transition: transform .35s var(--ease);
}
.service-card:hover .service-card__icon { transform: scale(1.1) rotate(-4deg); }
.service-card h3 { font-size: 1.1rem; margin-bottom: 10px; position: relative; z-index: 1; }
.service-card p { color: var(--text-soft); font-size: .9rem; margin-bottom: 16px; position: relative; z-index: 1; }
.service-card__link {
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary);
  position: relative; z-index: 1;
  transition: gap .25s, color .25s;
}
.service-card__link:hover { color: var(--secondary); }

/* ---------- 12. WHY CHOOSE US ---------- */
.why { background: var(--light-gray); overflow: hidden; }
.why__inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
}
.checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}
.checklist__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: .95rem;
}
.checklist__tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: #fff;
  font-size: .7rem;
  flex-shrink: 0;
}
.why__visual { position: relative; display: flex; justify-content: center; }
.why__glow {
  position: absolute;
  width: 320px; height: 320px;
  background: var(--gradient-brand);
  border-radius: 50%;
  filter: blur(70px);
  opacity: .2;
}
.why__ring {
  position: relative;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  border: 10px solid var(--white);
  outline: 3px dashed var(--border);
  animation: floatSlow 8s ease-in-out infinite;
}
.why__ring-num {
  font-size: 3rem;
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.why__ring-label { color: var(--text-soft); font-size: .9rem; margin-top: 4px; }

/* ---------- 13. TESTIMONIALS ---------- */
.testimonials { background: var(--light-gray); position: relative; }
.testimonial-slider { position: relative; overflow: hidden; }
.testimonial-track {
  display: flex;
  gap: 24px;
  transition: transform .5s var(--ease);
}
.testimonial-card {
  flex: 0 0 calc(33.333% - 16px);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.testimonial-card__stars { color: var(--accent); margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-card p { font-size: .98rem; margin-bottom: 22px; min-height: 50px; }
.testimonial-card__author { display: flex; align-items: center; gap: 12px; }
.testimonial-card__avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
}
.testimonial-card__author strong { display: block; font-size: .92rem; }
.testimonial-card__author small { color: var(--text-soft); font-size: .8rem; }

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}
.testimonial-dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--border);
  transition: background .3s, transform .3s;
}
.testimonial-dots button.active { background: var(--primary); transform: scale(1.3); }

/* ---------- 14. GALLERY + LIGHTBOX ---------- */
.gallery__filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: #fff;
  font-size: .88rem;
  font-weight: 500;
  transition: background .3s, color .3s, border-color .3s;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--gradient-brand);
  color: #fff;
  border-color: transparent;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, opacity .3s;
}
.gallery-item svg { width: 100%; height: 100%; transition: transform .5s var(--ease); }
.gallery-item:hover svg { transform: scale(1.12); }
.gallery-item__label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px;
  background: linear-gradient(transparent, rgba(15,76,129,.78));
  color: #fff;
  font-size: .85rem;
  font-weight: 500;
  text-align: left;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s, transform .3s;
}
.gallery-item:hover .gallery-item__label { opacity: 1; transform: translateY(0); }
.gallery-item.is-hidden { display: none; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 25, 35, .82);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__content {
  max-width: 460px;
  width: 90%;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 20px;
  transform: scale(.9);
  transition: transform .3s var(--ease);
}
.lightbox.is-open .lightbox__content { transform: scale(1); }
.lightbox__close {
  position: absolute;
  top: 26px; right: 30px;
  color: #fff;
  font-size: 1.4rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  transition: background .25s;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .25); }

/* ---------- 15. PROCESS TIMELINE ---------- */
.process__timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  position: relative;
  padding-top: 10px;
}
.process__line {
  position: absolute;
  top: 30px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.process__line-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--gradient-accent);
  transition: width 1.2s var(--ease);
}
.process-step { text-align: center; position: relative; z-index: 1; }
.process-step__dot {
  width: 58px; height: 58px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  color: var(--primary);
  transition: background .3s, color .3s, border-color .3s, transform .3s;
}
.process-step.is-active .process-step__dot,
.process-step:hover .process-step__dot {
  background: var(--gradient-brand);
  color: #fff;
  border-color: transparent;
  transform: scale(1.08);
}
.process-step h3 { font-size: 1rem; margin-bottom: 8px; }
.process-step p { color: var(--text-soft); font-size: .85rem; }

/* ---------- 16. FAQ ACCORDION ---------- */
.accordion { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.accordion-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.accordion-item__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 26px;
  font-weight: 600;
  font-size: .98rem;
  text-align: left;
}
.accordion-item__icon {
  flex-shrink: 0;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--light-gray);
  color: var(--primary);
  font-size: 1.1rem;
  transition: transform .3s var(--ease), background .3s, color .3s;
}
.accordion-item.is-open .accordion-item__icon {
  transform: rotate(45deg);
  background: var(--gradient-brand);
  color: #fff;
}
.accordion-item__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease);
}
.accordion-item__body p {
  padding: 0 26px 22px;
  color: var(--text-soft);
  font-size: .92rem;
}

/* ---------- 17. CTA BANNER ---------- */
.cta-banner {
  position: relative;
  padding: 90px 0;
  overflow: hidden;
  text-align: center;
}
.cta-banner__bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-brand);
  z-index: -1;
}
.cta-banner__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255,255,255,.14), transparent 45%),
              radial-gradient(circle at 85% 70%, rgba(255,255,255,.12), transparent 50%);
  animation: float 10s ease-in-out infinite;
}
.cta-banner__inner h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  margin-bottom: 30px;
}
.cta-banner__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- 18. CONTACT + FORM ---------- */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.contact-detail {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
}
.contact-detail__icon {
  font-size: 1.3rem;
  width: 46px; height: 46px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: var(--light-gray);
}
.contact-detail strong { display: block; margin-bottom: 4px; }
.contact-detail p { color: var(--text-soft); font-size: .92rem; }
.contact-detail a { color: var(--primary); font-weight: 600; }

.map-placeholder {
  margin-top: 30px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 16/9;
}
.map-placeholder iframe { width: 100%; height: 100%; border: 0; }

.contact-form {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
}
.contact-form h3 { font-size: 1.3rem; margin-bottom: 24px; }
.form-field { margin-bottom: 20px; position: relative; }
.form-field label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-soft);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.6px solid var(--border);
  background: var(--bg);
  color: var(--text);
  transition: border-color .25s, box-shadow .25s;
  resize: vertical;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(0, 151, 167, .1);
  outline: none;
}
.form-error {
  display: none;
  color: #d64545;
  font-size: .78rem;
  margin-top: 6px;
}
.form-field.is-invalid input,
.form-field.is-invalid select { border-color: #d64545; }
.form-field.is-invalid .form-error { display: block; }

.form-submit { width: 100%; margin-top: 6px; }
.form-success {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(32, 201, 151, .12);
  color: #0c7a55;
  font-size: .88rem;
  text-align: center;
}
.form-success.is-visible { display: block; animation: fadeUp .4s var(--ease); }

/* ---------- 19. FOOTER ---------- */
.footer { background: #0c2a45; color: rgba(255, 255, 255, .82); padding-top: 70px; }
.footer .navbar__logo { color: #fff; margin-bottom: 14px; }
.footer .navbar__logo-text strong { color: var(--accent); }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer__col--brand p { font-size: .88rem; opacity: .8; max-width: 280px; margin: 10px 0 18px; }
.footer__socials { display: flex; gap: 10px; }
.footer__socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  font-weight: 600;
  transition: background .25s, transform .25s;
}
.footer__socials a:hover { background: var(--accent); transform: translateY(-3px); }

.footer__col h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer__col a, .footer__col p {
  display: block;
  font-size: .9rem;
  opacity: .78;
  margin-bottom: 12px;
  transition: opacity .25s, transform .25s;
}
.footer__col a:hover { opacity: 1; transform: translateX(3px); color: var(--accent); }

.footer__bottom {
  text-align: center;
  padding: 22px 0;
  font-size: .82rem;
  opacity: .65;
}

/* ---------- 20. FLOATING BUTTONS ---------- */
.floating-btn {
  position: fixed;
  right: 26px;
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 900;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.floating-btn--whatsapp {
  bottom: 96px;
  background: #25D366;
  color: #fff;
  animation: pulse 2.6s ease-in-out infinite;
}
.floating-btn--whatsapp:hover { transform: scale(1.08); }

.floating-btn--top {
  bottom: 30px;
  background: var(--gradient-brand);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}
.floating-btn--top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.floating-btn--top:hover { transform: translateY(-4px); }

/* ---------- 21. REVEAL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal[data-reveal="up"] { transform: translateY(36px); }
.reveal[data-reveal="left"] { transform: translateX(-44px); }
.reveal[data-reveal="right"] { transform: translateX(44px); }
.reveal[data-reveal="scale"] { transform: scale(.92); }

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 22. RESPONSIVE ---------- */
@media (max-width: 1080px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .doctor-card { padding: 36px; }
  .process__timeline { grid-template-columns: repeat(5, 1fr); gap: 14px; }
  .process-step p { display: none; }
}

@media (max-width: 960px) {
  .navbar__nav { display: none; }
  .navbar__toggle { display: flex; }
  .navbar__actions .navbar__call { display: none; }

  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__cta, .hero__badges { justify-content: center; }
  .hero__subtitle { margin-left: auto; margin-right: auto; }
  .hero__visual { margin-top: 30px; }

  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .trust-card:nth-child(2) { border-right: none; }

  .about__inner, .why__inner, .contact__inner { grid-template-columns: 1fr; }
  .about__visual, .why__visual { order: 2; }
  .about__content, .why__content { order: 1; }

  .doctor-card { grid-template-columns: 1fr; text-align: center; }
  .doctor-card__meta { grid-template-columns: 1fr; }
  .doctor-card__cta { justify-content: center; }

  .services__grid { grid-template-columns: 1fr 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }

  .process__timeline { grid-template-columns: repeat(5, 1fr); }
  .process__line { display: none; }

  .testimonial-card { flex: 0 0 100%; }

  /* Mobile nav drawer */
  .navbar__nav.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px 24px 28px;
    box-shadow: var(--shadow-md);
    gap: 18px;
  }
}

@media (max-width: 640px) {
  main section { padding: 70px 0; }
  .container { padding: 0 18px; }

  .trust__grid { grid-template-columns: 1fr 1fr; padding: 28px 18px; }
  .trust-card { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 18px; }
  .trust-card:nth-child(odd) { border-right: 1px solid var(--border); }
  .trust-card:nth-last-child(-n+2) { border-bottom: none; }

  .feature-list, .checklist { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: 1fr 1fr; }

  .process__timeline { grid-template-columns: 1fr 1fr; gap: 26px; }

  .doctor-card { padding: 28px 22px; }

  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }

  .floating-btn { width: 48px; height: 48px; right: 18px; }
  .floating-btn--whatsapp { bottom: 86px; }
  .floating-btn--top { bottom: 26px; }
}

@media (max-width: 420px) {
  .footer__inner { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: 1fr; }
}
