/* === OVERSTREET LAWNCARE — CUSTOM STYLES === */

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

/* Selection color */
::selection {
    background-color: rgba(13, 148, 136, 0.2);
    color: #0f766e;
}

/* Mobile menu animation */
.mobile-menu {
    transition: opacity 0.3s ease, pointer-events 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

/* Mobile link animation */
.mobile-link {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
}

.mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* Service card stagger animation */
.service-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.4s ease;
}

.service-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Section reveal animations */
.section-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Header scroll state */
#site-header.scrolled {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .service-card,
    .section-reveal {
        transition: none;
    }
    .mobile-link {
        transition: none;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .service-card {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f8fafc;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
