/**
 * Signature Medicine - Premium Homepage Styles
 * Cinematic, editorial, luxury healthcare aesthetic
 * 
 * Typography: Cormorant Garamond + Manrope
 * Palette: Forest green, cream, gold
 */

/* ========================================
   CSS VARIABLES
======================================== */
:root {
    --color-ink: #1a1a18;
    --color-forest: #1E3329;
    --color-forest-light: #2D4A3E;
    --color-cream: #F8F6F1;
    --color-warm: #FAF8F3;
    --color-gold: #C4956A;
    --color-gold-light: #D4A574;
    --color-text: #2C241C;
    --color-text-muted: #6B6358;
    --color-white: #ffffff;
    
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Manrope', system-ui, sans-serif;
    
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);

/* ========================================
   ACCESSIBILITY
======================================== */
/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-forest);
    color: white;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 8px 8px;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--color-gold);
    outline-offset: 2px;
}

/* Screen Reader Only Text */
.screen-reader-text,
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus,
.sr-only:focus {
    position: fixed;
    top: 5px;
    left: 5px;
    width: auto;
    height: auto;
    padding: 15px 23px 14px;
    clip: auto;
    background: var(--color-forest);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    z-index: 100000;
}

/* Focus Styles */
:focus-visible {
    outline: 3px solid var(--color-gold);
    outline-offset: 2px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
    background: var(--color-cream);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* ========================================
   SCROLL PROGRESS BAR
======================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ========================================
   HEADER
======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 24px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.5s var(--ease-out-expo);
}

.site-header.scrolled {
    background: rgba(248, 246, 241, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px 48px;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

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

.header-logo img {
    height: 40px;
    width: auto;
    transition: opacity 0.3s;
}

.logo-white {
    display: block;
}

.logo-color {
    display: none;
}

.site-header.scrolled .logo-white {
    display: none;
}

.site-header.scrolled .logo-color {
    display: block;
}

.header-nav {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: color 0.3s;
}

.site-header.scrolled .nav-link {
    color: var(--color-text-muted);
}

.nav-link:hover {
    color: white;
}

.site-header.scrolled .nav-link:hover {
    color: var(--color-forest);
}

.header-cta {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-forest);
    background: white;
    padding: 12px 24px;
    border-radius: 100px;
    text-decoration: none;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: all 0.3s var(--ease-out-expo);
}

.header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.site-header.scrolled .header-cta {
    background: var(--color-forest);
    color: white;
}

/* Patient Portal Button */
.nav-portal {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    padding: 10px 20px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 100px;
    transition: all 0.3s;
}

.nav-portal:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

.site-header.scrolled .nav-portal {
    color: var(--color-forest);
    border-color: var(--color-forest);
}

.site-header.scrolled .nav-portal:hover {
    background: var(--color-forest);
    color: white;
}

/* Light Header for Internal Pages */
.site-header--light {
    background: rgba(248, 246, 241, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px 48px;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

.site-header--light .logo-white {
    display: none;
}

.site-header--light .logo-color {
    display: block;
}

.site-header--light .nav-link {
    color: var(--color-text-muted);
}

.site-header--light .nav-link:hover {
    color: var(--color-forest);
}

.site-header--light .header-cta {
    background: var(--color-forest);
    color: white;
}

.site-header--light .nav-portal {
    color: var(--color-forest);
    border-color: var(--color-forest);
}

.site-header--light .nav-portal:hover {
    background: var(--color-forest);
    color: white;
}

.site-header--light .menu-toggle span {
    background: var(--color-forest);
}

/* ========================================
   HERO SECTION
======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background: var(--color-forest);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0;
    animation: heroFadeIn 1.5s var(--ease-out-expo) 0.2s forwards;
}

@keyframes heroFadeIn {
    to { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
    padding-top: 120px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-gold-light);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(20px);
    animation: revealUp 1s var(--ease-out-expo) 0.6s forwards;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-eyebrow::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--color-gold-light);
    box-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 10vw, 8rem);
    font-weight: 300;
    color: white;
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin-bottom: 40px;
}

.hero-headline .line {
    display: block;
    overflow: hidden;
}

.hero-headline .line span {
    display: block;
    opacity: 0;
    transform: translateY(100%);
    animation: lineReveal 1.2s var(--ease-out-expo) forwards;
}

.hero-headline .line:nth-child(1) span { animation-delay: 0.4s; }
.hero-headline .line:nth-child(2) span { animation-delay: 0.5s; }
.hero-headline .line:nth-child(3) span { animation-delay: 0.6s; }

@keyframes lineReveal {
    to { opacity: 1; transform: translateY(0); }
}

.hero-headline em {
    font-style: italic;
    color: var(--color-gold-light);
}

.hero-description {
    max-width: 540px;
    font-size: 1.15rem;
    font-weight: 300;
    color: rgba(255,255,255,0.75);
    line-height: 1.8;
    margin-bottom: 48px;
    opacity: 0;
    transform: translateY(20px);
    animation: revealUp 1s var(--ease-out-expo) 0.9s forwards;
}

@keyframes revealUp {
    to { opacity: 1; transform: translateY(0); }
}

.hero-ctas {
    display: flex;
    gap: 24px;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    animation: revealUp 1s var(--ease-out-expo) 1.1s forwards;
}

/* Hero Stats Bar */
.hero-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0;
    animation: revealUp 1s var(--ease-out-expo) 1.4s forwards;
}

.hero-stat {
    padding: 40px 48px;
    border-right: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.hero-stat:last-child {
    border-right: none;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 300;
    color: white;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.stat-compare {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--color-gold);
    margin-top: 4px;
    text-transform: none;
    letter-spacing: 0.02em;
}

/* ========================================
   BUTTONS
======================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-forest);
    background: white;
    padding: 18px 36px;
    border-radius: 100px;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: all 0.4s var(--ease-out-expo);
}

.btn-primary svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s var(--ease-out-expo);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-ghost {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 18px 0;
    position: relative;
    transition: color 0.3s;
}

.btn-ghost::after {
    content: '';
    position: absolute;
    bottom: 14px;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.3);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease-out-expo);
}

.btn-ghost:hover {
    color: white;
}

.btn-ghost:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-forest);
    background: transparent;
    padding: 18px 36px;
    border: 1px solid var(--color-forest);
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.4s var(--ease-out-expo);
}

.btn-secondary svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s var(--ease-out-expo);
}

.btn-secondary:hover {
    background: var(--color-forest);
    color: white;
}

.btn-secondary:hover svg {
    transform: translateX(4px);
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    background: var(--color-forest);
    padding: 20px 48px;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.4s var(--ease-out-expo);
}

.btn-cta svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s var(--ease-out-expo);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(30, 51, 41, 0.3);
}

.btn-cta:hover svg {
    transform: translateX(4px);
}

/* ========================================
   TRUST BAR
======================================== */
.trust-bar {
    background: var(--color-ink);
    padding: 24px 48px;
}

.trust-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
}

.trust-icon {
    width: 24px;
    height: 24px;
}

.trust-icon svg {
    width: 100%;
    height: 100%;
    color: var(--color-gold);
}

/* ========================================
   SECTION EYEBROW
======================================== */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-gold);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.section-eyebrow::before,
.section-eyebrow::after {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--color-gold);
}

.section-eyebrow--light {
    color: var(--color-gold-light);
}

.section-eyebrow--light::before,
.section-eyebrow--light::after {
    background: var(--color-gold-light);
}

/* ========================================
   PROBLEM SECTION
======================================== */
.problem-section {
    background: var(--color-warm);
    padding: 160px 48px;
    position: relative;
}

.problem-container {
    max-width: var(--container-width);
    margin: 0 auto;
}

.problem-header {
    text-align: center;
    margin-bottom: 100px;
}

.problem-headline {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    color: var(--color-text);
    line-height: 1.1;
}

.problem-headline em {
    font-style: italic;
    color: var(--color-forest);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

/* iOS-Style Message Thread */
.message-thread {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 40px 20px;
}

.message {
    display: flex;
    opacity: 0;
    transform: translateY(30px);
}

.message--left {
    justify-content: flex-start;
    transform: translateX(-60px) translateY(30px);
}

.message--right {
    justify-content: flex-end;
    transform: translateX(60px) translateY(30px);
}

.message--response {
    justify-content: center;
    transform: translateY(30px) scale(0.9);
    margin-top: 24px;
}

.message-bubble {
    max-width: 85%;
    padding: 14px 20px;
    border-radius: 22px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-text);
    position: relative;
}

.message--left .message-bubble {
    background: white;
    border-bottom-left-radius: 6px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.message--right .message-bubble {
    background: rgba(45, 74, 62, 0.08);
    border-bottom-right-radius: 6px;
}

.message--response .message-bubble {
    background: var(--color-forest);
    color: white;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 300;
    padding: 20px 36px;
    border-radius: 30px;
    max-width: none;
}

.message--response .message-bubble strong {
    color: var(--color-gold-light);
    font-weight: 500;
}

/* CTA version of response bubble */
.message-cta {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
}

.message-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(30, 51, 41, 0.3);
}

.message-cta svg {
    animation: bounceDown 1.5s ease-in-out infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* Animation states */
.message.revealed {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

/* Stagger handled by JS, but base transitions */
.message:nth-child(1) { transition-delay: 0s; }
.message:nth-child(2) { transition-delay: 0.15s; }
.message:nth-child(3) { transition-delay: 0.3s; }
.message:nth-child(4) { transition-delay: 0.45s; }
.message:nth-child(5) { transition-delay: 0.6s; }
.message:nth-child(6) { transition-delay: 0.75s; }
.message:nth-child(7) { transition-delay: 0.9s; }
.message:nth-child(8) { transition-delay: 1.05s; }
.message:nth-child(9) { transition-delay: 1.2s; }
.message:nth-child(10) { transition-delay: 1.35s; }
.message:nth-child(11) { transition-delay: 1.5s; }
.message:nth-child(12) { transition-delay: 1.65s; }
.message:nth-child(13) { transition-delay: 1.8s; }

/* ========================================
   SOLUTION SECTION
======================================== */
.solution-section {
    background: var(--color-forest);
    padding: 160px 48px;
    position: relative;
    overflow: hidden;
}

.solution-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(196, 149, 106, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.solution-container {
    max-width: var(--container-width);
    margin: 0 auto;
    position: relative;
}

.solution-header {
    text-align: center;
    margin-bottom: 100px;
}

.solution-headline {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    color: white;
    line-height: 1.1;
}

.solution-headline em {
    font-style: italic;
    color: var(--color-gold-light);
}

.solution-lead {
    max-width: 600px;
    margin: 32px auto 0;
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.solution-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 48px;
    border-radius: 4px;
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out-expo), border-color 0.3s, background 0.3s;
}

.solution-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.solution-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.15);
}

.solution-number {
    position: absolute;
    top: 48px;
    right: 48px;
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 300;
    color: rgba(255,255,255,0.05);
    line-height: 1;
}

.solution-card h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    color: white;
    margin-bottom: 16px;
}

.solution-card p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
    margin-bottom: 24px;
}

.solution-highlight {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-gold);
    letter-spacing: 0.05em;
    padding: 8px 16px;
    background: rgba(196, 149, 106, 0.1);
    border-radius: 100px;
}

/* HERO DIFFERENTIATOR CARD */
.solution-hero-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
    background: linear-gradient(135deg, var(--color-gold) 0%, #B8864E 100%);
    padding: 64px;
    border-radius: 8px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.solution-hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.solution-hero-content {
    position: relative;
    z-index: 1;
}

.solution-hero-card .solution-number {
    position: static;
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    background: rgba(255,255,255,0.2);
    padding: 6px 14px;
    border-radius: 100px;
}

.solution-hero-card h3 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 400;
    color: white;
    margin-bottom: 16px;
    line-height: 1.2;
}

.solution-hero-card p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.8;
    max-width: 600px;
}

.solution-hero-highlight {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    padding: 32px;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    position: relative;
    z-index: 1;
}

.highlight-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.highlight-icon {
    color: white;
    opacity: 0.9;
}

/* 3-COLUMN GRID FOR SUPPORTING CARDS */
.solution-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.solution-grid-3 .solution-card {
    padding: 40px;
}

.solution-grid-3 .solution-number {
    top: 40px;
    right: 40px;
    font-size: 3rem;
}

/* ========================================
   PHYSICIAN SECTION
======================================== */
.physician-section {
    background: var(--color-warm);
    padding: 160px 48px;
    overflow: hidden;
}

.physician-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 100px;
    align-items: center;
}

.physician-image-wrap {
    position: relative;
    opacity: 0;
    transform: translateX(-40px);
    transition: all 1s var(--ease-out-expo);
}

.physician-image-wrap.revealed {
    opacity: 1;
    transform: translateX(0);
}

.physician-image {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
}

.physician-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
}

.physician-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(30, 51, 41, 0.3) 100%);
}

.physician-accent {
    position: absolute;
    top: -20px;
    left: -20px;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    border: 1px solid var(--color-gold);
    opacity: 0.3;
    z-index: -1;
}

.physician-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: var(--color-forest);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.badge-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 300;
    color: white;
    line-height: 1;
}

.badge-text {
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 4px;
}

.physician-content {
    opacity: 0;
    transform: translateX(40px);
    transition: all 1s var(--ease-out-expo) 0.2s;
}

.physician-content.revealed {
    opacity: 1;
    transform: translateX(0);
}

.physician-name {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 8px;
}

.physician-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-gold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 32px;
}

.physician-bio {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.9;
    margin-bottom: 20px;
}

.physician-bio strong {
    color: var(--color-text);
    font-weight: 500;
}

.physician-bio em {
    font-style: italic;
    color: var(--color-forest);
}

.physician-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 32px 0;
}

.cred-badge {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-forest);
    padding: 8px 16px;
    background: white;
    border: 1px solid rgba(45, 74, 62, 0.15);
    border-radius: 100px;
}

.physician-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-forest);
    text-decoration: none;
    transition: gap 0.3s var(--ease-out-expo);
}

.physician-link:hover {
    gap: 12px;
}

.physician-link svg {
    width: 16px;
    height: 16px;
}

/* ========================================
   MEMBERSHIP SECTION
======================================== */
.membership-section {
    background: var(--color-cream);
    padding: 160px 48px;
}

.membership-container {
    max-width: var(--container-width);
    margin: 0 auto;
}

.membership-header {
    text-align: center;
    margin-bottom: 80px;
}

.membership-headline {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    color: var(--color-text);
    line-height: 1.1;
    margin-bottom: 24px;
}

.membership-lead {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

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

.membership-card {
    background: white;
    padding: 40px;
    border-radius: 4px;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s var(--ease-out-expo), box-shadow 0.3s, transform 0.3s;
}

.membership-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.membership-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.membership-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out-expo);
}

.membership-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--color-cream);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.card-icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-forest);
}

.membership-card h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 12px;
}

.membership-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.membership-cta {
    text-align: center;
    margin-top: 64px;
}

/* ========================================
   TESTIMONIALS SECTION
======================================== */
.testimonials-section {
    background: var(--color-forest);
    padding: 160px 48px;
    position: relative;
    overflow: hidden;
}

.testimonials-bg {
    position: absolute;
    inset: 0;
    opacity: 0.6;
}

.testimonials-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 80px;
}

.testimonials-headline {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    color: white;
    margin-bottom: 24px;
}

.testimonials-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.meta-stars {
    color: var(--color-gold);
    font-size: 1rem;
    letter-spacing: 2px;
}

.meta-divider {
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,0.2);
}

.meta-text {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

.testimonial-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 48px;
    margin-bottom: 24px;
    border-radius: 4px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out-expo);
}

.testimonial-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.quote-mark {
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--color-gold);
    opacity: 0.3;
    line-height: 1;
    display: block;
    margin-bottom: -20px;
}

.testimonial-quote {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 300;
    color: white;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 32px;
}

.testimonial-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
    display: block;
}

.author-years {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

.footer-stars {
    color: var(--color-gold);
    letter-spacing: 2px;
}

/* ========================================
   LOCAL SECTION
======================================== */
.local-section {
    background: var(--color-warm);
    padding: 160px 48px;
}

.local-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 100px;
    align-items: start;
}

.local-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out-expo);
}

.local-content.revealed {
    opacity: 1;
    transform: translateY(0);
}

.local-headline {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    color: var(--color-text);
    line-height: 1.1;
    margin-bottom: 32px;
}

.local-text {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

.local-text strong {
    color: var(--color-text);
    font-weight: 600;
}

.local-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

.local-badge {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-forest);
}

.local-info {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out-expo) 0.2s;
}

.local-info.revealed {
    opacity: 1;
    transform: translateY(0);
}

.location-card {
    background: white;
    padding: 40px;
    border-radius: 4px;
    margin-bottom: 24px;
}

.location-card h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 16px;
}

.location-card address {
    font-style: normal;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 16px;
}

.location-phone {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-forest);
    text-decoration: none;
    transition: color 0.3s;
}

.location-phone:hover {
    color: var(--color-gold);
}

.areas-served {
    background: white;
    padding: 32px;
    border-radius: 4px;
}

.areas-served h4 {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.area-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.area-tags span {
    font-size: 0.8rem;
    color: var(--color-forest);
    padding: 6px 12px;
    background: var(--color-cream);
    border-radius: 100px;
}

/* ========================================
   CTA SECTION
======================================== */
.cta-section {
    background: var(--color-cream);
    padding: 160px 48px;
    text-align: center;
}

.cta-container {
    max-width: 700px;
    margin: 0 auto;
}

.cta-headline {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    color: var(--color-text);
    line-height: 1.1;
    margin-bottom: 24px;
}

.cta-headline em {
    font-style: italic;
    color: var(--color-forest);
}

.cta-text {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 48px;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.cta-phone {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.cta-phone a {
    color: var(--color-forest);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.cta-phone a:hover {
    color: var(--color-gold);
}

/* ========================================
   FOOTER
======================================== */
.site-footer {
    background: var(--color-ink);
    padding: 80px 48px 40px;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    margin-bottom: 20px;
}

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

.footer-tagline {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    max-width: 280px;
}

.footer-heading {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    line-height: 2.2;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: white;
}

/* ========================================
   MOBILE MENU
======================================== */
.menu-toggle {
    display: none;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    margin: 6px auto;
    transition: all 0.3s;
}

.site-header.scrolled .menu-toggle span {
    background: var(--color-forest);
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 1024px) {
    .physician-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .physician-image-wrap {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .membership-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .local-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

@media (max-width: 768px) {
    /* Mobile header always has green background */
    .site-header,
    .site-header--light {
        padding: 16px 24px;
        background: var(--color-forest) !important;
        backdrop-filter: none;
    }
    
    /* Always show white logo on mobile */
    .site-header .logo-white,
    .site-header--light .logo-white,
    .site-header.scrolled .logo-white {
        display: block !important;
    }
    
    .site-header .logo-color,
    .site-header--light .logo-color,
    .site-header.scrolled .logo-color {
        display: none !important;
    }
    
    /* Hamburger always white on mobile */
    .menu-toggle span,
    .site-header--light .menu-toggle span,
    .site-header.scrolled .menu-toggle span {
        background: white !important;
    }
    
    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--color-forest);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 48px;
        gap: 24px;
        transition: right 0.4s var(--ease-out-expo);
    }
    
    .header-nav.active {
        right: 0;
    }
    
    /* Mobile menu links must stay white regardless of scroll state */
    .header-nav .nav-link,
    .site-header.scrolled .header-nav .nav-link {
        font-size: 1.25rem;
        color: white !important;
    }
    
    .header-nav .nav-link:hover,
    .site-header.scrolled .header-nav .nav-link:hover {
        color: var(--color-gold-light) !important;
    }
    
    .header-nav .nav-portal,
    .site-header.scrolled .header-nav .nav-portal {
        width: 100%;
        text-align: center;
        border-color: white !important;
        color: white !important;
        background: transparent;
    }
    
    .header-nav .nav-portal:hover,
    .site-header.scrolled .header-nav .nav-portal:hover {
        background: rgba(255,255,255,0.1);
    }
    
    .header-nav .header-cta,
    .site-header.scrolled .header-nav .header-cta {
        width: 100%;
        text-align: center;
        background: var(--color-gold) !important;
        color: white !important;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-content {
        padding: 0 24px;
        padding-top: 100px;
        padding-bottom: 320px; /* Space for stacked stats below */
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
    }
    
    .hero-stat {
        padding: 24px;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .hero-stat:last-child {
        border-bottom: none;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    .problem-section,
    .solution-section,
    .physician-section,
    .membership-section,
    .testimonials-section,
    .local-section,
    .cta-section {
        padding: 100px 24px;
    }
    
    .problem-grid,
    .solution-grid {
        grid-template-columns: 1fr;
    }
    
    /* Hero card mobile */
    .solution-hero-card {
        grid-template-columns: 1fr;
        padding: 40px 32px;
        text-align: center;
    }
    
    .solution-hero-card h3 {
        font-size: 1.75rem;
    }
    
    .solution-hero-card p {
        font-size: 1rem;
    }
    
    .solution-hero-highlight {
        padding: 24px;
    }
    
    .highlight-icon svg {
        width: 36px;
        height: 36px;
    }
    
    /* 3-col grid stacks on mobile */
    .solution-grid-3 {
        grid-template-columns: 1fr;
    }
    
    .solution-grid-3 .solution-card {
        padding: 32px;
    }
    
    .message-thread {
        padding: 30px 10px;
    }
    
    .message-bubble {
        font-size: 0.85rem;
        padding: 12px 16px;
        max-width: 90%;
    }
    
    .message--response .message-bubble {
        font-size: 1.1rem;
        padding: 16px 24px;
    }
    
    .message-cta svg {
        width: 16px;
        height: 16px;
    }
    
    .membership-grid {
        grid-template-columns: 1fr;
    }
    
    .trust-inner {
        gap: 24px;
    }
    
    .trust-item span {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding-bottom: 340px; /* Even more space on small screens */
    }
    
    .hero-headline {
        font-size: 2.8rem;
    }
    
    .hero-ctas {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn-primary {
        width: 100%;
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-meta {
        flex-direction: column;
        gap: 12px;
    }
    
    .meta-divider {
        display: none;
    }
}
