/* Custom styles for Allure Landscaping */

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

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

#navbar.scrolled .font-serif {
    color: #1C1917;
}

/* Hero animations - above the fold, always visible */
.hero-eyebrow {
    animation: fadeInUp 0.6s ease forwards;
}

.hero-headline {
    animation: fadeInUp 0.6s 0.1s ease forwards;
    opacity: 0;
}

/* Scroll-reveal animations - below the fold only, progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .service-card,
    .about-image,
    .about-eyebrow,
    .about-headline,
    .about-text,
    .about-stats,
    .gallery-item,
    .gallery-headline,
    .testimonial-card,
    .testimonial-headline,
    .cta-banner,
    .contact-eyebrow,
    .contact-headline,
    .contact-form {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .service-card:nth-child(1) { transition-delay: 0s; }
    .service-card:nth-child(2) { transition-delay: 0.1s; }
    .service-card:nth-child(3) { transition-delay: 0.2s; }
    .service-card:nth-child(4) { transition-delay: 0.3s; }
    .service-card:nth-child(5) { transition-delay: 0.4s; }
    .service-card:nth-child(6) { transition-delay: 0.5s; }

    .reveal-hidden {
        opacity: 0;
        transform: translateY(30px);
    }

    .reveal-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FAF8F5;
}
::-webkit-scrollbar-thumb {
    background: #b82042;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #961636;
}

/* Selection color */
::selection {
    background: #b82042;
    color: white;
}

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

/* Mobile menu transitions */
#mobile-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

#mobile-menu.hidden {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobile-menu:not(.hidden) {
    max-height: 500px;
    opacity: 1;
}

/* Image hover effects */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Button ripple effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}
