/* ==========================================================================
   V5 Service Page — Dark Luxury Dental Spa
   Hero, benefits, procedure steps, cost card, doctor card, CTA band
   ========================================================================== */

/* --- Service Hero (asymmetric split) --- */
.service-hero {
  background: var(--bg);
  padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 4vw, 4rem);
  position: relative;
  overflow: hidden;
}
.service-hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.service-hero-content { position: relative; z-index: 2 }
.service-hero-content .eyebrow { margin-bottom: 16px; display: block }
.service-hero-content h1 {
  color: var(--t1);
  font-family: 'Fraunces', 'Fraunces-fallback', serif;
  font-size: clamp(2.5rem, 1.8rem + 3.5vw, 4rem);
  font-weight: 200;
  line-height: 1.08;
  letter-spacing: -.03em;
  margin: 0 0 24px;
}
.service-hero-content p { color: var(--t2); max-width: 50ch }
.service-hero-ctas {
  display: flex; gap: 16px;
  margin-top: 32px; flex-wrap: wrap;
}
.service-hero-ctas .btn-secondary {
  color: var(--t1);
  border-color: var(--t3);
}
.service-hero-image {
  position: relative; z-index: 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--t4);
}
.service-hero-image img {
  width: 100%; height: auto;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}
@media (max-width: 767px) {
  .service-hero-inner { grid-template-columns: 1fr }
  .service-hero-image { margin-top: 32px }
}

/* --- Benefit Grid (2x2) --- */
.benefit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 1400px;
  margin: 0 auto;
}
.benefit-item {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--bg2);
  border: 1px solid var(--t4);
  border-radius: var(--radius);
  transition: all .3s var(--e);
}
.benefit-item:hover {
  background: var(--bg3);
  border-color: rgba(0,147,211,.1);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,.15);
}
.benefit-item svg,
.benefit-item img {
  width: 48px; height: 48px;
  margin-bottom: 16px;
  color: var(--sky);
}
.benefit-item h3 {
  font-family: 'Poppins', 'Poppins-fallback', sans-serif;
  font-size: clamp(1.125rem, 1rem + .4vw, 1.25rem);
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--t1);
}
.benefit-item p {
  color: var(--t2);
  font-size: clamp(.875rem, .85rem + .15vw, .9375rem);
}
@media (max-width: 767px) { .benefit-grid { grid-template-columns: 1fr } }

/* --- Procedure Steps (numbered) --- */
.procedure-steps {
  max-width: 1400px;
  margin: 0 auto;
}
.procedure-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: clamp(2rem, 4vw, 4rem) 0;
  border-bottom: 1px solid var(--t4);
  align-items: start;
}
.step-number {
  font-family: 'Fraunces', 'Fraunces-fallback', serif;
  font-size: clamp(3rem, 2rem + 5vw, 5rem);
  font-weight: 200;
  color: rgba(0,147,211,.15);
  line-height: 1;
}
.step-content h3 { margin: 0 0 12px; color: var(--t1) }
.step-content p { color: var(--t2) }
.procedure-step:last-child { border-bottom: none }
@media (max-width: 767px) {
  .procedure-step { grid-template-columns: 60px 1fr; gap: 16px }
}

/* --- Cost/Pricing Card --- */
.cost-card {
  background: var(--bg2);
  border: 1px solid var(--t4);
  border-radius: var(--radius);
  padding: clamp(2rem, 4vw, 3rem);
  max-width: 760px;
}
.cost-card h3 { margin-top: 0; color: var(--t1) }
.cost-card p { color: var(--t2) }
.cost-card .price-range {
  font-family: 'Fraunces', 'Fraunces-fallback', serif;
  font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  color: var(--skyL);
  font-weight: 500;
}

/* --- Service Area Section --- */
.service-area {
  background: var(--bg2);
  padding: clamp(3rem, 6vw, 6rem) clamp(1rem, 4vw, 4rem);
}
.service-area-inner {
  max-width: 760px;
  margin: 0 auto;
}
.service-area h2, .service-area h3 { color: var(--t1) }
.service-area p { color: var(--t2) }

/* --- Doctor Card (service pages) --- */
.doctor-card {
  max-width: 400px;
  overflow: hidden;
}
.doctor-portrait-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bg2);
}
.doctor-portrait-wrapper video,
.doctor-portrait-wrapper img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.doctor-portrait-fallback { display: block }
.doctor-bio-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(6,13,20,.9));
  color: var(--t1);
  transform: translateY(100%);
  transition: transform .4s var(--e);
}
.doctor-card:hover .doctor-bio-overlay {
  transform: translateY(0);
}
.doctor-info { padding: 16px 0 }
.doctor-info h3 {
  font-family: 'Poppins', 'Poppins-fallback', sans-serif;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--t1);
}
.doctor-info .eyebrow { margin-top: 4px }

/* --- CTA Band --- */
.cta-band {
  background: var(--bg);
  padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 4vw, 4rem);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, var(--skyG) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 50%, var(--goldG) 0%, transparent 40%);
}
.cta-band h2 {
  font-family: 'Fraunces', 'Fraunces-fallback', serif;
  font-style: italic;
  font-weight: 200;
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3rem);
  color: #fff;
  margin: 0 0 32px;
  position: relative;
}
.cta-band-buttons {
  display: flex; gap: 16px;
  justify-content: center; flex-wrap: wrap;
  position: relative;
}
.cta-band .btn-primary {
  background: var(--sky); color: #fff;
}
.cta-band .btn-primary:hover {
  box-shadow: 0 10px 40px rgba(0,147,211,.25);
}
.cta-band .btn-secondary {
  color: #fff;
  border-color: rgba(255,255,255,.4);
}

/* --- Before/After (service page variant) --- */
.before-after {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: ew-resize;
  touch-action: none;
  border: 1px solid var(--t4);
}
.before-after img {
  display: block; width: 100%;
  height: auto; user-select: none;
  -webkit-user-drag: none;
}
.before-after .after {
  position: absolute; inset: 0;
  clip-path: inset(0 50% 0 0);
}
.before-after .handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%; width: 2px;
  background: var(--sky);
  transform: translateX(-50%);
  z-index: 2;
}
.before-after .handle::after {
  content: '';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 2px 12px rgba(0,147,211,.4);
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .doctor-portrait-wrapper video { display: none }
  .doctor-portrait-fallback { display: block !important }
}

/* ==========================================================================
   PERFECT SCORE POLISH — FAQ, Visual Breaks, CTA Texture
   ========================================================================== */

/* --- FAQ Accordion (details/summary) --- */
.faq-list {
  max-width: 760px;
}
.faq-list details {
  border-bottom: 1px solid var(--t4);
  overflow: hidden;
}
.faq-list details:first-of-type {
  border-top: 1px solid var(--t4);
}
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(18px, 3vw, 24px) 0;
  cursor: pointer;
  list-style: none;
  font-family: 'Poppins', 'Poppins-fallback', sans-serif;
  font-weight: 500;
  font-size: clamp(.9rem, .85rem + .2vw, 1rem);
  color: var(--t1);
  transition: color .25s;
}
.faq-list summary::-webkit-details-marker { display: none }
.faq-list summary::marker { display: none; content: '' }
.faq-list summary:hover { color: var(--skyL) }
.faq-list summary .faq-question { flex: 1 }

/* Chevron rotation */
.faq-chevron {
  flex-shrink: 0;
  width: 20px; height: 20px;
  stroke: var(--t3);
  transition: transform .35s var(--e), stroke .25s;
}
details[open] .faq-chevron {
  transform: rotate(180deg);
  stroke: var(--sky);
}

/* Answer panel */
.faq-list details div[itemprop="acceptedAnswer"] {
  padding: 0 0 clamp(18px, 3vw, 24px) 0;
}
.faq-list details div[itemprop="acceptedAnswer"] p {
  color: var(--t2);
  font-size: .86rem;
  line-height: 1.85;
  max-width: 65ch;
}

/* Smooth open animation */
.faq-list details[open] summary {
  color: var(--t1);
}

/* --- Visual Break Image (full-width between sections) --- */
.visual-break {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  max-height: 360px;
}
.visual-break img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center 40%;
}
.visual-break::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, transparent 20%, transparent 80%, var(--bg) 100%),
    linear-gradient(90deg, rgba(6,13,20,.3) 0%, transparent 30%, transparent 70%, rgba(6,13,20,.3) 100%);
  pointer-events: none;
}

/* --- Cost comparison grid --- */
.cost-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2vw, 1.5rem);
}
.cost-compare .cost-card {
  max-width: none;
}
.cost-compare .cost-card.recommended {
  border-color: var(--sky);
  position: relative;
}
.cost-compare .cost-card.recommended::before {
  content: 'Recommended';
  position: absolute;
  top: -1px; right: 24px;
  background: var(--sky);
  color: #fff;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 0 0 8px 8px;
}
@media (max-width: 767px) { .cost-compare { grid-template-columns: 1fr } }

/* CTA band texture depth */
.cta-band::after {
  content: '';
  position: absolute; inset: 0;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.015' numOctaves='3' seed='42'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E");
  background-size: cover;
  pointer-events: none;
  mix-blend-mode: soft-light;
}
