/* ==========================================================================
   EL BADR Industries — design system
   Brand: red #d20e10 · gray #626262
   ========================================================================== */

:root {
  --red: #d20e10;
  --red-dark: #a50b0d;
  --red-soft: #fdeaea;
  --gray: #626262;
  --ink: #19191c;
  --steel: #232327;
  --steel-2: #2e2e33;
  --line: #e6e6e9;
  --paper: #f6f6f7;
  --white: #ffffff;
  --surface: #ffffff;   /* card background (overridden in dark mode) */
  --text: #3a3a3f;
  --muted: #76767d;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(25, 25, 28, 0.08);
  --shadow-lg: 0 24px 60px rgba(25, 25, 28, 0.16);
  --font-head: "Archivo", "Cairo", system-ui, sans-serif;
  --font-body: "Inter", "Cairo", system-ui, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); overflow-x: clip; }
body { overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

[dir="rtl"] body, body[dir="rtl"] { font-family: "Cairo", var(--font-body); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }

.container { width: min(1180px, 100% - 48px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 48px); margin-inline: auto; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; background: rgba(255,255,255,0.04); }
.btn--ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.12); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--steel-2); color: #fff; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(25, 25, 28, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-solid { background: rgba(25, 25, 28, 0.94); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }

.site-header .container { display: flex; align-items: center; gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand img { width: 46px; height: 46px; border-radius: 50%; background: #fff; padding: 1px; }
.brand__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1.1;
}
.brand__name span { display: block; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.34em; color: var(--red); text-transform: uppercase; }
/* Arabic header wordmark: gray tagline overlapping the stretched red البـــدر,
   mirroring the hero treatment (.ar-logo-type) at header scale. */
.brand__name--ar { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; letter-spacing: 0; }
.brand__name--ar .brand-tagline {
  font-family: "Cairo", var(--font-head);
  color: #c3c3c8;
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}
.brand__name--ar .brand-word {
  font-family: "Cairo", var(--font-head);
  color: var(--red);
  font-weight: 800;
  font-size: 1.85rem;
  line-height: 1;
  margin-top: -0.5em;
}
@media (max-width: 480px) {
  .brand__name--ar .brand-word { font-size: 1.5rem; }
  .brand__name--ar .brand-tagline { font-size: 0.6rem; }
}

.site-nav { margin-inline-start: auto; display: flex; align-items: center; gap: 1.6rem; }
.site-nav a { color: rgba(255,255,255,0.82); font-weight: 500; font-size: 0.98rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; }
.site-nav .btn { padding: 0.6rem 1.25rem; font-size: 0.92rem; }
.lang-switch { font-family: "Cairo", var(--font-body); font-weight: 700; border: 1px solid rgba(255,255,255,0.35); border-radius: 999px; padding: 0.3rem 0.9rem; }

.nav-toggle {
  display: none;
  margin-inline-start: auto;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 8px;
  width: 28px;
  height: 2.5px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { left: 0; top: -9px; }
.nav-toggle span::after { left: 0; top: 9px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(9px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(25, 25, 28, 0.98);
    padding: 0.75rem 24px 1.5rem;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;
  }
  .nav-open .site-nav { transform: none; opacity: 1; visibility: visible; }
  .site-nav a { padding: 0.85rem 0.25rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .site-nav .btn, .site-nav .lang-switch { margin-top: 1rem; justify-content: center; text-align: center; border-bottom: 0; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(92vh, 900px);
  display: grid;
  place-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--ink);
}
.hero--page { min-height: min(56vh, 540px); }

.hero__slides, .hero__slide { position: absolute; inset: 0; }
.hero__slide {
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.4s ease, transform 7s linear;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,20,23,0.72) 0%, rgba(20,20,23,0.45) 45%, rgba(20,20,23,0.85) 100%);
}

.hero__content { position: relative; z-index: 2; text-align: center; padding: 9rem 0 5rem; }
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(210, 14, 16, 0.85);
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 800;
  margin-bottom: 0.4em;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--red); }
/* The hero title may be authored in a rich editor that wraps lines in <p>. */
.hero h1 p { margin: 0; }
/* Arabic hero title typeset like the brand wordmark */
.ar-logo-type { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.ar-logo-type .ar-tagline {
  color: #c3c3c8;
  font-family: "Cairo", var(--font-head);
  font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 3.7rem);
  letter-spacing: 0.02em;
  position: relative;
  z-index: 2;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}
.ar-logo-type .ar-name {
  color: var(--red);
  font-family: "Cairo", var(--font-head);
  font-weight: 800;
  font-size: clamp(4rem, 13vw, 9rem);
  /* pull the big word up so the tagline sits right on the kashida stroke */
  margin-top: -0.6em;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.5);
}
.hero__sub { font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(255,255,255,0.88); max-width: 46ch; margin-inline: auto; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; margin-top: 2.2rem; }

.hero__scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

/* Trust bar */
.trustbar { background: var(--ink); color: #fff; padding: 1.6rem 0; border-top: 1px solid rgba(255,255,255,0.07); }
.trustbar .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.2rem; }
.trust-item { display: flex; align-items: center; gap: 0.85rem; justify-content: center; }
.trust-item strong { font-family: var(--font-head); font-size: 1.5rem; color: #fff; display: block; line-height: 1.1; }
.trust-item small { color: rgba(255,255,255,0.65); font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; }
.trust-item .tick { width: 12px; height: 38px; border-radius: 3px; background: var(--red); flex: none; }
@media (max-width: 720px) {
  .trustbar .container { grid-template-columns: 1fr 1fr; gap: 1.1rem 1.4rem; }
  .trust-item { justify-content: flex-start; }
}
@media (max-width: 460px) {
  .trustbar .container { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--paper { background: var(--paper); }
.section--dark { background: var(--steel); color: rgba(255,255,255,0.85); }
.section--dark h2, .section--dark h3 { color: #fff; }

.section-head { max-width: 720px; margin: 0 auto clamp(2.4rem, 5vw, 3.6rem); text-align: center; }
.section-head--left { margin-inline: 0; text-align: start; }
.eyebrow {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 0.7rem;
}
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section--dark .section-head p { color: rgba(255,255,255,0.7); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-grid figure { margin: 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: clamp(1rem, 3vw, 2.5rem); }
.about-points { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: 0.8rem; }
.about-points li { display: flex; gap: 0.8rem; align-items: flex-start; }
.about-points .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--red); margin-top: 0.55em; }
/* Rich-text About content (authored in the CMS WYSIWYG): style plain ul/li
   with the brand dot so editors don't need to write any HTML. */
.about-rich ul { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: 0.8rem; }
.about-rich li { position: relative; padding-inline-start: 1.6rem; }
.about-rich li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.5em;
  width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.about-rich p:last-of-type { margin-bottom: 0; }
@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; }
  /* When stacked, keep the logo card from blowing up to full width. */
  .about-grid figure { max-width: 420px; margin-inline: auto; }
  .about-grid figure img { width: 100%; height: auto; }
}

/* Stat strip */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.5rem; text-align: center; }
.stat strong { font-family: var(--font-head); font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; color: var(--red); display: block; line-height: 1; }
.stat span { color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.82rem; }
.section--dark .stat span { color: rgba(255,255,255,0.65); }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.6rem; }

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-card__media img { transform: scale(1.06); }
.product-card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.product-card h3 { font-size: 1.22rem; margin: 0; }
.product-card p { color: var(--muted); font-size: 0.95rem; margin: 0; flex: 1; }
.product-card .card-link {
  margin-top: 0.9rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.product-card .card-link::after { content: "→"; transition: transform 0.2s ease; }
[dir="rtl"] .product-card .card-link::after { content: "←"; }
.product-card:hover .card-link::after { transform: translateX(4px); }
[dir="rtl"] .product-card:hover .card-link::after { transform: translateX(-4px); }
.product-card > a.card-cover { position: absolute; inset: 0; z-index: 1; }

/* Service cards */
.service-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  border-top: 4px solid var(--red);
  box-shadow: var(--shadow);
}
.section--dark .service-card { background: var(--steel-2); border-top-color: var(--red); }
.service-card h3 { font-size: 1.25rem; }
.service-card p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.section--dark .service-card p { color: rgba(255,255,255,0.7); }
.service-card .icon {
  width: 54px; height: 54px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--red-soft);
  color: var(--red);
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
}
.section--dark .service-card .icon { background: rgba(210,14,16,0.18); }

/* Vision / mission / values (cards are always dark, whatever the section) */
.vmv-card { background: var(--steel-2); border-radius: var(--radius); padding: 2.2rem 2rem; border-inline-start: 4px solid var(--red); height: 100%; color: rgba(255,255,255,0.85); }
.vmv-card h3 { color: var(--red); letter-spacing: 0.1em; text-transform: uppercase; font-size: 1.05rem; }
.vmv-card p { color: rgba(255,255,255,0.85); margin: 0; }
.vmv-card ul { margin: 0; padding-inline-start: 1.1rem; color: rgba(255,255,255,0.85); }
.vmv-card li { margin-bottom: 0.4rem; }

/* --------------------------------------------------------------------------
   Clients
   -------------------------------------------------------------------------- */
.client-group { margin-bottom: 2.8rem; }
.client-group h3 { display: flex; align-items: center; gap: 0.9rem; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.12em; }
.client-group h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.client {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.client:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.client img { width: 92px; height: 92px; object-fit: contain; }
.client span { font-size: 0.8rem; color: var(--muted); line-height: 1.35; }

/* --------------------------------------------------------------------------
   Industries showcase (home) — immersive image tiles
   -------------------------------------------------------------------------- */
.industry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; }
.industry-tile {
  position: relative;
  isolation: isolate;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 450px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  box-shadow: var(--shadow);
}
.industry-tile img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.industry-tile::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(18,18,21,0) 22%, rgba(18,18,21,0.55) 58%, rgba(18,18,21,0.93) 100%);
  transition: background 0.4s ease;
}
.industry-tile:hover img { transform: scale(1.08); }
.industry-tile:hover::after {
  background: linear-gradient(180deg, rgba(18,18,21,0.12) 0%, rgba(165,11,13,0.4) 48%, rgba(18,18,21,0.95) 100%);
}
.industry-tile__body { position: relative; z-index: 2; padding: 1.9rem; width: 100%; }
.industry-tile__num {
  font-family: var(--font-head); font-weight: 800; font-size: 0.95rem;
  color: var(--red); letter-spacing: 0.12em; display: block; margin-bottom: 0.55rem;
}
.industry-tile h3 { color: #fff; font-size: 1.55rem; margin: 0 0 0.4rem; }
.industry-tile p { color: rgba(255,255,255,0.82); font-size: 0.96rem; margin: 0 0 1rem; }
.industry-tile__go {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 0.82rem; color: #fff;
  display: inline-flex; align-items: center; gap: 0.45rem;
}
.industry-tile__go::after { content: "→"; transition: transform 0.25s ease; }
[dir="rtl"] .industry-tile__go::after { content: "←"; }
.industry-tile:hover .industry-tile__go::after { transform: translateX(5px); }
[dir="rtl"] .industry-tile:hover .industry-tile__go::after { transform: translateX(-5px); }
.industry-tile__badge {
  position: absolute; top: 1.1rem; inset-inline-end: 1.1rem; z-index: 2;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: #fff; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.03em;
  padding: 0.32rem 0.75rem; border-radius: 999px;
}
.industry-tile__cover { position: absolute; inset: 0; z-index: 3; }

/* --------------------------------------------------------------------------
   Fairs & Events (home feature)
   -------------------------------------------------------------------------- */
.section--events { background: var(--paper); }
.events-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2.4rem;
  align-items: center;
}
.events-feature__copy h3 { font-size: 1.8rem; margin: 0 0 0.6rem; }
.events-feature__copy p { color: var(--muted); margin: 0 0 1.5rem; max-width: 46ch; }
.events-feature__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.events-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.events-feature__gallery:hover .events-thumb { opacity: 0.92; }
.events-feature__gallery .events-thumb:hover { transform: translateY(-4px) scale(1.02); opacity: 1; box-shadow: var(--shadow-lg); }
[data-theme="dark"] .section--events { background: var(--steel); }
@media (max-width: 820px) {
  .events-feature { grid-template-columns: 1fr; gap: 1.6rem; }
}
@media (max-width: 460px) {
  .events-feature__gallery { grid-template-columns: repeat(2, 1fr); }
}

/* --------------------------------------------------------------------------
   Gallery (product pages)
   -------------------------------------------------------------------------- */
.breadcrumbs { font-size: 0.88rem; color: rgba(255,255,255,0.7); margin-bottom: 1.2rem; position: relative; z-index: 2; }
.breadcrumbs a { color: rgba(255,255,255,0.85); }
.breadcrumbs span[aria-current] { color: #fff; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.1rem; }
.gallery a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper);
  aspect-ratio: 1;
  box-shadow: var(--shadow);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery a:hover img { transform: scale(1.05); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15, 15, 17, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1rem 1rem;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1100px, 96vw); max-height: 86vh; width: auto; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox button {
  position: absolute;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.3rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}
.lightbox button:hover { background: var(--red); border-color: var(--red); }
.lightbox__close { top: 18px; inset-inline-end: 18px; }
.lightbox__prev { inset-inline-start: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__next { inset-inline-end: 14px; top: 50%; transform: translateY(-50%); }

/* Related products */
.related { border-top: 1px solid var(--line); }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; }
.chip {
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  transition: 0.15s ease;
}
.chip:hover { border-color: var(--red); color: var(--red); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--red-dark), var(--red)); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 52ch; margin-inline: auto; }
.cta-band .btn--primary { background: #fff; color: var(--red); }
.cta-band .btn--primary:hover { background: var(--ink); color: #fff; }

/* --------------------------------------------------------------------------
   Catalog flipbook
   -------------------------------------------------------------------------- */
.catalog-section { background: radial-gradient(1200px 600px at 50% 0%, #38383e 0%, var(--steel) 60%); }
.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
}
.catalog-toolbar .page-indicator {
  font-family: var(--font-head);
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  min-width: 110px;
  text-align: center;
}
.book-stage { display: flex; align-items: center; justify-content: center; gap: clamp(0.4rem, 2vw, 1.4rem); }
.book {
  display: flex;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 4px 14px rgba(0,0,0,0.35);
  overflow: hidden;
  position: relative;
  transition: transform 0.35s ease, opacity 0.35s ease;
  perspective: 1600px;
}
.book.is-turning-next { transform: rotateY(-7deg) scale(0.985); opacity: 0.65; }
.book.is-turning-prev { transform: rotateY(7deg) scale(0.985); opacity: 0.65; }
.book canvas { display: block; height: min(72vh, 760px); width: auto; }
.book .spine {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 36px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.14) 50%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}
.book.single .spine { display: none; }
.book-nav {
  flex: none;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.07);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.book-nav:hover:not(:disabled) { background: var(--red); border-color: var(--red); }
.book-nav:disabled { opacity: 0.3; cursor: default; }
.book-loading {
  color: rgba(255,255,255,0.8);
  font-family: var(--font-head);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  justify-content: center;
  padding: 6rem 0;
}
.book-loading::before {
  content: "";
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.25);
  border-top-color: var(--red);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.catalog-range { width: min(560px, 90%); margin: 1.6rem auto 0; display: block; accent-color: var(--red); }
@media (max-width: 720px) {
  .book canvas { height: auto; width: min(86vw, 480px); }
  .book-nav { width: 44px; height: 44px; }
}

/* --------------------------------------------------------------------------
   Certificates
   -------------------------------------------------------------------------- */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.6rem; }
.cert-grid figure { margin: 0; background: var(--surface); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow); }
.cert-grid figcaption { text-align: center; padding-top: 0.9rem; font-weight: 600; color: var(--ink); }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-list { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 0.4rem; }
.contact-list a { display: flex; align-items: center; gap: 0.9rem; color: var(--text); padding: 0.55rem 0; }
.contact-list a:hover { color: var(--red); }
.contact-list .ico {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--red-soft);
  color: var(--red);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.form-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: clamp(1.5rem, 4vw, 2.5rem); }
.form-card label { display: block; font-weight: 600; font-size: 0.92rem; color: var(--ink); margin-bottom: 0.35rem; }
.form-card .field { margin-bottom: 1.1rem; }
.form-card input {
  width: 100%;
  padding: 0.8rem 1rem;
  font: inherit;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  transition: border-color 0.15s ease;
}
.form-card input:focus { outline: none; border-color: var(--red); background: var(--surface); }
.req { color: var(--red); }

.map-grid { display: grid; grid-template-columns: 1fr 1fr; }
.map-panel { position: relative; display: flex; flex-direction: column; }
.map-panel__head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.2rem;
  background: var(--red);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  transition: background 0.15s ease;
}
.map-panel__head:hover { background: var(--red-dark); color: #fff; }
.map-panel__head .ico { display: inline-flex; color: #fff; }
.map-panel__head .ico svg { width: 20px; height: 20px; }
.map-frame { border: 0; width: 100%; height: 380px; display: block; filter: grayscale(0.25); }
@media (max-width: 760px) { .map-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.72); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 2.5rem; margin-bottom: 3rem; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1.1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.site-footer a { color: rgba(255,255,255,0.72); }
.site-footer a:hover { color: #fff; }
.footer-brand p { font-size: 0.95rem; max-width: 32ch; }

.social-row { display: flex; gap: 0.7rem; margin-top: 1.1rem; }
.social-row a {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  transition: 0.15s ease;
}
.social-row a:hover { background: var(--red); border-color: var(--red); color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: space-between;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
}

/* WhatsApp float */
.whats-float {
  position: fixed;
  bottom: 22px;
  inset-inline-end: 22px;
  z-index: 70;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  box-shadow: 0 12px 28px rgba(0,0,0,0.3);
  transition: transform 0.15s ease, background 0.15s ease;
}
.whats-float:hover { transform: scale(1.08); color: #fff; background: var(--red-dark); }

/* --------------------------------------------------------------------------
   Reveal animations
   -------------------------------------------------------------------------- */
/* Content is visible by default (no-JS / crawler safe); JS adds
   .reveal-pending only to elements still below the viewport. */
.reveal { transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.reveal-pending { opacity: 0; transform: translateY(26px); }
@media (prefers-reduced-motion: reduce) {
  .reveal.reveal-pending { opacity: 1; transform: none; transition: none; }
  .hero__slide { transition: opacity 0.5s ease; transform: none; }
  html { scroll-behavior: auto; }
}

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.skip-link {
  position: fixed;
  top: -100px;
  inset-inline-start: 0;
  background: var(--red);
  color: #fff;
  padding: 0.7rem 1.2rem;
  z-index: 100;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; color: #fff; }

/* --------------------------------------------------------------------------
   Cinematic gear intro (home pages)
   -------------------------------------------------------------------------- */
#gear-intro { position: relative; height: 220vh; z-index: 80; }
.gear-intro__stage {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 30%, #15171c 0%, #0c0d10 60%, #060708 100%);
  display: grid; place-items: center;
}
#gear-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.gear-intro__veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 60% at 50% 45%, rgba(0,0,0,0) 40%, rgba(6,7,8,0.7) 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.015) 0 1px, transparent 1px 3px);
}
.gear-intro__content {
  position: relative; z-index: 2; text-align: center; color: #fff;
  padding: 0 24px; transition: opacity 0.2s linear; will-change: opacity;
}
.gear-intro__eyebrow {
  display: inline-block; font-family: var(--font-head); font-size: 0.8rem;
  font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase;
  color: rgba(255,255,255,0.65); margin-bottom: 1.4rem;
}
.gear-intro__title {
  font-family: var(--font-head); font-weight: 800; color: #fff; line-height: 0.95;
  margin: 0; font-size: clamp(3rem, 12vw, 9rem); letter-spacing: 0.01em;
  text-shadow: 0 10px 50px rgba(0,0,0,0.6);
}
.gear-intro__title span { display: block; }
.gear-intro__title em {
  display: block; font-style: normal; color: var(--red);
  font-size: clamp(1rem, 3.4vw, 2.4rem); letter-spacing: 0.42em; font-weight: 700;
  margin-top: 0.6rem; text-transform: uppercase;
}
[dir="rtl"] .gear-intro__title em { letter-spacing: 0.12em; }

/* Arabic intro wordmark: red tagline riding the kashida inside the big word,
   mirroring the hero (.ar-logo-type) treatment. */
.gear-intro__title--ar { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.gear-intro__title--ar em {
  order: 0; margin-top: 0;
  font-family: "Cairo", var(--font-head);
  font-size: clamp(1.4rem, 4.4vw, 3.2rem);
  letter-spacing: 0.02em !important;
  text-transform: none;
  position: relative; z-index: 2;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
}
.gear-intro__title--ar span {
  order: 1;
  font-family: "Cairo", var(--font-head);
  font-size: clamp(3.4rem, 13vw, 9.5rem);
  margin-top: -0.52em;
}
.gear-intro__cue {
  margin-top: 2.6rem; display: inline-flex; align-items: center; gap: 0.6rem;
  background: none; border: 0; cursor: pointer; color: rgba(255,255,255,0.8);
  font-family: var(--font-head); font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; font-size: 0.78rem;
}
.gear-intro__cue i {
  width: 18px; height: 18px; border-inline-end: 2px solid var(--red);
  border-bottom: 2px solid var(--red); transform: rotate(45deg);
  animation: cueBounce 1.6s ease-in-out infinite;
}
@keyframes cueBounce { 0%,100% { transform: rotate(45deg) translate(0,0); } 50% { transform: rotate(45deg) translate(4px,4px); } }

/* While the intro is on screen, keep the fixed chrome out of the way */
body.intro-active .site-header,
body.intro-active .whats-float { opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }

/* --------------------------------------------------------------------------
   Dark mode  (toggled via [data-theme="dark"] on <html>)
   Only neutral surfaces change — the brand --red is set separately, so theme
   colour and dark mode are independent.
   -------------------------------------------------------------------------- */
[data-theme="dark"] {
  --white: #161619;
  --paper: #1d1d21;
  --surface: #1f1f25;
  --ink: #f1f1f4;
  --text: #c6c6ce;
  --muted: #9595a0;
  --line: #303036;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 22px 55px rgba(0, 0, 0, 0.6);
}
[data-theme="dark"] body { background: var(--white); }
[data-theme="dark"] .hero { background: #0e0e11; }
[data-theme="dark"] .trustbar { background: #0e0e11; }
[data-theme="dark"] .btn--dark { background: #2f2f35; }
[data-theme="dark"] .btn--dark:hover { background: #3b3b43; }
[data-theme="dark"] .site-footer { background: #0e0e11; }
[data-theme="dark"] .client img { background: #fff; border-radius: 8px; padding: 4px; }
[data-theme="dark"] .map-frame { filter: grayscale(0.3) invert(0.9) hue-rotate(180deg); }

/* Theme toggle button (in the header) */
.theme-toggle {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.theme-toggle:hover { background: rgba(255, 255, 255, 0.16); border-color: #fff; }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (max-width: 960px) {
  .theme-toggle { margin-top: 1rem; justify-self: center; }
}
