/* ============================================
   Best Stop Autos LLC — Custom Styles
   Premium Dark Luxury Theme
   Charcoal + Coral + Gold Palette
   ============================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    overflow-x: hidden;
}

/* ---- Scroll Reveal (Progressive Enhancement) ---- */
@media (prefers-reduced-motion: no-preference) {
    .scroll-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);
    }

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

/* ---- Navbar Scroll State ---- */
#navbar.scrolled {
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 87, 51, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

#navbar.scrolled .menu-line {
    background: #f3f4f6;
}

/* ---- Mobile Menu Animations ---- */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

/* ---- Custom Select Styling ---- */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ---- Selection Color ---- */
::selection {
    background: rgba(255, 87, 51, 0.3);
    color: #f3f4f6;
}

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

/* ---- Smooth Image Loading ---- */
img {
    display: block;
    max-width: 100%;
}

/* ---- Utility: Hide scrollbar for mobile menu ---- */
body.menu-open {
    overflow: hidden;
}

/* ---- Gold Accent Line Animation ---- */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.gold-shimmer {
    background: linear-gradient(90deg, #D4A843, #F5D78A, #D4A843);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

/* ---- Button Ripple Effect ---- */
button, a {
    position: relative;
    overflow: hidden;
}

/* ---- Subtle Gradient Border on Cards ---- */
.card-glow:hover {
    box-shadow: 0 0 40px rgba(255, 87, 51, 0.08);
}

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

::-webkit-scrollbar-track {
    background: #0D0D0D;
}

::-webkit-scrollbar-thumb {
    background: #2E2E2E;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #FF5733;
}

/* ---- Tablet ---- */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
}

/* ---- Small Mobile ---- */
@media (max-width: 360px) {
    html {
        font-size: 14px;
    }
}
