/* ========================================
   Olympia Gear Exchange — Custom Styles
   Premium Dark Luxury | Plum + Amber
======================================== */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #0f051a;
    color: #ebe0f5;
}

::selection {
    background-color: rgba(212, 168, 75, 0.3);
    color: #f5f0fb;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a0a2e;
}
::-webkit-scrollbar-thumb {
    background: #431d5e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4a84b;
}

/* --- Scroll Reveal Animations --- */
/* Default state: visible (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* --- Navbar --- */
.nav-scrolled {
    background: rgba(15, 5, 26, 0.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(67, 29, 94, 0.4);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* --- Button Hover Effects --- */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* --- Image Loading --- */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* --- Focus Styles --- */
:focus-visible {
    outline: 2px solid #d4a84b;
    outline-offset: 2px;
}

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

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

/* --- Gold shimmer on hover for cards --- */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* --- Form select arrow --- */
select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23d4a84b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25em 1.25em;
    padding-right: 2.5rem;
}

/* --- Subtle gradient overlays --- */
.gradient-overlay {
    background: linear-gradient(135deg, rgba(26, 10, 46, 0.95) 0%, rgba(67, 29, 94, 0.85) 100%);
}

/* --- Card hover glow --- */
.card-glow:hover {
    box-shadow: 0 0 40px rgba(212, 168, 75, 0.1);
}

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

/* --- Print styles --- */
@media print {
    nav, #contact-form, iframe, .reveal {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
}
