/* ==========================================================================
   Rubin Orthodontics — main.css
   ========================================================================== */

/* ── Local font (Marcellus, 400) ───────────────────────────────────── */
@font-face {
  font-family: "Marcellus";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/marcellus-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Local font (Hurricane, 400 — accent script) ───────────────────── */
@font-face {
  font-family: "Hurricane";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/hurricane-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font: "Marcellus", Georgia, "Times New Roman", serif;
  --font-accent: "Hurricane", cursive;

  --teal: #4e99a0;
  --teal-light: #a6cbcf;
  --teal-mist: #e9f2f3;
  --teal-dark: #166a85;
  --blue: #236799;
  --blue-deep: #12405f;
  --ink: #231f20;
  --text: #2f3a3d;
  --muted: #55636a;
  --white: #fff;
  --cream: #fbf9f9;
  --line: #d5e4e6;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 12px 34px rgba(18, 64, 95, .12);
  --shadow-sm: 0 4px 14px rgba(18, 64, 95, .10);
  --ease: cubic-bezier(.4, 0, .2, 1);
  --container: 1370px;
  --gutter: 20px;
  --section-y: clamp(56px, 7vw, 100px);
  --header-h: 92px;
}

/* ── Reset ────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 90%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.1875rem;
  /* ≈17px with the 90% root size */
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

html,
body {
  overflow-x: clip;
}

img,
picture,
video,
iframe,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

picture {
  display: contents;
}

a {
  color: var(--teal-dark);
  text-decoration: none;
  transition: color .2s var(--ease);
}

a:hover {
  color: var(--blue);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

button {
  font: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 .5em;
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.15;
  color: var(--blue-deep);
}

h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
}

h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
}

h3 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
}

h4 {
  font-size: 1.4rem;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.3em;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2em 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

blockquote {
  margin: 0;
}

.bg-light {
  background: var(--teal-mist);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 1000;
  padding: 10px 18px;
  background: var(--blue-deep);
  color: var(--white);
  border-radius: var(--radius-sm);
  transition: top .2s var(--ease);
}

.skip-link:focus {
  top: 12px;
  color: var(--white);
}

.text-center {
  text-align: center;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--narrow {
  max-width: 980px;
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.rb-btn,
.wpcf7-submit,
.gform_wrapper.gravity-theme .gform_button,
.search-form__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 30px;
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1.2;
  color: var(--white);
  background: var(--teal-dark);
  border: 2px solid var(--teal-dark);
  border-radius: 999px;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
  text-align: center;
  cursor: pointer;
}

.rb-btn:hover,
.wpcf7-submit:hover,
.gform_wrapper.gravity-theme .gform_button:hover,
.search-form__btn:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  color: var(--white);
  transform: translateY(-2px);
}

.rb-btn--light {
  background: var(--white);
  color: var(--teal-dark);
  border-color: var(--white);
}

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

.rb-btn--outline {
  background: transparent;
  color: var(--teal-dark);
}

.rb-btn--outline:hover {
  background: var(--teal-dark);
  color: var(--white);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 1.5em;
}

.section-title {
  position: relative;
  margin-bottom: .7em;
}

.section-eyebrow,
.welcome__eyebrow {
  display: block;
  font-style: normal;
  font-weight: 400;
  font-size: .55em;
  color: var(--teal-dark);
  letter-spacing: .02em;
  margin-bottom: .1em;
}

/* ==========================================================================
   Header (transparent over banner) — singortho layout
   ========================================================================== */
.container-wide {
  width: 100%;
  max-width: 1645px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.rb-btn--square {
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 1.02rem;
  padding: 10px 22px;
}

.rb-btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, .7);
}

.rb-btn--ghost:hover {
  background: var(--white);
  color: var(--teal-dark);
  border-color: var(--white);
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 99;
  width: 100%;
  color: var(--white);
}

.header-main {
  padding: 14px 0;
}

.header-main__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.header-logo {
  display: block;
}

.header-logo img {
  width: auto;
  height: 76px;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .25));
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 400;
}

.header-main__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--white);
  white-space: nowrap;
}

.phone-link:hover {
  color: var(--teal-light);
}

.phone-link__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--teal-dark);
  flex: 0 0 auto;
  transition: background .25s var(--ease);
}

.phone-link__icon img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.phone-link:hover .phone-link__icon {
  background: var(--blue-deep);
}

.header-main .phone-link {
  text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}

.header-cta {
  min-height: 48px;
  white-space: nowrap;
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 9px;
  background: transparent;
  border: 0;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s var(--ease);
}

.menu-toggle span:nth-child(2) {
  width: 75%;
  margin-left: auto;
}

.menu-toggle:hover span:nth-child(2) {
  width: 100%;
}

.header-main .menu-toggle {
  color: var(--white);
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .4));
}

/* ── Sticky header ─────────────────────────────────────────────────── */
.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 100%;
  background: var(--white);
  box-shadow: 0 6px 24px rgba(18, 64, 95, .14);
  transform: translateY(-110%);
  transition: transform .3s var(--ease);
  visibility: hidden;
}

.sticky-header.is-visible {
  transform: none;
  visibility: visible;
}

.sticky-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 76px;
}

.sticky-header__logo {
  flex: 0 0 auto;
}

.sticky-header__logo img {
  width: auto;
  height: 70px;
}

.sticky-header__logo .logo-text {
  color: var(--blue-deep);
}

.sticky-header__right {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.sticky-header .header-offices--sticky {
  gap: 6px 34px;
}

.sticky-header .header-offices--sticky .header-office {
  gap: 4px;
}

.sticky-header .header-offices--sticky a {
  color: var(--blue-deep);
  font-size: 16px;
  text-shadow: none;
  font-weight: 600;
}

.sticky-header .header-offices--sticky a:hover {
  color: var(--teal-dark);
}

.sticky-header .header-offices--sticky img {
  filter: none;
}

.sticky-cta {
  min-height: 48px;
  white-space: nowrap;
}

.sticky-header .menu-toggle {
  color: var(--blue-deep);
}

.rb-btn--arrow::after {
  content: "";
  width: 14px;
  height: 10px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 14 10%27%3E%3Cpath d=%27M0 5h12M8 1l4 4-4 4%27 stroke=%27black%27 stroke-width=%271.6%27 fill=%27none%27/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 14 10%27%3E%3Cpath d=%27M0 5h12M8 1l4 4-4 4%27 stroke=%27black%27 stroke-width=%271.6%27 fill=%27none%27/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .25s var(--ease);
  display: none;
}

.rb-btn--arrow:hover::after {
  transform: translateX(4px);
}


/* ── Sidebar menu ──────────────────────────────────────────────────── */
.side-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 990;
  background: rgba(0, 0, 0, .45);
}

.side-menu-overlay[hidden] {
  display: none;
}

body.menu-open {
  overflow: hidden;
}

.side-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  width: min(400px, 90vw);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--blue-deep);
  color: var(--white);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .3s var(--ease), visibility .3s;
}

/* Bridge art: a background pinned to the panel (it doesn't scroll with the
   menu). Set as --side-menu-bg in header.php; avoids iOS Safari repaint lag. */
.side-menu {
  isolation: isolate;
  background-image: var(--side-menu-bg, none);
  background-repeat: no-repeat;
  background-position: -90px 100%;
  background-size: 1100px auto;
}

.side-menu::-webkit-scrollbar {
  width: 0;
}

.side-menu.is-open {
  transform: none;
  visibility: visible;
}

.side-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.side-menu__logo img {
  height: 52px;
  width: auto;
}

.side-menu__close {
  position: relative;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .35);
  background: transparent;
  transition: transform .25s var(--ease), background .25s;
}

.side-menu__close:hover {
  transform: rotate(90deg);
  background: var(--teal-dark);
}

.side-menu__close span,
.side-menu__close span::before {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  background: var(--white);
}

.side-menu__close span {
  transform: translate(-50%, -50%) rotate(45deg);
}

.side-menu__close span::before {
  content: "";
  left: 0;
  top: 0;
  transform: rotate(90deg);
}

.side-menu__text {
  margin: 18px 28px 0;
  color: rgba(255, 255, 255, .85);
}

.side-nav__menu {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.side-nav__menu li {
  position: relative;
}

.side-nav__menu>li>a {
  display: block;
  padding: 12px 60px 12px 28px;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--white);
  transition: background .2s;
}

.side-nav__menu>li>a:hover,
.side-nav__menu>li.is-open>a,
.side-nav__menu>.current-menu-item>a,
.side-nav__menu>.current-menu-ancestor>a {
  background: var(--teal-dark);
  color: var(--white);
}

.side-nav__menu .submenu-toggle {
  position: absolute;
  right: 12px;
  top: 5px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
}

.side-nav__menu .submenu-toggle span {
  position: absolute;
  left: 50%;
  top: 45%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: translate(-50%, -50%) rotate(45deg);
  transition: transform .25s var(--ease);
}

.side-nav__menu .is-open>.submenu-toggle span {
  transform: translate(-50%, -20%) rotate(-135deg);
}

.side-nav__menu .sub-menu {
  display: none;
  margin: 0;
  padding: 4px 0 8px;
  list-style: none;
  background: rgba(0, 0, 0, .18);
}

.side-nav__menu .is-open>.sub-menu {
  display: block;
}

.side-nav__menu .sub-menu a {
  display: block;
  padding: 8px 28px 8px 44px;
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, .9);
}

.side-nav__menu .sub-menu a:hover,
.side-nav__menu .sub-menu .current-menu-item>a {
  background: var(--teal-dark);
  color: var(--white);
}

.side-menu__contact {
  margin: 20px 0 0;
  padding: 18px 0 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

/* Divider between offices (location + phone groups) */
.side-menu__contact-start:not(:first-child) {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.side-menu__contact a {
  display: flex;
  align-items: center;
  padding: 3px 28px;
  color: var(--white);
  font-weight: 400;
}

.side-menu__contact a:hover {
  background: var(--teal-dark);
  color: var(--white);
}


.side-menu__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  /* background: var(--teal-dark); */
  flex: 0 0 auto;
}

/* Inline SVG icons use currentColor (white) — no filter, no image request */
.side-menu__icon svg {
  display: block;
  width: 20px;
  height: 20px;
  color: var(--white);
}

.side-menu__buttons {
  display: grid;
  gap: 10px;
  padding: 22px 28px 0;
}

.side-menu__buttons .rb-btn {
  width: 100%;
}

.side-menu__social {
  flex-wrap: wrap;
  gap: 8px;
  padding: 22px 28px 30px;
  margin-top: auto;
}

.side-menu__social a {
  width: 38px;
  height: 38px;
  /* background: rgba(255, 255, 255, .1); */
}

.side-menu__social img {
  filter: brightness(0) invert(1);
}


/* ── Phone popup (one icon → offices list, small screens) ── */
.phone-pop {
  position: relative;
  display: none;
}

.phone-pop__toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: var(--teal-dark);
  transition: background .25s var(--ease);
}

.phone-pop__toggle img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.phone-pop__toggle:hover,
.phone-pop.is-open .phone-pop__toggle {
  background: var(--blue-deep);
}

/* Centered dark card over a dimmed page (the large box-shadow is the backdrop;
   clicking it counts as an outside click and closes the popup). */
.phone-pop__panel {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1000;
  width: min(520px, calc(100vw - 32px));
  padding: 34px 40px;
  color: var(--white);
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 46px),
    var(--blue-deep);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(5, 20, 35, .45), 0 0 0 100vmax rgba(10, 30, 45, .55);
  transform: translate(-50%, -50%);
}

.phone-pop__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  background: rgba(255, 255, 255, .7);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s var(--ease);
}

.phone-pop__close:hover {
  background: var(--white);
}

.phone-pop__close span,
.phone-pop__close span::before {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--blue-deep);
  transform: rotate(45deg);
}

.phone-pop__close span::before {
  content: "";
  transform: rotate(90deg);
}

.phone-pop__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.phone-pop__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.phone-pop__item+.phone-pop__item {
  margin-top: 20px;
}

.phone-pop__item a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-shadow: none;
}

.phone-pop__item img {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  filter: brightness(0) invert(1);
}

.phone-pop__location {
  font-size: 1.15rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.phone-pop__location img {
  display: none;
}

.phone-pop__phone {
  font-size: 1.3rem;
}

.phone-pop__item a:hover {
  color: var(--teal-light);
}

/* ==========================================================================
   Hero banner (full-height slider)
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  background: var(--blue-deep);
  color: var(--white);
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__swiper,
.hero__swiper .swiper-wrapper,
.hero__slide {
  width: 100%;
  height: 100%;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 30, 45, .55) 0%, rgba(10, 30, 45, .25) 35%, rgba(10, 30, 45, .45) 70%, rgba(10, 30, 45, .75) 100%);
}

.hero__decor {
  position: absolute;
  right: -70px;
  bottom: -110px;
  z-index: -1;
  width: min(800px, 70vw);
  opacity: .22;
  pointer-events: none;
}

.hero__decor svg {
  width: 100%;
  height: auto;
}

.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* gap: 14px; */
  padding-top: 240px;
  padding-bottom: 80px;
  text-align: center;
}

.hero__title {
  margin: 0;
  color: var(--white);
  font-weight: 400;
  line-height: 1;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .3);
  font-family: var(--font-accent);
}

.hero__title-top {
  display: block;
  font-size: clamp(1.8rem, 5vw, 5rem);
  font-style: normal;
  font-weight: 400;
  margin-bottom: -.1em;
  text-align: left;
  transform: translateX(10px);
}


.hero__title-accent {
  display: block;
  font-size: clamp(4.2rem, 13vw, 11rem);
  color: var(--teal-light);
  letter-spacing: .01em;
  font-family: var(--font);
  text-transform: uppercase;
  font-size: 5.5em;
  line-height: 0.8;
}

.hero__text {
  margin: 0;
  max-width: 760px;
  font-size: clamp(1.8rem, 5vw, 5rem);
  font-style: normal;
  font-weight: 400;
  line-height: 1.3;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
  font-family: var(--font-accent);
  transform: translateX(130px);
  color: #fff;
}


/* Inner banner sits under the transparent header */
.inner-banner {
  padding-top: 150px;
}

/* ==========================================================================
   Quick link cards (spotlight)
   ========================================================================== */
.quick-links {
  position: relative;
  z-index: 3;
}

.quick-links__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.quick-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 468 / 410;
  color: var(--white);
  background: var(--blue-deep);
}

.quick-link__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease), opacity .4s;
  opacity: .55;
}

.quick-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 106, 133, .15), rgba(18, 64, 95, .75));
  transition: opacity .4s;
}

.quick-link:nth-child(even) {
  background: var(--teal-dark);
}

.quick-link__info {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px;
  text-align: center;
}

.quick-link__icon {
  width: 46px;
  height: 46px;
  filter: brightness(0) invert(1);
  transition: transform .4s var(--ease);
}

.quick-link__title {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 400;
  line-height: 1.1;
}

.quick-link:hover {
  color: var(--white);
}

.quick-link:hover .quick-link__img {
  transform: scale(1.06);
  opacity: .8;
}

.quick-link:hover .quick-link__icon {
  transform: translateY(-4px);
}


/* ==========================================================================
   Doctor intro (heading on band edge + teal image band)
   ========================================================================== */
.doctor-intro {
  --band-top: 210px;
  --pad-top: 70px;
  position: relative;
  padding-top: var(--pad-top);
  background: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.doctor-intro__band {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--band-top);
  bottom: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--teal-dark);
}

.doctor-intro__band picture,
.doctor-intro__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.doctor-intro__bg {
  object-fit: cover;
  opacity: .2;
  mix-blend-mode: luminosity;
}

.doctor-intro__band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(22, 106, 133, .55) 0%, rgba(22, 106, 133, .15) 60%, rgba(22, 106, 133, 0) 100%);
}

.doctor-intro__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: end;
}

.doctor-intro__head {
  display: flex;
  align-items: flex-end;
  height: calc(var(--band-top) - var(--pad-top));
}

.doctor-intro__title {
  margin: 0;
  font-size: clamp(2.6rem, 5.6vw, 5.2rem);
  font-weight: 400;
  line-height: .78;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--teal-dark);
  white-space: nowrap;
}

.doctor-intro__body {
  padding: clamp(32px, 4vw, 48px) 0 clamp(48px, 6vw, 84px);
  color: var(--white);
}

.doctor-intro__text {
  max-width: 620px;
  margin: 0 0 28px;
  font-size: 1.32rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, .95);
}

.doctor-intro__btn {
  min-height: 44px;
  padding: 8px 22px;
  font-size: .95rem;
  letter-spacing: .14em;
}

.doctor-intro__media {
  align-self: end;
}

.doctor-intro__img {
  display: block;
  width: 100%;
  max-width: 535px;
  margin: 0 auto;
}

/* ==========================================================================
   Welcome (image + intro content)
   ========================================================================== */
.welcome {
  position: relative;
  padding: clamp(64px, 8vw, 120px) 0;
  background: linear-gradient(180deg, var(--white) 0%, var(--teal-mist) 100%);
  overflow: hidden;
}

.welcome__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.welcome--with-image .welcome__inner {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
}

.welcome__media {
  position: relative;
  /* padding: 0 0 28px 28px; */
}

.welcome__frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: 760px;
  box-shadow: 0 30px 60px rgba(18, 64, 95, .18);
  border-radius: var(--radius-sm);
}

.welcome__frame picture {
  display: contents;
}

.welcome__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 20%;
  transition: transform 1.2s var(--ease);
}

/* .welcome__media:hover .welcome__img {
  transform: scale(1.03);
} */

.welcome__media::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 70%;
  height: 70%;
  border: 2px solid var(--teal);
  z-index: 0;
  display: none;
}

.welcome__badge {
  position: absolute;
  z-index: 2;
  right: -34px;
  bottom: 64px;
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 16px 40px rgba(18, 64, 95, .2);
  display: none;
}

.welcome__badge::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px dashed var(--teal-light);
}

.welcome__badge img {
  width: 64px;
  height: 64px;
}

.welcome__header {
  margin-bottom: 1.8rem;
}

.welcome:not(.welcome--with-image) .welcome__header {
  text-align: center;
}

.welcome__mark {
  width: 60px;
  height: 60px;
  margin: 0 auto 14px;
}

.welcome__title {
  margin: 0 0 .25em;
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  line-height: 1.08;
  color: var(--blue-deep);
}

.welcome__eyebrow {
  display: block;
  margin-bottom: .45em;
  font-size: .36em;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.welcome__sub {
  position: relative;
  margin: 0;
  padding-bottom: 22px;
  font-size: 1.3rem;
  color: var(--teal-dark);
}

.welcome__sub::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 2px;
  background: var(--teal);
}

.welcome:not(.welcome--with-image) .welcome__sub::after {
  left: 50%;
  transform: translateX(-50%);
}

.welcome__content {
  max-width: 680px;
  font-size: 1.14rem;
  line-height: 1.85;
  color: var(--text);
}

.welcome__content p {
  margin-bottom: 1.15em;
}

.welcome__content p:first-child {
  font-size: 1.24rem;
  color: var(--blue-deep);
}

.welcome__actions {
  margin-top: 2rem;
}

.welcome {
  isolation: isolate;
}

.welcome__bg-art {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  z-index: -1;
  pointer-events: none;
  opacity: .09;
}

.welcome__bg-art svg {
  display: block;
  width: 100%;
  height: auto;
  min-width: 900px;
}


/* ==========================================================================
   Promo (Invisalign) — content left, framed photo right (mirrors Welcome)
   ========================================================================== */
.promo {
  position: relative;
  padding: clamp(64px, 8vw, 120px) 0;
  /* background: linear-gradient(180deg, var(--teal-mist) 0%, var(--white) 100%); */
  overflow: hidden;
}

.promo__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  /* max-width: 1100px; */
}

.promo--with-photo .promo__inner {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  /* max-width: 1645px; */
}

.promo__title {
  position: relative;
  margin: 0 0 .6em;
  padding-bottom: 22px;
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: .04em;
  color: var(--blue-deep);
}

.promo__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 2px;
  background: var(--teal);
}

.promo__eyebrow {
  display: block;
  margin-bottom: .45em;
  font-size: max(.36em, .95rem);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.promo__text {
  max-width: 620px;
  margin: 0 0 2rem;
  font-size: 1.2rem;
  line-height: 1.85;
  color: var(--text);
}

.promo__buttons {
  margin-top: 0;
  gap: 12px;
}

.promo__btn {
  min-height: 50px;
  padding: 10px 26px;
}

.promo__btn:nth-child(2) {
  background: transparent;
  border-color: var(--teal-dark);
  color: var(--teal-dark);
}

.promo__btn:nth-child(2):hover {
  background: var(--teal-dark);
  color: var(--white);
}

/* Framed photo with offset outline (mirror of Welcome) */
.promo__media {
  position: relative;
}

.promo__media::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 70%;
  height: 70%;
  border: 2px solid var(--teal);
  z-index: 0;
  display: none;
}

.promo__frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  box-shadow: 0 30px 60px rgba(18, 64, 95, .18);
  border-radius: var(--radius);
  overflow: hidden;
}

.promo__frame picture {
  display: contents;
}

.promo__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 30%;
  transition: transform 1.2s var(--ease);
}

/* .promo__media:hover .promo__img {
  transform: scale(1.03);
} */

.promo__badge {
  position: absolute;
  z-index: 2;
  left: -40px;
  bottom: 56px;
  width: 140px;
  padding: 18px;
  background: var(--white);
  box-shadow: 0 16px 40px rgba(18, 64, 95, .2);
  border-radius: var(--radius);
}

.promo__badge-img {
  display: block;
  width: 100%;
  height: auto;
}

.promo__badge--inline {
  position: static;
  margin-top: 2rem;
  box-shadow: none;
  padding: 0;
  background: none;
  width: 110px;
}



/* ==========================================================================
   Testimonial slider + Instagram — two contained cards
   ========================================================================== */
.testimonial-slider {
  padding: clamp(64px, 8vw, 110px) 0;
  background: var(--teal-mist);
}

.testimonial-slider__heading {
  margin-bottom: 1.2em;
  text-align: center;
  color: var(--blue-deep);
}

.testimonial-slider__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: stretch;
  gap: clamp(24px, 3vw, 40px);
}

.testimonial-slider__grid--single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 820px;
  margin: 0 auto;
}

/* ── Review card ── */
.review-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(36px, 4.5vw, 60px) clamp(28px, 4.5vw, 60px) clamp(30px, 3.5vw, 44px);
  background: var(--white);
  box-shadow: 0 24px 60px rgba(18, 64, 95, .08);
  /* border-top: 3px solid var(--teal); */
  border-radius: var(--radius-sm);
}

.review-panel__mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: auto 0 26px;
  border-radius: 50%;
  background: var(--teal-mist);
  color: var(--teal-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4rem;
  line-height: 1;
  padding-top: 26px;
}

.testimonial-slider__swiper {
  width: 100%;
  margin: 0 0 28px;
}

.testimonial__quote {
  margin: 0 0 22px;
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  line-height: 1.55;
  color: var(--blue-deep);
}

.testimonial__name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-style: normal;
  font-size: 1.02rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.testimonial__name::before {
  content: "";
  width: 36px;
  height: 1px;
  background: currentColor;
}

.review-panel__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.review-panel__nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.review-panel__arrow {
  position: relative;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  transition: background .25s var(--ease), border-color .25s var(--ease);
}

.review-panel__arrow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--teal-dark);
  border-right: 2px solid var(--teal-dark);
}

.review-panel__arrow--prev::before {
  transform: translate(-30%, -50%) rotate(-135deg);
}

.review-panel__arrow--next::before {
  transform: translate(-70%, -50%) rotate(45deg);
}

.review-panel__arrow:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

.review-panel__arrow:hover::before {
  border-color: var(--white);
}

.testimonial-slider__pagination.swiper-pagination {
  position: static;
  width: auto;
  display: flex;
  gap: 2px;
}

.testimonial-slider .swiper-pagination-bullet {
  background: var(--teal-light);
  opacity: .6;
}

.testimonial-slider .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--teal-dark);
}

.review-panel__btn {
  min-height: 46px;
  padding: 9px 22px;
  font-size: .95rem;
}

/* ── Instagram card ── */
.insta-panel {
  display: flex;
  min-width: 0;
  /* background: var(--white); */
  /* box-shadow: 0 24px 60px rgba(18, 64, 95, .08); */
  /* border-top: 3px solid #b8913a; */
}

.insta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  width: 100%;
  padding: clamp(30px, 3.5vw, 44px);
  color: var(--blue-deep);
}

.insta-block__logo svg {
  display: block;
  width: 160px;
  height: auto;
  fill: var(--blue-deep);
}

.insta-block__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.insta-block__item {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
}

.insta-block__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}

.insta-block__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(22, 106, 133, .35);
  opacity: 0;
  transition: opacity .3s var(--ease);
}

a.insta-block:hover .insta-block__item:hover img {
  transform: scale(1.06);
}

a.insta-block:hover .insta-block__item:hover::after {
  opacity: 1;
}

.insta-block__cta {
  font-size: .95rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-dark);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

a.insta-block:hover .insta-block__cta {
  color: var(--blue-deep);
}



/* ==========================================================================
   Inner banner + sub nav
   ========================================================================== */
.inner-banner {
  position: relative;
  display: flex;
  align-items: end;
  min-height: clamp(220px, 34vw, 608px);
  background: var(--blue-deep);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.inner-banner__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.inner-banner__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.inner-banner__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 64, 95, .82) 0%, rgba(22, 106, 133, .55) 60%, rgba(22, 106, 133, .35) 100%);
}

.inner-banner--plain {
  background: linear-gradient(120deg, var(--blue-deep) 0%, var(--teal-dark) 100%);
  min-height: clamp(180px, 20vw, 260px);
}

.inner-banner__content {
  padding: 90px 0;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.inner-banner h1 {
  color: var(--white);
  margin: 0;
  text-align: center;
}

.inner-banner h1::after {
  content: "";
  display: block;
  width: 70px;
  height: 2px;
  margin-top: 16px;
  background: var(--teal-light);
  display: none;
}



.inner-banner p {
  margin: 12px 0 0;
  font-size: 1.2rem;
}

.sub-nav {
  background: var(--teal-mist);
  border-bottom: 1px solid var(--line);
}

.sub-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 6px;
  margin: 0;
  padding: 14px 0;
  list-style: none;
}

.sub-nav__list a {
  display: block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 1.08rem;
  font-weight: 400;
  color: var(--blue-deep);
}

.sub-nav__list a:hover {
  background: var(--white);
  color: var(--teal-dark);
}

.sub-nav__list .is-active a {
  background: var(--teal-dark);
  color: var(--white);
}


/* ==========================================================================
   Content section + entry content
   ========================================================================== */
.content-section {
  padding: var(--section-y) 0;
}

/* .content-section+.content-section {
  padding-top: 0;
} */

/* .content-section__inner {
  max-width: 1000px;
} */

.content-center .content-section__inner {
  align-items: center !important;
}

.content-section__actions {
  margin-top: 2rem;
}

.content-section--with-image .content-section__inner {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
  max-width: var(--container);
}

.content-section--img-right .content-section__media {
  order: 2;
}

/* Image on the right: keep the narrow column for the image, not the text */
.content-section--img-right .content-section__inner {
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
}

.content-section__media {
  /* position: sticky; */
  top: 110px;
}

.content-section__img {
  width: 100%;
  box-shadow: var(--shadow);
}

.content-section__media::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  z-index: -1;
  border: 2px solid var(--teal-light);
  border-radius: var(--radius);
  display: none;
}

.content-section--img-right .content-section__media::before {
  inset: 18px 18px -18px -18px;
}

.content-section__media {
  z-index: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}


/* Equal (50 / 50) image + content */
.content-section--equal .content-section__inner {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}

.content-section--equal .content-section__media {
  position: relative;
  top: auto;
}

.content-section--equal .content-section__img {
  width: 100%;
  height: auto;
}


.entry-content {
  font-size: 1.18rem;
}

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

.entry-content h2 {
  margin-top: 1.2em;
}

.entry-content h3 {
  margin-top: 1.1em;
  color: var(--teal-dark);
}

.entry-content h4 {
  margin-top: 1em;
  color: var(--teal-dark);
}

.entry-content>h2:first-child,
.entry-content>h3:first-child,
.entry-content>div:first-child>h2:first-child {
  margin-top: 0;
}

.entry-content a {
  text-decoration: underline;
  text-decoration-color: var(--teal-light);
  text-underline-offset: 3px;
}

.entry-content a:hover {
  text-decoration-color: currentColor;
}

.entry-content ul {
  list-style: none;
  padding-left: 0;
}

.entry-content ul li {
  position: relative;
  padding-left: 1.4em;
  margin-bottom: .4em;
}

.entry-content ul li::before {
  content: "";
  position: absolute;
  left: .2em;
  top: .62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.entry-content ol li {
  margin-bottom: .4em;
}

.entry-content img {
  border-radius: var(--radius-sm);
  margin: .5em 0 1em;
}

.entry-content .img-right,
.entry-content .alignright {
  float: right;
  margin: .3em 0 1em 1.5em;
  max-width: 45%;
}

.entry-content .img-left,
.entry-content .alignleft {
  float: left;
  margin: .3em 1.5em 1em 0;
  max-width: 45%;
}

.entry-content .aligncenter {
  margin-left: auto;
  margin-right: auto;
}

.entry-content::after {
  content: "";
  display: table;
  clear: both;
}

.entry-content hr {
  clear: both;
}

.entry-content table {
  margin: 1em 0 1.5em;
  font-size: 1.08rem;
}

.entry-content th,
.entry-content td {
  padding: 10px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.entry-content th {
  background: var(--teal-mist);
  color: var(--blue-deep);
}

.entry-content blockquote {
  padding: 18px 24px;
  border-left: 3px solid var(--teal);
  background: var(--teal-mist);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: normal;
}

.entry-content .embed-container,
.entry-content iframe[src*="youtube"],
.entry-content iframe[src*="google.com/maps"] {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: var(--radius-sm);
}

.entry-content div.clear {
  clear: both;
  height: 0;
  overflow: hidden;
}

.entry-content .before-after-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 0 1.5em;
}

.entry-content .before-after-row img {
  margin: 0;
  width: 100%;
}

/* ==========================================================================
   Gallery slider
   ========================================================================== */
.gallery-slider {
  padding: var(--section-y) 0;
}

.gallery-slider__intro {
  text-align: center;
  margin-bottom: 2rem;
}

.gallery-slider__swiper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--teal-mist);
  padding-bottom: 44px;
}

.gallery-slider__slide {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-slider__img {
  width: 100%;
  max-height: 640px;
  object-fit: cover;
}

.gallery-slider__slide figcaption {
  padding: 10px 16px;
  text-align: center;
  font-style: normal;
}

.gallery-slider__bottom {
  margin-top: 2rem;
}

.gallery-slider .swiper-pagination {
  display: none;
}

.gallery-slider .swiper-pagination-bullet-active {
  background: var(--teal-dark);
}

.slider-arrow {
  position: absolute;
  top: calc(50% - 0%);
  z-index: 5;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow-sm);
}

.slider-arrow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 11px;
  border-top: 2px solid var(--blue-deep);
  border-right: 2px solid var(--blue-deep);
}

.slider-arrow--prev {
  left: 14px;
}

.slider-arrow--prev::before {
  transform: translate(-30%, -50%) rotate(-135deg);
}

.slider-arrow--next {
  right: 14px;
}

.slider-arrow--next::before {
  transform: translate(-70%, -50%) rotate(45deg);
}

.slider-arrow:hover {
  background: var(--white);
}

/* ==========================================================================
   Team
   ========================================================================== */
   .custom-container .container{
    max-width: 1200px !important;
   }
.team {
  padding: var(--section-y) 0;
}

.team__intro {
  /* max-width: 900px; */
  margin: 0 auto 3rem;
  /* text-align: center; */
  font-size: 1.25rem;
}

.team__list {
  display: grid;
  gap: 60px;
}

.team-member {
  display: grid;
  grid-template-columns: 330px 1.5fr;
  gap: 36px;
  align-items: center;
  /* padding: 32px; */
  /* background: var(--white); */
  /* border: 1px solid var(--line); */
  /* border-radius: var(--radius); */
  /* box-shadow: var(--shadow-sm); */
}

.team-member__photo {
  border-radius: var(--radius);
  overflow: hidden;
}

/* .team-member:nth-child(even) {
  grid-template-columns: 1.5fr 240px;
  background: var(--cream);
} */

/* .team-member:nth-child(even) .team-member__photo {
  order: 2;
} */

.team-member__photo img {
  width: 100%;
  height: auto;
}

.team-member__name {
  margin-bottom: .1em;
}

.team-member__role {
  font-style: normal;
  font-size: 1.25rem;
  color: var(--teal-dark);
  margin-bottom: .8em;
}


/* ==========================================================================
   Testimonials list
   ========================================================================== */
.testimonials-list {
  padding: var(--section-y) 0;
  background: var(--cream);
}

.testimonials-list__intro {
  max-width: 860px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.testimonials-list__grid {
  columns: 2 340px;
  column-gap: 28px;
}

.review-card {
  break-inside: avoid;
  margin: 0 0 28px;
  padding: 32px 30px 26px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--teal);
  position: relative;
}

.review-card::before {
  content: "\201C";
  position: absolute;
  top: 4px;
  right: 22px;
  font-size: 5rem;
  line-height: 1;
  color: var(--teal-light);
}

.review-card__photo {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 14px;
}

.review-card__quote {
  font-style: normal;
  font-size: 1.18rem;
}

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

.review-card__name {
  margin-top: 14px;
  font-weight: 400;
  color: var(--teal-dark);
  letter-spacing: .05em;
  text-transform: uppercase;
  font-size: 1rem;
}

.testimonials-list__bottom {
  margin-top: 1rem;
}

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq {
  padding: var(--section-y) 0;
}

.faq__intro {
  margin-bottom: 2rem;
  text-align: center;
}

.accordion {
  display: grid;
  gap: 12px;
}

.accordion__item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  overflow: hidden;
}

.accordion__heading {
  margin: 0;
  font-size: 1.3rem;
}

.accordion__btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 18px 60px 18px 22px;
  text-align: left;
  font-family: var(--font);
  font-size: inherit;
  font-weight: 400;
  color: var(--blue-deep);
  background: transparent;
  border: 0;
  transition: background .2s var(--ease), color .2s var(--ease);
}

.accordion__btn::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-mist);
  color: var(--teal-dark);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform .25s var(--ease);
}

.accordion__btn[aria-expanded="true"] {
  background: var(--teal-dark);
  color: var(--white);
}

.accordion__btn[aria-expanded="true"]::after {
  content: "\2212";
  background: var(--white);
}

.accordion__btn:hover {
  background: var(--teal-mist);
}

.accordion__btn[aria-expanded="true"]:hover {
  background: var(--blue-deep);
}

.accordion__panel {
  padding: 20px 22px 22px;
}

.faq__bottom {
  margin-top: 2rem;
}

/* ==========================================================================
   Videos
   ========================================================================== */
.videos {
  padding: var(--section-y) 0;
}

.videos__intro {
  margin-bottom: 2rem;
}

.videos__list {
  display: grid;
grid-template-columns: 1fr 1fr;
  column-gap: 30px;
  row-gap: 50px;
}

.video-item__title {
  font-size: 1.8rem;
  color: var(--teal-dark);
  margin-top: 20px;
  text-align: center;
}

.video-facade {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .88;
  transition: opacity .3s;
}

.video-facade:hover img {
  opacity: 1;
}

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

.video-facade__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  border: 0;
  border-radius: 50%;
  background: rgba(22, 106, 133, .92);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
  transition: transform .25s var(--ease), background .25s;
}

.video-facade__play::before {
  content: "";
  position: absolute;
  left: 54%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 13px 0 13px 21px;
  border-color: transparent transparent transparent var(--white);
}

.video-facade:hover .video-facade__play {
  transform: scale(1.08);
  background: var(--blue-deep);
}

.videos__bottom {
  margin-top: 2rem;
}

/* ==========================================================================
   Office
   ========================================================================== */
.office {
  padding: var(--section-y) 0;
}

.office__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
}

.office__img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.office__card {
  padding: clamp(26px, 4vw, 44px);
  background: var(--teal-mist);
  border-radius: var(--radius);
}

.office__inner>.office__card:only-child {
  grid-column: 1 / -1;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

.office__doctors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 0 0 6px;
  padding: 0;
  list-style: none;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--blue-deep);
}

.office__name {
  font-size: 1.4rem;
  font-style: normal;
  font-weight: 400;
  color: var(--teal-dark);
}

.office__details {
  margin: 0 0 20px;
}

.office__details>div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.office__details dt {
  font-weight: 400;
  color: var(--blue-deep);
}

.office__details dd {
  margin: 0;
}

.office__directions {
  font-weight: 400;
}

.office__hours h3 {
  font-size: 1.3rem;
  margin: 10px 0;
}

.office__hours th,
.office__hours td {
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  text-align: left;
  font-size: 1.12rem;
}

.office__hours th {
  font-weight: 400;
  color: var(--blue-deep);
  width: 48%;
}

.office__map iframe {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.office__map{
  height: 100%;
}


/* ==========================================================================
   Forms (Contact Form 7)
   ========================================================================== */
.form-section {
  padding: var(--section-y) 0;
}

.form-section__inner {
  max-width: 980px;
}

.form-section--with-image .form-section__inner {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 60px);
  align-items: start;
  max-width: var(--container);
}

.form-section__img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-section__media {
  /* position: sticky; */
  top: 110px;
}

.form-card {
  /* margin-top: 2rem; */
  padding: clamp(24px, 4vw, 40px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.form-card__title {
  font-size: 1.7rem;
}

.form-section__bottom {
  margin-top: 1.5rem;
  font-size: 1.05rem;
}


.wpcf7 form p {
  margin-bottom: 1rem;
}

.wpcf7 label,
.rb-form label {
  display: block;
  font-weight: 400;
  color: var(--blue-deep);
}

.rb-form .req {
  color: #b42318;
}

.rb-form .hint {
  display: block;
  font-weight: 400;
  font-style: normal;
  font-size: .95rem;
  color: var(--muted);
}

.rb-form fieldset {
  margin: 0 0 1.5rem;
  padding: 0;
  border: 0;
}

.rb-form legend {
  margin-bottom: .6rem;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--teal-dark);
}

.rb-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}


.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="date"],
.wpcf7 input[type="number"],
.wpcf7 select,
.wpcf7 textarea,
.search-form__input {
  width: 100%;
  min-height: 48px;
  margin-top: 6px;
  padding: 10px 14px;
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #b9cdd1;
  border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
}

.wpcf7 textarea {
  min-height: 140px;
  resize: vertical;
}

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus,
.search-form__input:focus {
  border-color: var(--teal-dark);
  box-shadow: 0 0 0 3px rgba(78, 153, 160, .25);
  outline: none;
}

.wpcf7-list-item {
  display: block;
  margin: 6px 0 0;
}

.wpcf7-list-item label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
  color: var(--text);
}

.wpcf7-list-item input {
  margin-top: 7px;
  width: 18px;
  height: 18px;
  accent-color: var(--teal-dark);
  flex: 0 0 auto;
}

.rb-form .radio-inline .wpcf7-list-item {
  display: inline-block;
  margin-right: 18px;
}

.wpcf7-not-valid-tip {
  font-size: 1rem;
  color: #b42318;
  margin-top: 4px;
}

.wpcf7 form .wpcf7-response-output {
  margin: 1rem 0 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
}

.wpcf7-spinner {
  vertical-align: middle;
}

.rb-form .consent {
  font-size: 1rem;
  font-style: normal;
  color: var(--muted);
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cta {
  position: relative;
  padding: var(--section-y) 0;
  color: var(--white);
  background: var(--teal-dark);
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}

.cta__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(18, 64, 95, .78);
}

.cta .section-title {
  color: var(--white);
}

.cta__text {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.3rem;
}

.cta .btn-group {
  justify-content: center;
}

/* ==========================================================================
   Blog
   ========================================================================== */
.blog-section {
  padding: var(--section-y) 0;
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(30px, 4vw, 56px);
  align-items: start;
}

.blog-layout>.blog-main:only-child {
  grid-column: 1 / -1;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.post-card__media {
  display: block;
  aspect-ratio: 640 / 420;
  overflow: hidden;
  background: var(--teal-mist);
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}

.post-card:hover .post-card__media img {
  transform: scale(1.05);
}

.post-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--teal-light), var(--teal-dark));
}

.post-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 24px 26px;
}

.post-card__title {
  font-size: 1.5rem;
  margin: .3em 0 .5em;
}

.post-card__title a {
  color: var(--blue-deep);
}

.post-card__title a:hover {
  color: var(--teal-dark);
}

.post-card__body p {
  font-size: 1.08rem;
  flex: 1;
  /* Limit to 3 lines with an ellipsis */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.post-card__more {
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 14px;
}

.post-card__more::after {
  content: " \2192";
}

.blog-sidebar {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 24px;
}

.blog-widget {
  padding: 24px;
  background: var(--teal-mist);
  border-radius: var(--radius);
}

.blog-widget__title {
  font-size: 1.4rem;
  margin-bottom: .6em;
}

.blog-widget ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-widget li {
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.1rem;
}

.blog-widget li:last-child {
  border: 0;
}

.search-form {
  display: flex;
  gap: 8px;
}

.search-form__input {
  margin: 0;
  min-width: 0;
}

.search-form__btn {
  padding: 8px 18px;
  font-size: 1rem;
  flex: 0 0 auto;
}

.single-post__image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.single-post__image {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
}

.post-tags {
  margin-top: 2rem;
  font-size: 1.05rem;
}

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 2.5rem 0 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

/* Previous / Next as square outline buttons */
.post-nav a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 16px 22px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--teal-dark);
  border: 2px solid var(--teal-dark);
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}

.post-nav a:hover {
  background: var(--teal-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.post-nav span {
  display: block;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  transition: color .25s var(--ease);
}

.post-nav a:hover span {
  color: var(--teal-light);
}

.post-nav__prev span::before {
  content: "\2190\00a0\00a0";
}

.post-nav__next span::after {
  content: "\00a0\00a0\2192";
}

.post-nav__next {
  grid-column: 2;
  text-align: right;
}

.post-nav__next a {
  align-items: flex-end;
}


.pagination {
  margin-top: 40px;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.pagination .page-numbers {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 400;
}

.pagination .page-numbers.current,
.pagination a.page-numbers:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
}


/* ==========================================================================
   Footer — full width, two office map cards + columns
   ========================================================================== */
.site-footer {
  position: relative;
  padding-top: clamp(60px, 7vw, 100px);
  color: rgba(255, 255, 255, .86);
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(120% 80% at 100% 0%, #1b5679 0%, rgba(27, 86, 121, 0) 55%), linear-gradient(180deg, #14476a 0%, var(--blue-deep) 45%, #0e3550 100%);
}

.site-footer__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .12;
}

.site-footer__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-footer__decor {
  position: absolute;
  right: -148px;
  bottom: 0;
  z-index: -1;
  width: min(900px, 80vw);
  opacity: .1;
  pointer-events: none;
}

.site-footer__decor svg {
  width: 100%;
  height: auto;
}

.site-footer__decor--image {
  inset: 0;
  right: 0;
  width: auto;
}

.site-footer__decor--image picture {
  display: contents;
}

.site-footer__decor--image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.site-footer a {
  color: var(--white);
}

.site-footer a:hover {
  color: var(--teal-light);
}

.site-footer .rb-btn {
  color: var(--white);
}

.site-footer .rb-btn--light {
  color: var(--teal-dark);
}

.site-footer .rb-btn--light:hover {
  color: var(--white);
}

.icon-box {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  background: var(--teal-dark);
  transition: background .25s var(--ease), transform .25s var(--ease);
  border-radius: 50%;
}

.icon-box img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

/* ── Office map (replaces office cards) ── */
.site-footer:has(.footer-map__canvas) {
  padding-top: 0;
}

.footer-map {
  margin-bottom: clamp(10px, 2vw, 20px);
}

.footer-map__canvas {
  position: relative;
  line-height: 0;
  background: #c4c4c4;
}

.footer-map__canvas picture {
  display: contents;
}

.footer-map__img {
  display: block;
  width: 100%;
  height: auto;
}

.footer-map__credit {
  position: absolute;
  right: 8px;
  bottom: 6px;
  padding: 2px 6px;
  font-size: .72rem;
  line-height: 1.4;
  color: #555;
  background: rgba(255, 255, 255, .7);
}

.map-pin {
  position: absolute;
  z-index: 2;
  width: 0;
  height: 0;
  line-height: 1.4;
}

.map-pin__dot {
  position: absolute;
  left: -15px;
  top: -15px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--teal-dark);
  color: var(--white);
  font-size: .85rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
}

.map-pin__dot::after {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 2px solid var(--teal-dark);
  opacity: .5;
  animation: mapPulse 2.4s var(--ease) infinite;
}

@keyframes mapPulse {
  0% {
    transform: scale(.6);
    opacity: .7;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.map-pin__bubble {
  position: absolute;
  left: -46px;
  bottom: 34px;
  width: max-content;
  max-width: 300px;
  padding: 22px 28px 20px;
  background: linear-gradient(160deg, #1f87b0 0%, var(--teal-dark) 100%);
  color: var(--white);
  box-shadow: 0 18px 40px rgba(10, 30, 45, .3);
  border-radius: var(--radius-sm);
}

.map-pin--2 .map-pin__bubble {
  background: linear-gradient(160deg, #5aa7ad 0%, #3d8790 100%);
}

.map-pin__bubble::after {
  content: "";
  position: absolute;
  left: 30px;
  bottom: -20px;
  border-style: solid;
  border-width: 20px 32px 0 0;
  border-color: #166a85 transparent transparent transparent;
}

.map-pin--2 .map-pin__bubble::after {
  border-color: #3d8790 transparent transparent transparent;
}

.map-pin--below .map-pin__bubble {
  bottom: auto;
  top: 34px;
}

.map-pin--below .map-pin__bubble::after {
  bottom: auto;
  top: -20px;
  border-width: 0 32px 20px 0;
  border-color: transparent transparent #1f87b0 transparent;
}

.map-pin--2.map-pin--below .map-pin__bubble::after {
  border-color: transparent transparent #5aa7ad transparent;
}

.map-office__city {
  margin: 0 0 8px;
  font-size: 1.6rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white);
}

.map-office__address {
  margin: 0 0 6px;
  font-size: .95rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.map-office__phone {
  margin: 0;
  font-size: 1.35rem;
}

.map-pin__bubble a,
.map-office a {
  color: var(--white);
}

.map-pin__bubble a:hover {
  color: #d9f1f3;
}

.footer-map__list {
  display: none;
}

.footer-map__list--always {
  display: grid;
}


@media (prefers-reduced-motion: reduce) {
  .map-pin__dot::after {
    animation: none;
  }
}

/* ── Columns ── */
.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 48px;
  padding-top: clamp(44px, 5vw, 64px);
  padding-bottom: clamp(44px, 5vw, 64px);
  /* border-top: 1px solid rgba(166, 203, 207, .22); */
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding-right: clamp(0px, 3vw, 50px);
}

.footer-logo img {
  height: 78px;
  width: auto;
}

.footer-tagline {
  margin: 0;
  max-width: 360px;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .9);
}

.footer-heading {
  position: relative;
  margin-bottom: 1.2em;
  padding-bottom: .55em;
  font-size: 1.45rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--white);
}

.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 38px;
  height: 2px;
  background: var(--teal-light);
}

.footer-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li {
  margin-bottom: 11px;
}

.footer-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: rgba(255, 255, 255, .88);
  transition: color .2s, gap .25s var(--ease);
  font-size: 16px;
}

.footer-links a::before {
  content: "";
  width: 0;
  height: 2px;
  background: var(--teal-light);
  transition: width .25s var(--ease);
}

.footer-links a:hover {
  color: var(--teal-light);
  /* gap: 10px; */
}

/* .footer-links a:hover::before {
  width: 12px;
} */

.footer-contact__list {
  display: grid;
  gap: 14px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.footer-contact__list a {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.footer-contact__list a:hover .icon-box {
  background: var(--teal);
  transform: translateY(-2px);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  margin-top: 30px;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(166, 203, 207, .45);
  transition: background .25s var(--ease), border-color .25s, transform .25s var(--ease);
  border-radius: 50%;
}

.footer-social a:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  transform: translateY(-3px);
}

.footer-social img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}


/* ── Bottom bar (full bleed) ── */
.footer-bottom {
  background: rgba(0, 0, 0, .22);
  border-top: 1px solid rgba(166, 203, 207, .16);
  font-size: 1rem;
}

.footer-bottom__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
}

.footer-bottom__sep {
  margin: 0 10px;
  opacity: .45;
}

.footer-copyright a,
.footer-credit a {
  color: var(--teal-light);
}

.footer-copyright a:hover,
.footer-credit a:hover {
  color: var(--white);
}

/* ── Back to top ── */

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s, visibility .3s;
}

.back-to-top span {
  position: absolute;
  left: 50%;
  top: 56%;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--teal-dark);
  border-left: 2px solid var(--teal-dark);
  transform: translate(-50%, -50%) rotate(45deg);
}

.is-scrolled .back-to-top {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover {
  background: var(--teal-mist);
}

/* ── Swiper base fallback (before JS) ───────────────────────────────── */
.swiper:not(.swiper-initialized) .swiper-wrapper {
  display: flex;
  overflow: hidden;
}

.swiper:not(.swiper-initialized) .swiper-slide {
  flex: 0 0 100%;
}

/* ── Sesame content helpers (before/after, Invisalign package) ─────── */
.entry-content .before-after-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 0 1em;
}

.entry-content .before-after-image {
  position: relative;
  margin: 0;
  padding: 0;
}

.entry-content .before-after-image::before {
  display: none;
}

.entry-content .before-after-image img {
  width: 100%;
  margin: 0;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.entry-content .before-after-image span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 2px 12px;
  border-radius: 999px;
  background: rgba(18, 64, 95, .85);
  color: var(--white);
  font-weight: 400;
  font-size: 1rem;
}

.entry-content .before-after-text {
  font-style: normal;
}

.entry-content h2.clear {
  clear: both;
}

.entry-content #pro-pack::after {
  content: "";
  display: table;
  clear: both;
}

.entry-content img[src*="invisalign-provider"],
.entry-content img[src*="invisalign-med"] {
  max-width: 220px;
}



/* Before / after comparison slider (enhanced by main.js) */
.before-after-box.is-compare {
  --pos: 50%;
  position: relative;
  display: block;
  max-width: 760px;
  overflow: hidden;
  border-radius: var(--radius);
  user-select: none;
}

.is-compare .before-after-image img {
  display: block;
  border-radius: 0;
  pointer-events: none;
}

/* "Before" sits on top and is revealed up to the handle position */
.is-compare .before-after-image:first-child {
  position: absolute;
  inset: 0;
  z-index: 1;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

/* Frosted labels in the top corners */
.is-compare .before-after-image span {
  top: 20px;
  bottom: auto;
  left: 20px;
  z-index: 3;
  padding: 7px 20px;
  font-size: 1rem;
  letter-spacing: .08em;
  color: var(--ink);
  background: rgba(255, 255, 255, .72);
  border-radius: 4px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.is-compare .before-after-image+.before-after-image span {
  left: auto;
  right: 20px;
}

/* Grab handle: white knob inside a translucent ring (drag only) */
.ba-handle {
  position: absolute;
  top: 50%;
  left: var(--pos);
  z-index: 2;
  width: 72px;
  height: 72px;
  background: rgba(255, 255, 255, .35);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: grab;
  touch-action: none;
}

.ba-handle::after {
  content: "";
  position: absolute;
  inset: 11px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23231f20' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.5 7 4.5 12l5 5M14.5 7l5 5-5 5'/%3E%3C/svg%3E") center / 24px no-repeat;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  transition: transform .2s var(--ease);
}

.ba-handle:hover::after {
  transform: scale(1.06);
}

.is-compare.is-dragging,
.is-compare.is-dragging .ba-handle {
  cursor: grabbing;
}

.ba-range {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.before-after-box.is-compare:focus-within {
  outline: 3px solid rgba(78, 153, 160, .6);
  outline-offset: 3px;
}

.wpcf7 fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.wpcf7 .hidden-fields-container {
  display: none;
}

/* Larger pagination targets (tap-target size) */
.swiper-pagination-bullets .swiper-pagination-bullet {
  width: 14px !important;
  height: 14px !important;
  margin: 0 6px !important;
  position: relative;
}

.swiper-pagination-bullets .swiper-pagination-bullet::after {
  content: "";
  position: absolute;
  inset: -6px;
}

/* Social icon links (footer + sidebar) */
.social-links {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 28px 30px;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  transition: background .2s var(--ease);
  border: 1px solid rgba(166, 203, 207, .45);
  border-radius: 50%;
}

.social-links img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

.phone-link__body {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.phone-link__label {
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .85;
}

/* Header offices (phone over location, one column per office) */
.header-offices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 38px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-map__credit {
  display: none !important;
}

.header-office {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.header-office a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--white);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: .06em;
  line-height: 1.2;
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}

.header-office__location {
  text-transform: uppercase;
}

.header-office a:hover {
  color: var(--teal-light);
}

.header-office img {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  filter: brightness(0) invert(1);
}

/* Outlined CTA with arrow (transparent header) */
.rb-btn--outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.rb-btn--outline-light::after {
  content: "";
  width: 14px;
  height: 10px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 14 10%27%3E%3Cpath d=%27M0 5h12M8 1l4 4-4 4%27 stroke=%27black%27 stroke-width=%271.6%27 fill=%27none%27/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 14 10%27%3E%3Cpath d=%27M0 5h12M8 1l4 4-4 4%27 stroke=%27black%27 stroke-width=%271.6%27 fill=%27none%27/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .25s var(--ease);
  display: none;
}

.rb-btn--outline-light:hover {
  background: var(--white);
  color: var(--teal-dark);
  border-color: var(--white);
}

.rb-btn--outline-light:hover::after {
  transform: translateX(4px);
}

/* Marcellus ships one weight: keep emphasis legible */
strong,
b {
  font-weight: 700;
}



.clr-s-link {
  display: none;
}


.clr-s-link img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

/* ==========================================================================
   Free Consultation sections
   ========================================================================== */

.pt-0 {
  padding-top: 0 !important;
}

.pb-0{
  padding-bottom: 0 !important;
}

/* ── Consult intro ── */
.consult-intro {
  padding: var(--section-y) 0;
}

/* .consult-intro__inner {
  max-width: 1100px;
} */

.consult-intro--with-image .consult-intro__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}

.consult-intro__title {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  margin-bottom: .6em;
}

.consult-intro__text {
  font-size: 1.2rem;
  line-height: 1.8;
}

.consult-intro__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 1.4em 0 0;
  padding: 0;
  list-style: none;
}

.consult-intro__highlights li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--teal-mist);
  color: var(--blue-deep);
  border-radius: 999px;
  font-size: 1.05rem;
}

.consult-intro__highlights li::before {
  content: "";
  width: 14px;
  height: 8px;
  margin-top: -4px;
  border-left: 2px solid var(--teal-dark);
  border-bottom: 2px solid var(--teal-dark);
  transform: rotate(-45deg);
  flex: 0 0 auto;
}

.consult-intro__btn:nth-child(n+2) {
  background: transparent;
  color: var(--teal-dark);
}

.consult-intro__btn:nth-child(n+2):hover {
  background: var(--teal-dark);
  color: var(--white);
}

.consult-intro__img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: var(--shadow);
}


/* ── Option cards ── */

.card-highlight .option-cards__grid .option-card:first-child{
  background: var(--teal-dark);
}

.card-highlight .option-cards__grid .option-card:first-child .option-card__title{
  color: #fff;
}

.card-highlight .option-cards__grid .option-card:first-child .option-card__text{
  color: #fff;
}

.card-highlight .option-cards__grid .option-card:first-child .option-card__btn{
  background: #fff;
  color: var(--teal-dark);
  border: 0;
}

.card-highlight .option-cards__grid .option-card:first-child .option-card__btn:hover{
  border: 0;
  box-shadow: none;
}

.option-cards {
  padding: var(--section-y) 0;
}

.option-cards--mist {
  background: var(--teal-mist);
}

.option-cards__intro,
.steps__intro,
.visit-offices__intro {
  max-width: 760px;
  margin: 0 auto 2.4em;
  text-align: center;
  font-size: 1.2rem;
}

.option-cards__grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 30px);
  margin-top: 1em;
}

.option-cards__grid--1 {
  --cols: 1;
  max-width: 640px;
  margin-inline: auto;
}

.option-cards__grid--2 {
  --cols: 2;
  max-width: 1100px;
  margin-inline: auto;
}

.option-cards__grid--4 {
  --cols: 4;
}

.option-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(26px, 3vw, 40px);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal-dark);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  border-radius: var(--radius-sm);
}

.consult-intro__media {
  border-radius: var(--radius);
  overflow: hidden;
}

.option-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.option-card__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  background: var(--teal-mist);
  border-radius: 50%;
}

.option-card__title {
  font-size: clamp(1.45rem, 2vw, 1.7rem);
  margin-bottom: .45em;
}

.option-card__text {
  flex: 1 1 auto;
  margin-bottom: 1.4em;
  color: var(--muted);
}


/* ── Process steps ── */
.steps {
  padding: var(--section-y) 0;
}

.steps__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(22px, 3vw, 40px);
  margin: 1em 0 0;
  padding: 0;
  list-style: none;
}

.step__media {
  overflow: hidden;
  margin-bottom: 22px;
}

.step__img {
  width: 100%;
  aspect-ratio: 8 / 7;
  object-fit: cover;
  transition: transform .5s var(--ease);
}

.step:hover .step__img {
  transform: scale(1.04);
}

.step__body {
  position: relative;
  padding-left: 72px;
}

.step__num {
  position: absolute;
  left: 0;
  top: -.1em;
  font-size: 2.8rem;
  line-height: 1;
  color: var(--teal-light);
}

.step__title {
  font-size: clamp(1.4rem, 2vw, 1.65rem);
  margin-bottom: .35em;
}

.step__text {
  margin: 0;
  color: var(--muted);
}

/* ── Visit our offices ── */
.visit-offices {
  padding: var(--section-y) 0;
  background: var(--cream);
}

.visit-offices__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr));
  gap: clamp(20px, 3vw, 34px);
}

.visit-office {
  padding: clamp(26px, 3vw, 40px);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius);
}

.visit-office__name {
  padding-bottom: 14px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.5rem, 2.2vw, 1.85rem);
}

/* Address + phone stacked on the left, hours on the right */
.visit-office__cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 22px 28px;
}

.visit-office__col--hours {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.visit-office__icon {
  display: block;
  margin-bottom: 10px;
}

.visit-office__label {
  margin-bottom: .4em;
  font-size: 1.1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.visit-office__col p {
  margin: 0 0 .5em;
}

.visit-office__hours {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1.05rem;
}

.visit-office__hours li+li {
  margin-top: 4px;
}

.visit-office__link {
  text-decoration: underline;
  text-decoration-color: var(--teal-light);
  text-underline-offset: 3px;
}

.visit-office__phone {
  font-size: 1.2rem;
  color: var(--blue-deep);
}

.visit-office__more {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}



/* ── Contact (offices left, form right) ── */
.contact-section {
  padding: var(--section-y) 0;
}

.contact-section__inner {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}

.contact-section__title {
  margin-bottom: .45em;
}

.contact-section__text {
  margin-bottom: 1.6em;
  font-size: 1.15rem;
}

.contact-office {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.contact-office__name {
  margin-bottom: .6em;
  font-size: clamp(1.4rem, 2vw, 1.65rem);
}

.contact-office__list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-office__list>li,
.contact-section__email {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 14px;
  align-items: start;
}

.contact-office__icon {
  margin-top: 3px;
}

.contact-office__label {
  display: block;
  margin-bottom: 2px;
  font-weight: 400;
  color: var(--teal-dark);
}

.contact-office__hour {
  display: block;
  font-size: 1.05rem;
}

.contact-office__link {
  text-decoration: underline;
  text-decoration-color: var(--teal-light);
  text-underline-offset: 3px;
}

.contact-office__phone {
  font-size: 1.2rem;
  color: var(--blue-deep);
}

.contact-section__email {
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.contact-section__form .form-card {
  margin-top: 0;
}

.contact-section__note {
  margin-top: 1em;
  font-size: 1rem;
  color: var(--muted);
}



/* ==========================================================================
   Gravity Forms (gravity-theme) — matches the former CF7 form styling
   ========================================================================== */
.gform_wrapper.gravity-theme {
  font-family: var(--font);
}

.gform_wrapper.gravity-theme .gform_required_legend {
  margin-bottom: 1rem;
  font-size: .95rem;
  color: var(--muted);
}

.gform_wrapper.gravity-theme .gform_fields {
  grid-row-gap: 18px;
}

.gform_wrapper.gravity-theme .gsection {
  margin-top: 10px;
  padding: 0;
  border-bottom: 0;
}

.gform_wrapper.gravity-theme .gfield:first-child.gsection {
  margin-top: 0;
}

.gform_wrapper.gravity-theme .gsection_title {
  margin: 0;
  font-family: var(--font);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--teal-dark);
}

.gform_wrapper.gravity-theme .gfield_label,
.gform_wrapper.gravity-theme legend.gfield_label {
  margin-bottom: 6px;
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--blue-deep);
}

.gform_wrapper.gravity-theme .gfield_required {
  color: #b42318;
}

.gform_wrapper.gravity-theme .gfield_description {
  padding-top: 4px;
  font-size: .95rem;
  color: var(--muted);
}

.gform_wrapper.gravity-theme .gfield input[type="text"],
.gform_wrapper.gravity-theme .gfield input[type="email"],
.gform_wrapper.gravity-theme .gfield input[type="tel"],
.gform_wrapper.gravity-theme .gfield input[type="number"],
.gform_wrapper.gravity-theme .gfield select,
.gform_wrapper.gravity-theme .gfield textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #b9cdd1;
  border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
}

.gform_wrapper.gravity-theme .gfield textarea.large {
  height: 160px;
  min-height: 140px;
  resize: vertical;
}

.gform_wrapper.gravity-theme .gfield input:focus,
.gform_wrapper.gravity-theme .gfield select:focus,
.gform_wrapper.gravity-theme .gfield textarea:focus {
  border-color: var(--teal-dark);
  box-shadow: 0 0 0 3px rgba(78, 153, 160, .25);
  outline: none;
}

/* Checkboxes, radios, consent */
.gform_wrapper.gravity-theme .gchoice,
.gform_wrapper.gravity-theme .ginput_container_consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.gform_wrapper.gravity-theme .gfield-choice-input,
.gform_wrapper.gravity-theme .ginput_container_consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 5px 0 0;
  accent-color: var(--teal-dark);
}

.gform_wrapper.gravity-theme .gchoice label,
.gform_wrapper.gravity-theme .gfield_consent_label {
  max-width: none;
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
}

.gform_wrapper.gravity-theme .gf_list_inline .gfield_radio {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.gform_wrapper.gravity-theme .rb-consent p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}

/* Footer, validation, confirmation */
.gform_wrapper.gravity-theme .gform_footer {
  margin: 10px 0 0;
  padding: 0;
}

.gform_wrapper.gravity-theme .gform_button {
  width: auto;
  line-height: 1.2;
}

.gform_wrapper.gravity-theme .gform_validation_errors {
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
}

.gform_wrapper.gravity-theme .gform_validation_errors>h2 {
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 400;
}

.gform_wrapper.gravity-theme .validation_message {
  font-size: 1rem;
}

.gform_confirmation_message {
  padding: 18px 20px;
  font-size: 1.15rem;
  color: var(--blue-deep);
  background: var(--teal-mist);
  border-left: 3px solid var(--teal-dark);
  border-radius: var(--radius-sm);
}

/* GF's own stylesheet loads after the theme; these need extra specificity */
.gform_wrapper.gravity-theme .gform_fields .gfield .gfield_label {
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--blue-deep);
}

.gform_wrapper.gravity-theme .gform_fields .gfield textarea.large {
  height: 160px;
}

.gform_wrapper.gravity-theme .gform_fields .gsection {
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}


.gsection_title {
  display: none;
}

.gform_wrapper.gravity-theme .gsection {
  border-bottom: 0 !important;
}

/* ── Rounded buttons site-wide ── */
/* Icon-only buttons become circles */
.clr-s-link,
.phone-pop__toggle,
.review-panel__arrow,
.side-menu__close {
  border-radius: 50%;
}

/* Two-line Previous / Next post buttons */
.post-nav a {
  padding: 16px 30px;
  border-radius: 40px;
}


/* Single office: keep the card a readable width */
.visit-offices__grid>.visit-office:only-child {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
}

/* ── Before & After cases (cards, three per row) ── */
.ba-cases {
  padding: var(--section-y) 0;
}

.ba-cases__intro {
  max-width: 760px;
  margin: 0 auto 2.4em;
  text-align: center;
  font-size: 1.2rem;
}

.ba-cases__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.5vw, 32px);
}

.ba-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}

.ba-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.ba-card__media {
  position: relative;
  margin: 0;
  aspect-ratio: 16/9;
  background: var(--teal-mist);
}

.custom-height .ba-card__media {
  aspect-ratio: 4/4 !important;
}

/* Card image box: the slider fills the top of the card edge to edge */
.ba-card .before-after-box.is-compare {
  max-width: none;
  border-radius: 0;
}

.ba-card .before-after-image {
  position: relative;
  height: 100%;
}

.ba-card .before-after-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Single available photo (no slider) fills the media area */
.ba-card .before-after-box:not(.is-compare) {
  display: block;
}

.ba-card .before-after-image span {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 14px;
  font-size: .9rem;
  letter-spacing: .08em;
  color: var(--ink);
  background: rgba(255, 255, 255, .72);
  border-radius: 4px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.ba-card .is-compare .before-after-image span {
  top: 14px;
}

.ba-card .is-compare .before-after-image:first-child span {
  left: 14px;
}

.ba-card .is-compare .before-after-image+.before-after-image span {
  right: 14px;
}

.ba-card .ba-handle {
  width: 58px;
  height: 58px;
}

.ba-card .ba-handle::after {
  inset: 9px;
  background-size: 20px;
}

.ba-card__placeholder {
  display: grid;
  place-items: center;
  color: var(--teal-dark);
  letter-spacing: .06em;
}

.ba-card__body {
  flex: 1 1 auto;
  padding: 22px 24px 26px;
}

.ba-card__title {
  margin-bottom: .45em;
  font-size: clamp(1.3rem, 1.8vw, 1.5rem);
}

.ba-card__text {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
}




/* ── Content + Video (video left or right) ── */
.content-video {
  padding: var(--section-y) 0;
}

.content-video--left .content-video__inner,
.content-video--right .content-video__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}

.content-video--left .content-video__media {
  order: -1;
}

.content-video__title {
  margin-bottom: .5em;
}

.content-video__actions {
  margin: 1.6em 0 0;
}

.content-video__frame,
.content-video__file {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.content-video__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.content-video__file {
  object-fit: cover;
}

.content-video .video-facade {
  box-shadow: var(--shadow);
}