/* ── Base & Utilities ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; -webkit-font-smoothing: antialiased; }

/* ── Navbar Scroll State ── */
.nav-scrolled {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(253, 248, 244, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(190, 24, 93, 0.08);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #F5A623;
    border-radius: 1px;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* ── Mobile Menu ── */
.mobile-menu {
    z-index: 50;
}
.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}
.mobile-menu-link {
    display: block;
    text-align: center;
    padding: 0.5rem 1rem;
}

/* ── Occasion Cards ── */
.occasion-card {
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.occasion-card:hover {
    box-shadow: 0 12px 40px rgba(127, 45, 91, 0.12);
    transform: translateY(-4px);
}

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .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; }
}

/* ── Custom Selection ── */
::selection {
    background: #FBCFE8;
    color: #500724;
}

/* ── Focus Styles ── */
:focus-visible {
    outline: 2px solid #F5A623;
    outline-offset: 2px;
}

/* ── Smooth image loading ── */
img {
    display: block;
    max-width: 100%;
}
