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

:root {
    --burgundy: #7B2434;
    --burgundy-deep: #5C1A27;
    --burgundy-light: #9E3447;
    --blush: #F5E6E8;
    --blush-light: #FDF6F7;
    --blush-mid: #FADCE0;
    --cream: #FFFAF5;
    --white: #FFFFFF;
    --text-dark: #2D1F24;
    --text-mid: #5C4048;
    --text-light: #8A6B73;
    --shadow-sm: 0 2px 8px rgba(123, 36, 52, 0.08);
    --shadow-md: 0 4px 20px rgba(123, 36, 52, 0.10);
    --shadow-lg: 0 8px 40px rgba(123, 36, 52, 0.14);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Nunito', 'Segoe UI', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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-display); font-weight: 600; line-height: 1.25; color: var(--text-dark); }

.section-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: 10px;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 16px;
}

.section-lead {
    font-size: 1.05rem;
    color: var(--text-mid);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.text-center { text-align: center; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid transparent;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    text-align: center;
}

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

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--burgundy);
    transform: translateY(-2px);
}

.btn-lg { padding: 14px 32px; font-size: 1.05rem; }
.btn-sm { padding: 9px 20px; font-size: 0.85rem; }
.btn-full { width: 100%; }

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 250, 245, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(123, 36, 52, 0.08);
    transition: var(--transition);
}

.site-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: 10px;
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    color: var(--burgundy);
    line-height: 1.2;
}

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

.logo-icon { flex-shrink: 0; }

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.main-nav a:not(.btn) {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-mid);
    padding: 8px 16px;
    border-radius: var(--radius-xl);
    transition: var(--transition);
}

.main-nav a:not(.btn):hover {
    color: var(--burgundy);
    background: var(--blush);
}

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

.hamburger {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--burgundy);
    border-radius: 2px;
    transition: var(--transition);
}

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

/* ===== HERO ===== */
.hero {
    position: relative;
    background: linear-gradient(145deg, var(--burgundy-deep) 0%, var(--burgundy) 50%, var(--burgundy-light) 100%);
    padding: 140px 0 0;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image: radial-gradient(circle at 25% 25%, var(--white) 1px, transparent 1px),
                      radial-gradient(circle at 75% 75%, var(--white) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding-bottom: 80px;
    position: relative;
    z-index: 1;
}

.hero-content { color: var(--white); }

.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--blush);
    margin-bottom: 16px;
}

.hero-headline {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 1.1rem;
    color: rgba(255, 250, 245, 0.82);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 36px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 250, 245, 0.88);
    background: rgba(255, 250, 245, 0.12);
    border: 1px solid rgba(255, 250, 245, 0.2);
    padding: 7px 14px;
    border-radius: var(--radius-xl);
}

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

.hero-card {
    position: absolute;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-card-main {
    width: 340px;
    height: 380px;
    top: 0;
    right: 0;
}

.hero-card-secondary {
    width: 220px;
    height: 160px;
    bottom: 40px;
    left: 0;
    border: 4px solid var(--white);
}

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

.hero-floating-stat {
    position: absolute;
    bottom: 220px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    padding: 12px 18px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    z-index: 2;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
}

.hero-wave svg { width: 100%; height: 80px; }

/* ===== ABOUT ===== */
.about {
    padding: 100px 0;
    background: var(--blush-light);
}

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

.about-visual {
    position: relative;
}

.about-img-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img-wrap img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.about-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 160px;
    height: 160px;
    background: var(--burgundy);
    border-radius: var(--radius-lg);
    opacity: 0.1;
    z-index: -1;
}

.about-content .section-lead { margin: 0 0 16px; }

.about-content p {
    color: var(--text-mid);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-features {
    list-style: none;
    display: grid;
    gap: 12px;
    margin: 24px 0 32px;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--text-dark);
}

.about-features svg { flex-shrink: 0; }

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

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

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

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    border: 1px solid rgba(123, 36, 52, 0.07);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

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

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

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

/* ===== NEW PATIENTS ===== */
.new-patients {
    padding: 100px 0;
    background: linear-gradient(145deg, var(--burgundy-deep) 0%, var(--burgundy) 100%);
    color: var(--white);
}

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

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

.steps {
    display: grid;
    gap: 28px;
    margin: 32px 0;
}

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

.step-number {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 250, 245, 0.15);
    border: 1px solid rgba(255, 250, 245, 0.3);
    border-radius: 50%;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--blush);
}

.step-body h3 {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 4px;
}

.step-body p {
    font-size: 0.95rem;
    color: rgba(255, 250, 245, 0.78);
    line-height: 1.7;
}

.step-body a {
    color: var(--blush);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.step-body a:hover { color: var(--white); }

.new-patients-visual {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.new-patients-visual img {
    width: 100%;
    height: 520px;
    object-fit: cover;
}

.new-patients .btn-primary {
    background: var(--white);
    color: var(--burgundy);
    border-color: var(--white);
}
.new-patients .btn-primary:hover {
    background: var(--blush);
    border-color: var(--blush);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== CONTACT ===== */
.contact {
    padding: 100px 0;
    background: var(--blush-light);
}

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

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}

.contact-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blush);
    border-radius: var(--radius-md);
}

.contact-item h3 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.contact-item p {
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.6;
}

.contact-item a {
    color: var(--burgundy);
    font-weight: 600;
}

.contact-item a:hover { text-decoration: underline; }

.contact-map {
    margin-top: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* Contact Form */
.contact-form-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(123, 36, 52, 0.06);
}

.contact-form h3,
.form-success h3 {
    font-size: 1.4rem;
    margin-bottom: 24px;
    color: var(--text-dark);
}

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

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--blush-light);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--burgundy);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(123, 36, 52, 0.1);
}

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

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

.form-success {
    text-align: center;
    padding: 40px 20px;
}

.form-success svg { margin: 0 auto 16px; }

.form-success h3 {
    color: var(--burgundy);
    margin-bottom: 8px;
}

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

/* ===== FOOTER ===== */
.site-footer {
    background: var(--text-dark);
    color: var(--blush);
    padding: 64px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-brand p {
    color: rgba(245, 230, 232, 0.65);
    font-size: 0.9rem;
    margin-top: 12px;
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blush);
    margin-bottom: 16px;
}

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

.footer-links a {
    font-size: 0.9rem;
    color: rgba(245, 230, 232, 0.65);
    transition: var(--transition);
}

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

.footer-contact p {
    font-size: 0.9rem;
    color: rgba(245, 230, 232, 0.65);
    line-height: 1.7;
}

.footer-contact a {
    color: var(--blush);
    font-weight: 600;
}

.footer-bottom {
    border-top: 1px solid rgba(245, 230, 232, 0.1);
    padding: 20px 0;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(245, 230, 232, 0.45);
    text-align: center;
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { height: 360px; order: -1; }
    .hero-card-main { width: 240px; height: 280px; }
    .hero-card-secondary { width: 160px; height: 120px; }
    .hero-floating-stat { bottom: 180px; right: 10px; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-visual { max-width: 500px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .new-patients-inner { grid-template-columns: 1fr; gap: 40px; }
    .new-patients-visual { order: -1; }
    .new-patients-visual img { height: 320px; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--cream);
        padding: 90px 32px 32px;
        box-shadow: var(--shadow-lg);
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }
    .main-nav.open { right: 0; }
    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }
    .main-nav a:not(.btn) {
        display: block;
        padding: 12px 16px;
        font-size: 1rem;
    }
    .main-nav .btn { margin-top: 16px; text-align: center; }

    .hero { padding: 100px 0 0; min-height: auto; }
    .hero-inner { padding-bottom: 60px; }
    .hero-visual { height: 280px; }
    .hero-card-main { width: 180px; height: 220px; }
    .hero-card-secondary { width: 130px; height: 100px; }
    .hero-floating-stat { display: none; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .hero-badges { flex-direction: column; }
    .hero-badges .badge { width: 100%; }

    .services-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form-wrap { padding: 28px; }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-headline { font-size: 1.75rem; }
    .section-title { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
}
