/* Custom styles for Texas Town Garage */

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

/* Service card animations */
.service-card {
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.active {
    max-height: 400px;
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure all text is readable */
.text-emerald-100 {
    color: #d1fae5;
}

.text-emerald-200 {
    color: #a7f3d0;
}

.text-emerald-300 {
    color: #6ee7b7;
}

/* Button hover effects */
a:hover {
    transition: all 0.2s ease;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
}

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

/* Remove default button styles */
button {
    background: none;
    border: none;
    cursor: pointer;
}

/* Ensure proper spacing */
section {
    scroll-margin-top: 80px;
}
