/* =================================================================
   Persian Fonts - Optimized for Speed
   Only essential weights loaded
   ================================================================= */

/* Vazirmatn Font - Only Regular and Bold (most commonly used) */
@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* =================================================================
   Global Font Configuration
   ================================================================= */

body,
html {
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Input and Form Elements */
input,
textarea,
select,
button {
    font-family: inherit;
}

/* =================================================================
   Mobile Optimizations
   ================================================================= */

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

@media (max-width: 768px) {
    input,
    textarea,
    select {
        font-size: 16px !important;
    }
}
