/* ============================================
   ANASTASIA E SARBACH, MS — Medical & Health
   Clean Minimalist | Burgundy + Blush
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --color-burgundy: #781c25;
    --color-burgundy-deep: #5a1419;
    --color-burgundy-light: #9a2833;
    --color-blush: #f5e6e0;
    --color-blush-light: #faf3f0;
    --color-blush-mid: #f0dcd4;
    --color-cream: #fefcfb;
    --color-white: #ffffff;
    --color-text: #1a1a1a;
    --color-text-muted: #6b6b6b;
    --color-text-light: #999999;
    --color-border: #e8e0dc;
    --color-border-light: #f0ebe8;
    
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --fs-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.8rem);
    --fs-sm: clamp(0.8rem, 0.75rem + 0.3vw, 0.9rem);
    --fs-base: clamp(0.9rem, 0.85rem + 0.3vw, 1rem);
    --fs-md: clamp(1rem, 0.9rem + 0.4vw, 1.15rem);
    --fs-lg: clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
    --fs-xl: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem);
    --fs-2xl: clamp(1.8rem, 1.4rem + 1.4vw, 2.8rem);
    --fs-3xl: clamp(2.2rem, 1.6rem + 2vw, 4rem);
    --fs-4xl: clamp(2.8rem, 1.8rem + 3vw, 5.5rem);
    
    --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;
    
    --max-width: 1280px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: var(--fs-base);
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

input, textarea, button {
    font-family: inherit;
    font-size: inherit;
}

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

ul, ol {
    list-style: none;
}

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

.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-burgundy);
    color: var(--color-white);
    font-size: var(--fs-sm);
    z-index: 1000;
    border-radius: 0 0 4px 4px;
    transition: top var(--transition);
}

.skip-link:focus {
    top: 0;
}

/* --- Eyebrow --- */
.eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-burgundy);
    margin-bottom: var(--space-lg);
}

/* --- Section Heading --- */
.section-heading {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: var(--fs-2xl);
    line-height: 1.15;
    color: var(--color-text);
    letter-spacing: -0.01em;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.85em 2em;
    font-size: var(--fs-sm);
    font-weight: 400;
    letter-spacing: 0.06em;
    border-radius: 2px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--color-burgundy-deep);
    border-color: var(--color-burgundy-deep);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(120, 28, 37, 0.2);
}

.btn-ghost {
    background: transparent;
    color: var(--color-burgundy);
    border-color: var(--color-burgundy);
}

.btn-ghost:hover {
    background: var(--color-burgundy);
    color: var(--color-white);
    transform: translateY(-1px);
}

.btn-large {
    padding: 1em 2.5em;
    font-size: var(--fs-base);
}

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

.btn-icon {
    width: 18px;
    height: 18px;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(254, 252, 251, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border-light);
    transition: box-shadow var(--transition);
}

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

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

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

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-family: var(--font-serif);
    font-size: var(--fs-md);
    font-weight: 400;
    font-style: italic;
    color: var(--color-burgundy);
    border: 1px solid var(--color-burgundy);
    border-radius: 2px;
    flex-shrink: 0;
}

.logo-mark--sm {
    width: 32px;
    height: 32px;
    font-size: var(--fs-sm);
}

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

.logo-name {
    font-family: var(--font-serif);
    font-size: var(--fs-md);
    font-weight: 400;
    color: var(--color-text);
    letter-spacing: 0.01em;
}

.logo-sub {
    font-size: var(--fs-xs);
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.nav-link {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--fs-sm);
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    border-radius: 2px;
    transition: color var(--transition);
}

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

.nav-cta {
    margin-left: var(--space-lg);
    color: var(--color-burgundy);
    border: 1px solid var(--color-burgundy);
    padding: 0.55em 1.4em;
    border-radius: 2px;
    transition: all var(--transition);
}

.nav-cta:hover {
    background: var(--color-burgundy);
    color: var(--color-white);
}

/* Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    z-index: 110;
}

.nav-toggle-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--color-text);
    transition: all var(--transition);
    transform-origin: center;
}

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

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

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 72px;
    background: var(--color-cream);
    overflow: hidden;
}

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

.hero-content {
    padding-right: var(--space-2xl);
}

.hero-eyebrow {
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-burgundy);
    margin-bottom: var(--space-xl);
}

.hero-headline {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: var(--fs-4xl);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin-bottom: var(--space-2xl);
}

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

.hero-subheadline {
    font-size: var(--fs-md);
    line-height: 1.75;
    color: var(--color-text-muted);
    margin-bottom: var(--space-2xl);
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-bottom: var(--space-3xl);
}

.hero-divider {
    margin-bottom: var(--space-2xl);
}

.divider-line {
    display: block;
    width: 60px;
    height: 1px;
    background: var(--color-burgundy);
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.hero-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-light);
}

.meta-value {
    font-size: var(--fs-sm);
    color: var(--color-text);
    font-weight: 400;
}

.meta-link {
    color: var(--color-burgundy);
    transition: color var(--transition);
}

.meta-link:hover {
    color: var(--color-burgundy-deep);
    text-decoration: underline;
}

.hero-meta-separator {
    width: 1px;
    height: 40px;
    background: var(--color-border);
}

/* Hero Visual */
.hero-visual {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.hero-image-wrapper img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
}

.hero-accent {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 120px;
    height: 120px;
    background: var(--color-blush);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.6;
}

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

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

.about-eyebrow-wrap .eyebrow {
    margin-bottom: 0;
}

.about-content {
    padding-top: var(--space-md);
}

.about-content .section-heading {
    margin-bottom: var(--space-2xl);
}

.about-text {
    font-size: var(--fs-md);
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
}

.about-stats {
    display: flex;
    gap: var(--space-xl);
    margin-top: var(--space-3xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--color-border);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.stat-value {
    font-family: var(--font-serif);
    font-size: var(--fs-xl);
    font-weight: 400;
    color: var(--color-burgundy);
    line-height: 1.2;
}

.stat-label {
    font-size: var(--fs-xs);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-light);
    line-height: 1.4;
}

.stat-separator {
    width: 1px;
    background: var(--color-border);
    align-self: stretch;
    flex-shrink: 0;
    margin-top: 4px;
}

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

.services-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto var(--space-4xl);
}

.services-header .eyebrow {
    margin-bottom: var(--space-lg);
}

.services-header .section-heading {
    margin-bottom: 0;
}

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

.service-card {
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: 4px;
    padding: var(--space-2xl);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-burgundy);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

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

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(120, 28, 37, 0.08);
}

.service-number {
    font-family: var(--font-serif);
    font-size: var(--fs-3xl);
    font-weight: 300;
    color: var(--color-blush-mid);
    line-height: 1;
    margin-bottom: var(--space-lg);
    transition: color var(--transition);
}

.service-card:hover .service-number {
    color: var(--color-burgundy);
}

.service-title {
    font-family: var(--font-serif);
    font-size: var(--fs-xl);
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

.service-desc {
    font-size: var(--fs-base);
    line-height: 1.7;
    color: var(--color-text-muted);
}

/* --- Philosophy --- */
.philosophy {
    padding: var(--space-5xl) 0;
    background: var(--color-cream);
}

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

.philosophy-visual img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    aspect-ratio: 7 / 5;
    object-fit: cover;
}

.philosophy-content .eyebrow {
    margin-bottom: var(--space-lg);
}

.philosophy-content .section-heading {
    margin-bottom: var(--space-xl);
}

.philosophy-divider {
    width: 60px;
    height: 1px;
    background: var(--color-burgundy);
    margin-bottom: var(--space-2xl);
}

.philosophy-text {
    font-size: var(--fs-md);
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: var(--space-2xl);
}

.philosophy-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.philosophy-list-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--fs-base);
    color: var(--color-text);
}

.list-mark {
    width: 6px;
    height: 6px;
    background: var(--color-burgundy);
    border-radius: 50%;
    flex-shrink: 0;
}

.philosophy-quote {
    padding: var(--space-xl);
    border-left: 2px solid var(--color-burgundy);
    background: var(--color-blush-light);
    border-radius: 0 4px 4px 0;
}

.philosophy-quote blockquote {
    font-family: var(--font-serif);
    font-size: var(--fs-lg);
    font-style: italic;
    font-weight: 400;
    color: var(--color-burgundy);
    line-height: 1.6;
}

/* --- CTA Section --- */
.cta-section {
    padding: var(--space-5xl) 0;
    background: var(--color-burgundy);
}

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

.cta-inner .eyebrow {
    color: var(--color-blush);
    margin-bottom: var(--space-xl);
}

.cta-heading {
    color: var(--color-white);
    margin-bottom: var(--space-xl);
}

.cta-text {
    font-size: var(--fs-md);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: var(--space-3xl);
}

.cta-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

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

.cta-actions .btn-ghost:hover {
    background: var(--color-white);
    color: var(--color-burgundy);
    border-color: var(--color-white);
}

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

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

.contact-info .eyebrow {
    margin-bottom: var(--space-lg);
}

.contact-info .section-heading {
    margin-bottom: var(--space-xl);
}

.contact-text {
    font-size: var(--fs-md);
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: var(--space-3xl);
}

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

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

.detail-icon {
    width: 20px;
    height: 20px;
    color: var(--color-burgundy);
    flex-shrink: 0;
    margin-top: 3px;
}

.detail-label {
    display: block;
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: 4px;
}

.detail-value {
    font-size: var(--fs-base);
    color: var(--color-text);
}

.detail-link {
    color: var(--color-burgundy);
    transition: color var(--transition);
}

.detail-link:hover {
    color: var(--color-burgundy-deep);
    text-decoration: underline;
}

/* Contact Form */
.contact-form-wrap {
    background: var(--color-blush-light);
    border-radius: 4px;
    padding: var(--space-3xl);
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.85em 1em;
    font-size: var(--fs-base);
    font-weight: 300;
    color: var(--color-text);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 2px;
    outline: none;
    transition: border-color var(--transition);
}

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

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

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

.form-success {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--color-blush);
    border-radius: 4px;
    margin-top: var(--space-md);
}

.form-success svg {
    width: 20px;
    height: 20px;
    color: var(--color-burgundy);
    flex-shrink: 0;
}

.form-success span {
    font-size: var(--fs-sm);
    color: var(--color-burgundy-deep);
}

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

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-md);
}

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

.footer-name {
    font-family: var(--font-serif);
    font-size: var(--fs-lg);
    font-weight: 400;
    color: var(--color-white);
}

.footer-address {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.5);
}

.footer-copy {
    font-size: var(--fs-xs);
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.04em;
}

/* --- Scroll Animations --- */
.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.visible {
    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) {
    .hero-grid {
        gap: var(--space-2xl);
    }
    
    .hero-content {
        padding-right: 0;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-lg);
    }
    
    /* Mobile Nav */
    .nav-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 85vw);
        height: 100vh;
        height: 100dvh;
        background: var(--color-cream);
        padding: 100px var(--space-2xl) var(--space-2xl);
        transform: translateX(100%);
        transition: transform var(--transition);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    }
    
    .main-nav.open {
        transform: translateX(0);
    }
    
    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-xs);
    }
    
    .nav-link {
        padding: var(--space-md);
        font-size: var(--fs-md);
    }
    
    .nav-cta {
        margin-left: 0;
        margin-top: var(--space-md);
        text-align: center;
    }
    
    /* Hero */
    .hero {
        min-height: auto;
        padding-top: calc(72px + var(--space-2xl));
        padding-bottom: var(--space-3xl);
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
        padding: 0;
    }
    
    .hero-content {
        padding-right: 0;
        order: 2;
    }
    
    .hero-visual {
        order: 1;
    }
    
    .hero-image-wrapper img {
        aspect-ratio: 4 / 3;
    }
    
    .hero-accent {
        width: 80px;
        height: 80px;
        bottom: -10px;
        left: -10px;
    }
    
    .hero-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }
    
    .hero-meta-separator {
        width: 40px;
        height: 1px;
    }
    
    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .about-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .stat-separator {
        width: 100%;
        height: 1px;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Philosophy */
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .philosophy-visual {
        order: -1;
    }
    
    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }
    
    .contact-form-wrap {
        padding: var(--space-xl);
    }
    
    /* CTA */
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: var(--fs-3xl);
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
