/* Design-conformance fixes, layered after styles.css (reversible). */

/* Fix glitchy desktop dropdowns: styles.css places .dropdown 8px below the nav
   link (top: calc(100% + 8px)), leaving an un-hoverable gap. Moving the cursor
   from the link down to the menu items crosses that gap, :hover drops and the
   menu closes. This transparent bridge fills the gap so hover stays continuous. */
.nav-item .dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

/* Inline body links: base styles.css sets `a { color: inherit; text-decoration:
   none }`, which makes contextual in-copy links invisible. Style links inside
   content blocks so they read as links (teal + underline). */
.sbs-text p a,
.benefits p a,
.benefits-head p a,
.faq-a p a,
.cta-text p a,
.sec-head p a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}
.sbs-text p a:hover,
.benefits p a:hover,
.faq-a p a:hover,
.cta-text p a:hover,
.sec-head p a:hover {
  color: var(--teal-light);
}

/* CTA with the image on the RIGHT (for alternating page rhythm). The base
   .cta-block is a 790px/408px grid with the media first; mirroring the grid
   with direction:rtl flips media→right and text→left while keeping DOM order
   and the correct column widths (and it mirrors cleanly at every breakpoint). */
.cta-block--right {
  direction: rtl;
      gap: 108px;
}
.cta-block--right > * {
  direction: ltr;
}
@media (max-width: 767px) {
  .cta-block--right {
      direction: rtl;
      gap: 48px;
  }
}

/* Dentist-referrals intro: NHS note callout + the "when referring" checklist. */
.rf-note {
  padding: 14px 18px;
  border-left: 3px solid var(--teal);
  background: rgba(60, 139, 144, 0.06);
  border-radius: 6px;
}
.rf-list {
  margin: 0 0 8px;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}
.rf-list li {
  line-height: 1.5;
}

/* Google Translate widget in the LANGUAGE utility. Style the injected select to
   sit inline with the utility bar, and suppress Google's top banner + body shift. */
/* Custom LANGUAGE dropdown (matches the utility bar) driving hidden Google Translate. */
.util-lang {
  position: relative;
  display: inline-flex;
  align-items: center;
}
/* .util-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.14px;
  color: var(--text);
} */
.util-lang-btn .lang-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.2s var(--ease);
}
.util-lang-btn[aria-expanded="true"] .lang-caret {
  transform: rotate(180deg);
}
.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 150px;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-card, 0 12px 30px rgba(30, 60, 63, 0.18));
  padding: 6px;
  display: none;
  flex-direction: column;
  z-index: 60;
}
.lang-menu.open {
  display: flex;
}
.lang-opt {
  text-align: left;
  padding: 7px 12px;
  background: none;
  border: 0;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text, #333);
  cursor: pointer;
  transition: background 0.15s var(--ease);
}
.lang-opt:hover,
.lang-opt:focus-visible {
  background: rgba(60, 139, 144, 0.1);
  color: var(--teal);
}
/* Referrals utility dropdown (Dentist Referrals + Refer a Friend) — CSS hover/focus. */
.util-menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.util-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.util-menu-btn .lang-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.2s var(--ease);
}
.util-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 180px;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-card, 0 12px 30px rgba(30, 60, 63, 0.18));
  padding: 6px;
  display: none;
  flex-direction: column;
  z-index: 60;
}
/* Transparent bridge so the cursor can cross the gap without the menu closing. */
.util-menu-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
}
.util-menu-wrap:hover .util-menu,
.util-menu-wrap:focus-within .util-menu {
  display: flex;
}
.util-menu-wrap:hover .util-menu-btn .lang-caret,
.util-menu-wrap:focus-within .util-menu-btn .lang-caret {
  transform: rotate(180deg);
}
.util-menu a {
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--text, #333);
  text-decoration: none;
  transition: background 0.15s var(--ease);
}
.util-menu a:hover,
.util-menu a:focus-visible {
  background: rgba(60, 139, 144, 0.1);
  color: var(--teal);
}

/* Google Translate engine: keep in the DOM (so the .goog-te-combo works) but hide it. */
#google_translate_element {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  visibility: hidden;
}
/* Book page: disable header CTA */
body:has(.book-hero) .header-cta {
  pointer-events: none;
  background: #b0b8bc !important;
  color: #fff !important;
  cursor: default;
}

/* Benefits section spacing */
.ins-sec.benefits {
  margin-top: 120px;
}
@media (max-width: 768px) {
  .ins-sec.benefits {
    margin-top: 70px;
  }
}

/* FAQ section spacing */
.ins-sec.faq {
  margin-top: 120px;
}
@media (max-width: 768px) {
  .ins-sec.faq {
    margin-top: 65px;
  }
}

/* Utility */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* Cost table rows */
.cost-treatment{
  margin-top: 120px;
}



/* Contact page: heading */
#contact-visit-heading {
  font-weight: 500;
  margin-bottom: 20px;
}

/* Contact page: map section + footer spacing */
.contact_map {
  padding-block: 20px 120px;
}
main:has(.contact_map) ~ footer.footer-bottom {
  /* margin-top: 80px; */
  padding-top: 0;
}
@media (max-width: 768px) {
  .cost-treatment{
    margin-top: 60px;
            padding-top: 55px;
  }
  main:has(.contact_map) ~ footer.footer-bottom {
    margin-top: 30px;
  }
  .contact_map {
    padding-block: 20px 60px;
  }
}

/* Legal pages: h2 spacing */
.legal-content h2 {
  margin-bottom: 12px;
}

/* Nav active states */
.dropdown a.active {
  background: var(--tint-5);
  color: var(--teal);
}

/* Section background tint — add .sbs_bgcolor to any .ins-sec */
.ins-sec.sbs_bgcolor {
  background: #F8FBFC;
  padding-block: 200px 120px;
  margin-top: -200px;
}
@media (max-width: 768px) {
  .ins-sec.sbs_bgcolor {
    background: #F8FBFC;
    padding-block: 60px 60px;
    margin-top: 0px;
  }
}

/* ============================================================
   react-datepicker — DOB field (dentist referral form)
   ============================================================ */
.react-datepicker-wrapper {
  display: block !important;
}

.react-datepicker__triangle {
  display: none !important;
}

.rf-datepicker-wrap {
  position: relative;
  display: block;
  width: 100%;
  cursor: pointer;
}

.rf-datepicker-input {
  width: 100%;
  height: 50px;
  padding: 0 44px 0 18px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--text);
  border-radius: var(--r-outline);
  appearance: none;
  transition: border-color 0.2s;
  cursor: pointer;
}

.rf-datepicker-input:focus {
  outline: none;
  border-color: var(--teal);
}

.rf-datepicker-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--teal);
  display: flex;
  align-items: center;
  pointer-events: none;
}

/* Calendar popup */
.rf-datepicker-cal {
  font-family: inherit;
  border: 1px solid var(--line, #dde4e5);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(30, 60, 63, 0.14);
  overflow: hidden;
}

/* Header bar */
.rf-datepicker-cal .react-datepicker__header {
  background: #f9f9f9;
  border-bottom: none;
  padding: 14px 10px 10px;
}

.rf-datepicker-cal .react-datepicker__current-month,
.rf-datepicker-cal .react-datepicker-time__header {
  color: #333;
  font-weight: 600;
  font-size: 15px;
}

/* Month/year dropdowns */
.rf-datepicker-cal .react-datepicker__month-select, .rf-datepicker-cal .react-datepicker__year-select {
    background: #fff;
    border: 0px solid #ccc;
    border-radius: 6px;
    color: #333;
    font: inherit;
    font-size: 14px;
    padding: 2px 6px;
    cursor: pointer;
    height: 30px;
}
/* Nav arrows */
.rf-datepicker-cal .react-datepicker__navigation-icon::before {
  border-color: #333;
}

.rf-datepicker-cal .react-datepicker__navigation:hover .react-datepicker__navigation-icon::before {
  border-color: var(--teal);
}

/* Day names row */
.rf-datepicker-cal .react-datepicker__day-name {
  color: #333;
  font-size: 12px;
  font-weight: 600;
}

/* Day cells */
.rf-datepicker-cal .react-datepicker__day {
  border-radius: 6px;
  font-size: 14px;
  color: var(--text);
  transition: background 0.15s, color 0.15s;
}

.rf-datepicker-cal .react-datepicker__day:hover {
  background: var(--tint-5, rgba(60,139,144,0.08));
  color: var(--teal);
}

.rf-datepicker-cal .react-datepicker__day--selected,
.rf-datepicker-cal .react-datepicker__day--keyboard-selected {
  background: var(--teal);
  color: #fff !important;
}

.rf-datepicker-cal .react-datepicker__day--today {
  font-weight: 700;
  color: var(--teal);
}

.rf-datepicker-cal .react-datepicker__day--today.react-datepicker__day--selected {
  color: #fff;
}

.rf-datepicker-cal .react-datepicker__day--outside-month {
  opacity: 0.35;
}

/* ============================================================
   Cost & Finance Calculator (.lo-* prefix)
   ============================================================ */
.cost-calc { display: none; }

.lo-sec { padding-top: 100px; padding-bottom: 30px; }
@media (max-width: 768px) { .lo-sec { padding-block: 30px; } }

.lo-wrap { max-width: 1320px; margin: 0 auto; padding: 0 20px; }

.lo-card {
  background: #fff;
  border-radius: var(--r-card);
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
  padding: 52px 56px;
}
.lo-head { text-align: center; margin-bottom: 44px; }
.lo-title {
  font-size: 34px; line-height: 1.15; font-weight: 500; color: var(--teal);
  letter-spacing: -.4px; margin: 0 0 10px;
}
.lo-sub { font-size: 16px; margin: 0; }

.lo-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,560px); gap: 56px; align-items: start; }

.lo-field { margin-bottom: 26px; }
.lo-field:last-child { margin-bottom: 0; }
.lo-label { display: block; font-size: 16px; font-weight: 500; color: var(--text); margin-bottom: 10px; }
.lo-hint { display: block; font-size: 13px; font-weight: 400; margin-top: 3px; line-height: 1.4; }

.lo-control { position: relative; }
select.lo-input, input.lo-input {
  width: 100%; height: 54px; border: 1px solid var(--text);
  background: #fff; font-family: inherit; font-size: 16px; font-weight: 500; color: var(--teal);
  padding: 0 33px; border-radius: 4px; outline: none; transition: border-color .18s, box-shadow .18s;
}
select.lo-input {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%233c8b90' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: right 16px center;
}
.lo-input:focus { box-shadow: 0 0 0 3px rgba(60,139,144,.15); }
.lo-input:disabled { border-color: #e0e0e0; color: #a6a6a6; background: #f8fbfc; cursor: not-allowed; }
select.lo-input:disabled {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a6a6a6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: right 16px center;
}
.lo-input--money { padding-left: 38px; }
.lo-prefix { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 16px; font-weight: 500; color: var(--teal); pointer-events: none; }

.lo-panel { border: 1px solid var(--teal); border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 3px 14px rgba(0,0,0,.05); }
.lo-opt + .lo-opt { border-top: 1px solid #e0e0e0; }
.lo-opt-head { padding: 20px 26px; color: #fff; }
.lo-opt-head--solid { background: var(--teal); }
.lo-opt-head--grad { background: linear-gradient(90deg,#3c8b90 0%,#5fa6aa 100%); }
.lo-opt-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; margin: 0; }
.lo-opt-body { padding: 26px 30px; }
.lo-opt-price { font-size: 44px; line-height: 1; font-weight: 400; color: #161616; margin: 0; }
.lo-opt-price .lo-cur { font-size: 30px; font-weight: 400; color: #161616; }
.lo-opt-price.is-empty { color: #a6a6a6; }
.lo-panel-note { padding: 16px 26px; font-size: 12px; line-height: 1.45; color: var(--text); background: #edf6f7; border-top: 1px solid #e0e0e0; }

.lo-finance { margin-top: 48px; }
.lo-fin-title { font-size: 22px; font-weight: 500; color: var(--teal); letter-spacing: -.3px; margin: 0 0 6px; }
.lo-fin-lead { font-size: 14px; color: var(--text); margin: 0 0 20px; }
.lo-table-scroll { overflow-x: auto; border-radius: 10px; border: 1px solid #e0e0e0; }
table.lo-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 660px; background: #fff; table-layout: fixed; }
.lo-table thead th {
  background: var(--teal); color: #fff; font-weight: 600; text-align: left;
  padding: 17px 22px; font-size: 13px; letter-spacing: .3px; text-transform: uppercase; line-height: 1.3; vertical-align: top;
}
.lo-table tbody td { padding: 20px 25px; border-top: 1px solid #e0e0e0; color: #333; font-size: 14px; vertical-align: middle; }
/* Status column — hidden temporarily (re-enable by removing these 3 rules) */
.lo-table thead th:last-child,
.lo-table tbody td:last-child { display: none; }
.lo-table col.c-stat { width: 0; }

.lo-table col.c-term { width: 12%; } .lo-table col.c-bal { width: 18%; } .lo-table col.c-dep { width: 9%; }
.lo-table col.c-mon { width: 17%; } .lo-table col.c-pay { width: 15%; } .lo-table col.c-apr { width: 29%; } .lo-table col.c-stat { width: 0; }
.lo-table tbody tr:nth-child(even) { background: #f8fbfc; }
.lo-term { font-weight: 600; color: #161616; white-space: nowrap; }
.lo-money { font-weight: 600; color: #161616; white-space: nowrap; }
.lo-table tbody tr.is-off .lo-money { color: #a6a6a6; font-weight: 500; }
.lo-badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; padding: 5px 11px; border-radius: 20px; white-space: nowrap; }
.lo-badge--yes { background: #d8ebec; color: var(--teal); }
.lo-badge--no { background: #f2f2f2; color: #a6a6a6; }
.lo-apr { font-size: 12px; line-height: 1.4; }

.lo-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: center; }
.lo-cta {
  display: inline-flex; align-items: center; gap: 10px; background: var(--gold, #e9ad2d); color: #fff;
  font-family: inherit; font-size: 15px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  border: 0; border-radius: 2px; padding: 15px 30px; cursor: pointer; text-decoration: none;
  transition: background .18s;
}
.lo-cta:hover { background: #d49a1f; }
.lo-print {
  display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--teal);
  transition: color .18s;
}
.lo-print:hover { color: var(--teal-light); }

.lo-disclaimer { max-width: 1120px; margin: 22px auto 0; padding: 0 20px; font-size: 14px; line-height: 1.5; color: #646464; text-align: center; }

@media (max-width: 860px) {
  .lo-card { padding: 34px 22px; }
  .lo-title { font-size: 27px; }
  .lo-grid { grid-template-columns: 1fr; gap: 34px; }
}
@media print {
  .lo-card { box-shadow: none; padding: 0; }
  .lo-actions { display: none; }
}

/* Kill the sticky top banner iframe + the body offset it forces. */
.goog-te-banner-frame,
.skiptranslate iframe.goog-te-banner-frame {
  display: none !important;
}
body {
  top: 0 !important;
}

/* ============================================================
   Clear-aligners rework (Sep 2026) — reusable additions
   ============================================================ */

/* Benefits column variants (default stays 3) */
.benefits--cols-2 .benefits-grid { grid-template-columns: repeat(2, 1fr); }
.benefits--cols-4 .benefits-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .benefits--cols-4 .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .benefits--cols-2 .benefits-grid,
  .benefits--cols-4 .benefits-grid { grid-template-columns: 1fr; }
}

/* Stop the tint section pulling its background up into a preceding benefits grid */
.ins-sec.benefits + .ins-sec.sbs_bgcolor {
  margin-top: 0;
  padding-block: 120px;
}

/* Bulleted list inside an SBS text column */
.sbs-list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.sbs-list li {
  position: relative;
  padding-left: 28px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--dark);
}
.sbs-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

/* Consultation journey steps (built on clear-aligners; to be templatised across treatment pages) */
.consult { margin-top: 120px; margin-bottom: 120px; }
.consult-head { max-width: 760px; margin-bottom: 48px; }
.consult-head .section-title { margin: 12px 0 20px; }
.consult-head p { font-size: 18px; line-height: 1.6; color: var(--text); }
.consult-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.consult-step {
  background: var(--tint-2);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 32px 28px;
}
.consult-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad-teal);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}
.consult-step h3 {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--teal);
  margin: 0 0 8px;
}
.consult-step p { font-size: 15px; line-height: 1.6; color: var(--text); margin: 0; }
@media (max-width: 900px) { .consult-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .consult-steps { grid-template-columns: 1fr; } }

/* Metal vs ceramic comparison table (fixed braces) */
.compare2-head { max-width: 760px; margin-bottom: 40px; }
.compare2-head .section-title { margin: 12px 0 20px; }
.compare2-head p { font-size: 18px; line-height: 1.6; color: var(--text); }
.compare2-table { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.compare2-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr; }
.compare2-row + .compare2-row { border-top: 1px solid var(--line); }
.compare2-row > span { padding: 18px 24px; font-size: 16px; line-height: 1.4; color: var(--text); }
.compare2-row > span + span { border-left: 1px solid var(--line); }
.compare2-row--head > span { background: var(--tint-5); font-weight: 700; color: var(--dark); }
.compare2-row--head > span:first-child { background: var(--white); }
.compare2-crit { font-weight: 600; color: var(--dark); }
@media (max-width: 640px) {
  .compare2-row > span { padding: 12px 12px; font-size: 13px; }
}

/* Bulleted SBS: bold only the lead term; description after the hyphen stays normal */
.sbs-list-desc { font-weight: 400; color: var(--text); }
/* Breathing room between an SBS bullet list and a following CTA button */
.sbs-text .sbs-list + .btn { margin-top: 28px; }

/* "You might be here because…" adult-treatment checklist */
.reasons-head { max-width: 760px; margin-bottom: 40px; }
.reasons-head .col-title { margin-bottom: 16px; }
.reasons-head p { font-size: 18px; line-height: 1.6; color: var(--text); }
.reasons-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 24px;
}
.reasons-grid li {
  position: relative;
  padding: 18px 22px 18px 62px;
  min-height: 28px;
  display: flex;
  align-items: center;
  background: var(--tint-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--dark);
}
.reasons-grid li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--grad-teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.2l2.6 2.6L10 3' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}
@media (max-width: 700px) {
  .reasons-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* .reasons now precedes the tinted section on adult-treatment — stop the pull-up bleed */
.ins-sec.reasons + .ins-sec.sbs_bgcolor { margin-top: 0; padding-block: 120px; }

/* The NHS-braces testimonial (BugHerd #191) now precedes the tinted band — stop
   the -200px pull-up overlapping/cutting off the bordered testimonial card. */
@media (min-width: 769px) {
  .nhs-review + .ins-sec.sbs_bgcolor { margin-top: 0; padding-block: 120px; }
}

/* Retainers: Do & Don't care columns */
.dodont-head { max-width: 760px; margin-bottom: 40px; }
.dodont-head .col-title { margin-bottom: 16px; }
.dodont-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.dodont-col {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 32px 30px;
}
.dodont-col h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 18px;
}
.dodont-col--do h3 { color: var(--teal); }
.dodont-col--dont h3 { color: var(--form-error); }
.dodont-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dodont-col li {
  position: relative;
  padding-left: 30px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
}
.dodont-col li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}
.dodont-col--do li::before { content: "\2713"; color: var(--teal); }
.dodont-col--dont li::before { content: "\2715"; color: var(--form-error); }
@media (max-width: 700px) { .dodont-grid { grid-template-columns: 1fr; } }

/* Retainers: dual CTA (enquire vs book consultation) */
.dual-cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.dual-cta-card {
  background: var(--tint-2);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.dual-cta-card h3 {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--teal);
  margin: 0;
}
.dual-cta-card p { font-size: 16px; line-height: 1.6; color: var(--text); margin: 0; }
.dual-cta-card .btn { margin-top: 8px; }
@media (max-width: 700px) { .dual-cta-grid { grid-template-columns: 1fr; } }

/* Cost table: put the "Monthly payments from…" line under the price (was crammed
   on one line and could clip). min-width:0 lets the grid cell wrap. */
.cost-row-price {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  overflow-wrap: break-word;
}
.cost-row-mo {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--inactive);
}

/* Cost tables must paint above the following .cost-feat band (which pulls up
   -56px and would otherwise cover the last row's "monthly payments" line). */
.cost-table-sec {
  position: relative;
  z-index: 1;
}

/* The cost table immediately before a .cost-feat band needs clearance so its
   last row's "monthly payments" line doesn't sit on the band's tint. This
   margin cancels the band's -56px pull-up and leaves a small gap. */
.cost-table-sec:has(+ .cost-feat) {
  margin-bottom: 88px;
}

/* Before & Afters: contextual "explore treatment" link under a case */
.ba-explore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.ba-explore:hover { color: var(--teal-light); }

/* Button inside a benefits-head text block (e.g. Lunch & Learns referral CTA) */
.benefits-head .btn { margin-top: 8px; }

/* Life With Braces: centred "call the practice" button under the brace-issues grid */
.brace-call { text-align: center; margin-top: 48px; }

/* Meet Our Orthodontists: "What is a Specialist Orthodontist?" as its own card */
.spec-def { margin-top: clamp(64px, 7vw, 100px); }
.spec-def-inner {
  max-width: 920px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-soft);
  padding: clamp(40px, 5vw, 64px);
  text-align: center;
}
.spec-def-inner .col-title { margin-bottom: 16px; }
.spec-def-inner p { font-size: 18px; line-height: 1.7; color: var(--text); margin: 0; }

/* Meet Our Orthodontists hero: portrait group photo in a landscape slot - anchor top so faces show */
.cost-hero-media--portrait img { object-position: center bottom; }

/* Meet Our Team: anchor card photos to the top so heads aren't cropped (Matt) */
.team-card-media img { object-position: top; }

/* Meet Our Team: role-explainer two-column section (OT + Treatment Coordinators) */
.team-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.team-role .col-title { margin-bottom: 14px; }
.team-role p { font-size: 17px; line-height: 1.7; color: var(--text); }
@media (max-width: 768px) { .team-roles { grid-template-columns: 1fr; gap: 32px; } }

/* Meet Our Team: spacing above each role group heading that follows a grid */
.team-grid + .team-group-head { margin-top: clamp(56px, 6vw, 88px); }

/* Home hero — Google rating badge (copied from Stoke Bishop home-hero) */
.tio-google-badge { display: flex; align-items: center; gap: 5px; max-width: 330px; width: 100%; margin-top: 22px; padding: 14px; background-color: #ffffffd9; border: 1px solid #805aa212; border-radius: 999px; box-shadow: 0 6px 6px #0000000f; font-family: Montserrat, sans-serif; font-weight: 500; }
.tio-google-badge > img { flex: 0 0 auto; }
.tio-google-badge .rating-text { margin-left: 5px; font-size: 12px; }
.tio-google-badge > p { margin: 0; font-size: 14px; font-weight: 700; }
.tio-google-badge .star-wrapper { display: flex; gap: 4px; justify-content: center; align-items: center; }
.tio-google-badge__text2 { font-size: 9px; line-height: 9px; }

/* Floating variant: fixed bottom-right, hidden at top, revealed on scroll */
.tio-google-badge--float {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 90;
  margin-top: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}
.tio-google-badge--float.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
@media (max-width: 768px) {
  /* Compact so the whole badge stays on one line on narrow screens */
  .tio-google-badge { gap: 6px; padding: 16px 19px; }
  .tio-google-badge > img { width: 18px; height: 18px; }
  .tio-google-badge .rating-text { white-space: nowrap; margin-left: 2px; font-size: 9px; }
  .tio-google-badge > p { font-size: 13px; }
  .tio-google-badge .star-wrapper { gap: 2px; }
  .tio-google-badge .star-wrapper img { width: 13px; height: auto; }
  .tio-google-badge__text2 { white-space: nowrap; }
  .tio-google-badge--float { right: 12px; bottom: 12px; max-width: fit-content; }
}

/* ===== New homepage sections (build spec — Figma node 4344-35) ===== */

/* 1 · Hero reassurance chips */
/* Hero copy: below 1400 the container inset gets too tight — use a 40px gutter
   (mobile keeps its own padding). */
@media (min-width: 769px) and (max-width: 1400px) {
  .hero-inner { padding-left: 40px; }
}

/* USP grid gradient band */
.why-sec { margin-top: 0px; }
.why-sec .panel { border-radius: 8px; background: linear-gradient(180deg, #F8FBFC 0%, #FFF 100%); padding-top: 63px; }
.hero-chips { list-style: none; display: flex; flex-wrap: nowrap; gap: 8px; margin: 0 0 28px; padding: 0; }
.hero-chip { display: inline-flex; align-items: center; white-space: nowrap; color: var(--teal); border: 1px solid var(--tint-6); padding: 5px 12px; font-family: "DM Sans", sans-serif; font-size: 14px; font-style: normal; font-weight: 700; line-height: 150%; letter-spacing: -0.28px; text-transform: uppercase; border-radius: 4px; background: rgba(219, 236, 240, 0.90); }
@media (max-width: 520px) { .hero-chips { flex-wrap: wrap; } }

/* 3 · Choose your journey */
.choose-journey { margin-top: 76px; }
.cj-title { margin-bottom: 60px; }
.cj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.cj-card { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding: 120px 160px; border-radius: 8px; background: linear-gradient(180deg, #F8FBFC 0%, #F4F9FA 100%); transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease); }

@media (max-width: 1500px) {
  .cj-card {
      gap: 24px;
      padding: 70px 80px;
  }
}

@media (max-width: 900px) { .cj-card { padding: 40px 40px; } }
.cj-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.cj-label { color: var(--teal); font-family: "DM Sans", sans-serif; font-size: 32px; font-weight: 400; line-height: 110%; letter-spacing: -0.64px; max-width: 330px; }
.cj-label-emph { display: block; font-weight: 500; }
.cj-btn { align-self: flex-start; }

/* 4 · Treatment section heading */
.home_ctas-title { margin-bottom: clamp(28px, 3vw, 44px); }

/* 6 · Meet our Specialist Orthodontists (home 3-card) */
.home-team { margin-top: clamp(56px, 8vw, 120px); }
/* Tinted background band; content held in an inner .container */
.home-team-band { border-radius: 8px; padding-block: 100px; background: linear-gradient(180deg, #F8FBFC 0%, #F4F9FA 100%); }
.home-team .sec-head { max-width: 760px; margin-inline: 0; text-align: left; }
.home-team-grid { margin-top: clamp(32px, 4vw, 56px); }
.home-team .team-card { cursor: default; border-radius: 0; }
/* No hover lift on the home team cards */
.home-team .team-card:hover { box-shadow: none; transform: none; }
/* Figma: card photo 8px radius */
.home-team .team-card-media, .home-team .team-card-media img { border-radius: 8px; }
.home-team .team-card-body { padding: 40px 80px 0px 0; }
.team-card-media--placeholder { aspect-ratio: 5 / 4; display: grid; place-items: center; background: var(--tint-6); color: var(--teal); }
.team-card-media--placeholder span { font-size: 14px; font-weight: 600; }
.home-team-foot { margin-top: clamp(32px, 4vw, 56px); text-align: left; }
/* Team is now a slider: 3 cards per view on desktop (looks like a grid, arrows
   disabled), 1 per view on mobile with prev/next. */
.home-team .ba-carousel { margin-top: clamp(32px, 4vw, 56px); }
.home-team .ba-slider-track > * { flex: 0 0 calc((100% - 80px) / 3); }
@media (max-width: 860px) {
  .home-team .ba-slider-track > * { flex: 0 0 100%; }
}
/* Design keeps the CTA + arrows on one row on mobile for the team slider */
@media (max-width: 768px) {
  .home-team .carousel-foot { flex-direction: row; align-items: center; margin-top: 32px; }
}

/* 8 · Google reviews */
.greviews { margin-top: clamp(56px, 8vw, 120px); }
/* Tinted background band holding the header + review cards */
.greviews-band { border-radius: 8px; padding-block: 110px; background: linear-gradient(180deg, #F8FBFC 0%, #F4F9FA 100%); }
.greviews-rating { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 18px; color: var(--text); }
.greviews-stars { color: var(--gold); letter-spacing: 2px; }
.greviews .ba-slider-track { align-items: stretch; }
/* Viewport clips at its padding box; without this the 1px card border sitting
   flush at the bottom edge gets cut off. Small vertical padding lets it show. */
.greviews .ba-viewport { padding-block: 4px; }
/* Cards sit white on the tint band */
.greview-card { border: 1px solid var(--c2); border-radius: 24px; display: flex; width: 632px; max-width: 100%; padding: 59px 64px 78px 64px; flex-direction: column; align-items: flex-start; gap: 8px; }
.greview-quote { display: block; margin-bottom: 16px; }
/* Quote mark: 89 x 71 per the Figma spec (node 4358-1022), which is also the
   asset's intrinsic size — it was being scaled down to 48px wide. */
.greview-quote img { width: 89px; height: 71px; display: block; }
.greview-text { font-size: 15px; line-height: 1.6; color: var(--text); margin: -60px 0 16px; }
.greview-name { font-weight: 600; color: var(--teal); margin: auto 0 0; }

@media (max-width: 860px) {
  .cj-grid { grid-template-columns: 1fr; gap: 26px; }
  .greviews-grid { grid-template-columns: 1fr; }
}

/* Mobile: the large Figma desktop paddings are too heavy on narrow screens —
   scale down the band + card padding (desktop values above are unchanged). */
@media (max-width: 768px) {
  .home-team-band { padding-block: 56px; }
  .greviews-band { padding-block: 56px; }
  .greview-card { padding: 32px 26px 40px; border-radius: 8px; }
  .greviews-band  .carousel-foot {
        flex-direction: column-reverse;
                align-items: flex-start;
    }
  .spec-card { padding: 70px 50px 70px 60px; border-radius: 8px; }
  .cj-label { font-size: 20px; }
  .section-title { font-size: 24px; }
  .greviews-rating { align-items: flex-start; font-size: 14px; }
  .carousel-foot { margin-top: 40px; gap: 20px; }
  .cj-title { margin-bottom: 17px; }
  .spec-proof { margin-top: 70px; }
  .hero-chip { padding: 3px 10px; font-size: 11px; }
  .cta-media img { border-radius: 8px; }
  /* Treatment cards: fade the image into the card (Figma gradient) */
  .home_cta { background: #F5F5F5; border-radius: 8px; overflow: hidden; }
  .home_cta-media::after { content: ""; position: absolute; inset: 0; bottom: -190px; background: linear-gradient(180deg, rgba(245, 245, 245, 0.00) 18.26%, #F5F5F5 54.85%); pointer-events: none; z-index: 1; }
  /* ACTUAL PATIENT tag stays visible on mobile (BugHerd #254): smaller, tucked into the corner;
     on the faded home treatment cards it sits top-right, clear of the gradient and text */
  .home_cta-tag { font-size: 10px; padding: 4px 8px; right: 12px; bottom: 12px; }
  .home_cta-media .home_cta-tag { top: 12px; bottom: auto; }
}

.spec-proof-head { max-width: 960px; margin-bottom: 56px; }

/* 5 · Specialist-proof card icons (best-fit; swap with Figma exports) */
.spec-card-ic { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 0px; }
.spec-card-ic img { width: 100%; height: 100%; display: block; }

/* Homepage: gap above the final CTA (it now follows Costs, which has no bottom margin) */
.page-home .ins-sec:has(.cta-block) { margin-top: clamp(64px, 8vw, 120px); }

/* Footer Visit Us: on tablet the fixed 720px map column + 700px map width (set at
   <=1440px) overflow the viewport. Collapse to one column and let the map fill it. */
@media (max-width: 900px) {
  .footer-visit .panel { grid-template-columns: 1fr; gap: 40px; aspect-ratio: auto; }
  .footer-map, .footer-map iframe { width: 100% !important; }
}

/* Real Smiles, Real Results — home-only unique classes (rr-*) */
.home-realsmiles { margin-top: clamp(56px, 8vw, 120px); }
.rr-card { display: flex; flex-direction: column; gap: 16px; }
.rr-photo img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: 4px; display: block; }
/* Top image is now a before/after slider: keep the 16/11 face crop, reuse shared .ba-compare behaviour */
.rr-compare.ba-compare { aspect-ratio: 632 / 313; border-radius: 4px; }
.rr-compare .ba-img-before, .rr-compare .ba-img-after { aspect-ratio: auto; }
.rr-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.rr-pair img { width: 100%; height: 100%; aspect-ratio: 308 / 114; object-fit: cover; border-radius: 4px; display: block; -webkit-user-drag: none; }
.rr-name { color: var(--teal); font-weight: 600; font-size: 18px; margin: 8px 0 0; }
.rr-text { color: var(--text); line-height: 1.6; font-size: 15px; margin: 0; }
/* Mobile: full-bleed images (edge-to-edge, square corners) */
@media (max-width: 768px) {
  .rr-photo img, .rr-compare.ba-compare, .rr-pair img { border-radius: 0; }
  .rr-photo, .rr-pair { margin-left: -24px; margin-right: -24px; }
}

/* Testimonials: large title above each review */
.review-title { position: relative; z-index: 2; font-size: clamp(24px, 2.2vw, 32px); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; color: var(--teal); margin: 0 0 16px; }

/* Sbs block whose image opens a video popup (Remote Monitoring) */
.sbs-media--square .video-thumb img { aspect-ratio: 1 / 1; }
.video-modal-frame video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
/* Portrait clips (the self-hosted 3:4 videos): portrait frame, bars cropped */
.video-modal-frame.is-portrait { aspect-ratio: 3 / 4; width: min(100%, calc(82vh * 3 / 4)); margin-inline: auto; }
.video-modal-frame.is-portrait video { object-fit: cover; }

/* Before & afters: featured Kornelia case above the grid (BugHerd #233)
   static before/after pair on the left, text on the right */
.ba-feature-sec { margin-block: 120px 0; }
.ba-feature { display: grid; grid-template-columns: minmax(0, 660px) minmax(0, 1fr); gap: 72px; align-items: center; }
.ba-feature-media { position: relative; aspect-ratio: 1.41 / 1; border-radius: var(--r-tab); overflow: hidden; box-shadow: var(--shadow-card); }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; height: 100%; background: #fff; }
.ba-pair img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.ba-feature-text .card-eyebrow { display: block; margin-bottom: 16px; }
.ba-feature-text .section-title { text-align: left; margin: 0 0 24px; }
.ba-feature-text .ba-treatment { font-size: 17px; line-height: 1.6; margin: 0 0 32px; }
.ba-label { position: absolute; top: 20px; z-index: 3; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .9); color: var(--teal); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; pointer-events: none; }
.ba-label--before { left: 20px; }
.ba-label--after { right: 20px; }
@media (max-width: 768px) {
  .ba-feature-sec { margin-block: 60px 0; }
  .ba-feature { grid-template-columns: 1fr; gap: 32px; }
  .ba-feature-text .ba-treatment { font-size: 16px; }
  .ba-label { top: 12px; font-size: 11px; padding: 4px 10px; }
  .ba-label--before { left: 12px; } .ba-label--after { right: 12px; }
}

/* Reviews whose text has several paragraphs (Woodley testimonial) */
.greview-text p, .review-text p { margin: 0 0 12px; }
.greview-text p:last-child, .review-text p:last-child { margin-bottom: 0; }
.greview-more { margin-bottom: 16px; }

/* Homepage: "most reviewed" banner between the awards strip and .why-sec (BugHerd #213)
   single centred column in the .cj-card style */
.mr-sec { padding: 24px 0 40px; }
.mr-card { border-radius: 8px; background: linear-gradient(#f8fbfc, #f4f9fa); box-shadow: 0 10px 40px rgba(0, 0, 0, .06); padding: 60px 24px; }
.mr-text { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.mr-badge { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; background: #fff; border-radius: 999px; box-shadow: 0 6px 16px rgba(0, 0, 0, .08); font-size: 12px; font-weight: 500; color: var(--dark); }
.mr-badge strong { font-size: 13px; font-weight: 700; }
.mr-badge-stars { color: #F5B400; font-size: 13px; letter-spacing: 1px; }
.mr-title { font-size: 46px; line-height: 1.15; font-weight: 400; color: rgb(60, 139, 144); margin: 0; letter-spacing: -0.01em; }
.mr-title strong { font-weight: 700; }
.mr-sub { font-size: 18px; color: var(--text); margin: 0; }
@media (max-width: 768px) {
  .mr-card { padding: 40px 20px; }
  .mr-text { gap: 16px; }
  .mr-title { font-size: 30px; }
}
/* Testimonials: "Read more" on long reviews (BugHerd #249) */
.review-card .review-extra { margin-top: 12px; }
.review-card .review-more-toggle { margin: 0 0 16px; text-transform: uppercase; font-size: 13px; letter-spacing: .04em; }
/* Dentist referrals: referring dentists' testimonials above the form */
.rf-reviews-title { margin-bottom: 32px; }
.rf-reviews .review-card--wide + .review-card--wide { margin-top: 24px; }
/* same width as the referral form below (.rf-form max-width) */
.rf-reviews .review-card--wide { max-width: 1080px; }
.rf-reviews + .rf-sec { margin-top: 0; }
.rf-review-logo { display: block; width: 120px; height: auto; margin-top: 8px; }

/* Carousels on touch (BugHerd #256): keep vertical page scrolling, let the
   carousel handle horizontal swipes. */
.ba-slider-track { touch-action: pan-y; }
/* Team carousel: arrows hidden on desktop (both doctors fit), shown on mobile */
@media (min-width: 769px) { .carousel-nav--mobile-only { display: none; } }
/* Homepage Google reviews: large title above each review, as on the testimonials page (BugHerd #260).
   The review text is pulled up under the quote mark (-60px); the title takes that spot instead. */
.greview-title { margin: -60px 0 12px; }
.greview-title + .greview-text { margin-top: 0; }
/* Homepage Kornelia card: matched before/after panels side by side (BugHerd #259), same frame size as the sliders */
.rr-sbs { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr); gap: 4px; aspect-ratio: 632 / 313; border-radius: 4px; overflow: hidden; background: #fff; }
.rr-photo.rr-sbs img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: center 55%; border-radius: 0; min-height: 0; }
@media (max-width: 768px) { .rr-sbs { border-radius: 0; } }
/* Dentist testimonials: quote mark with the dentist's photo (or a placeholder until it arrives) under it */
.rf-review-side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.rf-review-side .review-quote { margin: 0; }
.rf-review-photo { display: block; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.rf-review-photo--pending { background: #e3eff1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233c8b90' opacity='.45'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-7 8-7s8 2.6 8 7z'/%3E%3C/svg%3E") center / 56% no-repeat; }
.rf-review-link { margin-top: 4px; }
@media (max-width: 768px) { .rf-review-photo { width: 72px; height: 72px; } }

/* Dentist referrals: practice team photo on the right-hand side of the card */
.rf-review-team { flex: 0 0 auto; align-self: center; display: block; width: clamp(220px, 26vw, 300px); height: auto; aspect-ratio: 800 / 592; object-fit: cover; border-radius: 8px; }
@media (max-width: 768px) { .rf-review-team { width: 100%; max-width: 320px; margin-top: 16px; } }
