/* =====================================================================
   Riyadh Foundry — Design System
   Modern Industrial Corporate. RTL/LTR via CSS logical properties.
   ===================================================================== */

/* ----------------------------- Tokens ------------------------------ */
:root {
    /* Brand */
    --navy:        #1e306e;
    --navy-700:    #182659;
    --navy-900:    #101a3d;
    --blue:        #2fa5fb;
    --blue-600:    #1b8fe6;
    --amber:       #ffaa4a;
    --amber-600:   #f7951f;
    --sky:         #d2edf8;

    /* Neutrals */
    --ink:         #14181f;
    --slate:       #4a5568;
    --muted:       #7a8699;
    --line:        #e6e9f0;
    --bg:          #ffffff;
    --bg-soft:     #f5f7fb;
    --bg-softer:   #eef2f8;
    --white:       #ffffff;

    /* Status */
    --success:     #1faa59;
    --danger:      #e0413c;

    /* Type */
    --font:      'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-head: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    --font-ar:   'IBM Plex Sans Arabic', system-ui, 'Segoe UI', Tahoma, sans-serif;

    /* Layout */
    --maxw: 1180px;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(16,26,61,.05), 0 2px 8px rgba(16,26,61,.04);
    --shadow:    0 8px 30px rgba(16,26,61,.09);
    --shadow-lg: 0 24px 60px rgba(16,26,61,.14);
    --header-h: 70px;
    --ease: cubic-bezier(.22,.61,.36,1);
}

/* ----------------------------- Reset ------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.62;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; font-weight: 700; color: var(--navy-900); letter-spacing: -.018em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

/* Arabic uses a dedicated typeface (Space Grotesk has no Arabic glyphs) */
[lang="ar"] body, [dir="rtl"] { font-family: var(--font-ar); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4,
[dir="rtl"] .section-title, [dir="rtl"] .btn, [dir="rtl"] .hero h1,
[dir="rtl"] .num, [dir="rtl"] .stat-band .n, [dir="rtl"] .hero__stats .num { font-family: var(--font-ar); letter-spacing: 0; }

/* --------------------------- Utilities ----------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy-900); color: #dfe6f5; }
.center { text-align: center; }
.grid { display: grid; gap: 28px; }
.flex { display: flex; }
.hidden { display: none !important; }
.text-amber { color: var(--amber-600); }

.kicker {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: var(--font-head); font-weight: 600; font-size: .74rem; letter-spacing: .16em;
    text-transform: uppercase; color: var(--blue-600);
    margin-bottom: 14px;
}
[dir="rtl"] .kicker { font-family: var(--font-ar); letter-spacing: .04em; }
.kicker::before { content: ""; width: 24px; height: 2px; background: var(--amber); }
.section-head { max-width: 680px; margin-bottom: 42px; }
.section-head.center { margin-inline: auto; }
.section-title { font-size: clamp(1.4rem, 2.6vw, 2.05rem); font-weight: 700; }
.section-sub { color: var(--slate); margin-top: 14px; font-size: .98rem; }

/* ----------------------------- Buttons ----------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 12px 24px; border-radius: 10px; font-weight: 600; font-size: .9rem; font-family: var(--font-head);
    letter-spacing: -.01em;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, color .18s;
    white-space: nowrap; line-height: 1;
}
[dir="rtl"] .btn { font-family: var(--font-ar); letter-spacing: 0; }
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--amber); color: var(--navy-900); box-shadow: 0 8px 20px rgba(247,149,31,.28); }
.btn--primary:hover { background: var(--amber-600); transform: translateY(-2px); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-700); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--sky); }
.btn--block { width: 100%; }
.btn--sm { padding: 10px 18px; font-size: .88rem; }

/* arrow flips automatically in RTL */
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
[dir="rtl"] .btn .arrow { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(3px); }

/* ============================== HEADER ============================== */
.topbar {
    background: var(--navy-900); color: #c9d3ec; font-size: .85rem;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: 16px; }
.topbar a { color: #c9d3ec; transition: color .15s; }
.topbar a:hover { color: #fff; }
.topbar__contact { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar__contact span { display: inline-flex; align-items: center; gap: 7px; }
.topbar__social { display: flex; gap: 14px; }
.topbar__social svg { width: 16px; height: 16px; }

.site-header {
    position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92);
    backdrop-filter: saturate(160%) blur(8px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .2s, background .2s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 46px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text b { color: var(--navy-900); font-size: 1.02rem; font-weight: 800; }
.brand__text span { color: var(--muted); font-size: .72rem; }

.menu { display: flex; align-items: center; gap: 4px; }
.menu-cta { display: none; }
.menu > li > a {
    display: inline-flex; align-items: center; gap: 6px; padding: 9px 13px;
    font-weight: 500; font-size: .89rem; color: var(--ink); border-radius: 8px;
    position: relative; transition: color .15s, background .15s;
}
.menu > li > a:hover { color: var(--navy); background: var(--bg-soft); }
.menu > li > a.is-active { color: var(--navy); }
.menu > li > a.is-active::after {
    content: ""; position: absolute; inset-inline: 14px; bottom: 2px; height: 2px;
    background: var(--amber); border-radius: 2px;
}

/* Mega / dropdown */
.has-mega { position: relative; }
.mega {
    position: absolute; inset-inline-start: 0; top: calc(100% + 8px);
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); padding: 18px; width: 540px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega a {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
    transition: background .15s;
}
.mega a:hover { background: var(--bg-soft); }
.mega a img { width: 38px; height: 38px; object-fit: contain; }
.mega a b { font-size: .92rem; color: var(--navy-900); font-weight: 700; }
.mega a small { display: block; color: var(--muted); font-size: .78rem; }

.nav__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lang-switch {
    display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px;
    border: 1.5px solid var(--line); border-radius: 999px; font-weight: 700; font-size: .85rem;
    transition: border-color .15s, background .15s;
}
.lang-switch:hover { border-color: var(--navy); background: var(--bg-soft); }
.lang-switch svg { width: 16px; height: 16px; }

.burger { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1.5px solid var(--line); }
.burger span, .burger span::before, .burger span::after {
    content: ""; display: block; width: 20px; height: 2px; background: var(--navy-900);
    margin-inline: auto; position: relative; transition: .2s;
}
.burger span::before { position: absolute; top: -6px; }
.burger span::after { position: absolute; top: 6px; }
body.menu-open .burger span { background: transparent; }
body.menu-open .burger span::before { transform: rotate(45deg); top: 0; }
body.menu-open .burger span::after { transform: rotate(-45deg); top: 0; }

/* ============================== HERO =============================== */
.hero {
    position: relative; color: #fff; overflow: hidden;
    background:
        linear-gradient(115deg, rgba(16,26,61,.94) 0%, rgba(30,48,110,.86) 55%, rgba(27,143,230,.55) 100%),
        var(--navy-900);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }

/* Crossfading background slideshow (5 slides × 6s = 30s loop) */
.hero__slide {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transform: scale(1.08);
    animation: heroSlide 30s linear infinite;
}
.hero__slide:nth-child(1) { animation-delay: 0s; }
.hero__slide:nth-child(2) { animation-delay: 6s; }
.hero__slide:nth-child(3) { animation-delay: 12s; }
.hero__slide:nth-child(4) { animation-delay: 18s; }
.hero__slide:nth-child(5) { animation-delay: 24s; }
@keyframes heroSlide {
    0%   { opacity: 0; transform: scale(1.08); }
    4%   { opacity: .34; }
    18%  { opacity: .34; transform: scale(1.16); }
    23%  { opacity: 0;  transform: scale(1.17); }
    100% { opacity: 0; }
}
/* clean depth vignette (no busy grid) */
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(125% 95% at 72% 18%, transparent 42%, rgba(8,14,35,.5));
}
.hero .container { position: relative; z-index: 1; padding-block: clamp(58px, 9vw, 116px); }
.hero__inner { max-width: 700px; }
.hero__tag {
    display: inline-flex; align-items: center; gap: 9px; background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.16); padding: 7px 15px; border-radius: 999px;
    font-weight: 500; font-size: .78rem; letter-spacing: .04em; margin-bottom: 20px;
}
.hero__tag b { color: var(--amber); font-family: var(--font-head); }
.hero h1 { color: #fff; font-size: clamp(1.75rem, 3.8vw, 2.75rem); line-height: 1.1; letter-spacing: -.025em; }
.hero p { margin-top: 18px; font-size: 1.02rem; color: #d2dbf0; max-width: 580px; }
.hero__actions { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero__stats {
    display: flex; gap: 36px; margin-top: 46px; flex-wrap: wrap;
    padding-top: 28px; border-top: 1px solid rgba(255,255,255,.14);
}
.hero__stats .num { font-size: 1.7rem; font-weight: 700; color: #fff; font-family: var(--font-head); }
.hero__stats .num b { color: var(--amber); }
.hero__stats .lbl { color: #aeb9d6; font-size: .85rem; }

/* ============================== CARDS ============================== */
.cards { display: grid; gap: 26px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }

/* Category card */
.cat-card {
    position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
    display: flex; flex-direction: column;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.cat-card__media {
    aspect-ratio: 4/3; display: grid; place-items: center; padding: 30px; position: relative; overflow: hidden;
    background:
        radial-gradient(80% 70% at 82% 8%, rgba(47,165,251,.42), transparent 55%),
        linear-gradient(155deg, var(--navy) 0%, var(--navy-900) 78%);
}
.cat-card__media img { max-height: 60%; object-fit: contain; position: relative; z-index: 1; filter: brightness(0) invert(1); opacity: .95; transition: transform .35s var(--ease); }
.cat-card:hover .cat-card__media img { transform: scale(1.06); }
.cat-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cat-card__body h3 { font-size: 1.1rem; }
.cat-card__link {
    margin-top: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--blue-600);
    font-weight: 700; font-size: .92rem;
}
[dir="rtl"] .cat-card__link .arrow { transform: scaleX(-1); }

/* Product card */
.prod-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    display: flex; flex-direction: column; transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.prod-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.prod-card__media { aspect-ratio: 1/1; background: var(--bg-softer); display: grid; place-items: center; padding: 22px; }
.prod-card__media img { max-height: 100%; object-fit: contain; }
.prod-card__cat { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--blue-600); font-weight: 700; }
.prod-card__body { padding: 18px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.prod-card__body h3 { font-size: 1.05rem; }
.prod-card__model { font-size: .85rem; color: var(--muted); }
.prod-card__actions { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 10px; }
.prod-card__actions .btn { width: 100%; min-width: 0; }

/* Feature / value card */
.feature {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature__icon {
    width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
    background: var(--sky); color: var(--navy); margin-bottom: 18px;
}
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature p { color: var(--slate); font-size: .96rem; }

/* ============================ DOWNLOADS ============================ */
.dl-group { margin-bottom: 46px; }
.dl-group__head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.dl-group__head h2 { font-size: 1.4rem; }
.dl-group__head .count { color: var(--muted); font-weight: 600; font-size: .9rem; }
.dl-card {
    display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 18px; transition: box-shadow .2s, transform .2s, border-color .2s;
}
.dl-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.dl-card__icon {
    flex-shrink: 0; width: 58px; height: 58px; border-radius: 12px; display: grid; place-items: center;
    background: #fdecec; color: #d8403a; font-weight: 800; font-size: .72rem; position: relative;
    overflow: hidden;
}
.dl-card__icon img { width: 100%; height: 100%; object-fit: cover; }
.dl-card__main { flex: 1; min-width: 0; }
.dl-card__main h3 { font-size: 1.02rem; }
.dl-card__meta { color: var(--muted); font-size: .82rem; margin-top: 3px; }
.dl-card__main p { color: var(--slate); font-size: .88rem; margin-top: 4px; }
.dl-card .btn { flex-shrink: 0; }

/* ============================= FORMS ============================== */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; color: var(--ink); }
.field .req { color: var(--danger); }
.field .opt { color: var(--muted); font-weight: 500; font-size: .82rem; }
.input, .textarea, .select {
    width: 100%; padding: 12px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    background: #fff; transition: border-color .15s, box-shadow .15s; font-size: .96rem;
}
.input:focus, .textarea:focus, .select:focus {
    outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,165,251,.15);
}
.textarea { min-height: 130px; resize: vertical; }
.field.has-error .input, .field.has-error .textarea, .field.has-error .select { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: .82rem; margin-top: 6px; display: none; }
.field.has-error .err { display: block; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: var(--slate); }
.check input { margin-top: 4px; width: 17px; height: 17px; flex-shrink: 0; accent-color: var(--navy); }
.form-note { font-size: .82rem; color: var(--muted); margin-bottom: 18px; }

.alert { padding: 13px 16px; border-radius: var(--radius-sm); font-size: .92rem; margin-bottom: 16px; display: none; }
.alert--success { background: #e8f7ee; color: #15703c; border: 1px solid #b9e6c9; }
.alert--error { background: #fdecec; color: #b3322d; border: 1px solid #f3c6c4; }
.alert.show { display: block; }

/* honeypot */
.hp { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; width: 0; }

/* spinner */
.spinner {
    width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff;
    border-radius: 50%; animation: spin .7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================== MODAL ============================== */
.modal {
    position: fixed; inset: 0; z-index: 1000; display: none;
    align-items: center; justify-content: center; padding: 20px;
}
.modal.open { display: flex; }
.modal__overlay { position: absolute; inset: 0; background: rgba(16,26,61,.6); backdrop-filter: blur(3px); animation: fade .2s; }
.modal__box {
    position: relative; background: #fff; border-radius: 18px; width: 100%; max-width: 520px;
    max-height: 92vh; overflow-y: auto; box-shadow: var(--shadow-lg); animation: pop .25s var(--ease);
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.modal__head { padding: 24px 26px 0; }
.modal__head h3 { font-size: 1.3rem; }
.modal__head p { color: var(--slate); font-size: .92rem; margin-top: 6px; }
.modal__file {
    display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 11px 14px;
    background: var(--bg-soft); border-radius: 10px; font-weight: 600; font-size: .9rem; color: var(--navy);
}
.modal__file svg { width: 20px; height: 20px; color: #d8403a; flex-shrink: 0; }
.modal__body { padding: 20px 26px 26px; }
.modal__close {
    position: absolute; inset-inline-end: 16px; top: 16px; width: 36px; height: 36px; border-radius: 50%;
    display: grid; place-items: center; background: var(--bg-soft); color: var(--slate); font-size: 1.2rem;
    transition: background .15s;
}
.modal__close:hover { background: var(--line); }

/* ============================== TIMELINE ============================== */
.timeline { position: relative; display: grid; gap: 0; }
.timeline::before {
    content: ""; position: absolute; inset-block: 0; inset-inline-start: 13px; width: 2px;
    background: linear-gradient(var(--blue), var(--sky));
}
.tl-item { position: relative; padding-inline-start: 48px; padding-block: 14px; }
.tl-item::before {
    content: ""; position: absolute; inset-inline-start: 6px; top: 22px; width: 16px; height: 16px;
    border-radius: 50%; background: #fff; border: 3px solid var(--blue); box-shadow: 0 0 0 4px var(--sky);
}
.tl-item .yr { font-weight: 800; color: var(--navy); font-size: 1.05rem; }
.tl-item h4 { color: var(--navy-900); margin: 2px 0 6px; font-size: 1.1rem; }
.tl-item p { color: var(--slate); font-size: .96rem; }

/* ============================ REGIONS ============================== */
.region-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.region-pill {
    display: inline-flex; align-items: center; gap: 9px; padding: 11px 20px; border-radius: 999px;
    background: #fff; border: 1px solid var(--line); font-weight: 600; transition: .2s;
}
.region-pill:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.region-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }

/* ============================ PAGE HEAD ============================ */
.page-hero {
    background: linear-gradient(120deg, var(--navy-900), var(--navy)); color: #fff; position: relative;
    overflow: hidden;
}
.page-hero::after {
    content: ""; position: absolute; inset-inline-end: -80px; top: -80px; width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(47,165,251,.4), transparent 70%); border-radius: 50%;
}
.page-hero .container { position: relative; z-index: 1; padding-block: clamp(44px, 6vw, 76px); }
.page-hero h1 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -.02em; }
.page-hero p { color: #c6d0ea; margin-top: 12px; max-width: 640px; font-size: .98rem; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: #aab6d6; margin-bottom: 16px; }
.crumbs a:hover { color: #fff; }
.crumbs span { opacity: .6; }

/* ========================= MISC SECTIONS ========================== */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.prose p { color: var(--slate); margin-bottom: 16px; }
.prose h2 { margin: 30px 0 14px; font-size: 1.5rem; }
.prose h3 { margin: 22px 0 10px; font-size: 1.2rem; }
.prose ul { margin: 0 0 16px; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-inline-start: 26px; color: var(--slate); }
.prose ul li::before {
    content: ""; position: absolute; inset-inline-start: 0; top: 9px; width: 8px; height: 8px;
    border-radius: 2px; background: var(--amber);
}

.mvv { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.mvv-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.mvv-card .feature__icon { background: var(--navy); color: var(--amber); }

.stat-band { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.stat-band .stat { text-align: center; }
.stat-band .stat .n { font-size: clamp(2rem,4vw,2.8rem); font-weight: 800; color: var(--amber); }
.stat-band .stat .l { color: #c2cce4; margin-top: 4px; font-weight: 600; }

.cta-band {
    background: linear-gradient(115deg, var(--navy), var(--blue-600)); border-radius: 22px; color: #fff;
    padding: clamp(36px, 6vw, 64px); display: flex; align-items: center; justify-content: space-between;
    gap: 30px; flex-wrap: wrap; position: relative; overflow: hidden;
}
.cta-band::before {
    content: ""; position: absolute; inset-inline-end: -60px; bottom: -60px; width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(255,170,74,.5), transparent 70%); border-radius: 50%;
}
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); position: relative; z-index: 1; }
.cta-band p { color: #dfe7f8; margin-top: 8px; max-width: 520px; position: relative; z-index: 1; }
.cta-band .btn { position: relative; z-index: 1; }

/* spec table */
.spec-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-table th, .spec-table td { padding: 13px 18px; text-align: start; border-bottom: 1px solid var(--line); }
.spec-table th { background: var(--bg-soft); font-weight: 700; color: var(--navy-900); width: 45%; }
.spec-table tr:last-child td, .spec-table tr:last-child th { border-bottom: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.chip {
    padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
    font-weight: 600; font-size: .9rem; transition: .18s; color: var(--slate);
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }

.subcat-title { font-size: 1.25rem; color: var(--navy-900); margin: 36px 0 18px; padding-bottom: 10px; border-bottom: 2px solid var(--bg-softer); }
.subcat-title:first-child { margin-top: 0; }

/* ============================== FOOTER ============================= */
.site-footer { background: var(--navy-900); color: #aeb9d6; padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 50px; }
.footer-brand img { height: 50px; margin-bottom: 18px; }
.footer-brand p { font-size: .92rem; line-height: 1.7; max-width: 320px; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
    width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid;
    place-items: center; transition: background .15s, transform .15s;
}
.footer-social a:hover { background: var(--amber); color: var(--navy-900); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { font-size: .92rem; transition: color .15s, padding .15s; }
.footer-col a:hover { color: #fff; padding-inline-start: 4px; }
.footer-contact li { display: flex; gap: 11px; font-size: .92rem; margin-bottom: 13px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--amber); flex-shrink: 0; margin-top: 3px; }
.footer-news .input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #fff; }
.footer-news .input::placeholder { color: #8090b5; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1); padding-block: 22px; display: flex;
    justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .86rem;
}
.footer-bottom a:hover { color: #fff; }

/* WhatsApp float */
.wa-float {
    position: fixed; inset-block-end: 22px; inset-inline-end: 22px; z-index: 90; width: 56px; height: 56px;
    border-radius: 50%; background: #25d366; display: grid; place-items: center; color: #fff;
    box-shadow: 0 8px 24px rgba(37,211,102,.45); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ========================== ANIMATIONS ============================= */
[data-animate] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); will-change: opacity, transform; }
[data-animate].in { opacity: 1; transform: none; }
[data-animate="zoom"] { transform: scale(.94); }
[data-animate="left"] { transform: translateX(-28px); }
[data-animate="right"] { transform: translateX(28px); }
[dir="rtl"] [data-animate="left"] { transform: translateX(28px); }
[dir="rtl"] [data-animate="right"] { transform: translateX(-28px); }

/* Hero content entrance on load */
.hero__inner > * { opacity: 0; transform: translateY(20px); animation: heroUp .8s var(--ease) forwards; }
.hero__inner > *:nth-child(1){ animation-delay:.05s } .hero__inner > *:nth-child(2){ animation-delay:.15s }
.hero__inner > *:nth-child(3){ animation-delay:.25s } .hero__inner > *:nth-child(4){ animation-delay:.35s }
.hero__inner > *:nth-child(5){ animation-delay:.45s }
@keyframes heroUp { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    [data-animate], .hero__inner > * { opacity: 1 !important; transform: none !important; transition: none; animation: none; }
    .hero__slide { animation: none; opacity: 0; transform: none; }
    .hero__slide:first-child { opacity: .34; }
    html { scroll-behavior: auto; }
}

/* Hero scroll cue */
.hero__cue {
    position: absolute; inset-inline: 0; bottom: 18px; z-index: 1; display: flex; justify-content: center;
    color: rgba(255,255,255,.6);
}
.hero__cue span { width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.35); border-radius: 14px; position: relative; }
.hero__cue span::after { content: ""; position: absolute; inset-inline: 0; top: 8px; margin-inline: auto; width: 4px; height: 8px; background: var(--amber); border-radius: 2px; animation: cue 1.6s var(--ease) infinite; }
@keyframes cue { 0%{opacity:0;transform:translateY(0)} 40%{opacity:1} 80%{opacity:0;transform:translateY(12px)} 100%{opacity:0} }

/* (CTA band kept calm/static for a cleaner, professional feel) */

/* =========================== RESPONSIVE =========================== */
@media (max-width: 1024px) {
    .cards--4 { grid-template-columns: repeat(3,1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .split { gap: 36px; }
}
@media (max-width: 860px) {
    :root { --header-h: 64px; }
    .topbar { display: none; }
    /* backdrop-filter creates a containing block for fixed children — disable it
       on mobile so the slide-in .menu is positioned relative to the viewport */
    .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
    .burger { display: grid; place-content: center; }
    .menu {
        position: fixed; top: var(--header-h); bottom: 0; right: 0; left: auto; width: min(82vw, 340px);
        background: #fff; flex-direction: column; align-items: stretch; gap: 2px; padding: 18px;
        box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .28s var(--ease);
        overflow-y: auto; z-index: 99;
    }
    [dir="rtl"] .menu { right: auto; left: 0; transform: translateX(-100%); }
    body.menu-open .menu { transform: translateX(0); }
    .menu > li > a { padding: 14px 12px; font-size: 1.02rem; border-radius: 10px; }
    .menu > li > a.is-active::after { display: none; }
    .menu > li > a.is-active { background: var(--bg-soft); }
    .mega { position: static; width: auto; box-shadow: none; border: 0; padding: 4px 0 4px 12px; opacity: 1; visibility: visible; transform: none; grid-template-columns: 1fr; }
    .nav__actions .btn--primary, .nav__actions .btn--navy { display: none; }
    .nav__actions { gap: 8px; }
    .lang-switch { padding: 8px 11px; font-size: .8rem; }
    .brand img { height: 38px; }
    .menu-cta { display: block; margin-top: 14px; padding: 0 4px; }
    .menu-cta a { font-size: 1rem; padding: 14px; }
    .cards--3, .cards--4, .cards--2 { grid-template-columns: repeat(2,1fr); }
    .split { grid-template-columns: 1fr; }
    .split .split__media { order: -1; }
    .mvv { grid-template-columns: 1fr; }
    .stat-band { grid-template-columns: repeat(2,1fr); }
    .form-grid { grid-template-columns: 1fr; }
    .cta-band { flex-direction: column; text-align: center; align-items: stretch; }
    .footer-bottom { justify-content: center; text-align: center; }
}
@media (max-width: 560px) {
    .cards--3, .cards--4, .cards--2 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero__stats { gap: 26px; }
    .brand__text span { display: none; }
    .dl-card { flex-wrap: wrap; }
    .dl-card .btn { width: 100%; }
}

/* =================== Premium polish (v2) =================== */
.menu > li > a { letter-spacing: .005em; }
.prod-card__media img, .cat-card__media img { transition: transform .45s var(--ease); }
.prod-card:hover .prod-card__media img { transform: scale(1.05); }

/* thin gradient accent that grows on hover */
.feature, .cat-card, .prod-card, .dl-card { position: relative; }
/* (removed multi-color hover bars for a cleaner, simpler look) */

/* refined kicker + section titles */
.section-title { text-wrap: balance; }
.hero h1, .page-hero h1 { text-wrap: balance; }

/* chips a touch tighter/stronger */
.chip { font-family: var(--font-head); font-weight: 600; }
[dir="rtl"] .chip { font-family: var(--font-ar); }

/* spec table heading font */
.spec-table th { font-family: var(--font-head); }
[dir="rtl"] .spec-table th { font-family: var(--font-ar); }

/* stat numbers in display face */
.stat-band .stat .n { font-family: var(--font-head); }

/* smoother sticky header height */
.site-header.is-scrolled { background: rgba(255,255,255,.96); }

/* nicer mega menu items */
.mega a b { font-family: var(--font-head); font-weight: 600; }
[dir="rtl"] .mega a b { font-family: var(--font-ar); }

/* =================== Premium polish (v3) =================== */
.framed-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }

/* refined product placeholders (cards without a real photo) */
.prod-card__media.is-ph { background: linear-gradient(155deg, #eaf1fb 0%, #f5f9fd 100%); }
.prod-card__media.is-ph img { max-height: 60%; opacity: .82; }

/* section titles: subtle gradient underline accent for centered heads */
.section-head.center .section-title { position: relative; display: inline-block; padding-bottom: 14px; }
.section-head.center .section-title::after {
    content: ""; position: absolute; inset-inline: 0; bottom: 0; margin-inline: auto; width: 54px; height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--amber)); border-radius: 3px;
}

/* =================== Product detail =================== */
.pd-top { gap: 48px; }
.pd-gallery { display: flex; flex-direction: column; gap: 14px; }
.pd-stage { background: var(--bg-softer); border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 1/1; display: grid; place-items: center; padding: 40px; }
.pd-stage.is-ph { background: linear-gradient(155deg,#eaf1fb,#f5f9fd); }
.pd-stage img { max-height: 100%; max-width: 100%; object-fit: contain; }
.pd-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-thumb { width: 72px; height: 72px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg-softer); padding: 8px; cursor: pointer; transition: border-color .15s, transform .15s; }
.pd-thumb:hover { transform: translateY(-2px); }
.pd-thumb.active { border-color: var(--blue); }
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pd-title { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 6px 0 6px; letter-spacing: -.02em; }
.pd-model { color: var(--muted); font-weight: 500; }
.pd-model b { color: var(--navy); }
.pd-detail .pd-h { font-size: 1.15rem; color: var(--navy-900); margin: 30px 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--bg-softer); }
.pd-detail .pd-h:first-child { margin-top: 0; }

/* product detail blocks merged into the same section */
.pd-detail-wrap { margin-top: 52px; }
.pd-detail { max-width: 940px; }

/* compact specs list under the buttons (keeps the product page short) */
.pd-specs { margin-top: 30px; }
.pd-specs .pd-h { margin: 0 0 6px; font-size: 1.05rem; border: 0; padding: 0; }
.spec-list { border-top: 1px solid var(--line); }
.spec-list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.spec-list dt { color: var(--muted); font-size: .92rem; }
.spec-list dd { font-weight: 700; color: var(--navy-900); font-size: .95rem; text-align: end; }

/* regions map on home */
.regions-map{display:block;width:100%;max-width:820px;height:auto;margin:0 auto 30px;border-radius:var(--radius)}

/* footer logo: same full logo as header, original colors */
.footer-logo{width:200px;max-width:85%;height:auto;margin-bottom:18px}

/* Quality process: image beside compact boxes */
.qp-split{gap:42px}
.qp-image{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px;display:grid;place-items:center}
.qp-image img{max-width:100%;height:auto}
.qp-boxes{display:grid;gap:16px}
.qp-box{padding:18px 20px}
.qp-box h3{margin-bottom:10px;color:var(--navy);font-size:1.02rem}
.qp-list{display:grid;gap:7px}
.qp-list li{font-size:.9rem;padding-inline-start:22px}
.qp-list li::before{top:8px;width:7px;height:7px}

/* small kicker placed UNDER the big title (full-width so it drops to its own line) */
.kicker--sub{margin-bottom:0;margin-top:14px;display:flex;justify-content:center;width:100%}

/* rich blog article body */
.blog-body h1{font-size:1.55rem;margin:26px 0 12px}
.blog-body h2{font-size:1.3rem;margin:24px 0 10px}
.blog-body h3{font-size:1.12rem;margin:20px 0 8px}
.blog-body a{color:var(--blue-600);text-decoration:underline}
.blog-body img{max-width:100%;height:auto;border-radius:var(--radius);margin:16px 0}
.blog-body ul,.blog-body ol{margin:0 0 16px;padding-inline-start:22px}
.blog-body ol{list-style:decimal}
.blog-body li{color:var(--slate);margin-bottom:6px}
.blog-body blockquote{border-inline-start:3px solid var(--amber);padding-inline-start:16px;color:var(--slate);margin:16px 0;font-style:italic}

/* products search box */
.products-search{position:relative;max-width:460px;margin:0 auto 26px}
.products-search svg{position:absolute;inset-inline-start:16px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:var(--muted);pointer-events:none}
.products-search input{width:100%;padding:13px 46px;border:1.5px solid var(--line);border-radius:999px;font-family:inherit;font-size:.95rem;background:#fff;transition:border-color .15s,box-shadow .15s}
.products-search input:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px rgba(47,165,251,.15)}
