/* ===== Custom Styles for One Way Alternators & Starters ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdfbf7;
}
::-webkit-scrollbar-thumb {
    background: #065f46;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* Selection color */
::selection {
    background: #065f46;
    color: #d1fae5;
}

/* ===== Navbar ===== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(6, 78, 59, 0.08);
}

/* ===== 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: 3px;
    background: linear-gradient(90deg, #065f46, #10b981, #065f46);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.animate-on-scroll.visible:nth-child(1) { transition-delay: 0.05s; }
.animate-on-scroll.visible:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll.visible:nth-child(3) { transition-delay: 0.15s; }
.animate-on-scroll.visible:nth-child(4) { transition-delay: 0.2s; }
.animate-on-scroll.visible:nth-child(5) { transition-delay: 0.25s; }
.animate-on-scroll.visible:nth-child(6) { transition-delay: 0.3s; }

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

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

/* ===== Button hover glow ===== */
button:hover,
a:hover {
    outline: none;
}

/* ===== Input focus ===== */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* ===== Map filter override ===== */
iframe[src*="google.com/maps"] {
    width: 100%;
}

/* ===== Print styles ===== */
@media print {
    #navbar, #mobile-menu { display: none; }
    body { background: white; }
}
