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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf5eb;
}
::-webkit-scrollbar-thumb {
    background: #d4a882;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c08f65;
}

/* Selection */
::selection {
    background: #cc523d;
    color: #fdfbf7;
}

/* Hero Animations */
#hero-subtitle {
    animation: fadeUp 0.8s ease forwards 0.3s;
}
#hero-headline {
    animation: fadeUp 0.8s ease forwards 0.5s;
}
#hero-desc {
    animation: fadeUp 0.8s ease forwards 0.7s;
}
#hero-cta {
    animation: fadeUp 0.8s ease forwards 0.9s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Reveal */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.hidden {
    opacity: 0;
    transform: translateY(40px);
}

/* Menu Items */
.menu-item {
    border-bottom: 1px solid #f0e6d8;
    padding-bottom: 1.25rem;
    transition: padding-left 0.3s ease;
}

.menu-item:hover {
    padding-left: 0.5rem;
}

.menu-item:last-child {
    border-bottom: none;
}

/* Navbar */
#navbar.scrolled {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(168, 64, 48, 0.1);
}

/* Mobile Menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* Button Focus */
a:focus-visible, button:focus-visible {
    outline: 2px solid #cc523d;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .reveal.hidden {
        opacity: 1;
        transform: none;
    }
    #hero-subtitle,
    #hero-headline,
    #hero-desc,
    #hero-cta {
        animation: none;
        opacity: 1;
    }
    .menu-item:hover {
        padding-left: 0;
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .menu-item {
        padding-bottom: 1rem;
    }
}
