/* Gold Rush Cash for Gold Pawn Shop — Custom Styles */

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1020;
}
::-webkit-scrollbar-thumb {
    background: #1a2846;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #273a69;
}

/* Navbar */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background: rgba(10, 16, 32, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(245, 192, 84, 0.1);
}

/* Mobile menu */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(26, 40, 70, 0.5);
}
.mobile-link:last-child {
    border-bottom: none;
}

/* Hero */
#hero {
    position: relative;
}

/* Service cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f5c054, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* Fade-in animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .fade-up {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .fade-up.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure content is visible without JS */
@media not all and (prefers-reduced-motion: no-preference) {
    .fade-up {
        opacity: 1;
        transform: none;
    }
}

/* Map dark filter fallback */
iframe[title*="map"] {
    background: #1a2846;
}

/* Selection color */
::selection {
    background: rgba(230, 149, 15, 0.3);
    color: #f5c054;
}

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

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