/* Menu overlay */

.menu-overlay .blackbox {
  opacity: 0;
  visibility: hidden;
  z-index: -1;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.96);
}

.menu-overlay.trigged {
  position: relative;
  z-index: 10;
}

.menu-overlay.trigged .blackbox {
  opacity: 1;
  visibility: visible;
  z-index: 10;
  padding-bottom: 80px;
}

.menu-overlay.trigged header.header {
  box-shadow: none;
}

.menu-overlay:hover {
  opacity: 0.96;
  background: #FFF;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue: #8CB4E8;
  --black: #111921;
  --text: #333333;
  --white: #FFFFFF;
  --radius: 4px;
  --content-width: 1640px;
  --side-margin: 140px;
  --full-width: 1880px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}
.cnt{
  width: var(--content-width);
  max-width: calc(100% - 40px);
  margin: 0 auto;
}

/* ── Skip Link ── */

.skip-to-content {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--black);
  color: var(--white);
  font-size: 14px;
}

.skip-to-content:focus {
  left: 0;
}

/* ── Header ── */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  transition: box-shadow 0.3s ease;
}

/* .header.scrolled {
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
} */
.header.scrolled .header-nav {
    padding: 10px 0;
}
.header.scrolled .header-logo img {
    height: 42px;
}
.header.scrolled .header-top {
    padding: 19px 0 18px;
}
.header.scrolled {
}
.header.scrolled {
}


.header-inner {
  margin: 0 auto;
  padding: 0;
  max-width: calc(100% - 40px);
  width: var(--content-width);
}

.header-spacer {
  height: 226px;
}

/* Top Row */

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 39px 0;
  transition: padding 0.5s ease;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 42px;
}

.header-utility {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--black);
  transition: color 0.2s;
}

.header-utility:hover {
  color: var(--blue);
}

.header-utility svg {
  flex-shrink: 0;
}

.mobile-utility-bar {
  display: none;
}

.header-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.header-logo img {
  height: 67px;
  width: auto;
  transition: height 0.5s ease;
}
@media (max-width: 1024px) {
  .header-logo img {
    height: 43px;
  }
}

.header-right-btns {
  display: flex;
  align-items: center;
  gap: 24px;
}
.header-right-btns > a,
.header-right-btns .book-cta > a {
  padding-block: 11px;
}

.btn-outline-blue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  border: 1px solid var(--blue);
  border-radius: 2px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--blue);
  transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
      gap: 16px;
}

.btn-outline-blue:hover {
  background: var(--blue);
  color: var(--white);
}

@media (max-width: 640px) {
  .btn-outline-blue {
    padding: 16px 21px;
  }
}

.btn-solid-black {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 24px;
  background: var(--black);
  border: 1px solid var(--black);
  border-radius: 2px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
  cursor: pointer;
  transition: background 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

.btn-solid-black:hover {
  background: #344C65;
  border-color: #344C65;
}

/* ── Arrow CTA — CSS-drawn shaft + chevron that extends on hover ──
   Ported from the TIO design-system `.btn-arrow` pattern. The arrow is drawn
   with pseudo-elements (not the `&rarr;` glyph, which is hidden via font-size:0)
   and uses currentColor, so it inherits each button's text colour in every
   state. On hover of the containing <a>/<button> the shaft lengthens and the
   head slides out. Treatment cards are <a> wrappers, so card hover triggers it
   too. This unifies every `<span class="arrow">` CTA across all pages. */
/* Figma design system (node 3555:365): the arrow's LEFT edge (tail) is fixed —
   the button keeps a constant 16px gap to the text — and on hover the shaft
   extends RIGHTWARD from 8px to 16px (300ms ease-in-out), the head sliding out
   with it. Box is 8px (rest width); the head overflows right into the button's
   padding on hover, so the tail/gap never move. */
.arrow {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  font-size: 0;
  vertical-align: middle;
  flex-shrink: 0;
}

.arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 1px;
  margin-top: -0.5px;
  background: currentColor;
  transition: width 0.3s ease-in-out;
}

.arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 3px;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(-45deg);
  transition: left 0.3s ease-in-out;
}

a:hover .arrow::before,
button:hover .arrow::before,
.home-treat-card:hover .arrow::before {
  width: 16px;
}

a:hover .arrow::after,
button:hover .arrow::after,
.home-treat-card:hover .arrow::after {
  left: 11px;
}

/* Divider */

.header-divider {
  height: 1px;
  background: var(--blue);
}

/* Nav Row */

.header-nav {
  display: flex;
  justify-content: center;
  padding: 28px 0;
  transition: padding 0.5s ease;
}

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

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 0;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--black);
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--blue);
}

.nav-chevron {
  flex-shrink: 0;
  transition: transform 0.25s;
}

.nav-item:hover .nav-chevron,
.nav-item.open .nav-chevron {
  transform: rotate(180deg);
}

/* Mega Menu */

.mega-menu {
  position: absolute;
  top: 100%;
  /* left: 50%;
  transform: translateX(-50%); */
  min-width: 640px;
  padding-top: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s, visibility 0.25s;
}

.nav-item:hover > .mega-menu,
.nav-item.open > .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mega-menu-inner {
  display: flex;
  gap: 48px;
  max-width: var(--content-width);
  margin: 0 auto;
  background: transparent;
  border: 0px solid rgba(140, 180, 232, 0.2);
  border-radius: var(--radius);
  padding: 0px 0px;
  /* box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08); */
}

.mega-col {
  min-width: 120px;
}

.mega-heading {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 16px;
}

.mega-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mega-col a {
  font-weight: 500;
  font-size: 14px;
  line-height: 100%;
  color: var(--text);
  transition: color 0.2s;
}

.mega-col a:hover,
.mega-col a.active {
  color: var(--blue);
}

/* Mobile elements — hidden on desktop */

.hamburger,
.mobile-call-btn,
.mobile-menu {
  display: none;
}

/* Hamburger button */

.hamburger {
  position: absolute;
  right: 0px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 50%;
  height: 2px;
  background: var(--black);
  border-radius: 1px;
  position: absolute;
  transition: transform 0.3s, opacity 0.3s, top 0.3s, bottom 0.3s;
}

/* Line 1 */
.hamburger span:nth-child(1) { top: 0; width: 25%;    left: 25%; }
.hamburger span:nth-child(2) { top: 0; right: 0; }
/* Line 2 */
.hamburger span:nth-child(3) { top: 7px; left: 0; }
.hamburger span:nth-child(4) { top: 7px; right: 0; }
/* Line 3 */
.hamburger span:nth-child(5) { top: 15px; width: 10%;     left: 45%;}
.hamburger span:nth-child(6) { top: 15px; right: 0; }

/* Active — split X */
.hamburger.active span:nth-child(1) { top: 9px; transform: rotate(45deg); left: 7%; width: 50%; transform-origin: right center; }
.hamburger.active span:nth-child(2) { top: 9px; transform: rotate(-45deg); transform-origin: left center; }
.hamburger.active span:nth-child(3) { opacity: 0; transform: translateX(-6px); }
.hamburger.active span:nth-child(4) { opacity: 0; transform: translateX(6px); }
.hamburger.active span:nth-child(5) { top: 8px; width: 45%; left: 2px;transform: rotate(-45deg); transform-origin: right center; }
.hamburger.active span:nth-child(6) { bottom: 9px; top: 7px; transform: rotate(45deg); transform-origin: left center; }

/* Mobile Menu */

.mobile-menu {
  position: fixed;
  top: 55px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: var(--white);
  padding-top: 30px;
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.35s ease, visibility 0.35s ease;
}

.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
}

.mobile-menu-items {
  padding: 24px;
}

.mobile-menu-utils {
  display: flex;
  display: none;
  align-items: center;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(209, 211, 212, 0.2);
  margin-bottom: 16px;
}

.mobile-menu-utils a {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--black);
}

.mobile-menu-utils svg {
  flex-shrink: 0;
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 0;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--black);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.mobile-menu-dropdown + .mobile-menu-link,
.mobile-menu-link + .mobile-menu-link {
  border-top: 1px solid rgba(209, 211, 212, 0.2);
}

.mobile-menu-link.active {
  color: var(--blue);
}

.mobile-menu-chevron {
  transition: transform 0.25s;
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-chevron {
  transform: rotate(180deg);
}

.mobile-menu-sub {
  padding: 0 0 12px 24px;
}

.mobile-sub-heading {
  display: block;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--black);
  margin: 20px 0 8px;
}

.mobile-sub-heading:first-child {
  margin-top: 4px;
}

.mobile-menu-sublink {
  display: block;
  padding: 8px 0;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--black);
}

.mobile-menu-sublink.active {
  color: var(--blue);
}

.mobile-menu-cta {
  width: 100%;
  margin-top: 24px;
  text-align: center;
  padding: 14px 24px;
}

/* ── Typography ── */

.headline {
  font-weight: 300;
  font-size: 40px;
  line-height: 120%;
}

.sbs-full-text p,
.text-section p,
.blog-card-content p,
.testimonial-quote-icon + p,
.team-card-info p {
  font-weight: 300;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: -0.01em; 
}
.sbs-full-text p a{
  color: #2F6FBF;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
    font-weight: 500;
    transition: color 0.2s ease;
}
.sbs-full-text p a:hover {
    color: var(--black);
    text-decoration: none;
}

/* ── Scroll Animations ── */

.sbs,
.inset-hero {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.sbs.visible,
.inset-hero.visible {
  opacity: 1;
  transform: none;
}

/* ── Inset Hero ── */

.inset-hero {
  width: var(--full-width);
  max-width: calc(100% - 40px);
  margin: 0 auto;
}

.inset-hero-inner {
  position: relative;
  width: 100%;
  height: 652px;
  border-radius: var(--radius);
  overflow: hidden; 
  background: linear-gradient(157deg, rgba(244, 245, 245, 0.3) 23%, rgba(209, 211, 212, 0.3) 100%);
  z-index: 1;
}

.inset-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(157deg, rgba(244, 245, 245, 0.3) 23%, rgba(209, 211, 212, 0.3) 100%);
  opacity: 0.3;
  z-index: 1;
  border-radius: var(--radius);
}

.inset-hero-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 55.32%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.hero-logo-slider {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 24px;
  box-sizing: border-box;
  position: absolute;
  width: 50%;
  right: 50px;
  bottom: 50px;
}

.hero-logo-arrow {
  flex-shrink: 0;
}

.hero-logo-slider--sbs {
  position: relative;
  top: auto;
  right: auto;
  width: 100%;
  height: 100%;
  min-height: 300px;
  border-radius: var(--radius);
  overflow: visible;
}

.hero-logo-slider--sbs .hero-logo-item {
  padding: 0px 40px;
}


.hero-logo-track {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.hero-logo-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 40px;
  background: #fff;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.hero-logo-item img {
  max-width: 100%;
  max-height: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
}

@keyframes slideInLeft {
  from { transform: translateX(60px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

@keyframes slideInRight {
  from { transform: translateX(-60px); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}

.hero-logo-slide-left {
  animation: slideInLeft 0.35s ease forwards;
}

.hero-logo-slide-right {
  animation: slideInRight 0.35s ease forwards;
}

.hero-logo-nav {
  display: flex;
  gap: 8px;
}

@media (max-width: 768px) {
  .hero-logo-slider {
    position: static;
    width: 100%;
    height: 60%;
    gap: 24px;
    padding: 10px;
  }
  .hero-logo-slider--sbs {
    min-height: 170px;
  }
  .hero-logo-item {
    padding: 40px 40px;
  }
  .hero-logo-item img {
    max-height: 140px;
  }
}

.inset-hero-play-btn {
  position: absolute;
  top: 0;
  right: 0;
  width: 55.32%;
  height: 100%;
  z-index: 3;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inset-hero-play-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--black, #111921);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 20px 12px 14px;
  border-radius: 100px;
  pointer-events: none;
  transition: background 0.2s;
}

.inset-hero-play-icon {
  width: 28px;
  height: 28px;
  background: var(--black, #111921);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.inset-hero-play-btn:hover .inset-hero-play-label {
  background: rgba(255, 255, 255, 1);
}

@media (max-width: 768px) {
  .inset-hero-play-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 36%;
  }
}

.inset-hero-content {
  position: absolute;
  left: 120px;
  bottom: 120px;
  width: 440px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 2;
}

.inset-hero-content h1 {
  font-weight: 300;
  font-size: 40px;
  line-height: 120%;
  color: #000000;
}

.inset-hero-content p {
  font-weight: 300;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: -0.01em;
  color: #000000;
}

@media (max-width: 1440px) {
  .inset-hero-content {
    left: 60px;
    bottom: 60px;
  }
}

/* ── Section SBS (Side by Side) ── */

.sbs {
  width: var(--content-width);
  max-width: calc(100% - 40px);
  margin: 160px auto 0;
}

.sbs-inner {
  display: flex;
  align-items: center;
  gap: 160px;
}

.sbs-image {
  flex-shrink: 0;
  width: 919px;
  max-width: 56%;
}

.sbs-image img {
  height: auto;
}

.sbs-content {
  width: 560px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sbs-content h2 {
  font-weight: 300;
  font-size: 40px;
  line-height: 120%;
  color: var(--text);
}

.sbs-content p {
  font-weight: 300;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: -0.01em;
  color: var(--text);
}

.sbs-content .btn-discover {
  align-self: flex-start;
}

/* ── Shared Section Styles ── */

.benefits-intro h2,
.treatments-intro h2,
.meet-team-intro h2,
.testimonials-intro h2,
.instagram-intro h2,
.blog-intro h2,
.problems-intro h2,
.ba-intro h2,
.why-choose-head h2,
.text-section h2,
.sbs-full-text h2,
.faq h2 {
  font-weight: 300;
  font-size: 40px;
  line-height: 120%;
  color: #000;
}

.benefits-intro h2 + p,
.treatments-intro h2 + p,
.meet-team-intro h2 + p,
.testimonials-intro h2 + p,
.instagram-intro h2 + p,
.blog-intro h2 + p,
.problems-intro h2 + p,
.ba-intro h2 + p,
.why-choose-head h2 + p {
  font-weight: 300;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: -0.01em;
  color: #000;
  max-width: 1036px;
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--black);
  transition: color 0.2s;
}

.read-more-link:hover {
  color: var(--blue);
}

.btn-discover {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 14px 32px;
  border: 1px solid var(--black);
  border-radius: 2px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--black);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.3s ease-in-out, color 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

.btn-discover:hover {
  background: var(--blue);
  border-color: transparent;
  color: var(--white);
}

.carousel-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: var(--content-width);
  max-width: calc(100% - 40px);
  margin: 0 auto;
}

.carousel-nav {
  display: flex;
  gap: 16px;
}

.carousel-btn {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--black);
  border-radius: 2px;
  background: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--black);
  transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}

.carousel-btn:hover {
  background: var(--black);
  color: var(--white);
}

/* ── Benefits ── */

.benefits {
  width: var(--content-width);
  max-width: calc(100% - 40px);
  margin: 160px auto 0;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.benefits-intro {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1155px;
}

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

.benefit-item p {
  font-weight: 300;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: -0.01em;
  color: #000;
}

.benefit-item strong {
  font-weight: 600;
  color: var(--blue);
}

/* ── SBS Full Width (Cost) ── */

.sbs-full {
  position: relative;
  width: var(--full-width);
  max-width: calc(100% - 40px);
  margin: 160px auto 0;
  /* min-height: 820px; */
}

.sbs-full-bg {
  position: absolute;
  inset: 0;
  background: var(--blue);
  opacity: 0.1;
  border-radius: var(--radius);
}

.sbs-full-inner {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 100%;
  min-height: 820px;
}

.sbs-full-text {
  position: absolute;
  left: 120px;
  bottom: 120px;
  width: 440px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 2;
}

.sbs-full-image {
  position: absolute;
  right: 0;
  top: 0;
  width: 1040px;
  max-width: 55%;
  height: 100%;
}

.sbs-full-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}
.sbs-full .btn-outline-blue{
      align-self: flex-start;
}

/* ── Video Block ── */

.video-block {
  width: var(--full-width);
  max-width: calc(100% - 40px);
  margin: 160px auto 0;
}

.video-block-inner {
  position: relative;
  width: 100%;
  height: 820px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #1a1a1a;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)), url("images/video-poster.jpg") center/cover no-repeat;
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white);
}

.video-play span {
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── FAQ ── */

.faq {
  width: var(--content-width);
  max-width: calc(100% - 40px);
  margin: 160px auto 0;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 64px;
}
@media (max-width: 640px) {
  .faq-list {
      display: flex;
      flex-direction: column;
      gap: 34px;
  }
}

.faq-item {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 150%;
  letter-spacing: -0.01em;
  color: var(--black);
  text-align: left;
}

.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.3s;
}

.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-width: 1160px;
}

.faq-answer p {
  font-weight: 300;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: -0.01em;
  color: #000;
}

.faq-line {
  border: none;
  height: 1px;
  background: var(--blue);
}

/* ── Text Section ── */

.text-section {
  max-width: 1399px;
  width: calc(100% - 40px);
  margin: 160px auto 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.text-section h2 {
  max-width: 1041px;
}

.text-cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
}

.text-cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 41px;
}

.text-section > p:last-child {
  margin-top: 40px;
}

.text-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.text-col h3 {
  font-weight: 600;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: -0.01em;
  text-transform: capitalize;
  color: #000;
}

/* ── Treatments Carousel ── */

.treatments-carousel {
  width: var(--full-width);
  max-width: calc(100% - 40px);
  margin: 160px auto 0;
  display: flex;
  flex-direction: column;
}

.treatments-carousel .treatments-intro {
  margin-bottom: 96px;
}

.treatments-carousel .treatments-cards {
  margin-bottom: 80px;
}

.treatments-intro {
  width: var(--content-width);
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.treatments-cards {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0;
  margin-left: max(0px, calc((100% - var(--content-width)) / 2));
  margin-right: calc(-1 * max(20px, (100vw - var(--full-width)) / 2));
}

.treatments-cards::-webkit-scrollbar { display: none; }

.treatment-card {
  position: relative;
  flex: 0 0 860px;
  width: 860px;
  min-height: 672px;
  border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: start;
  display: block;
  color: var(--black);
}

.treatment-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.treatment-card-gradient {
  position: absolute;
  inset: 0;
  /* Strong white bottom-fade so the dark card text stays legible over ANY photo
     (was only 0.5 → illegible over busy images). Matches the site's own mobile
     card gradient. Softer BOTTOM BAND: transparent through the top ~40% (photo
     shows), ramping only in the lower band behind the text (which sits ~55%+),
     topping out at 0.88 (not near-white) so the image isn't washed out while the
     dark label/heading/button stay legible. */
  background: linear-gradient(180deg, rgba(255,255,255,0) 40%, rgba(255,255,255,0.6) 58%, rgba(255,255,255,0.88) 100%);
}

.treatment-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 88px 120px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.treatment-card-content > span {
  font-weight: 700;
  font-size: 16px;
  line-height: 110%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
}

.treatment-card-content h3 {
  font-weight: 300;
  font-size: 32px;
  line-height: 120%;
  max-width: 340px;
  color: var(--text);
}

.btn-discover-sm {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-weight: 700;
  font-size: 16px;
  line-height: 110%;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--black);
  padding: 16px 32px;
  border: 1px solid var(--black);
  border-radius: 2px;
  margin-top: 32px;
  width: fit-content;
  transition: background 0.3s ease-in-out, color 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

.treatment-card:hover .btn-discover-sm {
  background: var(--black);
  color: var(--white);
}

/* ── Meet The Orthodontists Hero ── */

.ortho-hero {
  width: var(--full-width);
  max-width: calc(100% - 40px);
  margin: 25px auto 0;
  border-radius: var(--radius);
  /* background: linear-gradient(156deg, #D1D3D4, #DADCDD); */
  background: linear-gradient(120deg, rgba(209, 211, 212, 0.3) 22.61%, rgba(218, 220, 221, 0.3) 72.24%);
  overflow: hidden;
}

/* New stacked layout: full-width banner image on top, split text row below.
   Uses brand-new class names (team-banner-wrap / team-text-row) so it never
   collides with the legacy .ortho-hero-image / .ortho-hero-text rules. */
.ortho-hero--stacked {
  background: linear-gradient(120deg, rgba(209, 211, 212, 0.3) 22.61%, rgba(218, 220, 221, 0.3) 72.24%);
  padding: 0;
}

.ortho-hero-inner.ortho-hero-inner--stacked {
  display: block;
  min-height: 0;
}

.team-banner-wrap {
  width: 100%;
  line-height: 0;
}

.team-banner-wrap img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius) var(--radius) 0 0;
}

.team-text-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 48px 56px;
}

.team-text-row .ortho-hero-text-left {
  display: flex;
  flex-direction: column;
  max-width: 620px;
}

.team-text-row .ortho-hero-title {
  margin-bottom: 8px;
}

.team-text-row .btn-discover {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .team-text-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
    gap: 20px;
  }
}

.ortho-hero-inner {
  position: relative;
  display: flex;
  min-height: 937px;
}


.ortho-hero-text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  margin-left: 110px;
  padding-bottom: 120px; 
  max-width: 468px;
  align-self: flex-end;
}

.ortho-hero-text .btn-discover {
  align-self: flex-start;
}

.ortho-hero-label {
  font-weight: 700;
  font-size: 16px;
  line-height: 110%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 27px;
}

.ortho-hero-title {
  font-weight: 300;
  font-size: 40px;
  line-height: 120%;
  color: var(--text);
  margin-bottom: 24px;
}

.ortho-hero-desc {
  font-weight: 300;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 80px;
}

@media (max-width: 1024px) {
  .ortho-hero-desc {
    margin-bottom: 50px;
  }
  .ortho-hero {
    margin-top: 25px;
  }
}

.ortho-hero-image {
  position: absolute;
  left: 35.638%;
  bottom: 0;
  width: 60%;
  aspect-ratio: 1128 / 854;
}

.ortho-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom right;
}

@media (max-width: 1440px) {
  .ortho-hero-inner {
    min-height: 700px;
  }
  .ortho-hero-text {
    margin-left: 50px;
  }
}

.ortho-name-pills {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.ortho-pill {
  position: absolute;
  background: var(--white);
  padding: 12px 24px;
  border-radius: 2px;
  font-weight: 700;
  font-size: 12px;
  line-height: 110%;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #414750;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* Folded-ribbon corner flap (Figma vector, ~11×15px) */
.ortho-pill::before {
  content: "";
  position: absolute;
  top: 0;
  width: 11px;
  height: 15px;
  background: var(--white);
}

.ortho-pill--left::before {
  left: -10px;
  border-top-left-radius: 2px;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.ortho-pill--right::before {
  right: -10px;
  border-top-right-radius: 2px;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

#pill-william { left: -2.84%; top: 20.37%; }
#pill-bill { left: 61.4%; top: 2.81%; }
#pill-patty { left: 85.46%; top: 19.67%; }

/* ── CTA Banner ── */

/* Text/CTA + image split (inset-page design): copy on a light panel LEFT,
   image RIGHT — NOT a full-bleed photo with overlaid text (which is unreadable
   over a busy image). Mobile stacks (below). */
.cta-banner {
  position: relative;
  width: var(--full-width);
  max-width: calc(100% - 40px); 
  margin: 25px auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 440px;
  display: flex;
  align-items: center;
  background: #EFF7F9;
}

/* Image confined to the RIGHT half, absolutely positioned so its intrinsic
   height can't drive the banner height (the content + min-height do that). */
.cta-banner-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cta-banner-content {
  position: relative;
  z-index: 1;
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 250px var(--side-margin);
}

.cta-banner-content h2 {
  font-weight: 300;
  font-size: 40px;
  line-height: 120%;
  color: #000;
}

.cta-banner-content p {
  font-weight: 300;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: -0.01em;
  color: var(--text);
}

.cta-banner-btn {
  align-self: flex-start;
  margin-top: 16px;
  padding: 17px 40px;
  font-size: 18px;
  letter-spacing: 0.02em;
  gap: 16px;
}

@media (max-width: 1440px) {
  .cta-banner-content {
    padding: 150px var(--side-margin);
  }
}
@media (max-width: 767px) {
  .cta-banner-btn {
    padding: 19px 30px;
    font-size: 16px;
  }
}


/* ── Meet the Team ── */

.meet-team {
  width: var(--full-width);
  max-width: calc(100% - 40px);
  margin: 160px auto 0;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.meet-team-intro {
  width: var(--content-width);
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.team-cards {
  display: flex;
  gap: 40px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0;
  margin-left: max(0px, calc((100% - var(--content-width)) / 2));
  margin-right: calc(-1 * max(20px, (100vw - var(--full-width)) / 2));
}

.team-cards::-webkit-scrollbar { display: none; }

.team-card {
  flex-shrink: 0;
  width: 440px;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: start;
}

.team-card-image {
  width: 100%;
  aspect-ratio: 44 / 52;
  background: #d9d9d9;
}

.team-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card-body {
  padding: 32px 48px 48px 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.team-card-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.team-card-info h3 {
  font-weight: 300;
  font-size: 24px;
  line-height: 120%;
  color: #000;
}

/* ── Blog ── */

.blog-section {
  width: var(--full-width);
  max-width: calc(100% - 40px);
  margin: 160px auto 0;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.blog-intro {
  width: var(--content-width);
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.blog-cards {
  display: flex;
  gap: 40px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0;
  margin-left: max(0px, calc((100% - var(--content-width)) / 2));
  margin-right: calc(-1 * max(20px, (100vw - var(--full-width)) / 2));
}

.blog-cards::-webkit-scrollbar { display: none; }

.blog-card {
  flex-shrink: 0;
  width: 680px;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: start;
}

.blog-card-image {
  width: 100%;
  height: 423px;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: 48px 80px 64px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blog-card-body > span {
  font-weight: 700;
  font-size: 16px;
  line-height: 110%;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--black);
}

.blog-card-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.blog-card-content h2,
.blog-card-content h3 {
  font-weight: 300;
  font-size: 24px;
  line-height: 120%;
  color: #000;
  max-width: 524px;
}

/* ── Before & After ── */

.ba-section {
  width: var(--full-width);
  max-width: calc(100% - 40px);
  margin: 160px auto 0;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.ba-intro {
  width: var(--content-width);
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ba-cards {
  display: flex;
  gap: 39px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0;
  margin-left: max(0px, calc((100% - var(--content-width)) / 2));
  margin-right: calc(-1 * max(20px, (100vw - var(--full-width)) / 2));
}

.ba-cards::-webkit-scrollbar { display: none; }

.ba-card {
  flex-shrink: 0;
  width: 440px;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: start;
}

.ba-photos {
  position: relative;
  height: 203px;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
@media (max-width: 640px) {
  .ba-photos {
    position: relative;
    height: 163px;
  }
}

.ba-photo {
  position: absolute;
  inset: 0;
}

.ba-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.ba-before {
  z-index: 1;
  clip-path: inset(0 50% 0 0);
}

.ba-slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 100%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
}

.ba-slider-handle::before {
  content: '';
  position: absolute;
  width: 2px;
  height: 100%;
  background: var(--black);
}

.ba-slider-handle::after {
  content: '';
  position: relative;
  width: 32px;
  height: 26px;
  border-radius: 4px;
  background: var(--black);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='12' viewBox='0 0 20 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 1L1 6l5 5M14 1l5 5-5 5' fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.ba-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ba-info h3 {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 110%;
  color: #000;
}

.ba-details {
  display: flex;
  gap: 63px;
}

.ba-detail {
  display: flex;
  flex-direction: column;
}

.ba-detail-full {
  display: flex;
  flex-direction: column;
}

.ba-label {
  font-weight: 500;
  font-size: 12px;
  line-height: 150%;
  letter-spacing: -0.01em;
  color: #000;
}

.ba-value {
  font-weight: 300;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: -0.01em;
  color: #000;
}

/* ── Testimonials ── */

.testimonials {
  width: 1760px;
  max-width: calc(100% - 40px);
  margin: 160px auto 0;
  display: flex;
  flex-direction: column;
}

.testimonials-intro {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 64px;
}

.testimonials-cards {
  display: flex;
  gap: 40px;
  margin-bottom: 80px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.testimonials-cards::-webkit-scrollbar { display: none; }

.testimonial-card {
  flex: 0 0 560px;
  width: 560px;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  padding: 64px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  scroll-snap-align: start;
}

.testimonial-quote-icon {
  font-size: 72px;
  line-height: 0.8;
  color: var(--blue);
  opacity: 0.1;
  margin-bottom: -56px;
}

.testimonial-card p + p {
  font-weight: 600;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: -0.01em;
  text-transform: capitalize;
  color: #000;
}

/* ── Instagram ── */

.instagram-section {
  width: var(--content-width);
  max-width: calc(100% - 40px);
  margin: 160px auto 0;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.instagram-intro {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.instagram-grid {
  display: flex;
  gap: 40px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-right: calc(-1 * max(20px, (100vw - var(--content-width)) / 2));
}

.instagram-grid::-webkit-scrollbar { display: none; }

.instagram-item {
  position: relative;
  flex: 0 0 310px;
  width: 310px;
  aspect-ratio: 320 / 432;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  scroll-snap-align: start;
}

.ig-likes {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.instagram-item .ig-likes svg {
  width: 14px;
  height: 14px;
  opacity: 1;
  flex-shrink: 0;
}

.instagram-item svg {
  width: 32px;
  height: 32px;
  opacity: 0.2;
}

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

/* ── Footer ── */

.site-footer {
  margin-top: 160px;
  /* background: linear-gradient(155deg, rgba(209,211,212,0.3), rgba(218,220,221,0.3));
  border-radius: var(--radius); */

}

.page-contact ~ * .site-footer,
main:has(.page-contact) .site-footer,
main:has(.page-booking) .site-footer,
main:has(.page-free-consultation) .site-footer {
  margin-top: 0;
}

.footer-inner {
  /* width: var(--content-width); */
  max-width: calc(100% - 40px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 64px;
  padding: 120px 0;
  position: relative;
}
.footer-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  opacity: 0.3;
  background: linear-gradient(117deg, #F4F5F5 50.17%, #D1D3D4 98.17%);
  z-index: -1;
  transform: rotate(180deg);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.footer-heading-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-heading-block h2 {
  font-weight: 300;
  font-size: 40px;
  line-height: 120%;
  letter-spacing: 0;
  color: var(--text);
}

.footer-heading-block p {
  font-weight: 300;
  font-size: 16px;
  line-height: 150%;
  color: var(--text);
  max-width: 600px;
}

.footer-locations {
  display: flex;
  gap: 0;
}

.footer-location-card {
  flex: 1;
  border: 1px solid #8CB4E8;
  border-radius: 0;
  padding: 63px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  /* background: var(--white); */
  border-right: none;
}

.footer-location-card:first-child {
  border-radius: var(--radius) 0 0 var(--radius);
}

.footer-location-card:last-child {
  border-radius: 0 var(--radius) var(--radius) 0;
  border-right: 1px solid #8CB4E8;
}

.footer-location-card h3 {
  font-weight: 500;
  font-size: 24px;
  line-height: 150%;
  letter-spacing: -0.01em;
  color: #000;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 300;
  font-size: 16px;
  line-height: 150%;
  color: var(--text);
}

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-item a {
  color: var(--text);
  text-decoration: none;
}

.footer-contact-item a:hover {
  color: var(--blue);
}

.footer-map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-map-link:hover {
  opacity: 0.7;
}

.footer-map {
  display: none;
}

.footer-map iframe {
  width: 100%;
  height: 100%;
  min-height: 500px;
  border-radius: var(--radius);
  display: block;
}

.footer-bottom {
  /* border-top: 1px solid #d9d9d9; */
}

.footer-bottom-inner {
  width: var(--content-width);
  max-width: calc(100% - 40px);
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 100px 0;
}

.footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-tio {
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  color: var(--black);
  letter-spacing: -0.02em;
}

.footer-tio img {
  display: block;
  height: 48px;
  width: auto;
}

.footer-copyright-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Onest', sans-serif;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--black);
}

.footer-divider {
  color: #ccc;
}

.footer-bottom-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  transition: opacity 0.2s;
}

.footer-social a:hover { opacity: 0.6; }

.footer-legal {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Onest', sans-serif;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--black);
}

.footer-legal a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--black);
}

/* ── Responsive ── */

@media (max-width: 1440px) {
  :root {
    --side-margin: 80px;
  }
  .footer-inner {
    max-width: 100%;
    /* padding-inline: var(--side-margin); */
  }
  .footer-inner .cnt {
    padding: 0;
  }
  .header-inner {
    /* padding: 0 var(--side-margin); */
  }

  /* .nav-list {
    gap: 28px;
  } */

  .sbs-inner {
    gap: 80px;
  }
  .sbs-full-inner {
    min-height: 620px;
  }
  .sbs-full-text {
    left: 55px;
    bottom: 70px;
  }
}

@media (max-width: 1024px) {
  :root {
    --side-margin: 40px;
  }

  .header-inner {
    padding: 0 20px;
  }

  .header-nav,
  .header-left,
  .header-right-btns,
  .header-divider {
    display: none;
  }

  .mobile-utility-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 8px 20px;
    background: #F4F5F5;
  }

  .mobile-utility {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--black);
  }

  .mobile-utility svg {
    flex-shrink: 0;
  }

  .mobile-utility[href^="tel"] svg {
    width: 9px;
    height: 9px;
  }

  .header-logo {
    position: static;
    left: auto;
    transform: none;
    margin: 0;
  }

  .header-top {
    position: relative;
    justify-content: center;
    padding: 17px 0;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  .header-spacer {
    height: 110px;
  }

  .inset-hero-inner {
    height: auto;
    aspect-ratio: auto;
  }

  .inset-hero-image {
    position: relative;
    width: 100%;
    height: 400px;
  }

  .inset-hero-content {
    position: relative;
    left: auto;
    top: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    padding: 40px var(--side-margin);
  }
  

  .inset-hero-overlay {
    display: none;
  }

  .sbs {
    margin-top: 80px;
  }

  .sbs-inner {
    flex-direction: column !important;
    gap: 40px;
  }

  .sbs-image {
    width: 100%;
    max-width: 100%;
  }

  .sbs-content {
    width: 100%;
  }

  .benefits,
  .faq,
  .text-section,
  .testimonials,
  .instagram-section {
    margin-top: 80px;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .sbs-full {
    margin-top: 80px;
    min-height: auto;
  }

  .sbs-full-inner {
    flex-direction: column-reverse;
    min-height: auto;
  }

  .sbs-full-text {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    padding: 40px 25px;
  }

  .sbs-full-image {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 400px;
  }

  .video-block {
    margin-top: 80px;
  }

  .video-block-inner {
    height: 400px;
  }

  .text-cols-2 {
    grid-template-columns: 1fr;
  }

  .text-cols-3 {
    grid-template-columns: 1fr;
  }

  .treatments-carousel,
  .meet-team,
  .blog-section,
  .ba-section {
    margin-top: 80px;
  }

  .treatments-carousel .treatments-intro {
    margin-bottom: 48px;
  }

  .treatments-carousel .treatments-cards {
    margin-bottom: 48px;
  }

  .testimonials-intro {
    margin-bottom: 48px;
  }

  .treatment-card {
    min-height: 380px;
  }

  .treatment-card-content {
    padding: 32px;
    gap: 24px;
  }

  .ortho-hero-inner {
    flex-direction: column;
    min-height: auto;
  }

  .ortho-hero-text {
    padding: 40px;
    margin-left: 0;
    max-width: 100%;
    gap: 0px;
  }

  .ortho-hero-image {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 374 / 350;
  }

  .ortho-hero-image img {
    object-fit: cover;
    object-position: top center;
  }

  /* Mobile pill positions (Figma mobile artboard, image box 374×350) */
  #pill-william { left: 6.4%; top: 74.3%; }
  #pill-bill { left: 36.6%; top: 57.4%; }
  #pill-patty { left: 61.2%; top: 78.6%; }

  /* Fold directions swap on mobile: William → left, Patty → right */
  #pill-william::before {
    left: -7px;
    right: auto;
    border-radius: 2px 0 0 0;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
  }

  #pill-patty::before {
    right: -8px;
    left: auto;
    border-radius: 0 2px 0 0;
    clip-path: polygon(0 0, 100% 0, 0 100%);
  }

  .ortho-hero-title {
    font-size: 32px;
  }

  .team-card {
    width: 320px;
  }

  .blog-card {
    width: 320px;
  }

  .blog-card-image {
    height: 200px;
  }

  .blog-card-body {
    padding: 24px;
  }

  .ba-card {
    width: 320px;
  }

  .testimonials-cards {
    margin-bottom: 48px;
  }

  .testimonial-card {
    flex: 0 0 440px;
    width: 440px;
    padding: 40px;
  }

  .cta-banner {
    margin-top: 25px;
    min-height: 0;
    aspect-ratio: auto;
    flex-direction: column;
    align-items: stretch;
    background: #EFF7F9;
  }

  .cta-banner-bg {
    position: relative;
    order: 2;
    width: 100%;
    height: 108vw;
    object-position: center bottom;
  }

  .cta-banner-content {
    order: 1;
    width: 100%;
    max-width: none;
    margin-left: 0;
    padding: 60px 40px;
    gap: 25px;
  }

  .footer-inner {
    flex-direction: column;
    padding: 60px 0 0;
  }
  
  .footer-inner .cnt {
      padding: 0 0px;
  }
  .footer-contact-item {
    gap: 8px;
    font-size: 14px;
  }
  .footer-contact-item a {
    word-break: break-all;
    font-size: 14px;
  }
  .footer-map-link {
    font-size: 14px;
  }

  .footer-locations {
    flex-direction: column;
  }

  .footer-location-card {
    border-right: 1px solid #8CB4E8 !important;
    border-radius: 0 !important;
  }

  .footer-location-card:first-child {
    border-radius: var(--radius) var(--radius) 0 0 !important;
  }

  .footer-location-card:last-child {
    border-radius: 0 0 var(--radius) var(--radius) !important;
    border-top: none;
  }

  .footer-location-card:not(:first-child) {
    border-top: none;
  }

  .site-footer {
    margin-top: 60px;
  }

  .footer-heading-block h2 {
    font-size: 32px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .footer-bottom-right {
    align-items: flex-start;
  }

  .carousel-footer {
    width: 100%;
    max-width: 100%;
    margin: 0;
    gap: 16px;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  :root {
    --side-margin: 20px;
  }

  .inset-hero {
    max-width: calc(100% - 16px);
  }
  

  .inset-hero-image {
    height: auto;
  }

  .inset-hero-content {
    padding: 55px 32px;
    width: 310px;
  }

  .inset-hero-content h1 {
    font-size: 32px;
  }

  .benefits-intro h2,
  .treatments-intro h2,
  .meet-team-intro h2,
  .testimonials-intro h2,
  .instagram-intro h2,
  .blog-intro h2,
  .problems-intro h2,
  .ba-intro h2,
  .why-choose-head h2,
  .text-section h2,
  .sbs-full-text h2,
  .faq h2 {
    font-size: 32px;
  }

  .sbs-content h2 {
    font-size: 32px;
  }

  .sbs {
    margin-top: 60px;
    max-width: calc(100% - 40px);
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .faq-question {
    font-size: 16px;
  }

  .treatments-cards {
    padding: 0;
  }

  .treatment-card {
    flex: 0 0 86vw;
    width: 86vw;
    min-height: 0;
    aspect-ratio: 7 / 11;
  }

  .treatment-card-gradient {
    background: linear-gradient(180deg, rgba(255,255,255,0) 24%, rgba(255,255,255,0.62) 52%, rgba(255,255,255,0.92) 100%);
  }

  .treatment-card-content {
    padding: 36px 32px;
    gap: 28px;
  }

  .treatment-card-content h3 {
    font-size: 28px;
  }

  .carousel-footer .btn-discover {
    padding:13px 12px;
  }

  .carousel-btn {
    width: 48px;
    height: 48px;
  }

  .ortho-hero {
    max-width: calc(100% - 16px);
  }

  .ortho-hero-text {
    padding: 32px 24px;
  }

  .ortho-hero-title {
    font-size: 28px;
  }

  .ortho-pill {
    font-size: 9px;
    padding: 7px 12px;
  }

  .ortho-pill::before {
    width: 8px;
    height: 11px;
  }

  .ortho-pill--left::before {
    left: -7px;
  }

  .ortho-pill--right::before {
    right: -7px;
  }

  .team-cards {
    padding: 0;
  }

  .team-card {
    flex: 0 0 86vw;
    width: 86vw;
  }

  .blog-cards {
    padding: 0;
  }

  .blog-card {
    flex: 0 0 86vw;
    width: 86vw;
  }

  .ba-cards {
    padding: 0;
  }

  .ba-card {
    width: 280px;
  }

  .cta-banner-content h2 {
    font-size: 32px;
  }

  .cta-banner {
    max-width: calc(100% - 16px);
  }

  .cta-banner-bg {
    height: 108vw;
  }

  .cta-banner-content {
    padding: 70px 24px;
  }

  .testimonial-card {
    flex: 0 0 300px;
    width: 300px;
    padding: 32px;
  }

  .footer-location-card {
    padding: 24px 15px;
  }

  .footer-copyright-row {
    flex-wrap: wrap;
  }

  .meet-team,
  .blog-section,
  .ba-section,
  .testimonials,
  .instagram-section,
  .treatments-carousel {
    margin-top: 60px;
  }

  .instagram-grid {
    gap: 8px;
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  .inset-hero-content {
    width: 100%;
  }

  .benefits-intro h2,
  .treatments-intro h2,
  .meet-team-intro h2,
  .testimonials-intro h2,
  .instagram-intro h2,
  .blog-intro h2,
  .problems-intro h2,
  .ba-intro h2,
  .why-choose-head h2,
  .text-section h2,
  .sbs-full-text h2,
  .faq h2 {
    font-size: 28px;
  }

  .mobile-call-btn {
    display: none;
  }

  .cta-banner-content h2 {
    font-size: 28px;
  }

  .treatment-card {
    min-height: 420px;
  }

  .treatment-card-content {
    padding: 40px;
  }

  .treatment-card-content h3 {
    font-size: 20px;
  }

  .ortho-hero-title {
    font-size: 24px;
  }

  .testimonial-card {
    padding: 24px;
  }
}

/* ══════════════════════════════════════════
   Booking Options Page
   ══════════════════════════════════════════ */

/* ── Booking Locations ── */

.booking-locations {
  width: var(--content-width);
  max-width: calc(100% - 40px);
  margin: 160px auto 0;
}

.booking-locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  overflow: hidden;
}

.loc-card {
  padding: 80px;
  display: flex;
  flex-direction: column;
}

.loc-card + .loc-card {
  border-left: 1px solid var(--blue);
}

.loc-card h2 {
  font-weight: 500;
  font-size: 24px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: #000;
  margin-bottom: 24px;
}

.loc-card p {
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: #000;
  max-width: 281px;
  margin-bottom: 40px;
}

.loc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 316px;
  max-width: 100%;
  height: 61px;
  padding: 0 24px;
  background: var(--black);
  border: 1px solid var(--black);
  border-radius: 2px;
  color: var(--white);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

.loc-btn svg {
  flex-shrink: 0;
}

.loc-btn:hover {
  background: #344C65;
  border-color: #344C65;
}

.loc-card-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.loc-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 316px;
  max-width: 100%;
  height: 61px;
  padding: 0 24px;
  background: transparent;
  border: 1px solid var(--black);
  border-radius: 2px;
  color: var(--black);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}

.loc-btn-secondary:hover {
  background: var(--black);
  color: var(--white);
}

/* ── Booking Footer ── */

.booking-footer {
  margin-top: 160px;
  background: var(--white);
}

.booking-footer-inner {
  width: var(--content-width);
  max-width: calc(100% - 40px);
  margin: 0 auto;
  padding-bottom: 80px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 24px;
  row-gap: 32px;
}

.bf-tio {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

.bf-social {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}

.booking-footer-divider {
  grid-column: 1 / -1;
  grid-row: 2;
  height: 1px;
  background: var(--black);
}

.bf-copy {
  grid-column: 1;
  grid-row: 3;
  justify-self: start;
}

.bf-legal {
  grid-column: 2;
  grid-row: 3;
  justify-self: end;
}

/* ── Booking Responsive ── */

@media (max-width: 1440px) {
  .loc-card {
    padding: 56px 48px;
  }
}

@media (max-width: 1024px) {
  .booking-locations-grid {
    grid-template-columns: 1fr;
  }

  .loc-card {
    padding: 48px 40px;
  }

  .loc-card + .loc-card {
    border-left: none;
    border-top: 1px solid var(--blue);
  }

  .loc-card p {
    max-width: 480px;
  }
}

@media (max-width: 768px) {
  .booking-locations {
    margin-top: 64px;
    max-width: calc(100% - 48px);
  }

  .loc-card {
    padding: 20px;
  }

  .loc-btn {
    width: 100%;
            font-size: 14px;
  }

  .booking-footer {
    margin-top: 64px;
  }

  .booking-footer-inner {
    max-width: calc(100% - 48px);
    padding-bottom: 48px;
    column-gap: 16px;
    row-gap: 24px;
  }

  .bf-social {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: start;
  }

  .booking-footer-divider {
    grid-row: 2;
  }

  .bf-legal {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: start;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .bf-legal .footer-divider {
    display: none;
  }

  .bf-copy {
    grid-column: 1;
    grid-row: 4;
    justify-self: start;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .bf-copy .footer-divider,
  .footer-copyright-brand {
    display: none;
  }

  .bf-tio {
    grid-column: 2;
    grid-row: 4;
    justify-self: end;
    align-self: end;
  }
}

/* ──────────────────────────────────────
   Before & After Page
   ────────────────────────────────────── */

.ba-page {
  margin-top: 80px;
  gap: 48px;
}

.ba-filter {
  width: var(--content-width);
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.ba-pill {
  padding: 20px 32px;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--black);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ba-pill:hover {
  border-color: var(--black);
}

.ba-pill.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.ba-grid {
  width: var(--content-width);
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.ba-grid .ba-card {
  width: auto;
}

.ba-card.is-hidden {
  display: none;
}

@media (max-width: 1024px) {
  .ba-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ba-page {
    margin-top: 64px;
    gap: 32px;
  }

  .ba-filter,
  .ba-grid {
    max-width: calc(100% - 0px);
  }

  .ba-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .ba-filter::-webkit-scrollbar {
    display: none;
  }

  .ba-pill {
    flex-shrink: 0;
  }

  .ba-grid {
    grid-template-columns: 1fr;
  }
}

/* ──────────────────────────────────────
   Videos Page
   ────────────────────────────────────── */

.video-grid {
  width: var(--content-width);
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 40px;
}

.video-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.video-card.is-hidden {
  display: none;
}

.video-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 440 / 320;
  padding: 0;
  border: 0;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: none;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.video-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(17, 25, 33, 0.14);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.video-thumb:hover img {
  transform: scale(1.04);
}

.video-thumb:hover::before {
  opacity: 1;
}

.video-play-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.video-thumb + p {
  font-weight: 300;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: -0.01em;
  color: #000;
}

/* Video lightbox */

.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 14, 18, 0.88);
}

.video-lightbox.open {
  display: flex;
}

.video-lightbox-inner {
  position: relative;
  width: 100%;
  max-width: 1040px;
}

.video-lightbox-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
}

.video-lightbox-frame iframe,
.video-lightbox-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-lightbox-close {
  position: absolute;
    top: -18px;
    right: -48px;
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    color: var(--white);
    cursor: pointer;
    transition: background 0.2s;
}

.video-lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

.coming-soon-section {
  max-width: var(--content-width, 1640px);
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  min-height: 48vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

@media (max-width: 768px) {
  .coming-soon-section {
    padding: 3rem 1.5rem 1rem;
    min-height: auto;
  }
}

/* ──────────────────────────────────────
   School Logos Slider
   ────────────────────────────────────── */

.school-logos {
  width: var(--content-width);
  max-width: calc(100% - 40px);
  margin: 120px auto 160px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.school-logos-intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.school-logos h2 {
  font-weight: 300;
  font-size: 40px;
  line-height: 120%;
  color: var(--text);
}

.school-logos-intro p {
  font-weight: 300;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: -0.01em;
  color: #000;
  margin: 0;
  max-width: 520px;
}

.school-logos-grid {
  display: flex;
  gap: 48px;
  align-items: center;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  margin-right: calc(-1 * max(20px, (100vw - var(--content-width)) / 2));
  margin-bottom: 50px;
}

.school-logos-grid::-webkit-scrollbar { display: none; }

.school-logo-item {
  flex: 0 0 calc((var(--content-width) - 40px - 5 * 48px) / 6);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
}

.school-logo-item img {
  height: 80px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  transition: filter 0.2s, opacity 0.2s;
}

.school-logo-item img:hover {
  filter: grayscale(1);
  opacity: 0.7;
}

@media (max-width: 768px) {
  .school-logos {
    margin-top: 80px;
    margin-bottom: 60px;
    gap: 28px;
  }

  .school-logos-grid {
    margin-right: 0;
    gap: 32px;
  }

  .school-logo-item {
    flex: 0 0 calc((100vw - 40px - 2 * 32px) / 3);
    height: 60px;
  }

  .school-logo-item img {
    height: 60px;
    max-width: 120px;
  }
}

.edu-video-section {
  padding-bottom: 160px;
}

.edu-video-intro {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.edu-video-h1 {
  width: 100%;
  margin-bottom: 5px;
}

.edu-video-intro-p {
  font-weight: 300;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: -0.01em;
  color: #000;
  margin: 0;
  max-width: 580px;
}

.edu-video-section .video-thumb {
  aspect-ratio: 9 / 16;
}

@media (max-width: 1024px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: 1fr;
    max-width: calc(100% - 0px);
  }

  .video-lightbox-close {
    top: -44px;
    right: -2px;
  }

  .edu-video-section {
    padding-bottom: 60px;
  }
}

/* ──────────────────────────────────────
   Meet the Team Page
   ────────────────────────────────────── */

.team-section {
  width: var(--full-width);
  max-width: calc(100% - 40px);
  margin: 100px auto 0;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.team-grid {
  width: var(--content-width);
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.team-grid .team-card {
  flex-shrink: 1;
  width: auto;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.team-grid .team-card:hover {
  box-shadow: 0 12px 32px rgba(17, 25, 33, 0.1);
  transform: translateY(-2px);
}

.team-grid .team-card:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.team-grid .team-card .team-card-body {
  flex: 1;
}

.team-card-info p {
  font-weight: 300;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: -0.01em;
  color: var(--text);
}

.team-card.is-hidden {
  display: none;
}

/* Team member detail modal */

.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  padding: 20px;
}

.booking-modal.open {
  display: flex;
}

.booking-modal-inner {
    position: relative;
    width: 100%;
    max-width: 1170px;
    height: 90vh;
    max-height: 700px;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    background: #E5EEFA;
    padding: 50px 60px 40px;
}

.booking-modal-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 20px;
  background: #2B4D7A;
  color: #fff;
  flex-shrink: 0;
}

.booking-modal-title {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.booking-modal-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

.booking-modal-location,
.booking-modal-phone {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: rgba(255,255,255,0.9);
}

.booking-modal-location svg,
.booking-modal-phone svg {
  flex-shrink: 0;
  margin-top: 1px;
  opacity: 0.8;
}

.booking-modal-location {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4px 8px;
}

#booking-modal-name {
  font-weight: 600;
  color: #fff;
}

.booking-modal-phone span:first-of-type {
  font-weight: 600;
  color: #fff;
}

.booking-modal-close {
  margin-left: auto;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border: none;
  background:transparent;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8cb4e8;
  transition: background 0.2s;
  position: absolute;
      right: 10px;
    top: 10px;
}

.booking-modal-close svg {
  width: 25px;
  height: 25px;
}

.booking-modal-close:hover {
  background: rgba(255,255,255,0.3);
}

.booking-modal-iframe {
  width: 100%;
  flex: 1;
  border: none;
}

@media (max-width: 768px) {
  .booking-modal-inner {
    height: 100vh;
    max-height: none;
    border-radius: 8px;
    padding: 0px;
  }
  .booking-modal {
      padding: 0px;
  }
  .booking-modal-close{
    right: 20px;
        background: #f5f5f5;
        padding: 12px;
  }
}

.team-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  overflow-y: auto;
  background: #F4F6F8;
}

.team-modal.open {
  display: block;
}

.team-modal-inner {
  position: relative;
  width: 100%;
  max-width: 1640px;
  margin: 0 auto;
  padding: 80px 140px 120px;
  min-height: 100%;
  box-sizing: border-box;
}

.team-modal-close {
  position: absolute;
  top: 48px;
  right: 48px;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  z-index: 2;
}

.team-modal-grid {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 26px;
}

.team-modal-image {
  width: 100%;
  aspect-ratio: 440 / 520;
  border-radius: var(--radius);
  overflow: hidden;
  background: #d9d9d9;
}

.team-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-modal-name {
  font-weight: 300;
  font-size: 32px;
  line-height: 120%;
  color: var(--black);
  margin-bottom: 32px;
}

.team-modal-bio {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.team-modal-bio p {
  font-weight: 300;
  font-size: 18px;
  line-height: 160%;
  letter-spacing: -0.01em;
  color: var(--text);
}

@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-modal-inner {
    padding: 64px 48px 96px;
  }

  .team-modal-grid {
    grid-template-columns: 360px 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .team-section {
    margin-top: 64px;
    gap: 32px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    max-width: calc(100% - 0px);
  }

  .team-modal-inner {
    padding: 72px 24px 64px;
  }

  .team-modal-close {
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }

  .team-modal-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 24px;
  }

  .team-modal-image {
    max-width: 320px;
  }

  .team-modal-name {
    font-size: 26px;
    margin-bottom: 24px;
  }

  .team-modal-bio p {
    font-size: 16px;
  }
}

/* ══════════════════════════════════════
   Blog Listing & Blog Post Pages
   ══════════════════════════════════════ */

.blog-listing {
  width: var(--content-width);
  max-width: calc(100% - 40px);
  margin: 100px auto 0;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1400px;
}

.blog-grid .blog-card {
  flex-shrink: 1;
  width: auto;
  display: flex;
  flex-direction: column;
}

.blog-card-image {
  display: block;
}

.blog-grid .blog-card-image {
  height: 423px;
}

.blog-card-content h2 a,
.blog-card-content h3 a {
  color: inherit;
  transition: color 0.2s;
}

.blog-card-content h2 a:hover,
.blog-card-content h3 a:hover {
  color: var(--blue);
}

/* Pagination */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
}

.blog-page,
.blog-page-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--black);
  border-radius: 4px;
  background: transparent;
  color: var(--black);
  font-weight: 300;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.blog-page:hover,
.blog-page-arrow:hover:not([disabled]) {
  background: rgba(140, 180, 232, 0.18);
  border-color: var(--blue);
}

.blog-page.active {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.blog-page-arrow {
  color: var(--black);
  border-color: transparent;
}

.blog-page-arrow[disabled] {
  opacity: 0.35;
  cursor: default;
}

.blog-page-arrow svg path {
  stroke: currentColor;
}

/* Blog Post Detail */
.blog-post {
  width: var(--content-width);
  max-width: 1280px;
  margin: 0px auto 0;
  display: flex;
  flex-direction: column;
  gap: 70px;
}

.blog-post-header {
  width: 1280px;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.blog-back-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--black);
  transition: color 0.2s;
}

.blog-back-link:hover {
  color: var(--blue);
}

.blog-post-date {
  font-weight: 700;
  font-size: 16px;
  line-height: 110%;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--black);
}

.blog-post-title {
  font-weight: 300;
  font-size: 40px;
  line-height: 120%;
  color: #000;
}

.blog-post-intro {
  font-weight: 300;
  font-size: 20px;
  line-height: 160%;
  letter-spacing: -0.01em;
  color: var(--text);
}

.blog-post-hero {
  width: 100%;
  aspect-ratio: 1640 / 760;
  border-radius: var(--radius);
  overflow: hidden;
}

.blog-post-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-post-body {
  /* width: 860px; */
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.blog-post-main {
  position: relative;
  padding-top: 80px;
  margin-inline: 25px;
}

.blog-post-main::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 100%;
  height: 700px;
  border-radius: 4px;
  opacity: 0.3;
  background: linear-gradient(117deg, #F4F5F5 50.17%, #D1D3D4 98.17%);
  z-index: -1;
  transform: rotate(180deg);
}
@media (max-width: 1440px) {
  .blog-post-main {
    position: relative;
    padding-top: 60px;
    margin-inline: 0px;
  }
}
@media (max-width: 991px) {
  .blog-post-main {
      padding-inline: 20px;
  }
}

.blog-post-body p {
  font-weight: 300;
  font-size: 18px;
  line-height: 170%;
  letter-spacing: -0.01em;
  color: var(--text);
}

.blog-post-body h2 {
  font-weight: 300;
  font-size: 28px;
  line-height: 130%;
  color: #000;
  margin-top: 16px;
}

.related-posts {
  margin-top: 160px;
}

@media (max-width: 1024px) {
  .blog-listing {
    margin-top: 80px;
    gap: 48px;
  }

  .blog-post {
    margin-top: 64px;
    gap: 40px;
    max-width: calc(100% - 40px);
  }

  .related-posts {
    margin-top: 120px;
  }

  .blog-post-title {
    font-size: 34px;
  }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .blog-grid .blog-card-image {
    height: auto;
    aspect-ratio: 680 / 423;
  }

  .blog-listing {
    margin-top: 56px;
    gap: 40px;
  }

  .blog-pagination {
    gap: 8px;
  }

  .blog-page,
  .blog-page-arrow {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }

  .blog-post {
    margin-top: 0px;
    gap: 32px;
  }

  .blog-post-title {
    font-size: 28px;
  }

  .blog-post-intro {
    font-size: 18px;
  }

  .blog-post-hero {
    aspect-ratio: 16 / 10;
  }

  .blog-post-body p {
    font-size: 16px;
  }

  .blog-post-body h2 {
    font-size: 24px;
  }

  .related-posts {
    margin-top: 96px;
  }
}

@media (max-width: 480px) {
  .blog-page,
  .blog-page-arrow {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
}

/* ============================================================
   COSTS PAGE
   ============================================================ */

.cost-intro {
  width: var(--content-width);
  max-width: calc(100% - 80px);
  margin: 100px auto 0;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.cost-intro-head {
  max-width: 760px;
}

.cost-intro-title {
  font-weight: 300;
  font-size: 40px;
  line-height: 120%;
  color: var(--black);
  margin-bottom: 20px;
}

.cost-intro-text {
  font-weight: 300;
  font-size: 18px;
  line-height: 160%;
  letter-spacing: -0.01em;
  color: var(--text);
}


.cost-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.cost-feature {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cost-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(140, 180, 232, 0.16);
  color: var(--blue);
}

.cost-feature h3 {
  font-weight: 500;
  font-size: 20px;
  line-height: 130%;
  color: var(--black);
}

.cost-feature p {
  font-weight: 300;
  font-size: 16px;
  line-height: 160%;
  color: var(--text);
}

/* Treatment costs table */
.cost-table-section { 
  background: linear-gradient(157deg, rgba(244, 245, 245, 0.3) 23%, rgba(209, 211, 212, 0.3) 100%);
  margin-top: 120px;
  padding: 100px 0;
}

.cost-table-inner {
  width: var(--content-width);
  max-width: calc(100% - 80px);
  margin: 0 auto;
}

.cost-table-head {
  max-width: 1150px;
  margin-bottom: 70px;
}

.cost-table-title {
  font-weight: 300;
  font-size: 40px;
  line-height: 120%;
  color: var(--black);
  margin-bottom: 20px;
}

.cost-table-text {
  font-weight: 300;
  font-size: 18px;
  line-height: 160%;
  letter-spacing: -0.01em;
  color: var(--text);
      margin-top: 20px;
}

.cost-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.cost-table thead th {
  color: var(--c-text, #333);

/* Subheadings - Manrope */
font-family: Manrope;
font-size: 16px;
font-style: normal;
font-weight: 700;
line-height: 110%; /* 17.6px */
letter-spacing: 0.32px;
  text-transform: uppercase;
  color: var(--black);
  padding: 0 40px 30px;
  /* border-bottom: 1px solid var(--blue); */
}
.cost-table tbody tr:nth-child(odd) {
  background: #f1f5fa;

}
.cost-table tbody td {
  font-weight: 300;
      font-size: 16px;
    line-height: 150%;
    color: var(--text);
    padding: 40px 40px 35px;
  /* border-bottom: 1px solid rgba(17, 25, 33, 0.12); */
  vertical-align: top;
}

.cost-table tbody td:first-child {
  font-weight: 500;
  color: var(--black);
}

.cost-table tbody td:nth-child(2) {
  color: var(--text);
}

.cost-table tbody td:last-child {
  font-weight: 500;
  font-size: 18px;
  color: var(--black);
  white-space: nowrap;
}

/* Calculator section wrapper */
.cost-calc-section {
  width: var(--content-width);
  max-width: calc(100% - 80px);
  margin: 120px auto 0;
}

.cost-calc-heading {
  font-weight: 300;
  font-size: 40px;
  line-height: 120%;
  color: var(--black);
  margin-bottom: 0px;
}

/* ============================================================
   REUSABLE BUDGET CALCULATOR COMPONENT
   Portable: copy .budget-calc markup + this block + the JS.
   Theme per-site by overriding the --bc-* custom properties
   on the .budget-calc element (or a wrapper).
   ============================================================ */

.budget-calc {
  --bc-accent: var(--blue, #8CB4E8);
  --bc-accent-soft: rgba(140, 180, 232, 0.16);
  --bc-ink: var(--black, #111921);
  --bc-muted: var(--text, #333333);
  --bc-surface: #FFFFFF;
  --bc-panel: #F6F8FB;
  --bc-border: rgba(17, 25, 33, 0.12);
  --bc-radius: var(--radius, 4px);
  --bc-font: 'Manrope', sans-serif;
  --bc-font-head: 'Onest', sans-serif;

  font-family: var(--bc-font);
  color: var(--bc-ink);
}

.budget-calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Inputs */
.budget-calc-form {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-right: 40px;
  background: var(--bc-surface);
  border: 0px solid var(--bc-border);
  border-radius: var(--bc-radius);
}

.bc-field {
  display: flex;
  flex-direction: column;
      gap: 17px;
    margin-top: 20px;
}

.bc-label {
  font-family: var(--bc-font-head);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bc-ink);
}

.bc-toggle {
  display: inline-flex;
  padding: 4px;
  gap: 34px;
  /* background: var(--bc-panel); */
  border-radius: 999px;
  width: fit-content;
}

.bc-toggle-btn {
  border: 1px solid var(--black);
  background: transparent;
  font-family: var(--bc-font);
  font-size: 16px;
  font-weight: 500;
  color: var(--bc-muted);
  padding: 14px 34px;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.bc-toggle-btn.active,
.bc-toggle-btn:hover {
  background: var(--bc-accent);
  color: #fff;
  border-color: transparent;
}
@media (max-width: 640px) {
  .team-modal-image {
    /* max-width: 220px; */
  }
}

@media (max-width: 640px) {
  .bc-toggle {
    gap: 21px;
  }
 .bc-toggle-btn {
    font-size: 12px;
    padding: 12px 19px;
  }
}

.bc-value {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-weight: 300;
  font-size: 19px;
  line-height: 1;
  color: var(--bc-ink);
}

.bc-prefix,
.bc-icon,
.bc-suffix {
  font-size: 22px;
  color: var(--bc-muted);
}

.bc-suffix[hidden],
.bc-prefix[hidden] { display: none; }

/* Label row with inline $/% toggle */
.bc-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bc-dep-toggle {
  display: inline-flex;
  padding: 3px;
  gap: 3px;
  background: var(--bc-panel);
  border-radius: 999px;
}

.bc-dep-btn {
  border: none;
  background: transparent;
  font-family: var(--bc-font);
  font-size: 13px;
  font-weight: 600;
  color: var(--bc-muted);
  width: 30px;
  height: 26px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.bc-dep-btn.active {
  background: var(--bc-accent);
  color: #fff;
}

.bc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: var(--bc-border);
  outline: none;
  cursor: pointer;
}

.bc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bc-accent);
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.bc-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bc-accent);
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

/* Results panel */
.budget-calc-results {
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius);
  overflow: hidden;
  background: var(--bc-surface);
}

.bc-tabs {
  display: flex;
  border-bottom: 1px solid var(--bc-border);
}

.bc-tab {
  flex: 1;
  border: none;
  background: #fff;
  font-family: var(--bc-font-head);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bc-muted);
  padding: 18px 12px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
@media (max-width: 767px) {
  .bc-tab {
    font-size: 11px;
    padding: 18px 5px;
  }

}

.bc-tab.active {
  background: var(--bc-surface);
  color: var(--bc-ink);
  box-shadow: inset 0 -2px 0 var(--bc-accent);
}

.bc-panel {
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.bc-panel[hidden] {
  display: none;
}

/* Options */
.bc-options-view {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.bc-options-view[hidden] { display: none; }

.bc-option {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--bc-border);
  border-radius: 4px;
  overflow: hidden;
}

.bc-option--wide {
  grid-column: 1 / -1;
}

.bc-option-head {
  background: #d1d3d4;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}


.bc-option-label {
  font-family: var(--bc-font-head);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bc-ink);
}

.bc-option-desc {
  font-weight: 300;
  font-size: 14px;
  line-height: 140%;
  color: var(--bc-muted);
}

.bc-option-desc strong {
  font-weight: 600;
  /* color: var(--bc-ink); */
}

.bc-option--featured .bc-option-head {
  background: var(--bc-accent);
  color: #fff;
}
.bc-option--featured .bc-option-head .bc-option-label, 
.bc-option--featured .bc-option-head .bc-option-desc{
  color: #fff;
}

.bc-option-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.bc-option-amount {
  font-weight: 300;
  font-size: 34px;
  line-height: 1;
  color: var(--bc-ink);
}

.bc-option-cta {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  font-family: var(--bc-font-head);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bc-ink);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.bc-option-cta:hover {
  color: var(--bc-accent);
}

.bc-option-note {
  font-size: 13px;
  font-weight: 300;
  line-height: 150%;
  color: var(--bc-muted);
  margin-top: 4px;
}

/* Enquiry form (revealed when an option CTA is clicked) */
.bc-enquire {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bc-enquire[hidden] { display: none; }

.bc-enquire-back {
  align-self: flex-start;
  border: none;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--bc-font-head);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bc-muted);
  cursor: pointer;
  transition: color 0.2s;
}

.bc-enquire-back:hover { color: var(--bc-accent); }

.bc-enquire-intro {
  font-weight: 300;
  font-size: 18px;
  line-height: 150%;
  color: var(--bc-muted);
}

.bc-enquire-intro strong {
  font-weight: 600;
  color: var(--bc-ink);
}

.bc-enquire-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bc-input {
  font-family: var(--bc-font);
  font-size: 16px;
  font-weight: 300;
  color: var(--bc-ink);
  padding: 14px 16px;
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius);
  background: var(--bc-surface);
  outline: none;
  transition: border-color 0.2s;
}

.bc-input:focus { border-color: var(--bc-accent); }

.bc-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 300;
  font-size: 13px;
  line-height: 150%;
  color: var(--bc-muted);
  cursor: pointer;
}

.bc-consent input {
  margin-top: 3px;
  accent-color: var(--bc-accent);
  flex-shrink: 0;
}

.bc-enquire-submit {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  background: var(--bc-accent);
  color: #fff;
  font-family: var(--bc-font-head);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 999px;
  cursor: pointer;
  transition: filter 0.2s;
}

.bc-enquire-submit:hover { filter: brightness(0.95); }

.bc-enquire-thanks {
  font-weight: 500;
  font-size: 15px;
  line-height: 150%;
  color: var(--bc-ink);
}

.bc-enquire-thanks[hidden] { display: none; }

/* Installments */
.bc-installments {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.bc-installments li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--bc-border);
  font-weight: 300;
  font-size: 16px;
  color: var(--bc-muted);
}

.bc-installments li span:last-child {
  font-weight: 500;
  color: var(--bc-ink);
}

.bc-installments-note {
  font-weight: 300;
  font-size: 14px;
  line-height: 160%;
  color: var(--bc-muted);
}

/* Amortization schedule table */
.bc-schedule-wrap {
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius);
}

.bc-schedule {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.bc-schedule th,
.bc-schedule td {
  padding: 12px 16px;
  text-align: right;
  border-bottom: 1px solid var(--bc-border);
  white-space: nowrap;
}

.bc-schedule th:first-child,
.bc-schedule td:first-child { text-align: left; }

.bc-schedule thead th {
  position: sticky;
  top: 0;
  background: var(--bc-panel);
  font-family: var(--bc-font-head);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bc-muted);
}

.bc-schedule tbody td {
  font-weight: 300;
  color: var(--bc-ink);
}

.bc-schedule tbody tr:last-child td { border-bottom: none; }

/* Graph (SVG cumulative-paid line) */
.bc-graph {
  width: 100%;
}

.bc-graph svg { width: 100%; height: auto; display: block; }

.bc-graph-line {
  fill: none;
  stroke: var(--bc-accent);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.bc-graph-area { fill: var(--bc-accent-soft); }

.bc-graph-grid {
  stroke: var(--bc-border);
  stroke-width: 1;
}

.bc-graph-axis {
  font-family: var(--bc-font);
  font-size: 11px;
  fill: var(--bc-muted);
}

.bc-graph-note {
  font-weight: 300;
  font-size: 14px;
  line-height: 160%;
  color: var(--bc-muted);
}

/* ---- Costs page responsive ---- */
@media (max-width: 1024px) {
  .cost-feature-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
  .cost-intro-title,
  .cost-table-title,
  .cost-calc-heading { font-size: 34px; }
  .budget-calc-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .cost-intro { 
    margin-top: 72px; gap: 40px; 
    max-width: calc(100% - 40px);
  }
  .cost-table-section { margin-top: 0px; padding: 72px 0; }
  .cost-table-inner {
    max-width: calc(100% - 40px);
    margin: 0 auto;
  }
  .cost-calc-section { 
    margin-top: 80px; 
        max-width: calc(100% - 40px);
  }
  .cost-intro-title,
  .cost-table-title,
  .cost-calc-heading { font-size: 28px; }
  .cost-intro-text, 
  .cost-table-text { font-size: 16px; }

  /* Stacked table */
  .cost-table thead { display: none; }
  .cost-table,
  .cost-table tbody,
  .cost-table tr,
  .cost-table td { display: block; width: 100%; }
  .cost-table tr {
    border: 1px solid var(--blue);
    border-radius: var(--radius);
    padding: 8px 16px;
    margin-bottom: 16px;
  }
  .cost-table tbody td {
    border-bottom: 1px solid rgba(17, 25, 33, 0.1);
    padding: 14px 0;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    text-align: right;
  }
  .cost-table tbody tr td:last-child { border-bottom: none; }
  .cost-table tbody td::before {
    content: attr(data-label);
    font-family: 'Onest', sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text);
    text-align: left;
  }

  .budget-calc-form { padding: 0 0 28px; }
  .bc-panel { padding:28px; }
  .bc-options-view {
    grid-template-columns: 1fr;
  }
  .bc-option--wide {
    grid-column: 1;
  }
}

@media (max-width: 480px) {
  .cost-feature-grid { grid-template-columns: 1fr; }
  .bc-schedule th,
  .bc-schedule td { padding: 10px 12px; }
}

/* ============================================================
   SITE-WIDE REUSABLE BOOTSTRAP-4 FORM  (.site-form)
   A generic, themeable form component for ANY form on the site
   (referrals, contact, enquiries, …) — not referral-specific.
   The `.site-form` rules below are scoped reproductions of the
   Bootstrap 4 grid/form classes (.form-row, .col-*, .form-control,
   .custom-select, .custom-control/.custom-radio, .btn, .was-validated,
   .invalid-feedback) plus a floating-label layer, so the form renders
   standalone WITHOUT loading the framework and without colliding with
   the site's custom CSS. Drop the markup into a real Bootstrap-4 project
   and the framework provides the grid; this layer then only contributes
   the floating labels + theming.

   THEMING: every colour/font/radius is driven by the `--sf-*` custom
   properties below, which default to the Medland site tokens. To restyle
   the form for another site, override these on `.site-form` (and
   `.site-form-hero`) — no rule edits needed, e.g.:
     .site-form, .site-form-hero { --sf-accent:#e0218a; --sf-ink:#1a1a1a; }
   (The one exception is the <select> dropdown chevron, whose colour is
   baked into its inline SVG data-URI on `.site-form .custom-select`.)
   ============================================================ */

.site-form,
.site-form-hero {
  --sf-font: 'Manrope', sans-serif;
  --sf-font-head: 'Onest', sans-serif;
  --sf-accent: var(--blue, #8CB4E8);
  --sf-accent-soft: rgba(140, 180, 232, 0.16);
  --sf-focus-ring: rgba(140, 180, 232, 0.2);
  --sf-ink: var(--black, #111921);
  --sf-muted: var(--text, #333333);
  --sf-label: #8a9099;
  --sf-surface: #ffffff;
  --sf-panel: #F6F8FB;
  --sf-panel-alt: #F2F6FC;
  --sf-border: rgba(17, 25, 33, 0.18);
  --sf-border-soft: rgba(17, 25, 33, 0.08);
  --sf-danger: #d23b3b;
  --sf-radius: var(--radius, 4px);
}

/* Hero band */
.site-form-hero {
  background: var(--sf-panel);
  padding: 80px 0 96px;
}

.site-form-hero-inner {
  width: var(--content-width);
  max-width: calc(100% - 80px);
  margin: 0 auto;
}

.site-form-hero-title {
  font-family: var(--sf-font-head);
  font-weight: 300;
  font-size: 44px;
  line-height: 115%;
  color: var(--sf-ink);
  margin-bottom: 20px;
}

.site-form-hero-text {
  font-weight: 300;
  font-size: 16px;
  line-height: 170%;
  color: var(--sf-muted);
  max-width: 1100px;
}

/* Form container */
.site-form-section {
  width: var(--content-width);
  max-width: calc(100% - 80px);
  margin: 72px auto 0;
}

.site-form {
  max-width: 1400px;
  font-family: var(--sf-font);
}

.site-form-section-title {
  font-family: var(--sf-font-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sf-ink);
  margin-bottom: 20px;
}

.site-form-section-title + .form-row { margin-top: 0; }
.site-form .site-form-section-title:not(:first-of-type) { margin-top: 44px; }

.site-form-field-label {
  display: block;
  font-weight: 300;
  font-size: 14px;
  color: var(--sf-muted);
  margin-bottom: 10px;
}

/* --- BS4 grid (scoped) --- */
.site-form .form-row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -10px;
  margin-left: -10px;
}

.site-form .form-row > [class*="col-"] {
  padding-right: 10px;
  padding-left: 10px;
}

.site-form .col-12 { flex: 0 0 100%; max-width: 100%; }
.site-form .col-6  { flex: 0 0 50%;  max-width: 50%; }

@media (min-width: 769px) {
  .site-form .col-md-2 { flex: 0 0 16.6667%; max-width: 16.6667%; }
  .site-form .col-md-6 { flex: 0 0 50%;       max-width: 50%; }
}

/* --- form groups + controls --- */
.site-form .form-group { margin-bottom: 18px; }

.site-form .form-control,
.site-form .custom-select {
  display: block;
  width: 100%;
  height: 52px;
  padding: 14px 16px;
  font-family: var(--sf-font);
  font-size: 15px; 
  font-weight: 300;
  line-height: 1.4;
  color: var(--sf-ink);
  background: var(--sf-surface);
  border: 1px solid var(--black); 
  border-radius: var(--sf-radius);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.site-form .form-control:focus,
.site-form .custom-select:focus {
  /* border-color: var(--sf-accent); */
  /* box-shadow: 0 0 0 3px var(--sf-focus-ring); */
}

.site-form .custom-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  color: var(--sf-muted);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238CB4E8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 38px;
}

/* hide number input spinners for tidier DOB year */
.site-form input[type="number"]::-webkit-outer-spin-button,
.site-form input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.site-form input[type="number"] { -moz-appearance: textfield; }

/* --- floating labels --- */
.site-form .fl-group { position: relative; }

.site-form .fl-group > label {
  position: absolute;
  top: 15px;
  left: 26px;
  padding: 0 4px;
  font-family: var(--sf-font);
  font-size: 15px;
  font-weight: 300;
  color: var(--black);
  background: var(--sf-surface); 
  pointer-events: none;
  transform-origin: left center;
  transition: transform 0.15s ease, color 0.15s ease;
}

.site-form .fl-group .form-control:focus + label,
.site-form .fl-group .form-control:not(:placeholder-shown) + label {
  transform: translateY(-24px) scale(0.84); 
}

/* .site-form .fl-group .form-control:focus + label { color: var(--sf-accent); } */
.site-form .fl-group .form-control:not(:focus):not(:placeholder-shown) + label { color: var(--sf-muted); }

/* --- custom radios (scoped BS4) --- */
.site-form .custom-control {
  position: relative;
  padding-left: 28px;
  min-height: 22px;
}

.site-form .custom-control-inline {
  display: inline-flex;
  align-items: center;
  margin-right: 32px;
  margin-bottom: 6px;
}

.site-form .custom-control-input {
  position: absolute;
  left: 0;
  width: 18px;
  height: 18px;
  margin: 0;
  opacity: 0;
}

.site-form .custom-control-label {
  font-weight: 300;
  font-size: 15px;
  color: var(--sf-muted);
  cursor: pointer;
}

.site-form .custom-control-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  border: 1px solid var(--blue);
  border-radius: 50%;
  background: var(--sf-surface);
  transition: border-color 0.15s;
}

.site-form .custom-control-label::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sf-accent);
  transform: scale(0);
  transition: transform 0.15s ease;
}

.site-form .custom-control-input:checked ~ .custom-control-label::before { border-color: var(--sf-accent); }
.site-form .custom-control-input:checked ~ .custom-control-label::after { transform: scale(1); }
.site-form .custom-control-input:focus ~ .custom-control-label::before { box-shadow: 0 0 0 3px var(--sf-focus-ring); }

/* --- questions / fieldsets --- */
.site-form .site-form-radio-group {
  border: 0;
  padding: 0;
  margin: 0 0 28px;
}

.site-form .site-form-question {
  font-weight: 300;
  font-size: 15px;
  line-height: 150%;
  color: var(--sf-muted);
  margin-bottom: 14px;
  padding: 0;
  width: auto;
}

/* --- file dropzone (client-side only) --- */
.site-form-dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
  padding: 44px 24px;
  background: var(--sf-panel-alt);
  border: 1px dashed var(--sf-accent);
  border-radius: var(--sf-radius);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.site-form-dropzone.is-dragover {
  background: var(--sf-accent-soft);
  border-color: var(--sf-accent);
}

.site-form-dropzone-text {
  font-weight: 300;
  font-size: 15px;
  color: var(--sf-muted);
}

.site-form-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

.site-form .btn-select-files {
  display: inline-flex;
  align-items: center;
  font-family: var(--sf-font-head);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sf-ink);
  background: var(--sf-surface);
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius);
  padding: 12px 22px;
}

.site-form-file-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-form-file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 300;
  font-size: 14px;
  color: var(--sf-ink);
  background: var(--sf-panel);
  border: 1px solid var(--sf-border-soft);
  border-radius: var(--sf-radius);
  padding: 10px 14px;
}

.site-form-file-list .site-form-file-size { color: var(--sf-muted); font-size: 12.5px; }

.site-form-file-remove {
  flex-shrink: 0;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--sf-muted);
  font-size: 18px;
  line-height: 1;
  padding: 0 4px;
}

.site-form-file-remove:hover { color: var(--sf-ink); }

/* --- submit + privacy + success --- */
.site-form .btn-submit-form {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sf-font-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sf-surface);
  background: var(--sf-ink);
  border: none;
  border-radius: var(--sf-radius);
  padding: 16px 32px;
  margin-top: 32px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.site-form .btn-submit-form:hover { opacity: 0.88; }

.site-form-privacy {
  font-weight: 300;
  font-size: 13px;
  color: var(--sf-muted);
  margin-top: 18px;
}

.site-form-privacy a { color: var(--sf-accent); }

.site-form-success {
  margin-top: 20px;
  font-weight: 500;
  font-size: 15px;
  color: var(--sf-ink);
  background: var(--sf-accent-soft);
  border-radius: var(--sf-radius);
  padding: 16px 20px;
}

.site-form-success[hidden] { display: none; }

/* --- validation (scoped BS4 .was-validated) --- */
.site-form .invalid-feedback {
  display: none;
  width: 100%;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--sf-danger);
}

.site-form.was-validated .form-control:invalid,
.site-form.was-validated .custom-select:invalid {
  border-color: var(--sf-danger);
}

.site-form.was-validated .form-control:invalid + label {
  color: var(--sf-danger);
}

.site-form.was-validated .form-control:invalid ~ .invalid-feedback,
.site-form.was-validated .custom-select:invalid ~ .invalid-feedback {
  display: block;
}

/* --- responsive --- */
@media (max-width: 768px) {
  .site-form-hero { padding: 56px 0 64px; }
  .site-form-hero-title { font-size: 32px; }
  .site-form-section { margin-top: 56px; }
  .site-form .custom-control-inline { margin-right: 24px; }
}

/* =========================================================
   Contact page — Visit Us (location dropdown drives map + details)
   ========================================================= */
.contact-visit {
  width: var(--content-width);
  max-width: calc(100% - 80px);
  margin: 100px auto 0;
}

.contact-visit-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: stretch;
}

.contact-visit-info {
  display: flex;
  flex-direction: column;
}

.contact-visit-title {
  font-family: 'Onest', sans-serif;
  font-weight: 500;
  font-size: 48px;
  line-height: 110%;
  color: var(--black);
  margin-bottom: 20px;
}

.contact-visit-intro {
  font-weight: 300;
  font-size: 18px;
  line-height: 160%;
  letter-spacing: -0.01em;
  color: var(--text);
  max-width: 520px;
  margin-bottom: 40px;
}

.contact-location-field {
  margin-bottom: 36px;
}

.contact-location-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a9099;
  margin-bottom: 10px;
}

.contact-dropdown {
  position: relative;
  max-width: 420px;
}

.contact-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  color: var(--black);
  background: var(--white);
  border: 1px solid rgba(17, 25, 33, 0.18);
  border-radius: var(--radius);
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-dropdown-toggle:hover {
  border-color: rgba(17, 25, 33, 0.32);
}

.contact-dropdown-toggle:focus-visible {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(140, 180, 232, 0.2);
}

.contact-dropdown-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-dropdown-chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.contact-dropdown.is-open .contact-dropdown-chevron {
  transform: rotate(180deg);
}

.contact-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: var(--white);
  border: 1px solid rgba(17, 25, 33, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(17, 25, 33, 0.12);
}

.contact-dropdown-menu[hidden] {
  display: none;
}

.contact-dropdown-item {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--black);
  padding: 12px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.contact-dropdown-item:hover,
.contact-dropdown-item:focus-visible {
  outline: none;
  background: rgba(140, 180, 232, 0.16);
}

.contact-dropdown-item[aria-selected="true"] {
  background: var(--blue);
  color: var(--white);
}

.contact-location-details {
  border-top: 1px solid rgba(17, 25, 33, 0.1);
  padding-top: 32px;
}

.contact-detail-name {
  font-family: 'Onest', sans-serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 130%;
  color: var(--black);
  margin-bottom: 24px;
}

.contact-detail-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-weight: 300;
  font-size: 16px;
  line-height: 150%;
  color: var(--text);
}

.contact-detail-item svg {
  flex-shrink: 0;
  margin-top: 5px;
}

.contact-detail-item a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-detail-item a:hover {
  color: var(--blue);
}

.contact-map-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-map-link:hover {
  color: var(--blue);
}

.contact-visit-map {
  min-height: 540px;
}

.contact-map {
  width: 100%;
  height: 100%;
  min-height: 540px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e9ebee;
}

@media (max-width: 1024px) {
  .contact-visit-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-visit-map,
  .contact-map {
    min-height: 420px;
  }
}

@media (max-width: 768px) {
  .contact-visit {
    margin-top: 64px;
  }
  .contact-visit-title {
    font-size: 34px;
  }
  .contact-visit-intro {
    font-size: 16px;
    margin-bottom: 32px;
  }
  .contact-dropdown {
    max-width: 100%;
  }
}

/* =========================================================
   Practice Location page — single fixed location (grey band)
   ========================================================= */
.practice-location {
  width: 100%;
  background: #f4f5f6;
  padding: 96px 0;
  margin-top: 0;
}

.practice-location-inner {
  width: var(--content-width);
  max-width: calc(100% - 80px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 72px;
  align-items: center;
}

.practice-location-name {
  font-family: 'Onest', sans-serif;
  font-weight: 500;
  font-size: 34px;
  line-height: 130%;
  color: var(--black);
  margin-bottom: 24px;
}

.practice-location-intro {
  font-weight: 300;
  font-size: 16px;
  line-height: 160%;
  letter-spacing: -0.01em;
  color: var(--text);
  max-width: 460px;
  margin-bottom: 36px;
}

.practice-detail-list {
  margin-bottom: 28px;
}

.practice-location-map {
  min-height: 560px;
}

.practice-map {
  width: 100%;
  height: 100%;
  min-height: 560px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e9ebee;
}

@media (max-width: 1024px) {
  .practice-location {
    padding: 72px 0;
  }
  .practice-location-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .practice-location-map,
  .practice-map {
    min-height: 420px;
  }
}

@media (max-width: 768px) {
  .practice-location {
    padding: 56px 0;
  }
  .practice-location-name {
    font-size: 28px;
  }
}

/* ════════════════════════════════════════════
   HOME PAGE
   ════════════════════════════════════════════ */

/* ── Home Hero ── */

/* <picture> wrappers must not affect layout — the inner <img> keeps its own
   sizing/object-fit rules (used to serve mobile crops via a <source>). */
picture {
  display: contents;
}

.home-hero {
  position: relative;
  width: var(--full-width);
  max-width: calc(100% - 40px);
  margin: 0px auto 0;
  background: var(--blue);
  border-radius: var(--radius);
  overflow: hidden;
}

.home-hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 720px;
}

.home-hero-text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: var(--side-margin);
  max-width: 640px;
}

.home-hero-title {
  font-weight: 300;
  font-size: 48px;
  line-height: 120%;
  color: var(--black);
}

.home-hero-btn {
  margin-top: 40px;
}

.home-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

/* ── Home Treatments (2x2 grid) ── */

.home-treatments {
  width: var(--full-width);
  max-width: calc(100% - 40px);
  margin: 24px auto 0;
}

.home-treatments-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 767px) {
  .home-treatments {
    max-width: calc(100% - 16px);
  }

}

.home-treat-card {
  position: relative;
  display: block;
  aspect-ratio: 928 / 646;
  border-radius: var(--radius);
  overflow: hidden;
  background: #E4E7EB;
}

.home-treat-img {
  position: absolute;
  inset: 0;
}

.home-treat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.home-treat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.62) 32%, rgba(255, 255, 255, 0) 60%);
}

.home-treat-card:hover .home-treat-img img {
  transform: scale(1.04);
}

.home-treat-body {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 60px;
  max-width: 56%;
}

.home-treat-body > span:first-child {
  font-weight: 700;
    font-size: 16px;
    line-height: 130%;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #333;
    margin-bottom: 20px;
}

.home-treat-body h3 {
  font-weight: 300;
  font-size: 30px;
  line-height: 124%;
  color: var(--black);
  max-width: 300px;
  margin-bottom: 36px;
}

.home-treat-card:hover .btn-discover-sm {
  background: var(--blue);
  color: var(--white);
  border-color: transparent;
}

/* ── Problems we can solve ── */

.problems {
  width: var(--content-width);
  max-width: calc(100% - 40px);
  margin: 160px auto 0;
}

.problems-intro {
  margin-bottom: 56px;
}

.problems-intro h2 + p {
  margin-top: 20px;
}

.problems-cards {
  display: flex;
  gap: 24px;
  margin-bottom: 48px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.problems-cards::-webkit-scrollbar {
  display: none;
}

.problem-card {
  flex: 0 0 26.8%;
  /* aspect-ratio: 44 / 57; */
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  border: 1px solid #E4E7EB;
  border-radius: var(--radius);
  padding: 48px 36px 44px;
  background: var(--white);
}

.problem-card.is-active {
  background: var(--blue);
  border-color: var(--blue);
}

.problem-illustration {
  height: 150px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.problem-illustration img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.problem-card.is-active .problem-illustration img {
  filter: brightness(0) invert(1);
}

.problem-line {
  width: 100%;
  border: 0;
  border-top: 1px solid #E4E7EB;
  margin: 40px 0 44px;
}

.problem-card.is-active .problem-line {
  border-top-color: rgba(255, 255, 255, 0.45);
}

.problem-card h3 {
  font-weight: 700;
  font-size: 13px;
  line-height: 110%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 14px;
}

.problem-card p {
  font-weight: 300;
  font-size: 15px;
  line-height: 150%;
  letter-spacing: -0.01em;
  color: var(--text);
}

.problem-card.is-active h3,
.problem-card.is-active p {
  color: var(--white);
}

/* ── Home Cost ── */

.home-cost {
  width: var(--full-width);
  max-width: calc(100% - 40px);
  margin: 160px auto 0;
  /* background: #F4F6F9; */
      background: linear-gradient(37deg, rgba(244, 245, 245, 0.3) 23%, rgba(209, 211, 212, 0.3) 100%);
  border-radius: var(--radius);
  overflow: hidden;
}

.home-cost-inner {
  display: flex;
  align-items: stretch;
  min-height: 720px;
}

.home-cost-image {
  order: -1;
  flex: 0 0 50%;
  align-self: stretch;
}

.home-cost-image img {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
  display: block;
}

.home-cost-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 120px;
}

.home-cost-eyebrow {
  font-weight: 700;
  font-size: 13px;
  line-height: 110%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 24px;
}

.home-cost-title {
  font-weight: 300;
  font-size: 40px;
  line-height: 120%;
  color: var(--black);
  margin-bottom: 24px;
}

.home-cost-desc {
  font-weight: 300;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: -0.01em;
  color: var(--text);
  max-width: 460px;
}

.home-cost-features {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: start;
  gap: 28px 64px;
  list-style: none;
  margin: 48px 0;
  padding: 0;
}

.home-cost-features li {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.home-cost-ficon {
  display: inline-flex;
  flex: 0 0 auto;
  color: var(--blue);
}

.home-cost-ftext {
  display: flex;
  flex-direction: column;
  font-weight: 300;
  font-size: 16px;
  line-height: 140%;
  color: var(--text);
}

.home-cost-ftext strong {
  font-weight: 600;
  color: var(--black);
}

@media (max-width: 767px) {
  .home-cost-ficon {
    width: 32px;
  }
}


/* ── Why Choose ── */

.why-choose {
  width: var(--content-width);
  max-width: calc(100% - 40px);
  margin: 160px auto 0;
}

.why-choose-head {
  margin-bottom: 56px;
}

.why-choose-head h2 + p {
  margin-top: 20px;
}

.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(140, 180, 232, 0.32);
  border-left: 1px solid rgba(140, 180, 232, 0.32); 
}

.why-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  min-height: 180px;
  padding: 40px 50px;
  border-right: 1px solid #E4E7EB;
  border-bottom: 1px solid #E4E7EB;
}

.why-item {
  transition: background-color 0.3s ease-in-out;
}

.why-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  transition: filter 0.3s ease-in-out;
}

.why-label {
  display: flex;
  flex-direction: column;
  width: 100%;
  font-weight: 400;
  font-size: 14px;
  line-height: 140%;
  color: var(--text);
  text-align: left;
  transition: color 0.3s ease-in-out;
}

.why-label strong {
  font-weight: 700;
  color: var(--black);
  transition: color 0.3s ease-in-out;
}

.why-item:hover {
  background: var(--blue);
}

.why-item:hover .why-label,
.why-item:hover .why-label strong {
  color: var(--white);
}

.why-item:hover .why-icon {
  filter: brightness(0) invert(1);
}

/* ── The Difference (video) ── */

.difference {
  position: relative;
  width: var(--full-width);
  max-width: calc(100% - 40px);
  margin: 160px auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 880px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.difference-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.difference-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 25, 33, 0.35) 0%, rgba(17, 25, 33, 0.82) 70%);
}

.difference-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 540px;
  margin-right: var(--side-margin);
  color: var(--white);
}

.difference-eyebrow {
  font-weight: 700;
  font-size: 13px;
  line-height: 110%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 24px;
}

.difference-title {
  font-weight: 300;
  font-size: 40px;
  line-height: 120%;
  color: var(--white);
  margin-bottom: 24px;
}

.difference-desc {
  font-weight: 300;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.82);
  max-width: 480px;
}

.difference-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 48px;
}

.difference-discover.btn-solid-black {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  transition: background 0.3s ease-in-out, border-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.difference-discover.btn-solid-black:hover {
  background: var(--blue);
  border-color: transparent;
  color: var(--white);
}

.difference-play.video-thumb {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: auto;
  aspect-ratio: auto;
  border-radius: 0;
  overflow: visible;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
}

.difference-play.video-thumb::before {
  content: none;
}

.difference-play svg {
  flex: 0 0 auto;
}

@media (max-width: 1440px) {
  .difference {
    margin: 120px auto 0;
    min-height: 720px;
  }
  .home-hero-text {
    margin-left: 80px;
  }
  .home-hero-title {
    font-size: 48px;
  }
  .home-cost-text {
    padding: 64px 72px;
  }
  .difference-content {
    margin-right: 80px;
  }
  .home-treat-body {
    max-width: 69%;
    padding: 40px;
  }
}

@media (max-width: 1024px) {
  .home-hero-inner {
    flex-direction: column;
    min-height: 615px;
  }
  .home-hero-text {
    margin: 0;
    padding: 48px 40px;
    max-width: none;
    width: 100%;
    align-items: flex-start;
    justify-content: space-between;
    flex: 1 0 auto;
  }
  .home-hero-title {
    font-size: 40px;
  }
  .home-hero-btn {
    width: 100%;
    justify-content: space-between;
    margin-top: 0;
  }
  .home-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .home-treatments-grid {
    grid-template-columns: 1fr;
  }

  .problem-card {
    flex: 0 0 calc((100% - 24px) / 2);
  }

  .home-cost-inner {
    flex-direction: column;
    min-height: 0;
    position: relative;
  }
  .home-cost-image {
    position: absolute;
    inset: 0;
    width: 100%;
  }
  .home-cost-image img {
    height: 100%;
    min-height: 0;
  }
  .home-cost-text {
    position: relative;
    z-index: 1;
    padding: 130vw 48px 56px;
  }

  .why-choose-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 32px;
  }

  .difference {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 0;
  }
  .difference-bg {
    position: relative;
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: top;
  }
  .difference-overlay {
    background: linear-gradient(180deg, rgba(17, 25, 33, 0.25), rgba(17, 25, 33, 0.55) 50%, var(--black) 50%);
  }
  .difference-content {
    margin: 0;
    padding: 48px 40px;
    max-width: none;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .home-hero {
    max-width: calc(100% - 16px);
  }
  .home-hero-text {
    padding: 40px 35px 36px;
  }
  .home-hero-title {
    font-size: 36px;
  }

  .home-treat-card {
    aspect-ratio: 374 / 589;
  }
  .home-treat-card::before {
    display: none;
  }
  .home-treat-img img {
    object-position: center top;
  }
  
  .home-treat-body h3 {
    max-width: none;
  }

  .problems {
    margin-top: 63px;
  }
  .problem-card {
    flex: 0 0 84%;
  }

  .home-cost {
    margin-top: 66px;
    max-width: calc(100% - 16px);
  }
  .home-cost-text {
    padding: 130vw 28px 48px;
  }
  .home-cost-title {
    font-size: 32px;
  }
  .home-cost-features {
    flex-wrap: wrap;
    gap: 15px 20px;
    margin: 36px 0;
  }

  .why-choose {
    margin-top: 56px;
  }
  .why-choose-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }
  .why-item {
    align-items: flex-start;
    justify-content: flex-start;
    gap: 16px;
    min-height: 150px;
    padding: 24px 20px;
  }
  .why-icon {
    width: 40px;
    height: 40px;
  }
  .why-label {
    font-size: 15px;
    text-align: left;
  }

  .difference {
    margin-top: 56px;
    max-width: calc(100% - 16px);
  }
  .difference-content {
    padding: 0px 28px 60px;
        margin-top: -80px;
  }
  .difference-title {
    font-size: 30px;
  }
  .difference-actions {
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 36px;
  }
}

@media (max-width: 767px) {
  .difference-play.video-thumb{
    position: absolute;
    top: -92px;
    left: 50%;
    transform: translateX(-50%);
  }
  .home-hero-title {
    font-size: 36px;
  }
  .home-treat-body h3 {
    font-size: 24px;
  }
}

/* ── Mobile: all carousel cards full-width (one per view) ── */
@media (max-width: 768px) {
  .treatments-cards .treatment-card,
  .team-cards .team-card,
  .blog-cards .blog-card,
  .ba-cards .ba-card,
  .testimonials-cards .testimonial-card,
  .problems-cards .problem-card {
    flex: 0 0 100%;
    width: 100%;
  }
  .treatments-cards,
  .team-cards,
  .blog-cards,
  .ba-cards,
  .testimonials-cards,
  .problems-cards {
    margin-left: 0;
    margin-right: 0;
  }
}

/* ── Mobile: BA card details as 2×2 (name|age, treatment|classification) ── */
@media (max-width: 768px) {
  .ba-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
    align-items: start;
  }
  .ba-info h3 {
    grid-column: 1 / -1;
  }
  .ba-details {
    display: contents;
  }
}

/* Results page — hide testimonials */
.page-results .testimonials { display: none; }

.sbs--community-engagement {
  margin-bottom: 160px;
}

@media (max-width: 768px) {
  .sbs--community-engagement {
    margin-bottom: 60px;
  }
}
