/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; }
a { text-decoration: none; color: inherit; }

/* ── Navbar transitions ── */
#navbar {
    background: transparent;
}
#navbar.scrolled {
    background: rgba(255, 248, 240, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(92, 20, 39, 0.08);
}
#navbar.scrolled .nav-logo-text { color: #5C1427; }
#navbar.scrolled .nav-link { color: #8C1D3C; }
#navbar.scrolled .nav-link:hover { color: #C4325C; }

/* ── Mobile menu ── */
.mobile-menu-link { transition: opacity 0.3s; }
#mobileMenu.open { opacity: 1; pointer-events: all; }
#mobileMenu.closed { opacity: 0; pointer-events: none; }

/* ── Marquee animation ── */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.animate-marquee {
    animation: marquee 30s linear infinite;
}
.animate-marquee:hover {
    animation-play-state: paused;
}

/* ── Scroll reveal ── */
.scroll-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);
}
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Default visible state for progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Nav link underline effect ── */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #C4325C;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* ── Smooth section transitions ── */
section {
    position: relative;
}

/* ── Selection color ── */
::selection {
    background: #C4325C;
    color: #FFF8F0;
}

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

/* ── Responsive adjustments ── */
@media (max-width: 768px) {
    .animate-marquee {
        animation-duration: 20s;
    }
}
</style>
