/* ── Custom styles for Cumby Tire ── */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f0e8;
}
::-webkit-scrollbar-thumb {
    background: #9cc8a3;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6eab74;
}

/* Nav transition states */
#navbar.scrolled {
    background: rgba(250, 248, 244, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(26, 92, 42, 0.08);
}

.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2d7a3c;
    transition: width 0.3s ease;
    border-radius: 1px;
}
.nav-link:hover::after {
    width: 100%;
}

/* Mobile link hover */
.mobile-link {
    position: relative;
    padding-left: 0;
    transition: padding-left 0.2s ease;
}
.mobile-link:hover {
    padding-left: 8px;
}

/* Blob animations */
@keyframes blob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -50px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.9); }
    75% { transform: translate(20px, 40px) scale(1.05); }
}
.animate-blob {
    animation: blob 8s ease-in-out infinite;
}
.animation-delay-2000 {
    animation-delay: 2s;
}
.animation-delay-4000 {
    animation-delay: 4s;
}

/* Reveal animations (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .service-card {
        opacity: 0;
        transform: translateY(20px);
    }
    .service-card.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service card hover lift */
.service-card {
    will-change: transform;
}
.service-card:hover {
    transform: translateY(-4px);
}

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

/* Ensure hero text is readable */
#hero h1,
#hero p {
    text-shadow: none;
}

/* Mobile menu transition */
#mobile-menu {
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Map container */
#location iframe {
    filter: saturate(0.7) contrast(1.05);
}

/* Subtle gradient on CTA section */
#location .bg-cream-50 {
    background: linear-gradient(180deg, #faf8f4 0%, #f0ebe0 100%);
}
