/* CASCADE-LAYER: layered into @layer utilities by the atomic Plan 09-09 (wrapped lockstep with style.css @layer components + accessibility.css). Genuine survivors (sr-only, @media print, @media prefers-reduced-motion) stay UNLAYERED below. */
/* stylelint-disable media-feature-name-disallowed-list, media-feature-range-notation -- Phase 9 (09-08): max-width media queries + range notation retained (mobile-first conversion deferred). All other value debt cleaned this plan. The 2 cross-file SHARED keyframes (fade-in-up/text-shimmer, shared with style.css) were kebab-renamed in the coordinated theme-wide lockstep rename at Plan 09-07 (09-03 contract discharged). */

@layer utilities {
/*
Utility Classes and Modern Enhancements
Additional utility classes and modern design improvements
*/

/* ====================================
   STANDARDIZED CONTAINER SYSTEM
   Single source of truth for container classes
   ==================================== */

/* Base Container */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    padding: 0 var(--container-padding);
    margin: 0 auto;
    box-sizing: border-box;
}

/* Container Variations */
.container-fluid {
    width: 100%;
    max-width: 100%;
    padding: 0 var(--container-padding);
    margin: 0 auto;
    box-sizing: border-box;
}

.container-narrow {
    width: 100%;
    max-width: 800px;
    padding: 0 var(--container-padding);
    margin: 0 auto;
    box-sizing: border-box;
}

.container-wide {
    width: 100%;
    max-width: 1400px;
    padding: 0 var(--container-padding);
    margin: 0 auto;
    box-sizing: border-box;
}

/* Responsive Container Adjustments */
@media (max-width: 768px) {
    .container,
    .container-fluid,
    .container-narrow,
    .container-wide {
        width: 100%;
        max-width: 100%;
        padding: 0 var(--space-4);
        margin: 0 auto;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .container,
    .container-fluid,
    .container-narrow,
    .container-wide {
        width: 100%;
        max-width: 100%;
        padding: 0 var(--space-3);
    }
}

/* Modern Grid System */
.grid {
    display: grid;
    gap: var(--container-padding);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-auto {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-responsive {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

/* Flexbox Utilities */
.flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-center {
    justify-content: center;
    align-items: center;
}

.flex-between {
    justify-content: space-between;
}

.flex-around {
    justify-content: space-around;
}

.flex-end {
    justify-content: flex-end;
}

.align-center {
    align-items: center;
}

.align-start {
    align-items: flex-start;
}

.align-end {
    align-items: flex-end;
}

/* Spacing Utilities */
.gap-xs {
    gap: var(--space-2);
}

.gap-sm {
    gap: var(--space-4);
}

.gap-md {
    gap: var(--space-6);
}

.gap-lg {
    gap: var(--space-8);
}

.gap-xl {
    gap: var(--space-12);
}

/* Margin Utilities */
.m-0 {
    margin: 0;
}

.m-auto {
    margin: auto;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.my-auto {
    margin-top: auto;
    margin-bottom: auto;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-2); }
.mt-2 { margin-top: var(--space-4); }
.mt-3 { margin-top: var(--space-6); }
.mt-4 { margin-top: var(--space-8); }
.mt-5 { margin-top: var(--space-12); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-2); }
.mb-2 { margin-bottom: var(--space-4); }
.mb-3 { margin-bottom: var(--space-6); }
.mb-4 { margin-bottom: var(--space-8); }
.mb-5 { margin-bottom: var(--space-12); }

.ml-0 { margin-left: 0; }
.ml-1 { margin-left: var(--space-2); }
.ml-2 { margin-left: var(--space-4); }
.ml-3 { margin-left: var(--space-6); }
.ml-4 { margin-left: var(--space-8); }
.ml-auto { margin-left: auto; }

.mr-0 { margin-right: 0; }
.mr-1 { margin-right: var(--space-2); }
.mr-2 { margin-right: var(--space-4); }
.mr-3 { margin-right: var(--space-6); }
.mr-4 { margin-right: var(--space-8); }
.mr-auto { margin-right: auto; }

/* Padding Utilities */
.p-0 { padding: 0; }
.p-1 { padding: var(--space-2); }
.p-2 { padding: var(--space-4); }
.p-3 { padding: var(--space-6); }
.p-4 { padding: var(--space-8); }
.p-5 { padding: var(--space-12); }

.px-0 {
    padding-right: 0;
    padding-left: 0;
}

.px-1 {
    padding-right: var(--space-2);
    padding-left: var(--space-2);
}

.px-2 {
    padding-right: var(--space-4);
    padding-left: var(--space-4);
}

.px-3 {
    padding-right: var(--space-6);
    padding-left: var(--space-6);
}

.px-4 {
    padding-right: var(--space-8);
    padding-left: var(--space-8);
}

.py-0 {
    padding-top: 0;
    padding-bottom: 0;
}

.py-1 {
    padding-top: var(--space-2);
    padding-bottom: var(--space-2);
}

.py-2 {
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
}

.py-3 {
    padding-top: var(--space-6);
    padding-bottom: var(--space-6);
}

.py-4 {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
}

/* Text Utilities */
.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-justify {
    text-align: justify;
}

.text-uppercase {
    text-transform: uppercase;
}

.text-lowercase {
    text-transform: lowercase;
}

.text-capitalize {
    text-transform: capitalize;
}

.text-decoration-none {
    text-decoration: none;
}

/* Font Family Utilities - Primary utilities in fonts.css */

/* Use .font-primary, .font-secondary, .font-mono from fonts.css for specific font declarations */

/* Font Weight Utilities */
.font-weight-light {
    font-weight: var(--font-weight-light);
}

.font-weight-normal {
    font-weight: var(--font-weight-normal);
}

.font-weight-medium {
    font-weight: var(--font-weight-medium);
}

.font-weight-semibold {
    font-weight: var(--font-weight-bold);
}

.font-weight-bold {
    font-weight: var(--font-weight-heavy);
}

/* Line Height Utilities */
.leading-none {
    line-height: var(--line-height-none);
}

.leading-tight {
    line-height: var(--line-height-tight);
}

.leading-normal {
    line-height: var(--line-height-normal);
}

.leading-relaxed {
    line-height: var(--line-height-relaxed);
}

.leading-loose {
    line-height: var(--line-height-loose);
}

/* Letter Spacing Utilities */
.tracking-tight {
    letter-spacing: var(--letter-spacing-tight);
}

.tracking-normal {
    letter-spacing: var(--letter-spacing-normal);
}

.tracking-wide {
    letter-spacing: var(--letter-spacing-wide);
}

.tracking-wider {
    letter-spacing: var(--letter-spacing-wider);
}

.tracking-widest {
    letter-spacing: var(--letter-spacing-widest);
}

/* Font Size Utilities */
.text-xs {
    font-size: var(--font-size-xs);
}

.text-sm {
    font-size: var(--font-size-sm);
}

.text-base {
    font-size: var(--font-size-base);
}

.text-lg {
    font-size: var(--font-size-lg);
}

.text-xl {
    font-size: var(--font-size-xl);
}

.text-2xl {
    font-size: var(--font-size-2xl);
}

.text-3xl {
    font-size: var(--font-size-3xl);
}

.text-4xl {
    font-size: var(--font-size-4xl);
}

.text-5xl {
    font-size: var(--font-size-5xl);
}

/* Color Utilities */
.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--secondary-color);
}

.text-tertiary {
    color: var(--tertiary-color);
}

.text-success {
    color: var(--success-color);
}

.text-warning {
    color: var(--warning-color);
}

.text-danger {
    color: var(--danger-color);
}

.text-info {
    color: var(--info-color);
}

.text-muted {
    color: var(--text-secondary);
}

.text-light {
    color: var(--text-light);
}

/* Background Utilities */
.bg-primary {
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- generic white-on-color helper ink; no byte-exact generic-white token (--text-on-purple is purple-scoped); kept literal for zero-diff */
    color: white;
    background-color: var(--primary-color);
}

.bg-secondary {
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- generic white-on-color helper ink; no byte-exact generic-white token; kept literal for zero-diff */
    color: white;
    background-color: var(--secondary-color);
}

.bg-tertiary {
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- generic white-on-color helper ink; no byte-exact generic-white token; kept literal for zero-diff */
    color: white;
    background-color: var(--tertiary-color);
}

.bg-success {
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- generic white-on-color helper ink; no byte-exact generic-white token; kept literal for zero-diff */
    color: white;
    background-color: var(--success-color);
}

.bg-warning {
    color: var(--neutral-900);
    background-color: var(--warning-color);
}

.bg-danger {
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- generic white-on-color helper ink; no byte-exact generic-white token; kept literal for zero-diff */
    color: white;
    background-color: var(--danger-color);
}

.bg-info {
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- generic white-on-color helper ink; no byte-exact generic-white token; kept literal for zero-diff */
    color: white;
    background-color: var(--info-color);
}

.bg-light {
    color: var(--text-primary);
    background-color: var(--background-secondary);
}

.bg-white {
    color: var(--text-primary);
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- generic white helper background; no byte-exact generic-white token; kept literal for zero-diff */
    background-color: white;
}

.bg-transparent {
    background-color: transparent;
}

/* Border Utilities */
.border {
    border: 1px solid var(--border-color);
}

.border-top {
    border-top: 1px solid var(--border-color);
}

.border-bottom {
    border-bottom: 1px solid var(--border-color);
}

.border-left {
    border-left: 1px solid var(--border-color);
}

.border-right {
    border-right: 1px solid var(--border-color);
}

.border-0 {
    border: none;
}

.border-primary {
    border-color: var(--primary-color);
}

.border-secondary {
    border-color: var(--secondary-color);
}

/* Border Radius Utilities */
.rounded-none {
    border-radius: 0;
}

.rounded-sm {
    border-radius: var(--border-radius-sm);
}

.rounded {
    border-radius: var(--border-radius-md);
}

.rounded-lg {
    border-radius: var(--border-radius-lg);
}

.rounded-xl {
    border-radius: var(--border-radius-xl);
}

.rounded-full {
    border-radius: var(--border-radius-full);
}

.rounded-circle {
    border-radius: var(--radius-circle);
}

/* Shadow Utilities */
.shadow-none {
    box-shadow: none;
}

.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

/* Position Utilities */
.position-relative {
    position: relative;
}

.position-absolute {
    position: absolute;
}

.position-fixed {
    position: fixed;
}

.position-sticky {
    position: sticky;
}

.position-static {
    position: static;
}

/* Display Utilities */
.d-none {
    display: none;
}

.d-block {
    display: block;
}

.d-inline {
    display: inline;
}

.d-inline-block {
    display: inline-block;
}

.d-flex {
    display: flex;
}

.d-inline-flex {
    display: inline-flex;
}

.d-grid {
    display: grid;
}

/* Width Utilities */
.w-25 {
    width: 25%;
}

.w-50 {
    width: 50%;
}

.w-75 {
    width: 75%;
}

.w-100 {
    width: 100%;
}

.w-auto {
    width: auto;
}

/* Height Utilities */
.h-25 {
    height: 25%;
}

.h-50 {
    height: 50%;
}

.h-75 {
    height: 75%;
}

.h-100 {
    height: 100%;
}

.h-auto {
    height: auto;
}

/* Overflow Utilities */
.overflow-hidden {
    overflow: hidden;
}

.overflow-auto {
    overflow: auto;
}

.overflow-scroll {
    overflow: scroll;
}

.overflow-visible {
    overflow: visible;
}

/* Z-index Utilities */
.z-0 {
    z-index: 0;
}

.z-10 {
    z-index: 10;
}

.z-20 {
    z-index: 20;
}

.z-30 {
    z-index: 30;
}

.z-40 {
    z-index: 40;
}

.z-50 {
    z-index: 50;
}

/* Button System - REMOVED: Now defined in critical.css
   Duplicate styles were causing bloated buttons (1rem 2rem padding vs 0.5rem 1rem).
   See critical.css lines 230-323 for the canonical button system.
*/

/* Hero Decoration Components */
.hero-decoration {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-4);
    opacity: 0.9;
    margin-top: var(--space-6);
}

.decoration-icon {
    font-size: var(--text-2xl);
}

.decoration-text {
    font-size: var(--text-base);
    font-weight: 600;
}

/* WordPress Admin Button Variants */
.btn-widget {
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- WP-admin button: 8px/16px native admin metrics, off the --space-* scale; kept literal for zero-diff */
    padding: 8px 16px;
    font-size: var(--text-btn);
    font-weight: 500;
    border-radius: var(--radius-xs);
}

.btn-admin-primary {
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- generic white-on-color helper ink; no byte-exact generic-white token; kept literal for zero-diff */
    color: white;
    background: #007cba;
}

.btn-admin-secondary {
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- WP-admin native grey #50575e; off the theme palette; kept literal for zero-diff */
    color: #50575e;
    background: #f0f0f1;
    border: 1px solid #c3c4c7;
}

/* Modern Button Variants */
.btn-gradient {
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- generic white-on-gradient helper ink; no byte-exact generic-white token; kept literal for zero-diff */
    color: white;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
}

.btn-gradient:hover {
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- generic white-on-gradient helper ink; no byte-exact generic-white token; kept literal for zero-diff */
    color: white;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--tertiary-color) 100%);
}

.btn-glass {
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- generic white-on-glass helper ink; no byte-exact generic-white token; kept literal for zero-diff */
    color: white;
    background: rgb(255 255 255 / 10%);
    border: 1px solid rgb(255 255 255 / 20%);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- generic white-on-glass helper ink; no byte-exact generic-white token; kept literal for zero-diff */
    color: white;
    background: rgb(255 255 255 / 20%);
}

/* Card Variants */
.card {
    padding: var(--space-6);
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.card-glass {
    padding: var(--space-6);
    background: rgb(255 255 255 / 10%);
    border: 1px solid rgb(255 255 255 / 20%);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
}

.card-gradient {
    padding: var(--space-6);
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- generic white-on-gradient helper ink; no byte-exact generic-white token; kept literal for zero-diff */
    color: white;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--border-radius-lg);
}

/* Modern Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    font-family: var(--font-family-base);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    border-radius: var(--border-radius-full);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
}

.badge-primary {
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- generic white-on-color badge ink; no byte-exact generic-white token; kept literal for zero-diff */
    color: white;
    background: var(--primary-color);
}

.badge-secondary {
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- generic white-on-color badge ink; no byte-exact generic-white token; kept literal for zero-diff */
    color: white;
    background: var(--secondary-color);
}

.badge-success {
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- generic white-on-color badge ink; no byte-exact generic-white token; kept literal for zero-diff */
    color: white;
    background: var(--success-color);
}

.badge-warning {
    color: var(--neutral-900);
    background: var(--warning-color);
}

.badge-danger {
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- generic white-on-color badge ink; no byte-exact generic-white token; kept literal for zero-diff */
    color: white;
    background: var(--danger-color);
}

.badge-info {
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- generic white-on-color badge ink; no byte-exact generic-white token; kept literal for zero-diff */
    color: white;
    background: var(--info-color);
}

.badge-light {
    color: var(--text-primary);
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
}

/* Loading States */
.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-radius: var(--radius-circle);
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;
    border-top: 2px solid var(--primary-color);
}

/* Pulse Animation */
.pulse {
    animation: pulse 2s infinite;
}

/* First @keyframes pulse removed - duplicate found later in file */

/* Bounce Animation */
.bounce {
    animation: bounce 1s infinite;
}
}


/* First @keyframes bounce removed - duplicate found later in file */

/* Accessibility Enhancements */

.screen-reader-text {
    /* stylelint-disable-next-line declaration-no-important -- sr-only visual-hide; must beat any later-loading unlayered positioning (a11y survivor) */
    position: absolute !important;
    /* stylelint-disable-next-line property-no-deprecated -- legacy clip() retained for max sr-only cross-browser coverage; intentional a11y survivor */
    clip: rect(1px, 1px, 1px, 1px);
    /* stylelint-disable-next-line declaration-no-important -- sr-only collapse to 1px; a11y survivor, must beat later-loading unlayered sheets */
    width: 1px !important;
    /* stylelint-disable-next-line declaration-no-important -- sr-only collapse to 1px; a11y survivor, must beat later-loading unlayered sheets */
    height: 1px !important;
    overflow: hidden;
}

@layer utilities {
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    z-index: 999999;
    padding: var(--space-4);
    /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- generic white-on-purple skip-link ink; no byte-exact generic-white token; kept literal for zero-diff */
    color: white;
    background: var(--primary-color);
    transition: var(--transition-base);
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* Focus Management */
.focus-trap {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .d-md-none {
        display: none;
    }
    
    .d-md-block {
        display: block;
    }
    
    .d-md-flex {
        display: flex;
    }
    
    .text-md-center {
        text-align: center;
    }
    
    .text-md-left {
        text-align: left;
    }
    
    .grid-md-1 {
        grid-template-columns: 1fr;
    }
    
    .grid-md-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .flex-md-column {
        flex-direction: column;
    }
    
    .order-md-first {
        order: -1;
    }
    
    .order-md-last {
        order: 999;
    }
}

@media (max-width: 480px) {
    .d-sm-none {
        display: none;
    }
    
    .d-sm-block {
        display: block;
    }
    
    .d-sm-flex {
        display: flex;
    }
    
    .text-sm-center {
        text-align: center;
    }
    
    .grid-sm-1 {
        grid-template-columns: 1fr;
    }
    
    .flex-sm-column {
        flex-direction: column;
    }
}
}


/* Print Utilities */

@media print {
    .no-print {
        /* stylelint-disable-next-line declaration-no-important -- print visibility override must beat all screen rules incl later-loading unlayered sheets (sanctioned print survivor) */
        display: none !important;
    }

    .print-only {
        /* stylelint-disable-next-line declaration-no-important -- print visibility override must beat all screen rules incl later-loading unlayered sheets (sanctioned print survivor) */
        display: block !important;
    }
}

@layer utilities {
/* Dark Mode Support (for future implementation) */
@media (prefers-color-scheme: dark) {
    .dark-mode-auto {
        --background-primary: #1a1a1a;
        --background-secondary: #2d2d2d;
        --text-primary: #fff;
        --text-secondary: #ccc;
        --border-color: #444;
    }
}

/* High Contrast Mode Support */
/* stylelint-disable-next-line media-feature-name-value-no-unknown -- "high" is a valid prefers-contrast value (CSS MQ-5); stylelint's value list is outdated */
@media (prefers-contrast: high) {
    .high-contrast {
        /* stylelint-disable-next-line scale-unlimited/declaration-strict-value -- generic black ink for forced high-contrast; no byte-exact generic-black token; kept literal for zero-diff */
        color: black;
        background: white;
        border: 2px solid;
    }
}
}


/* ====================================
   CONSOLIDATED KEYFRAME ANIMATIONS
   Single source of truth for all animations
   ==================================== */

/* Basic Animations */

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}



@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}



@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}


/* Fade Animations */

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



@keyframes fade-in-down {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Slide Animations */

@keyframes slide-in-from-right {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}



@keyframes slide-in-tag {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}



@keyframes pagination-slide-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Float Animations */

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(1deg); }
    50% { transform: translateY(-5px) rotate(-1deg); }
    75% { transform: translateY(-15px) rotate(0.5deg); }
}



@keyframes float-icon {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(2deg); }
    50% { transform: translateY(-8px) rotate(0deg); }
    75% { transform: translateY(-3px) rotate(-1deg); }
}



@keyframes service-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(2deg); }
    50% { transform: translateY(-8px) rotate(-1deg); }
    75% { transform: translateY(-20px) rotate(1deg); }
}



@keyframes emergency-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-8px) rotate(1deg); }
    66% { transform: translateY(-12px) rotate(-1deg); }
}



@keyframes faq-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-12px) rotate(1deg); }
    50% { transform: translateY(-6px) rotate(-0.5deg); }
    75% { transform: translateY(-18px) rotate(0.8deg); }
}


/* Shimmer/Glow Animations */

@keyframes shimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}



@keyframes text-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}



@keyframes card-shimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}



@keyframes faq-item-shimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}



@keyframes title-shine {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}



@keyframes faq-title-glow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}


/* Rainbow/Gradient Animations */

@keyframes rainbow-slide {
    0%, 100% { background-position: 0% 0; }
    50% { background-position: 100% 0; }
}



@keyframes category-slide {
    0%, 100% { background-position: 0% 0; }
    50% { background-position: 100% 0; }
}



@keyframes search-rainbow {
    0%, 100% { background-position: 0% 0; }
    50% { background-position: 100% 0; }
}



@keyframes contact-rainbow {
    0_, 100% { background-position: 0% 0; }
    50% { background-position: 100% 0; }
}



@keyframes contact-card-rainbow {
    0_, 100% { background-position: 0% 0; }
    50% { background-position: 100% 0; }
}


/* Specialized Bounce Animations */

@keyframes stat-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}



@keyframes faq-stat-bounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(5deg); }
}



@keyframes badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}


/* Pulse Variations */

@keyframes pulse-star {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}



@keyframes category-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}



@keyframes contact-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}


/* Image/Load Animations */

@keyframes image-load {
    from {
        opacity: 0;
        transform: scale(1.1);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@layer utilities {
/* Utility Animation Classes */
.animate-spin {
    animation: spin 1s linear infinite;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-bounce {
    animation: bounce 1s infinite;
}

.animate-fade-in {
    animation: fade-in 0.6s ease-out forwards;
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out forwards;
}

.animate-fade-in-down {
    animation: fade-in-down 0.6s ease-out forwards;
}

.animate-slide-in-right {
    animation: slide-in-from-right 0.8s ease-out forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-shimmer {
    animation: shimmer 2s linear infinite;
}

.animate-rainbow {
    animation: rainbow-slide 3s linear infinite;
}
}


/* Reduced Motion Support */

@media (prefers-reduced-motion: reduce) {
    * {
        /* stylelint-disable declaration-no-important -- WCAG 2.3.3 reduced-motion kill-switch; the universal-selector !important block MUST beat every animation/transition incl later-loading unlayered sheets (sanctioned a11y survivor; do NOT layer away) */
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        /* stylelint-enable declaration-no-important */
    }
    
    .fade-in,
    .pulse,
    .bounce,
    .animate-spin,
    .animate-pulse,
    .animate-bounce,
    .animate-fade-in,
    .animate-fade-in-up,
    .animate-fade-in-down,
    .animate-slide-in-right,
    .animate-float,
    .animate-shimmer,
    .animate-rainbow {
        animation: none;
    }
}


/* Additional Emergency Animation */

@keyframes emergency-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}
