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

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

::selection {
    background-color: #d9522a;
    color: #FDF8F0;
}

/* === Navbar === */
.nav-text {
    transition: color 0.3s ease;
}

.nav-link {
    position: relative;
}

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

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

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

nav.scrolled .nav-text {
    color: #6C471F;
}

nav.scrolled .nav-link {
    color: #6C471F;
}

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

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

.mobile-menu-link:hover {
    padding-left: 8px;
}

/* === Menu Items Hover === */
#menu ul li {
    transition: transform 0.2s ease;
}

#menu ul li:hover {
    transform: translateX(4px);
}

/* === Button Focus === */
a:focus-visible, button:focus-visible {
    outline: 3px solid #d9522a;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .nav-link::after,
    a, button {
        transition: none;
    }
}

/* === Mobile Responsive === */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
    
    #hero h1 {
        font-size: clamp(2rem, 7vw, 3.5rem);
    }
    
    #menu h2, #about h2, #hours h2 {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
    
    #about .flex-col > div:first-child img {
        height: 280px;
    }
}

/* === Smooth Image Loading === */
img {
    background-color: #FAEDCC;
}

/* === Active nav link highlighting === */
.nav-link.active {
    color: #d9522a;
}

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