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

:root {
    --burgundy: #7B2D3B;
    --burgundy-dark: #5C1F2B;
    --burgundy-light: #9A3D4E;
    --blush: #F2D5D0;
    --blush-light: #FAEDEA;
    --blush-dark: #E8BFB8;
    --cream: #FDF8F6;
    --cream-dark: #F5EDEA;
    --charcoal: #1A1A1A;
    --text: #2D2D2D;
    --text-light: #5A5A5A;
    --text-muted: #8A8A8A;
    --white: #FFFFFF;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-sm: 0 1px 3px rgba(123, 45, 59, 0.08);
    --shadow-md: 0 4px 20px rgba(123, 45, 59, 0.1);
    --shadow-lg: 0 8px 40px rgba(123, 45, 59, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

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

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

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

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

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

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--burgundy);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-weight: 600;
}

.skip-link:focus {
    top: 16px;
}

/* ===== Header ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(253, 248, 246, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(123, 45, 59, 0.08);
    transition: box-shadow 0.3s ease;
}

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--burgundy);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

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

/* ===== Navigation ===== */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-menu a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    transition: color 0.2s ease;
    position: relative;
}

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--burgundy);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--cream);
        flex-direction: column;
        align-items: stretch;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid rgba(123, 45, 59, 0.08);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        text-align: center;
    }
    
    .nav-menu a {
        display: block;
        padding: 12px;
        font-size: 1rem;
    }
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
}

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

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

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

.btn-outline-blush:hover {
    background: var(--burgundy);
    color: var(--white);
}

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

.btn-blush:hover {
    background: var(--blush-dark);
    border-color: var(--blush-dark);
}

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

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(123, 45, 59, 0.04) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(242, 213, 208, 0.6) 0%, transparent 50%);
    pointer-events: none;
}

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

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--burgundy);
    margin-bottom: 20px;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 500;
    line-height: 1.08;
    color: var(--charcoal);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

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

.hero-subhead {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
    max-width: 500px;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero Cards */
.hero-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(123, 45, 59, 0.06);
    transition: all 0.3s ease;
}

.hero-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.hero-card--primary {
    background: var(--burgundy);
    color: var(--white);
    border: none;
}

.hero-card--primary .hero-card-label {
    color: rgba(255, 255, 255, 0.7);
}

.hero-card--primary .hero-card-desc {
    color: rgba(255, 255, 255, 0.9);
}

.hero-card--secondary {
    background: var(--blush-light);
    border-color: var(--blush);
}

.hero-card--accent {
    background: var(--charcoal);
    color: var(--white);
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 24px;
    border: none;
}

.hero-card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(123, 45, 59, 0.1);
    border-radius: var(--radius-sm);
    color: var(--burgundy);
}

.hero-card--primary .hero-card-icon {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.hero-card--secondary .hero-card-icon {
    background: var(--blush);
    color: var(--burgundy);
}

.hero-card-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.hero-card-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text);
}

.hero-card-stat {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--blush);
    margin-bottom: 4px;
}

.hero-card-sub {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 900px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }
    
    .hero-headline {
        font-size: clamp(2.2rem, 6vw, 3.2rem);
    }
}

/* ===== Section Shared ===== */
.section-eyebrow {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--burgundy);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    line-height: 1.15;
    color: var(--charcoal);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-light);
    max-width: 560px;
}

.section-header {
    margin-bottom: 56px;
}

/* ===== Services ===== */
.services {
    padding: 100px 0;
    background: var(--white);
}

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

.service-card {
    background: var(--cream);
    border-radius: var(--radius-md);
    padding: 32px;
    border: 1px solid rgba(123, 45, 59, 0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

.service-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.service-card-num {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--blush-dark);
    line-height: 1;
    margin-bottom: 16px;
}

.service-card-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 12px;
    line-height: 1.3;
}

.service-card-desc {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .services {
        padding: 72px 0;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== About ===== */
.about {
    padding: 100px 0;
    background: var(--cream);
}

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

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

.about-image-wrap img {
    border-radius: var(--radius-lg);
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}

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

.about-content {
    max-width: 520px;
}

.about-text {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-light);
    margin-bottom: 16px;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.about-value {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}

.about-value-icon {
    flex-shrink: 0;
    color: var(--burgundy);
}

@media (max-width: 900px) {
    .about-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image-wrap {
        max-width: 480px;
    }
    
    .about-content {
        max-width: 100%;
    }
}

/* ===== New Patients ===== */
.new-patients {
    padding: 100px 0;
    background: var(--burgundy);
    color: var(--white);
}

.new-patients .section-eyebrow {
    color: var(--blush);
}

.new-patients .section-title {
    color: var(--white);
}

.new-patients-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.new-patients-text {
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 36px;
}

.new-patients-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.new-patients-steps li {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--blush);
    margin-top: 2px;
}

.new-patients-steps strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 4px;
    color: var(--white);
}

.new-patients-steps p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
}

.new-patients-visual {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.new-patients-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 32px;
}

.new-patients-card-quote {
    margin-bottom: 16px;
}

.new-patients-card-text {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
}

.new-patients-card-attr {
    font-size: 0.85rem;
    color: var(--blush);
    font-weight: 500;
}

.new-patients-contact-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    color: var(--text);
}

.new-patients-contact-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.new-patients-phone {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--burgundy);
    display: block;
    margin-bottom: 8px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.new-patients-phone:hover {
    color: var(--burgundy-dark);
}

.new-patients-contact-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .new-patients-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .new-patients {
        padding: 72px 0;
    }
}

/* ===== Contact ===== */
.contact {
    padding: 100px 0;
    background: var(--white);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-desc {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-light);
    margin-bottom: 36px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-detail {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-detail-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--blush-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--burgundy);
}

.contact-detail strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: var(--charcoal);
}

.contact-detail p,
.contact-detail a {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

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

/* Contact Form */
.contact-form-wrap {
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid rgba(123, 45, 59, 0.06);
}

.contact-form-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 28px;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--blush-dark);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--burgundy);
    box-shadow: 0 0 0 3px rgba(123, 45, 59, 0.1);
}

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

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

.form-success {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 14px 18px;
    background: rgba(123, 45, 59, 0.06);
    border-radius: var(--radius-sm);
    color: var(--burgundy);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-success svg {
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact {
        padding: 72px 0;
    }
}

/* ===== Footer ===== */
.site-footer {
    background: var(--charcoal);
    color: rgba(255, 255, 255, 0.7);
    padding: 64px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.7;
    margin-top: 16px;
    max-width: 280px;
}

.footer-links strong,
.footer-hours strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--blush);
    margin-bottom: 16px;
}

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

.footer-links a,
.footer-hours a {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}

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

.footer-hours p {
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

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

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .site-footer {
        padding: 48px 0 0;
    }
}
</style>
<sm-file path="script.js">
(function() {
    'use strict';

    // Header scroll effect
    const header = document.querySelector('.site-header');
    
    function handleScroll() {
        if (window.scrollY > 10) {
            header.classList.add('scrolled');
        } else {
            header.classList.remove('scrolled');
        }
    }
    
    window.addEventListener('scroll', handleScroll, { passive: true });

    // Mobile navigation toggle
    const navToggle = document.querySelector('.nav-toggle');
    const navMenu = document.getElementById('nav-menu');
    
    if (navToggle && navMenu) {
        navToggle.addEventListener('click', function() {
            const isOpen = navMenu.classList.toggle('open');
            navToggle.setAttribute('aria-expanded', isOpen);
        });
        
        // Close menu when clicking a link
        navMenu.querySelectorAll('a').forEach(function(link) {
            link.addEventListener('click', function() {
                navMenu.classList.remove('open');
                navToggle.setAttribute('aria-expanded', 'false');
            });
        });
    }

    // Contact form handling
    const contactForm = document.getElementById('contact-form');
    const formSuccess = document.getElementById('form-success');
    
    if (contactForm) {
        contactForm.addEventListener('submit', function(e) {
            e.preventDefault();
            
            // Basic validation
            const name = document.getElementById('name').value.trim();
            const email = document.getElementById('email').value.trim();
            const message = document.getElementById('message').value.trim();
            
            if (!name || !email || !message) {
                return;
            }
            
            // Show success message
            formSuccess.style.display = 'flex';
            contactForm.reset();
            
            // Hide success message after 5 seconds
            setTimeout(function() {
                formSuccess.style.display = 'none';
            }, 5000);
        });
    }

    // Smooth scroll for anchor links
    document.querySelectorAll('a[href^="#"]').forEach(function(anchor) {
        anchor.addEventListener('click', function(e) {
            const targetId = this.getAttribute('href');
            if (targetId === '#') return;
            
            const target = document.querySelector(targetId);
            if (target) {
                e.preventDefault();
                const headerHeight = header.offsetHeight;
                const targetPosition = target.getBoundingClientRect().top + window.pageYOffset - headerHeight - 20;
                
                window.scrollTo({
                    top: targetPosition,
                    behavior: 'smooth'
                });
            }
        });
    });

    // Intersection Observer for scroll animations (below fold only)
    if ('IntersectionObserver' in window && window.matchMedia('(prefers-reduced-motion: no-preference)').matches) {
        const animatedElements = document.querySelectorAll('.service-card, .about-image-wrap, .about-content, .new-patients-inner, .contact-layout');
        
        const observer = new IntersectionObserver(function(entries) {
            entries.forEach(function(entry) {
                if (entry.isIntersecting) {
                    entry.target.style.opacity = '1';
                    entry.target.style.transform = 'translateY(0)';
                    observer.unobserve(entry.target);
                }
            });
        }, {
            threshold: 0.1,
            rootMargin: '0px 0px -40px 0px'
        });
        
        animatedElements.forEach(function(el) {
            el.style.opacity = '0';
            el.style.transform = 'translateY(20px)';
            el.style.transition = 'opacity 0.6s ease, transform 0.6s ease';
            observer.observe(el);
        });
    } else {
        // If reduced motion is preferred, ensure all elements are visible
        document.querySelectorAll('.service-card, .about-image-wrap, .about-content, .new-patients-inner, .contact-layout').forEach(function(el) {
            el.style.opacity = '1';
            el.style.transform = 'none';
        });
    }
})();
