/* ── Custom styles for NuCO2 ── */

/* Scroll-behavior handled in HTML head */

/* Service card stagger animation (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .service-card {
        opacity: 1;
        transform: translateY(0);
    }

    .service-card.reveal {
        animation: cardReveal 0.6s ease forwards;
    }

    .service-card:nth-child(1).reveal { animation-delay: 0.0s; }
    .service-card:nth-child(2).reveal { animation-delay: 0.08s; }
    .service-card:nth-child(3).reveal { animation-delay: 0.16s; }
    .service-card:nth-child(4).reveal { animation-delay: 0.24s; }
    .service-card:nth-child(5).reveal { animation-delay: 0.32s; }
    .service-card:nth-child(6).reveal { animation-delay: 0.40s; }

    @keyframes cardReveal {
        from {
            opacity: 0;
            transform: translateY(24px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Testimonial cards */
    .testimonial-card {
        opacity: 1;
        transform: translateY(0);
    }

    .testimonial-card.reveal {
        animation: cardReveal 0.6s ease forwards;
    }

    .testimonial-card:nth-child(1).reveal { animation-delay: 0.0s; }
    .testimonial-card:nth-child(2).reveal { animation-delay: 0.1s; }
    .testimonial-card:nth-child(3).reveal { animation-delay: 0.2s; }
}

/* Mobile menu transition */
#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: 400px;
    opacity: 1;
}

/* Smooth focus rings for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #ff6f35;
    outline-offset: 2px;
}

/* Custom select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='%2370707a'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Subtle pattern for hero section */
.hero-pattern {
    background-image: radial-gradient(circle at 20% 80%, rgba(255, 111, 53, 0.06) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(255, 111, 53, 0.04) 0%, transparent 50%);
}
