/* Brooks' Family Christmas Trees — Custom Styles */

/* Base */
* { box-sizing: border-box; }
body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0b0b0f; }
::-webkit-scrollbar-thumb { background: #35354a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #e8b740; }

/* Reveal animations — progressive enhancement, respects prefers-reduced-motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        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);
    }
}

/* Fallback: always visible if JS is disabled or reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(11, 11, 15, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(232, 183, 64, 0.08);
}

/* Gold shimmer on CTA buttons */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Tree card hover glow */
.group:hover .group-hover\:text-sand-400 {
    color: #efc964;
}

/* Smooth section transitions */
section {
    position: relative;
}

/* Mobile menu transition */
#mobile-menu {
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

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

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #1a1a24 0%, #20202c 100%);
}

/* Selection color */
::selection {
    background: rgba(232, 183, 64, 0.3);
    color: #fdf9ec;
}
