/* ========================================
   Primary Care & Weight Loss
   Stylesheet — Deep Navy + Warm Gold
   ======================================== */

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

:root {
    --navy: #0f1c2e;
    --navy-light: #1a2d45;
    --navy-lighter: #243650;
    --gold: #c9a84c;
    --gold-light: #d4b968;
    --gold-pale: #f5e6b8;
    --cream: #faf8f4;
    --cream-dark: #f3efe8;
    --white: #ffffff;
    --text-dark: #0f1c2e;
    --text-light: #f5f5f5;
    --text-muted: #6b7280;
    --text-muted-light: rgba(255,255,255,0.6);
    
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, sans-serif;
    
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

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

em {
    font-style: italic;
    color: var(--gold);
}

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

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: var(--navy-light);
    border-color: var(--navy-light);
}

.btn-ghost {
    background: transparent;
    color: var(--navy);
    border: 1px solid var(--navy);
}

.btn-ghost:hover {
    background: var(--navy);
    color: var(--white);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 0.85rem;
}

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

/* ========================================
   HEADER
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 248, 244, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15, 28, 46, 0.06);
    transition: var(--transition);
}

.site-header.scrolled {
    background: rgba(250, 248, 244, 0.97);
    box-shadow: 0 1px 20px rgba(15, 28, 46, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--navy);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.logo-mark {
    color: var(--navy);
    flex-shrink: 0;
}

.logo-light {
    color: var(--white);
}

.logo-light .logo-mark {
    color: var(--white);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

/* --- Navigation --- */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle-line {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--navy);
    transition: var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

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

.nav-menu a {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--navy);
    position: relative;
    padding-bottom: 2px;
}

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

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

/* ========================================
   HERO
   ======================================== */
.hero {
    padding-top: 120px;
    padding-bottom: var(--space-3xl);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--cream);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(135deg, var(--cream-dark) 0%, var(--cream) 100%);
    pointer-events: none;
}

.hero-line {
    position: absolute;
    bottom: 0;
    left: var(--space-lg);
    right: var(--space-lg);
    height: 1px;
    background: linear-gradient(90deg, var(--navy) 0%, transparent 100%);
    opacity: 0.15;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

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

.hero-title {
    font-size: clamp(2.75rem, 5.5vw, 4.5rem);
    color: var(--navy);
    margin-bottom: var(--space-lg);
    line-height: 1.05;
}

.hero-title .line {
    display: block;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 440px;
    margin-bottom: var(--space-xl);
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
}

.hero-image-frame {
    position: relative;
    overflow: hidden;
}

.hero-image-frame img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    filter: grayscale(15%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-image-frame:hover img {
    transform: scale(1.02);
}

.hero-image-accent {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 120px;
    height: 120px;
    border: 1px solid var(--gold);
    opacity: 0.4;
    pointer-events: none;
}

.hero-stats {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(15, 28, 46, 0.1);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--navy);
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

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

/* ========================================
   SERVICES
   ======================================== */
.services {
    padding: var(--space-3xl) 0;
    background: var(--white);
}

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

.service-card {
    padding: var(--space-xl);
    border: 1px solid rgba(15, 28, 46, 0.08);
    position: relative;
    transition: var(--transition);
    background: var(--white);
}

.service-card:hover {
    border-color: var(--gold);
    box-shadow: 0 20px 60px rgba(15, 28, 46, 0.06);
    transform: translateY(-4px);
}

.service-number {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 300;
    color: var(--navy);
    opacity: 0.06;
    line-height: 1;
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--navy);
    margin-bottom: var(--space-md);
    color: var(--navy);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    color: var(--navy);
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--navy);
    transition: var(--transition);
}

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

.service-link svg {
    transition: transform var(--transition);
}

.service-link:hover svg {
    transform: translate(4px, -4px);
}

/* ========================================
   ABOUT
   ======================================== */
.about {
    padding: var(--space-3xl) 0;
    background: var(--cream);
}

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

.about-visual {
    position: relative;
}

.about-image {
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 8/10;
    object-fit: cover;
    filter: grayscale(10%);
}

.about-image-secondary {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 55%;
    overflow: hidden;
    border: 4px solid var(--cream);
}

.about-image-secondary img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/2;
    object-fit: cover;
    filter: grayscale(10%);
}

.about-content .section-title {
    margin-bottom: var(--space-lg);
}

.about-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: var(--space-md);
}

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

.value-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.value-line {
    display: block;
    width: 40px;
    height: 1px;
    background: var(--gold);
    flex-shrink: 0;
}

.value-label {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--navy);
    letter-spacing: 0.05em;
}

/* ========================================
   APPROACH
   ======================================== */
.approach {
    padding: var(--space-3xl) 0;
    background: var(--navy);
    color: var(--white);
}

.approach-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: var(--space-md);
    display: block;
}

.approach-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    color: var(--white);
    margin-bottom: var(--space-2xl);
}

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

.approach-step {
    position: relative;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(201, 168, 76, 0.3);
}

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

.approach-step h3 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.approach-step p {
    font-size: 0.9rem;
    color: var(--text-muted-light);
    line-height: 1.8;
}

/* ========================================
   CTA
   ======================================== */
.cta-section {
    padding: var(--space-3xl) 0;
    background: var(--cream-dark);
}

.cta-inner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

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

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--navy);
    margin-bottom: var(--space-md);
}

.cta-text {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
    line-height: 1.8;
}

/* ========================================
   CONTACT
   ======================================== */
.contact {
    padding: var(--space-3xl) 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
}

.contact-intro {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
}

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

.contact-detail {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.detail-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 28, 46, 0.12);
    color: var(--navy);
    flex-shrink: 0;
}

.detail-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.detail-value {
    display: block;
    font-size: 0.9rem;
    color: var(--navy);
    line-height: 1.6;
}

.detail-value a {
    color: var(--navy);
    transition: color var(--transition);
}

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

/* --- Form --- */
.contact-form-wrapper {
    background: var(--cream);
    padding: var(--space-xl);
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--navy);
    background: var(--white);
    border: 1px solid rgba(15, 28, 46, 0.15);
    padding: 0.875rem 1rem;
    outline: none;
    transition: border-color var(--transition);
    resize: vertical;
    width: 100%;
}

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

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

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%230f1c2e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* --- Success Message --- */
.form-success {
    text-align: center;
    padding: var(--space-xl);
}

.form-success.hidden {
    display: none;
}

.success-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gold);
    color: var(--gold);
}

.form-success h3 {
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: var(--space-sm);
}

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

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background: var(--navy);
    color: var(--white);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
    max-width: 300px;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-muted-light);
    line-height: 1.7;
    margin-top: var(--space-md);
}

.footer-nav {
    display: flex;
    gap: var(--space-lg);
    list-style: none;
}

.footer-nav a {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted-light);
    transition: color var(--transition);
}

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

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

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--text-muted-light);
}

.footer-bottom a {
    color: var(--text-muted-light);
    transition: color var(--transition);
}

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

/* ========================================
   MOBILE MENU
   ======================================== */
@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 85vw);
        height: 100vh;
        height: 100dvh;
        background: var(--cream);
        flex-direction: column;
        justify-content: center;
        gap: var(--space-lg);
        padding: var(--space-xl);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 40px rgba(15, 28, 46, 0.1);
        z-index: 999;
    }

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

    .nav-menu a {
        font-size: 1rem;
        letter-spacing: 0.1em;
    }

    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(15, 28, 46, 0.4);
        z-index: 998;
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--transition);
    }

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

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .hero::before {
        display: none;
    }

    .hero-visual {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-title {
        font-size: clamp(2.25rem, 8vw, 3.5rem);
    }

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

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

    .about-image-secondary {
        position: relative;
        bottom: auto;
        right: auto;
        width: 100%;
        margin-top: var(--space-sm);
        border: none;
    }

    .approach-steps {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

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

    .footer-top {
        flex-direction: column;
    }

    .footer-nav {
        flex-wrap: wrap;
        gap: var(--space-md);
    }
}

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

    .hero {
        padding-top: 100px;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .stat-divider {
        display: none;
    }

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

    .contact-form-wrapper {
        padding: var(--space-md);
    }

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

/* ========================================
   REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
