/* ==========================================================================
   Prime Auto Logistics — primelogistic.pro
   Brand: navy #0B2A4A + signal orange #E0552B (from the company sign)
   ========================================================================== */

/* Self-hosted variable fonts (SIL Open Font License — see /assets/fonts/OFL-*.txt) */
@font-face {
  font-family: "Archivo"; src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
}
@font-face {
  font-family: "Readex Pro"; src: url("../fonts/readexpro-var.woff2") format("woff2");
  font-weight: 160 700; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F;
}

:root {
  --navy: #0B2A4A;
  --navy-2: #123A63;
  --signal: #E0552B;
  --paper: #FFFFFF;
  --mist: #F2F4F7;
  --ink: #14202E;
  --steel: #5B6572;
  --line: #DDE2E8;

  --f-latin: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-ar: "Readex Pro", "Segoe UI", Tahoma, sans-serif;
  --f-body: var(--f-latin);

  --wrap: min(1320px, 100% - 2 * var(--gutter));
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --radius: 4px;
}
html[lang="ar"] { --f-body: var(--f-ar); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
  margin: 0; font-family: var(--f-body); font-size: 17px; line-height: 1.6;
  color: var(--ink); background: var(--paper);
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
html[lang="ar"] body { font-size: 17.5px; line-height: 1.8; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

.wrap { width: var(--wrap); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; }
.skip:focus { top: 12px; }

/* ── Type ─────────────────────────────────────────────────────────────── */
.display {
  font-family: var(--f-latin);
  font-weight: 800; font-variation-settings: "wdth" 118;
  font-size: clamp(2.5rem, 6.4vw, 6.8rem);
  line-height: .96; letter-spacing: -.025em;
  text-wrap: balance;
}
html[lang="ar"] .display {
  font-family: var(--f-ar); font-weight: 600; font-variation-settings: normal;
  line-height: 1.2; letter-spacing: 0; font-size: clamp(2.3rem, 5.6vw, 5.6rem);
}
.section-title {
  font-family: var(--f-latin); font-weight: 700; font-variation-settings: "wdth" 112;
  font-size: clamp(1.9rem, 3.4vw, 3.1rem); line-height: 1.05; letter-spacing: -.015em;
  color: var(--navy);
}
html[lang="ar"] .section-title { font-family: var(--f-ar); font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.section-title--light { color: #fff; }

/* Brand motif: the two slanted stripes from the P in the logo */
.section-title::before {
  content: ""; display: block; width: 34px; height: 7px; margin: 0 0 20px 6px;
  background:
    linear-gradient(var(--signal), var(--signal)) 0 0 / 13px 100% no-repeat,
    linear-gradient(var(--signal), var(--signal)) 19px 0 / 13px 100% no-repeat;
  transform: skewX(-50deg);
}
html[dir="rtl"] .section-title::before { margin: 0 6px 20px 0; transform: skewX(50deg) scaleX(-1); }

.link-line {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; text-decoration: none; color: var(--navy);
  padding-block: 6px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .35s var(--ease), color .2s;
}
.link-line:hover { color: var(--signal); background-size: 0 1px; background-position: 100% 100%; }
.link-line--light { color: #fff; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 28px; border-radius: var(--radius);
  font-weight: 600; font-size: 15px; text-decoration: none; letter-spacing: .01em;
  transition: background-color .25s, color .25s, border-color .25s;
  border: 1px solid transparent;
}
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--signal); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--signal); color: #fff; }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--header { min-height: 42px; padding: 0 18px; font-size: 14px; background: var(--signal); color: #fff; }
.btn--header:hover { background: #fff; color: var(--navy); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ── Header (transparent over video, solid after scrolling) ───────────── */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  color: #fff; transition: background-color .35s, color .35s, box-shadow .35s, transform .4s var(--ease);
}
.site-header::before {
  content: ""; position: absolute; inset: 0 0 -40px; pointer-events: none;
  background: linear-gradient(rgba(0,0,0,.45), transparent); transition: opacity .35s;
}
.site-header.is-solid { background: #fff; color: var(--navy); box-shadow: 0 1px 0 var(--line); }
.site-header.is-solid::before { opacity: 0; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__bar {
  position: relative; height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding-inline: var(--gutter);
}
.menu-btn { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; justify-self: start; padding: 8px 0; }
.menu-btn__icon { position: relative; width: 26px; height: 12px; }
.menu-btn__icon i { position: absolute; inset-inline-start: 0; width: 100%; height: 2px; background: currentColor; transition: transform .35s var(--ease), width .35s var(--ease); }
.menu-btn__icon i:first-child { top: 0; }
.menu-btn__icon i:last-child { bottom: 0; width: 65%; }
.menu-btn:hover .menu-btn__icon i:last-child { width: 100%; }
.menu-btn.is-close .menu-btn__icon i { top: 5px; width: 100%; }
.menu-btn.is-close .menu-btn__icon i:first-child { transform: rotate(45deg); }
.menu-btn.is-close .menu-btn__icon i:last-child { transform: rotate(-45deg); bottom: auto; }

.brand { display: block; width: clamp(140px, 14vw, 190px); }
.brand img { width: 100%; height: auto; }
.brand__dark { display: none; }
.site-header.is-solid .brand__light { display: none; }
.site-header.is-solid .brand__dark { display: block; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 22px; }
.lang-link { font-weight: 600; font-size: 15px; text-decoration: none; }
.lang-link:hover { color: var(--signal); }
.lang-link[lang="ar"] { font-family: var(--f-ar); }
.lang-link[lang="en"] { font-family: var(--f-latin); }

/* ── Full-screen menu ─────────────────────────────────────────────────── */
.menu {
  position: fixed; inset: 0; z-index: 60; background: #fff; color: var(--navy);
  display: flex; flex-direction: column; overflow: auto;
}
.menu[hidden] { display: none; }
.menu.is-open { animation: menu-in .45s var(--ease); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-12px); } }
.menu__top {
  height: var(--header-h); flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding-inline: var(--gutter); border-bottom: 1px solid var(--line);
}
.menu__top .lang-link { justify-self: end; }
.brand--menu { width: 160px; }
.menu__body { flex: 1; display: grid; grid-template-columns: minmax(260px, 34%) 1fr; }
.menu__primary { padding: clamp(28px, 5vw, 64px) var(--gutter); border-inline-end: 1px solid var(--line); }
.menu__sec {
  display: block; width: 100%; text-align: start; padding: 10px 0;
  font-family: var(--f-latin); font-weight: 700; font-variation-settings: "wdth" 115;
  font-size: clamp(1.6rem, 2.6vw, 2.5rem); line-height: 1.15; color: #9AA3AE; transition: color .2s;
}
html[lang="ar"] .menu__sec { font-family: var(--f-ar); font-weight: 600; }
.menu__sec:hover, .menu__sec.is-active { color: var(--navy); }
.menu__sec.is-active::after { content: ""; display: inline-block; width: 30px; height: 6px; margin-inline-start: 18px; vertical-align: middle;
  background: linear-gradient(var(--signal), var(--signal)) 0 0 / 11px 100% no-repeat, linear-gradient(var(--signal), var(--signal)) 17px 0 / 11px 100% no-repeat;
  transform: skewX(-50deg); }
.menu__panels { position: relative; }
.menu__panel { display: none; height: 100%; grid-template-columns: 1fr 1.25fr; grid-template-rows: auto 1fr; column-gap: clamp(24px, 4vw, 56px); row-gap: 6px; padding: clamp(28px, 5vw, 64px) var(--gutter); }
.menu__panel.is-active { display: grid; }
.menu__panel-title { grid-column: 1; font-size: 14px; color: var(--steel); margin-bottom: 8px; }
.menu__panel ul { grid-column: 1; grid-row: 2; align-self: start; }
.menu__panel li a { display: block; padding: 11px 0; font-size: clamp(1.1rem, 1.5vw, 1.35rem); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); transition: color .2s, padding .3s var(--ease); }
.menu__panel li a:hover, .menu__panel li a[aria-current] { color: var(--signal); padding-inline-start: 8px; }
.menu__media { grid-column: 2; grid-row: 1 / 3; min-height: 360px; max-height: 72vh; border-radius: var(--radius); }

/* ── Media (video backgrounds) ────────────────────────────────────────── */
.media {
  position: absolute; inset: 0; overflow: hidden;
  background: radial-gradient(120% 90% at 70% 30%, var(--navy-2), var(--navy) 60%, #06172A) center / cover no-repeat;
}
.media video { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.media video.is-ready { opacity: 1; }
.menu__media { position: relative; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { position: relative; display: flex; align-items: flex-end; color: #fff; overflow: hidden; isolation: isolate; background: var(--navy); }
.hero--full { min-height: 100svh; }
.hero--page { min-height: min(78svh, 760px); }
.hero__media { z-index: -2; }
.hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.15) 55%, rgba(4,16,30,.78) 100%); }
.hero__content { padding-block: calc(var(--header-h) + 40px) clamp(56px, 9vh, 110px); }
.hero__content .display { max-width: 16ch; }
html[lang="ar"] .hero__content .display { max-width: 18ch; }
.hero__sub { margin-top: 22px; max-width: 46ch; font-size: clamp(1.05rem, 1.4vw, 1.3rem); line-height: 1.55; color: rgba(255,255,255,.9); }
.hero__ctas { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__crumb { display: flex; gap: 10px; margin-bottom: 18px; font-size: 14px; color: rgba(255,255,255,.8); }
.hero__crumb a { text-decoration: none; }
.hero__crumb a:hover { color: #fff; text-decoration: underline; }

/* One orchestrated moment: the home hero title rises on load */
.is-home .hero--full .display, .is-home .hero--full .hero__sub, .is-home .hero--full .hero__ctas { animation: rise 1.1s var(--ease) both; }
.is-home .hero--full .hero__sub { animation-delay: .15s; }
.is-home .hero--full .hero__ctas { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }

.video-toggle {
  position: absolute; inset-inline-end: var(--gutter); bottom: clamp(56px, 9vh, 110px); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6);
  display: grid; place-items: center; color: #fff; transition: background .2s;
}
.video-toggle:hover { background: rgba(255,255,255,.15); }
.video-toggle svg { width: 14px; height: 14px; fill: currentColor; }
.video-toggle .i-play, .video-toggle[aria-pressed="true"] .i-pause { display: none; }
.video-toggle[aria-pressed="true"] .i-play { display: block; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  font-size: 12px; letter-spacing: .12em; color: rgba(255,255,255,.75); padding-bottom: 34px;
}
.scroll-cue::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 26px; background: rgba(255,255,255,.7); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Hero film mode: the same hero video plays with voice-over, music and captions */
.btn--sound { color: #fff; border-color: rgba(255,255,255,.7); gap: 10px; }
.btn--sound:hover { background: var(--signal); border-color: var(--signal); }
.btn--sound svg, .film-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.btn--sound svg path:first-child { fill: currentColor; stroke: none; }
.hero__content { transition: opacity .6s var(--ease), transform .6s var(--ease); }
.hero.is-film .hero__content { opacity: 0; transform: translateY(16px); pointer-events: none; }
.hero.is-film .hero__shade { background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, transparent 25%, transparent 60%, rgba(4,16,30,.7) 100%); }
.hero.is-film .scroll-cue, .hero.is-film .video-toggle { display: none; }
.film-caption {
  position: absolute; left: 50%; bottom: clamp(90px, 14vh, 150px); transform: translateX(-50%);
  width: min(900px, calc(100% - 2 * var(--gutter))); margin: 0; text-align: center;
  font-size: clamp(1.1rem, 2vw, 1.6rem); line-height: 1.5; font-weight: 500; color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.7); opacity: 0; transition: opacity .35s; pointer-events: none;
}
.film-caption.is-on { opacity: 1; }
.film-close {
  position: absolute; left: 50%; bottom: clamp(28px, 5vh, 56px); transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  background: rgba(4,16,30,.55); border: 1px solid rgba(255,255,255,.45); color: #fff; font-weight: 600; font-size: 14px;
  backdrop-filter: blur(6px);
}
.film-close:hover { background: var(--signal); border-color: var(--signal); }
.film-close[hidden] { display: none; }

/* ── Intro statement ──────────────────────────────────────────────────── */
.intro { padding-block: clamp(80px, 12vw, 170px); display: grid; grid-template-columns: minmax(220px, .8fr) 2fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.intro__text {
  font-family: var(--f-latin); font-variation-settings: "wdth" 100; font-weight: 400;
  font-size: clamp(1.4rem, 2.35vw, 2.15rem); line-height: 1.38; color: var(--ink); max-width: 40ch;
}
html[lang="ar"] .intro__text { font-family: var(--f-ar); font-weight: 300; line-height: 1.75; }
.intro .link-line { grid-column: 2; justify-self: start; }

/* ── Services rail (horizontal cards) ─────────────────────────────────── */
.rail { padding-bottom: clamp(80px, 10vw, 140px); }
.rail__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.rail__nav { display: flex; gap: 10px; }
.rail__btn { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--navy); transition: background .2s, color .2s, border-color .2s; }
.rail__btn:hover:not(:disabled) { background: var(--navy); color: #fff; border-color: var(--navy); }
.rail__btn:disabled { opacity: .35; cursor: default; }
.rail__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
html[dir="rtl"] .rail__btn svg { transform: scaleX(-1); }
.rail__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(280px, 30vw, 440px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: calc((100% - var(--wrap)) / 2);
  padding-inline: calc((100% - var(--wrap)) / 2); scrollbar-width: none;
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__card { scroll-snap-align: start; }
.rail__card a { position: relative; display: flex; align-items: flex-end; aspect-ratio: 3 / 4.2; overflow: hidden; border-radius: var(--radius); text-decoration: none; color: #fff; isolation: isolate; }
.rail__card .media { z-index: -2; transition: transform 1.2s var(--ease); }
.rail__card a:hover .media { transform: scale(1.05); }
.rail__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(4,16,30,.85)); }
.rail__body { padding: 28px; }
.rail__body h3 { font-family: var(--f-latin); font-weight: 700; font-variation-settings: "wdth" 112; font-size: clamp(1.4rem, 2vw, 1.8rem); line-height: 1.1; }
html[lang="ar"] .rail__body h3 { font-family: var(--f-ar); font-weight: 600; line-height: 1.35; }
.rail__body p { margin: 12px 0 18px; font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.85); }

/* ── Steps: pinned video storytelling ─────────────────────────────────── */
.steps { position: relative; color: #fff; background: var(--navy); }
.steps__media { position: sticky; top: 0; height: 100svh; margin-bottom: -100svh; overflow: hidden; }
.steps__layer { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.steps__layer.is-active { opacity: 1; }
.steps__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,16,30,.82) 0%, rgba(4,16,30,.45) 55%, rgba(4,16,30,.15) 100%); }
html[dir="rtl"] .steps__shade { transform: scaleX(-1); }
.steps__content { position: relative; padding-block: 18vh 30vh; }
.steps__list { margin-top: 12vh; display: grid; gap: 38vh; }
.steps__item { max-width: 520px; opacity: .35; transition: opacity .5s; }
.steps__item.is-active { opacity: 1; }
.steps__num {
  display: block; font-family: var(--f-latin); font-weight: 800; font-variation-settings: "wdth" 125;
  font-size: clamp(4rem, 9vw, 8rem); line-height: .9; color: transparent; -webkit-text-stroke: 1.5px var(--signal);
}
.steps__item.is-active .steps__num { color: var(--signal); }
.steps__item h3 { margin-top: 18px; font-size: clamp(1.5rem, 2.4vw, 2.2rem); font-weight: 700; line-height: 1.15; font-family: var(--f-latin); font-variation-settings: "wdth" 110; }
html[lang="ar"] .steps__item h3 { font-family: var(--f-ar); font-weight: 600; line-height: 1.4; }
.steps__item p { margin-top: 14px; font-size: 18px; color: rgba(255,255,255,.86); }

.steps__intro { margin-top: 18px; max-width: 52ch; font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: rgba(255,255,255,.88); }

/* ── Important to know: 2×2 video panels ──────────────────────────────── */
.know { padding-top: clamp(80px, 11vw, 150px); }
.know > .section-title { margin-bottom: 40px; }
.know__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: #fff; }
.know__card:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: min(70svh, 620px); }
.know__card { position: relative; min-height: min(82svh, 720px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; isolation: isolate; }
.know__card .media { z-index: -2; }
.know__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4,16,30,.05) 30%, rgba(4,16,30,.86)); }
.know__body { padding: clamp(28px, 4vw, 56px); max-width: 560px; }
.know__body h3 { font-family: var(--f-latin); font-weight: 700; font-variation-settings: "wdth" 115; font-size: clamp(1.6rem, 2.8vw, 2.6rem); line-height: 1.05; }
html[lang="ar"] .know__body h3 { font-family: var(--f-ar); font-weight: 600; line-height: 1.35; }
.know__body p { margin-top: 16px; color: rgba(255,255,255,.88); }

/* ── Network ──────────────────────────────────────────────────────────── */
.network { position: relative; min-height: 100svh; color: #fff; display: flex; align-items: center; overflow: hidden; isolation: isolate; margin-top: clamp(80px, 11vw, 150px); }
.network__media { position: absolute; inset: 0; z-index: -1; }
.network__layer { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.network__layer.is-active { opacity: 1; }
.network__shade { position: absolute; inset: 0; background: rgba(4,16,30,.55); }
.network__content { padding-block: 120px; }
.network__sub { margin-top: 18px; max-width: 44ch; font-size: 19px; color: rgba(255,255,255,.88); }
.network__list { margin-top: 48px; display: flex; flex-direction: column; align-items: flex-start; }
.network__list a {
  display: inline-block; text-decoration: none;
  font-family: var(--f-latin); font-weight: 800; font-variation-settings: "wdth" 125;
  font-size: clamp(2.6rem, 7.5vw, 7.2rem); line-height: 1; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.75);
  transition: color .35s, -webkit-text-stroke-color .35s;
}
html[lang="ar"] .network__list a { font-family: var(--f-ar); font-weight: 700; line-height: 1.3; letter-spacing: 0; }
.network__list a:hover, .network__list a:focus-visible, .network__list a.is-active { color: #fff; -webkit-text-stroke-color: #fff; }

/* ── Values ───────────────────────────────────────────────────────────── */
.values { padding-block: clamp(80px, 11vw, 150px); }
.values__list { margin-top: 44px; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--navy); }
.values__list li {
  padding: 26px 20px 26px 0; min-height: 150px; border-inline-end: 1px solid var(--line);
  font-family: var(--f-latin); font-weight: 600; font-variation-settings: "wdth" 108;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.2; color: var(--navy);
}
html[dir="rtl"] .values__list li { padding: 26px 0 26px 20px; }
.values__list li + li { padding-inline-start: 20px; }
.values__list li:last-child { border-inline-end: 0; }
html[lang="ar"] .values__list li { font-family: var(--f-ar); font-weight: 500; line-height: 1.5; }

/* ── CTA band ─────────────────────────────────────────────────────────── */
.cta { background: var(--navy); color: #fff; }
.cta__inner { padding-block: clamp(70px, 9vw, 130px); display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.cta__title { font-family: var(--f-latin); font-weight: 700; font-variation-settings: "wdth" 115; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.02; letter-spacing: -.015em; text-wrap: balance; }
html[lang="ar"] .cta__title { font-family: var(--f-ar); font-weight: 600; line-height: 1.35; letter-spacing: 0; }
.cta__list { border-top: 1px solid rgba(255,255,255,.25); }
.cta__list a { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.25); text-decoration: none; font-size: clamp(1.1rem, 1.5vw, 1.35rem); font-weight: 500; transition: color .2s, padding .35s var(--ease); }
.cta__list a:hover { color: var(--signal); padding-inline: 10px; }
.arrow { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }
html[dir="rtl"] .arrow { transform: scaleX(-1); }

/* ── Partners ─────────────────────────────────────────────────────────── */
.partners { padding-block: clamp(70px, 9vw, 120px); }
.partners__list { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.partners__list a { display: grid; place-items: center; background: #fff; aspect-ratio: 3 / 2; padding: 22px; }
.partners__list img { max-height: 56px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.partners__list a:hover img { filter: none; opacity: 1; }

/* ── Inner pages ──────────────────────────────────────────────────────── */
.page-body { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: clamp(30px, 6vw, 110px); padding-block: clamp(60px, 8vw, 120px); }
.subnav { position: sticky; top: calc(var(--header-h) + 30px); align-self: start; }
.subnav__h { font-size: 14px; color: var(--steel); margin-bottom: 10px; }
.subnav a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; color: var(--steel); transition: color .2s; }
.subnav a:hover { color: var(--navy); }
.subnav a[aria-current] { color: var(--navy); font-weight: 600; box-shadow: inset 3px 0 0 var(--signal); padding-inline-start: 14px; }
html[dir="rtl"] .subnav a[aria-current] { box-shadow: inset -3px 0 0 var(--signal); }
.lead { font-size: clamp(1.35rem, 2.1vw, 1.9rem); line-height: 1.4; color: var(--navy); font-weight: 500; max-width: 34ch; }
html[lang="ar"] .lead { line-height: 1.7; }
.block-text { margin-top: 54px; }
.block-text h2 { font-family: var(--f-latin); font-weight: 700; font-variation-settings: "wdth" 110; font-size: clamp(1.4rem, 2vw, 1.8rem); line-height: 1.2; color: var(--navy); margin-bottom: 14px; }
html[lang="ar"] .block-text h2 { font-family: var(--f-ar); font-weight: 600; line-height: 1.5; }
.block-text p { max-width: 64ch; color: #2E3A48; }
.block-quote { margin: 54px 0 0; padding-inline-start: 28px; border-inline-start: 3px solid var(--signal); }
.block-quote blockquote { margin: 0; font-size: clamp(1.25rem, 1.8vw, 1.6rem); line-height: 1.55; color: var(--navy); }
.block-quote figcaption { margin-top: 18px; color: var(--steel); font-weight: 600; }
.block-features { margin-top: 54px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--navy); }
.block-features li { padding: 26px 26px 30px 0; border-bottom: 1px solid var(--line); }
html[dir="rtl"] .block-features li { padding: 26px 0 30px 26px; }
.block-features h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: 8px; }
.block-features p { color: #2E3A48; font-size: 16px; }
.block-links { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px 28px; }

.next-page { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 70svh; padding: clamp(40px, 6vw, 80px) var(--gutter); color: #fff; text-decoration: none; overflow: hidden; isolation: isolate; }
.next-page .media { z-index: -2; transition: transform 1.4s var(--ease); }
.next-page .hero__shade { z-index: -1; }
.next-page:hover .media { transform: scale(1.04); }
.next-page__label { font-size: 15px; color: rgba(255,255,255,.85); margin-bottom: 10px; }
.next-page__title { font-size: clamp(2.2rem, 5.4vw, 5.4rem); }

/* ── Media pages ──────────────────────────────────────────────────────── */
.media-page { padding-block: clamp(50px, 7vw, 100px); }
.tabs { display: flex; gap: 6px 26px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.tabs a { padding: 12px 0; text-decoration: none; color: var(--steel); font-weight: 600; margin-bottom: -1px; border-bottom: 2px solid transparent; }
.tabs a[aria-current] { color: var(--navy); border-color: var(--signal); }
.gallery { columns: 3 280px; column-gap: 12px; }
.gallery li { break-inside: avoid; margin-bottom: 12px; }
.gallery button { display: block; width: 100%; overflow: hidden; border-radius: var(--radius); }
.gallery img { width: 100%; transition: transform .8s var(--ease); }
.gallery button:hover img { transform: scale(1.04); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(4,16,30,.9); }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox__close { position: fixed; top: 16px; inset-inline-end: 20px; color: #fff; font-size: 38px; line-height: 1; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.video-grid video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--navy); border-radius: var(--radius); }
.press li { padding-block: 34px; border-bottom: 1px solid var(--line); max-width: 760px; }
.press time { color: var(--steel); font-size: 14px; }
.press h2 { margin: 8px 0 10px; font-size: clamp(1.3rem, 2vw, 1.7rem); color: var(--navy); line-height: 1.3; }
.empty { color: var(--steel); }

/* ── Contact + forms ──────────────────────────────────────────────────── */
.contact { padding-block: clamp(50px, 7vw, 100px); }
.contact__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.contact__tabs button { padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-size: 15px; color: var(--steel); transition: all .2s; }
.contact__tabs button:hover { color: var(--navy); border-color: var(--navy); }
.contact__tabs button[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: clamp(30px, 6vw, 90px); align-items: start; }
.panel__intro { font-size: 1.2rem; color: var(--navy); margin-bottom: 28px; max-width: 46ch; }
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--navy); }
.field .opt { font-weight: 400; color: var(--steel); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--mist);
  border: 1px solid transparent; border-bottom-color: #B7C0CB; border-radius: var(--radius) var(--radius) 0 0;
  padding: 14px 14px; transition: border-color .2s, background .2s;
}
.field input[type="file"] { padding: 11px 14px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; background: #fff; border-color: var(--navy); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--signal); background: #FFF4F0; }
.form__msg { min-height: 1.4em; font-weight: 600; color: #B8391A; }
.form__msg.is-ok { color: #1E7B4B; }
.form .btn { justify-self: start; }
.notice { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 26px; font-weight: 600; }
.notice--ok { background: #E7F5EE; color: #1E7B4B; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.contact__info { position: sticky; top: calc(var(--header-h) + 24px); border-radius: var(--radius); overflow: hidden; background: var(--navy); color: #fff; }
.contact__media { position: relative; aspect-ratio: 16 / 10; }
.contact__details { padding: 28px; display: grid; gap: 8px; }
.contact__details a { text-decoration: none; }
.contact__details a:hover { color: var(--signal); }
.contact__name { font-weight: 700; font-size: 1.2rem; margin-bottom: 6px; }
.contact__net { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 15px; color: rgba(255,255,255,.8); }

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer { background: #06182B; color: rgba(255,255,255,.78); font-size: 15px; }
.site-footer .wrap { padding-block: clamp(60px, 7vw, 100px) 34px; }
.site-footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.14); }
.site-footer__tag { max-width: 40ch; }
.site-footer__nav { display: grid; grid-template-columns: repeat(6, 1fr); gap: 30px; padding-block: 50px; }
.site-footer__h { color: #fff; font-weight: 600; margin-bottom: 14px; }
.site-footer__nav a { display: inline-block; padding: 4px 0; text-decoration: none; transition: color .2s; }
.site-footer__nav a:hover { color: #fff; }
.site-footer__contact { display: flex; flex-wrap: wrap; gap: 10px 32px; padding-bottom: 34px; }
.site-footer__contact a { color: #fff; text-decoration: none; }
.site-footer__contact a:hover { color: var(--signal); }
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.14); font-size: 13px; }
.site-footer__bottom .lang-link { margin-inline-start: auto; color: #fff; }
.site-footer__credit a { text-decoration: none; }
.social { display: flex; gap: 18px; }
.social a { text-decoration: none; }
.social a:hover { color: #fff; }

/* WhatsApp button */
.wa-fab { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #1FA855; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: transform .25s var(--ease); }
.wa-fab:hover { transform: scale(1.06); }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .site-footer__nav { grid-template-columns: repeat(3, 1fr); }
  .values__list { grid-template-columns: repeat(3, 1fr); }
  .values__list li:nth-child(3) { border-inline-end: 0; }
  .values__list li:nth-child(n+4) { border-top: 1px solid var(--line); }
  .values__list li:nth-child(4) { padding-inline-start: 0; }
}
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .header-actions .btn--header { display: none; }
  .menu-btn__label { display: none; }
  .menu__body { grid-template-columns: 1fr; }
  .menu__primary { border-inline-end: 0; border-bottom: 1px solid var(--line); padding-block: 20px; }
  .menu__primary ul { display: flex; flex-wrap: wrap; gap: 0 18px; }
  .menu__sec { font-size: 1.3rem; width: auto; }
  .menu__sec.is-active::after { display: none; }
  .menu__panel { grid-template-columns: 1fr; grid-template-rows: auto; padding-block: 24px; }
  .menu__panel ul { grid-row: auto; }
  .menu__media { grid-column: 1; grid-row: auto; min-height: 200px; }
  .intro { grid-template-columns: 1fr; }
  .intro .link-line { grid-column: 1; }
  .know__grid { grid-template-columns: 1fr; }
  .know__card { min-height: 70svh; }
  .cta__inner { grid-template-columns: 1fr; }
  .page-body { grid-template-columns: 1fr; }
  .subnav { position: static; order: 2; }
  .block-features { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__info { position: static; }
  .steps__list { gap: 55vh; }
  .steps__shade { background: rgba(4,16,30,.62); }
  .scroll-cue { display: none; }
}
@media (max-width: 600px) {
  .form__row { grid-template-columns: 1fr; }
  .values__list { grid-template-columns: 1fr 1fr; }
  .values__list li { min-height: 110px; border-inline-end: 0 !important; padding-inline: 0 !important; border-top: 1px solid var(--line); }
  .values__list li:nth-child(odd) { border-inline-end: 1px solid var(--line) !important; padding-inline-end: 14px !important; }
  .values__list li:nth-child(even) { padding-inline-start: 14px !important; }
  .site-footer__nav { grid-template-columns: 1fr 1fr; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .video-toggle { bottom: 18px; }
  .rail__nav { display: 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; }
}
