/* ========================================
   1. VARIABLES & RESET
   ======================================== */
:root {
    --ivory: #FAF9F6;
    --obsidian: #0D0D0D;
    --titanium: #8A8D90;
    --gold: #A0CBE8;
    --gold-light: #C4DFF2;
    --slate: #2A2D32;
    --cream: #F5F3EE;
    --team-blue: #4A9FD4;
    --team-blue-dark: #3B82C4;
    --team-blue-light: #87CEEB;
}

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

html {
    overscroll-behavior: none;
    -webkit-overscroll-behavior: none;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--obsidian);
    color: var(--ivory);
    overflow-x: hidden;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    -webkit-tap-highlight-color: transparent;
}

a, button, .cta-button, .nav-cta, .download-model-btn {
    touch-action: manipulation;
}

@media (hover: none) and (pointer: coarse) {
    .cta-button:active, .nav-cta:active { transform: scale(0.97); opacity: 0.9; }
    .download-model-btn:active { opacity: 0.7; }
    .footer-links a:active { opacity: 0.6; }
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--obsidian); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }


/* ========================================
   2. TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4 {
    font-family: 'Inter', sans-serif;
    color: var(--ivory);
    line-height: 1.1;
}

h1 {
    font-size: clamp(3.2rem, 7vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.02;
}

h2 {
    font-size: clamp(2.6rem, 5.5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.08;
}

h3 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

h1 em, h2 em, h3 em {
    font-style: normal;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
}

.hero-eyebrow::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--gold);
}


/* ========================================
   3. NAVIGATION (shared all pages)
   ======================================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(13,13,13,0.97) 0%, rgba(13,13,13,0.8) 60%, transparent 100%);
    transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

nav.scrolled {
    background: rgba(13,13,13,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

/* Keep <picture> from changing the flex item's box sizing in the nav */
.nav-logo picture {
    display: contents;
}

.nav-logo-img {
    height: 200px;
    width: auto;
    display: block;
    margin: -75px 0;
    transition: opacity 0.3s ease;
}

.nav-logo:hover .nav-logo-img {
    opacity: 0.75;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--titanium);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--ivory);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--team-blue);
    border-radius: 1px;
}

/* FME link — no dot */

.nav-cta {
    padding: 0.6rem 1.3rem;
    background: linear-gradient(135deg, var(--team-blue-dark) 0%, var(--team-blue) 100%);
    border: none;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.25,0.46,0.45,0.94),
                box-shadow 0.3s cubic-bezier(0.25,0.46,0.45,0.94);
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(59,130,196,0.25);
    display: inline-flex;
    align-items: center;
}

.nav-cta:hover {
    background: linear-gradient(135deg, #4A9FD4 0%, #5BB5E8 100%);
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(74,159,212,0.5), 0 0 50px rgba(74,159,212,0.25), 0 8px 24px rgba(59,130,196,0.4);
}

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--ivory);
    border-radius: 2px;
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mobile-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: var(--slate);
    z-index: 999;
    padding: 6rem 2rem 2rem;
    transition: right 0.3s cubic-bezier(0.33,1,0.68,1);
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
}

.mobile-menu.open {
    right: 0;
}

.mobile-nav-link {
    display: block;
    padding: 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--titanium);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: color 0.2s ease;
}

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

.mobile-nav-link-fme::before {
    display: none;
}

.mobile-cta {
    margin-top: 1rem;
    text-align: center;
    justify-content: center;
}


/* ========================================
   4. FOOTER (shared all pages)
   ======================================== */
footer {
    background: var(--slate);
    padding: 4rem 8% 2rem;
    position: relative;
    z-index: 20;
}

.page-home footer {
    background: var(--obsidian);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col {}

.footer-logo-img {
    height: 216px;
    width: auto;
    display: block;
    margin: -75px 0 -70px -20px;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--titanium);
    line-height: 1.6;
}

.footer-heading {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ivory);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--titanium);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--team-blue);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--titanium);
}

.footer-disclaimer {
    font-size: 0.7rem !important;
    color: rgba(138,141,144,0.6) !important;
}


/* ========================================
   5. SCROLL ANIMATIONS (IntersectionObserver)
   ======================================== */
/* Content panels that slide in */
.content-panel {
    max-width: 480px;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.33,1,0.68,1),
                transform 0.8s cubic-bezier(0.33,1,0.68,1);
}

.content-panel.from-left {
    transform: translateX(-40px);
}

.content-panel.from-right {
    transform: translateX(40px);
    margin-left: auto;
    text-align: right;
}

.content-panel.visible {
    opacity: 1;
    transform: translateX(0);
}

.content-panel-center {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.33,1,0.68,1),
                transform 0.8s cubic-bezier(0.33,1,0.68,1);
}

.content-panel-center.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered child animations */
.content-panel > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.33,1,0.68,1),
                transform 0.6s cubic-bezier(0.33,1,0.68,1);
}

.content-panel.visible > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
.content-panel.visible > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.13s; }
.content-panel.visible > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.21s; }
.content-panel.visible > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.29s; }
.content-panel.visible > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.37s; }
.content-panel.visible > *:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 0.45s; }

/* Non-3D pages: data-animate panels */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.33,1,0.68,1),
                transform 0.8s cubic-bezier(0.33,1,0.68,1);
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* FME page overrides: intro-hidden elements controlled by JS, not IntersectionObserver */
.page-fme .intro-hidden {
    opacity: 0 !important;
    transform: translateY(50px) !important;
    transition: opacity 2.2s cubic-bezier(0.16,1,0.3,1),
                transform 2.2s cubic-bezier(0.16,1,0.3,1) !important;
}

.page-fme .intro-hidden.intro-from-top {
    transform: translateY(-20px) !important;
    transition: opacity 1.8s cubic-bezier(0.16,1,0.3,1),
                transform 1.8s cubic-bezier(0.16,1,0.3,1) !important;
}

.page-fme .intro-visible {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}


/* ========================================
   6. COMPONENTS (shared)
   ======================================== */

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, var(--team-blue-dark) 0%, var(--team-blue) 100%);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: white;
    margin-bottom: 1rem;
}

.badge::before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--gold);
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--team-blue-dark) 0%, var(--team-blue) 100%);
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 700;
    transition: transform 0.3s cubic-bezier(0.25,0.46,0.45,0.94),
                box-shadow 0.3s cubic-bezier(0.25,0.46,0.45,0.94);
    border: none;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(59,130,196,0.3);
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.cta-button::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    animation: pulse 2s ease infinite;
    flex-shrink: 0;
}

.cta-button:hover {
    background: linear-gradient(135deg, #4A9FD4 0%, #5BB5E8 100%);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(74,159,212,0.5), 0 0 50px rgba(74,159,212,0.25), 0 8px 24px rgba(59,130,196,0.4);
}

.cta-button svg {
    width: 16px;
    height: 16px;
}

.cta-secondary {
    background: transparent;
    border: 1px solid rgba(160,203,232,0.3);
    box-shadow: none;
}

.cta-secondary::before { display: none; }

.cta-secondary:hover {
    background: rgba(74,159,212,0.1);
    border-color: var(--team-blue);
    box-shadow: 0 0 20px rgba(74,159,212,0.2);
}

.cta-small {
    padding: 0.7rem 1.5rem;
    font-size: 0.75rem;
}

.cta-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--team-blue);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    margin-top: 1rem;
}

.cta-link:hover {
    color: var(--team-blue-light);
}

/* Section inner container */
.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 5%;
    text-align: center;
}

.section-inner h2 {
    margin-bottom: 1rem;
}

.section-inner > p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--titanium);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Avatar initials */
.avatar-initials {
    width: 100%;
    height: 100%;
    min-width: 80px;
    min-height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--team-blue-dark) 0%, var(--team-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}


/* ========================================
   7. PAGE-SPECIFIC: HOME
   ======================================== */

/* Home Hero */
.home-hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: max(8rem, 22vh) 5% 4rem;
    position: relative;
    overflow: hidden;
    background: url('../video/hero-poster.jpg') center/cover no-repeat;
    background-color: var(--obsidian);
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

.hero-video::-webkit-media-controls {
    display: none !important;
}

.hero-video::-webkit-media-controls-enclosure {
    display: none !important;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(13,13,13,0.45) 0%,
        rgba(13,13,13,0.25) 40%,
        rgba(13,13,13,0.35) 70%,
        rgba(13,13,13,0.8) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.home-hero-inner {
    max-width: 800px;
    position: relative;
    z-index: 2;
    margin-top: auto;
    margin-bottom: auto;
    padding-top: env(safe-area-inset-top, 0px);
}

.home-hero-inner .hero-eyebrow {
    justify-content: center;
    color: #FFD700;
    text-shadow: 0 0 12px rgba(255,215,0,0.3);
}

.home-hero-inner .hero-eyebrow::before {
    background: #FFD700;
}

.home-hero-inner h1 {
    margin-bottom: 1.5rem;
}

.home-hero-sub {
    font-size: 1.1rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.home-hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Home Spotlight */
.home-spotlight {
    padding: 4rem 5%;
    background: linear-gradient(to bottom, var(--obsidian), rgba(42,45,50,0.5), var(--obsidian));
}

.home-spotlight-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.home-spotlight-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.home-spotlight-image img {
    max-width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
}

.spotlight-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(74,159,212,0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.home-spotlight-text .hero-eyebrow::before { display: none; }

.home-spotlight-text h2 {
    margin-bottom: 1rem;
}

.home-spotlight-text p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--titanium);
    margin-bottom: 2rem;
}

.spotlight-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.spotlight-stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--ivory);
    letter-spacing: -0.03em;
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--titanium);
}

/* Home Treatments Grid */
.home-treatments {
    padding: 0;
}

.treatments-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.treatment-card {
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    text-decoration: none;
    color: var(--ivory);
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    text-align: left;
    min-width: 0;
    overflow: hidden;
}

.treatment-card:hover {
    border-color: rgba(74,159,212,0.3);
    background: rgba(74,159,212,0.04);
    transform: translateY(-4px);
}

.treatment-card-featured {
    border-color: rgba(74,159,212,0.2);
    background: rgba(74,159,212,0.03);
}

.treatment-icon {
    flex: 0 0 calc(50% - 0.75rem);
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.treatment-icon-svg {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
    color: var(--team-blue);
}

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

.treatment-card-img {
    flex: 0 0 calc(50% - 0.75rem);
    max-width: calc(50% - 0.75rem);
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
}



.treatment-card-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.treatment-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
}

.treatment-card p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--titanium);
    flex: 1;
}

.treatment-card .cta-link {
    font-size: 0.8rem;
    margin-top: 0.75rem;
}

/* Home Stats Bar */
.home-stats {
    padding: 0;
    background: transparent;
}

.stats-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 5%;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-item .stat-number {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.stat-number.sparkle-done::after {
    content: '';
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    background: linear-gradient(
        105deg,
        transparent 0%,
        transparent 35%,
        rgba(180, 220, 255, 0.08) 40%,
        rgba(74, 159, 212, 0.15) 44%,
        rgba(200, 230, 255, 0.35) 48%,
        rgba(255, 255, 255, 0.45) 50%,
        rgba(200, 230, 255, 0.35) 52%,
        rgba(74, 159, 212, 0.15) 56%,
        rgba(180, 220, 255, 0.08) 60%,
        transparent 65%,
        transparent 100%
    );
    animation: sparkle-sweep 1.4s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
    pointer-events: none;
}

@keyframes sparkle-sweep {
    0% {
        transform: translateX(-120%);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateX(120%);
        opacity: 0;
    }
}

/* Home Doctors */
.home-doctors {
    padding: 0;
}

.doctors-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    text-align: left;
}

.doctor-preview-card {
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    text-align: center;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.doctor-preview-card:hover {
    border-color: rgba(201,169,98,0.3);
    background: rgba(201,169,98,0.03);
    transform: translateY(-4px);
}

.doctor-preview-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #C9A962 0%, #E8D5A3 100%);
}

.doctor-preview-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
}

.doctor-preview-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.doctor-preview-card span {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #C9A962;
    display: block;
    margin-bottom: 1rem;
}

.doctor-preview-card p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--titanium);
}

/* Home Locations Preview */
.home-locations {
    padding: 0;
}

.locations-preview-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.location-preview-card {
    padding: 2rem 1rem 1.5rem;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    text-decoration: none;
    text-align: center;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
}

.location-preview-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,13,13,0.8) 0%, rgba(13,13,13,0.35) 40%, rgba(13,13,13,0.15) 100%);
    transition: background 0.4s ease;
}

.location-preview-card:hover::before {
    background: linear-gradient(to top, rgba(13,13,13,0.65) 0%, rgba(13,13,13,0.15) 40%, rgba(13,13,13,0.0) 100%);
}

.location-preview-card:hover {
    border-color: rgba(74,159,212,0.35);
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.35), 0 0 20px rgba(74,159,212,0.08);
}

.location-preview-card > * {
    position: relative;
    z-index: 1;
}

/* Pin icon */
.loc-pin {
    position: relative;
    width: 28px;
    height: 28px;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.loc-pin svg {
    width: 20px;
    height: 20px;
    color: var(--team-blue);
    filter: drop-shadow(0 0 6px rgba(74,159,212,0.4));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.location-preview-card:hover .loc-pin svg {
    transform: scale(1.15);
    filter: drop-shadow(0 0 10px rgba(74,159,212,0.6));
}

.loc-pin-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(74,159,212,0.2);
    animation: locPinPulse 2.8s ease-out infinite;
}

@keyframes locPinPulse {
    0%   { transform: scale(0.6); opacity: 0.8; }
    100% { transform: scale(2); opacity: 0; }
}

.location-preview-card h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ivory);
    margin-bottom: 0.2rem;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.location-preview-card:hover h4 {
    color: var(--team-blue-light);
}

.location-preview-card span {
    font-size: 0.78rem;
    color: var(--titanium);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Home Why Choose Us */
.home-why {
    padding: 0;
    margin-top: -2rem;
    background: linear-gradient(to bottom, var(--obsidian), rgba(42,45,50,0.3), var(--obsidian));
}

.section-subtitle {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--titanium);
    max-width: 650px;
    margin: 0 auto 3rem;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.why-card {
    padding: 2rem 1.5rem;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    text-align: center;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.why-card:hover {
    border-color: rgba(74,159,212,0.3);
    background: rgba(74,159,212,0.04);
    transform: translateY(-4px);
}

.why-number {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #C9A962 0%, #E8D5A3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
}

.why-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.why-card p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--titanium);
}

/* Home Testimonials */
.home-testimonials {
    padding: 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.testimonial-card {
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    text-align: left;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.testimonial-card:hover {
    border-color: rgba(74,159,212,0.2);
    background: rgba(255,255,255,0.02);
    transform: translateY(-4px);
}

.testimonial-stars {
    color: #F5C518;
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--ivory);
    opacity: 0.85;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-avatar {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    font-size: 0.85rem !important;
}

img.testimonial-avatar {
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-avatar-wrap {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.testimonial-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.25);
}

.testimonial-author strong {
    font-size: 0.85rem;
    font-weight: 700;
    display: block;
}

.testimonial-author span {
    font-size: 0.7rem;
    color: var(--titanium);
    letter-spacing: 0.05em;
}

/* Home Doctors — gold accent */
.home-doctors {
    padding: 0;
    background: linear-gradient(to bottom, var(--obsidian), rgba(42,45,50,0.5), var(--obsidian));
}

.home-doctors .hero-eyebrow {
    color: #C9A962;
}

.home-doctors .hero-eyebrow::before {
    background: #C9A962;
}

.home-doctors h2 {
    color: var(--ivory);
}

.home-doctors h2 em {
    background: linear-gradient(135deg, #C9A962 0%, #E8D5A3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Home Recognition */
.home-recognition {
    padding: 0;
}

.recognition-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.recognition-item {
    padding: 2rem 1.5rem;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.recognition-item:hover {
    border-color: rgba(74,159,212,0.3);
    transform: translateY(-4px);
}

.recognition-item img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: 0;
}

.recognition-icon {
    width: 72px;
    height: 72px;
    color: var(--team-blue);
}

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

.recognition-item span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--titanium);
    letter-spacing: 0.02em;
}

/* Home CTA Banner */
.home-cta-banner {
    background: linear-gradient(to bottom, var(--obsidian), var(--slate));
    padding: 0;
}

.home-cta-banner .section-inner {
    padding: 6rem 5%;
}


/* ========================================
   8. PAGE-SPECIFIC: FME (3D viewer)
   ======================================== */

/* Loading screen */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--obsidian);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1.2s cubic-bezier(0.16,1,0.3,1);
}

#loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.loader-logo-img {
    height: 270px;
    width: auto;
    display: block;
    margin: -80px 0;
}

.loader {
    width: 60px;
    height: 60px;
    border: 1px solid rgba(160,203,232,0.2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.4,0,0.2,1) infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loader-text {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--titanium);
}

/* Scroll indicator */
.scroll-indicator {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 100;
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.16,1,0.3,1), transform 1s cubic-bezier(0.16,1,0.3,1);
}

.scroll-indicator.intro-ready {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.scroll-indicator.hidden {
    opacity: 0 !important;
    pointer-events: none;
    transform: translateX(-50%) translateY(20px) !important;
}

.scroll-indicator span {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--titanium);
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 1px solid var(--gold);
    border-bottom: 1px solid var(--gold);
    transform: rotate(45deg);
    animation: scrollBounce 2s ease infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); opacity: 1; }
    50% { transform: rotate(45deg) translateY(8px); opacity: 0.5; }
}

/* Fixed 3D Canvas */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 3s cubic-bezier(0.16,1,0.3,1), transform 3s cubic-bezier(0.16,1,0.3,1);
    will-change: opacity, transform;
}

#canvas-container.loaded {
    opacity: 1;
    transform: scale(1);
}

#canvas-container.loaded.exit {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.33,1,0.68,1), transform 0.8s cubic-bezier(0.33,1,0.68,1);
}

#model-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 30%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}

/* Scroll container */
.scroll-container {
    position: relative;
    z-index: 10;
}

/* Scroll sections */
.scroll-section {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding: 0 8%;
    position: relative;
}

.section-standard {
    min-height: auto;
    padding: 6rem 5%;
}

.section-dark {
    background: linear-gradient(to bottom, rgba(42,45,50,0.4) 0%, var(--obsidian) 100%);
}

/* FME Content panels */
.page-fme .content-panel p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--ivory);
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.005em;
    opacity: 0.7;
}

.from-right .hero-eyebrow {
    justify-content: flex-end;
}

.from-right .hero-eyebrow::before {
    order: 2;
}

/* Benefits list */
.benefits-list {
    list-style: none;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ivory);
    opacity: 0.85;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

.from-right .benefits-list li {
    justify-content: flex-end;
}

.benefits-list li::before {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--gold);
    flex-shrink: 0;
}

.from-right .benefits-list li::before {
    order: 2;
}

/* Benefits animation */
.benefits-list li {
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity 0.45s cubic-bezier(0.33,1,0.68,1), transform 0.45s cubic-bezier(0.33,1,0.68,1);
}

.from-right .benefits-list li { transform: translateX(12px); }

.content-panel.visible .benefits-list li:nth-child(1) { opacity: 1; transform: translateX(0); transition-delay: 0.25s; }
.content-panel.visible .benefits-list li:nth-child(2) { opacity: 1; transform: translateX(0); transition-delay: 0.33s; }
.content-panel.visible .benefits-list li:nth-child(3) { opacity: 1; transform: translateX(0); transition-delay: 0.41s; }
.content-panel.visible .benefits-list li:nth-child(4) { opacity: 1; transform: translateX(0); transition-delay: 0.49s; }
.content-panel.visible .benefits-list li:nth-child(5) { opacity: 1; transform: translateX(0); transition-delay: 0.57s; }

/* Doctors inline */
.doctors-inline {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

.from-right .doctors-inline { justify-content: flex-end; }

.doctor-mini {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.from-right .doctor-mini { flex-direction: row-reverse; }

.doctor-mini-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.doctor-mini-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.doctor-mini-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.doctor-mini-info span {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
}

/* Doctors animation */
.doctors-inline .doctor-mini {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s cubic-bezier(0.33,1,0.68,1), transform 0.5s cubic-bezier(0.33,1,0.68,1);
}

.content-panel.visible .doctors-inline .doctor-mini:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
.content-panel.visible .doctors-inline .doctor-mini:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }

/* Locations mini */
.locations-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
    text-align: left;
}

.location-mini {
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    font-size: 0.8rem;
    transition: border-color 0.3s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.location-mini::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(13,13,13,0.75);
    transition: background 0.3s ease;
}

.location-mini:hover::before { background: rgba(13,13,13,0.6); }

.location-mini > * {
    position: relative;
    z-index: 1;
}

.location-mini:hover {
    border-color: rgba(74,159,212,0.3);
}

.location-mini h5 {
    color: var(--team-blue);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 0.25rem;
}

.location-mini a {
    color: var(--titanium);
    text-decoration: none;
    transition: color 0.2s ease;
}

.location-mini a:hover {
    color: var(--team-blue);
}

/* Locations animation */
.locations-mini .location-mini {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s cubic-bezier(0.33,1,0.68,1), transform 0.4s cubic-bezier(0.33,1,0.68,1);
}

.content-panel.visible .locations-mini .location-mini:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.35s; }
.content-panel.visible .locations-mini .location-mini:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.43s; }
.content-panel.visible .locations-mini .location-mini:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.51s; }
.content-panel.visible .locations-mini .location-mini:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.59s; }
.content-panel.visible .locations-mini .location-mini:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.67s; }

/* Hero intro stagger */
.section-hero .content-panel.visible > * {
    transition: opacity 1.2s cubic-bezier(0.16,1,0.3,1), transform 1.2s cubic-bezier(0.16,1,0.3,1);
}
.section-hero .content-panel.visible > *:nth-child(1) { transition-delay: 0.1s; }
.section-hero .content-panel.visible > *:nth-child(2) { transition-delay: 0.4s; }
.section-hero .content-panel.visible > *:nth-child(3) { transition-delay: 0.75s; }
.section-hero .content-panel.visible > *:nth-child(4) { transition-delay: 1.1s; }

.section-hero {
    min-height: 100vh;
    min-height: 100dvh;
}

/* Doctors section centered */
.section-doctors {
    justify-content: center;
    text-align: center;
}

.section-doctors .content-panel {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.section-doctors .content-panel.from-left {
    transform: translateY(30px);
}

.section-doctors .content-panel.visible {
    transform: translateY(0);
}

.section-doctors .hero-eyebrow { justify-content: center; }
.section-doctors .doctors-inline { justify-content: center; }
.section-doctors .doctor-mini-info span { color: #C9A962; }
.section-doctors .doctor-mini-avatar { background: linear-gradient(135deg, #C9A962 0%, #E8D5A3 100%); }
.section-doctors .hero-eyebrow::before { background: #C9A962; }

/* Compare section */
.section-compare {
    justify-content: center;
    text-align: center;
}

.section-compare .content-panel {
    max-width: 900px;
    margin: 0 auto;
}

.section-compare .content-panel.from-left {
    transform: translateY(30px);
}

.section-compare .content-panel.visible {
    transform: translateY(0);
}

.compare-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    text-align: left;
}

.compare-col {
    padding: 1.25rem;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.02);
}

.compare-col h4 {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}

.compare-col ul {
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.compare-col li {
    display: flex;
    gap: 0.65rem;
    line-height: 1.35;
    color: rgba(255,255,255,0.86);
}

.compare-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin-top: 0.1em;
}

.compare-good h4, .compare-good .compare-icon { color: #5CB85C; }
.compare-bad h4, .compare-bad .compare-icon { color: #E8635A; }

.compare-disclaimer {
    margin-top: 1.2rem;
    font-size: 0.75rem !important;
    color: rgba(138,141,144,0.85) !important;
}

/* CTA section */
.section-cta {
    background: linear-gradient(to bottom, var(--obsidian) 0%, var(--slate) 50%, var(--slate) 100%);
    justify-content: center;
    text-align: center;
}

.section-cta .content-panel {
    max-width: 600px;
    text-align: center;
}

.section-cta .content-panel.from-left {
    transform: translateY(30px);
}

.section-cta .content-panel.visible {
    transform: translateY(0);
}

/* Pinned scroll sections */
.section-pinned {
    display: block;
    padding: 0;
    min-height: auto;
}

.pin-wrap {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    padding: 0 8%;
}

.section-pinned .content-panel {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.section-pinned .content-panel > *:not([data-reveal]) {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.section-pinned .benefits-list li,
.section-pinned .doctors-inline .doctor-mini {
    transition: none;
}

/* Download button */
.download-model-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(160,203,232,0.3);
    border-radius: 6px;
    color: var(--gold);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: opacity 0.3s, background 0.3s, color 0.3s, border-color 0.3s;
}

.download-model-btn:hover {
    background: var(--gold);
    color: var(--obsidian);
    border-color: var(--gold);
}

/* FME new sections */

/* Timeline / How It Works */
.timeline-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    text-align: left;
}

.timeline-step {
    padding: 2rem 1.5rem;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    position: relative;
}

.timeline-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--team-blue);
    opacity: 0.3;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.timeline-step h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.timeline-step p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--titanium);
}

/* Before & After */
.before-after-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.ba-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}

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

.ba-label {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    padding: 0.3rem 0.8rem;
    background: rgba(13,13,13,0.8);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Candidates */
.candidates-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    text-align: left;
}

.candidate-card {
    padding: 2rem 1.5rem;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
}

.candidate-icon {
    width: 40px;
    height: 40px;
    color: var(--team-blue);
    margin-bottom: 1rem;
}

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

.candidate-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.candidate-card p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--titanium);
}

/* Cost */
.cost-card {
    max-width: 700px;
    margin: 2rem auto 0;
    padding: 3rem;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    background: rgba(255,255,255,0.02);
    text-align: center;
}

.cost-range {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.cost-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--titanium);
}

.cost-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--ivory);
    letter-spacing: -0.03em;
}

.cost-note {
    font-size: 0.8rem;
    color: var(--titanium);
}

.cost-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.cost-detail {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.cost-detail svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--team-blue);
    margin-top: 2px;
}

.cost-detail p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--titanium);
}

/* FAQ */
.faq-list {
    max-width: 700px;
    margin: 2rem auto 0;
    text-align: left;
}

.faq-item {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.faq-question {
    width: 100%;
    padding: 1.2rem 0;
    background: none;
    border: none;
    color: var(--ivory);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--team-blue);
}

.faq-chevron {
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--titanium);
    border-bottom: 2px solid var(--titanium);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.open .faq-chevron {
    transform: rotate(-135deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.33,1,0.68,1), padding 0.4s ease;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding-bottom: 1.2rem;
}

.faq-answer p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--titanium);
}


/* ========================================
   9. PAGE-SPECIFIC: ABOUT
   ======================================== */

/* Page hero (shared across non-home, non-fme pages) */
.page-hero {
    min-height: 50vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 8rem 5% 4rem;
    text-align: center;
    background: radial-gradient(ellipse at 50% 30%, rgba(74,159,212,0.06) 0%, transparent 70%);
}

.page-hero-inner {
    max-width: 700px;
}

.page-hero-inner .hero-eyebrow {
    justify-content: center;
}

.page-hero-inner h1 {
    margin-bottom: 1rem;
}

.page-hero-inner p {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--titanium);
}

/* Values grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.value-card {
    padding: 2rem 1.5rem;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    text-align: center;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.value-card:hover {
    border-color: rgba(74,159,212,0.3);
    background: rgba(74,159,212,0.04);
    transform: translateY(-4px);
}

.value-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    color: var(--team-blue);
}

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

.value-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.value-card p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--titanium);
}

/* Doctor bio cards */
.about-doctor {
    padding: 0;
}

.doctor-bio-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: center;
    text-align: left;
}

.doctor-bio-reverse {
    grid-template-columns: 1fr 300px;
}

.doctor-bio-reverse .doctor-bio-img {
    order: 2;
}

.doctor-bio-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #C9A962 0%, #E8D5A3 100%);
}

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

#dr-jaffari .doctor-bio-img img,
#dr-newaz .doctor-bio-img img,
#dr-kennedy .doctor-bio-img img {
    object-position: center 15%;
}

.doctor-bio-text h2 em {
    background: linear-gradient(135deg, #C9A962 0%, #E8D5A3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.doctor-bio-text h2 {
    margin-bottom: 1rem;
}

.doctor-credentials {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.doctor-credentials .badge {
    background: linear-gradient(135deg, #C9A962 0%, #E8D5A3 100%);
}

.doctor-bio-text p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--titanium);
    margin-bottom: 1rem;
}

.credential-badge {
    height: 60px;
    width: auto;
    margin-top: 0.5rem;
    border-radius: 4px;
}

/* Team grid */
.about-team { padding: 0; }

.team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

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

.team-member img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    display: block;
    border: 3px solid rgba(74,159,212,0.25);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover img {
    transform: scale(1.08);
    border-color: rgba(74,159,212,0.5);
    box-shadow: 0 4px 20px rgba(74,159,212,0.15);
}

.team-member .avatar-initials {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    font-size: 1.2rem;
}

.team-member h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.team-member span {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--titanium);
}


/* ========================================
   10. PAGE-SPECIFIC: SERVICES
   ======================================== */
.services-flagship { padding: 0; }

.flagship-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.flagship-img {
    position: relative;
    display: flex;
    justify-content: center;
}

.flagship-img img {
    max-width: 100%;
    max-height: 50vh;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.flagship-text h2 {
    margin-bottom: 1rem;
}

.flagship-text p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--titanium);
    margin-bottom: 2rem;
}

.services-category { padding: 0; }

.services-category h2 {
    margin-bottom: 2rem;
}

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

.service-card {
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    text-align: left;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
    scroll-margin-top: 100px;
}

.services-flagship {
    scroll-margin-top: 80px;
}

.service-card:hover {
    border-color: rgba(74,159,212,0.3);
    background: rgba(74,159,212,0.04);
    transform: translateY(-4px);
}

.service-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.service-card p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--titanium);
}

.service-card-img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.service-card-img[src*="whitening"] {
    transform: scale(1.25);
    clip-path: inset(0);
}

.services-insurance {
    padding: 0;
}

.services-insurance .section-inner p {
    margin-bottom: 1rem;
}


/* ========================================
   11. PAGE-SPECIFIC: LOCATIONS (MapLibre GL)
   ======================================== */

/* ── Map hero section ── */
.loc-map-section {
    padding: 6rem 0 0;
}

.loc-map-header {
    text-align: center;
    padding: 2rem 5% 2rem;
}

.loc-map-header h1 {
    margin-bottom: 0.5rem;
}

.loc-map-sub {
    color: var(--titanium);
    font-size: 1.05rem;
}

.loc-map-wrapper {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    max-height: 800px;
    border-top: 1px solid rgba(74,159,212,0.15);
    border-bottom: 1px solid rgba(74,159,212,0.15);
}

.loc-map {
    width: 100%;
    height: 100%;
}

/* ── Map sidebar panel ── */
.loc-map-sidebar {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;
    width: 240px;
    background: rgba(13,13,13,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(74,159,212,0.2);
    border-radius: 12px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.loc-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.25rem 0.5rem 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 4px;
}

.loc-sidebar-head h3 {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ivory);
    margin: 0;
}

.loc-sidebar-reset {
    background: rgba(74,159,212,0.15);
    border: 1px solid rgba(74,159,212,0.25);
    border-radius: 6px;
    padding: 4px 6px;
    color: var(--team-blue);
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
}

.loc-sidebar-reset:hover {
    background: rgba(74,159,212,0.3);
    border-color: var(--team-blue);
}

/* ── Sidebar location items ── */
.map-loc-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.map-loc-item:hover {
    background: rgba(74,159,212,0.1);
    border-color: rgba(74,159,212,0.15);
}

.map-loc-item.active {
    background: rgba(74,159,212,0.18);
    border-color: rgba(74,159,212,0.35);
}

.map-loc-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--team-blue);
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(74,159,212,0.5);
    transition: transform 0.25s ease;
}

.map-loc-item:hover .map-loc-dot,
.map-loc-item.active .map-loc-dot {
    transform: scale(1.3);
    box-shadow: 0 0 12px rgba(74,159,212,0.7);
}

.map-loc-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.map-loc-info strong {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ivory);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.map-loc-info span {
    font-size: 0.72rem;
    color: var(--titanium);
    font-weight: 500;
}

/* ── Custom map markers ── */
.map-marker {
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.map-marker-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--team-blue);
    border: 3px solid rgba(255,255,255,0.9);
    box-shadow: 0 0 10px rgba(74,159,212,0.6), 0 2px 8px rgba(0,0,0,0.4);
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-marker:hover .map-marker-dot,
.map-marker.active .map-marker-dot {
    transform: scale(1.3);
    box-shadow: 0 0 20px rgba(74,159,212,0.8), 0 2px 12px rgba(0,0,0,0.5);
}

.map-marker-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border-radius: 50%;
    background: rgba(74,159,212,0.25);
    z-index: 1;
    animation: markerPulse 2.5s ease-out infinite;
}

@keyframes markerPulse {
    0%   { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}

.map-marker.active .map-marker-pulse {
    animation: markerPulseActive 1.5s ease-out infinite;
    background: rgba(74,159,212,0.35);
}

@keyframes markerPulseActive {
    0%   { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(2.8); opacity: 0; }
}

.map-marker-label {
    position: absolute;
    top: calc(100% + 6px);
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ivory);
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
    pointer-events: none;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.map-marker:hover .map-marker-label,
.map-marker.active .map-marker-label {
    opacity: 1;
}

/* ── Custom popup styling (MapLibre GL override) ── */
.td-popup .maplibregl-popup-content {
    background: rgba(18,18,22,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(74,159,212,0.25);
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 20px rgba(74,159,212,0.1);
    color: var(--ivory);
    font-family: 'Inter', sans-serif;
}

.td-popup .maplibregl-popup-tip {
    border-top-color: rgba(18,18,22,0.95);
}

.td-popup .maplibregl-popup-close-button {
    color: var(--titanium);
    font-size: 1.2rem;
    padding: 6px 10px;
    right: 4px;
    top: 4px;
    transition: color 0.2s;
}

.td-popup .maplibregl-popup-close-button:hover {
    color: var(--ivory);
    background: transparent;
}

.map-popup-inner {
    padding: 1.25rem;
}

.map-popup-inner h3 {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.map-popup-addr {
    font-size: 0.82rem;
    color: var(--titanium);
    line-height: 1.5;
    margin: 0 0 0.6rem;
}

.map-popup-phone,
.map-popup-email {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--team-blue);
    text-decoration: none;
    margin-bottom: 0.25rem;
    transition: color 0.2s;
}

.map-popup-phone:hover,
.map-popup-email:hover {
    color: var(--team-blue-light);
}

.map-popup-btns {
    display: flex;
    gap: 8px;
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.map-popup-btn {
    flex: 1;
    text-align: center;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.25s ease;
    background: rgba(74,159,212,0.12);
    border: 1px solid rgba(74,159,212,0.25);
    color: var(--team-blue);
}

.map-popup-btn:hover {
    background: rgba(74,159,212,0.25);
    border-color: var(--team-blue);
}

.map-popup-btn.primary {
    background: var(--team-blue);
    border-color: var(--team-blue);
    color: #fff;
}

.map-popup-btn.primary:hover {
    background: var(--team-blue-dark);
    box-shadow: 0 4px 16px rgba(74,159,212,0.3);
}

/* ── MapLibre GL control overrides ── */
.loc-map .maplibregl-ctrl-group {
    background: rgba(13,13,13,0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(74,159,212,0.2);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.loc-map .maplibregl-ctrl-group button {
    border-color: rgba(255,255,255,0.06);
}

.loc-map .maplibregl-ctrl-group button + button {
    border-top: 1px solid rgba(255,255,255,0.06);
}

.loc-map .maplibregl-ctrl button .maplibregl-ctrl-icon {
    filter: invert(1) brightness(0.85);
}

.loc-map .maplibregl-ctrl button:hover .maplibregl-ctrl-icon {
    filter: invert(1) brightness(1);
}

.loc-map .maplibregl-ctrl-attrib {
    background: rgba(13,13,13,0.6) !important;
    color: rgba(255,255,255,0.35);
    font-size: 0.6rem;
}

.loc-map .maplibregl-ctrl-attrib a {
    color: rgba(74,159,212,0.6);
}

/* ── Location detail cards ── */
.loc-details {
    padding: 5rem 5% 4rem;
}

.loc-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

.loc-detail-card {
    background: var(--slate);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.loc-detail-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 20px rgba(74,159,212,0.08);
    border-color: rgba(74,159,212,0.2);
}

/* 5th card spans full width centered */
.loc-detail-card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    justify-self: center;
}

.loc-detail-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.loc-detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.loc-detail-card:hover .loc-detail-img img {
    transform: scale(1.05);
}

.loc-detail-body {
    padding: 1.75rem;
}

.loc-detail-body h3 {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.6rem;
}

.loc-detail-addr {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--titanium);
    margin-bottom: 0.75rem;
}

.loc-detail-contact {
    margin-bottom: 1.25rem;
}

.loc-detail-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--team-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: color 0.2s;
    margin-bottom: 0.3rem;
}

.loc-detail-phone:hover {
    color: var(--team-blue-light);
}

.loc-detail-phone svg {
    flex-shrink: 0;
}

.loc-detail-email {
    display: block;
    color: var(--titanium);
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.2s;
    margin-top: 0.3rem;
}

.loc-detail-email:hover {
    color: var(--team-blue);
}

.loc-detail-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.loc-detail-fly {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid rgba(74,159,212,0.3);
    border-radius: 8px;
    padding: 8px 16px;
    color: var(--team-blue);
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
}

.loc-detail-fly:hover {
    background: rgba(74,159,212,0.12);
    border-color: var(--team-blue);
    box-shadow: 0 0 12px rgba(74,159,212,0.15);
}


/* ========================================
   12. PAGE-SPECIFIC: CONTACT
   ======================================== */
.contact-form-section { padding: 0; }

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    text-align: left;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--titanium);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.9rem 1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--ivory);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--team-blue);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%238A8D90' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    padding-right: 2.5rem;
}

.form-group select option {
    background: var(--slate);
    color: var(--ivory);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-info-sidebar h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.contact-info-item {
    margin-bottom: 1.5rem;
}

.contact-info-item h4 {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--titanium);
    margin-bottom: 0.3rem;
}

.contact-info-item a {
    color: var(--team-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.contact-info-item p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--titanium);
}

.contact-locations-compact {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-loc h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.contact-loc a {
    display: block;
    font-size: 0.8rem;
    color: var(--titanium);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-loc a:hover {
    color: var(--team-blue);
}


/* ========================================
   13. MOBILE (max-width: 768px)
   ======================================== */
@media (max-width: 768px) {
    /* Nav */
    nav {
        padding: 1rem 1.5rem;
        padding-top: max(1rem, env(safe-area-inset-top));
        padding-right: max(1.5rem, env(safe-area-inset-right));
        padding-left: max(1.5rem, env(safe-area-inset-left));
        background: rgba(13,13,13,0.97);
        max-width: 100vw;
        /* Keep the logo truly centered even with a hamburger on the right */
        display: grid;
        grid-template-columns: 48px 1fr 48px;
        align-items: center;
    }

    nav::before {
        content: "";
        width: 48px;
        height: 1px;
    }

    .nav-logo {
        flex-shrink: 0;
        grid-column: 2;
        justify-self: center;
        display: flex;
        justify-content: center;
    }

    .nav-logo-img {
        width: min(220px, 100%);
        height: auto;
        margin: 0;
        filter: drop-shadow(0 0 18px rgba(255,255,255,0.12));
    }

    .nav-links { display: none; }
    .hamburger {
        display: block;
        grid-column: 3;
        justify-self: end;
        position: static;
        transform: none;
    }
    .mobile-menu { display: flex; }
    .mobile-overlay { display: block; }

    .nav-cta:not(.mobile-cta) { display: none; }

    .nav-cta.mobile-cta {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        padding: 0.6rem 1.2rem;
    }

    /* FME page scroll sections */
    .page-fme .scroll-section {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: stretch;
    }

    .page-fme .section-hero { justify-content: center; }

    .page-fme .section-pinned {
        display: block;
        padding: 0;
        min-height: auto !important;
    }

    .pin-wrap { align-items: flex-end; }

    .page-fme .section-pinned .content-panel {
        max-width: 100%;
        background: linear-gradient(to bottom, rgba(13,13,13,0) 0px, rgba(13,13,13,0.4) 24px, rgba(13,13,13,0.75) 48px, rgba(13,13,13,0.92) 72px, rgba(13,13,13,1) 96px);
        padding: 5.5rem 7% 2.5rem;
        padding-bottom: max(2.5rem, env(safe-area-inset-bottom));
        margin: 0;
        text-align: center;
    }

    .page-fme .content-panel {
        max-width: 100%;
        background: linear-gradient(to bottom, rgba(13,13,13,0) 0px, rgba(13,13,13,0.4) 24px, rgba(13,13,13,0.75) 48px, rgba(13,13,13,0.92) 72px, rgba(13,13,13,1) 96px);
        padding: 5.5rem 7% 2.5rem;
        padding-bottom: max(2.5rem, env(safe-area-inset-bottom));
        margin: 0;
        text-align: center;
    }

    .page-fme .content-panel.from-left,
    .page-fme .content-panel.from-right {
        transform: translateY(30px);
        opacity: 0;
        margin: 0;
    }

    .page-fme .section-pinned .content-panel.from-left,
    .page-fme .section-pinned .content-panel.from-right {
        opacity: 1;
        transform: none;
    }

    .page-fme .content-panel.visible {
        transform: translateY(0);
        opacity: 1;
    }

    .page-fme .content-panel.from-right { text-align: center; }

    /* Typography mobile */
    h1, .content-panel h1 {
        font-size: clamp(2.4rem, 9vw, 3.2rem);
        letter-spacing: -0.04em;
    }

    h2, .content-panel h2 {
        font-size: clamp(2rem, 7.5vw, 2.6rem);
        letter-spacing: -0.035em;
    }

    h3, .content-panel h3 {
        font-size: clamp(1.5rem, 5.5vw, 1.9rem);
        letter-spacing: -0.02em;
    }

    .content-panel p {
        font-size: clamp(0.95rem, 3.8vw, 1.05rem);
        line-height: 1.65;
        color: var(--titanium);
        max-width: 88%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-eyebrow {
        justify-content: center;
        margin-bottom: 0.75rem;
        font-size: clamp(0.65rem, 2.5vw, 0.75rem);
    }
    .hero-eyebrow::before { display: none; }
    .from-right .hero-eyebrow { justify-content: center; }

    /* Benefits centered */
    .benefits-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    .benefits-list li {
        justify-content: center;
        font-size: clamp(0.9rem, 3.5vw, 1.05rem);
        margin-bottom: 0.5rem;
    }
    .from-right .benefits-list li { justify-content: center; }
    .benefits-list li::before { width: 16px; }
    .from-right .benefits-list li::before { order: 0; }

    .badge { margin-left: auto; margin-right: auto; margin-bottom: 1.25rem; }

    /* Doctors mobile */
    .doctors-inline {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    .doctor-mini {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    .from-right .doctor-mini { flex-direction: column; }
    .doctor-mini-avatar { width: 72px; height: 72px; }

    .section-doctors { justify-content: center; }
    .section-doctors .content-panel { background: transparent; text-align: center; }

    /* CTA section mobile */
    .section-cta { justify-content: center; align-items: center; padding: 0; }
    .section-cta .content-panel { background: transparent; text-align: center; padding: 3rem 7%; }

    /* Locations mini mobile */
    .locations-mini { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .location-mini h5 { font-size: clamp(0.95rem, 3.5vw, 1.1rem); font-weight: 600; }

    /* Compare grid mobile */
    .compare-grid { grid-template-columns: 1fr; gap: 1rem; }

    /* CTA button mobile */
    .cta-button {
        padding: 1.1rem 2.5rem;
        min-height: 48px;
        font-size: 0.82rem;
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .download-model-btn { display: none; }

    #model-glow { top: 28%; width: 300px; height: 300px; }

    /* Footer mobile */
    footer {
        padding: 3rem 7% 1.5rem;
        padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-logo-img { margin: 0 auto; }

    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 1.5rem;
    }

    .footer-links a { min-height: 44px; display: inline-flex; align-items: center; }

    .footer-bottom { flex-direction: column; text-align: center; }

    .scroll-indicator { bottom: max(25px, env(safe-area-inset-bottom)); }

    /* Home page mobile */
    .home-hero { padding: 7rem 7% 3rem; min-height: 100vh; min-height: 100dvh; }

    .home-hero-ctas { flex-direction: column; align-items: center; }

    .home-spotlight-inner { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .home-spotlight-image img { max-width: 280px; max-height: 35vh; object-fit: contain; margin: 0 auto; }
    .home-spotlight-text .hero-eyebrow { justify-content: center; }
    .spotlight-stats { justify-content: center; }

    .treatments-grid { grid-template-columns: 1fr; gap: 0.75rem; }
    .treatment-card {
        text-align: left;
        align-items: center;
        padding: 1rem;
        gap: 0.75rem;
    }
    .treatment-card .treatment-icon,
    .treatment-card .treatment-card-img {
        flex: 0 0 calc(50% - 0.375rem);
        max-width: calc(50% - 0.375rem);
        height: 130px;
        border-radius: 10px;
    }
    .treatment-card h4 {
        font-size: 1.15rem;
        margin-bottom: 0.2rem;
    }
    .treatment-card p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    .treatment-card .cta-link {
        font-size: 0.8rem;
        margin-top: 0.4rem;
    }

    .stats-bar { flex-direction: column; align-items: center; gap: 2rem; }

    .doctors-preview { grid-template-columns: 1fr; }

    .locations-preview-grid { grid-template-columns: 1fr 1fr; }

    /* Why Choose Us mobile */
    .why-grid { grid-template-columns: 1fr 1fr; }

    /* Testimonials mobile */
    .testimonials-grid { grid-template-columns: 1fr; }
    .testimonial-card { text-align: center; }
    .testimonial-author { justify-content: center; }

    /* Recognition mobile */
    .recognition-grid { grid-template-columns: 1fr 1fr; }

    /* About mobile */
    .values-grid { grid-template-columns: 1fr 1fr; }
    .doctor-bio-card { grid-template-columns: 1fr; text-align: center; }
    .doctor-bio-reverse { grid-template-columns: 1fr; }
    .doctor-bio-reverse .doctor-bio-img { order: 0; }
    .doctor-bio-img { max-width: 250px; margin: 0 auto; }
    .doctor-bio-text { text-align: center; }
    .doctor-credentials { justify-content: center; }
    .team-grid { grid-template-columns: repeat(3, 1fr); }

    /* Services mobile */
    .flagship-card { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .flagship-img img { max-width: 280px; max-height: 35vh; margin: 0 auto; }
    .services-grid { grid-template-columns: 1fr; gap: 1rem; }

    /* Default: all service cards are stacked and centered on mobile */
    .service-card {
        text-align: center;
        align-items: center;
        padding: 1.25rem 1rem;
    }
    .service-card h4 { font-size: 0.95rem; margin-bottom: 0.3rem; }
    .service-card p { font-size: 0.8rem; line-height: 1.5; }
    .service-card-img { width: 80px; height: 80px; }

    /* Services page cards (services.html): match home treatment card sizing on mobile */
    .service-card:has(.service-card-text) {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem 1.2rem;
        gap: 0.8rem;
    }
    .service-card:has(.service-card-text) .service-card-img {
        width: 100px;
        height: 100px;
        object-fit: contain;
        margin: 0;
        padding: 0;
        border-radius: 12px;
        background: none;
        flex-shrink: 0;
    }
    .service-card:has(.service-card-text) .service-card-img[src*="cleanings-checkups"] {
        width: 130px;
        height: 100px;
    }
    .service-card:has(.service-card-text) .service-card-text {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0;
        flex: 1;
        min-width: 0;
    }
    .service-card:has(.service-card-text) .service-card-text h4 {
        font-size: 1.3rem;
        font-weight: 700;
        margin-bottom: 0.3rem;
        line-height: 1.2;
    }
    .service-card:has(.service-card-text) .service-card-text p {
        font-size: 0.95rem;
        line-height: 1.5;
        color: var(--titanium);
        margin-bottom: 0;
    }
    .service-card:has(.service-card-text) .service-card-text .cta-link {
        font-size: 0.9rem;
        white-space: nowrap;
        margin-top: 0.6rem;
    }

    /* Locations map mobile */
    .loc-map-wrapper { height: 55vh; min-height: 400px; }

    .loc-map-sidebar {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0;
        padding: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .loc-map-sidebar::-webkit-scrollbar { display: none; }

    .loc-sidebar-head { display: none; }

    .map-loc-item {
        flex-shrink: 0;
        padding: 6px 12px;
        border-radius: 20px;
        min-height: 36px;
    }

    .map-loc-dot { width: 8px; height: 8px; }

    .map-loc-info strong { font-size: 0.72rem; }
    .map-loc-info span { display: none; }

    .loc-detail-grid { grid-template-columns: 1fr; }
    .loc-detail-card:last-child { max-width: 100%; }
    .loc-detail-img { height: 180px; }

    /* Contact mobile */
    .contact-layout { grid-template-columns: 1fr; }

    /* FME sections mobile */
    .timeline-steps { grid-template-columns: 1fr 1fr; }
    .candidates-grid { grid-template-columns: 1fr 1fr; }
    .before-after-grid { grid-template-columns: 1fr; }
    .cost-card { padding: 2rem 1.5rem; }
    .cost-amount { font-size: 2rem; }

    .page-hero { min-height: 40vh; padding: 7rem 7% 3rem; }
    .section-inner { padding: 4rem 5%; }
}


/* ========================================
   14. TABLET (769-1199px)
   ======================================== */
@media (min-width: 769px) and (max-width: 1199px) {
    nav {
        padding: 1.2rem 2rem;
        padding-top: max(1.2rem, env(safe-area-inset-top));
    }

    .nav-logo-img {
        height: 180px;
        margin: -65px 0;
    }

    .nav-links {
        gap: 1.2rem;
    }

    .nav-links a {
        font-size: 0.72rem;
        letter-spacing: 0.1em;
    }

    .nav-cta {
        font-size: 0.65rem;
        padding: 0.5rem 1rem;
    }

    .scroll-section { padding: 0 5%; }
    .content-panel { max-width: 420px; }
    .content-panel h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
    .content-panel h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
    .content-panel p { max-width: 380px; }
    .cta-button { min-height: 48px; }
    .nav-cta { min-height: 44px; display: inline-flex; align-items: center; }
    .locations-mini { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
    .location-mini h5 { font-size: 1rem; }
    #model-glow { width: 380px; height: 380px; }

    footer { padding-bottom: max(2rem, env(safe-area-inset-bottom)); }

    .treatments-grid { grid-template-columns: repeat(2, 1fr); }
    .locations-preview-grid { grid-template-columns: repeat(3, 1fr); }
    .timeline-steps { grid-template-columns: repeat(2, 1fr); }
    .candidates-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(3, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .flagship-img img { max-height: 45vh; }
    .service-card-img { width: 100px; height: 100px; }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .recognition-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ========================================
   15. SMALL PHONE (max-width: 375px)
   ======================================== */
@media (max-width: 375px) {
    .content-panel { padding: 4.5rem 5% 2rem; }
    .content-panel h1 { font-size: clamp(2rem, 8.5vw, 2.6rem); }
    .content-panel h2 { font-size: clamp(1.7rem, 7vw, 2.2rem); }
    .locations-mini { grid-template-columns: 1fr; gap: 0.6rem; }
    .locations-preview-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .recognition-grid { grid-template-columns: 1fr; }
    .cta-button { max-width: 260px; padding: 1rem 2rem; font-size: 0.78rem; }
    .timeline-steps { grid-template-columns: 1fr; }
    .candidates-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ========================================
   16. LANDSCAPE
   ======================================== */
@media (max-width: 768px) and (orientation: landscape) {
    .scroll-section {
        min-height: auto;
        padding: 2rem 5%;
    }

    .content-panel {
        padding: 2rem 5% 1.5rem;
        background: rgba(13,13,13,0.95);
    }

    .content-panel h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); }
    .content-panel h2 { font-size: clamp(1.5rem, 4.5vw, 2rem); }

    .doctors-inline { flex-direction: row; gap: 2rem; }
    .doctor-mini { flex-direction: row; text-align: left; }
    .locations-mini { grid-template-columns: repeat(3, 1fr); }
    .scroll-indicator { display: none; }

    .home-hero { min-height: 100vh; min-height: 100dvh; padding: max(5rem, 15vh) 5% 3rem; }
}


/* ========================================
   HALF-WINDOW HEIGHT FIX (Mac split/half-window)
   ======================================== */
@media (max-height: 750px) and (min-width: 769px) {
    .hero-video {
        object-position: center bottom;
    }
    .flagship-img img {
        max-height: 35vh;
        max-width: 320px;
    }
}


/* ========================================
   17. REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .scroll-indicator { display: none; }

    [data-animate] {
        opacity: 1;
        transform: none;
    }

    .hero-video {
        display: none;
    }

    .home-hero {
        background: radial-gradient(ellipse at 50% 30%, rgba(74,159,212,0.08) 0%, transparent 70%);
    }
}
