/*
 * MediShop — Self-hosted fonts (replaces Google Fonts external request)
 * Fonts: Raleway (400,600,700,800) + Open Sans (400,500,600)
 * Subset: latin only (US/UK/UAE target markets)
 * Format: woff2 (modern browsers) + woff (fallback)
 * font-display: swap — text stays visible during font load (no FOIT)
 *
 * Performance gain vs Google Fonts:
 *   - Eliminates 2× external DNS lookups (fonts.googleapis.com, fonts.gstatic.com)
 *   - Eliminates 2× TCP handshakes + TLS negotiations (~100–200ms on cold load)
 *   - Fonts served from same origin = browser cache hits alongside other assets
 *   - No render-blocking cross-origin stylesheet request
 */

/* ─── Raleway 400 (normal) ─── */
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/raleway-latin-400-normal.woff2') format('woff2'),
       url('../fonts/raleway-latin-400-normal.woff')  format('woff');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                 U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
                 U+FEFF, U+FFFD;
}

/* ─── Raleway 600 (semi-bold) ─── */
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/raleway-latin-600-normal.woff2') format('woff2'),
       url('../fonts/raleway-latin-600-normal.woff')  format('woff');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                 U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
                 U+FEFF, U+FFFD;
}

/* ─── Raleway 700 (bold) ─── */
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/raleway-latin-700-normal.woff2') format('woff2'),
       url('../fonts/raleway-latin-700-normal.woff')  format('woff');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                 U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
                 U+FEFF, U+FFFD;
}

/* ─── Raleway 800 (extra-bold) ─── */
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/raleway-latin-800-normal.woff2') format('woff2'),
       url('../fonts/raleway-latin-800-normal.woff')  format('woff');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                 U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
                 U+FEFF, U+FFFD;
}

/* ─── Open Sans 400 (normal) ─── */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/open-sans-latin-400-normal.woff2') format('woff2'),
       url('../fonts/open-sans-latin-400-normal.woff')  format('woff');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                 U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
                 U+FEFF, U+FFFD;
}

/* ─── Open Sans 500 (medium) ─── */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/open-sans-latin-500-normal.woff2') format('woff2'),
       url('../fonts/open-sans-latin-500-normal.woff')  format('woff');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                 U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
                 U+FEFF, U+FFFD;
}

/* ─── Open Sans 600 (semi-bold) ─── */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/open-sans-latin-600-normal.woff2') format('woff2'),
       url('../fonts/open-sans-latin-600-normal.woff')  format('woff');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                 U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
                 U+FEFF, U+FFFD;
}
