/* ── Reset & Base ── */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

::selection {
    background: #7B2D3B;
    color: #fefcfb;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf8f5;
}
::-webkit-scrollbar-thumb {
    background: #c71d44;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9b1334;
}

/* ── Navbar ── */
#navbar {
    background: rgba(254, 252, 251, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(26, 26, 26, 0.06);
}

#navbar.scrolled {
    background: rgba(254, 252, 251, 0.95);
    box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
}

/* ── Mobile Menu ── */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s, transform 0.3s;
}

/* ── Marquee ── */
.marquee-track {
    animation: marquee 30s linear infinite;
}

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

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .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; }
}

/* Fallback: content always visible */
@supports not (animation: marquee 30s linear infinite) {
    .marquee-track {
        animation: none;
    }
}

/* ── Hover micro-interactions ── */
a, button {
    transition: all 0.2s ease;
}

/* ── Form focus states ── */
input:focus, textarea:focus {
    outline: none;
    border-color: #f5a5b5 !important;
    box-shadow: 0 0 0 3px rgba(245, 165, 181, 0.2);
}

/* ── Smooth image loading ── */
img {
    background: linear-gradient(135deg, #fce7eb 0%, #faf0ea 100%);
}

/* ── Print ── */
@media print {
    #navbar, .marquee-track, #mobile-menu {
        display: none;
    }
    body {
        color: #1a1a1a;
        background: white;
    }
}
