/* ===== Custom Styles for AMB Autoworks ===== */

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

/* Scroll reveal base state - visible by default for progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply hidden state when JS is available (via .js class on body) */
.js .scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: no-preference) {
    .js .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .js .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.nav-scrolled {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(253, 252, 248, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(22, 101, 52, 0.08);
    box-shadow: 0 1px 8px rgba(22, 101, 52, 0.06);
}

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

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

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

#mobile-menu.open {
    max-height: 400px;
    padding: 0;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf8f2;
}
::-webkit-scrollbar-thumb {
    background: #b9dfb9;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #85c485;
}

/* Selection color */
::selection {
    background: #dcefdc;
    color: #166534;
}

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

/* Ensure all text has strong contrast */
.text-forest-600 {
    color: #166534;
}

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

.text-forest-500 {
    color: #2d7a2d;
}

.text-forest-400 {
    color: #4fa84f;
}

.text-forest-300 {
    color: #85c485;
}

.text-forest-200 {
    color: #b9dfb9;
}

.text-forest-100 {
    color: #dcefdc;
}
