/* Custom styles for State Farm Le Mars */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf2f2;
}
::-webkit-scrollbar-thumb {
    background: #d44040;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9c2525;
}

/* Service card hover effect - subtle lift */
.service-card {
    will-change: transform;
}

/* Nav active state */
.nav-link.active {
    background-color: rgba(212, 64, 64, 0.08);
    color: #801f1f;
}

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

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

/* Form input focus styles */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(212, 64, 64, 0.1);
}

/* Back to top button animation */
#back-to-top.visible {
    opacity: 1 !important;
    pointer-events: all !important;
    transform: translateY(0) !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .animate-bounce {
        animation: none;
    }
}

/* Print styles */
@media print {
    #navbar,
    #back-to-top,
    .service-card,
    #mobile-menu {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}

/* Ensure hero text is always readable */
.hero-section h1,
.hero-section p {
    text-shadow: none;
}

/* Improve tap targets on mobile */
@media (max-width: 640px) {
    .nav-link,
    .mobile-nav-link,
    a[href="#"] {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    button,
    input[type="submit"],
    button[type="submit"] {
        min-height: 44px;
    }
}
