/* ── Base & Utilities ── */
html {
    scroll-behavior: smooth;
}

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

::selection {
    background-color: #f9d0d8;
    color: #5c1f2b;
}

/* ── Scroll Reveal (progressive enhancement) ── */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .scroll-reveal:nth-child(2) { transition-delay: 0.08s; }
    .scroll-reveal:nth-child(3) { transition-delay: 0.16s; }
    .scroll-reveal:nth-child(4) { transition-delay: 0.24s; }
    .scroll-reveal:nth-child(5) { transition-delay: 0.32s; }
    .scroll-reveal:nth-child(6) { transition-delay: 0.40s; }
}

/* ── Floating Animation ── */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

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

.animate-float {
    animation: float 3.5s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 4s ease-in-out infinite;
    animation-delay: 1s;
}

/* ── Feature Card Hover ── */
.feature-card {
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
}

/* ── Mobile Menu Transitions ── */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

#mobile-menu.open {
    max-height: 400px;
    padding-top: 0;
    padding-bottom: 0;
}

/* ── Navbar Active State ── */
#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(123, 45, 59, 0.1);
}

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

/* ── Image Loading ── */
img {
    image-rendering: auto;
}
