/* ==========================================================================
   Delivery — Core (shared by website & dashboard)
   Fonts · design tokens · reset · icons · buttons · utilities
   ========================================================================== */

/* Tajawal (SIL Open Font License) — self-hosted, Arabic + Latin subsets */
@font-face {
    font-family: "Tajawal";
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("../fonts/tajawal-arabic-300.woff2") format("woff2");
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-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: "Tajawal";
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("../fonts/tajawal-latin-300.woff2") format("woff2");
    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: "Tajawal";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/tajawal-arabic-400.woff2") format("woff2");
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-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: "Tajawal";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/tajawal-latin-400.woff2") format("woff2");
    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: "Tajawal";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/tajawal-arabic-500.woff2") format("woff2");
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-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: "Tajawal";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/tajawal-latin-500.woff2") format("woff2");
    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: "Tajawal";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/tajawal-arabic-700.woff2") format("woff2");
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-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: "Tajawal";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/tajawal-latin-700.woff2") format("woff2");
    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: "Tajawal";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("../fonts/tajawal-arabic-800.woff2") format("woff2");
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-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: "Tajawal";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("../fonts/tajawal-latin-800.woff2") format("woff2");
    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 {
    /* brand */
    --brand-50: #fff4ed;
    --brand-100: #ffe6d4;
    --brand-200: #ffc9a8;
    --brand-300: #ffa371;
    --brand-400: #ff7a3d;
    --brand-500: #ff5a1f;
    --brand-600: #ec4108;
    --brand-700: #c42f09;
    --brand-gradient: linear-gradient(135deg, #ff7a3d 0%, #ff5a1f 45%, #e8380b 100%);

    /* ink (navy) */
    --ink-950: #060a14;
    --ink-900: #0b1222;
    --ink-800: #121b31;
    --ink-700: #1c2742;
    --ink-600: #2a3656;

    /* neutrals */
    --gray-50: #f7f8fa;
    --gray-100: #eef0f4;
    --gray-200: #e1e5ec;
    --gray-300: #c9cfda;
    --gray-400: #98a1b3;
    --gray-500: #6b7489;
    --gray-600: #4d566b;
    --gray-700: #363e51;

    /* semantic */
    --success: #16a34a;
    --success-soft: #e7f7ee;
    --warning: #d97706;
    --warning-soft: #fdf3e2;
    --danger: #dc2626;
    --danger-soft: #fdecec;
    --info: #2563eb;
    --info-soft: #e9f0fe;
    --violet: #7c3aed;
    --violet-soft: #f1ebfe;

    --font: "Tajawal", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;
    --radius-xl: 26px;

    --shadow-sm: 0 1px 2px rgba(11, 18, 34, .06);
    --shadow: 0 6px 24px -8px rgba(11, 18, 34, .14);
    --shadow-lg: 0 24px 60px -18px rgba(11, 18, 34, .28);
    --shadow-brand: 0 14px 32px -12px rgba(255, 90, 31, .6);

    --ease: cubic-bezier(.22, .61, .36, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 15.5px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, h5, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 3px; border-radius: 6px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- icons ---------- */
.icon {
    width: 20px; height: 20px; flex: none;
    fill: none; stroke: currentColor; stroke-width: 1.9;
    stroke-linecap: round; stroke-linejoin: round;
}
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 26px; height: 26px; }
.icon-xl { width: 32px; height: 32px; }
[dir="rtl"] .icon-flip { transform: scaleX(-1); }

/* ---------- buttons ---------- */
.btn {
    --btn-h: 46px;
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    height: var(--btn-h); padding: 0 22px; border-radius: 999px;
    font-weight: 500; font-size: 15px; white-space: nowrap;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
    position: relative; isolation: isolate;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-sm { --btn-h: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { --btn-h: 56px; padding: 0 30px; font-size: 16px; }

.btn-primary { background: var(--brand-gradient); color: #fff; box-shadow: var(--shadow-brand); overflow: hidden; }
.btn-primary::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
    transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -12px rgba(255, 90, 31, .75); }
.btn-primary:hover::after { transform: translateX(120%); }

.btn-light { background: #fff; color: var(--ink-900); box-shadow: var(--shadow); }
.btn-light:hover { transform: translateY(-2px); }

.btn-glass {
    background: rgba(255, 255, 255, .12); color: #fff;
    border: 1px solid rgba(255, 255, 255, .28);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn-glass:hover { background: rgba(255, 255, 255, .22); }

.btn-outline { border: 1.5px solid var(--gray-200); color: var(--ink-900); background: #fff; }
.btn-outline:hover { border-color: var(--brand-400); color: var(--brand-600); }

.btn-dark { background: var(--ink-900); color: #fff; }
.btn-dark:hover { background: var(--ink-700); transform: translateY(-2px); }

.btn-icon { width: var(--btn-h); padding: 0; }

/* ---------- badges ---------- */
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; line-height: 1.6;
    background: var(--gray-100); color: var(--gray-600); white-space: nowrap;
}
.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-violet { background: var(--violet-soft); color: var(--violet); }
.badge-brand { background: var(--brand-50); color: var(--brand-600); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important; animation-iteration-count: 1 !important;
        transition-duration: .01ms !important; scroll-behavior: auto !important;
    }
}
.icon-brand { fill: currentColor; stroke: none; }
