/* ==========================================================================
   ODONTO LUMEN - DESIGN SYSTEM & STYLESHEET
   Aesthetic Dentistry Clinic | Juazeiro do Norte - CE
   Mobile-First Otimizado & Responsividade de Alta Performance
   ========================================================================== */

/* 1. CSS VARIABLES & DESIGN TOKENS */
:root {
  /* Color Palette */
  --bg-primary: #FAF8F5;       /* Off-white */
  --bg-secondary: #F3EFEA;     /* Soft warm tint */
  --bg-dark: #142924;          /* Deepest emerald */
  --color-primary: #1F3D36;    /* Deep green */
  --color-primary-light: #2A4E46;
  --color-accent: #C9A46A;     /* Soft champagne gold */
  --color-accent-hover: #B59055;
  --color-accent-light: #F7F1E5;
  --color-text: #22201E;       /* Graphite */
  --color-text-muted: #5C5854;
  --color-white: #FFFFFF;
  --color-border: #E5DFC0;
  --color-border-light: #EDE8D8;

  /* Typography */
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Shadows & Glassmorphism */
  --shadow-sm: 0 4px 12px rgba(31, 61, 54, 0.05);
  --shadow-md: 0 10px 30px rgba(31, 61, 54, 0.08);
  --shadow-lg: 0 20px 40px rgba(20, 41, 36, 0.12);
  --shadow-gold: 0 8px 24px rgba(201, 164, 106, 0.25);
  --glass-bg: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(201, 164, 106, 0.2);

  /* Layout Spacing */
  --container-max: 1240px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. BASE & RESET */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  background-color: var(--bg-primary);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Accessible focus styles */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 12px 24px;
  z-index: 9999;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 20px;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography Helpers */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.18;
  color: var(--color-primary);
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--color-accent-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.section-tag svg {
  width: 14px;
  height: 14px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem auto;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: clamp(0.98rem, 2.5vw, 1.125rem);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  min-height: 50px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
  text-align: center;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent) 0%, #B89254 100%);
  color: var(--color-white);

}

.btn-primary:hover {
  transform: translateY(-2px);

  background: linear-gradient(135deg, #D4AF74 0%, var(--color-accent) 100%);
}

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

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

.btn-white {
  background: var(--color-white);
  color: var(--color-primary);

}

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

.btn-whatsapp-green {
  background: #25D366;
  color: #FFFFFF;

}

.btn-whatsapp-green:hover {
  background: #20BD5A;
  transform: translateY(-2px);

}

/* 3. TOP BAR & NAVIGATION */
.top-bar {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-info {
  display: flex;
  gap: 20px;
  align-items: center;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar-item svg {
  width: 14px;
  height: 14px;
  color: var(--color-accent);
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  transition: all var(--transition-fast);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #142924 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  box-shadow: 0 4px 12px rgba(31, 61, 54, 0.15);
  flex-shrink: 0;
}

.logo-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  line-height: 1;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  color: var(--color-primary);
  min-width: 48px;
  min-height: 48px;
  border-radius: 8px;
}

.mobile-nav-toggle:active {
  background: rgba(31, 61, 54, 0.08);
}

/* 4. HERO SECTION */
.hero-section {
  position: relative;
  padding: 4rem 0 5rem 0;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

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

.hero-badge-trust {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-primary);
  max-width: 100%;
}

.hero-badge-trust .stars {
  color: #F59E0B;
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

.hero-title {
  hyphens: none;
  font-size: clamp(1.95rem, 4.8vw, 3.6rem);
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.14;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--color-text-muted);
  margin-bottom: 2.25rem;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 2.5rem;
}

.hero-features-list {
  display: flex;
  gap: 24px;
  list-style: none;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-primary);
}

.hero-feature-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.hero-media {
  position: relative;
}

.hero-card-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--color-white);
}

.hero-card-frame img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

.hero-overlay-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(20, 41, 36, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 164, 106, 0.4);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  color: var(--color-white);
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-overlay-icon {
  width: 44px;
  height: 44px;
  background: var(--color-accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.hero-overlay-text h4 {
  color: var(--color-accent);
  font-size: 1.05rem;
  margin-bottom: 2px;
  font-family: var(--font-body);
}

.hero-overlay-text p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}

/* 5. BENEFITS SECTION (4 CARDS) */
.benefits-section {
  padding: 5.5rem 0;
  background: var(--bg-primary);
}

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

.benefit-card {
  background: var(--color-white);
  padding: 2.25rem 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.benefit-icon {
  width: 56px;
  height: 56px;
  background: var(--color-accent-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.benefit-card:hover .benefit-icon {
  background: var(--color-primary);
  color: var(--color-accent);
}

.benefit-title {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

.benefit-description {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 6. HOW IT WORKS (4 STEPS) */
.steps-section {
  padding: 5.5rem 0;
  background: var(--bg-secondary);
  position: relative;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.step-card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.step-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.step-number-tag {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  background: var(--color-accent-light);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.step-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

.step-text {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

/* 7. INTERACTIVE 3D DSD SIMULATOR DEMO WIDGET */
.dsd-interactive-section {
  padding: 5.5rem 0;
  background: var(--bg-dark);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.dsd-interactive-section .section-header h2 {
  color: var(--color-white);
}

.dsd-interactive-section .section-header p {
  color: rgba(255, 255, 255, 0.75);
}

.dsd-simulator-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 164, 106, 0.3);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  backdrop-filter: blur(10px);
}

.dsd-simulator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.dsd-preview-canvas {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--color-accent);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.dsd-preview-canvas img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

/* Interactive SVG grid overlays on image */
.dsd-overlay-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.dsd-controls {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.dsd-control-card {
  padding: 0;
}

.dsd-control-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.dsd-control-title {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dsd-control-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.2);
  transition: .3s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--color-accent);
}

input:checked + .slider:before {
  transform: translateX(22px);
}

/* 8. SOCIAL PROOF & CLINIC SHOWCASE */
.social-proof-section {
  padding: 5.5rem 0;
  background: var(--bg-primary);
}

.rating-box {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  max-width: 500px;
  margin: 0 auto 3.5rem auto;
  box-shadow: var(--shadow-sm);
}

.rating-score {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.rating-stars {
  color: #F59E0B;
  font-size: 1.4rem;
  margin: 8px 0;
}

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

.testimonial-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-quote {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--color-border-light);
  padding-top: 1rem;
}

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

.author-info h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
}

.author-info p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Clinic Structure Gallery */
.cfo-notice-badge {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  background: var(--color-accent-light);
  display: inline-block;
  padding: 8px 18px;
  max-width: 100%;
  line-height: 1.4;
}

.gallery-wrapper {
  text-align: center;
}

/* ============================================================
   COVERFLOW CAROUSEL — Clinic Gallery
   ============================================================ */

.cf-carousel {
  position: relative;
  width: 100%;
  --cf-card-w: clamp(220px, 36vw, 380px);
  --cf-rotate: 44deg;
  --cf-depth: 0.6;
  --cf-perspective: 3;
  --cf-gap-frac: 0.07;
  --cf-fade: 0.12;
  --cf-falloff: 0.56;
}

/* The scrolling viewport. overflow:hidden clips receding cards
   so they don't bleed into surrounding sections. */
.cf-frame {
  width: 100%;
  overflow: hidden;
  padding-block: 2.5rem;
  perspective: calc(var(--cf-card-w) * var(--cf-perspective));
  cursor: grab;
  outline: none;
  touch-action: pan-y;         /* let the page keep vertical scroll */
  user-select: none;
  -webkit-user-select: none;
  border-radius: var(--radius-lg);
}

.cf-frame:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
}

.cf-frame:active {
  cursor: grabbing;
}

/* The track is centred and lets cards be positioned from its midpoint. */
.cf-track {
  position: relative;
  height: var(--cf-card-w);   /* square cards; change to aspect-ratio if needed */
  transform-style: preserve-3d;
}

/* Individual slide card */
.cf-card {
  position: absolute;
  left: 50%;
  top: 0;
  width: var(--cf-card-w);
  height: var(--cf-card-w);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  will-change: transform, opacity;
  /* Start invisible — JS sets transforms immediately on init */
  opacity: 0;
  border: 3px solid var(--color-white);
}

.cf-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transition: filter 0.3s ease;
}

/* Caption overlay at bottom of each card */
.cf-card-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 1rem 0.85rem 1rem;
  background: linear-gradient(0deg, rgba(20, 41, 36, 0.92) 0%, transparent 100%);
  color: var(--color-white);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.01em;
  pointer-events: none;
}

/* Navigation arrow buttons */
.cf-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  background: rgba(250, 248, 245, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.cf-nav:hover {
  background: var(--color-primary);
  color: var(--color-accent);
  border-color: var(--color-primary);
  transform: translateY(-50%) scale(1.08);
  box-shadow: var(--shadow-md);
}

.cf-nav:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.cf-nav-prev { left: 0.5rem; }
.cf-nav-next { right: 0.5rem; }

/* Pagination dots */
.cf-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 1rem;
}

.cf-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.25;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}

.cf-dot[aria-current="true"] {
  opacity: 1;
  background: var(--color-accent);
  transform: scale(1.35);
}

.cf-dot:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

/* Mobile: hide nav arrows on very small screens — swipe covers it */
@media (max-width: 480px) {
  .cf-nav { display: none; }
  .cf-carousel { --cf-card-w: clamp(180px, 72vw, 260px); }
}

/* Dra Helena Profile Spotlight */
.doctor-spotlight {
  margin-top: 4.5rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  border: 1px solid var(--color-border);
}

.doctor-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

.doctor-img-box {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.doctor-img-box img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.doctor-content h3 {
  font-size: 2.3rem;
  margin-bottom: 0.5rem;
}

.doctor-cro {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.doctor-bio {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

/* 9. BOOKING FORM SECTION */
.booking-section {
  padding: 5.5rem 0;
  background: var(--bg-primary);
}

.booking-container {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  overflow: hidden;
}

.booking-info {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.booking-info h3 {
  color: var(--color-white);
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.booking-info p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.booking-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.booking-perk-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}

.booking-perk-item svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.booking-form-box {
  padding: 3.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.form-input, .form-select {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.98rem;
  min-height: 48px;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus {
  background: var(--color-white);
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(201, 164, 106, 0.2);
  outline: none;
}

.form-disclaimer {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 1rem;
  text-align: center;
}

/* 10. FAQ ACCORDION (6 QUESTIONS) */
.faq-section {
  padding: 5.5rem 0;
  background: var(--bg-secondary);
}

.faq-accordion {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item.active {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.faq-button {
  width: 100%;
  padding: 20px 24px;
  min-height: 56px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-icon {
  width: 32px;
  height: 32px;
  background: var(--color-accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background: var(--color-accent);
  color: var(--color-white);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.35s ease-out;
  padding: 0 24px;
}

.faq-item.active .faq-content {
  padding: 0 24px 24px 24px;
}

.faq-content p {
  color: var(--color-text-muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

/* 11. FINAL CTA SECTION */
.final-cta-section {
  padding: 5.5rem 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--bg-dark) 100%);
  color: var(--color-white);
  text-align: center;
  position: relative;
}

.final-cta-box {
  max-width: 720px;
  margin: 0 auto;
}

.final-cta-box h2 {
  color: var(--color-white);
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  margin-bottom: 1rem;
}

.final-cta-box p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.25rem;
}

/* 12. FOOTER */
.footer {
  background: #0E1D19;
  color: rgba(255, 255, 255, 0.75);
  padding: 4.5rem 0 2rem 0;
  font-size: 0.92rem;
  border-top: 1px solid rgba(201, 164, 106, 0.2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand .logo {
  color: var(--color-white);
  margin-bottom: 1.25rem;
}

.footer-brand p {
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  display: inline-block;
  padding: 2px 0;
}

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

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-cro-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 164, 106, 0.3);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--color-accent);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
}

/* 13. FLOATING WHATSAPP BUTTON & MOBILE STICKY BAR */
.floating-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  background: #25D366;
  color: #FFFFFF;
  border-radius: 50%;

  transition: all var(--transition-normal);

}

.floating-whatsapp:hover {
  transform: scale(1.1);

}

.floating-whatsapp svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

@keyframes pulse-whatsapp {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 990;
  background: var(--color-white);
  padding: 10px 14px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
  border-top: 1px solid var(--color-border);
}

/* 14. MODAL DIALOG */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(14, 29, 25, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform var(--transition-fast);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg-primary);
  border: 1px solid var(--color-border);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.4rem;
  transition: background var(--transition-fast);
}

.modal-close:hover {
  background: var(--color-border);
}

/* 15. RESPONSIVE BREAKPOINTS & MOBILE OPTIMIZATIONS */

/* Tablet (1024px down) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .benefits-grid, .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .doctor-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .booking-container {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .dsd-simulator-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Mobile Devices (768px down) */
@media (max-width: 768px) {
  body {
    padding-bottom: 72px; /* Prevent sticky bar overlap */
  }

  .container {
    padding: 0 1.25rem;
  }

  /* Compact Section Paddings for mobile flow */
  .hero-section {
    padding: 2.5rem 0 3.5rem 0;
  }
  .benefits-section, .steps-section, .dsd-interactive-section, 
  .social-proof-section, .booking-section, .faq-section, .final-cta-section {
    padding: 3rem 0;
  }
  .footer {
    padding: 3.5rem 0 1.5rem 0;
  }

  .section-header {
    margin-bottom: 2.25rem;
  }

  /* Navigation Drawer */
  .top-bar {
    display: none;
  }

  .header-inner {
    height: 72px;
  }

  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 1.25rem;
    gap: 0;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-bottom: 2px solid var(--color-accent);
    border-radius: 0 0 20px 20px;
    transform: translateY(-160%);
    transition: transform var(--transition-normal);
    z-index: 1001;
  }

  .nav-menu.active {
    transform: translateY(0);
  }

  .nav-link {
    width: 100%;
    padding: 14px 16px;
    font-size: 1.05rem;
    font-weight: 600;
    border-bottom: 1px solid var(--color-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav-link::after {
    display: none;
  }

  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header-actions .btn {
    display: none;
  }

  /* Hero Mobile Optimizations */
  .hero-title {
  hyphens: none;
    font-size: clamp(1.85rem, 6.2vw, 2.5rem);
    line-height: 1.15;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.75rem;
  }

  .hero-badge-trust {
    font-size: 0.8rem;
    padding: 6px 14px;
    margin-bottom: 1.25rem;
  }

  .hero-ctas {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 2rem;
  }

  .hero-ctas .btn {
    width: 100%;
    padding: 16px 20px;
  }

  .hero-features-list {
    flex-direction: column;
    gap: 12px;
    padding-top: 1.25rem;
  }

  .hero-card-frame img {
    height: 300px;
  }

  /* Overlay Badge on Mobile */
  .hero-overlay-badge {
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    margin-top: -30px;
    padding: 14px 16px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

  /* Grid Layouts Stacked */
  .benefits-grid, .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .benefit-card {
    padding: 1.75rem 1.5rem;
  }

  .step-card {
    padding: 1.5rem;
  }

  .step-number {
    font-size: 2.5rem;
  }

  /* Interactive DSD Simulator Mobile */
  .dsd-simulator-box {
    padding: 1.25rem;
  }

  .dsd-preview-canvas img {
    height: 250px;
  }

/* Testimonials & Doctor Section */
  .rating-box {
    padding: 1.5rem 1.25rem;
    margin-bottom: 2.5rem;
  }

  .rating-score {
    font-size: 3rem;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

  .gallery-item {
    height: 220px;
  }

  .doctor-spotlight {
    padding: 1.75rem 1.25rem;
    margin-top: 3rem;
    border-radius: var(--radius-md);
  }

  .doctor-img-box img {
    height: 320px;
  }

  .doctor-content h3 {
    font-size: 1.8rem;
  }

  /* Booking Container Mobile */
  .booking-info {
    padding: 2.25rem 1.5rem;
  }

  .booking-info h3 {
    font-size: 1.8rem;
  }

  .booking-form-box {
    padding: 2.25rem 1.5rem;
  }

  /* FAQ Accordion Mobile */
  .faq-button {
    padding: 16px 18px;
    font-size: 0.98rem;
  }

  .faq-content {
    padding: 0 18px;
  }

  .faq-item.active .faq-content {
    padding: 0 18px 18px 18px;
  }

  /* Final CTA Mobile */
  .final-cta-box h2 {
    font-size: 1.9rem;
  }

  .final-cta-box p {
    font-size: 1.05rem;
    margin-bottom: 1.75rem;
  }

  .final-cta-box .btn {
    width: 100%;
  }

  /* Footer Mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  /* Sticky Conversion Controls Mobile */
  .floating-whatsapp {
    bottom: 78px; /* Safe space above mobile sticky bar */
    right: 14px;
    width: 56px;
    height: 56px;
  }

  .mobile-sticky-bar {
    display: block;
  }

  .modal-card {
    padding: 1.75rem 1.25rem;
  }
}

/* Extra Small Screens (375px down) */
@media (max-width: 375px) {
  .hero-title {
  hyphens: none;
    font-size: 1.7rem;
  }
  .hero-card-frame img {
    height: 240px;
  }
  .dsd-preview-canvas img {
    height: 210px;
  }
}
