/* Custom styles for Lone Star Roadhouse & RV Park */

:root {
    --emerald-950: #051f14;
    --emerald-850: #0a3826;
    --emerald-800: #064e3b;
    --emerald-700: #065f46;
    --cream: #FDF8F0;
    --cream-dark: #f5ede0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--cream);
    color: var(--emerald-950);
    overflow-x: hidden;
}

.font-serif {
    font-family: 'Cormorant Garamond', serif;
}

/* Hero animation */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation-name: fade-in;
    animation-duration: 1s;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
    animation-fill-mode: forwards;
}

/* Scroll reveal */
.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);
}

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
}

.reveal[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar transitions */
#navbar.scrolled {
    background-color: rgba(253, 248, 240, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(6, 78, 59, 0.08);
}

#navbar.scrolled .nav-link {
    color: var(--emerald-950);
}

#navbar.scrolled .nav-link:hover {
    color: var(--emerald-700);
}

#navbar.scrolled #nav-brand {
    color: var(--emerald-950);
}

#navbar.scrolled #nav-sub {
    color: var(--emerald-600);
}

/* Mobile menu */
#mobile-menu.open {
    transform: translateX(0);
}

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Button focus styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--emerald-600);
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background-color: var(--emerald-800);
    color: var(--cream);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal[data-reveal] {
        opacity: 1;
        transform: none;
    }
    .reveal[data-reveal].revealed {
        opacity: 1;
        transform: none;
    }
    .animate-fade-in {
        animation: none;
        opacity: 1;
    }
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--cream);
}
::-webkit-scrollbar-thumb {
    background: var(--emerald-300);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--emerald-500);
}
