/* Custom styles for EC AUTO Masters */

/* Smooth focus outlines */
*:focus-visible {
    outline: 2px solid #d4573a;
    outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf6ea;
}
::-webkit-scrollbar-thumb {
    background: #d4573a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b84128;
}

/* Selection color */
::selection {
    background: #f8c4b5;
    color: #1a1410;
}

/* Navbar transition states */
.nav-scrolled {
    background: rgba(254, 252, 248, 0.97) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(26, 20, 16, 0.08);
}

.nav-scrolled .nav-logo-text {
    color: #1a1410 !important;
}

.nav-scrolled .nav-logo-sub {
    color: #3d3229 !important;
}

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

/* Hero parallax-like subtle effect */
.hero-section {
    will-change: transform;
}

/* Service card image hover */
.service-card img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover img {
    transform: scale(1.05);
}

/* Mobile menu animations */
.mobile-menu {
    will-change: transform;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    .service-card {
        transition: none;
    }

    .service-card:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    nav, .cta-btn, #mobileMenu, #menuOverlay {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    .hero-overlay {
        background: rgba(254, 252, 248, 0.9) !important;
    }
}
