/* ── Custom styles beyond Tailwind ── */

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fffbf7;
}
::-webkit-scrollbar-thumb {
    background: #d44063;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b82344;
}

/* Selection color */
::selection {
    background: #f9cfd9;
    color: #7e1730;
}

/* ── Reveal animations (progressive enhancement — content is visible without JS) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Navbar glass effect ── */
#navbar.scrolled {
    background: rgba(255, 251, 247, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(154, 26, 56, 0.08);
}

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

/* ── Button focus styles ── */
a:focus-visible, button:focus-visible {
    outline: 2px solid #d44063;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Image loading placeholder ── */
img {
    background: linear-gradient(135deg, #fce7eb 0%, #fff4e6 100%);
}
