/* ============================================
   The Cozy Chums Pub — Custom Styles
   ============================================ */

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

/* Base font settings */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hero animations */
.hero-anim {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 0.8s ease-out forwards;
}

.hero-anim:nth-child(2) { animation-delay: 0.2s; }
.hero-anim:nth-child(3) { animation-delay: 0.4s; }
.hero-anim:nth-child(4) { animation-delay: 0.6s; }
.hero-anim:nth-child(5) { animation-delay: 0.8s; }

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal base — always visible by default */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

/* Progressive enhancement: animate on scroll when JS is available and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(40px);
    }
    .reveal-left {
        opacity: 0;
        transform: translateX(-40px);
    }
    .reveal-right {
        opacity: 0;
        transform: translateX(40px);
    }
    
    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: none;
    }
}

/* Navbar transition */
.nav-link {
    position: relative;
}

/* Mobile menu link */
.mobile-link {
    display: block;
}

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

/* Selection color */
::selection {
    background-color: #2D5A3D;
    color: #FDFCFA;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1c3825;
}
::-webkit-scrollbar-thumb {
    background: #4a7a4a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6a9668;
}

/* Image aspect ratio utilities */
img {
    max-width: 100%;
    height: auto;
}

/* Subtle image hover effect */
img {
    transition: filter 0.3s ease;
}

/* Print styles */
@media print {
    nav, .reveal-up, .reveal-left, .reveal-right, #menu-toggle, #mobile-menu {
        display: none !important;
    }
    body {
        color: #1c3825;
        background: #F9F5ED;
    }
    .hero-anim {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}
