/* ============================================
   Snyder Steven MD — Medical Practice Website
   Deep Navy + Warm Gold | Clean Minimalist
   ============================================ */

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

:root {
    --navy-950: #0a1628;
    --navy-900: #0d1b2a;
    --navy-800: #1a2d42;
    --navy-700: #243a52;
    --navy-600: #2e4a66;
    --gold-500: #c8a44e;
    --gold-400: #d4b462;
    --gold-300: #e0c476;
    --gold-200: #edd49a;
    --cream-50: #faf8f5;
    --cream-100: #f5f0ea;
    --cream-200: #ece5d9;
    --stone-50: #f7f7f5;
    --stone-100: #efefed;
    --stone-200: #e2e2de;
    --stone-300: #c8c8c2;
    --stone-400: #a0a09a;
    --stone-500: #787872;
    --stone-600: #5c5c56;
    --stone-700: #44443f;
    --stone-800: #2c2c28;
    --stone-900: #1a1a17;
    --white: #ffffff;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--stone-800);
    background: var(--cream-50);
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

/* --- Skip Link --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--navy-900);
    color: var(--white);
    padding: 8px 16px;
    z-index: 1000;
    font-size: 0.875rem;
    border-radius: 4px;
}
.skip-link:focus {
    top: 16px;
}

/* --- Typography --- */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--navy-900);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.section-lead {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--stone-600);
    max-width: 560px;
}

.lead {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--stone-700);
    margin-bottom: 20px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 14px 32px;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 0.85rem;
}

.btn-full {
    width: 100%;
}

.btn-gold {
    background: var(--gold-500);
    color: var(--navy-950);
    border-color: var(--gold-500);
}
.btn-gold:hover {
    background: var(--gold-400);
    border-color: var(--gold-400);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(200, 164, 78, 0.3);
}

.btn-navy {
    background: var(--navy-900);
    color: var(--white);
    border-color: var(--navy-900);
}
.btn-navy:hover {
    background: var(--navy-800);
    border-color: var(--navy-800);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(13, 27, 42, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--navy-900);
    border-color: var(--navy-900);
}
.btn-outline:hover {
    background: var(--navy-900);
    color: var(--white);
}

.btn-ghost-light {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}
.btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* --- Sections --- */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--white);
}

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

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

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 248, 245, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--stone-200);
    transition: all 0.4s var(--ease-out);
}

.site-header.scrolled {
    background: rgba(250, 248, 245, 0.97);
    box-shadow: 0 1px 20px rgba(10, 22, 40, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--navy-900);
    letter-spacing: 0.01em;
}

.logo-mark {
    color: var(--gold-500);
}

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

.main-nav a {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--stone-600);
    transition: color 0.2s;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold-500);
    transition: width 0.3s var(--ease-out);
}

.main-nav a:hover {
    color: var(--navy-900);
}

.main-nav a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--navy-900);
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 20px;
    height: 1px;
    background: var(--navy-900);
    transition: all 0.3s var(--ease-out);
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

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

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

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

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

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 22, 40, 0.88) 0%,
        rgba(13, 27, 42, 0.75) 50%,
        rgba(26, 45, 66, 0.6) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 72px;
    max-width: 720px;
}

.hero-eyebrow {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: 24px;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 24px;
    letter-spacing: -0.015em;
}

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

.hero-sub {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: float 2.5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

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

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 2px;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -16px;
    left: -16px;
    right: 16px;
    bottom: 16px;
    border: 1px solid var(--gold-500);
    border-radius: 2px;
    z-index: -1;
    opacity: 0.4;
}

.about-content .section-title {
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--stone-200);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--navy-900);
    line-height: 1;
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--stone-500);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--stone-200);
}

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

.service-card {
    padding: 40px 32px;
    background: var(--cream-50);
    border: 1px solid var(--stone-200);
    border-radius: 2px;
    transition: all 0.4s var(--ease-out);
}

.service-card:hover {
    border-color: var(--gold-500);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(10, 22, 40, 0.08);
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-500);
    margin-bottom: 24px;
}

.service-card h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--navy-900);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--stone-600);
}

/* --- Approach --- */
.approach-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.approach-content .section-title {
    margin-bottom: 20px;
}

.approach-list {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.approach-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.approach-num {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--gold-500);
    line-height: 1;
    min-width: 32px;
    padding-top: 4px;
}

.approach-item h4 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--navy-900);
    margin-bottom: 6px;
}

.approach-item p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--stone-600);
}

.approach-image img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    border-radius: 2px;
}

/* --- Patient Info --- */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.info-card {
    padding: 36px 28px;
    background: var(--cream-50);
    border: 1px solid var(--stone-200);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
}

.info-card:hover {
    border-color: var(--gold-500);
}

.info-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-500);
    margin-bottom: 20px;
}

.info-card h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--navy-900);
    margin-bottom: 12px;
}

.info-card p {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--stone-600);
}

.info-card a {
    color: var(--navy-700);
    transition: color 0.2s;
}

.info-card a:hover {
    color: var(--gold-500);
}

.info-note {
    display: block;
    font-size: 0.78rem;
    color: var(--stone-500);
    margin-top: 6px;
    font-style: italic;
}

/* --- CTA --- */
.cta {
    background: var(--navy-900);
    padding: 100px 0;
}

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

.cta-content .section-eyebrow {
    color: var(--gold-400);
}

.cta-content .section-title {
    color: var(--white);
}

.cta-content .section-lead {
    color: rgba(255, 255, 255, 0.6);
}

.cta-content .btn-lg {
    margin-top: 32px;
}

/* --- Form --- */
.cta-form-wrap {
    background: var(--white);
    border-radius: 2px;
    padding: 40px;
}

.form-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--navy-900);
    margin-bottom: 28px;
}

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

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--stone-600);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--stone-800);
    background: var(--cream-50);
    border: 1px solid var(--stone-200);
    border-radius: 2px;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold-500);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--stone-400);
}

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

.form-privacy {
    font-size: 0.75rem;
    color: var(--stone-500);
    margin-top: 16px;
    text-align: center;
}

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

.form-success h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--navy-900);
    margin: 16px 0 8px;
}

.form-success p {
    font-size: 0.9rem;
    color: var(--stone-600);
    line-height: 1.7;
}

/* --- Location --- */
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: stretch;
}

.location-details {
    padding: 40px 0;
}

.location-details .section-title {
    margin-bottom: 20px;
}

.location-address {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--navy-800);
    font-style: normal;
    margin-bottom: 16px;
}

.location-address a {
    color: var(--navy-800);
    transition: color 0.2s;
}

.location-address a:hover {
    color: var(--gold-500);
}

.location-note {
    font-size: 0.88rem;
    color: var(--stone-500);
    margin-bottom: 24px;
}

.location-contact {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--navy-900);
    transition: color 0.2s;
}

.contact-link:hover {
    color: var(--gold-500);
}

.location-map {
    min-height: 400px;
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid var(--stone-200);
}

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

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

.logo-light {
    color: var(--white);
    margin-bottom: 16px;
}

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

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s;
}

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

.footer-contact address {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-contact a {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s;
}

.footer-contact a:hover {
    color: var(--gold-500);
}

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

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

.footer-disclaimer {
    font-size: 0.72rem !important;
    max-width: 400px;
    text-align: right;
}

/* --- Scroll Reveal (progressive enhancement) --- */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .about-grid,
    .approach-layout,
    .cta-inner,
    .location-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
    }

    .about-image img,
    .approach-image img {
        height: 360px;
    }

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

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

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

@media (max-width: 768px) {
    .section {
        padding: 72px 0;
    }

    .nav-toggle {
        display: block;
        z-index: 101;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--cream-50);
        border-left: 1px solid var(--stone-200);
        padding: 100px 32px 40px;
        transform: translateX(100%);
        transition: transform 0.4s var(--ease-out);
        z-index: 99;
    }

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

    .main-nav ul {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }

    .main-nav a {
        font-size: 0.9rem;
    }

    .hero-content {
        padding: 120px 0 100px;
    }

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

    .hero-actions .btn {
        text-align: center;
    }

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

    .about-image::before {
        display: none;
    }

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

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

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

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

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .hero-headline {
        font-size: 2rem;
    }

    .about-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .stat-divider {
        display: none;
    }
}

/* --- 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;
    }
}

/* --- Mobile nav overlay --- */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, 0.5);
    z-index: 98;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out);
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}
