/* ===========================================
   PERFORMANCE OPTIMIZATIONS CSS
   LUX Worldwide Limousine
   =========================================== */

/* ===========================================
   1. FONT DISPLAY OPTIMIZATION
   Applied via Google Fonts URL parameter &display=swap
   =========================================== */


/* ===========================================
   2. IMAGE OPTIMIZATION
   Prevents CLS (Cumulative Layout Shift)
   =========================================== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Reserve space for images to prevent layout shift */
img[width][height] {
    aspect-ratio: attr(width) / attr(height);
}

/* Lazy loaded images fade in smoothly */
img[loading="lazy"] {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

img.lazyloading {
    opacity: 0;
}

/* ===========================================
   3. REDUCED MOTION SUPPORT
   Accessibility for users who prefer no motion
   =========================================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===========================================
   4. ANIMATION PERFORMANCE
   Use standard hardware acceleration where needed without forcing
   =========================================== */
.hero-image,
img.ken-burns {
    /* Only apply to specific heavy animations */
    will-change: transform;
}

/* ===========================================
   5. SMOOTH SCROLLING
   Better UX when navigating
   =========================================== */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* ===========================================
   6. TOUCH ACTION OPTIMIZATION
   Faster mobile interactions
   =========================================== */
a,
button,
input,
select,
textarea,
[role="button"],
.elementor-button {
    touch-action: manipulation;
}

/* ===========================================
   7. TEXT RENDERING OPTIMIZATION
   Better readability on all devices
   =========================================== */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}