/* ============================================
   Dr. Richard M. Robinson — Medical Practice
   Clean Minimalist | Deep Navy + Warm Gold
   ============================================ */

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

:root {
    --navy-950: #0a1628;
    --navy-900: #1e3a5f;
    --navy-800: #264a73;
    --navy-700: #2d5580;
    --gold-500: #c8a45a;
    --gold-400: #d4b76a;
    --gold-300: #e0c97a;
    --gold-200: #f0df9a;
    --white: #ffffff;
    --off-white: #f8f7f4;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e8e8e8;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

a {
    color: var(--navy-900);
    text-decoration: none;
    transition: color var(--transition);
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    color: var(--navy-900);
}

.section-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: var(--space-lg);
    display: block;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: var(--space-xl);
    color: var(--navy-900);
}

.section-title--center {
    text-align: center;
}

.section-subtitle {
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--gray-600);
    max-width: 560px;
    margin: 0 auto var(--space-3xl);
    line-height: 1.7;
}

.lead {
    font-size: 1.15rem;
    font-weight: 300;
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

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

.btn-primary:hover {
    background-color: var(--navy-800);
    border-color: var(--navy-800);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(30, 58, 95, 0.3);
}

.btn-ghost {
    background-color: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-ghost:hover {
    border-color: var(--gold-400);
    color: var(--gold-400);
    transform: translateY(-1px);
}

.btn-full {
    width: 100%;
}

/* ---------- Header / Navigation ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    transition: all var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--navy-900);
}

.logo:hover {
    color: var(--navy-900);
}

.logo-mark {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--white);
    background-color: var(--navy-900);
    border-radius: var(--radius-sm);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--navy-900);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    list-style: none;
}

.nav-links a {
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gray-600);
    position: relative;
    padding: var(--space-xs) 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--gold-500);
    transition: width var(--transition);
}

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

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

.nav-cta {
    background-color: var(--navy-900);
    color: var(--white) !important;
    padding: 0.6rem 1.25rem !important;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    font-size: 0.78rem !important;
    letter-spacing: 0.08em !important;
    transition: all var(--transition) !important;
}

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

.nav-cta:hover {
    background-color: var(--navy-800) !important;
    color: var(--white) !important;
    transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 22px;
    height: 14px;
    position: relative;
}

.hamburger::before,
.hamburger::after,
.hamburger span {
    display: block;
    width: 100%;
    height: 1.5px;
    background-color: var(--navy-900);
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: all var(--transition);
}

.hamburger::before { top: 0; }
.hamburger span { top: 50%; transform: translateY(-50%); }
.hamburger::after { bottom: 0; }

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

.nav-toggle[aria-expanded="true"] .hamburger span {
    opacity: 0;
}

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

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

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 22, 40, 0.88) 0%,
        rgba(30, 58, 95, 0.75) 50%,
        rgba(10, 22, 40, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 780px;
    padding: var(--space-3xl) var(--space-xl);
}

.hero-eyebrow {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold-400);
    margin-bottom: var(--space-xl);
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: var(--space-xl);
    letter-spacing: -0.01em;
}

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

.hero-subheadline {
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    margin-bottom: var(--space-2xl);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
    margin-bottom: var(--space-3xl);
}

.hero-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
}

.trust-item {
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.trust-divider {
    width: 1px;
    height: 16px;
    background-color: rgba(255, 255, 255, 0.2);
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color var(--transition);
}

.scroll-indicator:hover {
    color: rgba(255, 255, 255, 0.7);
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.4; transform: scaleY(0.7); }
}

/* ---------- About ---------- */
.about {
    padding: var(--space-5xl) 0;
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

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

.about-image {
    width: 100%;
    height: 560px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.about-image-accent {
    position: absolute;
    top: -16px;
    left: -16px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--gold-500);
    border-radius: var(--radius-md);
    z-index: -1;
}

.about-content {
    padding: var(--space-xl) 0;
}

.about-content p {
    color: var(--gray-600);
    margin-bottom: var(--space-lg);
}

.about-values {
    margin-top: var(--space-2xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.value-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--gray-200);
}

.value-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.value-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-500);
}

.value-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--navy-900);
    line-height: 1.4;
}

/* ---------- Services ---------- */
.services {
    padding: var(--space-5xl) 0;
    background-color: var(--off-white);
}

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

.service-card {
    background-color: var(--white);
    padding: var(--space-2xl);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
}

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

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

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: var(--space-md);
    color: var(--navy-900);
}

.service-card p {
    font-size: 0.92rem;
    color: var(--gray-600);
    line-height: 1.75;
}

/* ---------- Divider / Quote ---------- */
.divider-section {
    padding: var(--space-5xl) 0;
    background-color: var(--navy-900);
    text-align: center;
}

.divider-quote {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
}

.quote-mark {
    font-family: var(--font-display);
    font-size: 8rem;
    line-height: 0.8;
    color: var(--gold-500);
    opacity: 0.3;
    position: absolute;
    top: -2rem;
    left: -1rem;
    user-select: none;
}

.divider-quote p {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 300;
    font-style: italic;
    color: var(--white);
    line-height: 1.5;
    margin-bottom: var(--space-xl);
    position: relative;
    z-index: 1;
}

.divider-quote cite {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-style: normal;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-400);
}

/* ---------- Patients ---------- */
.patients {
    padding: var(--space-5xl) 0;
    background-color: var(--white);
}

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

.patient-step {
    padding: var(--space-2xl);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: all var(--transition);
    position: relative;
}

.patient-step:hover {
    border-color: var(--gold-500);
}

.step-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 300;
    color: var(--gold-500);
    opacity: 0.4;
    line-height: 1;
    margin-bottom: var(--space-lg);
    display: block;
}

.patient-step h3 {
    font-size: 1.15rem;
    font-weight: 400;
    margin-bottom: var(--space-md);
    color: var(--navy-900);
}

.patient-step p {
    font-size: 0.88rem;
    color: var(--gray-600);
    line-height: 1.75;
}

/* ---------- Contact ---------- */
.contact {
    padding: var(--space-5xl) 0;
    background-color: var(--off-white);
}

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

.contact-details {
    margin-top: var(--space-2xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.contact-detail {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.detail-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-500);
}

.detail-value {
    font-size: 1rem;
    color: var(--gray-800);
    line-height: 1.7;
}

.detail-link {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--navy-900);
}

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

.contact-map {
    margin-top: var(--space-2xl);
}

.map-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    filter: saturate(0.6) contrast(1.05);
}

.map-link {
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--navy-900);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    transition: color var(--transition);
}

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

/* Contact Form */
.contact-form-wrap {
    background-color: var(--white);
    padding: var(--space-2xl);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
}

.form-title {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: var(--space-sm);
    color: var(--navy-900);
}

.form-note {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: var(--space-xl);
}

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

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gray-600);
    margin-bottom: var(--space-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 300;
    color: var(--gray-800);
    background-color: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold-500);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(200, 164, 90, 0.1);
}

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

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

.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-3xl);
    text-align: center;
    background-color: var(--navy-900);
    border-radius: var(--radius-md);
    color: var(--white);
}

.form-success svg {
    color: var(--gold-400);
}

.form-success p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

/* ---------- Footer ---------- */
.site-footer {
    background-color: var(--navy-950);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-brand .logo-mark {
    background-color: var(--gold-500);
    color: var(--navy-950);
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-tagline {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.5);
}

.footer-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.08);
    margin-bottom: var(--space-xl);
}

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

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

.footer-bottom a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-bottom a:hover {
    color: var(--gold-400);
}

/* ---------- Scroll Reveal (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

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

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

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-lg);
    }

    /* Mobile Navigation */
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px var(--space-xl) var(--space-xl);
        gap: var(--space-lg);
        box-shadow: -8px 0 40px rgba(0, 0, 0, 0.1);
        transition: right var(--transition);
        z-index: 999;
    }

    .nav-links.open {
        right: 0;
    }

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

    .nav-cta {
        margin-top: var(--space-sm);
    }

    /* Hero */
    .hero {
        min-height: 100svh;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

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

    .hero-trust {
        flex-direction: column;
        gap: var(--space-md);
    }

    .trust-divider {
        display: none;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .about-image {
        height: 400px;
    }

    .about-image-accent {
        top: -10px;
        left: -10px;
    }

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

    /* Patients */
    .patients-grid {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }

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

    /* Footer */
    .footer-top {
        flex-direction: column;
        align-items: flex-start;
    }

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

@media (max-width: 480px) {
    .hero-headline {
        font-size: 2rem;
    }

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

    .service-card {
        padding: var(--space-xl);
    }

    .contact-form-wrap {
        padding: var(--space-lg);
    }
}

/* Mobile nav overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

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