/* Custom styles for Senske Lawn Care Services */

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

/* Custom selection color */
::selection {
    background-color: #a33636;
    color: #fff8f6;
}

/* Navbar scroll state */
.navbar-scrolled {
    background-color: rgba(254, 252, 251, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(100, 30, 30, 0.08);
}

/* Service card hover glow */
.service-card {
    box-shadow: 0 4px 24px rgba(100, 30, 30, 0.06);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(100, 30, 30, 0.2);
}

/* Gallery hover effect */
.gallery-item {
    box-shadow: 0 4px 20px rgba(100, 30, 30, 0.08);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.gallery-item:hover {
    box-shadow: 0 12px 40px rgba(100, 30, 30, 0.18);
    transform: translateY(-2px);
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* Mobile link transition */
.mobile-link {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(203, 166, 148, 0.2);
    transition: padding-left 0.3s ease;
}

.mobile-link:hover {
    padding-left: 8px;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    .gallery-item:hover {
        transform: none;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Scroll reveal base (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    .reveal.animating {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .reveal.animated {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #fdf6f3;
}

::-webkit-scrollbar-thumb {
    background: #e09a7e;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c44d4d;
}
