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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
.js-scroll .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.js-scroll .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.js-scroll .reveal:nth-child(2) { transition-delay: 0.1s; }
.js-scroll .reveal:nth-child(3) { transition-delay: 0.2s; }
.js-scroll .reveal:nth-child(4) { transition-delay: 0.3s; }
.js-scroll .reveal:nth-child(5) { transition-delay: 0.4s; }
.js-scroll .reveal:nth-child(6) { transition-delay: 0.5s; }

/* ===== MOBILE MENU ANIMATION ===== */
#mobileMenu {
    animation: slideDown 0.25s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ===== FOCUS VISIBLE ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #e46b78;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== SELECTION ===== */
::selection {
    background: #b91c33;
    color: #fff;
}
