/* ============================================================
   FAST SUPPLY — Petroleum Products Co.
   Modern maritime design system (RTL + LTR via logical props)
   ============================================================ */

:root {
  /* Surfaces — deep petroleum / ocean depth */
  --bg: #04111f;
  --bg-2: #061a2d;
  --bg-3: #082138;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-solid: #0b2238;
  --surface-2: #0e2a45;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);

  /* Brand accents */
  --navy: #00264d;
  --teal: #29d6c4;     /* ocean */
  --teal-2: #0fa9b8;
  --gold: #f4b740;     /* energy / liquid gold */
  --gold-2: #e09b27;
  --red: #e23744;      /* logo droplet accent */

  /* Text */
  --text: #eef5fd;
  --muted: #a7bcd2;
  --muted-2: #7790ab;

  /* Tokens */
  --white: #ffffff;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1240px;
  --shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.7);
  --shadow-sm: 0 14px 30px -16px rgba(0, 0, 0, 0.6);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --grad-brand: linear-gradient(135deg, var(--teal), var(--teal-2));
  --grad-gold: linear-gradient(135deg, var(--gold), var(--gold-2));
  --grad-deep: linear-gradient(160deg, #061a2d 0%, #04111f 60%, #030c17 100%);

  /* Fonts — overridden per language below */
  --font-head: "Readex Pro", "Segoe UI", Tahoma, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

html[lang="en"] {
  --font-head: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Ambient atmosphere — fixed gradient mesh + grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 80% -5%, rgba(41, 214, 196, 0.10), transparent 60%),
    radial-gradient(55% 45% at 5% 8%, rgba(244, 183, 64, 0.08), transparent 55%),
    radial-gradient(70% 60% at 50% 110%, rgba(15, 169, 184, 0.10), transparent 60%),
    var(--grad-deep);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: var(--teal); color: #03131f; }

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.18; letter-spacing: -0.01em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { letter-spacing: 0; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }
.section { padding-block: clamp(4rem, 8vw, 7rem); position: relative; }
.section--alt { background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0)); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal);
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  background: rgba(41, 214, 196, 0.06);
}
html[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); }

.section-head { max-width: 720px; margin-inline: auto; text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .eyebrow { margin-bottom: 1.2rem; }
.section-title { font-size: clamp(1.9rem, 4.4vw, 3rem); margin-bottom: 1rem; }
.section-title .accent { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-sub { color: var(--muted); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  --bw: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: 0.95rem 1.7rem; border-radius: 100px;
  border: 1px solid var(--bw); cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn-primary { background: var(--grad-gold); color: #1c1402; box-shadow: 0 14px 34px -12px rgba(244, 183, 64, 0.65); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -12px rgba(244, 183, 64, 0.8); }
.btn-teal { background: var(--grad-brand); color: #042225; box-shadow: 0 14px 34px -12px rgba(41, 214, 196, 0.6); }
.btn-teal:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -12px rgba(41, 214, 196, 0.8); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); color: var(--text); --bw: var(--line-strong); backdrop-filter: blur(8px); }
.btn-ghost:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.10); border-color: var(--teal); }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  background: linear-gradient(90deg, var(--navy), #013a73);
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem; color: var(--muted);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.5rem; }
.topbar a { color: var(--muted); transition: color 0.25s; }
.topbar a:hover { color: var(--teal); }
.topbar-left { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.topbar-left span { display: inline-flex; align-items: center; gap: 0.45rem; }
.topbar .lic { color: #cfe0f2; }
.topbar .lic b { color: var(--gold); font-weight: 700; letter-spacing: 0.5px; }
.topbar-right { display: flex; align-items: center; gap: 1rem; }
.topbar .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px var(--teal); }
@media (max-width: 760px) { .topbar .hide-sm { display: none; } }
@media (max-width: 600px) {
  .topbar { font-size: 0.74rem; }
  .topbar .container { flex-direction: column; gap: 0.3rem; padding-block: 0.5rem; }
  .topbar-left, .topbar-right { width: 100%; justify-content: center; gap: 0.6rem; }
  .topbar-left .lic { justify-content: center; text-align: center; }
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(4, 17, 31, 0.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.navbar.scrolled { background: rgba(4, 17, 31, 0.92); border-bottom-color: var(--line); box-shadow: 0 12px 40px -20px rgba(0,0,0,0.8); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.7rem; }

.brand { display: flex; align-items: center; gap: 0.85rem; }
.brand img { height: 66px; width: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; color: var(--white); }
.brand-tag { font-size: 0.72rem; color: var(--teal); letter-spacing: 0.02em; }

.nav-links { display: flex; align-items: center; gap: 0.3rem; }
.nav-links a {
  position: relative; padding: 0.55rem 0.95rem; border-radius: 100px;
  font-size: 0.95rem; font-weight: 600; color: var(--muted);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); background: rgba(255,255,255,0.06); }
.nav-links a.active::after {
  content: ""; position: absolute; inset-inline: 0.95rem; bottom: 0.32rem; height: 2px; border-radius: 2px;
  background: var(--grad-brand);
}

.nav-actions { display: flex; align-items: center; gap: 0.7rem; }

/* Language switch */
.lang-switch {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.85rem; border-radius: 100px;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,0.04);
  font-weight: 700; font-size: 0.9rem; color: var(--text);
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.lang-switch:hover { border-color: var(--teal); background: rgba(41,214,196,0.10); transform: translateY(-1px); }
.lang-switch svg { width: 1.1em; height: 1.1em; opacity: 0.85; }

/* Mobile menu — hidden on desktop, becomes overlay under 880px */
.nav-mobile { display: none; }

/* Hamburger */
.nav-toggle { display: none; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(255,255,255,0.04); color: var(--text); cursor: pointer; transition: border-color 0.25s, color 0.25s; }
.nav-toggle:hover { border-color: var(--teal); color: var(--teal); }
.nav-toggle svg { width: 24px; height: 24px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--bg) 2%, rgba(4,17,31,0.55) 45%, rgba(4,17,31,0.65) 100%),
    linear-gradient(to inline-start, rgba(4,17,31,0.85), rgba(4,17,31,0.25));
}
html[dir="rtl"] .hero-bg::after { background: linear-gradient(to top, var(--bg) 2%, rgba(4,17,31,0.55) 45%, rgba(4,17,31,0.65) 100%), linear-gradient(to left, rgba(4,17,31,0.85), rgba(4,17,31,0.25)); }
html[dir="ltr"] .hero-bg::after { background: linear-gradient(to top, var(--bg) 2%, rgba(4,17,31,0.55) 45%, rgba(4,17,31,0.65) 100%), linear-gradient(to right, rgba(4,17,31,0.85), rgba(4,17,31,0.25)); }

.hero-inner { padding-block: clamp(3rem, 8vh, 6rem); max-width: 760px; }
.hero .eyebrow { opacity: 0; animation: rise 0.9s var(--ease-out) 0.1s forwards; }
.hero h1 {
  font-size: clamp(2.4rem, 6.2vw, 4.6rem); line-height: 1.08; margin-block: 1.4rem 1.5rem;
  text-shadow: 0 6px 30px rgba(0,0,0,0.4);
  opacity: 0; animation: rise 0.9s var(--ease-out) 0.22s forwards;
}
.hero h1 .grad { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: #d6e4f3; max-width: 620px; margin-bottom: 2.2rem; opacity: 0; animation: rise 0.9s var(--ease-out) 0.34s forwards; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; opacity: 0; animation: rise 0.9s var(--ease-out) 0.46s forwards; }

/* hero trust strip */
.hero-strip {
  position: relative; z-index: 2; margin-top: clamp(2.5rem, 6vh, 4rem);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; backdrop-filter: blur(10px);
  opacity: 0; animation: rise 0.9s var(--ease-out) 0.6s forwards;
}
.hero-strip .cell { background: rgba(4,17,31,0.55); padding: 1.3rem 1.2rem; text-align: center; }
.hero-strip .num { font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; color: var(--teal); }
.hero-strip .lbl { font-size: 0.82rem; color: var(--muted); }

@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }

.scroll-cue { position: absolute; inset-inline: 0; bottom: 1.2rem; display: flex; justify-content: center; z-index: 2; opacity: 0.7; }
.scroll-cue span { width: 26px; height: 42px; border: 2px solid var(--line-strong); border-radius: 14px; display: flex; justify-content: center; padding-top: 7px; }
.scroll-cue span::before { content: ""; width: 4px; height: 8px; border-radius: 3px; background: var(--teal); animation: scroller 1.6s infinite; }
@keyframes scroller { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-copy .eyebrow { margin-bottom: 1.2rem; }
.about-copy h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: 1.4rem; }
.about-copy p { color: var(--muted); margin-bottom: 1.1rem; }
.about-copy .lead { color: var(--text); font-size: 1.12rem; }
.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-top: 1.8rem; }
.about-points li { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; color: var(--text); }
.about-points .tick { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 8px; background: rgba(41,214,196,0.14); display: grid; place-items: center; color: var(--teal); }
.about-points .tick svg { width: 15px; height: 15px; }

.about-media { position: relative; }
.about-media .frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.about-media .frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.about-media .badge {
  position: absolute; inset-inline-start: -18px; bottom: -18px;
  background: rgba(11,34,56,0.92); backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 1.1rem 1.4rem; box-shadow: var(--shadow-sm); max-width: 230px;
}
.about-media .badge .big { font-family: var(--font-head); font-size: 1.6rem; color: var(--gold); font-weight: 700; }
.about-media .badge .small { font-size: 0.85rem; color: var(--muted); }

/* ============================================================
   VISION / MISSION
   ============================================================ */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.vm-card {
  position: relative; padding: clamp(1.8rem, 3vw, 2.6rem); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.vm-card:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.vm-card::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 4px; background: var(--grad-brand); }
.vm-card.gold::before { background: var(--grad-gold); }
.vm-icon { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 1.3rem; background: rgba(41,214,196,0.12); color: var(--teal); }
.vm-card.gold .vm-icon { background: rgba(244,183,64,0.14); color: var(--gold); }
.vm-icon svg { width: 30px; height: 30px; }
.vm-card h3 { font-size: 1.5rem; margin-bottom: 0.8rem; }
.vm-card p { color: var(--muted); margin: 0; }

/* ============================================================
   PRODUCTS
   ============================================================ */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); gap: 1.2rem; }
.product-card {
  position: relative; padding: 1.7rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 0.7rem;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
  overflow: hidden;
}
.product-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 100% 0%, rgba(41,214,196,0.10), transparent 55%); opacity: 0; transition: opacity 0.4s var(--ease); }
.product-card:hover { transform: translateY(-6px); border-color: var(--teal); background: rgba(41,214,196,0.04); }
.product-card:hover::after { opacity: 1; }
.product-ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-deep); border: 1px solid var(--line-strong); color: var(--teal); position: relative; z-index: 1; }
.product-ico svg { width: 26px; height: 26px; }
.product-card h3 { font-size: 1.18rem; position: relative; z-index: 1; }
.product-card .ptag { font-size: 0.85rem; color: var(--muted); position: relative; z-index: 1; flex: 1; }
.product-card .pmeta { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; font-weight: 700; color: var(--gold); position: relative; z-index: 1; }
.product-card .plink { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; font-size: 0.9rem; color: var(--teal); position: relative; z-index: 1; margin-top: 0.2rem; }
.product-card .plink svg { width: 1em; height: 1em; transition: transform 0.3s var(--ease); }
html[dir="rtl"] .product-card .plink svg { transform: scaleX(-1); }
.product-card:hover .plink svg { transform: translateX(4px); }
html[dir="rtl"] .product-card:hover .plink svg { transform: scaleX(-1) translateX(4px); }

/* ============================================================
   LOGISTICS / PROCESS
   ============================================================ */
.logi { position: relative; }
.logi-wrap { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.logi-media { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.logi-media figure { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.logi-media figure img { width: 100%; height: 100%; object-fit: cover; }
.logi-media figure:first-child { grid-row: span 2; }
.logi-media figure img.tall { aspect-ratio: 3 / 4.4; }
.logi-media figure img.wide { aspect-ratio: 4 / 3; }

.steps { display: flex; flex-direction: column; gap: 0.5rem; }
.step { display: flex; gap: 1.1rem; padding: 1.1rem; border-radius: var(--radius); border: 1px solid transparent; transition: border-color 0.3s, background 0.3s; }
.step:hover { border-color: var(--line); background: var(--surface); }
.step-num { flex: 0 0 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: #042225; background: var(--grad-brand); }
.step h4 { font-size: 1.12rem; margin-bottom: 0.25rem; }
.step p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ============================================================
   GLOBAL REACH
   ============================================================ */
.reach { position: relative; overflow: hidden; }
.reach-inner { text-align: center; }
.reach-map { position: relative; margin-top: 2.5rem; }
.reach-map img {
  width: 100%; height: auto; max-width: 1000px; margin-inline: auto; display: block;
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.7), inset 0 0 0 1px rgba(41,214,196,0.06);
  -webkit-mask-image: radial-gradient(120% 130% at 50% 40%, #000 70%, transparent 100%);
  mask-image: radial-gradient(120% 130% at 50% 40%, #000 70%, transparent 100%);
}
.reach-regions { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.reach-region { padding: 1.3rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-align: start; }
.reach-region h4 { color: var(--teal); font-size: 1.05rem; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.reach-region p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* ============================================================
   FEATURES / WHY US
   ============================================================ */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.feature {
  padding: 1.8rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.feature:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.feature-ico { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 1.2rem; background: var(--grad-deep); border: 1px solid var(--line-strong); color: var(--gold); }
.feature-ico svg { width: 28px; height: 28px; }
.feature h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.feature p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ============================================================
   STATS
   ============================================================ */
.stats { position: relative; border-block: 1px solid var(--line); background: linear-gradient(120deg, rgba(0,38,77,0.6), rgba(15,169,184,0.10)); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat .num { font-family: var(--font-head); font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 700; line-height: 1; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl { color: var(--muted); margin-top: 0.6rem; font-weight: 600; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 1rem; grid-auto-flow: dense; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(4,17,31,0.6), transparent 55%); opacity: 0; transition: opacity 0.4s; }
.gallery-item:hover::after { opacity: 1; }
.gallery-item .cap { position: absolute; inset-inline: 1rem; bottom: 0.85rem; font-weight: 600; font-size: 0.92rem; color: #fff; opacity: 0; transform: translateY(8px); transition: opacity 0.4s, transform 0.4s; z-index: 1; }
.gallery-item:hover .cap { opacity: 1; transform: none; }
.gallery-item.wide { grid-column: span 2; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(2,9,17,0.92); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; padding: 2rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: var(--radius); box-shadow: var(--shadow); }
.lightbox .lb-close { position: absolute; top: 1.4rem; inset-inline-end: 1.6rem; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(255,255,255,0.06); color: #fff; font-size: 1.5rem; cursor: pointer; }

/* ============================================================
   PARTNERS
   ============================================================ */
.partners-marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 1.2rem; width: max-content; animation: marquee 42s linear infinite; }
.partners-marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
html[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
.partner-card {
  flex: 0 0 auto; width: 180px; height: 110px; border-radius: var(--radius);
  background: #ffffff; overflow: hidden;
}
.partner-card img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: stretch; max-width: 1000px; margin-inline: auto; }
.contact-info { display: flex; flex-direction: column; gap: 1rem; }
/* cards laid out as a centered responsive grid */
.contact-info.solo { display: grid; grid-template-columns: repeat(auto-fit, minmax(275px, 1fr)); gap: 1.2rem; }
.contact-card {
  display: flex; align-items: center; gap: 1rem; padding: 1.5rem 1.5rem;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.3s; min-height: 92px;
}
.contact-card:hover { border-color: var(--teal); transform: translateY(-3px); }
.contact-card .ci { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(41,214,196,0.12); color: var(--teal); }
.contact-card .ci svg { width: 24px; height: 24px; }
.contact-card .ct { font-size: 0.82rem; color: var(--muted); }
.contact-card .cv { font-weight: 700; color: var(--text); font-size: 1.05rem; overflow-wrap: break-word; }
.contact-card.wa .ci { background: rgba(37,211,102,0.16); color: #25d366; }

.contact-form { padding: clamp(1.6rem, 3vw, 2.4rem); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.contact-form h3 { font-size: 1.4rem; margin-bottom: 1.3rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--muted); margin-bottom: 0.45rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.85rem 1rem; border-radius: var(--radius-sm);
  background: rgba(4,17,31,0.6); border: 1px solid var(--line-strong); color: var(--text);
  font-family: var(--font-body); font-size: 0.98rem; transition: border-color 0.25s, box-shadow 0.25s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(41,214,196,0.16); }
.field textarea { resize: vertical; min-height: 120px; }
.field select option { background: var(--surface-solid); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form .btn { width: 100%; margin-top: 0.4rem; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: linear-gradient(180deg, transparent, rgba(0,0,0,0.4)); border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 2rem; }
.footer-brand img { height: 64px; width: auto; margin-bottom: 1rem; }
.footer-brand p { color: var(--muted); font-size: 0.92rem; max-width: 320px; }
.footer-col h4 { font-size: 1rem; color: var(--white); margin-bottom: 1.1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a, .footer-col li { color: var(--muted); font-size: 0.92rem; transition: color 0.25s, transform 0.25s; }
.footer-col a:hover { color: var(--teal); }
.footer-contact li { display: flex; align-items: flex-start; gap: 0.6rem; }
.footer-contact svg { width: 17px; height: 17px; color: var(--teal); flex: 0 0 17px; margin-top: 0.35rem; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; font-size: 0.85rem; color: var(--muted-2); }
.footer-bottom .lic b { color: var(--gold); }
.footer-social { display: flex; gap: 0.6rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--muted); transition: all 0.25s; }
.footer-social a:hover { color: #fff; border-color: var(--teal); background: rgba(41,214,196,0.10); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }

/* ============================================================
   FLOATING WHATSAPP + BACK TO TOP
   ============================================================ */
/* WhatsApp/back-to-top: inline-end => left in Arabic (RTL), right in English (LTR) */
.float-stack { position: fixed; inset-block-end: 1.6rem; inset-inline-end: 1.6rem; z-index: 900; display: flex; flex-direction: column; gap: 0.7rem; }
.wa-float { width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37,211,102,0.7); transition: transform 0.3s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
/* back-to-top sits on the OPPOSITE side from WhatsApp (inline-start => right in AR, left in EN) */
.to-top { position: fixed; inset-block-end: 1.6rem; inset-inline-start: 1.6rem; z-index: 900; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(11,34,56,0.92); backdrop-filter: blur(8px); color: var(--text); display: grid; place-items: center; cursor: pointer; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity 0.3s, transform 0.3s, color 0.3s, border-color 0.3s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--teal); color: var(--teal); }
.to-top svg { width: 20px; height: 20px; }

/* Skip link */
.skip-link { position: absolute; inset-inline-start: -999px; top: 0; z-index: 3000; background: var(--gold); color: #1c1402; padding: 0.7rem 1.2rem; border-radius: 0 0 10px 0; font-weight: 700; }
.skip-link:focus { inset-inline-start: 0; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

/* ============================================================
   PAGE LOADER
   ============================================================ */
.page-loader {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
  background:
    radial-gradient(60% 60% at 50% 35%, rgba(41,214,196,0.10), transparent 60%),
    radial-gradient(70% 60% at 50% 110%, rgba(244,183,64,0.10), transparent 60%),
    var(--bg);
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
.page-loader.loaded { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-core { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.loader-ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0%, var(--teal) 35%, var(--gold) 70%, transparent 92%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  animation: loaderspin 1.1s linear infinite;
}
.loader-ring.r2 {
  inset: 14px; opacity: 0.5;
  background: conic-gradient(from 180deg, transparent 0%, var(--gold) 40%, transparent 80%);
  animation: loaderspin 1.7s linear infinite reverse;
}
.loader-logo { position: relative; z-index: 1; height: 62px; width: auto; filter: drop-shadow(0 6px 16px rgba(0,0,0,0.5)); animation: loaderpulse 1.8s var(--ease) infinite; }
.loader-bar { width: 190px; height: 3px; border-radius: 3px; background: rgba(255,255,255,0.10); overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 40%; border-radius: 3px; background: var(--grad-gold); animation: loaderbar 1.3s var(--ease) infinite; }
.loader-text { font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.04em; color: var(--muted); }
@keyframes loaderspin { to { transform: rotate(360deg); } }
@keyframes loaderpulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes loaderbar { 0% { transform: translateX(-120%); } 100% { transform: translateX(360%); } }

/* Section wave divider */
.wave-divider { display: block; width: 100%; height: 60px; }
.wave-divider path { fill: rgba(255,255,255,0.02); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .logi-wrap, .contact-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 540px; margin-inline: auto; width: 100%; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  /* declutter mobile navbar: CTA lives in the mobile menu */
  .navbar .nav-actions .btn-primary { display: none; }
  .navbar .container { padding-block: 0.5rem; }
  .brand img { height: 56px; }
  .nav-actions { gap: 0.5rem; }
  .nav-mobile {
    position: fixed; inset: 0; inset-block-start: 0; z-index: 200;
    background: rgba(4,17,31,0.97); backdrop-filter: blur(20px);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem;
    transform: translateY(-100%); transition: transform 0.45s var(--ease); padding: 2rem;
  }
  .nav-mobile.open { transform: none; }
  .nav-mobile a:not(.btn):not(.lang-switch) { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--text); padding: 0.6rem; }
  .nav-mobile a:not(.btn):not(.lang-switch):hover { color: var(--teal); }
  .nav-mobile .btn { margin-top: 1.2rem; font-size: 1.05rem; padding: 1rem 2.2rem; }
  .nav-mobile .lang-switch { margin-top: 0.5rem; font-size: 1rem; padding: 0.7rem 1.4rem; }
  .nav-close { position: absolute; top: 1.2rem; inset-inline-end: 1.2rem; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(255,255,255,0.05); color: var(--text); display: grid; place-items: center; cursor: pointer; transition: border-color 0.25s, color 0.25s; }
  .nav-close:hover { border-color: var(--teal); color: var(--teal); }
  .nav-close svg { width: 22px; height: 22px; }
  .vm-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero-strip { grid-template-columns: 1fr 1fr; }
  .hero-strip .cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
/* center the hero on mobile / tablet */
@media (max-width: 768px) {
  .hero { text-align: center; }
  .hero-inner { margin-inline: auto; }
  .hero .eyebrow { justify-content: center; }
  .hero-lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
}

@media (max-width: 620px) {
  .container { padding-inline: 1.15rem; }
  .topbar-left { gap: 0.8rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .about-points { grid-template-columns: 1fr; }
  .brand-tag { display: none; }
  .hero { min-height: 88vh; }
}
@media (max-width: 400px) {
  .stats-grid, .hero-strip { grid-template-columns: 1fr; }
  .hero-strip .cell { border-bottom: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero .eyebrow, .hero h1, .hero-lead, .hero-cta, .hero-strip { opacity: 1; animation: none; }
}
