/* ============================================
   CSS Custom Properties
   ============================================ */
:root {
    --burgundy: #781F2E;
    --burgundy-dark: #5C1A23;
    --burgundy-light: #9A2D40;
    --blush: #F5E6E0;
    --blush-light: #FBF6F4;
    --blush-mid: #F0D5CC;
    --cream: #FDF8F6;
    --white: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-mid: #3D3D3D;
    --text-light: #6B6B6B;
    --text-muted: #999999;
    --line: #E8DCD7;
    --line-light: #F0E6E2;
    
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, 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;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    --shadow-sm: 0 1px 3px rgba(120, 31, 46, 0.04), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 20px rgba(120, 31, 46, 0.06), 0 2px 8px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 40px rgba(120, 31, 46, 0.08), 0 4px 16px rgba(0,0,0,0.04);
    
    --transition: 0.3s 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-body);
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

a:hover {
    color: var(--burgundy-light);
}

ul {
    list-style: none;
}

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

/* ============================================
   Utility
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

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

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--burgundy-dark);
    border-color: var(--burgundy-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    background: transparent;
    color: var(--text-mid);
    border-color: var(--line);
}

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

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

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

/* ============================================
   Section Labels & Titles
   ============================================ */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: var(--space-lg);
}

.section-title .accent {
    color: var(--burgundy);
    font-style: italic;
}

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

.header.scrolled {
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    color: var(--text-dark);
}

.logo-mark {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--burgundy);
    background: var(--blush);
    padding: 0.375rem 0.5rem;
    border-radius: var(--radius-sm);
}

.logo-text {
    font-size: 0.9375rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.logo-suffix {
    font-weight: 500;
    color: var(--burgundy);
}

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

.nav a {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-mid);
    text-decoration: none;
    letter-spacing: 0.01em;
    position: relative;
}

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

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

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

/* Mobile Nav Toggle */
.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: 1.5px;
    background: var(--text-dark);
    transition: all var(--transition);
    transform-origin: center;
}

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

.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, -5px);
}

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

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(ellipse at 70% 20%, rgba(245, 230, 224, 0.8) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(240, 213, 204, 0.4) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 680px;
}

.hero-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(2rem, 5vw, 3.5rem);
    box-shadow: var(--shadow-lg);
}

.hero-greeting {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: var(--space-md);
}

.greeting-line {
    display: block;
    width: 32px;
    height: 1.5px;
    background: var(--burgundy);
    flex-shrink: 0;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: var(--space-md);
}

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

.hero-sub {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text-light);
    margin-bottom: var(--space-lg);
    max-width: 520px;
}

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

/* Floating Cards */
.floating-cards {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.float-card {
    position: absolute;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 0.625rem;
    animation: float 6s ease-in-out infinite;
}

.float-card--1 {
    top: 18%;
    right: 5%;
    animation-delay: 0s;
}

.float-card--2 {
    top: 42%;
    right: 2%;
    animation-delay: 1.5s;
}

.float-card--3 {
    bottom: 28%;
    right: 8%;
    animation-delay: 3s;
}

.float-card--4 {
    bottom: 15%;
    right: 3%;
    animation-delay: 4.5s;
}

.fc-number {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--burgundy);
}

.fc-label {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-light);
    letter-spacing: 0.02em;
}

.float-card svg {
    color: var(--burgundy);
    flex-shrink: 0;
}

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

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

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

.service-card {
    padding: var(--space-lg);
    border: 1px solid var(--line-light);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.service-card:hover {
    border-color: var(--blush-mid);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.service-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--blush);
    color: var(--burgundy);
    margin-bottom: var(--space-md);
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.1875rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

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

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

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

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

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/5;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image-accent {
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 120px;
    height: 120px;
    background: var(--blush);
    border-radius: var(--radius-md);
    z-index: -1;
}

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

.about-lead {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-mid);
    margin-bottom: var(--space-md);
}

.about-content > p {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--text-light);
    margin-bottom: var(--space-lg);
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--line);
}

.value-item {
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    gap: var(--space-sm);
}

.value-num {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--blush-mid);
    padding-top: 0.2rem;
}

.value-item strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.125rem;
}

.value-item span {
    font-size: 0.875rem;
    color: var(--text-light);
}

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

.approach .section-label {
    color: var(--blush-mid);
}

.approach .section-title {
    color: var(--white);
    margin-bottom: var(--space-xl);
}

.approach .section-title .accent {
    color: var(--blush);
}

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

.approach-step {
    padding: var(--space-lg);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.approach-step:hover {
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.04);
}

.step-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    color: var(--blush);
    margin-bottom: var(--space-sm);
    line-height: 1;
}

.approach-step h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.approach-step p {
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.65);
}

/* ============================================
   Patient Info
   ============================================ */
.patient-info {
    padding: var(--space-2xl) 0;
    background: var(--white);
    border-top: 1px solid var(--line-light);
}

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

.info-block {
    padding: var(--space-lg);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.info-block-label {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: var(--space-sm);
}

.info-block-content p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-mid);
    margin-bottom: 0.25rem;
}

.info-block-content .time {
    font-weight: 500;
    color: var(--text-dark);
}

.info-note {
    font-size: 0.8125rem !important;
    color: var(--text-muted) !important;
    font-style: italic;
}

.link-arrow {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--burgundy);
    text-decoration: none;
}

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

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

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

.contact-sub {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-light);
    margin-bottom: var(--space-lg);
    max-width: 440px;
}

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

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

.contact-detail svg {
    color: var(--burgundy);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

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

.contact-detail span,
.contact-detail a {
    font-size: 0.9375rem;
    color: var(--text-mid);
    text-decoration: none;
}

.contact-detail a:hover {
    color: var(--burgundy);
}

/* Form */
.contact-form-wrap {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: var(--shadow-md);
}

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

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--cream);
    color: var(--text-dark);
    font-size: 0.9375rem;
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--burgundy);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(120, 31, 46, 0.08);
}

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

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

.form-note {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: var(--space-sm);
    text-align: center;
}

.form-success {
    text-align: center;
    padding: var(--space-xl) var(--space-md);
}

.form-success svg {
    color: var(--burgundy);
    margin: 0 auto var(--space-sm);
}

.form-success h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

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

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--text-dark);
    color: rgba(255,255,255,0.6);
    padding: var(--space-2xl) 0 var(--space-lg);
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-brand .logo-mark {
    background: rgba(255,255,255,0.1);
    color: var(--blush);
    width: fit-content;
}

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

.footer-brand .logo-suffix {
    color: var(--blush);
}

.footer-tagline {
    font-size: 0.875rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-links strong {
    display: block;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: var(--space-sm);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a,
.footer-links li {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
}

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

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

.footer-bottom p {
    font-size: 0.8125rem;
}

.footer-disclaimer {
    font-size: 0.75rem !important;
    color: rgba(255,255,255,0.3) !important;
    max-width: 400px;
}

/* ============================================
   Scroll Animations
   ============================================ */
@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);
    }
    
    .approach-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .floating-cards {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(253, 248, 246, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--line);
        padding: var(--space-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
    }
    
    .nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav ul {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .nav a {
        font-size: 1rem;
        padding: 0.5rem 0;
    }
    
    .nav .btn {
        align-self: flex-start;
    }
    
    .hero {
        min-height: auto;
        padding: calc(72px + var(--space-xl)) 0 var(--space-xl);
    }
    
    .hero-card {
        padding: var(--space-lg);
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image-wrap {
        order: -1;
        max-width: 400px;
    }
    
    .approach-steps {
        grid-template-columns: 1fr;
    }
    
    .patient-info-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .hero-card {
        padding: var(--space-md);
    }
    
    .section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
}
