/* Custom styles for Hams Lounge */

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

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

/* Selection color */
::selection {
    background-color: #d4a574;
    color: #022c22;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf5eb;
}
::-webkit-scrollbar-thumb {
    background: #064e3b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}
#mobile-menu.open {
    max-height: 400px;
    padding-top: 0;
}

/* Navbar scroll state */
#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(6, 78, 59, 0.08);
}

/* Image hover zoom container */
.aspect-\[4\/3\] img,
.aspect-\[4\/5\] img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Button focus states */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #d4a574;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Map container */
iframe {
    filter: saturate(0.8) contrast(1.05);
    transition: filter 0.3s ease;
}
iframe:hover {
    filter: saturate(1) contrast(1);
}

/* Product card hover glow */
.group:hover .bg-emerald-900\/50 {
    background-color: rgba(6, 78, 59, 0.6);
}

/* Decorative line animation on hover */
.border-l-2 {
    transition: border-color 0.3s ease;
}
.border-l-2:hover {
    border-color: #d4a574;
}

/* Floating card animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}
.absolute.bottom-8.left-\[-20px\] {
    animation: float 4s ease-in-out infinite;
}

/* Pulse dot */
@keyframes soft-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.animate-pulse {
    animation: soft-pulse 2s ease-in-out infinite;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.2;
    }
}
