/* ==============================================================================
 * RESONIX MUSIC - ACCESSIBILITY (WCAG 2.1 AA) & DESIGN SYSTEM STYLESHEET
 * ============================================================================== */

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

.animate-fadeIn {
    animation: fadeIn 0.25s ease-out forwards;
}

/* ------------------------------------------------------------------------------
 * ACCESSIBILITY & SCREEN READER UTILITIES (WCAG 2.1 AA)
 * ------------------------------------------------------------------------------ */

/* Screen reader only utility class */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.sr-only-focusable:focus,
.sr-only-focusable:focus-within {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: normal !important;
}

/* Universal Visible Focus Rings for Keyboard Navigation */
a:focus-visible, 
button:focus-visible, 
input:focus-visible, 
select:focus-visible, 
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid #7EAEC8 !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 4px rgba(126, 174, 200, 0.25) !important;
}

/* ------------------------------------------------------------------------------
 * TASK 2: CAROUSEL TOUCH TARGET ENHANCEMENTS (Min 44px x 44px)
 * ------------------------------------------------------------------------------ */

.heroSwiper .swiper-pagination {
    bottom: 24px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.heroSwiper .swiper-pagination-bullet {
    position: relative;
    background: #ffffff;
    opacity: 0.5;
    width: 10px;
    height: 10px;
    margin: 0 !important;
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

/* Invisible 44px x 44px Touch Target for Mobile Devices (WCAG 2.1 AA Target Size) */
.heroSwiper .swiper-pagination-bullet::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
}

.heroSwiper .swiper-pagination-bullet:hover {
    opacity: 0.85;
    transform: scale(1.15);
}

.heroSwiper .swiper-pagination-bullet:focus-visible {
    outline: 2px solid #7EAEC8 !important;
    outline-offset: 4px !important;
    opacity: 1 !important;
}

.heroSwiper .swiper-pagination-bullet-active {
    background: #7EAEC8;
    opacity: 1;
    width: 28px;
    border-radius: 6px;
}

/* ------------------------------------------------------------------------------
 * TASK 3: WCAG AA CONTRAST HIGH-VISIBILITY COLOR OVERRIDES
 * ------------------------------------------------------------------------------ */

/* Accessible Red Badges (Passes WCAG 2.1 AA 4.5:1 Contrast Ratio) */
.bg-contrast-red {
    background-color: #B91C1C !important;
    color: #FFFFFF !important;
}

.text-contrast-red {
    color: #991B1B !important;
}

.hover\:text-contrast-red:hover {
    color: #7F1D1D !important;
}

/* High Contrast CTA Section Overrides */
.cta-red-section {
    background-color: #991B1B !important;
    color: #FFFFFF !important;
}

.cta-red-section h2, 
.cta-red-section h3, 
.cta-red-section p {
    color: #FFFFFF !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* ------------------------------------------------------------------------------
 * TASK 5: STANDARDIZED TYPOGRAPHY SPACING & VERTICAL RHYTHM
 * ------------------------------------------------------------------------------ */

.section-spacing {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
}

@media (min-width: 768px) {
    .section-spacing {
        padding-top: 5.5rem;
        padding-bottom: 5.5rem;
    }
}

.heading-margin-bottom {
    margin-bottom: 1rem;
}

.section-title-margin {
    margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .section-title-margin {
        margin-bottom: 3rem;
    }
}

.card-padding {
    padding: 1.5rem;
}
