/* ========================================
   Game Day Lodge — Custom Styles
   ======================================== */

/* Base & Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

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

.reveal[data-reveal-delay="1"] {
    transition-delay: 0.1s;
}

.reveal[data-reveal-delay="2"] {
    transition-delay: 0.2s;
}

.reveal[data-reveal-delay="3"] {
    transition-delay: 0.3s;
}

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

/* Default state for reveal elements (visible for no-JS) */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar transitions */
#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(45, 49, 57, 0.06);
}

#navbar.scrolled .font-serif {
    color: #2D3139;
}

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

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

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

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

/* Selection color */
::selection {
    background-color: #FFD4C8;
    color: #2D3139;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #FF7F6E;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.25s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero underline animation */
.text-coral-500 {
    position: relative;
}

.text-coral-500 svg {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawLine 1.2s ease-out 0.8s forwards;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

/* Card hover effects */
.group:hover .rounded-2xl {
    box-shadow: 0 20px 60px -15px rgba(45, 49, 57, 0.12);
}

/* Smooth image loading */
img {
    loading: lazy;
}
