/* ============================================================
   DENTAL CLINIC TEMPLATE — style.css
   Palette: #D6F3F4 · #74B3CE · #004346 · #508991 · #172A3A · #FFFFFF
   Fonts: Fraunces (display) · DM Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,300;1,9..144,400&family=DM+Sans:wght@300;400;500;600&display=swap');

/* === TOKENS === */
:root {
  --bg-light:   #D6F3F4;
  --accent:     #74B3CE;
  --primary:    #004346;
  --mid:        #508991;
  --dark:       #172A3A;
  --white:      #FFFFFF;
  --wa-green:   #25D366;

  --shadow-sm:  0 2px 8px rgba(23,42,58,0.07);
  --shadow-md:  0 8px 32px rgba(23,42,58,0.11);
  --shadow-lg:  0 24px 64px rgba(23,42,58,0.16);

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  28px;
  --radius-xl:  48px;

  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --t:          0.3s var(--ease);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  line-height: 1.15;
  color: var(--dark);
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { font-size: 1rem; line-height: 1.75; color: var(--mid); }

.eyebrow {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 56px 0; }
.section--tint { background: var(--bg-light); }
.section--dark { background: var(--primary); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-header h2 { margin-bottom: 14px; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  transition: var(--t);
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(0,67,70,0.3);
}
.btn-primary:hover {
  background: #005a5e;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,67,70,0.38);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}
.btn-white:hover {
  background: var(--bg-light);
  transform: translateY(-2px);
}
.btn-wa {
  background: var(--wa-green);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
}
.btn-wa:hover {
  background: #1ebe5c;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.45);
}
.btn svg { flex-shrink: 0; }

/* === NAVIGATION === */
.nav {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(116,179,206,0.18);
  transition: box-shadow var(--t);
}
.nav.scrolled { box-shadow: var(--shadow-md); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
}
.nav__logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
  transition: color var(--t);
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width var(--t);
}
.nav__links a:hover, .nav__links a.active { color: var(--primary); }
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }
.nav__cta { display: flex; align-items: center; gap: 12px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--t);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 850;
  padding: 32px 24px;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1.25rem;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  color: var(--dark);
  padding: 14px 0;
  border-bottom: 1px solid rgba(116,179,206,0.2);
  transition: color var(--t);
}
.mobile-menu a:hover { color: var(--primary); }
.mobile-menu .btn { margin-top: 20px; justify-content: center; }

/* === PAGE HERO (inner pages) === */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #006b70 60%, var(--mid) 100%);
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: 10%;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(116,179,206,0.12);
}
.page-hero__content { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 12px; }
.page-hero p  { color: rgba(255,255,255,0.72); font-size: 1.05rem; max-width: 500px; }
.page-hero .eyebrow { color: var(--bg-light); opacity: 0.85; }

/* === HERO (homepage) === */
.hero {
  min-height: 90vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(160deg, var(--bg-light) 0%, rgba(214,243,244,0.4) 100%);
  border-radius: 0 120px 0 120px;
  z-index: 0;
}
.hero__content { position: relative; z-index: 1; }
.hero__content h1 { margin-bottom: 20px; }
.hero__content h1 em {
  font-style: italic;
  color: var(--primary);
}
.hero__content > p { font-size: 1.1rem; margin-bottom: 36px; max-width: 480px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__trust {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--mid);
}
.hero__trust-item svg { color: var(--accent); flex-shrink: 0; }

.hero__visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero__img-wrap {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-xl) var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, var(--bg-light) 0%, var(--accent) 100%);
  position: relative;
  box-shadow: var(--shadow-lg);
}
.hero__img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__badge {
  position: absolute;
  bottom: 28px; left: -24px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.hero__badge-icon {
  width: 44px; height: 44px;
  background: var(--bg-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.hero__badge strong { font-size: 1.1rem; color: var(--dark); font-family: 'Fraunces', serif; }
.hero__badge span   { font-size: 0.78rem; color: var(--mid); display: block; }

/* === STATS BAR === */
.stats-bar {
  background: var(--primary);
  padding: 32px 0;
}
.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat-item {
  text-align: center;
  padding: 8px 0;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.stat-item:last-child { border-right: none; }
.stat-item__number {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-item__label {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* === SERVICE CARDS === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid rgba(116,179,206,0.2);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: var(--t);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card__icon {
  width: 56px; height: 56px;
  background: var(--bg-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.service-card h3 { margin-bottom: 10px; }
.service-card p  { font-size: 0.92rem; margin-bottom: 20px; }
.service-card .link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: gap var(--t);
}
.service-card:hover .link { gap: 10px; }

/* === WHY US === */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  align-items: center;
}
.why-grid__text h2 { margin-bottom: 16px; }
.why-grid__text p  { margin-bottom: 32px; }
.why-list { display: flex; flex-direction: column; gap: 18px; }
.why-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.why-item__icon {
  width: 48px; height: 48px;
  background: var(--bg-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.why-item__body h4 { margin-bottom: 4px; }
.why-item__body p  { font-size: 0.88rem; margin: 0; }
.why-grid__visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--accent) 100%);
  box-shadow: var(--shadow-lg);
}
.why-grid__visual img { width: 100%; height: 100%; object-fit: cover; }

/* === TESTIMONIALS === */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid rgba(116,179,206,0.18);
  transition: var(--t);
  position: relative;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.testimonial-card__quote {
  font-family: 'Fraunces', serif;
  font-size: 2.5rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.testimonial-card p {
  font-size: 0.93rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--dark);
}
.testimonial-card__stars { color: #f59e0b; font-size: 0.9rem; margin-bottom: 14px; }
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}
.author-info strong { font-size: 0.9rem; display: block; color: var(--dark); }
.author-info span   { font-size: 0.78rem; color: var(--mid); }

/* === RATING SUMMARY === */
.rating-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  box-shadow: var(--shadow-md);
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.rating-big {
  text-align: center;
}
.rating-big__num {
  font-family: 'Fraunces', serif;
  font-size: 4rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.rating-big__stars { color: #f59e0b; font-size: 1.3rem; margin: 6px 0; }
.rating-big__label { font-size: 0.82rem; color: var(--mid); }
.rating-divider { width: 1px; height: 80px; background: rgba(116,179,206,0.25); }
.rating-sources { display: flex; flex-direction: column; gap: 12px; }
.rating-source {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}
.rating-source__badge {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
}
.badge-google  { background: #ea4335; }
.badge-fb      { background: #1877f2; }
.badge-clinic  { background: var(--primary); }
.rating-source span { color: var(--mid); }
.rating-source strong { color: var(--dark); margin-left: auto; padding-left: 12px; }

/* === CTA BANNER === */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #006b70 60%, var(--mid) 100%);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.cta-banner__text h2 { color: var(--white); margin-bottom: 10px; font-size: clamp(1.4rem, 2.5vw, 2rem); }
.cta-banner__text p  { color: rgba(255,255,255,0.7); max-width: 440px; margin: 0; }
.cta-banner__actions { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }

/* === DOCTOR PROFILE === */
.doctor-profile {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: start;
}
.doctor-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, var(--bg-light), var(--accent));
  box-shadow: var(--shadow-lg);
  position: relative;
}
.doctor-img img { width: 100%; height: 100%; object-fit: cover; }
.doctor-img__badge {
  position: absolute;
  bottom: 20px; left: 20px; right: 20px;
  background: rgba(23,42,58,0.88);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--white);
}
.doctor-img__badge strong { display: block; font-family: 'Fraunces', serif; margin-bottom: 2px; }
.doctor-img__badge span   { font-size: 0.78rem; color: rgba(255,255,255,0.65); }
.doctor-info h2 { margin-bottom: 8px; }
.doctor-info > p { margin-bottom: 28px; font-size: 1rem; }
.credentials { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.credential-tag {
  background: var(--bg-light);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}
.doctor-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.doctor-stat {
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}
.doctor-stat__num {
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
}
.doctor-stat__label { font-size: 0.78rem; color: var(--mid); }

/* === VALUES === */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  text-align: center;
  border: 1px solid rgba(116,179,206,0.18);
  transition: var(--t);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-card__icon {
  width: 64px; height: 64px;
  background: var(--bg-light);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin: 0 auto 20px;
}
.value-card h3 { margin-bottom: 10px; }
.value-card p  { font-size: 0.9rem; margin: 0; }

/* === CONTACT === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info h3 { margin-bottom: 24px; }
.contact-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.contact-detail__icon {
  width: 44px; height: 44px;
  background: var(--bg-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-detail__body strong { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--mid); display: block; margin-bottom: 4px; }
.contact-detail__body a, .contact-detail__body p { color: var(--dark); font-size: 0.95rem; margin: 0; }
.contact-detail__body a:hover { color: var(--primary); }

.hours-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.hours-table td { padding: 6px 0; font-size: 0.88rem; color: var(--dark); vertical-align: top; }
.hours-table td:first-child { color: var(--mid); width: 130px; }

.map-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px dashed rgba(116,179,206,0.4);
  color: var(--mid);
  font-size: 0.88rem;
  margin-bottom: 24px;
  text-align: center;
  padding: 24px;
}
.map-placeholder span { font-size: 2.5rem; }

/* === CONTACT FORM === */
.contact-form-section { background: var(--bg-light); }
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
  max-width: 700px;
  margin: 0 auto;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid rgba(116,179,206,0.35);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--t), box-shadow var(--t);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,67,70,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit { display: flex; justify-content: center; margin-top: 8px; }

/* === WA CTA CARD === */
.wa-cta-card {
  background: linear-gradient(135deg, var(--wa-green) 0%, #1da851 100%);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.wa-cta-card__text h3 { color: var(--white); margin-bottom: 6px; font-size: 1.4rem; }
.wa-cta-card__text p  { color: rgba(255,255,255,0.82); font-size: 0.92rem; margin: 0; }

/* === FLOATING WHATSAPP === */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
}
.wa-float__btn {
  width: 60px; height: 60px;
  background: var(--wa-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  transition: var(--t);
  position: relative;
}
.wa-float__btn:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 32px rgba(37,211,102,0.55);
}
.wa-float__btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--wa-green);
  animation: wa-pulse 2.2s ease-out infinite;
  z-index: -1;
}
@keyframes wa-pulse {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.8); opacity: 0; }
}
.wa-float__tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--dark);
  color: var(--white);
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t);
}
.wa-float__tooltip::after {
  content: '';
  position: absolute;
  right: -5px; top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border: 5px solid transparent;
  border-right: none;
  border-left-color: var(--dark);
}
.wa-float:hover .wa-float__tooltip { opacity: 1; }

/* === FOOTER === */
.footer {
  background: var(--dark);
  padding: 64px 0 28px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}
.footer__brand .nav__logo { color: var(--white); margin-bottom: 16px; }
.footer__brand .nav__logo-icon { background: var(--primary); }
.footer__brand p { font-size: 0.88rem; color: rgba(255,255,255,0.5); margin-bottom: 20px; max-width: 260px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: var(--t);
}
.footer__social a:hover { background: var(--primary); color: var(--white); }
.footer__col h5 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--t);
}
.footer__col ul li a:hover { color: var(--white); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.35); margin: 0; }
.footer__bottom a { color: var(--accent); }

/* === CERTIFICATIONS STRIP === */
.cert-strip {
  background: var(--bg-light);
  padding: 32px 0;
  border-top: 1px solid rgba(116,179,206,0.2);
  border-bottom: 1px solid rgba(116,179,206,0.2);
}
.cert-strip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.cert-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}
.cert-badge__icon {
  width: 40px; height: 40px;
  background: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-sm);
}

/* === SERVICES QUICK-NAV === */
.services-nav {
  background: var(--white);
  border-bottom: 1px solid rgba(116,179,206,0.18);
  position: sticky;
  top: 68px;
  z-index: 800;
}
.services-nav__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
.services-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--mid);
  text-align: center;
  border-right: 1px solid rgba(116,179,206,0.15);
  transition: background var(--t), color var(--t);
  text-decoration: none;
}
.services-nav__item:last-child { border-right: none; }
.services-nav__item:hover, .services-nav__item.active {
  background: var(--bg-light);
  color: var(--primary);
}
.services-nav__icon { font-size: 1.4rem; line-height: 1; }

/* === SERVICE DETAIL SECTIONS === */
.service-section {
  padding: 80px 0;
  border-bottom: 1px solid rgba(116,179,206,0.14);
}
.service-section--tint { background: var(--bg-light); }
.service-section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.service-section--flip .service-section__visual { order: 2; }
.service-section--flip .service-section__body   { order: 1; }
.service-section__visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--accent) 100%);
  box-shadow: var(--shadow-lg);
}
.service-section__visual img { width: 100%; height: 100%; object-fit: cover; }
.service-section__body h2   { margin-bottom: 16px; }
.service-section__body > p  { font-size: 1rem; margin-bottom: 28px; }
.service-benefit-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.service-benefit-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--dark);
  font-weight: 500;
}
.service-benefit-list li::before {
  content: '';
  width: 22px; height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--primary) url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center;
}

/* === SCROLL REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* === UTILITIES === */
.text-center { text-align: center; }
.text-white  { color: var(--white) !important; }
.mb-0        { margin-bottom: 0 !important; }
.mt-32       { margin-top: 32px; }
.gap-badge   {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-light);
  color: var(--primary);
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid       { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid   { grid-template-columns: repeat(2, 1fr); }
  .footer__grid        { grid-template-columns: repeat(2, 1fr); }
  .doctor-profile      { grid-template-columns: 280px 1fr; gap: 40px; }
  .stats-bar__grid     { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }

  /* Nav */
  .nav__links, .nav__cta { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 48px 0;
    text-align: center;
  }
  .hero::before { width: 100%; border-radius: 0 0 60px 60px; }
  .hero__content > p { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__trust   { justify-content: center; }
  .hero__visual  { order: -1; }
  .hero__img-wrap { max-width: 320px; }
  .hero__badge   { left: 0; }

  /* Grids */
  .services-grid     { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .why-grid          { grid-template-columns: 1fr; }
  .why-grid__visual  { display: none; }
  .values-grid       { grid-template-columns: 1fr; }
  .doctor-profile    { grid-template-columns: 1fr; }
  .doctor-img        { max-width: 300px; }
  .contact-grid      { grid-template-columns: 1fr; }
  .footer__grid      { grid-template-columns: 1fr; }
  .stats-bar__grid   { grid-template-columns: repeat(2, 1fr); }
  .doctor-stats      { grid-template-columns: repeat(3, 1fr); }
  .form-row          { grid-template-columns: 1fr; }
  .rating-sources    { display: none; }
  .rating-divider    { display: none; }

  /* Services quick-nav: collapse to 3×2 */
  .services-nav__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .services-nav__item {
    border-right: 1px solid rgba(116,179,206,0.15);
    border-bottom: 1px solid rgba(116,179,206,0.15);
  }
  .services-nav__item:nth-child(3n) { border-right: none; }
  .services-nav__item:nth-child(n+4) { border-bottom: none; }

  /* Service detail sections: stack, image always on top */
  .service-section__grid { grid-template-columns: 1fr; gap: 32px; }
  .service-section__visual { order: 1 !important; }
  .service-section__body   { order: 2 !important; }

  /* Cards */
  .cta-banner        { flex-direction: column; text-align: center; padding: 36px 24px; }
  .cta-banner__actions { justify-content: center; }
  .wa-cta-card       { flex-direction: column; text-align: center; padding: 28px 24px; }
  .contact-form-wrap { padding: 32px 20px; }
}

@media (max-width: 480px) {
  .stats-bar__grid { grid-template-columns: 1fr 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 14px; }
  .stat-item:last-child { border-bottom: none; }
}
