/* ========================================
   Depot Salvage — Custom Styles
   ======================================== */

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

body {
    overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FFF3E0;
}
::-webkit-scrollbar-thumb {
    background: #4A235A;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #702373;
}

/* Selection */
::selection {
    background: #F5A623;
    color: #1F0F27;
}

/* Navbar transition */
.nav-scrolled {
    background: rgba(255, 243, 224, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(74, 35, 90, 0.08);
}

.nav-logo-text {
    transition: color 0.3s ease;
}

/* Nav links */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #E8960F;
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu */
.mobile-menu-link {
    position: relative;
}

/* Scroll reveal base — always visible by default */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Scroll reveal with JS enhancement (progressive) */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
}

/* Hero image hover */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Subtle grain texture overlay (optional for depth) */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    z-index: 9999;
}

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

/* Print styles */
@media print {
    .nav-scrolled,
    .scroll-reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
