/* ============================================================
   Trinity House Orthodontics — styles.css
   Single shared stylesheet. Desktop-first.
   Design width 1920px. Content 1304px (308px margins),
   full-width panels 1600px (160px margins).
   ============================================================ */

/* 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 {
    /* ── Design-system colors (Trinity House Design Guide) ── */
    --maroon: #934454;
    /* --color-primary */
    --maroon-dark: #753744;
    /* --color-primary-dark */
    --green: #74A49D;
    /* --color-secondary (CTA / teal) */
    --green-dark: #5B8B84;
    /* --color-secondary-dark (CTA hover) */
    --form-error: #ffd1d6;
    /* invalid input border/label — light pink-red for contrast on maroon panels */
    --accent: #3C8B90;
    /* --color-accent */
    --text: #333333;
    /* --color-text */
    --background: #F9F9F9;
    /* --color-background */
    --gray: #D9D9D9;
    /* --color-gray */
    --white: #FFFFFF;
    --line: #E9EBED;
    /* hairline dividers */

    /* CTA gradient (teal): #74A49D → #5B8B84, top→bottom */
    --gradient-cta: linear-gradient(180deg, #74A49D 0%, #5B8B84 100%);

    /* ── Spacing scale ── */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 16px;
    --space-4: 24px;
    --space-5: 32px;
    --space-6: 40px;
    --space-7: 48px;
    --space-8: 80px;

    /* ── Motion ── */
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);

    --radius: 4px;
    /* design-system button radius */
    --content-width: 1304px;
    --side-margin: 308px;
    --full-width: 1600px;
    --full-margin: 160px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Barlow", system-ui, sans-serif;
    color: var(--text);
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
    -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;
}

picture {
    display: contents;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ── Layout helpers ── */

.container {
    width: min(100% - 48px, var(--content-width));
    margin-inline: auto;
}

.container-wide {
    width: min(100% - 48px, var(--full-width));
    margin-inline: auto;
}

/* ── Skip Link ── */

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

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

/* ── Buttons (Trinity House Design Guide button system) ── */

/* Primary CTA — teal gradient, bold, larger. Hover lifts + teal glow. */
.btn-green {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
        padding: 14px 21px;
    background: var(--gradient-cta);
    color: var(--white);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.18px;
    text-transform: uppercase;
    border-radius: var(--radius);
    transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn-green:hover {
    box-shadow: 0 6px 20px rgba(116, 164, 157, 0.35);
    transform: translateY(-1px);
}

/* Maroon solid — brand fill for secondary contexts. */
.btn-maroon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--maroon);
    color: var(--white);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.16px;
    text-transform: uppercase;
    border-radius: var(--radius);
    transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn-maroon:hover {
    background: var(--maroon-dark);
    box-shadow: 0 6px 20px rgba(147, 68, 84, 0.3);
    transform: translateY(-1px);
}

/* Secondary outline — on light backgrounds. Hover fills maroon-dark. */
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    color: var(--maroon-dark);
    border: 1px solid var(--maroon-dark);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.16px;
    text-transform: uppercase;
    border-radius: var(--radius);
    transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

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

.btn-outline:hover svg path {
    stroke: var(--white);
}

/* Arrow-slide — every CTA carrying the 10×8 arrow glyph. */
.btn-green svg,
.btn-maroon svg,
.btn-outline svg,
.tr-btn svg,
.consult-btn svg {
    width: 9px;
    height: 6px;
    flex-shrink: 0;
    transition: transform 0.25s var(--ease);
}

.btn-green:hover svg,
.btn-maroon:hover svg,
.btn-outline:hover svg,
.tr-btn:hover svg,
.consult-btn:hover svg {
    transform: translateX(3px);
}

/* ── Scroll-reveal base (design-system .reveal, 0.7s ease) ── */

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

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

/* ============================================================
   SECTION STYLES  (appended top-to-bottom as each is built)
   ============================================================ */

/* ── Section 2: Inset Hero ── */

.hero {
    position: relative;
    padding-top: 15px;
}

/* Vector 2 — subtle full-bleed curved band behind lower hero + next section */
.hero-curve {
    position: absolute;
    top: 420px;
    /* band top (page 587) − .hero box top (page 154) */
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 1300px;
    z-index: 0;
    pointer-events: none;
}

.hero-curve svg {
    display: block;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.hero-text {
    width: 408px;
    flex-shrink: 0;
    padding-top: 148px;
    /* title sits 148px below hero group top (202 + 148 = page 350) */
}

.hero-text h1 {
    font-size: 40px;
    line-height: 44px;
    font-weight: 400;
    color: var(--text);
}

.hero-text p {
    margin-top: 24px;
    font-size: 16px;
    line-height: 24px;
    color: var(--text);
}

.hero-image {
    width: 744px;
    height: 518px;
    flex-shrink: 0;
    -webkit-mask: url(images/svg-masks/inset-hero.svg) center / 100% 100% no-repeat;
    mask: url(images/svg-masks/inset-hero.svg) center / 100% 100% no-repeat;
}

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

/* ── SBS (side-by-side image + text) — reusable, image left by default ── */

.sbs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 152px;
    margin-top: 160px;
    /* gap from preceding section (hero bottom 720 → SBS top 880) */
}

.sbs--reverse {
    flex-direction: row-reverse;
}

.sbs-image {
    width: 744px;
    height: 766px;
    flex-shrink: 0;
    -webkit-mask: url(images/svg-masks/sbs-left.svg) center / 100% 100% no-repeat;
    mask: url(images/svg-masks/sbs-left.svg) center / 100% 100% no-repeat;
}

.sbs--reverse .sbs-image {
    -webkit-mask-image: url(images/svg-masks/sbs-right.svg);
    mask-image: url(images/svg-masks/sbs-right.svg);
}

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

.sbs-text {
    width: 408px;
    flex-shrink: 0;
}

.sbs-text h2 {
    font-size: 40px;
    line-height: 44px;
    font-weight: 400;
    color: var(--text);
}
.sbs-text h2 b{
    display: block;
}
.sbs-text p {
    margin-top: 24px;
    font-size: 16px;
    line-height: 24px;
    color: var(--text);
}

/* ── Section 4: Benefits (maroon gradient panel) ── */

.benefits {
    margin-top: 160px;
    min-height: 760px;
    background: linear-gradient(180deg, #B2586A 0%, #934454 100%);
    color: var(--white);
    clip-path: path('M0 22.1751C0 10.3156 10.18 1.05586 21.9815 2.22623C183.645 18.2585 448.779 37.1685 800.046 37.1685C1151.25 37.1685 1416.35 18.2649 1578.02 2.2346C1589.82 1.06444 1600 10.3242 1600 22.1835L1600 698.481C1600 708.852 1592.12 717.502 1581.79 718.373C1421.14 731.917 1155.55 748 800.046 748C444.472 748 178.85 731.911 18.2102 718.366C7.8758 717.494 0 708.845 0 698.474L0 22.1751Z');
}

.benefits-inner {
    padding: 180px 148px 120px;
}

.benefits-header h2 {
    font-size: 40px;
    line-height: 44px;
    font-weight: 400;
}

.benefits-header p {
    margin-top: 24px;
    max-width: 1091px;
    font-size: 16px;
    line-height: 24px;
}

.benefits-grid {
    margin-top: 64px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 40px;
    row-gap: 40px;
    align-items: start;
}

.benefit h3 {
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
}

.benefit p {
    margin-top: 8px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
}

@media (max-width: 1440px) {
    .benefits {
        clip-path: path('M0 22.1751C0 10.3156 8.76 1.05586 18.92 2.22623C158.04 18.2585 386.21 37.1685 688.54 37.1685C990.79 37.1685 1218.91 18.2649 1357.89 2.2346C1368.03 1.06444 1377 10.3242 1377 22.1835L1377 698.481C1377 708.852 1369.89 717.502 1361.08 718.373C1222.72 731.917 994.38 748 688.54 748C382.43 748 153.92 731.911 15.67 718.366C6.78 717.494 0 708.845 0 698.474L0 22.1751Z');
    }
}
@media (max-width: 1370px) {
    .benefits {
        clip-path: path('M0 22.1751C0 10.3156 8.29 1.05586 17.90 2.22623C149.52 18.2585 365.53 37.1685 651.54 37.1685C937.47 37.1685 1153.31 18.2649 1284.91 2.2346C1294.51 1.06444 1303 10.3242 1303 22.1835L1303 698.481C1303 708.852 1296.57 717.502 1288.20 718.373C1157.73 731.917 940.99 748 651.54 748C361.91 748 145.68 731.911 14.83 718.366C6.41 717.494 0 708.845 0 698.474L0 22.1751Z');
    }
}

/* ── Section 6: Video block ── */

.video-block {
    position: relative;
    margin-top: 160px;
    height: 748px;
    -webkit-mask: url(images/svg-masks/video.svg) center / 100% 100% no-repeat;
    mask: url(images/svg-masks/video.svg) center / 100% 100% no-repeat;
}

.video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #B2586A 0%, #934454 100%);
    opacity: 0.4;
}

.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.video-play-circle {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: var(--maroon);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.video-play:hover .video-play-circle {
    background: var(--maroon-dark);
}

.video-play-text {
    font-size: 16px;
    line-height: 17.6px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--white);
}

/* ── Section 7: Patient Success (maroon panel, curve-masked image) ── */

.patient {
    position: relative;
    margin-top: 160px;
    height: 748px;
    background: var(--maroon);
    overflow: hidden;
    color: var(--white);
    clip-path: path('M0 22.1751C0 10.3156 10.18 1.05586 21.9815 2.22623C183.645 18.2585 448.779 37.1685 800.046 37.1685C1151.25 37.1685 1416.35 18.2649 1578.02 2.2346C1589.82 1.06444 1600 10.3242 1600 22.1835L1600 698.481C1600 708.852 1592.12 717.502 1581.79 718.373C1421.14 731.917 1155.55 748 800.046 748C444.472 748 178.85 731.911 18.2102 718.366C7.8758 717.494 0 708.845 0 698.474L0 22.1751Z');
}

.patient-image {
    position: absolute;
    top: 2px;
    left: 0;
    width: 780px;
    height: 746px;
    clip-path: path('M0 20.0491C0 8.18969 10.1799 -1.07039 21.9814 0.0999096C180.555 15.8257 438.683 34.3177 780 35.0189L780 745.854C434.479 745.264 175.816 729.529 18.21 716.24C7.87582 715.368 0.0002292 706.719 0 696.348L0 20.0491Z');
}

.patient-image img {
    position: absolute;
    top: -2px;
    left: -229px;
    width: 1374px;
    max-width: none;
    height: 750px;
    object-fit: cover;
}

.patient-text {
    position: absolute;
    top: 236px;
    left: 932px;
    width: 408px;
}

.patient-text h2 {
    font-size: 40px;
    line-height: 44px;
    font-weight: 400;
}

.patient-text p {
    margin-top: 24px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
}

/* ── Section 8: FAQ accordion ── */

.faq {
    margin-top: 160px;
}

.faq-title {
    font-size: 40px;
    line-height: 44px;
    font-weight: 400;
    color: var(--text);
}

.faq-title b {
    font-weight: 600;
}

.faq-list {
    margin-top: 64px;
}

.faq-item {
    padding: 40px 0 39px;
    border-bottom: 1px solid var(--maroon);
}

.faq-item:first-child {
    padding-top: 0;
}

.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    text-align: left;
}

.faq-q span {
    font-size: 24px;
    line-height: 26px;
    font-weight: 500;
    color: var(--text);
}

.faq-caret {
    flex-shrink: 0;
    color: var(--maroon);
    transition: transform 0.25s var(--ease);
}
.faq-item--open .faq-caret {
    transform: rotate(180deg);
}

.faq-answer {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}

.faq-item--open .faq-answer {
    max-height: 2000px;
    opacity: 1;
}

.faq-answer p {
    margin-top: 24px;
    max-width: 1080px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: var(--text);
}

/* ── Section 9: Overlay Section (maroon FAQ panel, white text) ── */

.overlay-faq {
    margin-top: 160px;
    padding: 160px 148px;
    background: linear-gradient(180deg, #B2586A 0%, #934454 100%);
    color: var(--white);
    clip-path: path('M0 22.1751C0 10.3156 10.18 1.05586 21.9815 2.22623C183.645 18.2585 448.779 37.1685 800.046 37.1685C1151.25 37.1685 1416.35 18.2649 1578.02 2.2346C1589.82 1.06444 1600 10.3242 1600 22.1835L1600 834.481C1600 844.852 1592.12 853.502 1581.79 854.373C1421.14 867.917 1155.55 884 800.046 884C444.472 884 178.85 867.911 18.2102 854.366C7.8758 853.494 0 844.845 0 834.474L0 22.1751Z');
}

.overlay-faq .faq-title,
.overlay-faq .faq-q span,
.overlay-faq .faq-answer p {
    color: var(--white);
}

.overlay-faq .faq-item {
    border-bottom-color: var(--white);
}

.overlay-faq .faq-caret {
    color: var(--white);
}



/* ── Section 1: Header ── */

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

/* .header.scrolled {
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.07);
} */



.header-inner {
    width: min(100% - 48px, var(--content-width));
    margin-inline: auto;
    padding-top: 34px;
    padding-bottom: 34px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.header-logo {
    flex-shrink: 0;
    display: block;
    transition: all 0.3s ease;
}

.header-logo img {
    width: 287px;
    height: 122px;
    transition: width 0.3s ease, height 0.3s ease;
}

.header-nav-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    padding-top: 0;
}

/* Top bar */

.header-topbar {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 30px;
}

.topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--text);
    transition: color 0.2s;
}

.topbar-link b {
    font-weight: 600;
}

.topbar-link:hover {
    color: var(--maroon);
}

.topbar-icon {
    flex-shrink: 0;
}

.topbar-caret {
    margin-left: 2px;
    transition: transform 0.25s var(--ease);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.96);
}
.header.scrolled .header-logo {
    margin-top: 21px;
}
.header.scrolled .header-logo img {
    width: 189px;
    height: 79px;
}
.header.scrolled .header-inner {
        padding-top: 17px;
    padding-bottom: 19px;
}

/* ── Call-Us location dropdown (desktop topbar) ── */

.topbar-phone-wrap {
    position: relative;
}

.topbar-phone {
    /* renders as the old anchor; reset native button quirks */
    background: none;
    border: 0;
    cursor: pointer;
}

.topbar-phone:hover .topbar-caret {
    transform: translateY(2px);
}

.topbar-phone[aria-expanded="true"] .topbar-caret {
    transform: rotate(180deg);
}

.callus-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 120;
    display: flex;
    flex-direction: column;
    min-width: 150px;
    padding: 8px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}

.callus-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.callus-item {
    display: block;
    padding: 8px 12px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.01em;
    color: var(--text);
    white-space: nowrap;
    transition: color 0.2s var(--ease);
}

.callus-item b {
    font-weight: 600;
}

.callus-item:hover,
.callus-item:focus-visible {
    color: var(--maroon);
}

/* Nav row */

.header-menus {
    display: flex;
    /* align-items: center; */
    gap: 40px;
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 4px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--text);
    white-space: nowrap;
        padding-bottom: 25px;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-item.active>.nav-link {
    color: var(--maroon);
}

.nav-caret {
    color: var(--maroon);
    transition: transform 0.2s;
}

.nav-item.open .nav-caret {
    transform: rotate(180deg);
}

/* Nav CTA — compact gradient button in the header. */
.header-cta {
    flex-shrink: 0;
    padding: 8px 24px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.14px;
    border-radius: var(--radius);
}

.header-cta:hover {
    box-shadow: 0 4px 14px rgba(116, 164, 157, 0.3);
    transform: none;
}

.header-cta--disabled {
    opacity: 0.45;
    cursor: default;
    pointer-events: none;
    filter: grayscale(40%);
}

/* Hamburger + mobile menu (hidden on desktop) */

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--maroon);
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    width: 22px;
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: #F4F5F6;
    padding: 170px 24px 40px;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
}

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

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu-link {
    padding: 6px 0;
    font-size: 20px;
    letter-spacing: 0.02em;
    font-weight: 500;
    text-transform: uppercase;
}

.mobile-menu-cta {
    margin-top: 24px;
    align-self: flex-start;
}

/* Spacer so fixed header doesn't cover content */
.header-spacer {
    height: 190px;
}

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

/* ── Section 10: Treatments carousel ── */

.treatments {
    margin-top: 130px;
    margin-bottom: 200px;
}

.tr-title {
    font-size: 40px;
    line-height: 44px;
    font-weight: 400;
    color: var(--text);
}

.tr-subtitle {
    margin-top: 24px;
    max-width: 718px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: var(--text);
}

.tr-viewport {
    margin-top: 64px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.tr-viewport::-webkit-scrollbar {
    display: none;
}

.tr-track {
    display: flex;
    gap: 40px;
}

.tr-track>* {
    scroll-snap-align: start;
}

.tr-card {
    position: relative;
    flex: 0 0 408px;
    width: 408px;
    height: 680px;
    border-radius: 16px;
    overflow: hidden;
}

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

.tr-card-overlay {
    position: absolute;
    /* inset: 0; */
    height: 70%;
    bottom: 0;
    left: 0;
    width: 100%;
}

.tr-card--maroon .tr-card-overlay {
    background: linear-gradient(202deg, rgba(147, 68, 84, 0) 28%, rgba(147, 68, 84, 1) 68%);
}

.tr-card--teal .tr-card-overlay {
    background: linear-gradient(202deg, rgba(116, 164, 157, 0) 28%, rgba(116, 164, 157, 1) 72%);
}

.tr-card-info {
    position: absolute;
    left: 48px;
    top: 358px;
    width: 288px;
    color: var(--white);
}

.tr-card-eyebrow {
    font-size: 16px;
    line-height: 17.6px;
    font-weight: 600;
    letter-spacing: -0.16px;
    text-transform: uppercase;
}

.tr-card-heading {
    margin-top: 24px;
    font-size: 32px;
    line-height: 35.2px;
    font-weight: 600;
}

.tr-card-desc {
    margin-top: 16px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
}

.tr-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    width: auto;
    height: 42px;
    padding-left: 24px;
    padding-right: 24px;
    border: 1px solid;
    border-radius: 4px;
    font-size: 16px;
    line-height: 17.6px;
    font-weight: 600;
    letter-spacing: 0.16px;
    text-transform: uppercase;
}

.tr-btn--light {
    margin-top: 32px;
    border-color: var(--white);
    color: var(--white);
}

.tr-btn--dark {
    border-color: #753744;
    color: #753744;
}

.tr-footer {
    margin-top: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tr-nav {
    display: flex;
    gap: 24px;
}

.tr-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid #753744;
    border-radius: 4px;
    color: #753744;
    background: transparent;
    cursor: pointer;
    transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}

.tr-nav-btn:hover {
    background: #753744;
    color: var(--white);
}

.tr-nav-btn:disabled {
    opacity: .35;
    cursor: default;
}

.tr-nav-btn:disabled:hover {
    background: transparent;
    color: #753744;
}

/* ── Treatment card interactive states ── */
.tr-card-img {
    transition: transform .55s ease, filter .55s ease;
}

.tr-card:hover .tr-card-img,
.tr-card:focus-within .tr-card-img {
    transform: scale(1.06);
    /* filter: saturate(.55) brightness(.9); */
}

.tr-card-info {
    transition: transform .4s ease;
}

.tr-card:hover .tr-card-info,
.tr-card:focus-within .tr-card-info {
    transform: translateY(-8px);
}

.tr-btn {
    transition: background-color .25s var(--ease), color .25s var(--ease);
}

.tr-card--maroon .tr-btn--light:hover {
    background: var(--white);
    color: var(--maroon);
}

.tr-card--teal .tr-btn--light:hover {
    background: var(--white);
    color: #5f8c84;
}

.tr-btn--dark:hover {
    background: #753744;
    color: var(--white);
}

/* ── Section 11: Meet the Doctor ── */

/* Flat top, straight sides, curved bottom edge (centre dips ~48px below the
   corners) — same curve style as the Book a Free Consultation section. X in %
   keeps it centred/full-bleed at any width; Y in px keeps the depth fixed. */
.doctor {
    position: relative;
    margin-top: 208px;
    overflow: hidden;
    /* background: var(--background); */
    background-image: url(../images/doctor-bg.svg);
        background-position: bottom;
    clip-path: polygon(0 0, 100% 0,
            100% 830px, 93.75% 843px, 87.5% 853px, 81.25% 861px, 75% 868px,
            68.75% 872px, 62.5% 875px, 56.25% 877px, 50% 878px, 43.75% 877px,
            37.5% 875px, 31.25% 872px, 25% 868px, 18.75% 861px, 12.5% 853px,
            6.25% 843px, 0 830px);
}

.doctor-inner {
    position: relative;
    height: 957px;
}

.doctor-img {
    position: absolute;
    left: 521px;
    top: 0;
    width: 1091px;
    height: 957px;
    max-width: none;
}

.doctor-ring {
    position: absolute;
    left: 762px;
    top: 137px;
    width: 673px;
    height: 728px;
    max-width: none;
}

.doctor-text {
    position: absolute;
    left: 142px;
    top: 272px;
    width: 408px;
}

.doctor-eyebrow {
    font-size: 16px;
    line-height: 17.6px;
    font-weight: 600;
    letter-spacing: -0.16px;
    text-transform: uppercase;
    color: var(--maroon);
}

.doctor-heading {
    margin-top: 32px;
    width: 366px;
    font-size: 40px;
    line-height: 44px;
    font-weight: 400;
    color: var(--text);
}

.doctor-heading b {
    font-weight: 600;
}

.doctor-desc {
    margin-top: 24px;
    width: 408px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: var(--text);
}

.doctor-btn {
    margin-top: 40px;
    width: 162px;
}

/* ── Section 12: Meet the Team carousel ── */

.team {
    margin-top: 161px;
}

.team-eyebrow {
    font-size: 16px;
    line-height: 17.6px;
    font-weight: 600;
    letter-spacing: -0.16px;
    text-transform: uppercase;
    color: var(--maroon);
}

.team-heading {
    margin-top: 32px;
    font-size: 40px;
    line-height: 44px;
    font-weight: 400;
    color: var(--text);
}

.team-heading b {
    font-weight: 600;
}

.team-subtitle {
    margin-top: 24px;
    max-width: 741px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: var(--text);
}

.team-card {
    position: relative;
    flex: 0 0 408px;
    width: 408px;
    height: 791px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--maroon);
    color: var(--white);
}

.team-card-img {
    width: 408px;
    height: 408px;
    background: #E9EBED;
}

.team-card-img img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    max-width: none;
}

.team-card-info {
    position: absolute;
    left: 48px;
    top: 456px;
    width: 288px;
}

.team-name {
    font-size: 32px;
    line-height: 35.2px;
    font-weight: 600;
}

.team-title {
    margin-top: 8px;
    font-size: 16px;
    line-height: 17.6px;
    font-weight: 600;
    letter-spacing: -0.16px;
    text-transform: uppercase;
}

.team-creds {
    margin-top: 8px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
}

.team-degree {
    margin-top: 24px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
}

.team-discover {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    font-size: 16px;
    line-height: 17.6px;
    font-weight: 600;
    letter-spacing: 0.16px;
    text-transform: uppercase;
    color: var(--white);
}

/* ── Section 13: Blog carousel ── */

.blog {
    margin-top: 160px;
}

.blog-eyebrow {
    font-size: 16px;
    line-height: 17.6px;
    font-weight: 600;
    letter-spacing: -0.16px;
    text-transform: uppercase;
    color: var(--maroon);
}

.blog-heading {
    margin-top: 32px;
    font-size: 40px;
    line-height: 44px;
    font-weight: 400;
    color: var(--text);
}

.blog-heading b {
    font-weight: 600;
}

.blog-intro {
    margin-top: 24px;
    max-width: 708px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: var(--text);
}

.blog-card {
    flex: 0 0 408px;
    width: 408px;
    height: 748px;
    border: 1px solid var(--maroon);
    border-radius: 8px;
    overflow: hidden;
}

.blog-card-img {
    height: 354px;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    max-width: none;
}

.blog-card-img--icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--maroon);
}

.blog-icon {
    width: 113px;
    height: 122px;
}

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

.blog-date {
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: var(--text);
}

.blog-excerpt {
    margin-top: 16px;
    font-size: 24px;
    line-height: 26.4px;
    font-weight: 500;
    color: var(--text);
}

.blog-details {
    margin-top: 16px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: var(--text);
}

.blog-readmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    font-size: 16px;
    line-height: 17.6px;
    font-weight: 600;
    letter-spacing: 0.16px;
    text-transform: uppercase;
    color: var(--maroon);
}

/* ── Before & Afters gallery ── */
.before-after {
    margin-top: 321px;
}

.ba-eyebrow {
    font-size: 16px;
    line-height: 17.6px;
    font-weight: 600;
    letter-spacing: -0.16px;
    text-transform: uppercase;
    color: var(--maroon);
}

.ba-heading {
    margin-top: 32px;
    max-width: 784px;
    font-size: 40px;
    line-height: 44px;
    font-weight: 400;
    color: var(--text);
}

.ba-heading b {
    font-weight: 600;
}

.ba-intro {
    margin-top: 24px;
    max-width: 784px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: var(--text);
}

.ba-viewport {
    margin-top: 48px;
}

.ba-card {
    flex: 0 0 408px;
    width: 408px;
}

.ba-compare {
    position: relative;
    width: 408px;
    height: 241px;
    cursor: ew-resize;
    user-select: none;
}

.ba-img-before,
.ba-img-after {
    position: absolute;
    top: 15px;
    left: 0;
    width: 408px;
    height: 212px;
    object-fit: cover;
    max-width: none;
        border-radius: 8px;
    -webkit-user-drag: none;
}

.ba-img-after {
    z-index: 1;
}

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

.ba-divider {
    position: absolute;
    top: 0;
    left: 50%;
    margin-left: -1px;
    width: 2px;
    height: 241px;
    background: var(--maroon);
    z-index: 3;
    pointer-events: none;
}

.ba-handle {
    position: absolute;
    top: 108px;
    left: 50%;
    margin-left: -25px;
    width: 50px;
    height: 26px;
    border-radius: 13px;
    background: var(--maroon);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    pointer-events: none;
}

.ba-info {
    margin-top: 24px;
    width: 270px;
}

.ba-name {
    font-size: 16px;
    line-height: 17.6px;
    font-weight: 600;
    color: var(--maroon);
    text-transform: uppercase;
}

.ba-patient {
    margin-top: 4px;
    opacity: .5;
    font-size: 16px;
    line-height: 18px;
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
}

.ba-treatment {
    margin-top: 9px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: var(--text);
}

/* ── Before & Afters PAGE (filter + grid) ── */
.ba-page {
    margin-top: 115px;
}

@media (max-width: 767px) {
    .ba-page {
        margin-top: 65px;
    }
}

.ba-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

@media (max-width: 767px) {
    .ba-filter {
        gap: 12px;
    }
}

.ba-pill {
    height: 44px;
    padding: 0 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--maroon);
    border-radius: 22px;
    background: transparent;
    color: var(--maroon);
    font-family: inherit;
    font-size: 16px;
    line-height: 17.6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16px;
    cursor: pointer;
    transition: background .2s, color .2s;
}

@media (max-width: 767px) {
    .ba-pill {
        height: 40px;
        padding: 0 23px;
        font-size: 12px;
    }
}

.ba-pill.active,
.ba-pill:hover {
    background: var(--maroon);
    color: #fff;
}

.ba-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 64px 40px;
    margin-top: 74px;
}

.ba-grid .ba-card {
    flex: 0 0 408px;
    width: 408px;
}

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

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

/* ── Blog LISTING PAGE (card grid + pagination) ── */
.blog-listing {
    margin-top: 162px;
    padding-bottom: 117px;
}

.blog-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 64px 40px;
}

.blog-card {
    flex: 0 0 408px;
    width: 408px;
}

.blog-card-img {
    display: block;
    width: 408px;
    height: 354px;
    overflow: hidden;
}

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

.blog-card-body {
    padding-top: 47px;
}

.blog-date {
    display: block;
    font-size: 16px;
    line-height: 1;
    color: var(--text);
}

.blog-card-title {
    margin: 27px 0 0;
    font-size: 22px;
    line-height: 30px;
    font-weight: 600;
    color: var(--text);
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
}

.blog-card-title a:hover {
    color: var(--maroon);
}

.blog-card-excerpt {
    margin: 21px 0 0;
    font-size: 16px;
    line-height: 24px;
    color: #6b6b6b;
}

.blog-readmore {
    margin-top: 41px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--maroon);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    text-decoration: none;
}

.blog-readmore .arrow {
    transition: transform .2s;
}

.blog-readmore:hover .arrow {
    transform: translateX(4px);
}

.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 160px;
}

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

.blog-page-arrow {
    border-color: transparent;
}

.blog-page.active,
.blog-page:hover {
    background: var(--maroon);
    color: #fff;
}

.blog-page-arrow:hover {
    color: var(--maroon-dark);
}

/* ── Blog detail ── */
.bd-header {
    position: relative;
    max-width: 1600px;
    margin: 50px auto 0;
}

.bd-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 649px;
    background: #f6f7f9;
    border-radius: 10px;
    z-index: 0;
}

.bd-article {
    position: relative;
    z-index: 1;
    width: min(856px, 100% - 48px);
    margin: 0 auto;
}

.bd-header .bd-article {
    padding-top: 87px;
}

.bd-date {
    display: block;
    font-size: 14px;
    line-height: 1;
    color: #6b6b6b;
}

.bd-title {
    margin: 37px 0 0;
    font-size: 41px;
    line-height: 44px;
    font-weight: 400;
    color: var(--text);
}

.bd-intro {
    margin: 27px 0 0;
    font-size: 20px;
    line-height: 26px;
    color: #6b6b6b;
}

.bd-feature {
    margin: 51px 0 0;
    width: 100%;
    height: auto;
    aspect-ratio: 856 / 484;
    overflow: hidden;
}

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

.bd-body {
    margin-top: 82px;
}

.bd-body p {
    margin: 0 0 48px;
    font-size: 15px;
    line-height: 24px;
    color: #5a5a5a;
}

.bd-body p:last-of-type {
    margin-bottom: 0;
}

.bd-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 78px;
    color: var(--maroon);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    text-decoration: none;
}

.bd-back .arrow {
    transition: transform .2s;
}

.bd-back:hover .arrow {
    transform: translateX(-4px);
}

.related-posts {
    margin-top: 163px;
    padding-bottom: 102px;
}

.related-heading {
    margin: 0 0 77px;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 600;
    color: var(--text);
}

/* ── Booking page ── */
.bk-hero {
    position: relative;
    max-width: var(--full-width);
    width: calc(100% - 48px);
    margin: 10px auto 0;
    min-height: 820px;
    background: var(--maroon);
    /* Rounded top corners (18px) + a bottom edge that bows down at the centre with
     smoothly rounded bottom corners — elliptical radii keep it fluid at any width
     (matches the design; a mask here would give sharp bottom corners). */
    border-radius: 18px 18px 50% 50% / 18px 18px 44px 44px;
    overflow: hidden;
}

.bk-hero-photo {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.bk-hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right top;
}

.bk-hero-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(85deg, #934454 0%, #934454 38%, rgba(147, 68, 84, 0.8) 45%, rgba(147, 68, 84, 0) 61%);
}

.bk-hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 0 110px 148px;
    max-width: 560px;
}

.bk-hero-title {
    margin: 0;
    color: var(--white);
    font-size: 38px;
    line-height: 44px;
    font-weight: 700;
}

.bk-hero-title-light {
    font-weight: 400;
}

.bk-hero-intro {
    margin: 26px 0 0;
    /* max-width: 350px; */
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
    line-height: 22px;
}

.bk-form {
    margin: 33px 0 0;
    max-width: 410px;
}

.bk-field {
    margin-bottom: 17px;
    position: relative;
}

.bk-field--full {
    grid-column: 1 / -1;
}


.bk-field--full .bk-field-label {
    top: 22px;
    transform: none;
}

.bk-textarea:focus + .bk-field-label,
.bk-textarea:not(:placeholder-shown) + .bk-field-label {
    top: -5px;
    transform: none;
    font-size: 11px;
    color: rgba(255,255,255,0.7);
}

.bk-field-label {
    position: absolute;
    left: 21px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 1.85);
    font-size: 15px;
    line-height: 1;
    pointer-events: none;
    transition: top .15s ease, transform .15s ease, font-size .15s ease, color .15s ease;
}

.bk-input {
    width: 100%;
    padding: 24px 20px 10px;
    background:transparent;
    border: 1px solid rgba(255, 255, 255, 1.45);
    border-radius: 6px;
    color: var(--white);
    font-family: inherit;
    font-size: 15px;
}

.bk-input::placeholder {
    color: transparent;
}

.bk-input:focus {
    outline: none;
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.16);
}

/* Floating label: slides up on focus or when the field has a value */
.bk-input:focus+.bk-field-label,
.bk-input:not(:placeholder-shown)+.bk-field-label {
    top: -5px;
    transform: translateY(0);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    background-color: #934454;
    padding: 0px 6px;
}

/* Invalid state */
/* Invalid state (mirrors .site-form: form gets .was-validated on submit, CSS :invalid does the rest) */
.bk-form .invalid-feedback {
    display: none;
    margin-top: 7px;
    color: var(--form-error);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.bk-form.was-validated .bk-input:invalid {
    border-color: var(--form-error);
    border-width: 1.5px;
}

.bk-form.was-validated .bk-input:invalid+.bk-field-label {
    top: -5px;
    transform: translateY(0);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    background-color: #934454;
    padding: 0px 6px;
}

.bk-form.was-validated .bk-input:invalid~.invalid-feedback {
    display: block;
}

.bk-submit {
    margin-top: 26px;
}

.bk-submit .arrow {
    transition: transform .2s;
}

.bk-submit:hover .arrow {
    transform: translateX(4px);
}

.bk-fineprint {
    margin: 15px 0 0;
    max-width: 380px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    line-height: 18px;
}

.bk-fineprint a {
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
}

.bk-happens {
    margin-top: 126px;
    padding-bottom: 4px;
}

.bk-happens-title {
    margin: 0;
    font-size: 40px;
    line-height: 46px;
    font-weight: 400;
    color: var(--text);
}

.bk-happens-intro {
    margin: 19px 0 0;
    max-width: 1304px;
    font-size: 15px;
    line-height: 24px;
    color: #5a5a5a;
}

.bk-happens-grid {
    margin-top: 61px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.bk-happens-icon {
    width: 64px;
    height: 64px;
}

.bk-happens-col p {
    margin: 30px 0 0;
    font-size: 14px;
    line-height: 24px;
    color: #5a5a5a;
}

.bk-happens-cta {
    margin-top: 73px;
}

.bk-happens-cta .arrow {
    transition: transform .2s;
}

.bk-happens-cta:hover .arrow {
    transform: translateX(4px);
}

/* ── Contact page: Find Us as first section ── */
.findus.findus-first {
    margin-top: 12px;
}

@media (max-width: 1440px) {
    .bk-hero-content {
        position: relative;
        z-index: 2;
        padding: 80px 0 110px 70px;
    }
}


/* ── Contact page: curved CTA form panel ── */
.contact-cta {
    position: relative;
    margin-top: 176px;
    min-height: 800px;
    background: var(--maroon);
    border-radius: 30px 30px 50% 50% / 30px 30px 46px 46px;
    overflow: hidden;
}

.contact-cta-photo {
    position: absolute;
    top: 0;
    right: 0;
    width: 62%;
    height: 100%;
    display: block;
}

.contact-cta-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
}

.contact-cta-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 62%;
    background: linear-gradient(to right, var(--maroon) 0%, rgba(147, 68, 84, 0.85) 16%, rgba(147, 68, 84, 0) 42%);
}

.contact-cta-content {
    position: relative;
    z-index: 2;
    padding: 75px 0 0 143px;
    max-width: 560px;
}

@media (max-width: 1440px) {
    .contact-cta-content {
        padding: 50px 0 0 60px;
        max-width: 560px;
    }
}

@media (max-width: 1440px) {
    .doctor-text {
        position: absolute;
        left: 40px;
        top: 272px;
        width: 408px;
    }
    .doctor-img {
        position: absolute;
        left: 340px;
        top: 0;
        max-width: none;
    }
    .doctor-ring {
        position: absolute;
        left: 560px;
        top: 137px;
        width: 673px;
        height: 728px;
        max-width: none;
    }
}

.contact-cta-title {
    margin: 0;
    color: var(--white);
    font-size: 38px;
    line-height: 44px;
    font-weight: 700;
}

.contact-cta-intro {
    margin: 26px 0 0;
    max-width: 440px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
    line-height: 22px;
    font-size: 15px;
    line-height: 22px;
}

.contact-cta .bk-form {
    margin: 34px 0 0;
    max-width: 410px;
}

/* ── Editorial content block ── */
.editorial {
    margin-top: 321px;
}

.ed-title {
    max-width: 1304px;
    font-size: 40px;
    line-height: 44px;
    font-weight: 400;
    color: var(--text);
}

.ed-paras {
    margin-top: 24px;
    display: flex;
    gap: 40px;
}

.ed-para {
    flex: 0 0 520px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: var(--text);
}

.ed-cols {
    margin-top: 80px;
    display: flex;
    gap: 40px;
}

.ed-col {
    flex: 0 0 408px;
}

.ed-coltitle {
    font-size: 24px;
    line-height: 26.4px;
    font-weight: 500;
    color: var(--text);
}

.ed-coltext {
    margin-top: 27px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: var(--text);
}

.ed-footer {
    margin-top: 80px;
    max-width: 1304px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: var(--text);
}

/* ── Maroon content panel ── */
.cta-panel {
    position: relative;
    margin-top: 184px;
    height: 1114px;
    padding: 203px 148px 0;
    color: var(--white);
}

.cta-panel-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.cta-panel> :not(.cta-panel-bg) {
    position: relative;
    z-index: 1;
}

.cta-title {
    max-width: 1304px;
    font-size: 40px;
    line-height: 44px;
    font-weight: 400;
}

.cta-paras {
    margin-top: 24px;
    display: flex;
    gap: 40px;
}

.cta-para {
    flex: 0 0 520px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
}

.cta-cols {
    margin-top: 80px;
    display: flex;
    gap: 40px;
}

.cta-col {
    flex: 0 0 408px;
}

.cta-coltitle {
    font-size: 24px;
    line-height: 26.4px;
    font-weight: 500;
}

.cta-coltext {
    margin-top: 27px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
}

.cta-footer {
    margin-top: 80px;
    max-width: 1304px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
}

/* ── Testimonials ── */
.testimonials {
    margin-top: 160px;
}

.ts-eyebrow {
    font-size: 16px;
    line-height: 17.6px;
    font-weight: 600;
    letter-spacing: -0.16px;
    text-transform: uppercase;
    color: var(--maroon);
}

.ts-heading {
    margin-top: 32px;
    max-width: 1304px;
    font-size: 40px;
    line-height: 44px;
    font-weight: 400;
    color: var(--text);
}

.ts-heading b {
    font-weight: 600;
}

.ts-desc {
    margin-top: 24px;
    max-width: 792px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: var(--text);
}

.ts-cards {
    margin-top: 64px;
    display: flex;
    gap: 40px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

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

.ts-card {
    position: relative;
    flex: 0 0 408px;
    width: 408px;
    height: 306px;
    border: 1px solid var(--maroon);
    border-radius: 8px;
    scroll-snap-align: start;
}

.ts-quote {
    position: absolute;
    top: 48px;
    left: 48px;
    width: 89px;
    height: 71px;
    z-index: 0;
}

.ts-content {
    position: absolute;
    top: 95px;
    left: 48px;
    width: 312px;
    z-index: 1;
}

.ts-text {
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: var(--text);
}

.ts-name {
    margin-top: 19px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    color: var(--text);
}

.testimonials .tr-footer {
    margin-top: 80px;
}

/* ── Book a Free Consultation ── */
.consult,
.consult-cta {
    position: relative;
    height: 820px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--maroon);
    color: var(--white);
    clip-path: path("M0 22.1757C0 10.316 10.1803 1.05616 21.9821 2.22684C183.645 18.263 448.78 37.1777 800.046 37.1777C1151.25 37.1777 1416.35 18.2695 1578.02 2.2352C1589.82 1.06474 1600 10.3245 1600 22.1841L1600 770.659C1600 781.03 1592.12 789.68 1581.79 790.551C1421.14 804.099 1155.55 820.186 800.046 820.186C444.472 820.186 178.849 804.093 18.2098 790.544C7.87553 789.672 0 781.023 0 770.652L0 22.1757Z");
}
.contact-form {
  height: 1100px;
  /* y-coords scaled by 1100/980 = 1.12245 */
  clip-path: path("M0 29.73C0 13.83 10.1803 1.41 21.9821 2.99C183.645 24.49 448.78 49.84 800.046 49.84C1151.25 49.84 1416.35 24.49 1578.02 3.00C1589.82 1.43 1600 13.84 1600 29.74L1600 1033.36C1600 1047.27 1592.12 1058.89 1581.79 1060.06C1421.14 1078.21 1155.55 1100 800.046 1100C444.472 1100 178.849 1078.21 18.2098 1060.05C7.87553 1058.86 0 1047.26 0 1033.36L0 29.73Z");
}
.contact-form  .contact-cta-content {
    padding-top: 130px;
}

.consult {
    margin-top: 160px;
}

.consult-cta {
    margin-top: 120px;
}

.consult-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
        object-position: top;
}

.consult-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(75deg,
            #934454 0%, #934454 38%,
            rgba(147, 68, 84, 0.8) 41%,
            rgba(147, 68, 84, 0) 61%);
}

.consult-ellipse {
    position: absolute;
    left: 405px;
    top: 158px;
    width: 463px;
    height: 505px;
    border-radius: 50%;
    background: var(--maroon);
    opacity: 0.67;
    filter: blur(60px);
}

.consult-form {
    position: absolute;
    left: 139px;
    top: 89px;
    width: 408px;
}

.consult-title {
    font-size: 40px;
    line-height: 44px;
    font-weight: 400;
}

.consult-title b {
    font-weight: 600;
}

.consult-desc {
    margin-top: 24px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
}

.consult-fields {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.consult-field {
    height: 56px;
    padding: 0 16px;
    background: transparent;
    border: 1px solid var(--white);
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
    line-height: 24px;
    color: var(--white);
}

.consult-field::placeholder {
    color: var(--white);
    opacity: 1;
}

.consult-field:focus {
    outline: none;
    border-color: var(--white);
}

.consult-btnwrap {
    margin-top: 50px;
}

.consult-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 304px;
    height: 52px;
    padding: 0 24px;
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
    background: var(--gradient-cta);
    font-family: inherit;
    font-size: 18px;
    line-height: 19.8px;
    font-weight: 700;
    letter-spacing: 0.18px;
    color: var(--white);
    transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.consult-btn:hover {
    box-shadow: 0 6px 20px rgba(116, 164, 157, 0.35);
    transform: translateY(-1px);
}

.consult-privacy {
    margin-top: 8px;
    font-size: 12px;
    line-height: 18px;
    font-weight: 400;
}

.consult-privacy b {
    font-weight: 600;
}

.consult-ctabody {
    position: absolute;
    left: 139px;
    top: 211px;
    width: 408px;
}






.cta2-eyebrow {
    font-size: 16px;
    line-height: 17.6px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--white);
}

.cta2-heading {
    margin-top: 32px;
    font-size: 40px;
    line-height: 44px;
    font-weight: 400;
}

.cta2-heading b {
    font-weight: 600;
}

.cta2-text {
    margin-top: 24px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
}

.cta2-btn {
    margin-top: 48px;
    text-decoration: none;
}

@media (max-width: 1440px) {
    .consult, .consult-cta{
            height: 710px;
        clip-path: path("M0 19.07C0 8.88 8.76 0.91 18.92 1.92C158.04 15.72 386.22 31.99 688.54 31.99C990.79 31.99 1218.91 15.72 1357.89 1.92C1368.03 0.92 1377 8.88 1377 19.09L1377 663.13C1377 672.14 1369.89 679.59 1361.08 680.33C1222.72 692.01 994.38 705.79 688.54 705.79C382.43 705.79 153.92 692 15.67 680.33C6.78 679.59 0 672.14 0 663.13L0 19.07Z");
    }

    .consult-ctabody {
        top: 150px;
        left: 70px;
        
    }

    .contact-form {
        height: 1100px;
        /* x scaled by 1377/1600=0.860625, y scaled by 1100/1020=1.07843 */
        clip-path: path("M0 29.73C0 13.82 8.76 1.41 18.92 2.99C158.05 24.49 386.30 49.83 688.64 49.83C990.77 49.83 1219.20 24.49 1358.05 3.00C1368.20 1.42 1377 13.84 1377 29.74L1377 1033.41C1377 1047.32 1370.39 1058.94 1361.50 1060.11C1223.27 1078.24 994.57 1100 688.64 1100C382.50 1100 153.95 1078.24 15.67 1060.10C6.78 1058.93 0 1047.31 0 1033.41L0 29.73Z");
    }
}

@media (max-width: 1370px) {
    .consult, .consult-cta{
        height: 670px;
            margin-top: 120px;
        clip-path: path("M0 18.05C0 8.40 8.29 0.86 17.90 1.81C149.52 14.88 365.53 30.27 651.55 30.27C937.47 30.27 1153.31 14.88 1284.91 1.82C1294.51 0.87 1303 8.41 1303 18.06L1303 627.63C1303 636.07 1296.57 643.12 1288.20 643.82C1157.73 654.84 940.99 668.16 651.55 668.16C361.91 668.16 145.68 654.83 14.83 643.82C6.41 643.12 0 636.07 0 627.62L0 18.05Z");
    }

    .consult-ctabody {
        top: 150px;
        left: 70px;
        
    }
    .contact-form {
        height: 1050px;
        /* x scaled by 1303/1600=0.814375, y scaled by 1050/980=1.071429 */
        clip-path: path("M0 28.38C0 13.20 8.29 1.35 17.90 2.85C149.52 23.39 365.52 47.57 651.54 47.57C937.55 47.57 1153.56 23.39 1285.15 2.86C1294.75 1.36 1303 13.21 1303 28.39L1303 986.43C1303 999.71 1296.58 1010.80 1288.17 1011.91C1157.34 1028.94 941.05 1050 651.54 1050C361.97 1050 145.65 1028.94 14.83 1011.90C6.41 1010.77 0 999.70 0 986.43L0 28.38Z");
    }
}

/* ── Find Us ── */

.findus {
    position: relative;
    margin-top: 161px;
    min-height: 766px;
}

.findus-info {
    width: 408px;
    padding-top: 54px;
}

.findus-title {
    margin: 0;
    font-size: 40px;
    line-height: 44px;
    font-weight: 400;
    color: var(--text);
}

.findus-title b {
    font-weight: 600;
}

.findus-desc {
    margin-top: 24px;
    width: 408px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: var(--text);
}

.findus-dropdown {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 48px;
    width: 228px;
    height: 42px;
    padding: 0 16px;
    border: 1px solid var(--maroon);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}

.findus-dropdown span {
    font-size: 16px;
    line-height: 17.6px;
    font-weight: 600;
    color: var(--text);
}

.findus-dropdown svg {
    transition: transform 0.25s var(--ease);
}

.findus-dropdown[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.findus-dropdown-wrap {
    position: relative;
    width: 228px;
    margin-top: 48px;
}

.findus-dropdown-wrap .findus-dropdown {
    margin-top: 0;
    width: 100%;
}

.findus-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 40;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 6px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}

.findus-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.findus-menu button {
    text-align: left;
    padding: 9px 12px;
    border: 0;
    border-radius: 4px;
    background: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.findus-menu button:hover,
.findus-menu button.active {
    background: rgba(147, 68, 84, 0.06);
    color: var(--maroon);
}

.findus-row {
    position: relative;
    padding-left: 30px;
    color: var(--text);
}

.findus-icon {
    position: absolute;
    left: 0;
}

.findus-text {
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: var(--text);
    text-decoration: none;
}

.findus-address {
    margin-top: 32px;
}

.findus-address .findus-icon {
    top: 6px;
    left: 1px;
}

.findus-addr-text {
    margin: 0;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: var(--text);
}

.findus-addr-text b {
    font-weight: 600;
}

.findus-phone {
    margin-top: 30px;
}

.findus-phone .findus-icon {
    top: 6px;
}

.findus-email {
    margin-top: 32px;
}

.findus-email .findus-icon {
    top: 8px;
}

.findus-email .findus-text {
    display: block;
    width: 268px;
}

.findus-hours {
    margin-top: 30px;
}

.findus-hours .findus-icon {
    top: 5px;
}
.findus-days{
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}
.findus-days span {
    display: block;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: var(--text);
    min-width: 145px;
}

.findus-days span+span {
    min-width: initial;
}


.findus-times {
    position: absolute;
    left: 194px;
    top: 12px;
}

.findus-times span {
    display: block;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: var(--text);
}

.findus-times span+span {
    margin-top: 8px;
}

.findus-directions {
    display: block;
    margin-top: 32px;
}

.findus-directions .findus-icon {
    top: 6px;
}

.findus-maps {
    font-weight: 600;
}

.findus-map {
    position: absolute;
    top: 0;
    right: 0;
    width: 744px;
    height: 766px;
    border-radius: 16px;
    overflow: hidden;
}

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

.findus-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.findus-map img.findus-marker {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 95px;
    height: 135px;
    object-fit: contain;
    transform: translate(-50%, -100%);
    z-index: 2;
    pointer-events: none;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
}

.findus-pin {
    position: absolute;
    left: 324px;
    top: 316px;
}

/* ── Footer ── */

.footer {
    margin-top: 160px;
    padding-bottom: 60px;
}

.footer-row {
    position: relative;
    height: 63px;
}

.footer-logo {
    position: absolute;
    left: 0;
    top: 0;
    display: block;
}

.footer-logo img {
    width: 92px;
    height: 63px;
    display: block;
}

.footer-social {
    position: absolute;
    right: 0;
    bottom: 0;
    display: block;
}

.footer-social img {
    width: 194px;
    height: 24px;
    display: block;
}

.footer-divider {
    margin-top: 32px;
    height: 1px;
    background: var(--maroon);
}

.footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 31px;
}

.footer-copyright {
    margin: 0;
    font-size: 14px;
    line-height: 14px;
    font-weight: 400;
    color: var(--text);
        text-transform: uppercase;
}

.footer-legal {
    margin: 0;
    font-size: 14px;
    line-height: 14px;
    font-weight: 400;
    color: var(--text);
}

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

.footer-sep {
    margin: 0 17px;
}

/* ── Header responsive ── */

/* Desktop nav content is a fixed ~920px block; with the 296px logo it needs a
   viewport of ~1320px to sit comfortably. Below that it clips against the logo,
   so the hamburger/mobile header takes over from 1320px down. */
@media (max-width: 1320px) {
    .header {
        display: flex;
        flex-direction: column;
    }

    .mobile-utility-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: #EDEEF0;
        padding: 9px 24px;
    }

    .mobile-utility {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        font-size: 13px;
        text-transform: uppercase;
        color: var(--text);
        letter-spacing: 0.01em;
        background: none;
        border: 0;
        cursor: pointer;
    }

    .mobile-utility-phone {
        position: relative;
    }

    .mobile-utility:hover svg:last-child {
        transform: translateY(2px);
    }

    .mobile-utility[aria-expanded="true"] svg:last-child {
        transform: rotate(180deg);
    }

    .mobile-utility svg:last-child {
        transition: transform 0.25s var(--ease);
    }

    .callus-menu--mobile {
        left: auto;
        right: 0;
        top: calc(100% + 8px);
    }

    .header-inner {
        width: 100%;
        padding: 14px 24px;
        min-height: 0;
        align-items: center;
        gap: 16px;
    }

    .header-logo img {
        width: 200px;
        height: auto;
    }

    .header-nav-wrap {
        display: none;
    }

    .mobile-actions {
        display: flex;
        align-items: center;
        gap: 18px;
        margin-left: auto;
    }

    .mobile-call-wrap {
        position: relative;
    }

    .callus-menu--mobilecall {
        right: 0;
        left: auto;
        top: calc(100% + 8px);
    }

    .mobile-call {
        padding: 11px 18px;
        font-size: 14px;
    }

    .hamburger {
        display: flex;
    }

    .header-spacer {
        height: 116px;
    }
}

@media (max-width: 480px) {
    .header-logo img {
        width: 168px;
    }

    .mobile-call {
        padding: 10px 14px;
        font-size: 13px;
    }

    .mobile-utility {
        font-size: 11px;
    }
}

/* ============================================================
   MOBILE LAYOUT (≤600px) — built against Figma artboard 2842:1180
   (390×20573). Web content starts at artboard y52 (status-bar mockup
   excluded). Side gutters ≈24px → .container/.container-wide = 100%-48px.
   ============================================================ */

@media (max-width: 600px) {

    

    /* ── Header ── */
    .mobile-utility-bar {
        background: #eceeef;
        height: 45px;
        padding: 0 24px;
    }

    .mobile-utility {
        font-size: 12px;
        font-weight: 500;
        gap: 6px;
        letter-spacing: 0;
        text-transform: none;
        text-transform: uppercase;
    }

    .header-inner {
        height: 94px;
        box-sizing: border-box;
        padding: 16px 24px;
        align-items: center;
        gap: 0;
    }
    .header.scrolled .header-logo {
        margin-top: 0px;
    }
    .header-logo img {
                width: 161px !important;
        height: auto !important;
    }

    .mobile-actions {
        gap: 12px;
    }

    .mobile-call {
        width: 96px;
        height: 31px;
        padding: 0;
        gap: 6px;
        border-radius: 4px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: 700;
        line-height: 13.2px;
    }

    .hamburger {
        width: 32px;
        height: auto;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        gap: 5px;
    }

    .hamburger span {
        height: 2px;
        background: var(--text);
        display: block;
    }

    .hamburger span:nth-child(1) {
        width: 22px;
    }

    .hamburger span:nth-child(2) {
        width: 32px;
    }

    .hamburger span:nth-child(3) {
        width: 15px;
    }

    .header-spacer {
        height: 140px;
    }

    /* ── Hero (image on top, heading + text below) ── */
    .hero {
        padding-top: 0;
        margin-top: 32px;
    }
    

    .hero-curve {
        display: none;
    }

    .hero-inner {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .hero-text {
        width: 100%;
        padding-top: 0;
        margin-top: 32px;
    }

    .hero-text h1 {
        font-size: 32px;
        line-height: 35.2px;
        font-weight: 600;
    }

    .hero-text p {
        margin-top: 24px;
    }

    .hero-image {
        width: 100%;
        height: 352px;
        flex-shrink: 0;
        -webkit-mask: url(images/svg-masks/inset-hero-mob.svg) center / 100% 100% no-repeat;
        mask: url(images/svg-masks/inset-hero-mob.svg) center / 100% 100% no-repeat;
    }

    /* ── SBS (image on top, heading + text below) ── */
    .sbs {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-top: 60px;
    }

    .sbs--reverse {
        flex-direction: column;
    }

    .sbs-image {
        width: 100%;
        height: 351px;
    }

    .sbs-text {
        width: 100%;
        margin-top: 40px;
    }
    .sbs-text .sbs-eyebrow{
        margin-top: 0;
    }

    .sbs-text h2 {
        font-size: 30px;
        line-height: 34px;
    }

    .sbs:not(.sbs--reverse) .sbs-text h2 br {
        display: none;
    }

    /* SBS2 — full-bleed rounded image, 32px heading */
    .sbs--reverse {
        margin-top: 64px;
    }

    .sbs--reverse .sbs-image {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        height: 402px;
    }

    .sbs--reverse .sbs-text h2 {
        font-size: 30px;
        line-height: 35.2px;
    }

    /* ── Benefits maroon panel ── */
    .benefits {
        margin-top: 60px;
        background: none;
        clip-path: none;
        color: var(--white);
    }

    .benefits-inner {
        background: linear-gradient(180deg, #B2586A 0%, #934454 100%);
        border-radius: 20px;
        padding: 64px 30px;
    }

    .benefits-header h2 {
        font-size: 26px;
        line-height: 30px;
    }

    .benefits-header p {
        margin-top: 24px;
        max-width: none;
    }

    .benefits-grid {
        margin-top: 40px;
        display: flex;
        flex-direction: column;
        grid-template-columns: none;
        gap: 32px;
    }

    .benefits-grid .benefit:nth-child(1) {
        order: 1;
    }

    /* Discreet */
    .benefits-grid .benefit:nth-child(2) {
        order: 2;
    }

    /* Accurate */
    .benefits-grid .benefit:nth-child(3) {
        order: 5;
    }

    /* Removable */
    .benefits-grid .benefit:nth-child(4) {
        order: 3;
    }

    /* Comfortable */
    .benefits-grid .benefit:nth-child(5) {
        order: 4;
    }

    /* Convenient */
    .benefits-grid .benefit:nth-child(6) {
        order: 6;
    }

    /* Affordable */

    /* ── Video block ── */
    /* video.svg is a wide landscape mask; stretching it to the portrait mobile
     box warps the edge curve, so use the symmetric card mask on mobile. */
    .video-block {
        margin-top: 64px;
        height: 637px;
        -webkit-mask-image: url(images/svg-masks/inset-hero.svg);
        mask-image: url(images/svg-masks/inset-hero.svg);
    }

    .video-overlay {
        opacity: 1;
        background: linear-gradient(180deg, rgba(178, 88, 106, 0.85) 0%, rgba(147, 68, 84, 0.92) 100%);
    }

    /* ── Patient Success ── */
    .patient {
        position: relative;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-top: 65px;
        height: 745px;
        background: none;
        clip-path: none;
        overflow: visible;
    }

    .patient::before {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        top: 45px;
        height: 700px;
        background: linear-gradient(180deg, #B2586A 0%, #934454 100%);
        clip-path: path('M390 689.666L390 0C390 0 321.629 10.3334 197.081 10.3334C72.5334 10.3334 0 0 0 0L0.000235558 689.666C0.000235558 689.666 69.8757 700 193.819 700C317.762 700 390 689.666 390 689.666Z');
        z-index: 0;
    }

    .patient-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 390px;
        height: 375px;
        clip-path: path('M0 10.0246C0 4.09484 5.08995 -0.535194 10.9907 0.0499548C90.2775 7.91287 219.341 17.1588 390 17.5094L390 372.927C217.239 372.632 87.9081 364.765 9.10498 358.12C3.93791 357.684 0.0001146 353.359 0 348.174L0 10.0246Z');
        z-index: 1;
    }

    .patient-image img {
        position: static;
        width: 390px;
        height: 375px;
        max-width: none;
        object-fit: cover;
    }

    .patient-text {
        position: absolute;
        top: 407px;
        left: 24px;
        width: 342px;
        z-index: 2;
    }

    .patient-text h2 {
        font-size: 32px;
        line-height: 35.2px;
    }

    /* ── FAQ accordion ── */
    .faq {
        margin-top: 64px;
    }

    .faq-title {
        font-size: 32px;
        line-height: 35.2px;
    }

    .faq-title b {
        font-weight: 400;
    }

    .faq-list {
        margin-top: 40px;
    }

    .faq-item {
        padding: 40px 0;
    }

    .faq-q span {
        font-size: 24px;
        line-height: 26px;
        max-width: 281px;
    }

    .faq-answer p {
        max-width: 282px;
    }

    /* ── Overlay Section (maroon FAQ panel) ── */
    .overlay-faq {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-top: 59px;
        padding: 64px 25px 98px;
        clip-path: path('M390 931.258L390 0C390 0 324 9.74212 198.534 9.74212C73.0683 9.74212 0 0 0 0L0 931.989C0 931.989 72.8696 941 197.727 941C322.584 941 390 931.258 390 931.258Z');
    }

    /* ── Treatments carousel ── */
    .treatments {
        margin-top: 59px;
        margin-bottom: 110px;
    }

    .tr-title {
        font-size: 32px;
        line-height: 35.2px;
    }

    .tr-subtitle {
        max-width: none;
    }

    .tr-viewport {
        margin-top: 32px;
    }

    .tr-track {
        gap: 40px;
    }

    .tr-card {
        flex: 0 0 342px;
        width: 342px;
        height: 570px;
    }

    .tr-card-info {
        left: 40px;
        top: 274px;
        width: 262px;
    }

    .tr-card-heading {
        font-size: 24px;
        line-height: 26.4px;
    }

    .tr-footer {
        margin-top: 48px;
    }

    /* ── Meet the Doctor ── */


    .doctor-inner {
        position: static;
        height: auto;
        padding: 0;
    }

    .doctor-text {
        position: absolute;
        left: 24px;
        top: 64px;
        width: 342px;
        z-index: 2;
    }

    .doctor-heading {
        margin-top: 32px;
        width: 342px;
        font-size: 32px;
        line-height: 35.2px;
    }

    .doctor-desc {
        margin-top: 24px;
        width: 342px;
    }

    .doctor-btn {
        margin-top: 40px;
    }

    .doctor-ring {
        position: absolute;
        left: 3px;
        top: 480px;
        width: 383px;
        height: 417px;
        z-index: 0;
    }

    .doctor-img {
        position: absolute;
        left: -96px;
        top: 450px;
        width: 597px;
        height: 523px;
        z-index: 1;
    }

    /* ── Meet the Team carousel ── */
    .team {
        margin-top: 64px;
    }

    .team-heading {
        font-size: 32px;
        line-height: 35.2px;
    }

    .team-subtitle {
        max-width: none;
    }

    .team .tr-viewport {
        margin-top: 32px;
    }

    .team-card {
        flex: 0 0 341px;
        width: 341px;
        height: 732px;
    }

    .team-card-img,
    .team-card-img img {
        width: 341px;
        height: 341px;
    }

    .team-card-info {
        left: 40px;
        top: 381px;
        width: 261px;
    }

    /* ── Blog carousel ── */
    .blog {
        margin-top: 64px;
    }

    .blog-heading {
        font-size: 32px;
        line-height: 35.2px;
    }

    .blog-intro {
        max-width: none;
    }

    .blog .tr-viewport {
        margin-top: 40px;
    }

    .blog-card {
        flex: 0 0 341px;
        width: 341px;
        height: 732px;
    }

    .blog-card-img {
        width: 100%;
        height: 296px;
    }

    .blog .tr-footer {
        margin-top: 40px;
    }

    /* ── Blog detail ── */
    .bd-header {
        position: relative;
        max-width: none;
        margin: 32px 24px 0;
        background: #f6f7f9;
        border-radius: 8px;
        padding: 32px 24px;
    }

    .bd-header::before {
        display: none;
    }

    .bd-article {
        width: auto;
        margin: 0;
    }

    .bd-header .bd-article {
        padding-top: 0;
    }

    .bd-title {
        font-size: 26px;
        line-height: 30px;
        margin-top: 18px;
    }

    .bd-intro {
        font-size: 16px;
        line-height: 24px;
        margin-top: 20px;
    }

    .bd-feature {
        width: 100%;
        height: auto;
        aspect-ratio: 856 / 484;
        margin-top: 24px;
        border-radius: 8px;
    }

    .bd-body {
        margin: 32px 24px 0;
    }

    .bd-body .bd-article {
        width: auto;
        margin: 0;
    }

    .bd-body p {
        font-size: 16px;
        line-height: 24px;
        margin-bottom: 24px;
    }

    .bd-back {
        margin-top: 32px;
    }

    .related-posts {
        margin-top: 64px;
        padding-bottom: 0;
    }

    .related-heading {
        font-size: 32px;
        line-height: 35.2px;
        margin-bottom: 32px;
    }

    /* ── Booking page mobile ── */
    .bk-hero {
        width: 100vw;
        margin: 0 0 0 calc(-50vw + 50%);
        max-width: none;
        min-height: 0;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        /* No panel bg/mask on mobile: maroon lives on the content block, and the area
       behind the photo is the white page so the photo can curve into white. */
        background: transparent;
        -webkit-mask: none;
        mask: none;
    }

    .bk-hero-content {
        order: 1;
        position: relative;
        z-index: 2;
        padding: 56px 24px 52px;
        max-width: none;
        background: var(--maroon);
        /* Maroon form block with a single clean curved (pillow) bottom that dips over
       the photo. */
        -webkit-mask:
            url(images/cost-bottom-curve.svg) bottom / 100% 26px no-repeat,
            linear-gradient(#000 0 0) top / 100% calc(100% - 18px) no-repeat;
        mask:
            url(images/cost-bottom-curve.svg) bottom / 100% 26px no-repeat,
            linear-gradient(#000 0 0) top / 100% calc(100% - 18px) no-repeat;
    }

    .bk-hero-photo {
        order: 2;
        position: static;
        width: 100%;
        height: auto;
        /* Tuck up under the content's curved bottom so the maroon curve overlaps the
       photo top; the photo's own bottom curves into the white page. */
        margin-top: -26px;
        -webkit-mask:
            url(images/cost-bottom-curve.svg) bottom / 100% 26px no-repeat,
            linear-gradient(#000 0 0) top / 100% calc(100% - 18px) no-repeat;
        mask:
            url(images/cost-bottom-curve.svg) bottom / 100% 26px no-repeat,
            linear-gradient(#000 0 0) top / 100% calc(100% - 18px) no-repeat;
    }

    .bk-hero-photo img {
        height: auto;
    }

    .bk-hero-fade {
        display: none;
    }

    .bk-hero-title {
        font-size: 30px;
        line-height: 36px;
    }

    .bk-hero-intro {
        max-width: none;
        margin-top: 16px;
        font-size: 15px;
        line-height: 22px;
    }

    .bk-form {
        max-width: none;
        margin-top: 44px;
    }

    .bk-input {
        padding: 24px 18px 10px;
    }

    .bk-submit {
        margin-top: 21px;
    }

    .bk-fineprint {
        max-width: none;
        margin-top: 18px;
    }

    .bk-happens {
        margin-top: 56px;
        padding-bottom: 0;
    }

    .bk-happens-title {
        font-size: 32px;
        line-height: 36px;
    }

    .bk-happens-intro {
        max-width: none;
        margin-top: 20px;
    }

    .bk-happens-grid {
        margin-top: 42px;
        grid-template-columns: repeat(2, 1fr);
        gap: 26px 24px;
    }

    .bk-happens-col p {
        margin-top: 24px;
        font-size: 14px;
    }

    .bk-happens-cta {
        margin-top: 52px;
    }

    /* ── Contact page mobile ── */
    .findus.findus-first {
        margin-top: 24px;
    }

    .contact-cta {
        width: 100vw;
        margin: 56px 0 0 calc(-50vw + 50%);
        min-height: 0;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }

    .contact-cta-content {
        order: 1;
        position: static;
        padding: 56px 24px 42px;
        max-width: none;
    }

    

    .contact-cta-photo {
        order: 2;
        position: static;
        width: 100%;
        height: auto;
    }

    .contact-cta-photo img {
        height: auto;
    }

    .contact-cta-fade {
        display: none;
    }

    .contact-cta-title {
        font-size: 30px;
        line-height: 36px;
    }

    .contact-cta-intro {
        max-width: none;
        margin-top: 16px;
        font-size: 15px;
        line-height: 22px;
    }

    .contact-cta .bk-form {
        max-width: none;
        margin-top: 44px;
    }

    /* ── Before & Afters gallery ── */
    .before-after {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-top: 128px;
    }

    .ba-header {
        padding: 0 25px;
    }

    .ba-heading {
        font-size: 32px;
        line-height: 35.2px;
        max-width: none;
    }

    .ba-intro {
        max-width: none;
    }

    .before-after .ba-viewport {
        margin-top: 32px;
    }

    .ba-card {
        flex: 0 0 390px;
        width: 390px;
    }

    .ba-compare {
        width: 390px;
        height: 227px;
                transform: translateX(20px);
    }

    .ba-img-before,
    .ba-img-after {
        top: 13px;
        left: 0;
        width: 390px;
        height: 203px;
            border-radius: 0px;

    }

    .ba-divider {
        height: 227px;
    }

    .ba-handle {
        top: 102px;
    }

    .ba-info {
        padding: 0 25px;
        width: auto;
        margin-top: 24px;
    }

    .before-after .tr-footer {
        padding: 0 25px;
        margin-top: 48px;
    }

    /* Before/After PAGE grid: base `.ba-grid .ba-card` (408px) outranks the mobile
     `.ba-card` rule, so grid cards must be re-scoped to fit the padded container. */
    .ba-grid .ba-card {
        flex: 0 0 100%;
        width: 100%;
    }

    .ba-grid .ba-compare {
        width: 100%;
    }

    .ba-grid .ba-img-before,
    .ba-grid .ba-img-after {
        width: 100%;
    }

    /* ── Editorial content block ── */
    .editorial {
        margin-top: 128px;
    }

    .ed-title {
        max-width: none;
        font-size: 32px;
        line-height: 35.2px;
    }

    .ed-title br {
        display: none;
    }

    .ed-paras {
        flex-direction: column;
        gap: 40px;
    }

    .ed-para {
        flex: none;
    }

    .ed-cols {
        flex-direction: column;
        gap: 40px;
        margin-top: 40px;
    }

    .ed-col {
        flex: none;
    }

    .ed-footer {
        margin-top: 40px;
        max-width: none;
    }

    /* ── Maroon content panel ── */
    .cta-panel {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-top: 64px;
        height: 1917px;
        padding: 64px 25px 0;
        background: linear-gradient(180deg, #B2586A 0%, #934454 100%);
        clip-path: path('M390 1907.26L390 0C390 0 324 9.74212 198.534 9.74212C73.0683 9.74212 0 0 0 0L0 1907.99C0 1907.99 72.8696 1917 197.727 1917C322.584 1917 390 1907.26 390 1907.26Z');
    }

    .cta-panel-bg {
        display: none;
    }

    .cta-title {
        font-size: 32px;
        line-height: 35.2px;
        max-width: none;
    }

    .cta-title br {
        display: none;
    }

    .cta-paras {
        flex-direction: column;
        gap: 40px;
    }

    .cta-para {
        flex: none;
    }

    .cta-cols {
        flex-direction: column;
        gap: 40px;
        margin-top: 40px;
    }

    .cta-col {
        flex: none;
    }

    .cta-footer {
        margin-top: 40px;
        max-width: none;
    }

    /* ── Testimonials ── */
    .testimonials {
        margin-top: 64px;
    }

    .ts-heading {
        margin-top: 28px;
        font-size: 32px;
        line-height: 35.2px;
        max-width: none;
    }

    .ts-desc {
        margin-top: 28px;
        max-width: none;
    }

    .ts-cards {
        margin-top: 32px;
        gap: 40px;
    }

    .ts-card {
        flex: 0 0 343px;
        width: 343px;
        height: 354px;
    }

    .ts-content {
        top: 96px;
        left: 48px;
        width: 247px;
    }

    .ts-name {
        margin-top: 16px;
    }

    .testimonials .tr-footer {
        margin-top: 48px;
    }

    /* ── Book a Free Consultation ── */
    .consult {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-top: 64px;
        height: 1231px;
        border-radius: 0;
        background: var(--maroon);
        clip-path: path("M390 0 C390 0 324.245 9.72 199.232 9.72 C74.2191 9.72 0 0 0 0 L0 1221.26 C0 1221.26 69.89 1231 194.296 1231 C318.701 1231 390 1221.26 390 1221.26 Z");
    }

    .consult-img {
        position: absolute;
        inset: auto;
        top: 0;
        left: 0;
        width: 390px;
        height: 879px;
    }

    .consult-overlay {
        background: linear-gradient(180deg,
                rgba(147, 68, 84, 0) 0%, rgba(147, 68, 84, 0) 12%,
                rgba(147, 68, 84, 0.85) 36%, #934454 50%, #934454 100%);
    }

    .consult-ellipse {
        display: none;
    }

    .consult-form {
        left: 24px;
        top: 529px;
        width: 342px;
    }

    .consult-title {
        font-size: 32px;
        line-height: 35.2px;
    }

    .consult-desc {
        margin-top: 16px;
    }

    .consult-fields {
        margin-top: 40px;
    }

    .consult-field {
        width: 342px;
    }

    .consult-btnwrap {
        margin-top: 50px;
    }

    .consult-btn {
        width: 303.5px;
    }

    .consult-form .consult-btn {
        margin-left: 24px;
    }

    /* ── Consultation CTA panel ── */
    .consult-cta {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-top: 64px;
        /* Extra height over the content gives the ~60px of maroon padding below the
       button that the design shows before the panel's curved bottom edge. */
        height: 990px;
        border-radius: 0;
        background: var(--maroon);
        overflow: hidden;
        clip-path: none;

        -webkit-mask: url(images/cost-bottom-curve.svg) bottom / 100% 26px no-repeat, linear-gradient(#000 0 0) top / 100% calc(100% - 18px) no-repeat;
        mask: url(images/cost-bottom-curve.svg) bottom / 100% 26px no-repeat, linear-gradient(#000 0 0) top / 100% calc(100% - 18px) no-repeat;
    }

    .consult-cta .consult-img {
        position: absolute;
        inset: auto;
        top: 0;
        left: 0;
        width: 100%;
        height: 689px;
        object-fit: cover;
    }

    .consult-cta .consult-overlay {
        background: linear-gradient(180deg,
                rgba(147, 68, 84, 0) 0%, rgba(147, 68, 84, 0) 14%,
                rgba(147, 68, 84, 0.85) 40%, #934454 54%, #934454 100%);
    }

    .contact-form {
        height: 1500px;
    }
    .contact-form .contact-cta-content {
        padding-top: 50px;
    }

    .consult-cta .consult-ellipse {
        display: none;
    }

    .consult-ctabody {
        left: 27px;
        top: auto;
        width: 339px;
        bottom: 70px;
    }

    .cta2-heading {
        font-size: 32px;
        line-height: 35.2px;
    }

    /* ── Find Us ── */
    .findus {
        margin-top: 64px;
        min-height: 0;
    }

    .findus-info {
        width: 342px;
        padding-top: 0;
    }

    .findus-title {
        font-size: 32px;
        line-height: 35.2px;
    }

    .findus-desc {
        margin-top: 24px;
        width: 342px;
    }

    .findus-phone {
        margin-top: 32px;
    }

    .findus-hours {
        margin-top: 32px;
    }

    /* .findus-days span+span {
        margin-top: 8px;
    } */

    .findus-times {
        left: 204px;
        top: 0;
    }

    .findus-map {
        position: static;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-top: 64px;
        height: 402px;
        border-radius: 0;
        clip-path: path("M390 391.544 C305.903 397.056 190.821 402 48.5532 402 C31.9987 402 15.8123 401.932 0 401.805 L0 10.5052 C15.816 10.6357 32.0025 10.706 48.5532 10.706 C190.554 10.706 305.754 5.63962 390 0 L390 391.544Z");
    }

    .findus-pin {
        left: 157px;
        top: 148px;
        width: 75px;
        height: 107px;
    }

    /* ── Footer ── */
    .footer {
        position: relative;
        height: 222px;
        margin-top: 64px;
        padding-bottom: 0;
    }

    .footer-row {
        position: static;
        height: auto;
    }

    .footer-social {
        left: 0;
        top: 0;
        right: auto;
        bottom: auto;
    }

    .footer-social img {
        width: 192px;
        height: 24px;
    }

    .footer-logo {
        left: auto;
        top: auto;
        right: 0;
        bottom: 0;
    }

    .footer-logo img {
        width: 56px;
        height: 37px;
    }

    .footer-divider {
        position: absolute;
        top: 48px;
        left: 0;
        width: 342px;
        margin-top: 0;
    }

    .footer-info {
        position: absolute;
        top: 72px;
        left: 0;
        width: 342px;
        margin-top: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-legal {
        order: 0;
        font-size: 14px;
        line-height: 28px;
        font-weight: 500;
    }

    .footer-legal a {
        display: block;
    }

    .footer-legal-sep {
        display: none;
    }

    .footer-copyright {
        order: 1;
        margin-top: 24px;
        font-size: 14px;
        line-height: 21px;
        font-weight: 500;
    }

    .footer-cr-year,
    .footer-cr-rights {
        display: block;
    }

    .footer-sep,
    .footer-practice {
        display: none;
    }
}
@media (max-width: 400px) {
.ba-compare {
        width: 390px;
        height: 227px;
                transform: translateX(0px);
    }
}
/* ============================================================
   DENTIST REFERRAL — reusable .site-form system
   (ported from Medland .site-form, re-themed for Trinity)
   ============================================================ */
.site-form,
.site-form-hero {
    --sf-font: 'Barlow', sans-serif;
    --sf-font-head: 'Barlow', sans-serif;
    --sf-accent: var(--maroon);
    --sf-accent-soft: rgba(147, 68, 84, 0.12);
    --sf-focus-ring: rgba(147, 68, 84, 0.18);
    --sf-ink: var(--text);
    --sf-muted: #5a5a5a;
    --sf-label: #8d8d8d;
    --sf-surface: #ffffff;
    --sf-panel: #f5f7fa;
    --sf-panel-alt: #f5f7fa;
    --sf-border: #cfd2d6;
    --sf-border-soft: rgba(51, 51, 51, 0.10);
    --sf-danger: #c0392b;
    --sf-radius: 8px;
}

/* Hero — curved grey band */
.site-form-hero {
    position: relative;
    max-width: var(--full-width);
    width: calc(100% - 48px);
    margin: 12px auto 0;
    background: var(--sf-panel);
    border-radius: 18px 18px 50% 50% / 18px 18px 32px 32px;
    padding: 86px 0 115px;
}

.site-form-hero-inner {
    width: min(100% - 48px, var(--content-width));
    margin: 0 auto;
}

.site-form-hero-title {
    font-family: var(--sf-font-head);
    font-weight: 400;
    font-size: 38px;
    line-height: 44px;
    color: var(--sf-ink);
    margin: 0 0 16px;
}

.site-form-hero-text {
    font-weight: 400;
    font-size: 20px;
    line-height: 30px;
    color: var(--sf-muted);
    max-width: 1020px;
    margin: 0;
}

/* Form container */
.site-form-section {
    width: min(100% - 48px, var(--content-width));
    margin: 88px auto 0;
}

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

.site-form-section-title {
    font-family: var(--sf-font-head);
    font-weight: 600;
    font-size: 14px;
    text-transform: none;
    color: var(--sf-accent);
    margin: 0 0 28px;
}

.site-form-section-title+.form-row {
    margin-top: 0;
}

.site-form .site-form-section-title:not(:first-of-type) {
    margin-top: 45px;
}

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

/* grid */
.site-form .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0 41px;
}

.site-form .form-row>[class*="col-"] {
    padding: 0;
}

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

.site-form .col-6 {
    flex: 0 0 calc(50% - 20.5px);
    max-width: calc(50% - 20.5px);
}

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

/* controls */
.site-form .form-group {
    margin-bottom: 25px;
}

.site-form .form-control,
.site-form .custom-select {
    display: block;
    width: 100%;
    height: 55px;
    padding: 15px 16px;
    font-family: var(--sf-font);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    color: #333;
    background: var(--sf-surface);
    border:1px solid #6a6a6a;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.site-form textarea.form-control {
    height: auto;
    min-height: 114px;
    resize: vertical;
}

.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='%23934454' 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;
}

.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: 14px;
    left: 13px;
    padding: 0 4px;
    font-family: var(--sf-font);
    font-size: 15px;
    font-weight: 400;
    color: #333;
    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(-23px) 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);
}

/* radios + checkboxes */
.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: 40px;
    margin-bottom: 6px;
}

.site-form .custom-control-stacked {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}

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

.site-form .custom-control-label {
    font-weight: 400;
    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(--sf-border);
    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-checkbox .custom-control-label::before {
    border-radius: 4px;
}

.site-form .custom-checkbox .custom-control-label::after {
    left: 4px;
    top: 4px;
    width: 10px;
    height: 6px;
    border-radius: 0;
    background: none;
    border-left: 2px solid var(--sf-accent);
    border-bottom: 2px solid var(--sf-accent);
    transform: rotate(-45deg) scale(0);
}

.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-checkbox .custom-control-input:checked~.custom-control-label::after {
    transform: rotate(-45deg) 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 30px;
}

.site-form .site-form-radio-group:first-of-type {
    margin-bottom: 60px;
}

.site-form .form-row+.site-form-radio-group {
    margin-top: 44px;
}

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

/* DOB selects */
.site-form-dob-selects {
    display: flex;
    gap: 26px;
}

.site-form-dob-selects .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* upload card */
.site-form-upload {
    background: var(--sf-panel);
    border-radius: 12px;
    padding: 58px 48px 90px;
    margin: 50px 0 0;
}

.site-form-upload-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--sf-accent);
    margin: 0 0 14px;
}

.site-form-upload-text {
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    color: var(--sf-muted);
    margin: 0 0 4px;
    max-width: 580px;
}

/* dropzone */
.site-form-dropzone {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin: 60px 0 0;
    padding: 14px 24px;
    background: transparent;
    border: 1px dashed transparent;
    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: 400;
    font-size: 14px;
    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-accent);
    background: var(--sf-surface);
    border: 1px solid var(--sf-accent);
    border-radius: var(--sf-radius);
    padding: 11px 24px;
    cursor: pointer;
}

.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: 400;
    font-size: 14px;
    color: var(--sf-ink);
    background: var(--sf-surface);
    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-accent);
    border: none;
    border-radius: var(--sf-radius);
    padding: 15px 30px;
    margin-top: 61px;
    cursor: pointer;
    transition: opacity 0.2s;
}

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

.site-form .btn-submit-form .arrow {
    transition: transform 0.2s;
}

.site-form .btn-submit-form:hover .arrow {
    transform: translateX(4px);
}

.site-form-privacy {
    font-weight: 400;
    font-size: 13px;
    line-height: 19px;
    color: var(--sf-muted);
    margin-top: 16px;
}

.site-form-privacy a {
    color: var(--sf-accent);
    font-weight: 600;
    text-decoration: underline;
}

.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;
}

.site-form-section+.consult-cta {
    margin-top: 198px;
}

@media (max-width: 767px) {
    .site-form-section+.consult-cta {
        margin-top: 70px;
    }
}

/* validation */
.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;
}

/* mobile */
@media (max-width: 600px) {
    .site-form-hero {
        width: 100vw;
        margin: 0 0 0 calc(-50vw + 50%);
        border-radius: 0;
        padding: 44px 0 52px;
    }

    .site-form-hero-title {
        font-size: 30px;
        line-height: 36px;
    }

    .site-form-section {
        margin-top: 40px;
    }

    .site-form {
        max-width: none;
    }

    .site-form .form-row {
        gap: 0;
    }

    .site-form .col-6,
    .site-form .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .form-row .col-12{
        margin-bottom: 24px;
    }

    .site-form-dob-selects {
        gap: 12px;
    }

    .site-form-dob-selects + .form-group {
        margin-top: 20px;
    }

    .site-form-upload {
        padding: 32px 22px 36px;
    }

    .site-form .custom-control-inline {
        margin-right: 24px;
    }
}

/* =============================================================
   MEET DR DIRK SCHUTH
   ============================================================= */
.dirk-hero {
    position: relative;
    max-width: var(--full-width);
    width: calc(100% - 48px);
    margin: 50px auto 0;
    background: #F6F7F9;
    border-radius: 18px 18px 50% 50% / 18px 18px 32px 32px;
    overflow: hidden;
    min-height: 800px;
}

.dirk-hero-inner {
    position: relative;
    z-index: 2;
    width: min(100% - 48px, var(--content-width));
    margin: 0 auto;
    height: 800px;
}

.dirk-hero-text {
    position: absolute;
    top: 346px;
    left: 0;
    max-width: 540px;
}

.dirk-hero-title {
    font-family: var(--font);
    font-weight: 400;
    font-size: 38px;
    line-height: 44px;
    color: var(--text);
    margin: 0;
}

.dirk-hero-role {
    font-weight: 400;
    font-size: 15px;
    line-height: 22px;
    color: var(--text);
    margin: 22px 0 0;
}

.dirk-hero-creds {
    font-weight: 400;
    font-size: 15px;
    line-height: 24px;
    color: var(--text);
    margin: 4px 0 0;
}

.dirk-hero-photo {
    position: absolute;
    z-index: 1;
    bottom: 0;
    right: 55px;
    height: 726px;
    width: auto;
}

.dirk-bio {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 510px));
    column-gap: 56px;
    margin-top: 147px;
}

.dirk-bio-col p {
    font-weight: 400;
    font-size: 15px;
    line-height: 24px;
    color: var(--text);
    margin: 0 0 24px;
}

.dirk-bio-col p:last-child {
    margin-bottom: 0;
}

.dirk-quals {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 56px;
    margin-top: 239px;
}

.dirk-quals+.consult-cta {
    margin-top: 125px;
}

@media (max-width: 767px) {
    .dirk-quals+.consult-cta {
        margin-top: 55px;
    }
}

.dirk-qual-title {
    font-family: var(--font);
    font-weight: 400;
    font-size: 24px;
    line-height: 30px;
    color: var(--text);
    margin: 0 0 24px;
}

.dirk-qual-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dirk-qual-list li {
    position: relative;
    padding-left: 22px;
    font-weight: 400;
    font-size: 15px;
    line-height: 24px;
    color: var(--text);
    margin-bottom: 12px;
}

.dirk-qual-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 10px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text);
}

@media (max-width: 600px) {
    .dirk-hero {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        border-radius: 0;
        min-height: 0;
            margin: 20px auto 0;
    }

    .dirk-hero-inner {
        height: auto;
    }

    .dirk-hero-text {
        position: static;
        transform: none;
        padding: 44px 0 0;
        max-width: none;
    }

    .dirk-hero-photo {
        position: static;
        display: block;
        height: auto;
        width: 100%;
        right: 0;
        margin-top: 24px;
    }

    .dirk-bio {
        grid-template-columns: 1fr;
        margin-top: 48px;
        row-gap: 24px;
    }

    .dirk-quals {
        grid-template-columns: 1fr;
        margin-top: 56px;
        row-gap: 40px;
    }
}

/* =============================================================
   MEET THE TEAM
   ============================================================= */
.tm-hero {
    margin-top: 53px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
}

.tm-hero-text {
    max-width: 470px;
    padding-top: 155px;
}

.tm-hero-title {
    font-family: var(--font);
    font-weight: 400;
    font-size: 40px;
    line-height: 44px;
    color: var(--text);
    margin: 0;
}

.tm-hero-intro {
    margin: 22px 0 0;
    font-weight: 400;
    font-size: 16px;
    line-height: 21px;
    color: var(--text);
}

.tm-hero-photo {
    flex: 0 0 auto;
}

.tm-hero-photo img {
    display: block;
    width: 744px;
    height: auto;
    border-radius: 16px;
}

.tm-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 121px;
}

.tm-pill {
    border: 1.5px solid var(--maroon);
    background: transparent;
    color: var(--maroon);
    border-radius: 999px;
    height: 41px;
    padding: 0 26px;
    display: inline-flex;
    align-items: center;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.tm-pill.active,
.tm-pill:hover {
    background: var(--maroon);
    color: #fff;
}

.tm-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 41px;
    row-gap: 96px;
    margin-top: 112px;
    margin-bottom: 167px;
}

.tm-card {
    border-radius: 16px;
    overflow: hidden;
    background: var(--maroon);
    color: #fff;
}

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

.tm-card-img {
    display: block;
    width: 100%;
    aspect-ratio: 408 / 377;
    object-fit: cover;
}

.tm-card-body {
    padding: 56px 48px 47px;
}

.tm-card-name {
    font-family: var(--font);
    font-size: 28px;
    line-height: 32px;
    font-weight: 600;
    margin: 0;
}

.tm-card-role {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 16px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.tm-card-creds {
    margin: 13px 0 0;
    font-size: 15px;
    line-height: 24px;
    font-weight: 400;
    opacity: .85;
}

.tm-card-degree {
    margin: 18px 0 0;
    font-size: 15px;
    line-height: 24px;
    font-weight: 400;
    opacity: .85;
}

.tm-card-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    font-size: 14px;
    line-height: 16px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    font-family: var(--font);
}

.tm-card-more .arrow {
    font-size: 16px;
}


/* ── Team member modal ── */
.tm-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, .45);
}

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

.tm-modal-panel {
    position: relative;
    width: min(100% - 48px, var(--full-width));
    background: #F6F7F9;
    border-radius: 24px 24px 50% 50% / 24px 24px 40px 40px;
    overflow: hidden;
    max-height: calc(100vh - 48px);
}

.tm-modal-body {
    display: flex;
    gap: 63px;
    padding: 80px 100px 80px 100px;
}

.tm-modal-photo {
    flex: 0 0 408px;
}

.tm-modal-photo img {
    display: block;
    width: 408px;
    height: 408px;
    object-fit: cover;
    border-radius: 12px;
}

.tm-modal-text {
    flex: 1;
    min-width: 0;
        overflow-y: auto;
}

.tm-modal-name {
    font-family: var(--font);
    font-size: 30px;
    line-height: 36px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.tm-modal-role {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--text);
}

.tm-modal-creds {
    margin: 12px 0 0;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: #8A8F94;
}

.tm-modal-bio {
    margin-top: 30px;
}

.tm-modal-bio p {
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: #4D5358;
    margin: 0 0 24px;
}

.tm-modal-bio p:last-child {
    margin-bottom: 0;
}

.tm-modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    width: 30px;
    height: 30px;
    border: 0;
    background: none;
    cursor: pointer;
    padding: 0;
}

.tm-modal-close::before,
.tm-modal-close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--maroon);
}

.tm-modal-close::before {
    transform: rotate(45deg);
}

.tm-modal-close::after {
    transform: rotate(-45deg);
}

@media (max-width: 1500px){
    .tm-modal-body {
        height: 100vh;
    }
}
@media (max-width: 1024px) and (min-width: 601px) {
    .tm-hero {
        gap: 40px;
    }

    .tm-hero-text {
        padding-top: 40px;
        max-width: 360px;
    }

    .tm-hero-photo img {
        width: 100%;
        max-width: 460px;
    }

    .tm-filter {
        margin-top: 56px;
    }

    .tm-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 32px;
        row-gap: 56px;
        margin-top: 56px;
        margin-bottom: 96px;
    }

    .tm-card-body {
        padding: 40px 32px 36px;
    }

    .tm-modal-body {
        padding: 96px 64px 140px;
        gap: 32px;
    }

    .tm-modal-photo {
        flex: 0 0 320px;
    }

    .tm-modal-photo img {
        width: 320px;
        height: 320px;
    }

    .tm-modal-close {
        top: 40px;
        right: 48px;
    }
}

@media (max-width: 600px) {
    .tm-hero {
        flex-direction: column;
        gap: 28px;
        margin-top: 24px;
    }

    .tm-hero-text {
        padding-top: 0;
        max-width: none;
        order: 2;
    }

    .tm-hero-photo {
        order: 1;
        width: 100%;
    }

    .tm-hero-photo img {
        width: 100%;
    }

    .tm-hero-title {
        font-size: 32px;
        line-height: 35.2px;
    }

    .tm-filter {
        margin-top: 40px;
        gap: 12px;
    }

    .tm-grid {
        grid-template-columns: 1fr;
        row-gap: 40px;
        margin-top: 40px;
                margin-bottom: 67px;
    }

    .tm-grid+.consult-cta {
        margin-top: 64px;
    }

    .tm-modal-body {
        flex-direction: column;
        gap: 24px;
        padding: 64px 24px 80px;
    }

    .tm-modal-photo {
        flex: 0 0 auto;
    }

    .tm-modal-photo img {
        width: 100%;
        height: auto;
    }

    .tm-modal-bio {
        margin-top: 28px;
    }

    .tm-modal-close {
        top: 20px;
        right: 20px;
    }
}

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

/* Hero grey band (covers lower hero + icon feature row) */
.pc-band {
    position: absolute;
    top: 479px;
    /* page 633 − hero box top 154 */
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 838px;
    /* page 633 → 1471 */
    z-index: 0;
    pointer-events: none;
}

.pc-band svg {
    display: block;
    width: 100%;
    height: 100%;
}

.pc-hero-image {
    width: 744px;
    height: 517px;
    flex-shrink: 0;
    margin-top: 58px;
    border-radius: 18px;
    overflow: hidden;
}

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

/* Icon feature row (sits on grey band) */
.pc-icons {
    position: relative;
    z-index: 1;
    margin-top: 130px;
    text-align: center;
}

.pc-icons-title {
    font-size: 30px;
    line-height: 36px;
    font-weight: 400;
    color: var(--text);
    margin: 0;
}

.pc-icons-intro {
    max-width: 980px;
    margin: 22px auto 0;
    font-size: 16px;
    line-height: 24px;
    color: var(--text);
}

.pc-icons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 70px;
    text-align: left;
}

.pc-icons-col img {
    width: 64px;
    height: 64px;
    display: block;
}

.pc-icons-col p {
    margin-top: 26px;
    font-size: 14px;
    line-height: 22px;
    color: var(--text);
}

/* Treatment costs table */
.pc-table-section {
    margin-top: 126px;
}

.pc-table-title {
    font-size: 30px;
    line-height: 36px;
    font-weight: 400;
    color: var(--text);
    margin: 0;
}

.pc-table {
    margin-top: 62px;
}

@media (max-width: 767px) {
    .pc-table {
        margin-top: 22px;
    }
}

.pc-table-head,
.pc-row {
    display: grid;
    grid-template-columns: 517px 451px 1fr;
    padding: 0 44px;
    align-items: center;
}

.pc-table-head {
    height: 56px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--maroon);
}

.pc-row {
    height: 112px;
}

.pc-row:nth-child(even) {
    background: #F4F5F6;
}

.pc-row-name {
    font-size: 16px;
    color: var(--text);
    font-weight: 500;
}

.pc-row-install {
    font-size: 14px;
    line-height: 20px;
    color: var(--text);
}

.pc-row-total {
    font-size: 16px;
    color: var(--text);
}

.pc-plans {
    margin-top: 48px;
    padding: 0 44px;
}

.pc-plans h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.pc-plans p {
    margin: 14px 0 0;
    font-size: 14px;
    line-height: 22px;
    color: var(--text);
    max-width: 760px;
}

@media (max-width: 767px) {
    .pc-plans {
        margin-top: 28px; 
        padding: 0;
    }

}

/* Calculator grey band */
.pc-calc {
    position: relative;
    padding: 150px 0 185px;
}

.pc-calc::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: #F4F5F6;
    z-index: 0;
    border-radius: 0 0 50% 50% / 0 0 70px 70px;
}

.pc-calc--plain {
    margin-top: 0;
    padding: 188px 0 176px;
}

.pc-calc--plain::before {
    display: none;
}

.pc-calc-inner {
    position: relative;
    z-index: 1;
}

.pc-calc-grid {
    display: grid;
    grid-template-columns: 588px 1fr;
    gap: 80px;
    align-items: start;
}

.pc-calc-title {
    font-size: 30px;
    line-height: 35px;
    font-weight: 400;
    color: var(--text);
    margin: 0;
}

.pc-field {
    margin-top: 36px;
}

.pc-field-label {
    display: block;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 14px;
}

.pc-toggle {
    display: inline-flex;
    gap: 26px;
}

.pc-toggle button {
    padding: 17px 34px;
    border: 1px solid var(--maroon);
    border-radius: 4px !important;
    background: transparent;
    color: var(--maroon);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.pc-toggle button.active,
.pc-toggle button:hover {
    background: var(--maroon);
    color: #fff;
}

.pc-control {
    display: flex;
    align-items: center;
    gap: 40px;
}

.pc-input-wrap {
    position: relative;
    width: 167px;
    flex-shrink: 0;
}

.pc-input-wrap .pc-input {
    width: 100%;
    border: 1px solid #333;
    border-radius: 6px;
    background: transparent;
    padding: 17px 30px;
    font-size: 16px;
    color: var(--maroon);
    font-family: var(--font);
}

.pc-input-wrap .pc-input--icon {
    padding-left: 40px;
}

.pc-input-wrap .pc-input-prefix {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--text);
    pointer-events: none;
}

.pc-input-wrap .pc-input-cal {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--maroon);
    pointer-events: none;
}

.pc-range {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    height: 2px;
    background: #C9CDD2;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.pc-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--maroon);
    cursor: pointer;
    border: 0;
}

.pc-range::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--maroon);
    cursor: pointer;
    border: 0;
}

/* Right panel */
.pc-panel {
    border: 1px solid #333;
    border-radius: 10px;
    background: transparent;
    overflow: hidden;
}

.pc-tabs {
    display: flex;
    border-bottom: 1px solid #333;
}

.pc-tab {
    padding: 22px 26px;
    background: none;
    border: 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #934454;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    opacity: .7;
}

.costs_curve {
    height: 712px;
}

.cost_table1 {
    margin-top: 226px;
}

.pc-tab.active {
    color: var(--maroon);
    border-bottom-color: var(--maroon);
    opacity: 1;
}

.pc-tabpanel {
    padding: 30px;
}

.pc-tabpanel[hidden] {
    display: none;
}

.pc-options-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 41px;
}

.pc-opt {
    border: 1px solid #934454;
    border-radius: 8px;
    overflow: hidden;
}

.pc-opt--wide {
    margin-top: 35px;
}

.pc-opt-head {
    padding: 22px 26px;
    color: #fff;
}

.pc-opt-head--solid {
    background: var(--maroon);
}

.pc-opt-head--grad {
    background: linear-gradient(90deg, #934454 0%, #b56e7c 100%);
}

.pc-opt-eyebrow {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 0;
}

.pc-opt-desc {
    margin: 8px 0 0;
    font-size: 16px;
    line-height: 20px;
    opacity: 0.95;
}

.pc-opt-body {
    padding: 24px 26px 26px;
}

.pc-opt-price {
    font-size: 48px;
    line-height: 1;
    font-weight: 500;
    color: var(--text);
    margin: 0;
}

.pc-opt-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 26px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--maroon);
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
}

.pc-opt-note {
    margin: 16px 0 0;
    font-size: 11px;
    line-height: 16px;
    color: #8A8F94;
}

.pc-graph {
    width: 100%;
    height: 320px;
}

.pc-graph rect {
    transition: height .3s, y .3s;
}

.pc-install-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pc-install-list li {
    display: flex;
    justify-content: space-between;
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    color: var(--text);
}

.pc-install-list li:last-child {
    border-bottom: 0;
}

.pc-install-list strong {
    font-weight: 600;
}

/* Tablet gap: the 517px/451px fixed pricing columns need ~1104px to fit and
   clip below that. Switch to fluid columns from 1180px down (designed fixed
   columns kept at >=1181px). */
@media (min-width: 601px) and (max-width: 1180px) {

    .pc-table-head,
    .pc-row {
        grid-template-columns: 1.4fr 1fr 0.7fr;
        column-gap: 16px;
    }

    .pc-table-head {
        padding: 0 24px;
    }

    .pc-row {
        height: auto;
        padding: 24px;
    }

    /* Calculator: the 588px + 1fr grid squeezes the right panel to nothing in the
     tablet gap; stack it so the panel/tabs/option cards get full width. */
    .pc-calc-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 600px) {
    .pc-band {
        display: none;
    }

    .pc-hero-image {
        width: 100%;
        height: 280px;
    }

    .pc-icons {
        margin-top: 50px;
        padding: 0px 0 0px;
    }

    .pc-icons-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px 24px;
        margin-top: 40px;
    }

    .pc-icons-intro {
        margin-top: 16px;
    }

    .pc-table-section {
        margin-top: 56px;
        overflow-x: auto;
    }

    .pc-table-head,
    .pc-row {
        grid-template-columns: 1.4fr 1fr 0.7fr;
        padding: 0 16px;
        column-gap: 12px;
    }

    .pc-row {
        height: auto;
        padding: 18px 16px;
    }

    .pc-row-name,
    .pc-row-total {
        font-size: 14px;
    }

    .pc-row-install {
        font-size: 12px;
    }

    .pc-calc {
        margin-top: 64px;
        padding: 56px 0 64px;
    }

    .pc-calc::before {
        border-radius: 0 0 32px 32px;
    }

    .pc-calc-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .pc-calc-grid>.pc-panel {
        margin-top: 0;
    }

    .pc-input-wrap {
        width: 140px;
    }

    .pc-control {
        gap: 20px;
    }

    .pc-options-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pc-opt-price {
        font-size: 38px;
    }

    .pc-tab {
        padding: 16px;
    }
}

/* ===================== REVIEWS PAGE ===================== */
.rv-hero-image {
    width: 744px;
    height: 517px;
    flex-shrink: 0;
    border-radius: 18px;
    overflow: hidden;
}

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

.rv-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 122px;
}

.rv-pill {
    border: 1.5px solid var(--maroon);
    background: transparent;
    color: var(--maroon);
    border-radius: 999px;
    height: 41px;
    padding: 0 26px;
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.rv-pill.active,
.rv-pill:hover {
    background: var(--maroon);
    color: #fff;
}

.rv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 40px;
    row-gap: 65px;
    margin-top: 100px;
    margin-bottom: 197px;
}

.rv-card {
    border: 1px solid var(--maroon);
    border-radius: 8px;
    background: #fff;
    padding: 40px;
}

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

.rv-quote {
    display: block;
    width: 89px;
    height: 71px;
}

.rv-text {
    margin: -27px 0 0;
    font-size: 16px;
    line-height: 28px;
    color: var(--text);
}

.rv-name {
    margin: 22px 0 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

@media (max-width: 600px) {
    .rv-hero-image {
        width: 100%;
        height: 280px;
    }

    .rv-filter {
        margin-top: 40px;
        gap: 12px;
    }

    .rv-grid {
        grid-template-columns: 1fr;
        row-gap: 35px;
        margin-top: 40px;
        margin-bottom: 64px;
    }

    .rv-card {
        padding: 36px 28px 32px;
    }
}

/* ===================== THANK YOU PAGE ===================== */
.ty-hero {
    position: relative;
    margin-top: 50px;
    background: #F6F7F9;
    border-radius: 18px 18px 0 0;
    clip-path: path("M0,18 Q0,0 18,0 L1582,0 Q1600,0 1600,18 L1600,300 Q800,340 0,300 Z");
    padding: 98px 148px 92px;
}

.ty-hero-inner {
    max-width: 1010px;
}

.ty-hero-title {
    font-size: 44px;
    line-height: 48px;
    font-weight: 400;
    color: var(--text);
}

.ty-hero-text {
    margin-top: 32px;
    max-width: 950px;
    font-size: 16px;
    line-height: 26px;
    color: #555;
}

.ty-video {
    margin-top: -42px;
}

.ty-happens {
    margin-top: 196px;
}

.ty-baband {
    position: relative;
    margin-top: 209px;
}

.ty-baband::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: #F5F6F8;
    z-index: 0;
    clip-path: path("M0,40 Q960,0 1920,40 L1920,760 Q960,800 0,760 Z");
}

.ty-ba {
    position: relative;
    z-index: 1;
    margin-top: 0;
    padding: 96px 0 120px;
}

.ty-ba .ba-grid {
    margin-top: 58px;
}

.ty-ts {
    margin-top: 252px;
}

.ty-tsgrid {
    margin-top: 58px;
    margin-bottom: 0;
}

.ty-callus {
    position: relative;
    margin-top: 183px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 700px;
    clip-path: path("M0,2 Q800,32 1600,2 L1600,668 Q800,700 0,668 Z");
}

.ty-callus+.consult-cta {
    margin-top: 198px;
}

.ty-callus-text {
    background: var(--maroon);
    color: #fff;
    padding: 202px 96px 0;
}

.ty-callus-title {
    font-size: 44px;
    line-height: 50px;
    font-weight: 400;
}

.ty-callus-title b {
    font-weight: 700;
}

.ty-callus-desc {
    margin-top: 26px;
    max-width: 410px;
    font-size: 16px;
    line-height: 26px;
    color: rgba(255, 255, 255, 0.92);
}

.ty-callus-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 38px;
    height: 48px;
    padding: 0 28px;
    border: 1.5px solid #fff;
    border-radius: 6px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: background .2s, color .2s;
}

.ty-callus-btn:hover {
    background: #fff;
    color: var(--maroon);
}

.ty-callus-btn .arrow {
    transition: transform .2s;
}

.ty-callus-btn:hover .arrow {
    transform: translateX(4px);
}

.ty-callus-img {
    position: relative;
    overflow: hidden;
}

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

@media (max-width: 600px) {
    .ty-hero {
        padding: 48px 25px 64px;
        clip-path: none;
        border-radius: 18px;
        margin-top: 24px;
    }

    .ty-hero-title {
        font-size: 30px;
        line-height: 36px;
    }

    .ty-video {
        margin-top: 24px;
    }

    .ty-happens {
        margin-top: 56px;
    }

    .ty-baband {
        margin-top: 56px;
    }

    .ty-baband::before {
        clip-path: none;
    }

    .ty-ba {
        padding: 48px 0;
    }

    .ty-ts {
        margin-top: 56px;
    }

    .ty-callus {
        grid-template-columns: 1fr;
        height: auto;
        clip-path: none;
        border-radius: 18px;
        overflow: hidden;
        margin-top: 64px;
    }

    .ty-callus-text {
        padding: 48px 28px;
    }

    .ty-callus-title {
        font-size: 30px;
        line-height: 36px;
    }

    .ty-callus-img {
        min-height: 300px;
    }
}

/* ============================================================
   HEADER DROPDOWNS / MEGA MENU (desktop >1024) + MOBILE ACCORDION
   ============================================================ */

.nav-dropdown {
    position: absolute;
    top: calc(100% + -10px);
    left: 0;
    min-width: 230px;
    /* background: #fff;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.10);
    padding: 20px 24px; */
    /* border-radius: 10px; */
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 120;
}

.nav-item.open>.nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-drop-link {
    font-size: 12px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text);
    white-space: nowrap;
    padding: 3px 0;
    transition: color 0.15s;
}

.nav-drop-link:hover {
    color: var(--maroon);
}

/* Treatments mega panel — full-bleed white strip under the header */
/* .nav-mega {
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: 100vw;
    min-width: 0;
    border-radius: 0;
    box-shadow: 0 16px 18px rgba(0, 0, 0, 0.05);
    padding: 0;
} */

/* .nav-item.open>.nav-mega {
    transform: translateX(-50%) translateY(0);
} */

.nav-mega-inner {
    /* width: min(100% - 48px, var(--content-width)); */
    margin-inline: auto;
    display: flex;
    gap: 35px;
    padding: 10px 0 0px 0px;
    box-sizing: border-box;
}

.nav-mega-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-mega-col:nth-child(1) {
    width: 166px;
}

.nav-mega-col:nth-child(2) {
    width: 118px;
}

.nav-mega-col:nth-child(3) {
    width: 170px;
}

.nav-mega-col:nth-child(4) {
    width: 170px;
}

.nav-mega-title {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text);
    margin: 0 0px;
}

.nav-mega-link {
    font-size: 12px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #5b5b5b;
    line-height: 1.25;
    transition: color 0.15s;
}

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

/* Mobile accordion (rendered inside #mobile-menu overlay) */
.m-acc-top,
.m-sub-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--text);
    text-transform: uppercase;
}

.m-acc-top {
    padding: 13px 0;
    font-size: 20px;
    letter-spacing: 0.02em;
    font-weight: 500;
}

.m-acc-caret {
    color: var(--maroon);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.m-acc.open>.m-acc-top .m-acc-caret,
.m-sub.open>.m-sub-top .m-acc-caret {
    transform: rotate(180deg);
}

.m-acc-panel,
.m-sub-panel {
    display: none;
}

.m-acc.open>.m-acc-panel {
    display: block;
    padding-left: 18px;
}

/* .m-sub {
    border-bottom: 1px solid var(--line);
} */

.m-sub:last-child {
    border-bottom: none;
}

.m-sub-top {
    /* display: block; */
    padding: 11px 0;
    font-size: 18px;
    letter-spacing: 0.02em;
    font-weight: 500;
    text-transform: uppercase;
    color: #333;
    border: 0;
}

.m-sub.open>.m-sub-panel {
    display: block;
    padding-left: 16px;
    padding-bottom: 8px;
}

.m-sub-link {
    display: block;
    padding: 5px 0;
    font-size: 16px;
    letter-spacing: 0.02em;
    font-weight: 500;
    text-transform: uppercase;
    color: #333;
}

.m-sub-link:hover {
    color: var(--maroon);
}

.mobile-menu-caret {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-menu-caret .m-acc-caret {
    color: var(--maroon);
}

/* ============================================================
   HOMEPAGE
   ============================================================ */

/* ── Hero ── */
.home-hero {
    position: relative;
}

.home-hero-bg {
        width: 100vw;
    margin-left: calc(50% - 50vw);
    height: 813px;
    display: block;
    object-fit: cover;
}

.home-hero-inner {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 0px);
    width: min(100% - 48px, var(--content-width));
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    z-index: 2;
}

.home-hero-title {
    font-size: 72px;
    line-height: 1.0;
    font-weight: 400;
    color: var(--maroon);
}

.home-hero-title b {
    font-weight: 700;
}

.home-hero-btn {
    margin-top: 62px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.home-hero-curve {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    aspect-ratio: 1920 / 74;
    z-index: 1;
    pointer-events: none;
}

.home-hero-curve svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* Maroon crescent accent (public/images/home-hero-curve-bottom.svg) overlaid on
   the photo's curved bottom edge. Shares the same 1920×74 geometry as the white
   mask above and is stretched to fill, so the crescent lines up with the curve
   at every viewport width. */
.home-hero-curve::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url(images/home-hero-curve-bottom.svg) center / 100% 100% no-repeat;
    pointer-events: none;
}

@media (max-width: 1440px) {
    .home-hero-bg {
        height: 495px;
    }
}

/* ── SBS overrides for home ── */
.home-sbs {
    margin-top: 150px;
    align-items: center;
}

.home-sbs--nhs {
    margin-top: 154px;
    position: relative;
}

/* Full-width subtle grey band behind the NHS row. z-index:-1 (no new stacking
   context on the section) so it paints beneath this row AND tucks up behind the
   lower portion of the Invisalign ("dream smile") tab image above, so that image
   punches through the band's curved top edge with no white gap (matches design). */
.home-sbs--nhs::before {
        content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 1413px;
    top: -270px;
    bottom: -290px;
    background: url(images/home-nhs-bg.svg) center top no-repeat;
    z-index: -1;
    pointer-events: none;
}

.sbs-text h2 b {
    font-weight: 600;
}

.sbs-tabs {
    display: flex;
    gap: 32px;
    margin-bottom: 40px;
}

.sbs-tab {
    font-family: inherit;
    font-size: 16px;
    line-height: 17.6px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color:  #93445499; 
    padding: 0 0 8px;
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.sbs-tab:hover {
    color: var(--maroon);
}

.sbs-tab.active {
    color: var(--maroon);
    border-bottom-color: var(--maroon);
}

.sbs-tab-img {
    transition: opacity 0.3s var(--ease);
}

.sbs-eyebrow {
    font-size: 16px;
    line-height: 17.6px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--maroon);
    margin-bottom: 24px;
}

.sbs-btn {
    margin-top: 40px;
    text-decoration: none;
}

/* NHS section eyebrow uses the darker brown (--maroon-dark), matching that
   section's "DISCOVER MORE" CTA rather than the pinker default eyebrow maroon. */
.home-sbs--nhs .sbs-eyebrow {
    color: var(--maroon);
}

/* The grey band's top/bottom offsets above are tuned for the desktop side-by-side
   layout. On mobile the section stacks and is much shorter, so those large
   offsets would push the band up behind the dream-smile copy. Retune so the band
   tucks just above the NHS image and just behind the first treatment card. */
@media (max-width: 600px) {
    .home-sbs {
        margin-top: 80px;
        align-items: center;
    }
    .home-sbs--nhs {
        margin-top: 120px; 
        position: relative;
    } 
    .home-sbs--nhs .sbs-text,
    .home-sbs  .sbs-text {
        margin-top: 0px;
    }

    .home-sbs--nhs::before {
        top: -60px;
        bottom: 0px;
        background: url(images/home-nhs-bg-mob.svg) center top no-repeat;
        height: 2774px;
    }
    
    
    
}

/* ── Treatments 3-up ── */
.home-treatments {
    margin-top: 185px;
}

.home-treatments .tr-track {
    gap: 40px;
}

/* Laptop/tablet/mobile: keep treatment cards their native size by wrapping
   instead of overflowing the container (homepage built at 1920). flex-wrap
   self-adjusts the column count (3-up → 2-up → 1-up) as width shrinks. */
@media (max-width: 1351px) {
    .home-treatments .tr-track {
        flex-wrap: wrap;
        justify-content: center;
    }
}
@media (max-width: 767px) {
    .home-treatments {
        margin-top: 52px;
    }
}

/* ── Before & After band ── */
/* Full-width curved grey band behind the before/after row, same asset/technique
   as the NHS band: z-index:-1 so it paints beneath this section AND tucks behind
   the "Why Choose" section above and the "Book a Free Consultation" panel below. */
.home-ba {
    position: relative;
}

.home-ba::before {
    content: "";
    position: absolute;
    top: -170px;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 1413px;
    background: url(images/home-nhs-bg.svg) center top no-repeat;
    z-index: -1;
    pointer-events: none;
}

/* ── Cost panel ── */
.home-cost {
    margin-top: 200px;
}

.home-cost-panel {
    position: relative;
    height: 820px;
    color: var(--white);
    background: linear-gradient(180deg, #B2586A 0%, #934454 100%);
    clip-path: path('M0 24.3097C0 11.3085 10.18 1.1575 21.9815 2.4405C183.645 20.016 448.779 40.7462 800.046 40.7462C1151.25 40.7462 1416.35 20.023 1578.02 2.4497C1589.82 1.167 1600 11.318 1600 24.319L1600 765.714C1600 776.549 1592.12 786.566 1581.79 787.522C1421.14 802.369 1155.55 820 800.046 820C444.472 820 178.85 802.362 18.2102 787.513C7.8758 786.557 0 776.541 0 765.706L0 24.3097Z');
}

.home-cost-img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-cost-fade {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(147, 68, 84, 0) 39%, rgba(147, 68, 84, 0.85) 50%, #934454 100%);
}

.home-cost-text {
    position: absolute;
    left: 930px;
    top: 163px;
    width: 540px;
}
@media (max-width: 1440px) {
    .home-ba::before {
        top: -150px;
        height: 1250px;
    }
}


.hc-eyebrow {
    font-size: 16px;
    line-height: 17.6px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.hc-heading {
    margin-top: 28px;
    font-size: 40px;
    line-height: 44px;
    font-weight: 400;
}

.hc-heading b {
    font-weight: 600;
}

.hc-desc {
    margin-top: 24px;
    width: 430px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
}

.hc-feats {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 40px;
    max-width: 500px;
}

.hc-feat {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hc-feat-icon {
    flex-shrink: 0;
}

.hc-feat-icon svg {
    width: 40px;
    height: 40px;
    display: block;
}

.hc-feat-label {
    font-size: 16px;
    line-height: 20px;
    font-weight: 600;
}

.hc-feat-label b {
    font-weight: 600;
}

/* Ghost variant — white outline over dark. Hover = subtle white fill. */
.hc-btn {
    margin-top: 44px;
    border-color: var(--white);
    color: var(--white);
    text-decoration: none;
}

.hc-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

body.page-home .doctor {
    margin-top: 30px;
}

/* ── Homepage laptop/tablet responsiveness (built at 1920) ──
   Let the SBS rows shrink proportionally instead of overflowing, and
   re-anchor the absolute cost-panel text once the panel narrows. */
body.page-home .home-sbs {
    gap: clamp(40px, 8vw, 152px);
}
 
body.page-home .home-sbs .sbs-image {
    flex-shrink: 1;
    min-width: 0;
    height: auto;
    aspect-ratio: 744 / 766;
}

body.page-home .home-sbs .sbs-text {
    flex-shrink: 1;
    min-width: 0;
}

@media (max-width: 1493px) {
    body.page-home .home-cost-text {
        left: auto;
        right: 6%;
        width: min(540px, 44%);
    }
}

@media (max-width: 600px) {

    body.page-home .doctor{
            width: 100vw;
            margin-left: calc(-50vw + 50%);
            background: #F4F8F8;
            height: 890px;
            overflow: hidden;
            margin-top: 70px;
            clip-path: none;
            -webkit-mask: url(images/cost-bottom-curve.svg) bottom / 100% 26px no-repeat, linear-gradient(#000 0 0) top / 100% calc(100% - 18px) no-repeat;
        mask: url(images/cost-bottom-curve.svg) bottom / 100% 26px no-repeat, linear-gradient(#000 0 0) top / 100% calc(100% - 18px) no-repeat;
        }
}


/* ── Why choose ── */
.why-choose {
    position: relative;
    margin-top: 150px;
    padding-bottom: 40px;
}

.wc-bg {
    position: absolute;
    left: 50%;
    top: -360px;
    transform: translateX(-50%);
    width: 949px;
    height: auto;
    z-index: -1;
    pointer-events: none;
    pointer-events: none;
}

.wc-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.wc-title {
    font-size: 40px;
    line-height: 44px;
    font-weight: 400;
    color: var(--text);
}

.wc-title b {
    font-weight: 600;
}

.wc-desc {
    margin: 24px auto 0;
    max-width: 884px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: var(--text);
}

.wc-grid {
    margin-top: 79px;
    display: flex;
    justify-content: space-between;
    gap: 32px;
}

.wc-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 200px;
    transition: transform .3s ease;
}

.wc-item:hover {
    transform: translateY(-6px);
}

.wc-icon {
    width: 64px;
    height: 64px;
    transition: transform .3s ease;
}

.wc-item:hover .wc-icon {
    transform: scale(1.1);
}

.wc-label {
    margin-top: 24px;
    font-size: 18px;
    line-height: 27px;
    font-weight: 400;
    color: var(--text);
}

.wc-label b {
    font-weight: 600;
}

/* ── Before & afters (home: 3-up) ── */
.home-ba {
    margin-top: 275px;
}

body.page-home .home-ba+.consult-cta {
    margin-top: 200px;
}

/* ── Inner-page interaction states (hover/focus) — shared across all pages.
   CSS-only; no markup changes. Matches the existing motion language
   (colour shift on the maroon token, arrow nudge, image zoom, subtle fade). ── */

/* FAQ accordion question toggle */
.faq-q {
    cursor: pointer;
}

.faq-q span {
    transition: color 0.2s var(--ease);
}

.faq-q:hover span,
.faq-q:focus-visible span {
    color: var(--maroon);
}

/* Team card "Discover more" link + image zoom */
.team-card-img img {
    transition: transform 0.55s var(--ease);
}

.team-card:hover .team-card-img img,
.team-card:focus-within .team-card-img img {
    transform: scale(1.05);
}

.team-discover svg {
    transition: transform 0.2s var(--ease);
}

.team-discover:hover,
.team-discover:focus-visible {
    opacity: 0.85;
}

.team-discover:hover svg,
.team-discover:focus-visible svg {
    transform: translateX(4px);
}

/* Blog card image zoom (read-more link already animates) */
.blog-card-img img {
    transition: transform 0.55s var(--ease);
}

.blog-card:hover .blog-card-img img,
.blog-card:focus-within .blog-card-img img {
    transform: scale(1.06);
}

/* Find-us "Get directions" row */
.findus-directions {
    transition: color 0.2s var(--ease);
}

.findus-directions:hover,
.findus-directions:focus-visible {
    color: var(--maroon);
}

/* Footer links */
.footer-logo,
.footer-social {
    transition: opacity 0.2s var(--ease);
}

.footer-logo:hover,
.footer-logo:focus-visible,
.footer-social:hover,
.footer-social:focus-visible {
    opacity: 0.7;
}

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

.footer-legal a:hover,
.footer-legal a:focus-visible {
    color: var(--maroon);
}

/* ── Homepage responsive completion (placed last to win source order over
   the desktop cost/why-choose rules above). CSS-only; no markup changes. ── */

/* Tablet gap (601–1024): the cost-panel text column narrows via the
   max-width:1493 re-anchor, but hc-desc kept a fixed 430px width and
   overflowed. Let it fill the narrowed column. */

@media (max-width: 1440px) {
    .home-cost{
            margin-top: 130px;
    }
    .home-cost-panel{
        clip-path: path('M0 22.1751C0 10.3156 8.76 1.05586 18.92 2.22623C158.04 18.2585 386.21 37.1685 688.54 37.1685C990.79 37.1685 1218.91 18.2649 1357.89 2.2346C1368.03 1.06444 1377 10.3242 1377 22.1835L1377 698.481C1377 708.852 1369.89 717.502 1361.08 718.373C1222.72 731.917 994.38 748 688.54 748C382.43 748 153.92 731.911 15.67 718.366C6.78 717.494 0 708.845 0 698.474L0 22.1751Z');
    }
}
@media (max-width: 1370px) {
    .home-cost-panel{
        clip-path: path('M0 22.1751C0 10.3156 8.29 1.05586 17.90 2.22623C149.52 18.2585 365.53 37.1685 651.54 37.1685C937.47 37.1685 1153.31 18.2649 1284.91 2.2346C1294.51 1.06444 1303 10.3242 1303 22.1835L1303 698.481C1303 708.852 1296.57 717.502 1288.20 718.373C1157.73 731.917 940.99 748 651.54 748C361.91 748 145.68 731.911 14.83 718.366C6.41 717.494 0 708.845 0 698.474L0 22.1751Z');
    }
}


@media (max-width: 1024px) {
    body.page-home .hc-desc {
        width: auto;
    }
}

/* Mobile (≤600): rebuild cost panel + why-choose grid to match the mobile
   design (image stacked on top of the maroon block; 2-column feature/why grids). */
@media (max-width: 600px) {

    /* Mobile hero: the desktop 64px title is centred vertically, which on the
     390×495 mobile hero image lands over the family's faces and wraps to four
     lines. The mobile Figma frame puts a smaller 2-line title low in the image
     with the button on the curved bottom. */
    .home-ba {
        margin-top: 120px;
        margin-bottom: 120px;
    }
    .home-ba::before {
        top: -70px;
        background: url(images/curve_mob.svg) center no-repeat;
        background-size: cover;
        height: 840px;
    }

    body.page-home .home-hero-inner {
        justify-content: flex-end;
        padding-bottom: 0;
        transform: translate(-50%, 0px);
    }

    .home-hero-title {
        font-size: 44px;
        line-height: 1.16;
    }

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

    body.page-home .home-ba + .consult-cta {
        margin-top: 70px;
    }

    /* White→transparent gradient behind the title (per the mobile Figma frame): the
     maroon title overlays the lower photo, so it needs a white wash to stay legible.
     Solid white for the bottom ~19% of the hero, fading out by ~54% up. Sits above
     the image (z-index:1) but below the title (.home-hero-inner is z-index:2). */
    body.page-home .home-hero::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 70%;
        background: linear-gradient(to top, #fff 0%, rgba(255, 255, 255, 0.85) 30%, rgba(255, 255, 255, 0) 100%);
        z-index: 1;
        pointer-events: none;
    }

    /* SBS images (Dream Smile + NHS): the mobile Figma frame keeps a shaped mask
     (not plain rounded corners), sized for the 342px mobile column via xs-mask.svg.
     Dream Smile uses the mask as-authored; the following NHS section uses it
     mirrored (xs-mask-flip.svg) for the alternating rhythm in the design. */
    body.page-home .home-sbs .sbs-image {
        -webkit-mask: url(images/xs-mask.svg) center / 100% 100% no-repeat;
        mask: url(images/xs-mask.svg) center / 100% 100% no-repeat;
    }

    body.page-home .home-sbs.sbs--reverse .sbs-image {
        width: 100%;
        margin-left: 0;
        height: 352px;
    }

    body.page-home .home-sbs--nhs .sbs-image {
        -webkit-mask-image: url(images/xs-mask-flip.svg);
        mask-image: url(images/xs-mask-flip.svg);
        height: 352px;
    }

    /* NHS heading keeps its 3 explicit line breaks (per Figma). The generic
     mobile rule hides sbs h2 <br>s, but this markup has no spaces around them,
     so hiding them mashes "leadingprovider"/"ofNHS". Restore the breaks. */
    body.page-home .home-sbs--nhs .sbs-text h2 br {
        display: inline;
    }

    body.page-home .home-sbs--nhs .sbs-text h2 {
        font-size: 32px;
        line-height: 35.2px;
    }

    body.page-home .home-cost {
        margin-top: 59px;
    }

    .home-cost-panel {
        position: relative;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        height: auto;
        clip-path: none;
        border-radius: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
                background: transparent;
        -webkit-mask: url(images/cost-bottom-curve.svg) bottom / 100% 26px no-repeat, linear-gradient(#000 0 0) top / 100% calc(100% - 18px) no-repeat;
        mask: url(images/cost-bottom-curve.svg) bottom / 100% 26px no-repeat, linear-gradient(#000 0 0) top / 100% calc(100% - 18px) no-repeat;
        
    }

    .home-cost-panel picture {
        display: contents;
    }

    .home-cost-img {
        position: static;
        width: 100%;
        height: 700px;
        object-fit: cover;
        object-position: center top;
    }

    .home-cost-fade {
        display: block;
        position: absolute;
        left: 0;
        bottom: 0;
        top: auto;
        width: 100%;
        height: 70%;
        background: linear-gradient(0deg, #934454 0%, #934454 65%, rgba(147, 68, 84, 0.00) 100%);
    }

    body.page-home .home-cost-text {
        position: relative;
        left: auto;
        top: auto;
        right: auto;
        width: auto;
        padding: 0px 24px 80px;
        margin-top: -120px;
    }

    .hc-heading {
        margin-top: 24px;
        font-size: 32px;
        line-height: 35.2px;
    }

    .hc-desc {
        margin-top: 20px;
    }

    .hc-feats {
        margin-top: 32px;
        gap: 24px 20px;
        max-width: none;
    }

    .hc-feat {
        gap: 12px;
    }

    .hc-feat-label {
        font-size: 14px;
        line-height: 18px;
    }

    .hc-btn {
        margin-top: 36px;
    }

    .why-choose {
        margin-top: 64px;
        padding-bottom: 0;
    }

    .wc-bg {
        display: none;
    }

    .wc-title {
        font-size: 32px;
        line-height: 35.2px;
    }

    .wc-desc {
        margin-top: 20px;
    }

    .wc-grid {
        margin-top: 40px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px 24px;
    }

    .wc-item {
        width: auto;
    }

    /* 5th item ("In-person and Virtual Consultations") stays in the left column
     (natural grid flow) to match the mobile Figma frame — not centered full-width. */
}

/* ── Benefits panel + CTA panel: laptop/tablet fit (601–1899). ──
   Both are full-bleed panels with fixed 148px side padding and fixed 408px
   columns that only fit at the 1920 design width (container-wide = 1600). Below
   that the columns (3×408 + gaps = 1304) overflowed the narrowed panel. Shrink
   the side padding and let the columns flex so they stay one row and scale down.
   min-width:601 keeps this clear of the ≤600 mobile stack rules. */
@media (min-width: 601px) and (max-width: 1899px) {

    /* SBS rows: 744 image + 152 gap + 408 text = 1304 only fits at the 1920
     content width. Let both sides shrink; the mask (mask-size:100% 100%) and
     aspect-ratio keep the image proportional as it narrows. */
    .sbs {
        gap: clamp(40px, 8vw, 152px);
    }

    .sbs-image {
        flex-shrink: 1;
        min-width: 0;
        height: auto;
        aspect-ratio: 744 / 766;
    }

    .sbs-text {
        flex-shrink: 1;
        min-width: 0;
    }

    /* Inset hero: 408 text + 744 image row — same shrink treatment.
     .pc-hero-image is the costs-page variant of the same hero row. */
    .hero-inner {
        gap: clamp(32px, 6vw, 152px);
    }
    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero-text {
        flex-shrink: 1;
        min-width: 0;
    }

    .hero-image {
        flex-shrink: 1;
        min-width: 0;
        height: auto;
        aspect-ratio: 744 / 518;
    }

    .pc-hero-image {
        flex-shrink: 1;
        min-width: 0;
        height: auto;
        aspect-ratio: 744 / 517;
    }

    .rv-hero-image {
        flex-shrink: 1;
        min-width: 0;
        height: auto;
        aspect-ratio: 744 / 517;
    }

    .benefits-inner {
        padding-left: clamp(24px, 5vw, 148px);
        padding-right: clamp(24px, 5vw, 148px);
    }

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

    .cta-panel {
        height: auto;
        padding-left: clamp(24px, 5vw, 148px);
        padding-right: clamp(24px, 5vw, 148px);
        padding-bottom: clamp(80px, 8vw, 120px);
    }

    .cta-cols>.cta-col,
    .cta-paras>.cta-para,
    .ed-cols>.ed-col,
    .ed-paras>.ed-para {
        flex: 1 1 0;
        min-width: 0;
    }
}



@media (max-width: 600px) {
    .footer {
        position: relative;
        height: 247px;
        margin-top: 64px;
        /* padding-bottom: 100px; */
        margin-bottom: 70px;
    }
}


/* Information Leaflets page — feedback (2026-09-23): merge "Information
   Leaflets" (8 cards) and "Care Instructions" (3 cards) into ONE burgundy
   section instead of two separate blocks with a white gap. clip-path uses
   fixed pixel coordinates that do NOT stretch with min-height, so the curve
   must be re-shaped to cover both card grids + the second heading block.
   This modifier keeps the same top/bottom wave shape but shifts the bottom
   curve down ~750px (delta). Scoped so other .benefits pages (single-row,
   760px design) are unaffected.

   CTA alignment: cards become flex columns so the button sits at
   margin-top: auto, i.e. the bottom of the card — buttons line up across a
   row even when a description wraps to 3 lines. align-items: stretch on the
   grid (overriding the shared .benefits-grid's align-items: start) makes
   every card in a row the same height so "bottom of card" is also "bottom
   of row". */
.benefits--leaflets {
    min-height: 1700px;
    clip-path: path('M0 22.1751C0 10.3156 10.18 1.05586 21.9815 2.22623C183.645 18.2585 448.779 37.1685 800.046 37.1685C1151.25 37.1685 1416.35 18.2649 1578.02 2.2346C1589.82 1.06444 1600 10.3242 1600 22.1835L1600 1650C1600 1660 1592.12 1669 1581.79 1670C1421.14 1689 1155.55 1705 800.046 1705C444.472 1705 178.85 1689 18.2102 1670C7.8758 1669 0 1660 0 1650L0 22.1751Z');
}

.benefits--leaflets .benefits-inner {
    padding-bottom: 70px;
}

.benefits--leaflets .benefit h3 {
    margin-top: 16px;
}

.benefits--leaflets .benefit p {
    margin-bottom: 20px;
}

.benefits--leaflets .benefits-grid {
    align-items: stretch;
}

.benefits--leaflets .benefit {
    display: flex;
    flex-direction: column;
}

.benefits--leaflets .benefit .tr-btn {
    margin-top: auto;
    align-self: flex-start;
}

.benefits--leaflets .benefits-header--second {
    margin-top: 64px;
}

@media (max-width: 1440px) {
    .benefits--leaflets {
        clip-path: path('M0 22.1751C0 10.3156 8.76 1.05586 18.92 2.22623C158.04 18.2585 386.21 37.1685 688.54 37.1685C990.79 37.1685 1218.91 18.2649 1357.89 2.2346C1368.03 1.06444 1377 10.3242 1377 22.1835L1377 1675C1377 1685 1369.89 1694 1361.08 1695C1222.72 1709 994.38 1725 688.54 1725C382.43 1725 153.92 1709 15.67 1695C6.78 1694 0 1685 0 1675L0 22.1751Z');
    }
}

@media (max-width: 1370px) {
    .benefits--leaflets {
        clip-path: path('M0 22.1751C0 10.3156 8.29 1.05586 17.90 2.22623C149.52 18.2585 365.53 37.1685 651.54 37.1685C937.47 37.1685 1153.31 18.2649 1284.91 2.2346C1294.51 1.06444 1303 10.3242 1303 22.1835L1303 1865C1303 1875 1296.57 1884 1288.20 1885C1157.73 1899 940.99 1910 651.54 1910C361.91 1910 145.68 1899 14.83 1885C6.41 1884 0 1875 0 1865L0 22.1751Z');
    }
}

@media (max-width: 600px) {
    .benefits--leaflets {
        min-height: 0;
        clip-path: none;
    }

    .benefits--leaflets .benefits-inner {
        padding-bottom: 80px;
    }

    .benefits--leaflets .benefit {
        display: block;
    }

    /* The homepage USP cards reorder on mobile via global
       `.benefits-grid .benefit:nth-child(n){order}` rules; that selector leaks
       onto this leaflet grid and scrambles it. Reset to source order so the
       Practice Brochure stays first. */
    .benefits--leaflets .benefits-grid .benefit {
        order: 0;
    }

    .benefits--leaflets .benefit .tr-btn {
        margin-top: 24px;
    }
}
