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

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

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

::selection {
    background-color: #7B2D3B;
    color: #fff;
}

/* === Scroll Reveal Animations === */
.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);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Navbar === */
.navbar-scrolled {
    background: rgba(255, 251, 245, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(123, 45, 59, 0.08);
}

.navbar-scrolled .nav-logo-text {
    color: #7B2D3B !important;
}

.navbar-scrolled .nav-link {
    color: #374151 !important;
}

/* === Mobile Menu === */
.mobile-nav-link {
    transition: color 0.2s ease;
}

/* === Buttons === */
a {
    text-decoration: none;
}

/* === Custom Scrollbar === */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #FFFBF5;
}

::-webkit-scrollbar-thumb {
    background: #7B2D3B;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5e1f2b;
}

/* === Focus Styles === */
a:focus-visible, button:focus-visible {
    outline: 3px solid #ff8a79;
    outline-offset: 3px;
    border-radius: 8px;
}

/* === Image aspect ratios === */
img {
    max-width: 100%;
    height: auto;
}

/* === Smooth transitions for all interactive elements === */
button, a {
    transition: all 0.3s ease;
}

/* === Print styles === */
@media print {
    nav, .animate-bounce {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }

    .bg-burgundy-800, .bg-burgundy-900, .bg-burgundy-950 {
        background: #7B2D3B !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
