/* ─── Base & Typography ─── */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Lato', system-ui, sans-serif;
    color: #374151;
    background-color: #faf7f5;
}

/* ─── Section Labels ─── */
.section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #9e2336;
    background: linear-gradient(135deg, #fdf2f4 0%, #fce7eb 100%);
    padding: 6px 16px;
    border-radius: 100px;
    border: 1px solid #f9d0d9;
}

/* ─── Navbar Scroll State ─── */
#navbar.scrolled {
    box-shadow: 0 4px 30px rgba(158, 35, 54, 0.08);
}

/* ─── Service Cards ─── */
.service-card {
    border: 1px solid transparent;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(158, 35, 54, 0.2);
}

/* ─── Scroll Reveal (progressive enhancement) ─── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        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; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ─── Mobile Menu Transitions ─── */
#mobile-menu.open {
    max-height: 400px;
}

#menu-icon-open.active {
    opacity: 0;
    pointer-events: none;
}

#menu-icon-close.active {
    opacity: 1;
    pointer-events: auto;
}

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

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ─── Focus Visible ─── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #9e2336;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ─── Print Styles ─── */
@media print {
    #navbar, #contact-form, .reveal { display: none; }
    body { color: #000; background: #fff; }
    a { color: #9e2336; }
}
