/* ============================================================
   Lincoln Orthodontics — shared styles
   Tokens sourced from the brand design guide.
   ============================================================ */

:root {
    /* Brand */
    --teal: #3c8b90;
    --c1: #3c8b90;
    --teal-light: #5fa6aa;
    --c2: #5fa6aa;
    --gradient-start: #80b9bc;
    --gold: #e9ad2d;
    --gold-hover: #d49a1f;
    --dark: #161616;
    --text: #333333;
    --white: #ffffff;
    --form-error: #d64545;
    --inactive: #a6a6a6;


    /* Background tints */
    --tint-1: #f5f5f5;
    --tint-2: #f8fbfc;
    --tint-3: #f4f9fa;
    --tint-4: #f5fafb;
    --tint-5: #edf6f7;
    --tint-6: #d8ebec;
    --line: #e0e0e0;

    /* Gradients */
    --grad-teal: linear-gradient(180deg, #80b9bc, #3c8b90);
    --grad-tint: linear-gradient(180deg, #f8fbfc, #f4f9fa);

    /* Type */
    --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

    /* Radius */
    --r-cta: 2px;
    --r-outline: 4px;
    --r-tab: 8px;
    --r-card: 24px;

    /* Shadow */
    --shadow-header: 0 2px 16px rgba(0, 0, 0, 0.08);
    --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-soft: 0 3px 14px rgba(0, 0, 0, 0.05);

    /* Layout */
    --content: 1304px;
    --panel: 1620px;
    --gutter: 40px;

    /* Chrome heights */
    --utility-h: 44px;
    --header-h: 96px;

    /* Motion */
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}

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

img {
    height: auto;
}

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

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

ul,
ol {
    list-style: none;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 9999;
    background: var(--teal);
    color: #fff;
    padding: 12px 18px;
    border-radius: 0 0 6px 0;
}

.skip-link:focus {
    left: 0;
}

/* ---------- Layout helpers ---------- */
.container {
    width: min(100% - 2 * var(--gutter), var(--content));
    margin-inline: auto;
}

.panel {
    width: min(100% - 2 * var(--gutter), var(--panel));
    margin-inline: auto;
}

.section {
    padding-block: clamp(48px, 6vw, 96px);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Typography ---------- */
h1 {
    font-size: 48px;
    line-height: 1.1;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font);
    font-weight: 700;
    line-height: 1.1;
    color: var(--dark);
}

.h-hero {
    font-size: clamp(34px, 4vw, 48px);
    letter-spacing: -0.02em;
}

.h-section {
    font-size: clamp(28px, 2.8vw, 40px);
    letter-spacing: -0.02em;
}

.h-card {
    font-size: clamp(24px, 2vw, 32px);
}

.h-sub {
    font-size: clamp(20px, 1.6vw, 24px);
}

.teal {
    color: var(--teal);
}

.eyebrow {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal);
}

p {
    margin-bottom: 2em;
}

p:last-child {
    margin-bottom: 0;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    text-align: center;
    padding: 16px 28px;
    border-radius: var(--r-cta);
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
        transform 0.15s var(--ease), box-shadow 0.2s var(--ease);
}

.btn-primary {
    background: var(--gold);
    color: #fff;
}

.btn-primary:hover,
.btn-primary.is-hover {
    background: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(233, 173, 45, .35);
}

.btn-primary:active,
.btn-primary.is-active {
    transform: translateY(0);
    background: var(--gold-hover);
}

.btn-primary:focus-visible,
.btn-primary.is-focus {
    outline: 3px solid rgba(60, 139, 144, .5);
    outline-offset: 2px;
}

.btn-outline {
    background: transparent;
    color: var(--teal);
    border: 1.5px solid var(--teal);
    border-radius: var(--r-outline);
    padding: 11px 13px;
}

.btn-outline:hover,
.btn-outline.is-hover {
    background: var(--teal);
    color: #fff;
}

.btn-outline:active,
.btn-outline.is-active {
    background: var(--teal-light);
    color: #fff;
}

.btn-outline:focus-visible,
.btn-outline.is-focus {
    outline: 3px solid rgba(60, 139, 144, .5);
    outline-offset: 2px;
}

.btn[disabled],
.btn.is-disabled {
    background: var(--inactive);
    color: #fff;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    border-color: var(--inactive);
}

/* On-dark / inverse button (brand panels) */
.btn--inverse {
    background: #fff;
    color: var(--teal);
}

.btn--inverse:hover,
.btn--inverse.is-hover {
    background: var(--gold);
    color: #fff;
    transform: translateY(-2px);
}

/* ============================================================
   UTILITY BAR
   ============================================================ */
/* Utility row (LANGUAGE / REFERRALS / phones) — sits above nav on the right */
.utility-bar {
    display: flex;
    align-items: flex-end;
    gap: 40px;
    color: var(--text);
}

.utility-bar>a,
.utility-bar .util-phone {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.14px;
    color: var(--text);
    line-height: 1.3;
}

.utility-bar a:hover {
    color: var(--teal);
}

.util-phone {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    line-height: 1.25;
}

.util-phone .label {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: -4px;
    align-self: flex-start;
    margin-left: 19px;
}

.util-phone .num {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.14px;
}

.utility-bar .ic {
    width: 14px;
    height: 14px;
    color: var(--teal-light);
    flex: 0 0 auto;
}

.util-lang-btn {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
    color: var(--text);
}

@media (max-width: 767px) {
    .util-lang-btn {
        font-size: 12px;
    }
}

/* ============================================================
   HEADER + DESKTOP NAV
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    transition: box-shadow 0.3s var(--ease);
}

.site-header.scrolled {
    box-shadow: var(--shadow-header);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding-block: 64px 40px;
    transition: padding-block 0.3s var(--ease);
}

.site-header.scrolled .container {
    padding-block: 21px;
}
.site-header.scrolled .brand img, .brand svg {
    height: 100px; 
}

@media (max-width: 600px) {
    .site-header.scrolled .container {
        padding-block: 0 0px;
    }
}

.brand {
    flex: 0 0 auto;
}

.brand img,
.brand svg {
    height: 152px;
    width: auto;
    display: block;
    transition: cubic-bezier(0.075, 0.82, 0.165, 1) 0.6s;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 28px;
}

.nav-row {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: -0.16px;
    color: var(--text);
    padding: 4px 0;
    transition: color 0.2s var(--ease);
}

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

.nav-link.active {
    color: var(--teal);
}

.nav-link .caret {
    width: 11px;
    height: 8px;
    fill: none;
    stroke: var(--teal-light);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s var(--ease);
}

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

/* Dropdown / mega menu */
.dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 240px;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
    z-index: 120;
}

.nav-item:hover .dropdown,
.nav-item.open .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
}

.dropdown a:hover {
    background: var(--tint-5);
    color: var(--teal);
}

.header-cta {
    padding: 12px 16px;
}

/* Mobile header controls (hidden on desktop) */
.mobile-actions {
    display: none;
    align-items: center;
    gap: 14px;
}

/* Call Us is the secondary action (outline); Book Now is the primary (filled).
   Shared box metrics + border-box so both buttons are exactly the same size. */
.call-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--teal);
    border: 2px solid var(--teal);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.2;
    padding: 10px 16px;
    border-radius: var(--r-cta);
    box-sizing: border-box;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: inherit;
}

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

/* Mobile "Book Now" CTA (primary) sitting before Call Us in the top bar.
   Matches .call-btn's box exactly so the two buttons are the same size. */
.book-btn {
    display: inline-flex;
    align-items: center;
    background: var(--gold);
    color: #fff;
    border: 2px solid var(--gold);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.2;
    padding: 10px 16px;
    border-radius: var(--r-cta);
    box-sizing: border-box;
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
}

.call-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(30, 60, 63, 0.18);
    padding: 0px;
    min-width: 170px;
    z-index: 200;
    flex-direction: column;
    gap: 0px;
}

.call-dropdown.open {
    display: flex;
}

.call-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    transition: background 0.15s var(--ease);
}

.call-dropdown a:hover {
    background: rgba(60, 139, 144, 0.08);
}

.call-dropdown .ic {
    color: var(--teal);
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

.call-dropdown span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.call-drop-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-muted, #888);
    text-transform: uppercase;
}

.call-drop-num {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.3px;
}

.hamburger {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    padding: 6px;
    width: 44px;
}

.hamburger span {
    width: 32px;
    height: 2px;
    background: var(--teal);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

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

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

.hamburger.is-open span {
    width: 28px;
}

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

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

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

/* ============================================================
   MOBILE MENU OVERLAY
   ============================================================ */
#mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: var(--white);
    padding: 24px var(--gutter) 60px;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
}

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

.mm-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 14px;
}

.mm-close {
    color: var(--teal);
    padding: 6px;
}

.mm-close svg {
    width: 28px;
    height: 28px;
}

.mobile-menu-item {
    border-bottom: 1px solid #3c8b902b;
}

.mobile-menu-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.mobile-menu-link {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 12px;
    padding: 17px 0;
    font-size: 20px;
    font-weight: 400;
    color: var(--text);
    letter-spacing: -0.4px;
}

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

/* Free Consultation as a stand-out CTA at the bottom of the burger menu. */
.mobile-menu-item--cta {
    border-bottom: 0;
    margin-top: 20px;
}

.mobile-menu-cta {
    display: block;
    background: var(--gold);
    color: #fff;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.2px;
    padding: 16px 20px;
    border-radius: var(--r-cta);
    text-decoration: none;
}

.mobile-caret-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 17px 0 17px 16px;
    background: none;
    border: 0;
    cursor: pointer;
}

.mobile-caret-btn .caret {
    width: 14px;
    height: 12px;
    fill: none;
    stroke: var(--teal);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s var(--ease);
}

.mobile-menu-item.open .mobile-caret-btn .caret {
    transform: rotate(180deg);
}

.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
}

.mobile-menu-item.open>.mobile-submenu {
    max-height: 500px;
}

.mobile-submenu a {
    display: block;
    padding: 7px 0 7px 26px;
    font-size: 18px;
    color: var(--text);
}

.mobile-submenu a:last-child {
    padding-bottom: 18px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.cta-band {
    background: var(--grad-teal);
    color: #fff;
    text-align: center;
}

.cta-band .h-section {
    color: #fff;
    margin-bottom: 20px;
}

.cta-band p {
    color: rgba(255, 255, 255, .9);
    max-width: 620px;
    margin: 0 auto 28px;
}

.footer-visit {
    /* padding-block: 120px; */
}

.footer-visit .panel {
    display: grid;
    grid-template-columns: 1fr 790px;
    gap: 60px;
    align-items: center;
    aspect-ratio: 1620 / 800;
}

.footer-visit h2 {
    margin-bottom: 20px;
    font-weight: 500;
}

.visit-intro {
    max-width: 420px;
    margin-bottom: 28px;
}

.footer-visit .map_details {
    margin-left: 160px;
}


.visit-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.visit-row {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 14px;
    align-items: start;
}

@media (max-width: 768px) {
    .visit-row {
        display: grid;
        grid-template-columns: 24px 1fr;
        gap: 4px;
        align-items: start;
    }
}

.visit-row .ic {
    color: var(--teal);
    margin-top: 6px;
}

.footer-visit .visit-row .ic {
    width: auto;
    height: auto;
}

.visit-row .label {
    display: block;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
    letter-spacing: -0.24px;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 4px;
}

.visit-row>div {
    line-height: 1.5;
}

.visit-row a:hover {
    color: var(--teal);
}

.hours-grid {
    display: grid;
    grid-template-columns: auto auto;
    gap: 6px 0px;
    max-width: 360px;
}

.footer-map {
    width: 790px;
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.footer-map .map-marker {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: auto;
    transform: translate(-50%, -100%);
    z-index: 2;
    pointer-events: none;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
}

.footer-map iframe {
    width: 790px;
    max-width: 100%;
    height: 100%;
    min-height: 800px;
    border: 0;
    display: block;
}

@media (max-width: 1440px) {
    .nav-link {
        display: inline-flex;
        align-items: center;
        gap: 3px;
        font-weight: 500;
        font-size: 15px;
    }
}

@media (max-width: 1440px) {
    .footer-visit .map_details {
        margin-left: 25px;
    }
    .footer-visit .panel {
        grid-template-columns: 1fr 720px;
    }
    .footer-map iframe {
        min-height: 700px;
            width: 700px;
    }
    .footer-map {
        width: 700px;
    }
}

@media (max-width: 600px) {
    .footer-visit {
        padding-block: 0px;
    }

    .footer-visit .map_details {
        margin-left: 0px;
    }

    .footer-visit .panel {
        display: flex;
        flex-direction: column;
    }
}

.footer-bottom {
    border-top: 0px solid var(--line);
    padding-bottom: 60px;
    padding-top: 120px;
}

.footer-bottom .container {
    padding-block: 0px;
}

@media (max-width: 768px) {
    .footer-bottom {
        padding-bottom: 80px;
        padding-top: 70px;
    }
}

.footer-brandrow {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 30px;
}

.footer-brandrow .tio-logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.footer-brandrow .tio-logo img {
    display: block;
}

.tio-logo-mobile {
    display: none;
}

.social {
    display: flex;
    align-items: center;
    gap: 30px;
}

.social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--teal);
    transition: color .2s var(--ease);
}

.social a:hover {
    color: var(--teal);
}

.social svg {
    height: 24px;
}

.legal {
    font-size: 13px;
    line-height: 1.6;
    border-top: 1px solid var(--teal);
    padding-top: 26px;
}

.copyright {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 22px;
    font-size: 14px;
    letter-spacing: .04em;
    color: var(--text);
    text-transform: uppercase;
}

.copyright .sep {
    color: var(--inactive);
    margin: 0 10px;
}

.copyright a:hover {
    color: var(--teal);
}

/* ============================================================
   INSET PAGE — SECTIONS
   ============================================================ */
.ins-sec {
    margin-bottom: 120px;
}

.ins-sec:first-child {
    margin-top: 0;
}

.ins-sec.benefits {
    margin-top: 240px;
}

.ins-sec.faq {
    margin-top: 182px;
}

.ins-sec.faq:has(.bg-panel) {
    margin-top: 120px;
}

/* Section titles / labels */
.col-title {
    font-size: clamp(26px, 2.4vw, 32px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--teal);
}

.section-title {
    font-size: 40px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--teal);
}

.card-eyebrow {
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    text-transform: uppercase;
    color: var(--teal-light);
}

/* "Discover / read more" text link with arrow */
.link-more {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 16px;
    color: var(--teal);
}

.link-more .arrow {
    width: 12px;
    height: 1.5px;
    background: currentColor;
    position: relative;
    transition: width 0.2s var(--ease);
}

.link-more .arrow::after {
    content: "";
    position: absolute;
    right: 0;
    top: 2.5px;
    width: 6px;
    height: 6px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: translateY(-50%) rotate(45deg);
    transform-origin: right center;
}

.link-more:hover .arrow {
    width: 22px;
}

/* Panels (full-bleed tinted, radius 24) */
.bg-panel {
    background: var(--grad-tint);
    border-radius: var(--r-card);
    padding-block: clamp(56px, 8vw, 120px);
}

/* Side-by-side */
.sbs-grid {
    display: grid;
    align-items: center;
}

.sbs .sbs-grid {
    grid-template-columns: 408px minmax(0, 1fr);
    gap: 152px;
}

.sbs--media-left .sbs-grid {
    grid-template-columns: 744px 408px;
    gap: 152px;
    justify-content: start;
}

.sbs-grid--panel {
    grid-template-columns: 408px 632px;
    gap: 264px;
}

.sbs-text .col-title {
    margin-bottom: 24px;
}

.sbs-media {
    position: relative;
}

.sbs-media img {
    width: 100%;
    border-radius: var(--r-card);
    object-fit: cover;
}

.sbs-media--wide img {
    aspect-ratio: 744 / 524;
}

.sbs-media--square img {
    aspect-ratio: 1 / 1;
}

/* Inset (content-width) panel with bleed image */
.bg-panel--inset {
    background: var(--grad-tint);
    border-radius: var(--r-card);
    padding: clamp(48px, 6vw, 96px) clamp(40px, 6vw, 104px);
}

.sbs-grid--inset {
    display: grid;
    grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
    gap: clamp(48px, 8vw, 128px);
    align-items: center;
}

.sbs-media--bleed img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--r-card);
    aspect-ratio: 1 / 1;
}

@media (max-width: 1440px) {
        .sbs--media-left .sbs-grid {
            grid-template-columns: 711px 408px;
            gap: 130px;
        }
}


/* Benefits */
.benefits-head {
    max-width: 968px;
    margin-bottom: 64px;
}

.benefits-head .col-title {
    margin-bottom: 24px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 40px;
    row-gap: 48px;
}

.benefit h3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--teal);
    margin-bottom: 4px;
}

.benefit p {
    font-size: 16px;
}

/* Video */
.video-block {
    display: block;
    width: 100%;
    position: relative;
    border-radius: var(--r-card);
    overflow: hidden;
    aspect-ratio: 1620 / 831;
}

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

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(60, 139, 144, 0.55);
}

.video-cta {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.play-circle {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: var(--teal);
    display: grid;
    place-items: center;
    transition: transform 0.25s var(--ease);
}

.play-circle svg {
    width: 40px;
    height: 40px;
    color: #fff;
    margin-left: 4px;
}

@media (max-width: 768px) {
    .play-circle {
        width: 72px;
        height: 72px;
    }
}

.play-label {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.02em;
    color: #dbecf0;
}

.video-block:hover .play-circle {
    transform: scale(1.08);
}

/* FAQ */
.faq-title {
    margin-bottom: 64px;
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    text-align: left;
    padding: 48px 0;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--teal);
}

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

.faq-item.open .faq-q {
    padding-bottom: 24px;
}

.faq-caret {
    width: 16px;
    height: 8px;
    flex: 0 0 auto;
    color: var(--teal);
    transition: transform 0.3s var(--ease);
}

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

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
}

.faq-item.open .faq-a {
    max-height: 400px;
}

.faq-a p {
    padding-bottom: 24px;
    max-width: 1080px;
}

/* Section header (carousels) */
.sec-head {
    max-width: 825px;
    margin-bottom: 64px;
}

.sec-head .section-title {
    margin-bottom: 15px;
}

.sec-head .card-eyebrow {
    margin-bottom: 26px;
}

/* Card carousels */
.card-track {
    display: grid;
    gap: 40px;
}

.card-track.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.card-track.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.tcard {
    border-radius: var(--r-card);
    overflow: hidden;
    background: linear-gradient(180deg, rgba(247, 251, 251, .95), #f4f9fa);
    box-shadow: var(--shadow-soft);
}

.tcard-media {
    position: relative;
    aspect-ratio: 408 / 364;
}

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

.tcard-body {
    padding: 40px;
}

.tcard-body .card-eyebrow {
    margin-bottom: 24px;
}

.card-benefit {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--teal);
    margin-bottom: 24px;
}

.tcard-body p {
    margin-bottom: 28px;
}

.blog-card .tcard-media {
    aspect-ratio: 632 / 414;
}

.blog-date {
    display: block;
    font-weight: 700;
    font-size: 16px;
    color: var(--text);
    margin-bottom: 24px;
}

.blog-card .tcard-body {
    padding: 56px 64px;
}

.team-card .tcard-body {
    padding: 48px 40px;
}

.team-name {
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--teal);
    margin-bottom: 8px;
}

.team-role {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    text-transform: uppercase;
    color: var(--teal-light);
    margin-bottom: 16px;
}

.team-quals {
    margin-bottom: 24px;
}

.carousel-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 64px;
}

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

.cnav {
    width: 40px;
    height: 40px;
    border: 2px solid var(--teal);
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: var(--teal);
    transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.cnav svg {
    width: 8px;
    height: 14px;
}

.cnav:hover {
    background: var(--teal);
    color: #fff;
    border-color: var(--teal);
}

.cnav[disabled] {
    opacity: .3;
    cursor: default;
    pointer-events: none;
}

/* Functional carousel: arrows scroll the track (applied by main.js) */
.card-track.is-carousel {
    display: flex;
    gap: 40px;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-block: 10px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.card-track.is-carousel::-webkit-scrollbar {
    display: none;
}

.card-track.is-carousel {
    cursor: grab;
}

.card-track.is-carousel.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto;
    user-select: none;
}

.card-track.is-carousel img {
    -webkit-user-drag: none;
    user-select: none;
}

.card-track.is-carousel>* {
    flex: 0 0 calc((100% - 80px) / 3);
    scroll-snap-align: start;
}

.card-track.is-carousel.cols-2>* {
    flex: 0 0 calc((100% - 40px) / 2);
}

/* Meet the doctor */
.bg-doctor {
    position: relative;
    border-radius: var(--r-card);
    overflow: hidden;
    background: var(--tint-1);
}

.doctor-grid {
    display: grid;
    grid-template-columns: 1fr 600px;
    align-items: center;
    min-height: 800px;
}

.doctor-media {
    position: absolute;
    inset: 0 auto 0 0;
    width: 50%;
    height: 100%;
}

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

.doctor-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(245, 245, 245, 0) 78%, var(--tint-1) 100%);
}

.doctor-text {
    grid-column: 2;
    position: relative;
    z-index: 1;
    padding: 0px 140px 0px 0;
}

.doctor-text .card-eyebrow {
    margin-bottom: 24px;
}

.doctor-text .section-title {
    margin-bottom: 24px;
}

.doctor-text p {
    margin-bottom: 32px;
}

/* Before & afters */
.ba-inner .sec-head {
    margin-bottom: 48px;
}

.ba-track {
    align-items: start;
}

/* Before & Afters slider (transform-based, driven by BaCarousel.tsx) */
.ba-viewport {
    overflow: hidden;
}

.ba-slider-track {
    display: flex;
    gap: 40px;
    align-items: start;
    transition: transform 0.45s var(--ease);
    will-change: transform;
    cursor: grab;
}

.ba-slider-track.is-dragging {
    transition: none;
    cursor: grabbing;
    user-select: none;
}

.ba-slider-track>* {
    flex: 0 0 calc((100% - 40px) / 2);
}

.ba-slider-track img {
    -webkit-user-drag: none;
    user-select: none;
}

.ba-card {}

.ba-media {
    display: grid;
    grid-template-columns: 1fr 185px;
    gap: 40px;
    margin-bottom: 40px;
}

.ba-compare {
    position: relative;
    border-radius: var(--r-tab);
    overflow: hidden;
    aspect-ratio: 408 / 209;
    box-shadow: var(--shadow-card);
}

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

.ba-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #fff;
}

.ba-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 26px;
    border-radius: var(--r-outline);
    background: var(--teal);
}

.ba-thumbs {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
}

.ba-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--r-tab);
}

.ba-name {
    color: var(--teal);
    margin-bottom: 0;
}

/* Text blocks */
.text-sec-title {
    max-width: 856px;
    margin-bottom: 48px;
}

.text-two-col {
    display: grid;
    grid-template-columns: 520px 520px;
    gap: 40px;
    justify-content: start;
    margin-bottom: 72px;
}

.text-three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 72px;
}

.mini-title {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--teal);
    margin-bottom: 24px;
}

.text-long {
    max-width: 968px;
}

/* Reviews */
.review-card {
    border-radius: var(--r-card);
    background: var(--grad-tint);
    padding: 59px 64px;
}

.review-quote {
    display: block;
    width: 112px;
    height: auto;
    margin-bottom: -26px;
    position: relative;
    z-index: 1;
}

.review-text {
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.review-cite {
    display: block;
    font-style: normal;
    color: var(--teal);
}

/* Horizontal full-width testimonial (NHS braces page, BugHerd #186): same
   review-card look as /smile-gallery/testimonials, laid out as a wide band
   with the quote mark to the left and the text to the right. */
.nhs-review {
    margin-top: clamp(48px, 6vw, 96px);
    /* clean gap below the bordered card; the next tinted band's -200px pull-up
       is neutralised in design-fixes.css so it no longer covers the border. */
    margin-bottom: clamp(56px, 6vw, 88px);
}

.review-card--wide {
    display: flex;
    gap: clamp(28px, 4vw, 64px);
    align-items: flex-start;
    /* dark-teal border so it clearly reads as a testimonial (BugHerd #191) */
    border: 2px solid #2d6a6e;
}

.review-card--wide .review-quote {
    flex: 0 0 auto;
    width: clamp(64px, 7vw, 104px);
    margin-bottom: 0;
}

.review-card--wide-body {
    flex: 1 1 auto;
}

.review-card--wide .review-text {
    margin-bottom: 14px;
    /* Distinguish the quote from body copy (BugHerd #191): deep-teal italic so
       it clearly reads as a testimonial. */
    color: #2d6a6e;
    font-style: italic;
}

/* Attribution sits at the top of the testimonial (BugHerd #191). */
.review-card--wide .review-cite {
    margin: 0 0 18px;
    font-weight: 700;
    font-size: 18px;
}

/* Read-more for the long testimonial (BugHerd #191): first two paragraphs
   show; the rest expand in place, above the toggle. Checkbox-hack so it needs
   no client JS. */
.review-toggle-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.review-extra {
    display: none;
}

.review-toggle-input:checked ~ .review-extra {
    display: block;
}

.review-more-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 6px;
    width: fit-content;
    color: var(--teal);
    font-weight: 600;
    cursor: pointer;
}

.review-more-toggle::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -3px;
    transition: transform 0.2s ease;
}

.review-toggle-input:checked ~ .review-more-toggle::after {
    transform: rotate(-135deg);
    margin-top: 2px;
}

.review-more-toggle:hover {
    text-decoration: underline;
}

/* keyboard focus on the hidden checkbox should still show on the label */
.review-toggle-input:focus-visible ~ .review-more-toggle {
    outline: 2px solid var(--teal);
    outline-offset: 3px;
}

.review-less-label {
    display: none;
}

.review-toggle-input:checked ~ .review-more-toggle .review-more-label {
    display: none;
}

.review-toggle-input:checked ~ .review-more-toggle .review-less-label {
    display: inline;
}

@media (max-width: 768px) {
    .review-card--wide {
        flex-direction: column;
        gap: 8px;
    }

    .review-card--wide .review-quote {
        width: 64px;
    }
}

/* CTA blocks */
.cta-block {
    display: grid;
    grid-template-columns: 790px 408px;
    gap: 152px;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 1440px) {
    .cta-block {
        grid-template-columns: 700px 408px;
        gap: 150px;
    }
}

.cta-media {
    position: relative;
}

.cta-media img {
    width: 100%;
    border-radius: var(--r-card);
    object-fit: cover;
    aspect-ratio: 790 / 800;
}

.cta-text .card-eyebrow {
    margin-bottom: 24px;
}

.cta-text .section-title {
    margin-bottom: 24px;
}

.cta-text p {
    margin-bottom: 32px;
}

.cta-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 8px;
}

.cta-form .field {
    display: block;
    position: relative;
}

.cta-form input,
.cta-form textarea {
    width: 100%;
    padding: 15px 16px;
    font-family: inherit;
    font-size: 16px;
    color: var(--text);
    border: 1px solid var(--dark);
    border-radius: var(--r-outline);
    background: #fff;
}

.cta-form input::placeholder {
    color: var(--text);
}

.cta-form input:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 1px;
    border-color: var(--teal);
}

/* Floating field label — sits over the border, animates up on focus/fill */
.cta-form .field-label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    line-height: 1;
    color: var(--text);
    background: transparent;
    padding: 0 4px;
    pointer-events: none;
    transform-origin: left center;
    transition: top 0.15s ease, transform 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.cta-form textarea ~ .field-label {
    top: 24px;
}

.cta-form input:focus + .field-label,
.cta-form input:not(:placeholder-shown) + .field-label,
.cta-form textarea:focus + .field-label,
.cta-form textarea:not(:placeholder-shown) + .field-label {
    top: 0;
    transform: translateY(-50%) scale(0.85);
    color: var(--teal);
    background: #fff;
}

.cta-form .btn {
    align-self: flex-start;
    margin-top: 8px;
}

/* Form validation (submit adds .was-validated → :invalid styling + messages) */
.cta-form .invalid-feedback,
.rf-form .invalid-feedback {
    display: none;
    margin-top: 6px;
    color: var(--form-error);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.35;
}

.cta-form.was-validated input:invalid,
.rf-form.was-validated .rf-field input:invalid,
.rf-form.was-validated .rf-field select:invalid,
.rf-form.was-validated .rf-field textarea:invalid {
    border-color: var(--form-error) !important;
}

.cta-form.was-validated input:invalid:focus-visible,
.rf-form.was-validated input:invalid:focus-visible {
    outline-color: var(--form-error);
}

.cta-form.was-validated input:invalid~.invalid-feedback,
.rf-form.was-validated input:invalid~.invalid-feedback,
.rf-form.was-validated textarea:invalid~.invalid-feedback {
    display: block;
}

/* ============================================================
   HOMEPAGE — SECTIONS
   ============================================================ */

.home_ctas,
.hfeature,
.why-sec,
.ortho_tabs {
    margin-top: 120px;
}

.why-sec {
    margin-top: 160px;
}

.page-home .home_doctor {
    margin-top: 130px;
}

.page-home .ins-sec:has(.ba-inner) {
    margin-top: 120px;
}

/* 1 · Hero — full-bleed photo panel with left scrim */
.hero-panel {
    position: relative;
    border-radius: var(--r-card);
    overflow: hidden;
    aspect-ratio: 1620 / 720;
}

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

.hero-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(248, 251, 252, .97) 0%, rgba(248, 251, 252, .9) 26%, rgba(248, 251, 252, .45) 44%, rgba(248, 251, 252, 0) 60%);
}

/* Awards marquee (BugHerd #189) — thin auto-scrolling strip of award logos
   under the hero. The track holds two copies of the logo set; translating it
   by -50% and looping gives a seamless scroll. Per-logo margin (not flex gap)
   keeps the two halves exactly equal so the loop doesn't jump. */
.awards-strip {
    overflow: hidden;
    /* Keep the marquee within the page margins (same width as the hero/panel)
       so it clips at the content edges instead of running the full viewport. */
    width: min(100% - 2 * var(--gutter), var(--panel));
    margin-inline: auto;
    /* breathing room so the hero's rounded bottom and the next section's
       curved top both show, rather than the strip looking plonked on */
    margin-top: clamp(40px, 5vw, 72px);
    margin-bottom: clamp(24px, 3vw, 44px);
    padding-block: 8px;
}

.awards-track {
    display: flex;
    align-items: center;
    width: max-content;
    /* wider spacing so one full set spans the viewport — you only ever see a
       single instance of each logo at a time. Duration scaled up to keep the
       same scroll speed as before. */
    animation: awards-scroll 80s linear infinite;
}

.awards-logo {
    /* Larger so they're legible, especially on mobile (BugHerd #192). */
    height: 110px;
    width: auto;
    flex: 0 0 auto;
    margin-right: clamp(64px, 13vw, 200px);
}

/* Shield-shaped badges (Aesthetic / Clinical Dentistry) pack more text into a
   small footprint, so render them larger than the wordmark logos to keep them
   readable on desktop (BugHerd follow-up to #192). */
.awards-logo--badge {
    height: 140px;
}

.awards-strip:hover .awards-track {
    animation-play-state: paused;
}

@keyframes awards-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .awards-logo {
        height: 64px;
        margin-right: 40px;
    }
    .awards-logo--badge {
        height: 86px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .awards-track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        width: auto;
        gap: 28px 48px;
    }
    .awards-logo { margin-right: 0; }
}

/* 20th-anniversary sticker (BugHerd #190 explore) — sits top-right over the
   clear side of the hero image. */
.hero-anniversary {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 150px;
    height: auto;
    z-index: 3;
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.18));
}

@media (max-width: 768px) {
    .hero-anniversary {
        width: 96px;
        top: 14px;
        right: 14px;
    }
}

.hero-inner {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 720px;
    /* Left padding = the .container inset from the panel edge, so hero copy
       aligns with the logo / nav left edge. panel = 100vw - 2*gutter (until the
       1620 cap): inset = (panelW - content)/2 = 50vw - (gutter + content/2).
       gutter 40 + content/2 652 = 692; capped at (1620-1304)/2 = 158. */
    padding: 40px clamp(40px, 8vw, 155px) 40px clamp(0px, calc(50vw - 692px), 158px);
}

.hero-heading {
    font-size: 48px;
    line-height: 1.1;
    letter-spacing: -1.44px;
    margin-bottom: 28px;
    white-space: nowrap;
}

.hero-pre {
    display: block;
    color: var(--teal);
    font-weight: 400;
}

.hero-emph {
    display: block;
    color: var(--teal);
    font-weight: 700;
}

.hero-inner>p {
    font-size: 16px;
    color: var(--text);
    margin-bottom: 36px;
    max-width: 400px;
}

@media (max-width: 768px) {
    .hero {
        margin-top: 12px;
    }
}

/* 2 · Treatment cards (2×2) — full-image cards, text on a bottom scrim */
/* Treatment tiles — Figma treatments_section: 790×720 cards, photo washed to
   #f5f5f5 toward the lower-left so the copy sits "behind" the gradient.
   Sized with container queries so type/padding track the 790px design at any width. */
.home_ctas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.home_cta {
    position: relative;
    border-radius: var(--r-card);
    overflow: hidden;
    aspect-ratio: 790 / 720;
    container-type: inline-size;
    background: #f5f5f5;
    box-shadow: var(--shadow-soft);
}

.home_cta-media {
    position: absolute;
    inset: 0;
}

.home_cta-tag {
    position: absolute;
    right: 30px;
    bottom: 30px;
    z-index: 2;
    color: var(--teal);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -0.24px;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 4px;
    background: rgba(219, 236, 240, 0.90);
}

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

/* exact Figma dev-mode wash + soft radial glow (the Figma ellipse) behind the text */
.home_cta::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(56% 50% at 30% 80%, rgba(245, 245, 245, .85) 0%, rgba(245, 245, 245, 0) 70%),
        linear-gradient(217deg, rgba(245, 245, 245, 0.00) 27.48%, rgba(245, 245, 245, 0.97) 68.62%);
}

.home_cta-body {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    padding: 0 8cqw 11.15cqw 20cqw;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.home_cta-body .card-eyebrow {
    font-size: clamp(13px, 2.03cqw, 16px);
    letter-spacing: -0.02em;
    margin-bottom: clamp(14px, 3.04cqw, 24px);
}

.home_cta-title {
    font-size: clamp(21px, 4.05cqw, 32px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--teal);
    margin: 0 0 clamp(14px, 3.04cqw, 24px);
    max-width: 46cqw;
}

.home_cta-body p {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0 0 4.05cqw;
    max-width: 45cqw;
}

.home_cta-body .btn-outline {
    font-size: 16px;
}

@media (max-width: 1440px) {
    .home_cta-body {
        padding: 0 8cqw 9.15cqw 8cqw;
    }
}



/* 3 · Costs — feature side-by-side */
/* Costs — Figma costs_section: photo right, #f8fbfc wash + ellipse glow left, copy left */
.hfeature-panel {
    position: relative;
    border-radius: var(--r-card);
    overflow: hidden;
    aspect-ratio: 1620 / 800;
    background: #f5f5f5;
}

.hfeature-bg {
    position: absolute;
    inset: 0;
}

.hfeature-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 78% center;
    display: block;
}

.hfeature-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(46% 74% at 24% 50%, rgba(248, 251, 252, .92) 0%, rgba(248, 251, 252, 0) 72%),
        linear-gradient(90deg, rgba(248, 251, 252, .96) 0%, rgba(248, 251, 252, .9) 25%, rgba(248, 251, 252, .5) 45%, rgba(248, 251, 252, 0) 62%);
}

.hfeature-inner {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 690px;
    padding: 40px clamp(40px, 9.75vw, 158px);
}

.hfeature-inner .card-eyebrow {
    margin-bottom: 24px;
}

.hfeature-inner .section-title {
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.hfeature-inner>p {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-bottom: 48px;
    max-width: 408px;
}

.hfeature-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 64px;
    max-width: 473px;
}

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

.hfeat-ic {
    width: 48px;
    height: 48px;
    display: block;
}

.hfeat p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: -0.01em;
    color: var(--text);
}

@media (max-width: 1440px) {
    .hfeature-inner {
        padding: 40px clamp(40px, 4.75vw, 158px);
    }
}



/* 4 · Why choose (6-icon grid) */
.why-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 620px;
    gap: 60px;
    align-items: start;
}

.why-head {
    max-width: 448px;
}

.why-head .section-title {
    margin-bottom: 24px;
}

.why-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 88px 32px;
} 

.why-item {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.why-ic {
    justify-content: center;
    position: relative;
    transition: transform 0.3s ease;
    line-height: 0;
}

.why-ic::before {
    content: '';
    position: absolute;
    inset: -59px;
    width: 172px;
    height: 172px;
    border-radius: 50%;
    background: url('/images/why-grad.svg') center / cover no-repeat;
    opacity: 0;
    z-index: -1;
    transition: 0.7s ease;
    transform: scale(0.1);
}

.why-item:hover .why-ic {
    transform: scale(1.15) translateX(10px);
}

.why-item:hover .why-ic::before {
    opacity: 1;
    transform: scale(1.0);
}

.why-ic svg {
    width: 56px;
    height: 56px;
}

.why-ic img {
    width: 56px;
    height: 56px;
    display: block;
}

.why-item p {
    margin: 0;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--text);
    max-width: 130px;
}

/* 6 · Orthodontists vs Dentists comparison */
.compare-head {
    max-width: 700px;
    margin-bottom: 44px;
}

.compare-head .section-title {
    margin-bottom: 24px;
}

.compare-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 0;
}

.ctab {
    padding: 40px 60px;
    max-width: 280px;
    border-radius: var(--r-card) var(--r-card) 0 0;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.5;
    text-align: left;
    text-transform: uppercase;
    color: var(--c2);
    background: transparent;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

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

.ctab.is-active {
    border-radius: 8px 8px 0 0;
    background: #EDF6F7;
}

.ctab:focus-visible {
    outline: 3px solid rgba(60, 139, 144, .5);
    outline-offset: -3px;
}

.ctable {
    overflow: hidden;
    padding: 48px 48px 56px;
    border-radius: 0 8px 8px 8px;
    background: #F8FBFC;
}

.ctable-head,
.ctable-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px 220px;
    align-items: center;
}

.ctable-head {
    background: transparent;
    color: var(--teal-light);
}

.ctable-head .ctable-col {
    text-align: center;
    letter-spacing: 0.04em;
    padding: 0 20px 28px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 16px;
    line-height: 1.5;
}

.ctable-row {
    background: transparent;
    border-bottom: 1px solid var(--line);
}

.ctable-row:last-child {
    border-bottom: 0;
}

.ctable-crit {
    padding: 34px 32px 34px 0;
    font-size: 16px;
    line-height: 1.4;
    color: var(--text);
}

.ctable-head .ctable-crit {
    padding: 0;
}

.ctable-cell {
    display: grid;
    place-items: center;
    padding: 34px 20px;
}

.ci-check,
.ci-cross {
    width: 26px;
    height: 26px;
    padding: 0px;
    box-sizing: border-box;
    color: #fff;
    border-radius: 4px;
}

.ctable-note {
    font-size: 13.5px;
    line-height: 1.4;
    color: var(--text);
    text-align: center;
    padding: 20px 12px;
}

.ci-check {
}

.ci-cross {
    background: var(--inactive);
}

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

/* Homepage CTA sits on the wider panel width */
.page-home .cta-block {
    grid-template-columns: minmax(0, 834px) minmax(0, 594px);
    gap: clamp(48px, 12vw, 192px);
    justify-content: start;
}

.page-home .cta-block .cta-text{
    width: 65%;
}

@media (max-width: 767px) {
    .page-home .cta-block .cta-text {
    width: 100%;
}
}


/* ============================================================
   BOOKING PAGE
   ============================================================ */
.book-hero {
}

.appt-sec {
    margin-top: 120px;
    /* margin-bottom: 136px; */
}

/* 1 · Booking hero — form left / media right on a rounded light panel */
.book-hero-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 45%) minmax(0, 55%);
    background: linear-gradient(180deg, #f8fbfc, #f4f9fa);
    border-radius: var(--r-card);
    overflow: hidden;
}

.book-form-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(56px, 4.5vw, 88px) clamp(40px, 3vw, 64px) clamp(56px, 4.5vw, 88px) 158px;
}

.book-form-col .card-eyebrow {
    margin-bottom: 20px;
}

.book-form-col .section-title {
    font-size: clamp(28px, 2.2vw, 36px);
    line-height: 1.15;
    margin-bottom: 22px;
    max-width: 460px;
}

.book-form-col>p {
    font-size: 16px;
    color: var(--text);
    margin-bottom: 32px;
    max-width: 430px;
}

.book-form {
    width: 100%;
    max-width: 430px;
    gap: 20px;
    margin-top: 0;
}

.book-privacy {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text);
    margin-top: 22px;
    max-width: 430px;
}

.book-privacy a {
    color: var(--teal);
    text-decoration: underline;
}

.book-media-col {
    position: relative;
    min-height: 100%;
}

.book-media-col .book-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border-radius: 0;
}

.book-media-col .video-cta {
    justify-content: flex-end;
    padding-bottom: 116px;
}

.book-media-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Photo hero variant — full-bleed background image washed into the tint panel (hfeature pattern) */
.book-hero-panel.is-photo {
    display: block;
    background: #f5f5f5;
}

.book-hero-panel.is-photo .book-media-col {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.book-hero-panel.is-photo .book-media {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.book-hero-panel.is-photo .book-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 78% center;
}

.book-hero-panel.is-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(46% 74% at 24% 50%, rgba(248, 251, 252, .92) 0%, rgba(248, 251, 252, 0) 72%),
        linear-gradient(90deg, rgba(248, 251, 252, .96) 0%, rgba(248, 251, 252, .9) 25%, rgba(248, 251, 252, .5) 45%, rgba(248, 251, 252, 0) 62%);
}

.book-hero-panel.is-photo .book-form-col {
    position: relative;
    z-index: 2;
    width: 56%;
}

/* Video variant — dim the doctor image slightly + centred play trigger */
.book-hero-panel.is-video .book-media img {
    object-position: 62% center;
}

.book-hero-panel.is-video::after {
    background:
        radial-gradient(42% 70% at 22% 50%, rgba(248, 251, 252, .9) 0%, rgba(248, 251, 252, 0) 70%),
        linear-gradient(90deg, rgba(248, 251, 252, .96) 0%, rgba(248, 251, 252, .88) 24%, rgba(248, 251, 252, .35) 44%, rgba(30, 60, 63, .18) 70%, rgba(30, 60, 63, .32) 100%);
}

/* Circle centre pinned to Figma: 68.6% x / 78.6% y of the hero panel; label sits 24px below */
.book-video-trigger {
    position: absolute;
    z-index: 3;
    left: 68.6%;
    top: 78.6%;
    transform: translate(-50%, -50%);
    display: block;
    width: 112px;
    height: 112px;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.book-video-trigger .play-circle {
    width: 112px;
    height: 112px;
    box-shadow: 0 12px 30px rgba(30, 60, 63, .28);
}

.book-video-trigger:hover .play-circle,
.book-video-trigger:focus-visible .play-circle {
    transform: scale(1.08);
}

.book-video-trigger:focus-visible {
    outline: 3px solid var(--white);
    outline-offset: 6px;
    border-radius: 50%;
}

.book-video-trigger .play-label {
    position: absolute;
    top: calc(100% + 24px);
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    color: #fff;
    text-shadow: 0 1px 6px rgba(30, 60, 63, .4);
}

/* Video modal / lightbox */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

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

.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 40, 42, .82);
}

.video-modal-inner {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
}

.video-modal-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--r-card);
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}

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

.video-modal-close {
    position: absolute;
    top: -48px;
    right: 0;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: none;
    border: 0;
    color: #fff;
    cursor: pointer;
}

.video-modal-close svg {
    width: 28px;
    height: 28px;
}

/* 2 · What happens at your appointment — 4-column icon grid */
.appt-head {
    max-width: 1180px;
    margin-bottom: 72px;
}

.appt-head .section-title {
    margin-bottom: 24px;
}

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

.appt-item {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.appt-ic {
    color: var(--teal);
    display: flex;
    align-items: flex-end;
    min-height: 64px;
}

.appt-ic svg {
    width: 44px;
    height: 44px;
}

.appt-ic img {
    height: 64px;
    width: auto;
    display: block;
}

.appt-item p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
}

.appt-foot {
    margin-top: 88px;
}

/* ============================================================
   SCROLL ANIMATION
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

.reveal.delay-1 {
    transition-delay: 0.1s;
}

.reveal.delay-2 {
    transition-delay: 0.2s;
}

.reveal.delay-3 {
    transition-delay: 0.3s;
}

/* ============================================================
   RESPONSIVE SKELETON
   ============================================================ */
@media (max-width: 1200px) {
    .main-nav {
        gap: 14px;
    }
}

@media (max-width: 1024px) {

    /* Mobile header: full-width tinted utility bar on top, then logo + call + burger */
    .site-header .container {
        flex-wrap: wrap;
        align-items: center;
        gap: 0;
        padding-block: 0;
    }

    .header-right {
        display: contents;
    }

    .header-right .nav-row {
        display: none;
    }

    .utility-bar {
        order: -1;
        width: 100vw;
        flex-basis: 100vw;
        box-sizing: border-box;
        justify-content: space-between;
        gap: 8px;
        background: #f8fbfc;
        padding: 7px var(--gutter);
        margin-inline: calc(-1 * var(--gutter));
        font-size: 12px;
    }

    .util-lang-btn {
        font-size: 12px;
    }

    .utility-bar>a,
    .utility-bar .util-phone {
        font-size: 12px;
    }

    .utility-bar .util-phone {
        display: none;
    }

    .brand {
        order: 1;
        padding-block: 12px 15px;
    }

    .brand img,
    .brand svg {
        height: 71px;
    }

    .mobile-actions {
        display: flex;
        order: 2;
    }

    .footer-visit .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-map {
        min-height: 380px;
    }

    .footer-map iframe {
        min-height: 380px;
    }
}

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

    .brand img,
    .brand svg {
        height: 71px;
    }

    .site-header.scrolled .brand img,
    .site-header.scrolled .brand svg {
        height: 71px;
    }

    .footer-brandrow {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        border-bottom: 1px solid var(--teal);
    }
    .footer-brandrow .tio-logo {
        display: none;
    }
    .footer-bottom .container {
        position: relative;
    }
    .footer-bottom .copyright {
        padding-right: 80px;
    }
    .tio-logo-mobile {
        display: inline-flex;
    }
    .footer-bottom .copyright + .tio-logo-mobile {
        position: absolute;
        bottom: 7px;
        right: 0;
        width: 63px;
    }
}

@media (max-width: 640px) {

    /* Footer legal/links: stack each segment cleanly, drop the hanging pipes */
    .footer-bottom .container {
        padding-block: 0px;
    }

    .legal {
        padding-top: 24px;
        display: none;
    }

    .copyright {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding-top: 24px;
    }

    .copyright>div {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .copyright .sep {
        display: none;
    }

    .copyright .copy-links a,
    .copyright>div:last-child a {
        line-height: 1.2;
    }
}

@media (max-width: 480px) {
    .call-btn,
    .book-btn {
        padding: 8px 10px;
        font-size: 13px;
    }
    .call-btn {
        gap: 5px;
    }
    .mobile-actions {
        gap: 7px;
    }
}

/* Very small phones: nudge the logo down a touch so the logo, both CTAs and
   the burger still sit on one row. */
@media (max-width: 374px) {
    .brand img,
    .brand svg {
        height: 60px;
    }
}

/* ============================================================
   INSET PAGE — RESPONSIVE (collapse fixed-px grids)
   ============================================================ */
@media (max-width: 1024px) {
    .ins-sec {
        margin-top: 88px;
    }

    .sbs .sbs-grid,
    .sbs--media-left .sbs-grid,
    .sbs-grid--panel,
    .sbs-grid--inset {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 56px;
        justify-content: stretch;
    }

    .card-track.cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-track.is-carousel.cols-3>* {
        flex: 0 0 calc((100% - 40px) / 2);
    }

    .cta-block,
    .page-home .cta-block {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 56px;
        justify-content: stretch;
    }

    .text-two-col {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .doctor-grid {
        grid-template-columns: 1fr 44%;
        min-height: 620px;
    }

    .doctor-media {
        width: 56%;
    }

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

    .review-card {
        padding: 44px 40px;
    }
}

@media (max-width: 768px) {
    .ins-sec {
        margin-top: 0px;
        margin-bottom: 64px;
    }

    .ins-sec:first-child {
        margin-top: 15px;
    }

    .sbs .sbs-grid,
    .sbs--media-left .sbs-grid,
    .sbs-grid--panel,
    .sbs-grid--inset,
    .cta-block,
    .page-home .cta-block {
        grid-template-columns: 1fr;
        gap: 40px;
        justify-content: stretch;
    }

    .sbs--media-left .sbs-media {
        order: -1;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        row-gap: 32px;
    }

    .benefits-head {
        margin-bottom: 40px;
    }

    .card-track.cols-3,
    .card-track.cols-2 {
        grid-template-columns: 1fr;
    }

    .card-track.is-carousel.cols-3>*,
    .card-track.is-carousel.cols-2>* {
        flex: 0 0 85%;
    }

    .ba-slider-track>* {
        flex: 0 0 100%;
    }

    .text-two-col,
    .text-three-col {
        grid-template-columns: 1fr;
        margin-bottom: 40px;
    }

    .sec-head,
    .faq-title,
    .text-sec-title {
        margin-bottom: 40px;
    }

    .carousel-foot {
        margin-top: 40px;
    }

    /* Inset panel: image stacks on top with real height */
    .bg-panel--inset {
        padding: clamp(24px, 6vw, 40px);
    }

    .sbs-media--bleed img {
        aspect-ratio: 16 / 10;
        border-radius: var(--r-card);
    }

    /* Meet the doctor: stack image over text */
    .bg-doctor {}

    .doctor-grid {
        display: block;
        min-height: 0;
    }

    .doctor-media {
        position: relative;
        inset: auto;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 11;
    }

    .doctor-media::after {
        display: none;
    }

    .doctor-text {
        grid-column: auto;
        padding: 40px;
    }

    /* Before & afters: stack compare over thumbs */
    .ba-media {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }

    .ba-thumbs {
        grid-template-columns: 1fr 1fr;
        height: 75px;
    }

    .blog-card .tcard-body {
        padding: 32px 28px;
    }

    .review-card {
        padding: 36px 28px;
    }

    .review-quote {
        width: 88px;
        height: auto;
        margin-bottom: -20px;
    }
}

@media (max-width: 480px) {
    .tcard-body {
        padding: 28px 24px;
    }

    .cta-form input {
        padding: 14px;
    }
}

/* ============================================================
   HOMEPAGE — RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {

    .hero,
    .home_ctas,
    .hfeature,
    .why-sec,
    .ortho_tabs {
        margin-top: 88px;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .why-icons {
        gap: 40px 32px;
    }

    .ctable-head,
    .ctable-row {
        grid-template-columns: minmax(0, 1fr) 140px 140px;
    }
}

@media (max-width: 768px) {

    .hero,
    .home_ctas,
    .hfeature,
    .why-sec,
    .ortho_tabs {
        margin-top: 64px;
    }

    .page-home .ins-sec:has(.ba-inner) {
        margin-top: 60px;
    }

    .hero-panel {
        aspect-ratio: auto;
        min-height: 750px;
        background: #f5f5f5;
        border-radius: 8px;
    }

    .hero-bg {
        object-position: center top;
    }

    .hero-panel::after {
        border-radius: 8px;
        background: linear-gradient(0deg, #F5F5F5 40.45%, rgba(245, 245, 245, 0.80) 75.56%, rgba(245, 245, 245, 0.00) 100.62%);
        height: 70%;
        bottom: 130px;
        top: auto;
    }

    .hero-inner {
        justify-content: flex-end;
        margin-top: 0px;
        padding: 0 24px 36px;
        max-width: none;
    }

    .hero-heading {
        white-space: normal;
        font-size: 30px;
        margin-bottom: 18px;
    }

    .hero-inner>p {
        max-width: none;
        margin-bottom: 26px;
    }

    .hero-inner .btn {
        width: 100%;
        justify-content: center;
    }

    /* Treatment tiles → stack the photo above the copy (no overlay) */
    .home_ctas-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .home_cta {
        aspect-ratio: auto;
        container-type: normal;
        display: flex;
        flex-direction: column;
        background: #f8fbfc;
    }

    .home_cta::after {
        display: none;
    }

    .home_cta-media {
        position: relative;
        aspect-ratio: 33 / 41;
    }

    .home_cta-media img {
        aspect-ratio: 33 / 41;
        object-position: 100%;
    }

    .home_cta-body {
        position: relative;
        z-index: 2;
        inset: auto;
        /* Pull the eyebrow up onto the faded bottom of the image (design) */
        margin-top: -44px;
        padding: 0 24px 28px;
    }

    .home_cta-body .card-eyebrow {
        font-size: 16px;
        margin-bottom: 19px;
    }

    .home_cta-title {
        font-size: 24px;
        max-width: none;
        margin: 0 0 12px;
    }

    .home_cta-body p {
        font-size: 16px;
        max-width: none;
        margin: 0 0 20px;
    }

    .home_cta-body .btn-outline {
        font-size: 15px;
    }

    /* Costs → stack the photo above the copy (no overlay) */
    .hfeature-panel {
        aspect-ratio: auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        background: #f5f5f5;
        position: relative;
        border-radius: 8px;
        overflow: hidden;
    }

    .hfeature-panel::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 33%;
        height: 60%;
        background: linear-gradient(0deg, #f5f5f5 30%, rgba(245, 245, 245, 0.80) 65%, rgba(245, 245, 245, 0.00) 100%);
        pointer-events: none;
        z-index: 1;
    }

    .hfeature-panel::after {
        display: none;
    }

    .hfeature-bg {
        position: relative;
    }

    .hfeature-bg img {
        aspect-ratio: 400 / 580;
        object-position: center 30%;
    }

    .hfeature-inner {
        position: relative;
        z-index: 2;
        inset: auto;
        justify-content: flex-start;
        max-width: none;
        padding: 0px 24px 63px;
        margin-top: -120px;
    }

    .hfeature-inner .section-title {
        max-width: none;
    }

    .hfeature-inner>p {
        max-width: none;
        margin-bottom: 32px;
    }

    .hfeature-items {
        max-width: none;
        gap: 36px 16px;
        margin-bottom: 36px;
        grid-template-columns: repeat(2, 1fr);
    }

    .why-icons {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px 28px;
    }

    .compare-head {
        margin-bottom: 32px;
    }

    /* Comparison table → stacked cards per criterion */
    .ctable {
        box-shadow: none;
        overflow: visible;
        padding: 35px 25px;
        border-radius: 8px 8px;
    }

    .ctab {
        padding: 25px 30px;
        max-width: inherit;
        width: 100%;
    }

    .ctable-head {
        display: none;
    }

    .ctable-row {
        grid-template-columns: 1fr;
        border: 1px solid var(--line);
        border-radius: var(--r-tab);
        margin-bottom: 16px;
        background: #fff !important;
    }

    .ctable-crit {
        padding: 20px 20px 8px;
        font-weight: 500;
    }

    .ctable-cell {
        grid-template-columns: 1fr auto;
        justify-items: stretch;
        align-items: center;
        padding: 12px 20px;
        border-top: 1px solid var(--line);
    }

    .ctable-cell::before {
        justify-self: start;
        font-weight: 700;
        color: var(--dark);
    }

    .ctable-row .ctable-cell:nth-child(2)::before {
        content: "Orthodontist";
    }

    .ctable-row .ctable-cell:nth-child(3)::before {
        content: "Dentist";
    }

    .ctable-cell svg {
        justify-self: end;
    }
}

@media (max-width: 480px) {

    .hero {
        margin-top: 0px;
    }

    .home_cta-body {
        padding: 42px 25px 40px;
        margin-top: -130px;
    }

    .why-icons {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-home .home_doctor {
        margin-top: 70px;
    }
}

/* ============================================================
   BOOKING PAGE — RESPONSIVE
   ============================================================ */
@media (max-width: 1620px) {
    .book-form-col {
        padding-left: clamp(40px, 5vw, 80px);
    }
}

@media (max-width: 1024px) {
    .book-hero {
        margin-top: 88px;
    }

    .appt-sec {
        /* margin-top: 96px; */
        /* margin-bottom: 96px; */
    }

    .appt-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 48px 40px;
    }

    .appt-head {
        margin-bottom: 48px;
    }

    .appt-foot {
        margin-top: 56px;
    }
}

@media (max-width: 768px) {
    .book-hero {
        margin-top: 10px;
    }

    .appt-sec {
        margin-top: 64px;
        /* margin-bottom: 64px; */
    }

    .book-hero-panel {
        grid-template-columns: 1fr;
    }

    .book-media-col {
        min-height: 0;
    }

    .book-media-col .book-media {
        position: relative;
        inset: auto;
        aspect-ratio: 4 / 3;
    }

    .book-media-col .video-cta {
        justify-content: center;
        padding-bottom: 0;
    }

    .book-hero-panel.is-photo {
        display: flex;
        flex-direction: column;
        background: #f8fbfc;
    }

    .book-hero-panel.is-photo::after {
        display: none;
    }

    .book-hero-panel.is-photo .book-form-col {
        width: auto;
        order: 1;
        padding: 40px 24px;
    }

    .book-hero-panel.is-photo .book-media-col {
        position: static;
        inset: auto;
        order: 2;
    }

    .book-hero-panel.is-photo .book-media {
        position: static;
        inset: auto;
    }

    .book-hero-panel.is-photo .book-media img {
        aspect-ratio: 4 / 3;
        object-position: center top;
    }

    .book-hero-panel.is-video .book-media img {
        object-position: center top;
    }

    /* Mobile: keep the circle centre in the lower third of the 4:3 image so the doctor's face stays clear */
    .book-video-trigger {
        top: auto;
        bottom: 18vw;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 76px;
        height: 76px;
    }

    .book-video-trigger .play-circle {
        width: 76px;
        height: 76px;
    }

    .book-video-trigger .play-label {
        top: calc(100% + 14px);
    }

    .book-form-col {
        align-items: stretch;
    }

    .book-form-col .section-title,
    .book-form-col>p,
    .book-form,
    .book-privacy {
        max-width: none;
    }

    .appt-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .appt-item {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .book-form-col {
        padding: 40px 24px;
    }
}

/* ============================================================
   COST PAGE
   ============================================================ */
/* 1 · Hero — text left / photo right, on a light tint band */
.cost-hero {
    margin-top: 0px;
    position: relative;
    z-index: 1;
}

.cost-hero-grid {
    display: grid;
    grid-template-columns: 408px minmax(0, 1fr);
    gap: 152px;
    align-items: center;
}

.cost-hero-text .section-title {
    font-size: clamp(26px, 2.4vw, 32px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.cost-hero-text p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
}

.cost-hero-media {
    position: relative;
    align-self: center;
}

.cost-hero-media img,
.cost-hero-media video {
    width: 100%;
    height: auto;
    aspect-ratio: 744 / 524;
    object-fit: cover;
    border-radius: var(--r-card);
    background: #000;
}

.video-thumb {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.video-thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 744 / 524;
    object-fit: cover;
    border-radius: var(--r-card);
    display: block;
}

.video-thumb-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.video-thumb:hover .video-thumb-play {
    background: var(--teal);
    transform: translate(-50%, -50%) scale(1.06);
}

/* 2 · Intro + 4-icon feature row */
.cost-feat {
    background: #f8fbfc;
    position: relative;
    z-index: 0;
    margin-top: -56px;
    padding: clamp(96px, 11vw, 152px) 0 clamp(64px, 7vw, 120px);
}

.cost-feat-head {
    max-width: 900px;
    margin: 0 0 clamp(48px, 5vw, 80px);
    text-align: left;
}

.cost-feat-head .section-title {
    margin-bottom: 20px;
}

.cost-feat-head p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
}

.cost-feat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(28px, 3vw, 48px);
    align-items: start;
}

.cost-feat-item {
    text-align: left;
}

.cost-feat-ic {
    display: inline-flex;
    margin-bottom: 22px;
}

.cost-feat-ic img {
    width: 64px;
    height: 64px;
}

.cost-feat-item p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text);
    text-align: left;
}

/* 3 · Treatment costs table */
.cost-table-sec {
    margin-top: clamp(72px, 8vw, 128px);
}

.cost-table-sec .section-title {
    margin-bottom: 20px;
}

.cost-table-sec .cost-head{
     margin-bottom: 40px;
}

.cost-table-head {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    padding: 18px 32px;
}

.cost-table-head span {
    font-size: 16px;
    color: var(--teal);
    font-weight: 500;
}

.cost-row {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  padding: 40px;
  border-radius: var(--r-outline);
}

.cost-row:nth-child(even) {
  background: #eef5f6;
}

.cost-row-name {
    font-size: 16px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.32px;
}

.cost-row-price {
  font-size: 16px;
  color: var(--text);
  font-weight: 500;
  line-height: 150%;
  letter-spacing: -0.32px;
}


/* 4 · Budget calculator */
.cost-calc {
    margin-top: clamp(72px, 8vw, 128px);
}

.pc-calc-grid {
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: 80px;
    align-items: center;
}

.pc-calc-title {
    font-size: 32px;
    line-height: 1.15;
    font-weight: 500;
    color: var(--teal);
    margin: 0 0 50px;
}

.pc-field {
    margin-top: 32px;
}

.pc-field-label {
    display: block;
    font-size: 16px;
    color: var(--text);
    margin-bottom: 12px;
    font-weight: 500;
}

.pc-toggle {
    display: inline-flex;
    gap: 20px;
}

.pc-toggle button {
    height: 54px;
    padding: 0 34px;
    border: 1px solid var(--teal);
    border-radius: 4px;
    background: #fff;
    color: var(--teal);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.pc-toggle button:hover,
.pc-toggle button.active  {
    background: var(--teal);
    color: #fff;
}

.pc-control {
    display: flex;
    align-items: center;
    gap: 32px;
}

.pc-input-wrap {
    position: relative;
    width: 160px;
    flex-shrink: 0;
}

.pc-input-wrap .pc-input {
    width: 100%;
    height: 54px;
    border: 1px solid var(--text);
    border-radius: 4px;
    background: #fff;
    padding: 0 14px 0 34px;
    font-size: 16px;
    color: var(--teal);
    font-family: inherit;
    font-weight: 500;
}

.pc-input-wrap .pc-input--icon {
    padding-left: 40px;
}

.pc-input-wrap .pc-input-prefix {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--teal);
    pointer-events: none;
    font-weight: 500;
}

.pc-input-wrap .pc-input-cal {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--teal);
    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(--teal);
    cursor: pointer;
    border: 0;
}

.pc-range::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--teal);
    cursor: pointer;
    border: 0;
}

.pc-panel {
    border: 1px solid var(--teal);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

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

.pc-tab {
    padding: 22px 26px;
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    cursor: pointer;
}

.pc-tab.active {
    color: var(--teal);
    border-bottom-color: var(--teal);
}

.pc-tabpanel {
    padding: 35px;
}

.pc-tabpanel[hidden] {
    display: none;
}

.pc-options-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.pc-opt {
    border: 1px solid var(--teal);
    border-radius: 4px;
    overflow: hidden;
}

.pc-opt--wide {
    margin-top: 40px;
}

.pc-opt-head {
    padding: 22px 26px;
    color: #fff;
}

.pc-opt-head--solid {
    background: var(--teal);
}

.pc-opt-head--grad {
    background: linear-gradient(90deg, var(--teal) 0%, var(--teal-light) 100%);
}

.pc-opt-eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin: 0;
}

.pc-opt-desc {
    margin: 8px 0 0;
    font-size: 16px;
    line-height: 20px;
    font-weight: 500;
}

.pc-opt-body {
    padding: 34px 50px;
}

.pc-opt-price {
    font-size: 44px;
    line-height: 1;
    font-weight: 400;
    color: var(--dark);
    margin: 0;
}

.pc-opt-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--teal);
    text-decoration: none;
}

.pc-opt-more .arrow {
    transition: transform .2s;
}

.pc-opt-more:hover .arrow {
    transform: translateX(4px);
}

.pc-opt-note {
    margin: 16px 0 0;
    color: var(--text);
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
    letter-spacing: -0.24px;
}

.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;
    color: var(--dark);
}

/* 5 · CTA block */
.cost-cta-sec {
    margin-top: clamp(72px, 8vw, 128px);
}

.cost-cta-sec .cta-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--r-card);
}

/* ============================================================
   BEFORE & AFTER PAGE
   ============================================================ */
.ba-hero {
    /* margin-top: 64px; */
}

.ba-hero .cost-hero-media img {
    border-radius: var(--r-card);
}

.ba-grid-sec {
    margin-block: 120px;
}

@media (max-width: 768px) {
    .ba-grid-sec {
        margin-block: 60px;
    }
}

.ba-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(48px, 5vw, 64px) clamp(24px, 3vw, 38px);
}

.ba-case-media {
    display: grid;
    grid-template-columns: 408fr 186fr;
    gap: clamp(20px, 2.5vw, 40px);
    align-items: stretch;
}

.ba-compare {
    position: relative;
    aspect-ratio: 408 / 209;
    border-radius: 8px;
    overflow: hidden;
    cursor: ew-resize;
    user-select: none;
}

.ba-img-before,
.ba-img-after {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: none;
    -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: 100%;
    background: var(--teal);
    z-index: 3;
    pointer-events: none;
}

.ba-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 26px;
    border-radius: 8px;
    background: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    pointer-events: none;
}

.ba-thumbs {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
}

.ba-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.ba-info {
    margin-top: 16px;
}

.ba-name {
    font-size: 16px;
    font-weight: 400;
    color: var(--teal);
    margin: 0 0 8px;
}

.ba-treatment {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
}

/* ============================================================
   TESTIMONIALS PAGE
   ============================================================ */
.tm-hero {
    /* margin-top: 64px; */
}

.tm-hero .cost-hero-media img {
    border-radius: var(--r-card);
}

.tm-sec {
    margin-block: 120px;
}

@media (max-width: 768px) {
    .tm-sec {
        margin-block: 60px;
    }
}

.tm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 3vw, 48px);
}

.tm-card {
    background: #f4f9fa;
    border-radius: var(--r-card);
    padding: clamp(36px, 3.5vw, 56px) clamp(36px, 3.5vw, 56px) clamp(32px, 3vw, 48px);
}

.tm-quote {
    display: block;
    width: 44px;
    color: var(--teal);
    margin-bottom: 20px;
}

.tm-quote svg {
    width: 100%;
    height: auto;
}

.tm-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text);
}

.tm-name {
    margin: 24px 0 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--teal);
}

.tm-nav {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 40px;
}

.tm-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--teal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}

.tm-arrow svg {
    width: 20px;
    height: 20px;
}

.tm-arrow:hover {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
}

/* ============================================================
   COST PAGE — RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .cost-hero {
        margin-top: 88px;
    }

    .cost-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cost-feat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .pc-calc-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .cost-hero {
        margin-top: 15px;
    }

    .cost-feat-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .cost-table-head {
        display: none;
    }

    .cost-row {
        grid-template-columns: 110px 1fr;
        gap: 12px;
        padding: 20px;
    }

    .pc-control {
        gap: 16px;
    }

    .pc-input-wrap {
        width: 130px;
    }

    .pc-options-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pc-opt-price {
        font-size: 38px;
    }

    .pc-tab {
        padding: 16px 12px;
    }
}

@media (max-width: 480px) {
    .pc-toggle button {
        padding: 0 22px;
    }
}

@media (max-width: 1024px) {
    .ba-hero {
        /* margin-top: 88px; */
    }
}

@media (max-width: 768px) {
    .ba-hero {
        margin-top: 20px;
    }

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

    .ba-case-media {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }

    .tm-hero {
        margin-top: 64px;
    }

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

@media (max-width: 1024px) {
    .tm-hero {
        margin-top: 15px;
    }
}

/* ============================================================
   REFERRAL FORM PAGE
   ============================================================ */
.rf-hero {
    margin-top: 0;
    background: #F8FBFC;
}

.rf-hero .container {
    padding: clamp(48px, 4.5vw, 72px) 0;
}

.rf-hero .section-title {
    font-size: clamp(26px, 2.4vw, 32px);
    margin-bottom: 24px;
}

.rf-hero p {
    max-width: 960px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
}

.rf-sec {
    margin-top: 112px;
    margin-bottom: 6vw;
}

@media (max-width: 768px) {
    .rf-sec {
        margin-top: 50px;
        margin-bottom: 70px;
    }
}

.rf-form {
    max-width: 1080px;
}

.rf-group {
    border: 0;
    padding: 0;
    margin: 0 0 clamp(32px, 3vw, 44px);
}

.rf-legend {
    padding: 0;
    font-size: 24px;
    font-weight: 500;
    color: var(--teal);
    margin-bottom: 22px;
}

.rf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.rf-field {
    display: block;
    position: relative;
}

/* Floating field label — sits over the border, animates up on focus/fill */
.rf-field .field-label {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    line-height: 1;
    color: var(--text);
    background: transparent;
    padding: 0 4px;
    pointer-events: none;
    transform-origin: left center;
    transition: top 0.15s ease, transform 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.rf-field textarea ~ .field-label {
    top: 24px;
}

.rf-field input:focus + .field-label,
.rf-field input:not(:placeholder-shown) + .field-label,
.rf-field textarea:focus + .field-label,
.rf-field textarea:not(:placeholder-shown) + .field-label {
    top: 0;
    transform: translateY(-50%) scale(0.85);
    color: var(--teal);
    background: #fff;
}

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

/* Real-time validation: show error after user interacts */
.rf-form .rf-field input:user-invalid ~ .invalid-feedback,
.rf-form .rf-field select:user-invalid ~ .invalid-feedback,
.was-validated .rf-field input:invalid ~ .invalid-feedback,
.was-validated .rf-field select:invalid ~ .invalid-feedback,
.was-validated .field input:invalid ~ .invalid-feedback {
    display: block;
}

.rf-form input[type="text"],
.rf-form input[type="email"],
.rf-form input[type="tel"],
.rf-form select {
    width: 100%;
    height: 50px;
    padding: 0 18px;
    font: inherit;
    font-size: 16px;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--text);
    border-radius: var(--r-outline);
    appearance: none;
    transition: border-color .2s;
}

.rf-form textarea {
    width: 100%;
    padding: 16px 18px;
    font: inherit;
    font-size: 16px;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--text);
    border-radius: var(--r-outline);
    resize: vertical;
    transition: border-color .2s;
}

.rf-form input::placeholder,
.rf-form textarea::placeholder {
    color: var(--text);
}

.rf-form input:focus,
.rf-form select:focus,
.rf-form textarea:focus {
    outline: none;
    border-color: var(--teal);
}

.rf-select {
    position: relative;
}

.rf-select::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--teal);
    border-bottom: 2px solid var(--teal);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

.rf-form select {
    padding-right: 40px;
    cursor: pointer;
}

.rf-dob-row {
    margin-top: 18px;
}

.rf-sublabel {
    display: block;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 10px;
}

.rf-dob-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.rf-dob {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
}

.rf-field--full {
    margin-top: 18px;
}

.rf-choice {
    margin-top: 28px;
}

.rf-choice-q {
    margin: 0 0 14px;
    font-size: 14px;
    color: var(--text);
}

.rf-choice-opts {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
}

.rf-check,
.rf-radio {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text);
    cursor: pointer;
}

.rf-check input,
.rf-radio input {
    width: 18px;
    height: 18px;
    accent-color: var(--teal);
    cursor: pointer;
}

.rf-upload {
    margin-top: 30px;
}

.rf-upload-label {
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--text);
}

.rf-drop {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 72px 24px;
    background: #ebf3f4;
    cursor: pointer;
    text-align: center;
    border-radius: 4px;
}

.rf-drop-text {
    font-size: 14px;
    color: var(--text);
}

.rf-drop-btn {
    pointer-events: none;
}

.rf-submit {
    margin-top: 19px;
}

.rf-privacy {
    margin: 18px 0 0;
    font-size: 12px;
    color: var(--text);
}

.rf-privacy a {
    color: var(--teal);
    text-decoration: underline;
}


@media (max-width: 768px) {
    .rf-hero {
        margin-top: 0;
    }

    .rf-grid,
    .rf-dob-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .rf-dob {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .rf-drop {
        flex-direction: column;
        gap: 14px;
        padding: 50px 24px;
    }

    .rf-choice-opts {
        gap: 16px 22px;
    }
}

/* ============================================================
   FAQ PAGE
   ============================================================ */
.faq-hero {
    background: transparent;
}

.faq-sec {
    padding: clamp(56px, 5vw, 88px) 0;
}

.faq-sec--tint {
    background: #f8fbfc;
    position: relative;
    z-index: 0;
    margin-top: -56px;
    padding: clamp(96px, 11vw, 152px) 0 clamp(56px, 6vw, 88px);
}

.faq-group-title {
    font-size: clamp(24px, 2vw, 32px);
    margin-bottom: clamp(32px, 3vw, 48px);
}

.faq-sec .faq-list {
    max-width: 100%;
}

@media (max-width: 1024px) {
    .faq-hero {
        margin-top: 88px;
    }
}

@media (max-width: 768px) {
    .faq-hero {
        margin-top: 64px;
    }

    .faq-sec .faq-q {
        font-size: 17px;
        padding: 32px 0;
    }
}

/* ============================================================
   MEET OUR ORTHODONTISTS PAGE
   ============================================================ */
.ortho-sec {
    padding: clamp(56px, 5vw, 96px) 0;
}

.ortho-sec--tint {
    background: #f8fbfc;
    position: relative;
    z-index: 0;
    margin-top: -56px;
    padding: clamp(96px, 11vw, 152px) 0 clamp(56px, 6vw, 96px);
}

.ortho-grid {
    display: grid;
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    gap: clamp(40px, 4vw, 72px);
    align-items: start;
}

.ortho-media img {
    width: 100%;
    border-radius: var(--r-card);
    display: block;
}

.ortho-name {
    font-size: clamp(24px, 2vw, 30px);
    font-weight: 500;
    color: var(--teal);
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}

.ortho-body .ortho-role {
    color: #5FA6AA;
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
    letter-spacing: -0.32px;
    text-transform: uppercase;
    margin: 0 0 22px;
}

.ortho-body .ortho-quals {
    color: #333;
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 150%;
    letter-spacing: -0.32px;
    margin: 0 0 24px;
}

.ortho-body p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
    margin: 0 0 18px;
}

.ortho-list {
    list-style: disc;
    padding-left: 20px;
    margin: 0 0 26px;
}

.ortho-list li {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 6px;
}

.ortho-subhead {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 14px;
}

@media (max-width: 1024px) {
    .faq-hero {
        margin-top: 88px;
    }
}

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

    .ortho-media {
        max-width: 340px;
    }
}

/* ============================================================
   MEET THE TEAM PAGE
   ============================================================ */
.team-sec {
    padding: clamp(48px, 5vw, 88px) 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(24px, 2.4vw, 40px);
}

.team-card {
    border-radius: var(--r-card);
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow .25s, transform .25s;
    background: linear-gradient(180deg, rgba(248, 251, 252, 0.95) 0%, #F4F9FA 39.61%);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.team-card:hover {
    box-shadow: 0 18px 40px rgba(22, 22, 22, .08);
    transform: translateY(-3px);
}

.team-card:focus-visible {
    outline: 3px solid rgba(60, 139, 144, .5);
    outline-offset: 2px;
}

.team-card-media {
    aspect-ratio: 5 / 4;
    overflow: hidden;
}

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

.team-card-body {
    padding: 40px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.team-card-name {
    font-size: 24px;
    font-weight: 500;
    color: var(--teal);
    margin: 0 0 6px;
    letter-spacing: -0.48px;
}

.team-card-role {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.28px;
    text-transform: uppercase;
    color: var(--teal-light);
    margin: 0 0 16px;
    line-height: 1.5;
}

.team-card-quals {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    margin: 0 0 20px;
    opacity: 0.6;
}

.team-card-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.32px;
    text-transform: uppercase;
    color: var(--teal);
    margin-top: auto;
}

/* Team modal */
.team-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    overflow-y: auto;
    padding: clamp(24px, 4vw, 64px);
}

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

.team-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(22, 22, 22, .45);
}

.team-modal-card {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--r-card);
    padding: clamp(32px, 4vw, 64px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .25);
}

.team-modal-close {
    position: absolute;
    top: clamp(20px, 2vw, 32px);
    right: clamp(20px, 2vw, 32px);
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--teal);
    background: transparent;
    border: 0;
    cursor: pointer;
    border-radius: 50%;
    transition: background .2s;
}

.team-modal-close:hover {
    background: #f4f9fa;
}

.team-modal-close svg {
    width: 24px;
    height: 24px;
}

.team-modal-grid {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: clamp(32px, 3.5vw, 64px);
    align-items: start;
}

.team-modal-media img {
    width: 100%;
    border-radius: var(--r-card);
    display: block;
}

@media (max-width: 1024px) {
    .faq-hero {
        margin-top: 15px;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .team-modal-grid {
        grid-template-columns: 1fr;
    }

    .team-modal-media {
        max-width: 300px;
    }
    .team-modal-close {
        top: clamp(5px, 2vw, 32px);
        right: clamp(5px, 2vw, 32px);
    }
}

/* ============================================================
   BLOG LISTING PAGE
   ============================================================ */
.blog-sec {
    padding: clamp(48px, 5vw, 88px) 0 clamp(56px, 6vw, 96px);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(28px, 3vw, 48px);
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: #f4f9fa;
    border-radius: var(--r-card);
    overflow: hidden;
}

.blog-card-media {
    display: block;
    aspect-ratio: 632 / 414;
    overflow: hidden;
}

.blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}

.blog-card:hover .blog-card-media img {
    transform: scale(1.04);
}

.blog-card-body {
    padding: clamp(24px, 2.4vw, 40px);
    display: flex;
    flex-direction: column;
}

.blog-date {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--dark);
    margin: 0 0 16px;
}

.blog-card-title {
    font-size: clamp(18px, 1.6vw, 22px);
    font-weight: 500;
    line-height: 1.35;
    margin: 0 0 16px;
}

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

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

.blog-excerpt {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text);
    margin: 0 0 22px;
}

.blog-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--teal);
}

.blog-more svg {
    width: 16px;
    height: 16px;
    transition: transform .2s;
}

.blog-more:hover svg {
    transform: translateX(4px);
}

.blog-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: clamp(40px, 4vw, 64px);
}

.blog-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: var(--r-outline);
    font-size: 14px;
    color: var(--text);
    transition: all .2s;
}

.blog-page:hover {
    border-color: var(--teal);
    color: var(--teal);
}

.blog-page.is-active {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
}

.blog-page-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    background: none;
    color: var(--dark);
    cursor: pointer;
}

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

.blog-page-arrow svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        max-width: 460px;
        margin: 0 auto;
    }

    .blog-page {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }
}

/* ============================================================
   BLOG DETAILS PAGE
   ============================================================ */
.post {
    position: relative;
    padding: clamp(40px, 4vw, 72px) 0 clamp(48px, 5vw, 80px);
}

.post::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: clamp(500px, 54vw, 700px);
    background: #f8fbfc;
    z-index: 0;
}

.post>.container {
    position: relative;
    z-index: 1;
}

.post-narrow {
    max-width: 860px;
    margin: 0 auto;
}

.post-head {
    margin-bottom: clamp(28px, 3vw, 44px);
}

.post-date {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--dark);
    margin: 0 0 18px;
}

.post-title {
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 500;
    line-height: 1.25;
    color: var(--teal);
    margin: 0 0 24px;
}

.post-lead {
    font-size: clamp(16px, 1.4vw, 18px);
    line-height: 1.7;
    color: var(--text);
    margin: 0;
}

.post-figure {
    margin: 0 0 clamp(28px, 3vw, 44px);
    border-radius: var(--r-card);
    overflow: hidden;
}

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

.post-body.rte p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text);
    margin: 0 0 24px;
}

.post-body.rte p:last-child {
    margin-bottom: 0;
}

.post-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: clamp(28px, 3vw, 44px);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--teal);
}

.post-back svg {
    width: 18px;
    height: 18px;
    transition: transform .2s;
}

.post-back:hover {
    color: var(--teal-light);
}

.post-back:hover svg {
    transform: translateX(-4px);
}

.related {
    padding: clamp(40px, 4vw, 72px) 0 clamp(48px, 5vw, 88px);
}

.related-title {
    margin: 0 0 clamp(32px, 3vw, 48px);
}

/* ============================================================
   THANK YOU PAGE
   ============================================================ */
.thanks {
    padding-block: 80px;
}
@media (max-width: 768px) {
    .thanks {
        padding-block: 48px 40px;
    }
}

.ty-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 600px;
    gap: 20px;
}

.ty-icon {
    margin-bottom: 8px;
}

.ty-container .section-title {
    margin-bottom: 0;
}

.ty-container p {
    color: var(--text);
    line-height: 1.6;
    margin: 0;
}

.ty-container .btn {
    margin-top: 12px;
}

.ty-hero .section-title {
    max-width: 720px;
}

.ty-hero p {
    max-width: 900px;
    margin-bottom: 16px;
}

.ty-hero p:last-child {
    margin-bottom: 0;
}

.ty-booking {
    padding: clamp(40px, 4vw, 72px) 0 0;
}

.ty-cal {
    max-width: 900px;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    padding: clamp(24px, 2.6vw, 40px);
}

.ty-cal-title {
    font-size: clamp(20px, 1.8vw, 26px);
    font-weight: 500;
    color: var(--dark);
    margin: 0 0 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.ty-event {
    position: relative;
    display: grid;
    grid-template-columns: 72px 1fr 40px;
    gap: clamp(18px, 2vw, 32px);
    align-items: start;
}

.ty-event-media {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #f4f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ty-event-media img {
    width: 46px;
    height: auto;
}

.ty-event-name {
    font-size: clamp(16px, 1.4vw, 19px);
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 10px;
}

.ty-event-meta {
    font-size: 14px;
    color: var(--text);
    margin: 0 0 4px;
}

.ty-event-note {
    font-size: 14px;
    color: var(--text);
    margin: 14px 0 14px;
    line-height: 1.6;
}

.ty-event-body p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text);
    margin: 0 0 14px;
}

.ty-event-body p:last-child {
    margin-bottom: 0;
}

.ty-event-next {
    align-self: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    background: var(--teal);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s;
}

.ty-event-next:hover {
    background: var(--teal-light);
}

.ty-event-next svg {
    width: 18px;
    height: 18px;
}

.ty-close {
    padding: clamp(40px, 4vw, 64px) 0 clamp(48px, 5vw, 80px);
}

.ty-close p {
    font-size: 15px;
    color: var(--text);
    margin: 0 0 14px;
}

.ty-signoff {
    color: var(--teal);
    font-weight: 700;
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .ty-event {
        grid-template-columns: 56px 1fr;
    }

    .ty-event-media {
        width: 56px;
        height: 56px;
    }

    .ty-event-media img {
        width: 36px;
    }

    .ty-event-next {
        grid-column: 1 / -1;
        justify-self: start;
        margin-top: 8px;
    }
}

/* ============================================================
   REDUCED MOTION (accessibility kill-switch — keep last)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}
/* Specialist proof — homepage "why our specialists" cards (replaces the old
   orthodontist-vs-dentist tab table; proves specialism with hard credentials). */
.spec-proof {
    margin-top: 120px;
}

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

.spec-proof-head .section-title {
    margin: 12px 0 20px;
}

.spec-proof-head p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text);
}

.spec-proof-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.spec-card {
    padding: 80px 63px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
    background: linear-gradient(180deg, #F8FBFC 0%, #F4F9FA 100%);
}

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

.spec-card h3 {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--teal);
    margin: 0;
}

.spec-card p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    margin: 0;
}

@media (max-width: 900px) {
    .spec-proof-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }
}
