/* Custom styles for American Home Care */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f5f5;
}
::-webkit-scrollbar-thumb {
    background: #8B1A4B;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6b1236;
}

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

/* Hero animations - visible by default, enhanced with JS */
.hero-content {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .hero-content {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    .hero-content.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (prefers-reduced-motion: no-preference) {
    .service-card {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .service-card.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade-in sections (below fold only) */
.fade-section {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .fade-section {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .fade-section.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Select dropdown styling */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 2.5rem;
}

/* Button hover lift effect */
button, a {
    transition: all 0.2s ease;
}

button:hover, a:hover {
    transform: translateY(-1px);
}

button:active, a:active {
    transform: translateY(0);
}

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

#mobileMenu.open {
    max-height: 400px;
}

/* Ensure all text meets contrast requirements */
.text-burgundy-200 {
    color: #fad0e3;
}

.text-burgundy-300 {
    color: #f5a7c3;
}

.text-burgundy-400 {
    color: #ed6b9d;
}
