/* ─── Base & Reset ─── */
*, *::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; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }

/* ─── Navbar scroll state ─── */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
#navbar.scrolled {
    background: rgba(254, 253, 251, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(154, 34, 56, 0.08), 0 4px 24px rgba(154, 34, 56, 0.06);
}
#navbar.scrolled .font-display,
#navbar.scrolled a:not(.px-8) { color: #7f1d31; }
#navbar.scrolled a:not([class*="bg-"]):not(.px-8) { color: #4b5563; }
#navbar.scrolled a:not([class*="bg-"]):not(.px-8):hover { color: #9a2238; }
#navbar.scrolled .mobile-link { color: #4b5563; }
#navbar.scrolled .mobile-link:hover { color: #9a2238; }

/* ─── Reveal animations (progressive enhancement) ─── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Default (no-JS) state: fully visible */
.reveal { opacity: 1; transform: translateY(0); }

/* ─── Mobile menu ─── */
#mobile-menu {
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Custom scrollbar ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #fdf9f3; }
::-webkit-scrollbar-thumb { background: #e8c4c8; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #d44662; }

/* ─── Focus styles ─── */
:focus-visible { outline: 2px solid #d44662; outline-offset: 2px; border-radius: 4px; }
