/* ============================================
   Dr. James P. Krieg — Medical & Health
   Bold Editorial Style | Deep Navy + Warm Gold
   ============================================ */

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

:root {
    --navy-950: #060D1A;
    --navy-900: #0A1628;
    --navy-800: #0F2137;
    --navy-700: #162D4A;
    --navy-600: #1E3A5F;
    --navy-500: #264673;
    
    --gold-500: #C9A84C;
    --gold-400: #D4B965;
    --gold-300: #E0CA80;
    --gold-600: #A88A35;
    
    --cream-50: #FAF8F5;
    --cream-100: #F5F1EB;
    --cream-200: #EDE8E0;
    
    --white: #FFFFFF;
    --black: #0A0A0A;
    
    --text-dark: #1A1A1A;
    --text-muted: #5A5A5A;
    --text-light: #8A8A8A;
    
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 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;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background: var(--cream-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

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

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

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

.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    color: var(--navy-900);
    margin-bottom: 24px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    text-transform: uppercase;
}

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

.btn-primary:hover {
    background: var(--gold-400);
    border-color: var(--gold-400);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 168, 76, 0.3);
}

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

.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s var(--ease-out);
}

.navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 0;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.2);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gold-500);
    color: var(--navy-900);
    font-family: var(--font-serif);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    border-radius: 4px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-link {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link:hover {
    color: var(--white);
}

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

.nav-cta {
    background: var(--gold-500);
    color: var(--navy-900) !important;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
}

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

.nav-cta:hover {
    background: var(--gold-400);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
}

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

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(6, 13, 26, 0.92) 0%,
        rgba(10, 22, 40, 0.85) 40%,
        rgba(15, 33, 55, 0.75) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 120px;
    padding-bottom: 80px;
    max-width: 800px;
}

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

.hero-headline {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.05;
    margin-bottom: 28px;
    letter-spacing: -0.03em;
}

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: 40px;
    font-weight: 300;
}

.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.6875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-scroll svg {
    animation: scrollBounce 2s ease-in-out infinite;
}

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

/* --- Services --- */
.services {
    padding: 120px 0;
    background: var(--cream-50);
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 72px;
}

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

.service-card {
    background: var(--white);
    border-radius: 8px;
    padding: 40px 32px;
    border: 1px solid var(--cream-200);
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

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

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(10, 22, 40, 0.08);
    border-color: transparent;
}

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

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy-900);
    border-radius: 8px;
    margin-bottom: 24px;
    color: var(--gold-500);
}

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

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

/* --- About --- */
.about {
    padding: 120px 0;
    background: var(--navy-900);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

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

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
    position: relative;
    z-index: 1;
}

.about-image-accent {
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 2px solid var(--gold-500);
    border-radius: 8px;
    z-index: 0;
}

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

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

.about-body {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    gap: 48px;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.stat-number {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--gold-500);
    line-height: 1;
}

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

/* --- Approach --- */
.approach {
    padding: 120px 0;
    background: var(--cream-100);
}

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

.approach-item {
    padding: 32px 24px;
    position: relative;
}

.approach-number {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 900;
    color: var(--gold-500);
    opacity: 0.25;
    line-height: 1;
    margin-bottom: 16px;
    display: block;
}

.approach-item h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--navy-900);
    margin-bottom: 12px;
    font-weight: 700;
}

.approach-item p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* --- Location --- */
.location {
    padding: 120px 0;
    background: var(--cream-50);
}

.location-content {
    max-width: 1100px;
    margin: 0 auto;
}

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

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

.location-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.location-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.location-item svg {
    color: var(--gold-500);
    flex-shrink: 0;
    margin-top: 2px;
}

.location-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 4px;
}

.location-value {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    color: var(--navy-900);
    line-height: 1.6;
}

.location-value a {
    color: var(--navy-900);
    transition: color 0.3s ease;
}

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

.location-map {
    border-radius: 8px;
    overflow: hidden;
    min-height: 360px;
    box-shadow: 0 8px 32px rgba(10, 22, 40, 0.1);
}

/* --- Contact --- */
.contact {
    padding: 120px 0;
    background: var(--navy-900);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

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

.contact-info .section-title {
    color: var(--white);
}

.contact-body {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    margin-bottom: 32px;
}

.contact-phone {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-500);
    transition: color 0.3s ease;
}

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

/* Form */
.contact-form-wrap {
    background: var(--white);
    border-radius: 8px;
    padding: 48px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.form-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--navy-900);
    margin-bottom: 32px;
    font-weight: 700;
}

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

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--text-dark);
    background: var(--cream-50);
    border: 1.5px solid var(--cream-200);
    border-radius: 4px;
    transition: all 0.3s ease;
    outline: none;
}

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

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

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

.form-note {
    font-size: 0.8125rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 16px;
}

.form-success {
    text-align: center;
    padding: 48px 24px;
}

.form-success svg {
    color: var(--gold-500);
    margin-bottom: 20px;
}

.form-success h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--navy-900);
    margin-bottom: 12px;
}

.form-success p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* --- Footer --- */
.footer {
    background: var(--navy-950);
    padding: 72px 0 0;
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-brand .logo-mark {
    width: 48px;
    height: 48px;
    font-size: 0.9rem;
}

.footer-brand .logo-text {
    color: var(--white);
    font-size: 1.25rem;
}

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

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

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

.footer-links a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.3s ease;
}

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

.footer-contact p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    margin-bottom: 8px;
}

.footer-contact a {
    color: var(--gold-500);
    transition: color 0.3s ease;
}

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

.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.8125rem;
    color: rgba(255, 255, 255, 0.35);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.35);
    transition: color 0.3s ease;
}

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

/* --- Scroll Reveal --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .hero-scroll svg {
        animation: none;
    }
}

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

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--navy-900);
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        padding: 40px;
        transition: right 0.4s var(--ease-out);
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
    }
    
    .nav-links.open {
        right: 0;
    }
    
    .nav-link {
        font-size: 1rem;
    }
    
    .hero-content {
        padding-top: 100px;
    }
    
    .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image img {
        height: 360px;
    }
    
    .about-stats {
        gap: 32px;
    }
    
    .approach-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .location-details {
        grid-template-columns: 1fr;
    }
    
    .location-map {
        min-height: 280px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .contact-form-wrap {
        padding: 32px 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .services, .about, .approach, .location, .contact {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
    
    .about-stats {
        flex-direction: column;
        gap: 24px;
    }
}
