@layer theme, base, components, utilities;

:root {
    --primary-orange: #e97132;
}

.font-montserrat {
    font-family: 'Montserrat', sans-serif;
}

@layer utilities {
    .text-primary-orange {
        color: var(--primary-orange);
    }
    .hover\:text-primary-orange:hover {
        color: var(--primary-orange);
    }
    .bg-primary-orange {
        background-color: var(--primary-orange);
    }
    .hover\:bg-primary-orange:hover {
        background-color: var(--primary-orange);
    }
    .border-primary-orange {
        border-color: var(--primary-orange);
    }
}

@layer components {
    .testimonial-rotator {
        display: grid;
        grid-template-columns: 1fr;
    }
    .testimonial-item {
        grid-row: 1;
        grid-column: 1;
        opacity: 0;
        visibility: hidden;
    }
    
    /* 3-item rotation (24s total, 8s per item) */
    .testimonial-item:nth-child(1) {
        animation: testimonial-cycle-1 24s infinite ease-in-out;
    }
    .testimonial-item:nth-child(2) {
        animation: testimonial-cycle-2 24s infinite ease-in-out;
    }
    .testimonial-item:nth-child(3) {
        animation: testimonial-cycle-3 24s infinite ease-in-out;
    }

    @keyframes testimonial-cycle-1 {
        0%, 30% { opacity: 1; visibility: visible; }
        33.33%, 96.66% { opacity: 0; visibility: hidden; }
        100% { opacity: 1; visibility: visible; }
    }
    @keyframes testimonial-cycle-2 {
        0%, 30% { opacity: 0; visibility: hidden; }
        33.33%, 63.33% { opacity: 1; visibility: visible; }
        66.66%, 100% { opacity: 0; visibility: hidden; }
    }
    @keyframes testimonial-cycle-3 {
        0%, 63.33% { opacity: 0; visibility: hidden; }
        66.66%, 96.66% { opacity: 1; visibility: visible; }
        100% { opacity: 0; visibility: hidden; }
    }
}
