/* =====================================================================
   Dental Destination — treatment (service) pages
   Loaded by each page in /treatments/ through $page_css = ['services.css'].
   ===================================================================== */

/* --- Overall Page Structure --- */
.service-page-wrapper {
  background-color: #ffffff;
  /* "clip" (not "hidden") so it does not become the scroll container and break the sticky sidebar */
  overflow-x: clip;
}

/* ===================== HERO (deep emerald + arch photo) ===================== */
.service-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 90% at 82% 45%, rgba(27, 90, 71, 0.9), transparent 70%),
    radial-gradient(ellipse 40% 60% at 0% 100%, rgba(214, 174, 69, 0.07), transparent 70%),
    var(--emerald-deep);
  color: var(--ivory);
  padding: 4.5rem 0 5.5rem;
}

/* fine gold rule along the bottom edge */
.service-hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
  opacity: 0.85;
}

.service-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 4.5rem;
  align-items: center;
}

.service-hero-copy {
  max-width: 660px;
}

.service-hero h1 {
  font-size: 3.1rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ivory);
  margin-bottom: 1.4rem;
  text-wrap: balance;
}

.service-hero .lead {
  font-size: 1.08rem;
  line-height: 1.85;
  color: rgba(248, 247, 242, 0.78);
  margin-bottom: 2.25rem;
  font-weight: 400;
  max-width: 560px;
}

/* arch-shaped photo with an offset gold outline */
.service-hero-media {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin-left: auto;
}

.service-hero-media::before {
  content: '';
  position: absolute;
  inset: 0;
  transform: translate(-18px, 18px);
  border: 1px solid rgba(214, 174, 69, 0.65);
  border-radius: 999px 999px 14px 14px;
}

.hero-arch {
  position: relative;
  aspect-ratio: 5 / 6;
  border-radius: 999px 999px 14px 14px;
  overflow: hidden;
  background: var(--emerald-soft);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.hero-arch::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 42, 33, 0.4));
  pointer-events: none;
}

.service-hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Breadcrumb */
.dd-breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0 0 1.75rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(248, 247, 242, 0.55);
}

.dd-breadcrumb li+li::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 0.5rem;
}

.dd-breadcrumb a {
  color: var(--gold-light);
  text-decoration: none;
}

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

.dd-breadcrumb [aria-current] {
  color: var(--ivory);
}

/* ===================== MAIN CONTENT ===================== */
.service-page-wrapper .container {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.service-content-wrapper {
  font-size: 1.02rem;
  line-height: 1.9;
  color: #3a4640;
}

.service-content-wrapper p {
  margin-bottom: 1.2rem;
}

.service-content-wrapper h2 {
  font-family: var(--font-display);
  font-weight: 600;
  margin-top: 4rem;
  margin-bottom: 1.5rem;
  color: var(--emerald);
  font-size: 2.01rem;
  line-height: 1.08;
  scroll-margin-top: 130px;
}

/* short gold rule above every section heading */
.service-content-wrapper h2::before {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 1.1rem;
}

.service-content-wrapper>section:first-of-type h2 {
  margin-top: 3rem;
}

/* Medically reviewed bar */
.reviewed-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.4rem;
  background: var(--mint);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.3rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-dark);
  margin-bottom: 2.5rem;
}

.reviewed-bar i {
  color: var(--emerald-soft);
  font-size: 1.15rem;
  margin-right: 0.5rem;
  vertical-align: -2px;
}

.reviewed-bar strong {
  color: var(--emerald);
  font-weight: 700;
}

.reviewed-bar .published {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

/* Intro paragraph: editorial lead in the serif face */
.highlight-card {
  position: relative;
  padding: 2.25rem 0;
  margin: 0 0 1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.highlight-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 72px;
  height: 3px;
  background: var(--gold);
}

.highlight-card p {
  font-family: var(--font-display);
  font-size: 1.23rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--emerald);
  margin-bottom: 0;
}

.highlight-card p+p {
  margin-top: 1rem;
}

/* "Cost" and "When to ..." sections */
.info-card {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  margin-bottom: 1.2rem;
}

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

.info-card.cost-card {
  background: var(--mint);
  border-top-color: var(--emerald);
}

/* Section image (placeholder photos live in assets/images/treatments/) */
.content-image {
  border-radius: 999px 999px 12px 12px;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--mint);
  display: block;
}

/* first section: text on the left, photo on the right */
.section-split {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 2.75rem;
  align-items: center;
}

.section-split-text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 767.98px) {
  .section-split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section-split-media {
    max-width: 300px;
  }
}

/* ===================== COMPARISON TABLE ===================== */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  margin: 0.4rem 0 1.4rem;
  background: #fff;
}

.dd-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.94rem;
  line-height: 1.6;
}

.dd-table th,
.dd-table td {
  padding: 1.05rem 1.3rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.dd-table thead th {
  background: var(--emerald);
  color: var(--gold-light);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 0;
  padding-top: 1.15rem;
  padding-bottom: 1.15rem;
}

.dd-table tbody th {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--emerald);
  background: var(--ivory);
  width: 26%;
}

.dd-table tbody tr {
  transition: background var(--transition);
}

.dd-table tbody tr:hover td {
  background: var(--mint);
}

.dd-table tbody tr:last-child th,
.dd-table tbody tr:last-child td {
  border-bottom: 0;
}

/* ===================== FAQ ACCORDION (open list with +/- marks) ===================== */
.faq-title-spacer {
  margin-top: 3rem;
}

.premium-accordion {
  border-top: 1px solid var(--line);
}

.premium-accordion .accordion-item {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  border-radius: 0 !important;
}

.premium-accordion h3 {
  margin: 0;
}

.premium-accordion .accordion-button {
  font-family: var(--font-display);
  font-size: 1.23rem;
  font-weight: 600;
  line-height: 1.3;
  padding: 1.5rem 0;
  gap: 1.25rem;
  box-shadow: none !important;
  background-color: transparent;
  color: var(--emerald);
  border-radius: 0 !important;
}

.premium-accordion .accordion-button:not(.collapsed) {
  background-color: transparent;
  color: var(--emerald);
}

.premium-accordion .accordion-button:hover {
  color: var(--gold-dark);
}

.premium-accordion .accordion-button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* plus / minus marks in a hairline circle */
.premium-accordion .accordion-button::after {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  margin-left: auto;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34' fill='none' stroke='%238A6A12' stroke-width='1.6' stroke-linecap='round'%3e%3cpath d='M11 17h12M17 11v12'/%3e%3c/svg%3e");
  background-size: 34px;
  background-position: center;
  background-repeat: no-repeat;
  transform: none;
  transition: background-color var(--transition), border-color var(--transition);
}

.premium-accordion .accordion-button:not(.collapsed)::after {
  background-color: var(--emerald);
  border-color: var(--emerald);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34' fill='none' stroke='%23EBD08E' stroke-width='1.6' stroke-linecap='round'%3e%3cpath d='M11 17h12'/%3e%3c/svg%3e");
  transform: none;
}

.premium-accordion .accordion-body {
  padding: 0 3.5rem 1.75rem 0;
  font-size: 1rem;
  color: #46524c;
  line-height: 1.85;
  background: transparent;
}

/* ===================== SIDEBAR ===================== */
.sticky-sidebar {
  position: sticky;
  top: 110px;
}

.sidebar-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 2rem 1.9rem;
  margin-bottom: 1.5rem;
}

.sidebar-card h4 {
  font-size: 1.56rem;
  line-height: 1.1;
  text-align: center;
  margin-bottom: 0.6rem;
}

.sidebar-card .sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1.5rem;
}

.sidebar-card .form-control {
  margin-bottom: 0.9rem;
}

.sidebar-card hr {
  border-color: var(--line);
  opacity: 1;
  margin: 1.5rem 0 1.1rem;
}

.sidebar-phone {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.sidebar-phone a {
  font-weight: 700;
  color: var(--emerald);
  text-decoration: none;
}

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

/* the booking form is the one dark card on the page */
.sidebar-card.book-card {
  background: var(--emerald);
  border: 0;
  border-top: 3px solid var(--gold);
  box-shadow: 0 28px 60px rgba(15, 61, 48, 0.28);
}

.book-card h4 {
  color: var(--ivory);
}

.book-card .sub {
  color: rgba(248, 247, 242, 0.7);
}

.book-card .form-control {
  background-color: rgba(255, 255, 255, 0.07);
  border-color: rgba(248, 247, 242, 0.22);
  color: var(--ivory);
}

.book-card .form-control::placeholder {
  color: rgba(248, 247, 242, 0.55);
}

.book-card .form-control:focus {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(214, 174, 69, 0.2);
  color: var(--ivory);
}

.book-card hr {
  border-color: rgba(248, 247, 242, 0.16);
}

.book-card .sidebar-phone {
  color: rgba(248, 247, 242, 0.7);
}

.book-card .sidebar-phone a {
  color: var(--gold);
}

.book-card .sidebar-phone a:hover {
  color: var(--gold-light);
}

/* status message sits on a light chip so it reads on the dark card */
#sidebarFormStatus:not(:empty) {
  background: var(--ivory);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
}

.treated-by {
  text-align: center;
  background: var(--ivory);
}

.treated-by .label {
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.treated-by h5 {
  font-size: 1.31rem;
  line-height: 1.15;
  margin-bottom: 0.4rem;
}

.treated-by p {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

/* ===================== CLOSING CTA BAND ===================== */
.service-cta {
  background:
    radial-gradient(ellipse 50% 110% at 50% 0%, rgba(214, 174, 69, 0.09), transparent 70%),
    var(--emerald);
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
}

.service-cta .container {
  position: relative;
  text-align: center;
}

.service-cta .cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}

.service-cta .cta-eyebrow::before,
.service-cta .cta-eyebrow::after {
  content: '';
  width: 40px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.service-cta p {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 500;
  color: rgba(248, 247, 242, 0.94);
  font-size: 1.52rem;
  line-height: 1.5;
  max-width: 860px;
  margin: 0 auto 2.5rem;
  text-wrap: balance;
}

/* ===================== OUR TREATMENTS (related cards) ===================== */
.related-treatments {
  background: var(--ivory);
  padding: 6rem 0;
}

.related-treatments .section-head {
  text-align: center;
  margin-bottom: 3.25rem;
}

.related-treatments .section-head p {
  color: var(--text-muted);
  margin: 0.9rem 0 0;
}

.treatment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2.25rem 1.75rem;
}

.treatment-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-dark);
  height: 100%;
}

.treatment-card:hover {
  color: var(--text-dark);
}

.treatment-card .thumb {
  overflow: hidden;
  border-radius: 999px 999px 10px 10px;
  aspect-ratio: 4 / 5;
  background: var(--mint);
  margin-bottom: 1.1rem;
}

.treatment-card img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(.2, .7, .2, 1);
}

.treatment-card:hover img {
  transform: scale(1.06);
}

.treatment-card .body {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: center;
  align-items: center;
}

.treatment-card h3 {
  font-size: 1.27rem;
  line-height: 1.15;
  margin-bottom: 0.5rem;
  transition: color var(--transition);
}

.treatment-card:hover h3 {
  color: var(--gold-dark);
}

.treatment-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.treatment-card .more {
  margin-top: auto;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--emerald);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--gold);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1199.98px) {
  .service-hero h1 {
    font-size: 2.8rem;
  }

  .service-hero-grid {
    gap: 3rem;
  }
}

@media (max-width: 991.98px) {
  .service-hero h1 {
    font-size: 2.5rem;
  }

  .sticky-sidebar {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .service-hero {
    padding: 2.75rem 0 3.75rem;
  }

  .service-hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .service-hero-media {
    max-width: 300px;
    margin: 0 auto;
  }

  .service-hero-media::before {
    transform: translate(-12px, 12px);
  }

  .service-hero h1 {
    font-size: 2.1rem;
  }

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

  .service-page-wrapper .container {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .service-content-wrapper {
    font-size: 1rem;
  }

  .service-content-wrapper h2 {
    font-size: 1.68rem;
    margin-top: 3rem;
  }

  .reviewed-bar .published {
    margin-left: 0;
  }

  .highlight-card {
    padding: 1.75rem 0;
  }

  .highlight-card p {
    font-size: 1.28rem;
  }

  .info-card {
    padding: 1.4rem 1.35rem;
  }

  .premium-accordion .accordion-button {
    font-size: 1.3rem;
    padding: 1.25rem 0;
  }

  .premium-accordion .accordion-body {
    padding-right: 0;
  }

  .service-cta {
    padding: 4.25rem 0;
  }

  .service-cta p {
    font-size: 1.4rem;
  }

  .related-treatments {
    padding: 4.25rem 0;
  }
}

@media (max-width: 575.98px) {
  .service-hero-copy .d-flex>a {
    flex: 1 1 100%;
  }

  .treatment-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 1rem;
  }

  .treatment-card h3 {
    font-size: 1.02rem;
  }

  .treatment-card p {
    display: none;
  }

  .treatment-card .more {
    letter-spacing: 0.12em;
  }
}

/* ===================== SUB-HEADINGS, BULLET LISTS, TABLE NOTES =====================
   Used by the Teeth Whitening, Crowns & Bridges, Smile Designing and Hollywood Smile pages */
.service-content-wrapper .content-section h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.31rem;
  line-height: 1.2;
  color: var(--emerald);
  margin: 2rem 0 0.75rem;
}

.dd-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
}

.dd-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.55rem;
}

.dd-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 10px;
  height: 2px;
  background: var(--gold);
}

.table-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: -0.6rem;
}

/* FAQ question headings sit inside .content-section: keep them tight */
.service-content-wrapper .content-section .premium-accordion h3 {
  margin: 0;
}
