/* ==========================================================================
   MANASIK SOVEREIGN DESIGN TOKENS
   Inspired by Academic & Institutional Excellence (EBYÜ Style System)
   Organe de Régulation et de Gestion du Pèlerinage et de la Oumra (ORGEP) - Tchad
   ========================================================================== */

:root {
    /* Chadian Sovereign Identity */
    --flag-blue: #002664;
    --flag-yellow: #FECB00;
    --flag-red: #C60C30;

    /* Sovereign Emerald Palette */
    --emerald-950: #04140D;
    --emerald-900: #072216;
    --emerald-850: #0A2E1E;
    --emerald-800: #0D3E28;
    --emerald-700: #105537;
    --emerald-600: #146C46;
    --emerald-500: #1A8456;
    --emerald-100: #E6F4ED;
    --emerald-50:  #F0FAF5;

    /* Heritage Sand & Royal Gold */
    --gold-700: #8E6D18;
    --gold-600: #AB841E;
    --gold-500: #C59B27;
    --gold-400: #D8AF38;
    --gold-300: #E7C75C;
    --gold-100: #FBF4DC;
    --gold-50:  #FDFBF3;

    /* Crisp Slate & Neutral Scale */
    --slate-900: #0F172A;
    --slate-800: #1E293B;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748B;
    --slate-400: #94A3B8;
    --slate-300: #CBD5E1;
    --slate-200: #E2E8F0;
    --slate-100: #F1F5F9;
    --slate-50:  #F8FAFC;
    --white:     #FFFFFF;

    /* Semantics & Alerts */
    --danger-600: #DC2626;
    --danger-500: #EF4444;
    --danger-50:  #FEF2F2;
    --warning-500: #F59E0B;
    --warning-50:  #FFFBEB;
    --info-600:   #0284C7;
    --info-50:    #F0F9FF;
    --success-600: #16A34A;
    --success-50:  #F0FDF4;

    /* Typography */
    --font-sans: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'Amiri', 'Traditional Arabic', serif;
    --font-lat: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Elevations & Shadows */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.12);
    --shadow-xl: 0 24px 54px rgba(15, 23, 42, 0.16);
    --shadow-gold: 0 10px 25px rgba(197, 155, 39, 0.28);
    --shadow-emerald: 0 10px 28px rgba(13, 62, 40, 0.25);

    /* Radii */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* Transitions */
    --ease-out: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
    font-family: var(--font-sans);
    background-color: var(--slate-50);
    color: var(--slate-900);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--ease-out);
}

button, input, select, textarea {
    font-family: inherit;
    color: inherit;
}

.shell {
    width: 100%;
    padding-inline: clamp(1rem, 3.5vw, 3rem);
}

.container {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: 1.25rem;
}

/* Latin Override for LTR */
html[dir="ltr"] body {
    font-family: var(--font-lat);
}
html[dir="ltr"] .font-serif,
html[dir="ltr"] h1,
html[dir="ltr"] h2 {
    font-family: var(--font-lat);
    letter-spacing: -0.02em;
}
