/* ==========================================================================
   Najah Al-Omran — site styles
   Brand: navy #0b2149 · red #d7261e · warm off-white #f7f5f1
   ========================================================================== */

:root {
  --navy: #0b2149;
  --navy-2: #12305f;
  --navy-3: #1a3c73;
  --red: #d7261e;
  --red-2: #b81d16;
  --paper: #f7f5f1;
  --paper-2: #efebe4;
  --white: #ffffff;
  --ink: #0e1a2e;
  --ink-2: #44506a;
  --ink-3: #6f7a90;
  --line: #e2ddd4;
  --line-dark: rgba(255, 255, 255, .12);

  --f-head: "Archivo", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-body: "Inter", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(11, 33, 73, .06), 0 2px 8px rgba(11, 33, 73, .05);
  --shadow: 0 10px 30px -10px rgba(11, 33, 73, .18), 0 4px 10px -4px rgba(11, 33, 73, .08);
  --shadow-lg: 0 30px 60px -20px rgba(11, 33, 73, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
  --gutter: clamp(16px, 4vw, 40px);
}

html[lang="ar"] {
  --f-head: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-body: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-mono: "IBM Plex Sans Arabic", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.1; margin: 0; letter-spacing: -.02em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { letter-spacing: 0; line-height: 1.3; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }

.ic {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
[dir="rtl"] .ic.flip { transform: scaleX(-1); }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--red); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--navy); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .8em 1.35em; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: .95rem; line-height: 1.2; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { --bg: var(--red); box-shadow: 0 8px 20px -8px rgba(215, 38, 30, .7); }
.btn--primary:hover { --bg: var(--red-2); box-shadow: 0 14px 28px -10px rgba(215, 38, 30, .75); }
.btn--ghost { --bg: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .28); backdrop-filter: blur(6px); }
.btn--ghost:hover { --bg: rgba(255, 255, 255, .16); }
.btn--outline { --bg: transparent; --fg: var(--navy); border-color: var(--navy); }
.btn--outline:hover { --bg: var(--navy); --fg: #fff; }
.btn--light { --bg: #fff; --fg: var(--navy); }
.btn--sm { padding: .6em 1.05em; font-size: .875rem; }
.btn--lg { padding: 1em 1.6em; font-size: 1rem; }

.link { color: var(--red); font-weight: 600; border-bottom: 1.5px solid currentColor; }

/* ---------- Eyebrow & headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--f-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); margin-bottom: 1.1rem; font-weight: 500;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .92rem; font-weight: 600; }
.eyebrow .num { display: inline-grid; place-items: center; min-width: 2.4em; height: 1.9em; padding: 0 .5em; border-radius: 6px; background: var(--red); color: #fff; letter-spacing: 0; font-family: "JetBrains Mono", monospace; }
.eyebrow--light { color: #fff; }
.eyebrow--light .ic { color: var(--red); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(215, 38, 30, .25); }
.h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; color: var(--navy); margin-bottom: 1.2rem; }
.section--navy .h2, .download .h2 { color: #fff; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background .3s, box-shadow .3s, height .3s;
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; background: #fff; padding: 6px 12px; border-radius: 12px; transition: box-shadow .3s; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  position: relative; padding: 8px 14px; border-radius: 999px;
  font-size: .92rem; font-weight: 500; color: rgba(255, 255, 255, .85); transition: color .2s, background .2s;
}
.nav a:not(.btn):hover, .nav a.is-active { color: #fff; background: rgba(255, 255, 255, .1); }
.nav__cta-mobile { display: none; }
.header__actions { display: flex; align-items: center; gap: 10px; }
.lang {
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px; min-width: 56px; padding: 0 12px; border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, .3); background: transparent; color: #fff;
  font-weight: 600; font-size: .9rem; transition: background .2s, border-color .2s, color .2s;
}
.lang__ar { font-family: "IBM Plex Sans Arabic", sans-serif; }
.lang__en, html[lang="ar"] .lang__ar { display: none; }
html[lang="ar"] .lang__en { display: inline; }
.lang:hover { background: rgba(255, 255, 255, .12); }

.header.is-scrolled { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(11, 33, 73, .35); }
.header.is-scrolled .nav a:not(.btn) { color: var(--ink-2); }
.header.is-scrolled .nav a:not(.btn):hover, .header.is-scrolled .nav a.is-active { color: var(--navy); background: var(--paper-2); }
.header.is-scrolled .lang { color: var(--navy); border-color: var(--line); }
.header.is-scrolled .lang:hover { background: var(--paper-2); }
.header.is-scrolled .burger span { background: var(--navy); }
.header.is-scrolled .brand { padding-inline: 0; }

.burger { display: none; width: 42px; height: 42px; border: 0; background: transparent; padding: 10px; flex-direction: column; justify-content: center; gap: 5px; }
.burger span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(1200px 600px at 85% 10%, var(--navy-3), transparent 60%), var(--navy);
  color: #fff;
  padding: calc(var(--header-h) + clamp(40px, 7vw, 90px)) 0 clamp(60px, 8vw, 110px);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__slash { position: absolute; background: var(--red); transform-origin: center; }
.hero__slash--1 { width: 140%; height: 90px; bottom: -40px; inset-inline-start: -20%; transform: rotate(-4deg); }
.hero__slash--2 { width: 12px; height: 160%; top: -30%; inset-inline-end: 36%; transform: rotate(18deg); opacity: .12; }
[dir="rtl"] .hero__slash--1 { transform: rotate(4deg); }
[dir="rtl"] .hero__slash--2 { transform: rotate(-18deg); }
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%);
}
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero__title { font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 800; line-height: 1.02; margin-bottom: 1.4rem; letter-spacing: -.035em; }
html[lang="ar"] .hero__title { line-height: 1.25; font-weight: 700; }
.hero__title em { font-style: normal; color: var(--red); position: relative; }
.hero__lead { font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: rgba(255, 255, 255, .78); max-width: 56ch; margin-bottom: 2rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 3rem; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; border-top: 1px solid var(--line-dark); }
.stats > div { padding: 18px 16px 0 0; border-inline-end: 1px solid var(--line-dark); padding-inline: 0 16px; }
.stats > div + div { padding-inline-start: 18px; }
.stats > div:last-child { border: 0; }
.stats dt { font-family: "Archivo", sans-serif; font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; color: #fff; line-height: 1.1; }
.stats dd { margin: 4px 0 0; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
html[lang="ar"] .stats dd { letter-spacing: 0; font-size: .85rem; }

.hero__visual { position: relative; }
.hero__photo { margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg); outline: 1px solid rgba(255,255,255,.12); outline-offset: 10px; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; transform: scale(1.02); }
.chip {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: #fff; color: var(--ink); padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.chip .ic { width: 38px; height: 38px; padding: 8px; border-radius: 10px; background: #fdecea; color: var(--red); }
.chip strong { display: block; font-size: .9rem; color: var(--navy); line-height: 1.2; }
.chip small { color: var(--ink-3); font-size: .78rem; }
.chip--a { top: 12%; inset-inline-start: -14%; }
.chip--b { bottom: 10%; inset-inline-end: -8%; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Marquee ---------- */
.marquee { background: var(--red); color: #fff; overflow: hidden; padding: 16px 0; position: relative; z-index: 2; }
.marquee__track { display: flex; width: max-content; gap: 48px; animation: marquee 40s linear infinite; }
[dir="rtl"] .marquee__track { animation-name: marquee-rtl; }
.marquee__track span { display: inline-flex; align-items: center; gap: 48px; font-family: var(--f-head); font-weight: 700; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
html[lang="ar"] .marquee__track span { letter-spacing: 0; }
.marquee__track span::after { content: ""; width: 10px; height: 10px; background: #fff; transform: rotate(45deg); opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 130px) 0; position: relative; }
.section--tint { background: var(--paper-2); }
.section--navy { background: var(--navy); color: rgba(255, 255, 255, .8); }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 60px; align-items: end; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head .h2 { margin-bottom: 0; }
.sec-head__lead { color: var(--ink-2); margin: 0; max-width: 52ch; }
.sec-head--center { grid-template-columns: 1fr; text-align: center; justify-items: center; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.about__media { position: sticky; top: calc(var(--header-h) + 40px); margin-top: 18px; }
.about__media { position: relative; }
.about__media img { border-radius: var(--radius); aspect-ratio: 1 / 1; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.about__media::before {
  content: ""; position: absolute; inset: -18px auto auto -18px; width: 55%; height: 60%;
  border: 2px solid var(--red); border-radius: var(--radius); z-index: -1;
}
[dir="rtl"] .about__media::before { inset: -18px -18px auto auto; }
.about__badge {
  position: absolute; inset-inline-end: -20px; bottom: -28px;
  background: var(--navy); color: #fff; padding: 20px 26px; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  border-bottom: 4px solid var(--red);
}
.about__badge strong { display: block; font-family: "Archivo", sans-serif; font-size: 2.4rem; line-height: 1; font-weight: 800; }
.about__badge span { font-size: .82rem; color: rgba(255,255,255,.7); }
.about__copy > p { color: var(--ink-2); }
.pillars { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 14px; }
.pillars li { display: flex; gap: 16px; align-items: flex-start; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.pillars li:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pillars__ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: #fdecea; color: var(--red); flex: none; }
.pillars__ic .ic { width: 24px; height: 24px; }
.pillars h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 4px; }
.pillars p { margin: 0; color: var(--ink-3); font-size: .93rem; }

/* ---------- Vision / Mission ---------- */
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.vm__card {
  position: relative; overflow: hidden; padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line-dark); border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,0));
}
.vm__num { position: absolute; top: 10px; inset-inline-end: 24px; font-family: "Archivo", sans-serif; font-size: 7rem; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.12); }
.vm__ic { width: 52px; height: 52px; padding: 12px; border-radius: 14px; background: var(--red); color: #fff; margin-bottom: 24px; }
.vm__card h2 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 14px; }
.vm__card p { margin: 0; font-size: 1.04rem; line-height: 1.75; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service {
  position: relative; display: flex; flex-direction: column; gap: 18px; min-height: 200px;
  padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s, background .35s, color .35s; text-align: start;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); background: var(--navy); color: #fff; }
.service__top { display: flex; justify-content: space-between; align-items: center; }
.service__num { font-family: "JetBrains Mono", monospace; font-size: .82rem; color: var(--red); font-weight: 500; }
.service__top .ic { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--paper-2); color: var(--navy); transition: background .35s, color .35s; }
.service:hover .service__top .ic { background: var(--red); color: #fff; }
.service h3 { font-size: 1.15rem; color: inherit; }
.service p { margin: 0; font-size: .88rem; color: var(--ink-3); transition: color .35s; }
.service:hover p { color: rgba(255,255,255,.7); }
.service__go { margin-top: auto; display: inline-flex; gap: 6px; align-items: center; font-size: .85rem; font-weight: 600; color: var(--red); }
.service--feature { background: var(--red); color: #fff; border-color: var(--red); }
.service--feature .service__top .ic { background: rgba(255,255,255,.18); color: #fff; }
.service--feature .service__num, .service--feature p { color: rgba(255,255,255,.85); }
.service--feature .service__go { color: #fff; }
.service--feature:hover { background: var(--red-2); }

/* ---------- Products ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter {
  border: 1.5px solid var(--line); background: #fff; padding: 10px 18px; border-radius: 999px;
  font-weight: 600; font-size: .9rem; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px;
  transition: all .25s var(--ease);
}
.filter small { font-family: "JetBrains Mono", monospace; font-size: .72rem; padding: 2px 7px; border-radius: 999px; background: var(--paper-2); color: var(--ink-3); }
.filter:hover { border-color: var(--navy); color: var(--navy); }
.filter[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.filter[aria-selected="true"] small { background: var(--red); color: #fff; }

.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.product {
  display: flex; flex-direction: column; text-align: start; padding: 0; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
  animation: pop .45s var(--ease) both;
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.product__img { position: relative; aspect-ratio: 1; display: grid; place-items: center; padding: 48px 26px 22px; background: radial-gradient(circle at 50% 60%, #fff 0%, var(--paper) 75%); }
.product__img img { max-height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 18px 18px rgba(11,33,73,.16)); transition: transform .5s var(--ease); }
.product:hover .product__img img { transform: scale(1.07) rotate(-1.5deg); }
.product__cat { position: absolute; top: 14px; inset-inline-start: 14px; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--red); background: #fff; padding: 4px 9px; border-radius: 999px; border: 1px solid #f5d0cd; }
html[lang="ar"] .product__cat { letter-spacing: 0; font-size: .75rem; }
.product__body { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 18px; border-top: 1px solid var(--line); }
.product__body h3 { font-size: 1.02rem; color: var(--navy); }
.product__dim { display: block; font-family: "JetBrains Mono", monospace; font-size: .76rem; color: var(--ink-3); margin-top: 4px; direction: ltr; unicode-bidi: isolate; }
.product__plus { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--paper-2); color: var(--navy); flex: none; transition: background .3s, color .3s, transform .3s; }
.product:hover .product__plus { background: var(--red); color: #fff; transform: rotate(-45deg); }
[dir="rtl"] .product:hover .product__plus { transform: rotate(45deg) scaleX(-1); }
.products__note { margin: 32px 0 0; text-align: center; color: var(--ink-2); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* ---------- Goals ---------- */
.goals-sec { overflow: hidden; }
.goals-sec::after { content: ""; position: absolute; width: 520px; height: 520px; inset-inline-end: -160px; top: -160px; border-radius: 50%; border: 80px solid rgba(215,38,30,.08); pointer-events: none; }
.goals { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 90px); position: relative; z-index: 1; }
.goals__head { position: sticky; top: calc(var(--header-h) + 30px); align-self: start; }
.v2030 { display: flex; align-items: center; gap: 18px; margin-top: 2rem; padding: 20px; border-radius: var(--radius-sm); background: rgba(255,255,255,.05); border: 1px solid var(--line-dark); }
.v2030__mark { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 2rem; color: #fff; padding: 6px 14px; border-radius: 10px; background: linear-gradient(135deg, #0e7a4a, #0a5a38); }
.v2030 p { margin: 0; font-size: .95rem; }
.goals__list { list-style: none; margin: 0; padding: 0; counter-reset: g; }
.goals__list li { display: flex; gap: 24px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line-dark); transition: padding .3s var(--ease); }
.goals__list li:first-child { border-top: 1px solid var(--line-dark); }
.goals__list li:hover { padding-inline-start: 12px; }
.goals__list span { font-family: "Archivo", sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--red); min-width: 2ch; }
.goals__list p { margin: 0; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #fff; line-height: 1.5; }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why__item { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; transition: transform .3s var(--ease), box-shadow .3s; }
.why__item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.why__item > .ic { width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--navy); color: #fff; stroke-width: 2.5; }
.why__item p { margin: 0; font-weight: 500; color: var(--ink); font-size: 1rem; }
.why__item--accent { background: var(--red); border-color: var(--red); color: #fff; justify-content: space-between; }
.why__item--accent p { color: #fff; font-family: var(--f-head); font-weight: 700; font-size: 1.15rem; line-height: 1.35; }
.why__item--accent .btn { align-self: flex-start; }

/* ---------- Credentials ---------- */
.certs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cert { border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: 14px; text-align: start; display: flex; flex-direction: column; gap: 14px; transition: transform .35s var(--ease), box-shadow .35s; }
.cert:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.cert__img { display: block; aspect-ratio: 4 / 3.4; overflow: hidden; border-radius: 10px; background: var(--paper); }
.cert__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.cert:hover .cert__img img { transform: scale(1.04); }
.cert__meta { padding: 0 6px 6px; }
.cert__meta strong { display: block; color: var(--navy); font-family: var(--f-head); font-size: 1.1rem; }
.cert__meta small { color: var(--ink-3); }

/* ---------- Download ---------- */
.download-sec { padding-top: 0; padding-bottom: clamp(40px, 6vw, 70px); background: linear-gradient(var(--paper-2) 50%, var(--paper) 50%); }
.download {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(32px, 5vw, 70px); align-items: center;
  padding: clamp(32px, 5vw, 64px); border-radius: 28px;
  background: radial-gradient(800px 400px at 100% 0, var(--navy-3), transparent 60%), var(--navy); color: rgba(255,255,255,.8);
  box-shadow: var(--shadow-lg);
}
.download::before { content: ""; position: absolute; z-index: -1; width: 160%; height: 60px; background: var(--red); bottom: -22px; inset-inline-start: -30%; transform: rotate(-3deg); }
.download__cover { perspective: 1200px; }
.download__cover img { border-radius: 8px; box-shadow: 0 30px 50px -15px rgba(0,0,0,.6); transform: rotateY(14deg) rotateX(4deg); transition: transform .6s var(--ease); max-height: 420px; margin-inline: auto; width: auto; }
[dir="rtl"] .download__cover img { transform: rotateY(-14deg) rotateX(4deg); }
.download:hover .download__cover img { transform: rotateY(0) rotateX(0) scale(1.02); }
.download__facts { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: flex; gap: 32px; flex-wrap: wrap; }
.download__facts strong { display: block; font-family: "Archivo", sans-serif; font-size: 1.5rem; color: #fff; }
.download__facts span { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); }
html[lang="ar"] .download__facts span { letter-spacing: 0; font-size: .85rem; }
.download__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact__info > p { color: var(--ink-2); }
.cinfo { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 12px; }
.cinfo a { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; transition: border-color .25s, transform .25s var(--ease), box-shadow .25s; }
.cinfo a:hover { border-color: var(--red); transform: translateX(4px); box-shadow: var(--shadow-sm); }
[dir="rtl"] .cinfo a:hover { transform: translateX(-4px); }
.cinfo__ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--navy); color: #fff; flex: none; }
.cinfo small { display: block; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
html[lang="ar"] .cinfo small { letter-spacing: 0; font-size: .8rem; }
.cinfo strong { color: var(--navy); font-weight: 600; word-break: break-word; }

.form { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); display: grid; gap: 18px; position: relative; }
.form::before { content: ""; position: absolute; top: 0; inset-inline: 44px; height: 4px; background: var(--red); border-radius: 0 0 4px 4px; }
.form h3 { font-size: 1.5rem; color: var(--navy); margin-bottom: 4px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-weight: 400; font-size: 1rem; color: var(--ink);
  padding: 13px 15px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 4px rgba(11,33,73,.08); }
.form .is-invalid { border-color: var(--red); background: #fff7f6; }
.form .req { color: var(--red); font-weight: 600; }
.form__error { margin: 0; color: var(--red); font-size: .9rem; font-weight: 500; }
.form__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.form__actions .btn { flex: 1 1 200px; }

/* ---------- Footer ---------- */
.footer { background: #071733; color: rgba(255,255,255,.65); padding: 80px 0 0; position: relative; overflow: hidden; }
.footer::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 4px; background: linear-gradient(90deg, var(--red) 0 30%, transparent 30%); }
[dir="rtl"] .footer::before { background: linear-gradient(-90deg, var(--red) 0 30%, transparent 30%); }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.footer__brand img { height: 92px; width: auto; margin-bottom: 18px; }
.footer__brand p { font-family: var(--f-head); font-weight: 700; color: #fff; font-size: 1.1rem; max-width: 22ch; }
.footer__col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer__col h4 { color: #fff; font-size: .95rem; margin-bottom: 8px; font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .12em; font-weight: 500; }
html[lang="ar"] .footer__col h4 { letter-spacing: 0; }
.footer__col a { transition: color .2s; font-size: .95rem; }
.footer__col a:hover { color: #fff; }
.footer__col span { font-size: .95rem; }
.footer__dl { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; color: #fff !important; border: 1px solid var(--line-dark); padding: 8px 14px; border-radius: 999px; }
.footer__dl:hover { background: var(--red); border-color: var(--red); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-block: 22px; border-top: 1px solid var(--line-dark); font-size: .85rem; }
.footer__bottom p { margin: 0; }
.footer__values { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer__values i { width: 5px; height: 5px; background: var(--red); transform: rotate(45deg); }

/* ---------- Floating ---------- */
.wa-float { position: fixed; z-index: 40; bottom: 22px; inset-inline-end: 22px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 10px 24px -6px rgba(37,211,102,.6); transition: transform .3s var(--ease); }
.wa-float .ic { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.08); }
.to-top { position: fixed; z-index: 40; bottom: 90px; inset-inline-end: 30px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .3s, transform .3s; }
.to-top .ic { transform: rotate(-90deg); width: 18px; height: 18px; }
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }

/* ---------- Modal ---------- */
.modal { border: 0; padding: 0; border-radius: 24px; width: min(960px, calc(100vw - 32px)); max-height: calc(100vh - 48px); background: #fff; color: var(--ink); box-shadow: var(--shadow-lg); overflow: auto; }
.modal::backdrop { background: rgba(7, 23, 51, .72); backdrop-filter: blur(4px); }
.modal[open] { animation: modalIn .35s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.modal__close { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--paper-2); display: grid; place-items: center; transition: background .2s, color .2s; }
.modal__close:hover { background: var(--red); color: #fff; }
.mprod { display: grid; grid-template-columns: 1fr 1fr; }
.mprod__img { background: radial-gradient(circle at 50% 55%, #fff, var(--paper-2) 80%); display: grid; place-items: center; padding: 40px; min-height: 380px; }
.mprod__img img { max-height: 340px; width: auto; filter: drop-shadow(0 24px 24px rgba(11,33,73,.2)); }
.mprod__body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 14px; }
.mprod__body h2 { font-size: 2rem; color: var(--navy); }
.mprod__body p { color: var(--ink-2); margin: 0; }
.mprod__specs { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 8px 0 12px; padding: 18px 0; border-block: 1px solid var(--line); font-size: .95rem; }
.mprod__specs dt { color: var(--ink-3); font-family: var(--f-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; padding-top: 3px; }
html[lang="ar"] .mprod__specs dt { letter-spacing: 0; font-size: .85rem; }
.mprod__specs dd { margin: 0; font-weight: 600; color: var(--navy); }
.mprod__nav { display: flex; gap: 8px; margin-top: auto; }
.mprod__nav button { flex: 1; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 10px; font-weight: 600; font-size: .85rem; color: var(--ink-2); transition: border-color .2s, color .2s; }
.mprod__nav button:hover { border-color: var(--navy); color: var(--navy); }
.mcert { padding: 24px; display: grid; gap: 12px; }
.mcert h2 { font-size: 1.3rem; color: var(--navy); padding-inline-end: 60px; }
.mcert img { width: 100%; height: auto; max-height: calc(100vh - 170px); object-fit: contain; border-radius: 10px; background: var(--paper); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .services, .why { grid-template-columns: repeat(3, 1fr); }
  .chip--a { inset-inline-start: -6%; }
  .chip--b { inset-inline-end: -4%; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .burger { display: flex; }
  .header__cta { display: none; }
  .brand img { height: 40px; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 16px var(--gutter) 24px; background: #fff; box-shadow: 0 20px 40px -20px rgba(11,33,73,.4);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .3s var(--ease), opacity .3s, visibility .3s;
  }
  .nav a:not(.btn) { color: var(--ink) !important; padding: 14px 12px; border-radius: 10px; font-size: 1.05rem; }
  .nav a:not(.btn):hover, .nav a.is-active { background: var(--paper-2) !important; }
  .nav__cta-mobile { display: inline-flex; margin-top: 12px; }
  .header.menu-open { background: #fff; }
  .header.menu-open .nav { transform: none; opacity: 1; visibility: visible; }
  .header.menu-open .burger span { background: var(--navy); }
  .header.menu-open .lang { color: var(--navy); border-color: var(--line); }
  .header.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .header.menu-open .burger span:nth-child(2) { opacity: 0; }
  .header.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero__inner, .about, .goals, .contact, .vm, .download { grid-template-columns: 1fr; }
  .hero__visual { max-width: 460px; margin-inline: auto; width: 100%; }
  .hero__photo { aspect-ratio: 4 / 3.6; }
  .goals__head { position: static; }
  .about__media { position: relative; top: 0; }
  .sec-head { grid-template-columns: 1fr; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: repeat(2, 1fr); }
  .certs { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .download__cover img { max-height: 300px; }
  .about__media { margin-bottom: 20px; }
  .mprod { grid-template-columns: 1fr; }
  .mprod__img { min-height: 260px; padding: 30px; }
  .mprod__img img { max-height: 220px; }
}

@media (max-width: 600px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div { padding: 16px 0 !important; border-inline-end: 0; }
  .stats > div:nth-child(odd) { border-inline-end: 1px solid var(--line-dark); padding-inline-end: 12px !important; }
  .stats > div:nth-child(even) { padding-inline-start: 16px !important; }
  .stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
  .hero__ctas .btn { flex: 1 1 100%; }
  .chip { padding: 9px 12px; }
  .chip .ic { width: 32px; height: 32px; padding: 6px; }
  .chip--a { inset-inline-start: -4px; top: 8%; }
  .chip--b { inset-inline-end: -4px; bottom: 8%; }
  .services, .why { grid-template-columns: 1fr; }
  .service { min-height: 0; padding: 20px; gap: 10px; }
  .why__item { flex-direction: row; align-items: center; padding: 16px 18px; gap: 14px; }
  .why__item--accent { flex-direction: column; align-items: flex-start; }
  .products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product__img { padding: 16px; }
  .product__body { padding: 12px; }
  .product__body h3 { font-size: .92rem; }
  .product__dim { font-size: .68rem; }
  .product__plus { display: none; }
  .product__cat { display: none; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }
  .certs { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .about__badge { inset-inline-end: 8px; bottom: -22px; padding: 14px 18px; }
  .about__badge strong { font-size: 1.8rem; }
  .about__media::before { display: none; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .download__facts { gap: 22px; }
  .download__ctas .btn { flex: 1 1 100%; }
  .vm__num { font-size: 5rem; }
  .goals__list li { gap: 16px; }
}

@media print {
  .header, .wa-float, .to-top, .marquee, .form { display: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}
