/* Safari Font Fallback - Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;800&display=swap');

/* Safari-specific font loading detection */
@supports (-webkit-touch-callout: none) {
    /* Force Google Fonts for Safari if local fonts fail */
    body {
        font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    }
    
    /* Ensure Google Fonts are loaded */
    .fonts-failed body {
        font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    }
}

/* Safari font rendering optimizations */
@supports (-webkit-touch-callout: none) {
    * {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
    
    /* Prevent font scaling on orientation change */
    html {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }
    
    /* Optimize font rendering for Retina displays */
    @media (-webkit-min-device-pixel-ratio: 2) {
        body {
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }
    }
} 