/* Custom styles for Rodriguez Auto Repair */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf9ed;
}
::-webkit-scrollbar-thumb {
    background: #e06b4a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c23d20;
}

/* Selection color */
::selection {
    background: #f3bba8;
    color: #6c2519;
}

/* Geometric shape animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(-1deg); }
}

/* Apply float animation to decorative shapes */
.hero-shape {
    animation: float 6s ease-in-out infinite;
}

.hero-shape-slow {
    animation: float-slow 8s ease-in-out infinite;
}

/* 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);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* Ensure all content is visible without JS */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Navbar scroll state */
.nav-scrolled {
    box-shadow: 0 4px 20px rgba(212, 81, 46, 0.08);
}

/* Button focus styles */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #d4512e;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mobile menu animation */
#mobileMenu {
    max-height: 0;
    transition: max-height 0.3s ease-out;
}
#mobileMenu.open {
    max-height: 400px;
    transition: max-height 0.3s ease-in;
}

/* Service card hover - ensure text contrast */
.group:hover h3,
.group:hover p {
    color: inherit;
}

/* Print styles */
@media print {
    nav, #contactForm, iframe {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
