/* Base & utilities */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll reveal — progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

    .scroll-reveal.revealed {
        opacity: 1;
        transform: none;
    }
}

/* Navbar */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(253, 248, 240, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #D44F32;
    border-radius: 1px;
    transition: width 0.3s ease;
}

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

/* Mobile menu */
#mobileMenu {
    z-index: 40;
}

.mobile-menu-link {
    position: relative;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #D44F32;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #B83D26;
}

/* Selection */
::selection {
    background: #F3B8A0;
    color: #68261F;
}

/* Image placeholder fallback */
img {
    image-rendering: auto;
}

/* Smooth focus */
*:focus-visible {
    outline: 2px solid #D44F32;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Form focus ring removal for custom handling */
input:focus,
textarea:focus {
    box-shadow: none;
}
