/* ===================================
   White Sauce Grill & Bar
   Custom Styles
   =================================== */

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

body {
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdfcf8;
}
::-webkit-scrollbar-thumb {
    background: #125539;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #1f8a5c;
}

/* Selection */
::selection {
    background: #125539;
    color: #fdfcf8;
}

/* Nav States */
.nav-text-white {
    color: #fdfcf8;
}

header.scrolled .nav-text-white {
    color: #125539;
}

.nav-link {
    color: rgba(253, 252, 248, 0.7);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link:hover {
    color: #fdfcf8;
}

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

header.scrolled .nav-link {
    color: rgba(18, 85, 57, 0.6);
}

header.scrolled .nav-link:hover {
    color: #125539;
}

header.scrolled .nav-btn span {
    background: #125539;
}

header.scrolled .nav-btn .w-4 {
    width: 1rem;
}

/* Mobile Menu */
.mobile-nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: #36a674;
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: #36a674;
    transition: width 0.3s ease;
}

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

/* Scroll Reveal */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: none;
    }
    .group:hover img,
    .group:focus-within img {
        transform: none;
    }
}

/* Select styling */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23125539' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Date input styling */
input[type="date"] {
    color-scheme: light;
}

/* Focus visible */
:focus-visible {
    outline: 2px solid #36a674;
    outline-offset: 2px;
}

/* Input autofill */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #fdfcf8 inset !important;
    -webkit-text-fill-color: #125539 !important;
}
