/* ===== Custom Styles for Magness Tire Co ===== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0A0A0A;
}
::-webkit-scrollbar-thumb {
    background: #C8956C;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #D4A574;
}

/* Selection color */
::selection {
    background: #C8956C;
    color: #0A0A0A;
}

/* ===== Scroll Reveal Animations ===== */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ===== Navbar Styles ===== */
.nav-scrolled {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(200, 149, 108, 0.1);
}

.nav-scrolled .menu-line {
    background: #E8D5C0 !important;
}

/* ===== Mobile Menu ===== */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-menu-closed {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ===== Button Hover Effects ===== */
a {
    text-decoration: none;
}

/* ===== Card Hover Effects ===== */
.group:hover .group-hover\:bg-terracotta\/20 {
    background-color: rgba(200, 149, 108, 0.2) !important;
}

/* ===== Hero Parallax-like effect ===== */
#hero img {
    transition: transform 0.3s ease-out;
}

/* ===== Gold accent line animation ===== */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* ===== Loading state for images ===== */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

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

/* ===== Mobile responsive adjustments ===== */
@media (max-width: 768px) {
    .font-display {
        line-height: 1.2;
    }
}

/* ===== Subtle gradient overlay for service cards ===== */
.bg-slate-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(200, 149, 108, 0.03) 0%, transparent 50%);
    pointer-events: none;
}
