/* ──────────────────────────────────────────
   Wong Russell D MD — Medical Website
   Plum + Amber palette, confident corporate
   Inter + Playfair Display
────────────────────────────────────────── */

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

:root {
    --plum-50:  #faf5ff;
    --plum-100: #f3e8ff;
    --plum-200: #e9d5ff;
    --plum-300: #d8b4fe;
    --plum-400: #c084fc;
    --plum-500: #a855f7;
    --plum-600: #9333ea;
    --plum-700: #7e22ce;
    --plum-800: #6b21a8;
    --plum-900: #4a148c;
    --plum-950: #2d0a52;

    --amber-50:  #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-300: #fcd34d;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --amber-900: #78350f;

    --neutral-50:  #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #e5e5e5;
    --neutral-300: #d4d4d4;
    --neutral-400: #a3a3a3;
    --neutral-500: #737373;
    --neutral-600: #525252;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;
    --neutral-950: #0a0a0a;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 48px rgba(0,0,0,0.16);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--neutral-800);
    background: var(--neutral-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Typography ──────────────────────────── */
.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--plum-700);
    background: var(--plum-100);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--neutral-900);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--neutral-600);
    line-height: 1.7;
    max-width: 600px;
}

/* ── Buttons ─────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--plum-700);
    color: #fff;
    padding: 12px 24px;
}

.btn-primary:hover {
    background: var(--plum-800);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
    border-radius: 10px;
}

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

.btn-sm {
    padding: 8px 18px;
    font-size: 0.875rem;
}

.btn-ghost {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    padding: 12px 24px;
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

.btn-ghost:not(:disabled):hover {
    background: var(--plum-100);
    color: var(--plum-800);
    border-color: var(--plum-200);
}

/* ── Header ──────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--neutral-200);
    transition: box-shadow 0.3s ease;
}

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

.site-header .container {
    display: flex;
    align-items: center;
    height: 72px;
}

.nav {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--neutral-900);
    flex-shrink: 0;
}

.logo-mark {
    width: 36px;
    height: 36px;
    background: var(--plum-700);
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin-left: auto;
}

.nav-links a {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--neutral-600);
    border-radius: 6px;
    transition: color 0.15s ease, background 0.15s ease;
}

.nav-links a:hover {
    color: var(--plum-700);
    background: var(--plum-50);
}

/* Mobile toggle */
.mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-left: auto;
}

.mobile-toggle:hover {
    background: var(--neutral-100);
}

.hamburger {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--neutral-700);
    position: relative;
    transition: background 0.2s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: var(--neutral-700);
    left: 0;
    transition: transform 0.25s ease;
}

.hamburger::before { top: -6px; }
.hamburger::after  { top: 6px; }

.mobile-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.mobile-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* ── Hero ────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 24px 80px;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--plum-900) 0%, #581c87 30%, #7c3aed 60%, var(--amber-500) 100%);
    z-index: 0;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.6;
}

.hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 820px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: var(--amber-200);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 32px;
    backdrop-filter: blur(4px);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 6vw, 4rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.hero-accent {
    color: var(--amber-300);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.82);
    line-height: 1.7;
    max-width: 620px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.hero-stats {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    overflow: hidden;
    max-width: 640px;
    margin: 0 auto;
}

.stat {
    flex: 1;
    padding: 24px 20px;
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--amber-300);
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
}

.stat-divider {
    width: 1px;
    background: rgba(255,255,255,0.15);
    align-self: stretch;
}

/* ── Services ────────────────────────────── */
.services {
    padding: 100px 0;
    background: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

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

.service-card {
    background: var(--neutral-50);
    border: 1px solid var(--neutral-200);
    border-radius: 16px;
    padding: 36px 28px;
    transition: all 0.25s ease;
}

.service-card:hover {
    border-color: var(--plum-300);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    background: #fff;
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--plum-100);
    color: var(--plum-700);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: background 0.2s ease;
}

.service-card:hover .service-icon {
    background: var(--plum-700);
    color: #fff;
}

.service-card h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.925rem;
    color: var(--neutral-600);
    line-height: 1.65;
}

/* ── About ───────────────────────────────── */
.about {
    padding: 100px 0;
    background: var(--neutral-50);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
}

.about-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 160px;
    height: 160px;
    background: var(--plum-700);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.15;
}

.about-content .lead {
    font-size: 1.1rem;
    color: var(--neutral-800);
    line-height: 1.75;
    margin-bottom: 16px;
    font-weight: 500;
}

.about-content p {
    font-size: 0.95rem;
    color: var(--neutral-600);
    line-height: 1.75;
    margin-bottom: 12px;
}

.about-list {
    list-style: none;
    margin-top: 28px;
    display: grid;
    gap: 14px;
}

.about-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--neutral-700);
    font-weight: 500;
}

.about-list svg {
    color: var(--plum-600);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ── Trust Bar ───────────────────────────── */
.trust-bar {
    background: var(--plum-900);
    padding: 48px 0;
}

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

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

.trust-item svg {
    color: var(--amber-400);
    flex-shrink: 0;
}

/* ── Insurance ───────────────────────────── */
.insurance {
    padding: 100px 0;
    background: #fff;
}

.insurance-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.insurance-content .section-subtitle {
    margin-bottom: 32px;
}

.insurance-list {
    list-style: none;
    display: grid;
    gap: 12px;
    margin-bottom: 28px;
}

.insurance-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--neutral-700);
}

.insurance-list li::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--plum-500);
    border-radius: 50%;
    flex-shrink: 0;
}

.insurance-note {
    font-size: 0.9rem;
    color: var(--neutral-500);
}

.insurance-note a {
    color: var(--plum-700);
    font-weight: 600;
}

.insurance-note a:hover {
    text-decoration: underline;
}

.insurance-card {
    background: linear-gradient(135deg, var(--plum-800), var(--plum-900));
    color: #fff;
    border-radius: 20px;
    padding: 48px 36px;
    text-align: center;
}

.insurance-card svg {
    color: var(--amber-400);
    margin: 0 auto 20px;
}

.insurance-card h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.insurance-card p {
    font-size: 0.925rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
}

/* ── CTA / Contact ───────────────────────── */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--plum-950) 0%, var(--plum-900) 50%, #5b21b6 100%);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(251,191,36,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.cta-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.cta .section-tag {
    background: rgba(255,255,255,0.12);
    color: var(--amber-300);
}

.cta-title {
    color: #fff;
}

.cta .section-subtitle {
    color: rgba(255,255,255,0.72);
    margin-bottom: 32px;
}

.cta-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cta-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--amber-300);
    transition: color 0.15s ease;
}

.cta-phone:hover {
    color: var(--amber-400);
}

.cta-hours {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.55);
}

/* Form */
.cta-form-wrapper {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-xl);
}

.form-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--neutral-700);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--neutral-300);
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.925rem;
    color: var(--neutral-900);
    background: var(--neutral-50);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--plum-500);
    box-shadow: 0 0 0 3px rgba(147,51,234,0.12);
    background: #fff;
}

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

.form-privacy {
    font-size: 0.775rem;
    color: var(--neutral-400);
    text-align: center;
    margin-top: 12px;
}

.form-success {
    text-align: center;
    padding: 40px 20px;
}

.form-success svg {
    color: #16a34a;
    margin: 0 auto 16px;
}

.form-success h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--neutral-900);
    margin-bottom: 8px;
}

.form-success p {
    font-size: 0.925rem;
    color: var(--neutral-600);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* ── Location ────────────────────────────── */
.location {
    padding: 100px 0;
    background: var(--neutral-50);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.location-info .section-subtitle {
    margin-bottom: 28px;
}

.location-address {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-style: normal;
    background: var(--plum-50);
    border: 1px solid var(--plum-100);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
    color: var(--neutral-800);
    line-height: 1.7;
}

.location-address svg {
    color: var(--plum-600);
    flex-shrink: 0;
    margin-top: 3px;
}

.location-details {
    display: grid;
    gap: 14px;
    margin-bottom: 28px;
}

.location-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.925rem;
    color: var(--neutral-600);
}

.location-detail svg {
    color: var(--plum-500);
    flex-shrink: 0;
}

.location-detail a {
    color: var(--plum-700);
    font-weight: 600;
}

.location-detail a:hover {
    text-decoration: underline;
}

.location-map {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 400px;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.map-placeholder iframe {
    border-radius: 20px;
}

/* ── Footer ──────────────────────────────── */
.site-footer {
    background: var(--neutral-950);
    color: rgba(255,255,255,0.65);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-brand .logo {
    color: #fff;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-nav h4,
.footer-contact h4 {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 16px;
}

.footer-nav ul {
    list-style: none;
    display: grid;
    gap: 10px;
}

.footer-nav a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.65);
    transition: color 0.15s ease;
}

.footer-nav a:hover {
    color: var(--amber-400);
}

.footer-contact address {
    font-style: normal;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 10px;
}

.footer-contact a {
    color: var(--amber-400);
    font-weight: 500;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.825rem;
    color: rgba(255,255,255,0.4);
}

.footer-disclaimer {
    font-size: 0.775rem !important;
    color: rgba(255,255,255,0.25) !important;
    max-width: 480px;
    text-align: right;
}

/* ── Scroll reveal (below fold only) ─────── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ── Responsive ──────────────────────────── */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 16px 24px 24px;
        border-bottom: 1px solid var(--neutral-200);
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
        pointer-events: none;
        z-index: 99;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links a {
        padding: 12px 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--neutral-100);
    }

    .nav-links a:last-child {
        border-bottom: none;
        margin-top: 8px;
    }

    .hero {
        min-height: auto;
        padding: 120px 20px 60px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 0;
    }

    .stat-divider {
        width: 100%;
        height: 1px;
    }

    .services {
        padding: 64px 0;
    }

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

    .about {
        padding: 64px 0;
    }

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

    .about-image {
        height: 320px;
    }

    .about-accent {
        width: 100px;
        height: 100px;
        bottom: -12px;
        right: -12px;
    }

    .trust-bar {
        padding: 36px 0;
    }

    .trust-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .trust-item {
        gap: 12px;
    }

    .insurance {
        padding: 64px 0;
    }

    .insurance-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cta {
        padding: 64px 0;
    }

    .cta-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cta-form-wrapper {
        padding: 28px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .location {
        padding: 64px 0;
    }

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

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

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

    .footer-disclaimer {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

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

    .container {
        padding: 0 16px;
    }
}

/* ── Reduced motion ──────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

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