/* ═══════════════════════════════════════════════════════════════════
   THE SMILE EDIT — Service Page Components
   Builds on style.css (which provides base tokens, fonts, colors).
   Add this stylesheet to every individual service/treatment page.
   IMPORTANT: add class="service-page" to the <body> tag of every
   service page so the navigation styling stays dark on light hero.
════════════════════════════════════════════════════════════════════ */

/* ─── FOOTER TREATMENTS HOVER (matches Quick Links) ────────── */
/* Now that footer treatments are clickable links, they need the
   same hover-to-white behavior as the Quick Links above them. */
.footer__treatments a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.45);
  transition: color var(--transition);
}

.footer__treatments a:hover {
  color: var(--white);
}

/* ─── NAV OVERRIDE FOR SERVICE PAGES ───────────────────────── */
/* Service pages have a light-cream hero, so the nav must always
   render in its "scrolled" state — dark text, cream background.
   This overrides the homepage's transparent-nav-on-dark-hero look. */
body.service-page .nav {
  background: rgba(250, 247, 242, 0.96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 24px rgba(45, 45, 45, .08);
}

body.service-page .nav__link {
  color: var(--charcoal);
  text-shadow: none;
}

body.service-page .nav__link:hover {
  color: var(--gold-dark);
}

body.service-page .btn--nav {
  color: var(--charcoal);
  border: 1px solid var(--gold);
  background: transparent;
}

body.service-page .btn--nav:hover {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

body.service-page .nav__hamburger span {
  background: var(--charcoal);
  box-shadow: none;
}

body.service-page .nav__logo-img {
  mix-blend-mode: normal;
}

/* ─── BREADCRUMBS ──────────────────────────────────────────── */
.breadcrumb {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 1.25rem 0 0.5rem;
  letter-spacing: 0.02em;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--gold-dark);
}

.breadcrumb__sep {
  margin: 0 0.5rem;
  color: var(--gold);
  opacity: 0.6;
}

.breadcrumb__current {
  color: var(--charcoal);
  font-weight: 500;
}

/* ─── SERVICE HERO (smaller than homepage hero) ───────────── */
.service-hero {
  background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
  padding: 3rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.service-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.service-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.service-hero__eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--gold-dark);
  margin-bottom: 1rem;
}

.service-hero__title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.15;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
}

.service-hero__title em {
  font-style: italic;
  color: var(--gold-dark);
}

.service-hero__sub {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--charcoal-soft);
  margin-bottom: 2rem;
  max-width: 720px;
}

.service-hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.service-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.service-hero__trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ─── CONTENT BLOCKS (replaces narrow sections) ─────────── */
.service-content {
  padding: 4rem 0;
}

.service-content--alt {
  background: var(--cream-dark);
}

.service-content__inner {
  max-width: 820px;
}

.service-content__inner--wide {
  max-width: 1100px;
}

.service-content h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.service-content h2 em {
  font-style: italic;
  color: var(--gold-dark);
}

.service-content h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--charcoal);
  margin: 2rem 0 0.75rem;
}

.service-content p {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--charcoal-soft);
  margin-bottom: 1.25rem;
}

.service-content ul:not(.faq-list):not(.process-list):not(.brand-list):not(.signs-list) {
  margin-bottom: 1.25rem;
  padding-left: 1.25rem;
}

.service-content ul:not(.faq-list):not(.process-list):not(.brand-list):not(.signs-list) li {
  list-style: none;
  position: relative;
  padding-left: 0.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.7;
  color: var(--charcoal-soft);
}

.service-content ul:not(.faq-list):not(.process-list):not(.brand-list):not(.signs-list) li::before {
  content: '◈';
  position: absolute;
  left: -1rem;
  color: var(--gold);
  font-size: 0.7rem;
  top: 0.4rem;
}

/* ─── "WHO NEEDS THIS" SIGNS GRID ─────────────────────────── */
.signs-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
  list-style: none;
  padding: 0;
}

.signs-list li {
  background: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--gold);
  font-size: 0.96rem;
  color: var(--charcoal);
  line-height: 1.5;
}

/* ─── PROCESS STEPS ────────────────────────────────────────── */
.process-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  counter-reset: step-counter;
}

.process-list li {
  position: relative;
  padding: 1.25rem 1.5rem 1.25rem 4.5rem;
  margin-bottom: 1rem;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  counter-increment: step-counter;
}

.process-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold);
}

.process-list h4 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.35rem;
}

.process-list p {
  font-size: 0.95rem;
  margin-bottom: 0;
  color: var(--charcoal-soft);
  line-height: 1.6;
}

/* ─── BRANDS GRID (implant brands etc.) ──────────────────── */
.brand-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
  list-style: none;
  padding: 0;
}

.brand-list li {
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--gold);
  text-align: left;
}

.brand-list h4 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.brand-list .brand-origin {
  font-family: var(--sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-dark);
  margin-bottom: 0.75rem;
  display: block;
}

.brand-list p {
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--charcoal-soft);
  margin-bottom: 0;
}

/* ─── PRICING CARD ───────────────────────────────────────── */
.pricing-card {
  background: linear-gradient(135deg, var(--cream) 0%, var(--white) 100%);
  border: 1px solid rgba(201, 169, 110, 0.25);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow-md);
  margin: 2rem 0;
}

.pricing-card__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(201, 169, 110, 0.15);
  flex-wrap: wrap;
  gap: 1rem;
}

.pricing-card__row:last-child {
  border-bottom: none;
}

.pricing-card__service {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--charcoal);
  flex: 1;
  min-width: 200px;
}

.pricing-card__price {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold-dark);
  white-space: nowrap;
}

.pricing-card__note {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 1rem;
  line-height: 1.5;
}

/* ─── FAQ LIST ─────────────────────────────────────────────── */
.faq-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.faq-list details {
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.faq-list details[open] {
  box-shadow: var(--shadow-md);
}

.faq-list summary {
  cursor: pointer;
  padding: 1.15rem 1.5rem;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--charcoal);
  list-style: none;
  position: relative;
  padding-right: 3rem;
  line-height: 1.4;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--gold-dark);
  transition: transform var(--transition);
  font-weight: 300;
}

.faq-list details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-list .faq-answer {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--charcoal-soft);
}

/* ─── FINAL CTA SECTION ───────────────────────────────────── */
.service-cta {
  background: linear-gradient(135deg, var(--charcoal) 0%, #1a1a1a 100%);
  color: var(--white);
  padding: 4.5rem 0;
  text-align: center;
}

.service-cta h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 500;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.service-cta h2 em {
  font-style: italic;
  color: var(--gold-light);
}

.service-cta p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  max-width: 620px;
  margin: 0 auto 2rem;
}

.service-cta__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.service-cta__phones {
  margin-top: 2rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
}

.service-cta__phones a {
  color: var(--gold-light);
  margin: 0 0.5rem;
}

/* ─── RELATED SERVICES (cross-link cards) ────────────────── */
.related-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
  list-style: none;
  padding: 0;
}

.related-services li a {
  display: block;
  background: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--charcoal);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  transition: all var(--transition);
  border-left: 3px solid transparent;
}

.related-services li a:hover {
  border-left-color: var(--gold);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  color: var(--gold-dark);
}

/* ─── EXPANDABLE SECTIONS (full-section collapsibles) ─────── */
/* Use a <details class="expandable"> wrapping a section's heading
   + body. Lets the page look concise; readers click to dig deeper. */
.expandable {
  background: var(--white);
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: var(--radius-lg);
  margin: 1.25rem 0;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.expandable[open] {
  box-shadow: var(--shadow-md);
}

.expandable > summary {
  cursor: pointer;
  list-style: none;
  padding: 1.5rem 4rem 1.5rem 2rem;
  position: relative;
  display: block;
}

.expandable > summary::-webkit-details-marker {
  display: none;
}

.expandable > summary h2 {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 500;
  color: var(--charcoal);
  margin: 0 0 0.25rem;
  line-height: 1.3;
}

.expandable > summary h2 em {
  font-style: italic;
  color: var(--gold-dark);
}

.expandable > summary .expandable__hint {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.expandable > summary::after {
  content: '+';
  position: absolute;
  right: 1.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(201, 169, 110, 0.12);
  color: var(--gold-dark);
  font-size: 1.4rem;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.expandable > summary:hover::after {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-50%) scale(1.05);
}

.expandable[open] > summary::after {
  transform: translateY(-50%) rotate(45deg);
  background: var(--gold);
  color: var(--white);
}

.expandable__body {
  padding: 0 2rem 1.75rem;
  border-top: 1px solid rgba(201, 169, 110, 0.15);
  margin-top: 0;
  padding-top: 1.5rem;
}

.expandable__body > *:first-child {
  margin-top: 0;
}

.expandable__body > *:last-child {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .expandable > summary {
    padding: 1.15rem 3.5rem 1.15rem 1.25rem;
  }
  .expandable > summary::after {
    right: 1rem;
    width: 1.85rem;
    height: 1.85rem;
    font-size: 1.2rem;
  }
  .expandable__body {
    padding: 1.25rem 1.25rem 1.5rem;
  }
}

/* ─── COMPARISON TABLE ─────────────────────────────────────── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-family: var(--sans);
  font-size: 0.95rem;
}

.compare-table thead {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white);
}

.compare-table th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.compare-table td {
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid rgba(201, 169, 110, 0.15);
  color: var(--charcoal-soft);
  line-height: 1.55;
  vertical-align: top;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table tr:nth-child(even) td {
  background: rgba(250, 247, 242, 0.5);
}

.compare-table td strong,
.compare-table td b {
  color: var(--charcoal);
  font-weight: 600;
}

.compare-table .check {
  color: #2D8A4E;
  font-weight: 600;
}

.compare-table .cross {
  color: #B85C5C;
  font-weight: 600;
}

/* Responsive: convert table to cards on mobile */
@media (max-width: 640px) {
  .compare-table thead {
    display: none;
  }
  .compare-table,
  .compare-table tbody,
  .compare-table tr,
  .compare-table td {
    display: block;
    width: 100%;
  }
  .compare-table tr {
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    background: var(--white);
    overflow: hidden;
  }
  .compare-table td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid rgba(201, 169, 110, 0.1);
  }
  .compare-table td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--serif);
    font-weight: 600;
    color: var(--gold-dark);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
  }
}

/* ─── CALLOUT BOXES (tips, warnings, info) ─────────────────── */
.callout {
  background: var(--white);
  border-left: 3px solid var(--gold);
  padding: 1.15rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-sm);
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--charcoal-soft);
}

.callout--tip {
  border-left-color: var(--gold);
  background: linear-gradient(90deg, rgba(201, 169, 110, 0.06) 0%, var(--white) 50%);
}

.callout--warning {
  border-left-color: #C8842A;
  background: linear-gradient(90deg, rgba(200, 132, 42, 0.06) 0%, var(--white) 50%);
}

.callout--note {
  border-left-color: var(--charcoal-soft);
  background: linear-gradient(90deg, rgba(74, 74, 74, 0.04) 0%, var(--white) 50%);
}

.callout p {
  margin-bottom: 0.5rem;
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout strong {
  color: var(--charcoal);
}

/* ─── SVG ILLUSTRATION CONTAINER ───────────────────────────── */
.svg-illustration {
  margin: 2.5rem auto;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.svg-illustration svg {
  max-width: 100%;
  height: auto;
  display: block;
}

.svg-illustration__caption {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  max-width: 500px;
  line-height: 1.5;
}

/* ─── HORIZONTAL ILLUSTRATION ROW (multiple SVGs side by side) */
.svg-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 2.5rem 0;
}

.svg-row .svg-illustration {
  margin: 0;
}

/* ─── MYTHS LIST (special styling) ─────────────────────────── */
.myths-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.myths-list li {
  background: var(--white);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--charcoal-soft);
}

.myths-list li::before {
  content: '✕';
  color: #B85C5C;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.myths-list li .truth {
  color: var(--charcoal);
}

/* ─── EYEBROW WITH LOCATION TAG ─────────────────────────── */
.service-hero__eyebrow span {
  color: var(--text-muted);
  margin-left: 0.5rem;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.service-hero__eyebrow span::before {
  content: '·';
  margin-right: 0.5rem;
  color: var(--gold);
}

/* ─── HERO WITH ILLUSTRATION SIDE-BY-SIDE ──────────────── */
.service-hero--with-image .service-hero__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1100px;
}

.service-hero--with-image .service-hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.service-hero--with-image .service-hero__visual svg {
  max-width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .service-hero--with-image .service-hero__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .service-hero--with-image .service-hero__visual {
    order: -1;
    max-width: 280px;
    margin: 0 auto;
  }
}

/* ─── WHY-CHOOSE GRID (6 reason cards) ─────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
  list-style: none;
  padding: 0;
}

.why-grid li {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--gold);
  font-family: var(--sans);
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--charcoal-soft);
}

.why-grid li strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.4rem;
}

/* ─── MOBILE TWEAKS ────────────────────────────────────────── */
@media (max-width: 640px) {
  .service-hero {
    padding: 2rem 0 3rem;
  }

  .service-hero__title {
    font-size: 2rem;
  }

  .service-content {
    padding: 3rem 0;
  }

  .service-content h2 {
    font-size: 1.5rem;
  }

  .pricing-card {
    padding: 1.5rem 1.25rem;
  }

  .process-list li {
    padding-left: 4rem;
  }

  .process-list li::before {
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1.05rem;
    left: 1rem;
  }
}
