/* ========================================
   Highway 801 Christmas Trees — Custom Styles
   ======================================== */

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

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

/* Selection color */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #fff;
}

/* ========================================
   Scroll Reveal Animations
   Progressive enhancement — content is
   visible by default, JS adds animation.
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

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

/* ========================================
   Navbar
   ======================================== */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(4, 11, 26, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ========================================
   Image hover effects
   ======================================== */
img {
    display: block;
    max-width: 100%;
}

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

::-webkit-scrollbar-track {
    background: #040B1A;
}

::-webkit-scrollbar-thumb {
    background: rgba(201, 168, 76, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 168, 76, 0.5);
}

/* ========================================
   Mobile menu animation
   ======================================== */
#mobileMenu {
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ========================================
   Button ripple effect
   ======================================== */
button, a {
    -webkit-tap-highlight-color: transparent;
}

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

/* ========================================
   Subtle gold glow for cards on hover
   ======================================== */
.group:hover .group-hover\:border-gold-500\/30 {
    box-shadow: 0 0 40px rgba(201, 168, 76, 0.08);
}

/* ========================================
   Responsive adjustments
   ======================================== */
@media (max-width: 768px) {
    .font-display {
        line-height: 1.15;
    }
}

/* ========================================
   Map dark theme override
   ======================================== */
iframe[title*="map"] {
    border-radius: 0 0 1rem 1rem;
}

/* ========================================
   Print styles
   ======================================== */
@media print {
    #navbar,
    #mobileMenu,
    .reveal {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }
}
