/* Font Optimization for Better FCP */

/* Font Awesome 5 Free - Solid (900) */
@font-face {
    font-family: 'Font Awesome 5 Free';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.10.0/webfonts/fa-solid-900.woff2') format('woff2');
    unicode-range: U+F000-F2E0;
}

/* Font Awesome 5 Free - Regular (400) */
@font-face {
    font-family: 'Font Awesome 5 Free';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.10.0/webfonts/fa-regular-400.woff2') format('woff2');
    unicode-range: U+F000-F2E0;
}

/* Font Awesome 5 Brands (400) */
@font-face {
    font-family: 'Font Awesome 5 Brands';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.10.0/webfonts/fa-brands-400.woff2') format('woff2');
    unicode-range: U+F000-F2E0;
}

/* Bootstrap Icons */
@font-face {
    font-family: 'bootstrap-icons';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.13.1/font/fonts/bootstrap-icons.woff2') format('woff2');
    unicode-range: U+F000-F2E0;
}

/* Optimize font loading for better performance */
.fas, .far, .fab, .fa {
    font-display: swap;
}

/* Prevent layout shift during font loading */
.icon-loading {
    visibility: hidden;
}

.fonts-loaded .icon-loading {
    visibility: visible;
}

/* Fallback fonts for better performance */
.font-fallback {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Critical icons that should load immediately */
.fa-phone, .fa-envelope, .fa-map-marker-alt, .fa-arrow-up {
    font-display: swap;
}
