/*
 * متجركم — public site design system (2026).
 * Tokens and shared building blocks for every public page: home, login,
 * register, forgot password, downloads, privacy and terms. Page files add
 * their own layout on top and use only these tokens, so the pages read as
 * one site. Loaded by includes/public-header.php after style.css.
 */

:root {
    --mx-orange: #ff5b1f;
    --mx-orange-2: #ff8a3d;
    --mx-amber: #ffb547;
    --mx-ember: #e2400f;
    --mx-ink: #0b0d12;
    --mx-ink-2: #141821;
    --mx-ink-3: #1d2330;
    --mx-paper: #fffaf6;
    --mx-paper-2: #fff3ea;
    --mx-line: #f0e4dc;
    --mx-line-dark: rgba(255, 255, 255, .09);
    --mx-text: #1b1f27;
    --mx-text-2: #4f5663;
    --mx-text-3: #808792;
    --mx-on-dark: #f6f3f0;
    --mx-on-dark-2: rgba(246, 243, 240, .68);
    --mx-green: #16a067;
    --mx-wa: #25d366;

    --mx-grad: linear-gradient(135deg, var(--mx-orange) 0%, var(--mx-orange-2) 100%);
    --mx-grad-fire: linear-gradient(120deg, #ff3d00 0%, #ff7a1a 45%, #ffb547 100%);
    --mx-grad-ink: linear-gradient(160deg, #0b0d12 0%, #161b26 60%, #1f1510 100%);
    --mx-aurora:
        radial-gradient(60% 55% at 85% 10%, rgba(255, 91, 31, .38) 0%, transparent 60%),
        radial-gradient(45% 45% at 10% 30%, rgba(255, 181, 71, .20) 0%, transparent 65%),
        radial-gradient(50% 60% at 50% 110%, rgba(226, 64, 15, .28) 0%, transparent 70%);

    --mx-font: 'Tajawal', system-ui, sans-serif;
    --mx-font-display: 'Alexandria', 'Tajawal', system-ui, sans-serif;

    --mx-r-sm: 10px;
    --mx-r-md: 16px;
    --mx-r-lg: 24px;
    --mx-r-xl: 32px;

    --mx-shadow-sm: 0 2px 10px rgba(20, 14, 10, .05);
    --mx-shadow-md: 0 14px 36px rgba(20, 14, 10, .08);
    --mx-shadow-lg: 0 30px 80px rgba(20, 14, 10, .14);
    --mx-glow: 0 14px 40px rgba(255, 91, 31, .35);

    --mx-ease: cubic-bezier(.22, 1, .36, 1);
    --mx-header-h: 72px;
}

/* ── Type ─────────────────────────────────────────────────────────── */
.mx-display { font-family: var(--mx-font-display); font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.mx-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .38rem .9rem; border-radius: 999px;
    font-size: .8rem; font-weight: 800;
    color: var(--mx-orange); background: rgba(255, 91, 31, .09);
    border: 1px solid rgba(255, 91, 31, .18);
}
.mx-eyebrow--dark { color: #ffb08a; background: rgba(255, 91, 31, .12); border-color: rgba(255, 138, 61, .28); }
.mx-eyebrow .mx-pulse { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: mx-pulse 2s infinite; }
.mx-gradient-text { background: var(--mx-grad-fire); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mx-section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.mx-section-head h2 { font-family: var(--mx-font-display); font-weight: 800; font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin: 1rem 0 .75rem; color: var(--mx-text); }
.mx-section-head p { color: var(--mx-text-2); font-size: 1.05rem; line-height: 1.9; margin: 0; }

/* ── Buttons ──────────────────────────────────────────────────────── */
.mx-btn {
    --mx-btn-bg: var(--mx-grad);
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    min-height: 50px; padding: .8rem 1.5rem; border-radius: 14px; border: 0;
    font-family: var(--mx-font); font-weight: 800; font-size: 1rem; line-height: 1;
    color: #fff; background: var(--mx-btn-bg); text-decoration: none; cursor: pointer;
    box-shadow: var(--mx-glow); position: relative; overflow: hidden; isolation: isolate;
    transition: transform .35s var(--mx-ease), box-shadow .35s var(--mx-ease), background .35s;
}
.mx-btn::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
    transform: translateX(120%); transition: transform .8s var(--mx-ease);
}
.mx-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 20px 50px rgba(255, 91, 31, .45); }
.mx-btn:hover::after { transform: translateX(-120%); }
.mx-btn:focus-visible { outline: 3px solid rgba(255, 138, 61, .55); outline-offset: 3px; }
.mx-btn--ghost { background: rgba(255, 255, 255, .7); color: var(--mx-text); box-shadow: inset 0 0 0 1.5px var(--mx-line); backdrop-filter: blur(8px); }
.mx-btn--ghost:hover { color: var(--mx-orange); box-shadow: inset 0 0 0 1.5px rgba(255, 91, 31, .45), var(--mx-shadow-md); }
.mx-btn--glass { background: rgba(255, 255, 255, .08); color: var(--mx-on-dark); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); backdrop-filter: blur(10px); }
.mx-btn--glass:hover { background: rgba(255, 255, 255, .14); }
.mx-btn--dark { background: var(--mx-ink); box-shadow: 0 14px 36px rgba(11, 13, 18, .28); }
.mx-btn--wa { background: var(--mx-wa); box-shadow: 0 14px 36px rgba(37, 211, 102, .32); }
.mx-btn--sm { min-height: 40px; padding: .55rem 1rem; font-size: .9rem; border-radius: 12px; }
.mx-btn--lg { min-height: 58px; padding: 1rem 2rem; font-size: 1.08rem; border-radius: 16px; }
.mx-btn[disabled], .mx-btn.is-disabled { opacity: .55; pointer-events: none; box-shadow: none; }

/* ── Surfaces ─────────────────────────────────────────────────────── */
.mx-card {
    background: #fff; border: 1px solid var(--mx-line); border-radius: var(--mx-r-lg);
    box-shadow: var(--mx-shadow-sm);
    transition: transform .45s var(--mx-ease), box-shadow .45s var(--mx-ease), border-color .45s;
}
.mx-card--lift:hover { transform: translateY(-6px); box-shadow: var(--mx-shadow-lg); border-color: rgba(255, 91, 31, .25); }
.mx-glass {
    background: rgba(255, 255, 255, .06); border: 1px solid var(--mx-line-dark);
    border-radius: var(--mx-r-lg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.mx-glass--light { background: rgba(255, 255, 255, .72); border-color: rgba(255, 255, 255, .8); box-shadow: var(--mx-shadow-md); }
.mx-dark { background: var(--mx-grad-ink); color: var(--mx-on-dark); position: relative; overflow: hidden; }
.mx-dark::before { content: ""; position: absolute; inset: 0; background: var(--mx-aurora); pointer-events: none; }
.mx-grid-bg {
    background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.mx-icon {
    width: 52px; height: 52px; border-radius: 16px; flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem;
    color: #fff; background: var(--mx-grad); box-shadow: 0 10px 24px rgba(255, 91, 31, .3);
}
.mx-icon--soft { color: var(--mx-orange); background: rgba(255, 91, 31, .1); box-shadow: none; }

/* ── The five supported stores, as wordmarks ──────────────────────── */
.mx-store {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    height: 46px; padding: 0 1.1rem; border-radius: 14px;
    font-weight: 900; font-size: 1.05rem; letter-spacing: .01em; direction: ltr; white-space: nowrap;
    background: #fff; border: 1px solid var(--mx-line); color: var(--mx-text);
}
/* Store names are plain text in our own colours, never styled as the stores'
   logos: the site is not affiliated with them. The mx-store--* modifiers stay
   in the markup as hooks only. */

/* ── Scroll reveal (assets/js/site-2026.js adds .is-in) ───────────── */
.mx-reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--mx-ease), transform .9s var(--mx-ease); transition-delay: var(--mx-delay, 0s); }
.mx-reveal.is-in { opacity: 1; transform: none; }
.no-js .mx-reveal { opacity: 1; transform: none; }

@keyframes mx-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 91, 31, .55); } 70% { box-shadow: 0 0 0 10px rgba(255, 91, 31, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 91, 31, 0); } }
@keyframes mx-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes mx-spin { to { transform: rotate(360deg); } }
@keyframes mx-shine { to { background-position: 200% center; } }
@keyframes mx-fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .mx-reveal { opacity: 1; transform: none; }
}
