/* ==============================================================================
 * 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 var(--color-brand-blue) !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 4px rgba(var(--color-brand-blue-rgb), 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 var(--color-brand-blue) !important;
    outline-offset: 4px !important;
    opacity: 1 !important;
}

.heroSwiper .swiper-pagination-bullet-active {
    background: var(--color-brand-blue);
    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;
}

/* ------------------------------------------------------------------------------
 * PREMIUM COLLECTIONS SHOWER & HOVER EFFECTS (Everyday Atelier / Festive Runway style)
 * ------------------------------------------------------------------------------ */

/* Main collection section background */
.collection-section {
    background-color: #F8FAFC !important; /* Brand BG */
}

/* Card wrapper holds card and thumbnails */
.collection-card-wrapper {
    perspective: 1000px;
    backface-visibility: hidden;
}

/* Floating lift container */
.collection-card-lift {
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, box-shadow;
}

/* On wrapper hover, lift card and thumbnails up */
.collection-card-wrapper:hover .collection-card-lift {
    transform: translateY(-20px);
}

/* Main card aspect & details */
.collection-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background-color: #1E1E1E;
}

/* Background image zoom transition */
.collection-card-bg {
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), filter 0.5s ease;
    will-change: transform;
}

.collection-card-wrapper:hover .collection-card-bg {
    transform: scale(1.06);
    filter: brightness(0.85);
}

/* Thumbnail wrapper styling */
.collection-thumbnail-card {
    background-color: #FFFFFF;
    border: 1px solid rgba(232, 238, 242, 0.9);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.collection-card-wrapper:hover .collection-thumbnail-card {
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.1), 0 10px 15px -8px rgba(0, 0, 0, 0.06);
}

.collection-thumbnail-card:hover {
    transform: scale(1.05) translateY(-4px);
    border-color: var(--color-brand-blue) !important;
}

/* Premium Serif font overrides if fallback is active */
.font-serif-display {
    font-family: var(--font-serif-display) !important;
}

/* ------------------------------------------------------------------------------
 * PREMIUM SHUTTER / SLIDE HOVER EFFECT (.btn-ripple)
 * ------------------------------------------------------------------------------ */
.btn-ripple {
    position: relative;
    background-image: linear-gradient(to right, var(--color-brand-blue) 50%, var(--color-brand-dark) 50%) !important;
    background-size: 200% 100% !important;
    background-position: right bottom !important;
    transition: background-position 0.45s cubic-bezier(0.25, 1, 0.5, 1), color 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease !important;
    color: #ffffff !important;
}

.btn-ripple:hover {
    background-position: left bottom !important;
    color: #ffffff !important;
}

