/* ==========================================================================
   SGS Intercools — Design tokens
   Values derived from .opencode/design-specification.md
   ========================================================================== */

@font-face {
    font-family: 'Archivo';
    src: url('../fonts/archivo/archivo-latin-ext.woff2') format('woff2');
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Archivo';
    src: url('../fonts/archivo/archivo-latin.woff2') format('woff2');
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-style: normal;
    font-display: swap;
    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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('../fonts/ibm-plex-sans-arabic/plex-arabic-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('../fonts/ibm-plex-sans-arabic/plex-arabic-600.woff2') format('woff2');
    font-weight: 600 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('../fonts/ibm-plex-sans-arabic/plex-latin-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('../fonts/ibm-plex-sans-arabic/plex-latin-600.woff2') format('woff2');
    font-weight: 600 900;
    font-style: normal;
    font-display: swap;
    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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    /* Palette — user approved */
    --sgs-primary: #08476D;
    --sgs-surface: #E4EBF2;
    --sgs-white: #FFFFFF;

    /* Derived reference colours */
    --sgs-navy-deep: #072650;
    --sgs-navy-action: #073372;
    --sgs-text-body: #0B3556;
    --sgs-hero-sub: #9AA7B6;
    --sgs-sky: #B5C9E1;
    --sgs-glass-fill: rgba(255, 255, 255, 0.40);
    --sgs-glass-border: rgba(8, 71, 109, 0.55);
    --sgs-form-panel: #E3E4E6;
    --sgs-input-fill: #EFF3F4;
    --sgs-input-border: #5C7FA6;
    --sgs-placeholder: #5F7A96;
    --sgs-cyan: #4FDDE8;
    --sgs-star: #ECBB54;
    --sgs-contact-grad-a: #2A5283;
    --sgs-contact-grad-b: #568EC7;

    /* Typography */
    --sgs-font-latin: 'Archivo', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --sgs-font-arabic: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
    --sgs-font: var(--sgs-font-latin);
    --sgs-font-wide: 115%;
    --sgs-font-narrow: 88%;

    /* Geometry */
    --sgs-radius-card: clamp(28px, 3.1vw, 56px);
    --sgs-radius-media: clamp(20px, 2vw, 34px);
    --sgs-radius-pill: 999px;
    --sgs-radius-field: 999px;
    --sgs-radius-textarea: 38px;
    --sgs-header-h: clamp(72px, 7.8vw, 112px);
    --sgs-shell-pad: clamp(16px, 2.4vw, 46px);
    --sgs-section-y: clamp(56px, 7.2vw, 128px);

    /* Motion */
    --sgs-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --sgs-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --sgs-dur-fast: 200ms;
    --sgs-dur-base: 250ms;
    --sgs-dur-slow: 700ms;

    /* Effects */
    --sgs-shadow-btn: 0 5px 12px rgba(7, 38, 80, 0.30);
    --sgs-shadow-card: 0 6px 22px rgba(7, 38, 80, 0.16);
    --sgs-shadow-float: 0 14px 40px rgba(7, 38, 80, 0.18);

    --sgs-focus: var(--sgs-primary);
}

[dir='rtl'] {
    --sgs-font: var(--sgs-font-arabic);
    --sgs-font-wide: 100%;
    --sgs-font-narrow: 100%;
}
