/* Scout's Café — Custom Styles */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Base typography */
body {
    font-family: 'Nunito', system-ui, sans-serif;
}

h1, h2, h3, .font-display {
    font-family: 'DM Serif Display', Georgia, serif;
}

/* Scroll reveal base state (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Only animate on devices that support prefers-reduced-motion: no-preference */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }

    .reveal.revealed {
        opacity: 1;
        transform: none;
    }

    /* Stagger delays */
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Navbar glass effect when scrolled */
.navbar-scrolled {
    background: rgba(253, 248, 240, 0.92) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(61, 46, 40, 0.08);
}

/* Mobile menu transition */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

/* Mobile link hover */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #c44524;
    transition: width 0.3s ease;
}

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

/* Hero image grid hover */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

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

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

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

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

/* Selection color */
::selection {
    background: #f8c4b0;
    color: #6e261b;
}

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

/* Subtle pattern for hero background */
.hero-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(196, 69, 36, 0.06) 1px, transparent 0);
    background-size: 24px 24px;
}
