/* ============================================
   TRIBECA PARK DERMATOLOGY — V2
   Design direction: luxury-refined editorial
   ============================================ */

/* --- Font Faces --- */
@font-face {
    font-family: "Beausite Slick";
    font-weight: 100;
    font-style: normal;
    font-display: swap;
    src: url('../fonts/BeausiteSlick-Thin.woff2') format('woff2'),
         url('../fonts/BeausiteSlick-Thin.woff') format('woff'),
         url('../fonts/BeausiteSlick-Thin.ttf') format('truetype');
}

@font-face {
    font-family: "Beausite Slick";
    font-weight: 300;
    font-style: normal;
    font-display: swap;
    src: url('../fonts/BeausiteSlick-Light.woff2') format('woff2'),
         url('../fonts/BeausiteSlick-Light.woff') format('woff'),
         url('../fonts/BeausiteSlick-Light.ttf') format('truetype');
}

@font-face {
    font-family: "Basis Grotesque";
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    src: url('../fonts/Basis Grotesque Pro Regular.woff2') format('woff2'),
         url('../fonts/Basis Grotesque Pro Regular.otf') format('opentype');
}

@font-face {
    font-family: "Basis Grotesque";
    font-weight: 300;
    font-style: normal;
    font-display: swap;
    src: url('../fonts/Basis Grotesque Pro Light.woff2') format('woff2'),
         url('../fonts/Basis Grotesque Pro Light.otf') format('opentype');
}

@font-face {
    font-family: "Basis Grotesque";
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    src: url('../fonts/Basis Grotesque Pro Medium.woff2') format('woff2'),
         url('../fonts/Basis Grotesque Pro Medium.otf') format('opentype');
}

@font-face {
    font-family: "Basis Grotesque";
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    src: url('../fonts/Basis Grotesque Pro Bold.woff2') format('woff2'),
         url('../fonts/Basis Grotesque Pro Bold.otf') format('opentype');
}

@font-face {
    font-family: "Basis Grotesque";
    font-weight: 400;
    font-style: italic;
    font-display: swap;
    src: url('../fonts/Basis Grotesque Pro Regular Italic.woff2') format('woff2'),
         url('../fonts/Basis Grotesque Pro Regular Italic.otf') format('opentype');
}

/* --- Design Tokens --- */
:root {
    /* Palette */
    --navy: #1a1a1a;
    --navy-light: #2a2a2a;
    --ivory: #FAF7F2;
    --ivory-dark: #F0EDE6;
    --sage: #A39081;
    --sage-light: #baa89a;
    --gold: #C5A467;
    --gold-light: #d4ba88;
    --gold-dim: rgba(197, 164, 103, 0.12);
    --white: #FFFFFF;
    --gray-900: #1a1a1a;
    --gray-700: #3d3d3d;
    --gray-500: #6b6b6b;
    --gray-300: #c2c0bc;
    --gray-100: #EEECEB;

    /* Typography */
    --font-heading: 'EB Garamond', 'Times New Roman', Times, serif;
    --font-body: 'Basis Grotesque', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-ui: 'Basis Grotesque', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    /* Spacing tokens */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 8rem;

    /* Motion */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration: 0.4s;
    --duration-fast: 0.2s;
    --duration-slow: 0.7s;

    /* Elevation (color-tinted shadows) */
    --shadow-sm: 0 1px 3px rgba(163, 144, 129, 0.08), 0 1px 2px rgba(163, 144, 129, 0.06);
    --shadow-md: 0 4px 16px rgba(163, 144, 129, 0.10), 0 2px 4px rgba(163, 144, 129, 0.06);
    --shadow-lg: 0 12px 40px rgba(163, 144, 129, 0.12), 0 4px 12px rgba(163, 144, 129, 0.08);
    --shadow-xl: 0 24px 60px rgba(163, 144, 129, 0.16), 0 8px 20px rgba(163, 144, 129, 0.10);
    --shadow-float: 0 32px 80px rgba(26, 26, 26, 0.18), 0 12px 28px rgba(163, 144, 129, 0.08);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--gray-900);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--duration-fast) var(--ease-out-expo);
}

a:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 2px;
}

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

ul { list-style: none; }

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

button:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* --- Grain Overlay (subtle texture) --- */
.grain-svg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.028;
    mix-blend-mode: multiply;
}

/* ============================================
   REVEAL ANIMATIONS — staggered entrance
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   SECTION SHARED STYLES
   ============================================ */
.section-label {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--gold);
    margin-bottom: var(--space-sm);
    position: relative;
    padding-left: 36px;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 24px;
    height: 1px;
    background-color: var(--gold);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--navy);
}

.section-intro {
    margin-bottom: var(--space-lg);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    font-family: var(--font-ui);
    display: inline-block;
    padding: 16px 40px;
    background-color: var(--gold);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    border-radius: 0;
    transition: background-color var(--duration) var(--ease-out-expo),
                transform var(--duration-fast) var(--ease-out-expo),
                box-shadow var(--duration) var(--ease-out-expo);
}

.btn-primary:hover {
    background-color: var(--navy);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-primary:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.btn-outline {
    font-family: var(--font-ui);
    display: inline-block;
    padding: 16px 40px;
    background-color: transparent;
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid rgba(255,255,255,0.35);
    transition: transform var(--duration-fast) var(--ease-out-expo),
                background-color var(--duration) var(--ease-out-expo),
                color var(--duration) var(--ease-out-expo),
                border-color var(--duration) var(--ease-out-expo);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--navy);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-outline:active {
    transform: translateY(0);
}

.btn-outline:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.btn-small {
    padding: 11px 20px;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
}

/* ============================================
   HEADER / NAV
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    transition: background-color var(--duration) var(--ease-out-expo),
                box-shadow var(--duration) var(--ease-out-expo);
    padding-top: 0;
}

.header.scrolled {
    background-color: var(--white);
    box-shadow: 0 1px 0 rgba(163, 144, 129, 0.12);
    padding-top: 0;
}

.header.scrolled .logo-img {
    filter: invert(1);
    opacity: 0.55;
    height: 52px;
    max-width: min(300px, 34vw);
}

.header.scrolled .hamburger span {
    background-color: #777777;
}

.nav {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: var(--space-sm) 12px;
    width: 100%;
    max-width: none;
    margin: 0;
}

.logo {
    display: flex;
    align-items: center;
    justify-self: center;
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    justify-self: end;
}

.nav-desktop-link {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #F5F5F5;
    position: relative;
    transition: color var(--duration-fast) var(--ease-out-expo);
    white-space: nowrap;
    padding: 4px 0;
}

.nav-desktop-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--gold);
    transition: width var(--duration) var(--ease-out-expo);
}

.nav-desktop-link:hover::after {
    width: 100%;
}

.nav-desktop-link:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

.header.scrolled .nav-desktop-link {
    color: #777777;
}

.header.scrolled .nav-desktop-link:hover {
    color: var(--gray-900);
}

.logo-img {
    height: clamp(96px, 9vw, 180px);
    width: auto;
    max-width: min(560px, 54vw);
    transition: filter var(--duration) var(--ease-out-expo),
                opacity var(--duration) var(--ease-out-expo),
                height var(--duration) var(--ease-out-expo),
                max-width var(--duration) var(--ease-out-expo);
    object-fit: contain;
}

.header.scrolled .nav {
    padding: 10px 12px;
}

/* ============================================
   MEGA-MENU: TREATMENTS
   ============================================ */
.nav-mega {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-mega-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 4px 0;
    cursor: pointer;
    /* Match sibling .nav-desktop-link exactly — buttons need explicit font props
       so browser button defaults don't bleed through. */
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1;
    color: inherit;
}

.nav-mega-caret {
    transition: transform var(--duration-fast) var(--ease-out-expo);
    opacity: 0.85;
}

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

/* Underline rule for the trigger matches other nav links */
.nav-mega-trigger::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--gold);
    transition: width var(--duration) var(--ease-out-expo);
}

.nav-mega-trigger:hover::after,
.nav-mega-trigger[aria-expanded="true"]::after {
    width: 100%;
}

/* The full-width drop panel sits inside .header but escapes nav grid */
.nav-mega-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    border-top: 1px solid rgba(163, 144, 129, 0.16);
    box-shadow: 0 24px 56px -28px rgba(26, 26, 26, 0.22),
                0 1px 0 rgba(163, 144, 129, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity var(--duration) var(--ease-out-expo),
                visibility var(--duration) var(--ease-out-expo),
                transform var(--duration) var(--ease-out-expo);
    z-index: 999;
    overflow: hidden;
    pointer-events: none;
}

.nav-mega-panel[hidden] {
    /* Use display:none only when fully closed for screen readers; CSS handles transition */
    display: block;
}

.nav-mega-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-mega-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: var(--space-xl) clamp(28px, 5vw, 64px) var(--space-xl);
}

/* Decorative top accent — subtle gold rule that ties to brand */
.nav-mega-inner::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: var(--gold);
    margin-bottom: var(--space-lg);
    opacity: 0.7;
}

.nav-mega-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: clamp(20px, 2.4vw, 40px);
    align-items: start;
}

.nav-mega-col {
    min-width: 0;
}

.nav-mega-title {
    font-family: var(--font-ui);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--navy);
    margin: 0 0 var(--space-md) 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(163, 144, 129, 0.22);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.nav-mega-count {
    font-family: var(--font-ui);
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--sage);
    opacity: 0.85;
}

.nav-mega-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-mega-list li {
    margin: 0;
}

.nav-mega-list a {
    display: block;
    font-family: "EB Garamond", Georgia, serif;
    font-size: 1.0625rem;
    font-weight: 400;
    color: var(--gray-900);
    letter-spacing: -0.005em;
    line-height: 1.3;
    padding: 8px 0;
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out-expo),
                padding-left var(--duration-fast) var(--ease-out-expo);
    position: relative;
}

.nav-mega-list a::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    width: 4px;
    height: 1px;
    background: var(--gold);
    opacity: 0;
    transform: translateY(-50%) scaleX(0);
    transform-origin: left center;
    transition: opacity var(--duration-fast) var(--ease-out-expo),
                transform var(--duration-fast) var(--ease-out-expo);
}

.nav-mega-list a:hover,
.nav-mega-list a:focus-visible {
    color: var(--navy);
    padding-left: 8px;
}

.nav-mega-list a:hover::before,
.nav-mega-list a:focus-visible::before {
    opacity: 1;
    transform: translateY(-50%) scaleX(1);
}

.nav-mega-list a:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: 2px;
}

/* When header is in initial transparent state over hero, the trigger uses light text */
.header:not(.scrolled) .nav-mega-trigger {
    color: #F5F5F5;
}

.header.scrolled .nav-mega-trigger {
    color: #777777;
}

.header.scrolled .nav-mega-trigger:hover {
    color: var(--gray-900);
}

/* Tablet breakpoint: 4 columns (Skin Resurfacing keeps single col, Additional wraps) */
@media (max-width: 1180px) {
    .nav-mega-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 960px) {
    .nav-mega-grid {
        grid-template-columns: repeat(3, 1fr);
        row-gap: var(--space-lg);
    }
}

/* Hide entire desktop mega-menu trigger and panel on mobile — use slide-out instead */
@media (max-width: 768px) {
    .nav-mega,
    .nav-mega-panel {
        display: none !important;
    }
}

/* Mobile slide-out: Treatments accordion (nested <details> per category) */
.nav-mobile-treatments {
    width: 100%;
}

.nav-mobile-treatments > summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.nav-mobile-treatments > summary::-webkit-details-marker {
    display: none;
}

.nav-mobile-treatments > summary svg {
    transition: transform var(--duration-fast) var(--ease-out-expo);
    opacity: 0.7;
}

.nav-mobile-treatments[open] > summary svg {
    transform: rotate(180deg);
}

/* Each category is its own collapsible accordion */
.nav-mobile-cat {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-mobile-cat:last-of-type {
    border-bottom: none;
}

.nav-mobile-cat > summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 14px 0;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    transition: color var(--duration-fast) var(--ease-out-expo);
}

.nav-mobile-cat > summary::-webkit-details-marker {
    display: none;
}

.nav-mobile-cat > summary:hover,
.nav-mobile-cat[open] > summary {
    color: var(--white);
}

.nav-mobile-cat-title {
    flex: 1;
}

.nav-mobile-cat-count {
    font-family: var(--font-ui);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--gold);
    opacity: 0.8;
    margin-right: 4px;
}

.nav-mobile-cat > summary svg {
    transition: transform var(--duration-fast) var(--ease-out-expo);
    opacity: 0.6;
    flex-shrink: 0;
}

.nav-mobile-cat[open] > summary svg {
    transform: rotate(180deg);
    opacity: 1;
}

.nav-mobile-cat-list {
    list-style: none;
    margin: 0;
    padding: 4px 0 16px var(--space-md);
    border-left: 1px solid rgba(197, 164, 103, 0.25);
    margin-left: 8px;
}

.nav-mobile-cat-list li {
    margin: 0;
}

.nav-mobile-cat-list a {
    display: block;
    font-family: "EB Garamond", Georgia, serif;
    font-size: 1.0625rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 8px 0 8px 14px;
    line-height: 1.3;
    transition: color var(--duration-fast) var(--ease-out-expo),
                padding-left var(--duration-fast) var(--ease-out-expo);
}

.nav-mobile-cat-list a:hover,
.nav-mobile-cat-list a:focus-visible {
    color: var(--white);
    padding-left: 18px;
}

.nav-mobile-cat-list a:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Overlay & slide-out */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration) var(--ease-out-expo),
                visibility var(--duration) var(--ease-out-expo);
    z-index: 1001;
}

.nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

.nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 360px;
    height: 100vh;
    height: 100dvh;
    background-color: #141414;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-2xl) var(--space-lg);
    gap: 0;
    transform: translateX(-100%);
    transition: transform 0.5s var(--ease-out-expo);
    z-index: 1002;
    overflow-y: auto;
}

.nav-links.open {
    transform: translateX(0);
}

.nav-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    color: rgba(255, 255, 255, 0.4);
    padding: 8px;
    transition: color var(--duration-fast) var(--ease-out-expo),
                transform var(--duration-fast) var(--ease-out-expo);
    background: none;
    border: none;
    cursor: pointer;
}

.nav-close:hover {
    color: var(--white);
    transform: rotate(90deg);
}

.nav-link {
    font-family: var(--font-ui);
    font-size: 1.15rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.25rem;
    color: rgba(255, 255, 255, 0.55);
    position: relative;
    transition: color var(--duration-fast) var(--ease-out-expo),
                padding-left var(--duration) var(--ease-out-expo);
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    width: 100%;
}

.nav-link:hover {
    color: var(--white);
    padding-left: 8px;
}

.nav-link::after { display: none; }

.btn-book {
    font-family: var(--font-ui);
    display: inline-block;
    padding: 16px 36px;
    background-color: var(--gold);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    transition: background-color var(--duration-fast) var(--ease-out-expo),
                transform var(--duration-fast) var(--ease-out-expo);
    margin-top: var(--space-lg);
    text-align: center;
}

.btn-book:hover {
    background-color: var(--gold-light);
    transform: translateY(-1px);
}

.btn-book:active {
    transform: translateY(0);
}

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
    justify-self: start;
    transition: transform var(--duration-fast) var(--ease-out-expo);
}

.hamburger:hover {
    transform: scale(1.08);
}

.hamburger:active {
    transform: scale(0.95);
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #F5F5F5;
    transition: transform var(--duration) var(--ease-out-expo),
                opacity var(--duration-fast) var(--ease-out-expo),
                background-color var(--duration-fast) var(--ease-out-expo);
}

.hamburger span:nth-child(2) {
    width: 16px;
    align-self: flex-start;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--navy);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-exterior-1600.jpg') center/cover no-repeat;
    background-image: image-set(
        url('../images/hero-exterior-1600.jpg') 1x,
        url('../images/hero-exterior-2400.jpg') 2x
    );
    opacity: 0;
    transform: translateY(70px);
    will-change: transform, opacity;
    z-index: 0;
    animation: heroEntrance 2.6s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

@keyframes heroEntrance {
    to {
        opacity: 0.55;
        transform: translateY(0);
    }
}

/* Respect reduced-motion preference: skip the animation, show final state */
@media (prefers-reduced-motion: reduce) {
    .hero::before {
        opacity: 0.55;
        transform: none;
        animation: none;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(197, 164, 103, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(163, 144, 129, 0.08) 0%, transparent 50%),
        linear-gradient(160deg, rgba(20,20,20,0.6) 0%, rgba(30,30,30,0.2) 45%, rgba(20,20,20,0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: var(--space-2xl) var(--space-md);
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-rule {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(197, 164, 103, 0.6), transparent);
    margin-bottom: var(--space-md);
    opacity: 0;
    animation: fadeIn 1s var(--ease-out-expo) 0.2s forwards;
}

.hero-rule--bottom {
    margin-bottom: 0;
    margin-top: var(--space-sm);
    opacity: 0;
    animation: fadeIn 1s var(--ease-out-expo) 0.6s forwards;
}

.hero-title {
    font-family: "Beausite Slick", Times, serif;
    font-size: clamp(2rem, 4.2vw, 4rem);
    font-weight: 100;
    line-height: 1.55;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.55rem;
    margin-bottom: var(--space-lg);
    opacity: 0;
    animation: fadeUp 1s var(--ease-out-expo) 0.4s forwards;
    white-space: nowrap;
}

.hero-title span {
    display: block;
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out-expo) 0.9s forwards;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeIn 1s var(--ease-out-expo) 1.4s forwards;
}

.hero-scroll-indicator span {
    font-family: var(--font-ui);
    font-size: 0.6rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: rgba(255,255,255,0.35);
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(197, 164, 103, 0.5), transparent);
    animation: scrollPulse 2.5s var(--ease-out-expo) infinite;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 0.8; transform: scaleY(1.15); }
}

/* ============================================
   WHY CHOOSE US
   ============================================ */
.why-us {
    padding: var(--space-2xl) 0;
    background-color: var(--white);
    position: relative;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.why-card {
    padding: var(--space-lg) var(--space-md);
    border: 1px solid var(--gray-100);
    position: relative;
    transition: transform var(--duration) var(--ease-out-expo),
                box-shadow var(--duration) var(--ease-out-expo),
                border-color var(--duration) var(--ease-out-expo);
}

.why-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--sage-light));
    transition: width var(--duration-slow) var(--ease-out-expo);
}

.why-card:hover {
    border-color: var(--gold-dim);
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

.why-card:hover::after {
    width: 100%;
}

.why-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--sage);
    display: block;
    margin-bottom: var(--space-sm);
    line-height: 1;
    opacity: 0.5;
}

.why-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 400;
    margin-bottom: var(--space-sm);
    color: var(--navy);
    letter-spacing: -0.01em;
}

.why-card p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--gray-500);
}

/* Stats Bar */
.stats-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    padding: var(--space-lg);
    background: linear-gradient(135deg, #1a1a1a 0%, #242424 50%, #1a1a1a 100%);
    gap: var(--space-md);
    position: relative;
    overflow: hidden;
}

.stats-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(197, 164, 103, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.stat {
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--gold);
    display: block;
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.stat-text {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.5);
    line-height: 1.5;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(197, 164, 103, 0.2), transparent);
}

/* ============================================
   SERVICES
   ============================================ */
.services {
    padding: var(--space-2xl) 0;
    background-color: var(--ivory);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: radial-gradient(ellipse at 100% 0%, rgba(197, 164, 103, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.services-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--gray-300);
    margin-bottom: var(--space-lg);
    position: relative;
}

.tab-btn {
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gray-500);
    background: none;
    border: none;
    position: relative;
    transition: color var(--duration-fast) var(--ease-out-expo);
}

.tab-btn:hover {
    color: var(--navy);
}

.tab-btn.active {
    color: var(--navy);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--gold);
    transform: scaleX(0);
    transition: transform var(--duration) var(--ease-out-expo);
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-btn:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s var(--ease-out-expo);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
}

.service-card {
    padding: var(--space-md);
    background-color: var(--white);
    border: 1px solid transparent;
    position: relative;
    transition: transform var(--duration) var(--ease-out-expo),
                box-shadow var(--duration) var(--ease-out-expo),
                border-color var(--duration) var(--ease-out-expo);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 0;
    background: var(--gold);
    transition: height var(--duration-slow) var(--ease-out-expo);
}

.service-card:hover {
    border-color: rgba(163, 144, 129, 0.15);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.service-card:hover::before {
    height: 100%;
}

/* Linked service cards (treatment detail pages) */
.service-card--link {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.service-card-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: var(--space-sm);
    font-family: "Basis Grotesque", system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    transition: gap var(--duration) var(--ease-out-expo),
                color var(--duration) var(--ease-out-expo);
}

.service-card--link:hover .service-card-more {
    gap: 12px;
    color: var(--navy);
}

.service-card-more svg {
    transition: transform var(--duration) var(--ease-out-expo);
}

.service-card--link:hover .service-card-more svg {
    transform: translateX(2px);
}

.service-icon {
    width: 40px;
    height: 40px;
    color: var(--sage);
    margin-bottom: var(--space-sm);
    transition: color var(--duration-fast) var(--ease-out-expo);
}

.service-card:hover .service-icon {
    color: var(--gold);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 400;
    margin-bottom: var(--space-xs);
    color: var(--navy);
    letter-spacing: -0.01em;
}

.service-card p {
    font-size: 0.85rem;
    line-height: 1.65;
    color: var(--gray-500);
}

.services-cta {
    text-align: center;
    margin-top: var(--space-lg);
}

/* Medical Tab */
.medical-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-lg);
    align-items: start;
}

.medical-intro {
    grid-column: 1;
    grid-row: 1;
}

.conditions-grid {
    grid-column: 2;
    grid-row: 1;
}

.medical-fee-pricing {
    grid-column: 1 / -1;
    grid-row: 2;
}

/* Pricing Tab */
/* Pricing tab — editorial price index */
.pricing-index {
    max-width: 920px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    padding: var(--space-xl) var(--space-xl) var(--space-lg);
}

.pricing-index-head {
    border-bottom: 1px solid rgba(163, 144, 129, 0.22);
    padding-bottom: var(--space-md);
    margin-bottom: var(--space-lg);
}

.pricing-index-head h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--navy);
    letter-spacing: -0.01em;
    margin: 0 0 8px 0;
}

.pricing-index-head p {
    font-family: "EB Garamond", Georgia, serif;
    font-size: 1.0625rem;
    line-height: 1.55;
    color: var(--gray-500);
    margin: 0;
    max-width: 60ch;
}

.pricing-index-section {
    margin-bottom: var(--space-lg);
}

.pricing-index-section:last-of-type {
    margin-bottom: 0;
}

.pricing-index-label {
    display: flex;
    align-items: baseline;
    gap: 12px;
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--navy);
    margin: 0 0 var(--space-sm) 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(163, 144, 129, 0.18);
}

.pricing-index-label em {
    font-style: normal;
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--sage);
    opacity: 0.85;
    margin-left: auto;
}

.pricing-index-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: var(--space-xl);
    row-gap: 0;
}

.pricing-index-list li {
    margin: 0;
}

.pricing-index-list a {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 12px 0;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(163, 144, 129, 0.1);
    transition: padding-left var(--duration-fast) var(--ease-out-expo);
}

.pricing-index-list li:last-child a,
.pricing-index-list li:nth-last-child(2):nth-child(odd) a {
    /* keep the last visible row in each column without a hanging border */
}

.pricing-index-list a:hover,
.pricing-index-list a:focus-visible {
    padding-left: 6px;
}

.pricing-index-list a:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: 2px;
}

.pricing-index-name {
    font-family: "EB Garamond", Georgia, serif;
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--navy);
    letter-spacing: -0.005em;
    line-height: 1.25;
    transition: color var(--duration-fast) var(--ease-out-expo);
}

.pricing-index-list a:hover .pricing-index-name,
.pricing-index-list a:focus-visible .pricing-index-name {
    color: var(--gold);
}

.pricing-index-leader {
    flex: 1;
    height: 0;
    border-bottom: 1px dotted rgba(163, 144, 129, 0.55);
    transform: translateY(-4px);
    min-width: 16px;
}

.pricing-index-price {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 400;
    color: var(--navy);
    letter-spacing: -0.005em;
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
    flex-shrink: 0;
}

.pricing-index-price small {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sage);
    margin-top: 2px;
    opacity: 0.85;
}

.pricing-index-foot {
    margin-top: var(--space-xl);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(163, 144, 129, 0.22);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.pricing-index-foot p {
    font-family: "EB Garamond", Georgia, serif;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--gray-500);
    margin: 0;
    max-width: 56ch;
    flex: 1;
    min-width: 280px;
}

.pricing-index-foot .btn-primary {
    flex-shrink: 0;
}

@media (max-width: 760px) {
    .pricing-index {
        padding: var(--space-lg) var(--space-md);
    }
    .pricing-index-list {
        grid-template-columns: 1fr;
        column-gap: 0;
    }
    .pricing-index-foot {
        flex-direction: column;
        align-items: stretch;
    }
    .pricing-index-foot .btn-primary {
        text-align: center;
    }
}

.medical-intro h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--navy);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
}

.medical-intro p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--gray-500);
    margin-bottom: var(--space-md);
}

.medical-philosophy {
    margin: 0 0 var(--space-md);
    padding: var(--space-md) var(--space-md) var(--space-md) calc(var(--space-md) + 2px);
    border-left: 2px solid var(--gold);
    background: rgba(197, 164, 103, 0.06);
    box-shadow:
        0 1px 2px rgba(26, 30, 40, 0.04),
        0 12px 32px rgba(139, 120, 99, 0.06);
}

.medical-philosophy p {
    margin: 0;
    font-family: "EB Garamond", Georgia, serif;
    font-size: 1.0625rem;
    font-style: italic;
    line-height: 1.65;
    color: var(--navy);
}

.medical-fee-pricing {
    margin-top: var(--space-xs);
    padding: var(--space-lg) var(--space-lg);
    background: var(--white);
    border: 1px solid var(--gray-100);
    box-shadow:
        0 1px 2px rgba(26, 30, 40, 0.04),
        0 16px 40px rgba(139, 120, 99, 0.08);
}

.medical-fee-heading {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--navy);
    margin: 0 0 var(--space-xs);
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(163, 144, 129, 0.22);
}

.medical-fee-lede {
    margin: 0 0 var(--space-md);
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--gray-500);
    max-width: 62ch;
}

.medical-fee-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.medical-fee-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(163, 144, 129, 0.12);
    font-variant-numeric: tabular-nums;
}

.medical-fee-item:last-child {
    border-bottom: none;
}

.medical-fee-name {
    font-family: "EB Garamond", Georgia, serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--navy);
    letter-spacing: -0.01em;
    line-height: 1.4;
    max-width: min(420px, 55vw);
}

.medical-fee-name-sub {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: none;
    color: var(--gray-500);
    margin-top: 4px;
    line-height: 1.45;
}

.medical-fee-value {
    flex-shrink: 0;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--navy);
    text-align: right;
    letter-spacing: -0.015em;
}

.medical-fee-value sup {
    font-size: 0.55em;
    font-family: var(--font-ui);
    font-weight: 500;
    color: var(--sage);
    margin-left: 1px;
}

.medical-fee-item--compound {
    flex-wrap: wrap;
}

.medical-fee-item--compound > .medical-fee-name {
    flex: 1 1 200px;
    max-width: 100%;
}

.medical-fee-tiers {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1 1 200px;
    min-width: 180px;
    text-align: right;
}

.medical-fee-tiers > li {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    gap: 12px;
    padding: 4px 0;
    flex-wrap: wrap;
}

.medical-fee-tier-label {
    font-family: var(--font-ui);
    font-size: 0.74rem;
    font-weight: 400;
    color: var(--gray-500);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.medical-fee-tier-value {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--navy);
    font-variant-numeric: tabular-nums;
}

.medical-fee-tier-value sup {
    font-size: 0.55em;
    font-family: var(--font-ui);
    color: var(--sage);
    margin-left: 1px;
}

.medical-fee-footnotes {
    margin: var(--space-md) 0 0;
    padding: var(--space-md) 0 0;
    border-top: 1px solid rgba(163, 144, 129, 0.18);
    list-style: none;
    counter-reset: fee-note;
}

.medical-fee-footnotes > li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 10px;
    font-family: var(--font-ui);
    font-size: 0.74rem;
    line-height: 1.55;
    color: var(--gray-500);
}

.medical-fee-footnotes > li:last-child {
    margin-bottom: 0;
}

.medical-fee-fn-mark {
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 600;
    color: var(--sage);
}

.conditions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.condition-tag {
    padding: 10px 20px;
    background-color: var(--white);
    border: 1px solid var(--gray-300);
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--navy);
    transition: transform var(--duration-fast) var(--ease-spring),
                background-color var(--duration) var(--ease-out-expo),
                border-color var(--duration) var(--ease-out-expo),
                color var(--duration) var(--ease-out-expo);
}

.condition-tag:hover {
    border-color: var(--gold);
    background-color: var(--gold);
    color: var(--white);
    transform: translateY(-2px);
}

/* ============================================
   PHYSICIANS
   ============================================ */
.physicians {
    padding: var(--space-2xl) 0;
    background-color: var(--white);
}

.physicians-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-sm);
}

.physician-card {
    border: 1px solid var(--gray-100);
    overflow: hidden;
    transition: transform var(--duration) var(--ease-out-expo),
                box-shadow var(--duration) var(--ease-out-expo);
}

.physician-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-6px);
}

.physician-photo {
    aspect-ratio: 3/4;
    background-color: var(--navy);
    overflow: hidden;
    position: relative;
}

.physician-photo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.3), transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--duration) var(--ease-out-expo);
}

.physician-card:hover .physician-photo::after {
    opacity: 1;
}

.physician-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out-expo);
}

.physician-card:hover .physician-photo img {
    transform: scale(1.05);
}

.physician-info {
    padding: var(--space-sm);
}

.physician-info h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--navy);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.physician-role {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    color: var(--gold);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-sm);
}

.physician-credentials {
    list-style: none;
}

.physician-credentials li {
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--gray-500);
    padding-left: 14px;
    position: relative;
    margin-bottom: 4px;
}

.physician-credentials li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--sage);
    opacity: 0.6;
}

.physician-read-more {
    margin-top: var(--space-sm);
    font-family: var(--font-ui);
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    background: none;
    border: none;
    padding: 8px 0;
    cursor: pointer;
    position: relative;
    transition: color var(--duration-fast) var(--ease-out-expo);
}

.physician-read-more::after {
    content: '→';
    margin-left: 6px;
    transition: transform var(--duration-fast) var(--ease-out-expo);
    display: inline-block;
}

.physician-read-more:hover {
    color: var(--navy);
}

.physician-read-more:hover::after {
    transform: translateX(3px);
}

.physician-read-more:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

/* Bio Modal */
.bio-modal {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration) var(--ease-out-expo),
                visibility var(--duration) var(--ease-out-expo);
}

.bio-modal.open {
    opacity: 1;
    visibility: visible;
}

.bio-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.bio-panel {
    position: relative;
    background: var(--white);
    max-width: 720px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: var(--space-lg) var(--space-lg) var(--space-md);
    box-shadow: var(--shadow-float);
    transform: translateY(16px) scale(0.98);
    transition: transform var(--duration) var(--ease-out-expo);
}

.bio-modal.open .bio-panel {
    transform: translateY(0) scale(1);
}

.bio-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--gray-500);
    padding: 8px;
    cursor: pointer;
    transition: color var(--duration-fast) var(--ease-out-expo),
                transform var(--duration-fast) var(--ease-out-expo);
    z-index: 2;
}

.bio-close:hover {
    color: var(--navy);
    transform: rotate(90deg);
}

.bio-close:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.bio-header {
    display: flex;
    gap: var(--space-md);
    align-items: center;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--gray-100);
}

.bio-header img {
    width: 96px;
    height: 120px;
    object-fit: cover;
    flex-shrink: 0;
}

.bio-header h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--navy);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.bio-header .physician-role {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    color: var(--gold);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.bio-body p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--gray-700);
    margin-bottom: var(--space-sm);
}

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

@media (max-width: 600px) {
    .bio-panel {
        padding: var(--space-md);
    }
    .bio-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    .bio-header img {
        width: 80px;
        height: 100px;
    }
    .bio-header h3 {
        font-size: 1.4rem;
    }
}

/* ============================================
   TRUST / CREDIBILITY
   ============================================ */
.trust {
    padding: var(--space-2xl) 0;
    background-color: var(--ivory);
    position: relative;
    overflow: hidden;
}

.trust::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(197, 164, 103, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.trust-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.trust-quote {
    margin-top: var(--space-md);
    padding-left: var(--space-md);
    border-left: 2px solid var(--gold);
}

.trust-quote p {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--navy);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
}

.trust-quote cite {
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-style: normal;
    color: var(--gray-500);
    letter-spacing: 0.5px;
}

.trust-affiliations h4 {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gray-500);
    margin-bottom: var(--space-sm);
}

.trust-affiliations h4:not(:first-child) {
    margin-top: var(--space-md);
}

.affiliation-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.affiliation-list--single {
    grid-template-columns: 1fr;
}

.affiliation {
    padding: var(--space-sm);
    background-color: var(--white);
    border: 1px solid var(--gray-100);
    transition: transform var(--duration-fast) var(--ease-out-expo),
                box-shadow var(--duration) var(--ease-out-expo);
}

.affiliation:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.affiliation-name {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--navy);
    letter-spacing: -0.01em;
}

.affiliation-detail {
    font-size: 0.72rem;
    color: var(--gray-500);
    letter-spacing: 0.5px;
}

.cert-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cert-badge {
    padding: 8px 16px;
    background-color: var(--white);
    border: 1px solid var(--sage);
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--navy);
    transition: transform var(--duration-fast) var(--ease-spring),
                background-color var(--duration) var(--ease-out-expo),
                color var(--duration) var(--ease-out-expo);
}

.cert-badge:hover {
    background-color: var(--sage);
    color: var(--white);
    transform: translateY(-1px);
}

/* ============================================
   LOCATION & CONTACT
   ============================================ */
.location {
    padding: var(--space-2xl) 0;
    background-color: var(--white);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-xl);
    align-items: start;
}

.location-details {
    margin-top: var(--space-md);
}

.detail-block {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--gray-100);
}

.detail-block:last-child {
    border-bottom: none;
}

.detail-block h4 {
    font-family: var(--font-ui);
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 4px;
}

.detail-block p {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--gray-700);
}

.detail-block a {
    color: var(--navy);
    transition: color var(--duration-fast) var(--ease-out-expo);
}

.detail-block a:hover {
    color: var(--gold);
}

.google-map {
    width: 100%;
    height: 280px;
    margin-bottom: var(--space-md);
    background: var(--gray-100);
    z-index: 0;
}

/* Billing Contact */
.billing-contact-wrap h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--navy);
    margin-bottom: var(--space-md);
    letter-spacing: -0.01em;
}

.billing-contact-wrap h4 {
    font-family: var(--font-ui);
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    margin: var(--space-md) 0 var(--space-xs);
}

.billing-block p {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--gray-700);
    margin-bottom: var(--space-sm);
}

.billing-block a {
    color: var(--navy);
    transition: color var(--duration-fast) var(--ease-out-expo);
}

.billing-block a:hover {
    color: var(--gold);
}

.insurance-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 14px;
    padding: 0;
    margin: 0 0 var(--space-sm);
}

.insurance-list li {
    font-size: 0.85rem;
    color: var(--gray-700);
}

.insurance-note {
    font-size: 0.82rem;
    line-height: 1.65;
    color: var(--gray-500);
}

/* ============================================
   SPECIALS SIGNUP
   ============================================ */
.specials-signup {
    padding: var(--space-xl) 0;
    background: var(--ivory);
    border-top: 1px solid var(--ivory-dark);
    position: relative;
}

.specials-inner {
    max-width: 920px;
    margin: 0 auto;
}

.specials-inner h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--navy);
    margin-bottom: var(--space-md);
    letter-spacing: -0.01em;
}

.specials-form {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.specials-form input {
    flex: 1 1 240px;
    padding: 13px 16px;
    border: 1px solid var(--gray-300);
    background: var(--white);
    border-radius: 0;
    font-family: var(--font-ui);
    font-size: 0.88rem;
    color: var(--gray-900);
    transition: border-color var(--duration-fast) var(--ease-out-expo),
                box-shadow var(--duration) var(--ease-out-expo);
}

.specials-form input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-dim);
}

.specials-form input::placeholder {
    color: var(--gray-300);
}

/* ============================================
   KLARA WIDGET
   ============================================ */
.klara-widget {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 2000;
}

.klara-fab {
    font-family: var(--font-ui);
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--navy);
    color: #F5F5F5;
    border: 1px solid rgba(255,255,255,0.12);
    padding: 12px 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.7rem;
    font-weight: 500;
    box-shadow: var(--shadow-float);
    transition: transform var(--duration-fast) var(--ease-out-expo),
                border-color var(--duration-fast) var(--ease-out-expo),
                box-shadow var(--duration) var(--ease-out-expo);
}

.klara-fab:hover {
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 36px 90px rgba(26, 26, 26, 0.22), 0 14px 30px rgba(163, 144, 129, 0.1);
}

.klara-fab:active {
    transform: translateY(0);
}

.klara-fab svg {
    flex-shrink: 0;
}

.klara-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 26, 0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.klara-panel {
    position: fixed;
    right: 20px;
    bottom: 72px;
    width: min(360px, calc(100vw - 40px));
    background: #141414;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--shadow-float);
    padding: 20px;
    transform: translateY(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration) var(--ease-out-expo),
                transform var(--duration) var(--ease-out-expo);
}

.klara-panel.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.klara-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.klara-panel h4 {
    font-family: var(--font-ui);
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.3;
    margin: 0;
}

.klara-panel p {
    margin: 0 0 12px;
    color: rgba(255,255,255,0.65);
    font-size: 0.88rem;
    line-height: 1.6;
}

.klara-outline {
    border-color: rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.8);
}

.klara-outline:hover {
    background-color: rgba(255,255,255,0.08);
    color: var(--white);
    border-color: rgba(255,255,255,0.35);
}

.klara-close {
    background: transparent;
    border: 0;
    color: rgba(255,255,255,0.4);
    font-size: 1.35rem;
    line-height: 1;
    padding: 4px 6px;
    cursor: pointer;
    transition: color var(--duration-fast) var(--ease-out-expo),
                transform var(--duration-fast) var(--ease-out-expo);
}

.klara-close:hover {
    color: var(--white);
    transform: scale(1.1);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: linear-gradient(180deg, #1a1a1a 0%, #141414 100%);
    color: var(--white);
    padding: var(--space-xl) 0 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(197, 164, 103, 0.2), transparent);
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-logo-img {
    height: 40px;
    width: auto;
    display: block;
    margin-bottom: var(--space-sm);
    filter: brightness(0) saturate(100%) invert(68%) sepia(20%) saturate(600%) hue-rotate(6deg) brightness(95%) contrast(88%);
}

.footer-address {
    font-size: 0.8rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.35);
}

.footer-links {
    display: flex;
    gap: var(--space-xl);
}

.footer-links .link-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links h4 {
    font-family: var(--font-ui);
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: var(--space-xs);
}

.footer-links a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
    transition: color var(--duration-fast) var(--ease-out-expo),
                transform var(--duration-fast) var(--ease-out-expo);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) 0;
}

.footer-bottom p {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.25);
    letter-spacing: 0.5px;
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.footer-social a {
    color: rgba(255,255,255,0.3);
    transition: color var(--duration-fast) var(--ease-out-expo),
                transform var(--duration-fast) var(--ease-out-expo);
    display: flex;
    align-items: center;
    padding: 4px;
}

.footer-social a:hover {
    color: var(--gold);
    transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE: 1280px
   ============================================ */
@media (max-width: 1280px) {
    .physicians-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

/* ============================================
   RESPONSIVE: 1024px
   ============================================ */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2.25rem;
    }

    .why-us-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-sm);
    }

    .why-card {
        padding: var(--space-md);
    }

    .stats-bar {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-sm);
        padding: var(--space-md);
    }

    .stat-divider {
        display: none;
    }

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

    .medical-layout {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .medical-intro,
    .conditions-grid,
    .medical-fee-pricing {
        grid-column: 1;
        grid-row: auto;
    }

    .medical-fee-name {
        max-width: none;
    }

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

    .trust-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .location-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

/* ============================================
   RESPONSIVE: 768px
   ============================================ */
@media (max-width: 768px) {
    .header {
        padding-top: 32px;
    }

    .header.scrolled {
        padding-top: 0;
    }

    .nav-desktop {
        display: none;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-content {
        padding: calc(var(--space-2xl) + 40px) var(--space-md) var(--space-xl);
    }

    .hero-title {
        font-size: clamp(1.25rem, 3.2vw, 2rem);
        letter-spacing: 0.3rem;
        white-space: nowrap;
    }

    .why-us-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

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

    .services-tabs {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .services-tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        white-space: nowrap;
        padding: var(--space-sm);
        font-size: 0.75rem;
    }

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

    .affiliation-list {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: var(--space-md);
    }

    .footer-links .link-column {
        flex: 1 1 40%;
        min-width: 140px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }

    .nav-links {
        width: min(340px, 85vw);
    }

    .grain-svg {
        display: none;
    }

    .medical-fee-pricing {
        padding: var(--space-md) var(--space-sm);
    }

    .medical-fee-lede {
        margin-bottom: var(--space-sm);
    }

    .medical-fee-item {
        padding: 10px 0;
    }

    .medical-fee-item--compound .medical-fee-tiers > li {
        padding-top: 1px;
        padding-bottom: 1px;
    }

    .medical-fee-footnotes {
        margin-top: var(--space-sm);
        padding-top: var(--space-sm);
    }

    .medical-fee-footnotes > li {
        margin-bottom: 6px;
    }
}

/* Narrow phones: stack fee rows + tighten compound tier spacing (after 768 block so cascade wins) */
@media (max-width: 560px) {
    .medical-fee-item {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 7px 0;
    }

    .medical-fee-item--compound > .medical-fee-name {
        flex: 0 1 auto;
    }

    .medical-fee-item--compound .medical-fee-tiers {
        flex: 0 1 auto;
        min-width: 0;
    }

    .medical-fee-item--compound {
        flex-wrap: nowrap;
    }

    .medical-fee-value {
        text-align: left;
    }

    .medical-fee-tiers {
        text-align: left;
        width: 100%;
    }

    .medical-fee-tiers > li {
        justify-content: space-between;
        gap: 8px;
    }

    .medical-fee-item--compound .medical-fee-tiers > li:first-child {
        padding-top: 0;
    }

    .medical-fee-item--compound .medical-fee-tiers > li:last-child {
        padding-bottom: 0;
    }

    .medical-fee-pricing {
        padding: var(--space-sm) var(--space-xs);
    }

    .medical-fee-name-sub {
        margin-top: 2px;
    }
}

/* ============================================
   RESPONSIVE: 480px
   ============================================ */
@media (max-width: 480px) {
    :root {
        --space-md: 1.5rem;
        --space-lg: 3rem;
        --space-xl: 4rem;
        --space-2xl: 5rem;
    }

    .logo-img {
        height: 72px;
        max-width: min(280px, 60vw);
    }

    .header.scrolled .logo-img {
        height: 36px;
        max-width: min(240px, 52vw);
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-label {
        padding-left: 0;
    }

    .section-label::before {
        display: none;
    }

    .hero-title {
        font-size: clamp(1rem, 3.4vw, 1.5rem);
        letter-spacing: 0.25rem;
        white-space: nowrap;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-outline {
        width: 100%;
        text-align: center;
    }

    .hero-scroll-indicator {
        display: none;
    }

    .hero-rule {
        display: none;
    }

    .stats-bar {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-sm);
        padding: var(--space-md);
    }

    .stat-number {
        font-size: 2rem;
    }

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

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

    .physician-photo {
        aspect-ratio: 16/9;
    }

    .insurance-list {
        grid-template-columns: 1fr;
    }

    .physician-photo img[src*="meghan-obrien"] {
        object-position: center 20%;
    }

    .physician-photo img[src*="whitney-tan"] {
        object-position: center 22%;
    }

    .physician-photo img[src*="meera-tarazi"] {
        object-position: center 18%;
    }

    .why-number {
        font-size: 2rem;
    }

    .why-card h3 {
        font-size: 1.15rem;
    }

    .trust-quote p {
        font-size: 1.05rem;
    }

    .footer-links .link-column {
        flex: 1 1 100%;
    }

    .footer-logo-img {
        height: 32px;
    }
}
