/* ===== BASE ===== */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* ===== NAV ===== */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #c2213b;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 1px;
}

.nav-link:hover::after {
    width: 60%;
}

/* Scrolled nav */
nav.scrolled {
    background: rgba(254, 252, 251, 0.92) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 20px rgba(125, 45, 59, 0.06);
}

nav.scrolled .nav-link {
    color: rgba(125, 45, 59, 0.85) !important;
}

/* ===== MOBILE MENU ===== */
.mobile-link {
    position: relative;
}

#mobileMenu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* ===== MARQUEE ===== */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

/* ===== 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);
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        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);
    }
}

/* Stagger children */
.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.3s; }

/* ===== BUTTONS ===== */
a {
    transition: all 0.2s ease;
}

/* ===== FOCUS ===== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #c2213b;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== SELECTION ===== */
::selection {
    background: rgba(194, 33, 59, 0.15);
    color: #3d0a17;
}

/* ===== IMAGE HOVER ===== */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.1;
    }
}

/* ===== PRINT ===== */
@media print {
    nav, .animate-marquee, #mobileMenu { display: none; }
    body { color: #000; background: #fff; }
}
