/* Custom styles for Thom's Lawn Care Pros */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #1a6b38;
}

/* Navigation active state */
.nav a.active {
    color: #1a6b38;
}

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* Button hover effects */
button,
a {
    transition: all 0.3s ease;
}

/* Selection color */
::selection {
    background-color: #1a6b38;
    color: white;
}

/* Image loading placeholder */
img {
    background-color: #d9eddf;
}

/* Subtle line decorations */
.section-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #85c093, transparent);
    margin: 0 auto;
}

/* Service card hover */
.group:hover .group-hover\:bg-forest-600 {
    background-color: #1a6b38;
}

/* Ensure all text is readable */
.text-forest-600 {
    color: #2d8a4e;
}

.text-forest-700 {
    color: #14532d;
}

.text-forest-500 {
    color: #4fa366;
}

/* Mobile menu link styles */
.mobile-menu-link {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid #d9eddf;
}

.mobile-menu-link:last-child {
    border-bottom: none;
}

/* Map container */
iframe {
    filter: grayscale(20%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2rem;
    }
    
    .font-serif.text-4xl {
        font-size: 2.5rem;
    }
}

/* Print styles */
@media print {
    .nav,
    .reveal,
    #contact-form {
        display: none;
    }
    
    body {
        color: #000;
        background: white;
    }
}
