/* =============================================================================
   Wendt Partners - Enterprise ATS & CMS Platform
   Inter Font - Self-Hosted @font-face Declarations
   =============================================================================
   Purpose: Self-hosted Inter font (WOFF2) for optimal performance and
            privacy (no external Google Fonts requests).
   
   Font: Inter (by Rasmus Andersson)
   License: SIL Open Font License 1.1
   Source: https://rsms.me/inter/
   
   Files to download and place in this directory:
   - Inter-Regular.woff2
   - Inter-Medium.woff2
   - Inter-SemiBold.woff2
   - Inter-Bold.woff2
   - Inter-ExtraBold.woff2
   - Inter-Italic.woff2
   
   Architecture: Pure CSS | font-display: swap | Performance optimized
   ============================================================================= */

/* Regular (400) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('Inter-Regular.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, 
                   U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, 
                   U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Medium (500) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('Inter-Medium.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, 
                   U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, 
                   U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* SemiBold (600) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('Inter-SemiBold.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, 
                   U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, 
                   U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Bold (700) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('Inter-Bold.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, 
                   U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, 
                   U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ExtraBold (800) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('Inter-ExtraBold.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, 
                   U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, 
                   U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Italic (400) - for blog content */
@font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('Inter-Italic.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, 
                   U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, 
                   U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =============================================================================
   FONT SMOOTHING & RENDERING OPTIMIZATIONS
   ============================================================================= */

body {
    font-family: var(--font-family-primary);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'kern' 1, 'liga' 1;
}

/* Prevent FOUT (Flash of Unstyled Text) jank */
.fonts-loading body {
    visibility: hidden;
}

.fonts-loaded body {
    visibility: visible;
}

/* =============================================================================
   FONT LOADING DETECTION SCRIPT (add to <head>)
   =============================================================================
   
   <script>
   // Add fonts-loading class immediately
   document.documentElement.classList.add('fonts-loading');
   
   // Remove when fonts are loaded
   if (document.fonts) {
       document.fonts.ready.then(function() {
           document.documentElement.classList.remove('fonts-loading');
           document.documentElement.classList.add('fonts-loaded');
       });
       
       // Fallback timeout (3 seconds)
       setTimeout(function() {
           document.documentElement.classList.remove('fonts-loading');
           document.documentElement.classList.add('fonts-loaded');
       }, 3000);
   } else {
       document.documentElement.classList.remove('fonts-loading');
       document.documentElement.classList.add('fonts-loaded');
   }
   </script>
   
   ============================================================================= */