/* ===== Custom Styles for Mid State Mowers ===== */

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

/* Ensure all links are readable */
a {
    text-decoration: none;
}

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

/* Scroll reveal base — content is visible by default, JS adds animation */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only animate if user prefers motion and JS has run */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        opacity: 0;
        transform: translateY(30px);
    }
    .scroll-reveal.revealed.animate {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero decorative pulse */
@keyframes soft-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.05); }
}

.hero-blob {
    animation: soft-pulse 6s ease-in-out infinite;
}

/* Navbar shadow on scroll */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(127, 26, 46, 0.12);
}

/* Mobile menu transition */
#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.5rem 0;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9c1f37;
}

/* Selection color */
::selection {
    background: #fce7eb;
    color: #6b1828;
}

/* Map container responsive */
iframe {
    border-radius: 1.5rem;
}

/* Card image aspect ratio */
.group img {
    aspect-ratio: 3 / 2;
}

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}
