@charset "utf-8";
/* ==========================================================================
   Rahdar Precision — design system
   Industrial-precision language: charcoal canvas, steel neutrals, a single
   controlled red reserved for actions and active states. RTL-first.
   ========================================================================== */

/* ---------- Font ---------------------------------------------------------- */
@font-face {
  font-family: "Vazirmatn VF";
  src: url("../fonts/Vazirmatn[wght].woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens -------------------------------------------------------- */
:root {
  /* Canvas + surfaces */
  --ink:            #14171a;
  --ink-2:          #1a1f23;
  --ink-3:          #21272c;
  --ink-4:          #2a3137;

  /* Light surfaces (used for content-heavy pages) */
  --paper:          #f5f7f8;
  --paper-2:        #eaeef0;

  /* Steel neutrals */
  --steel-100:      #d8dee2;
  --steel-200:      #b9c2c8;
  --steel-300:      #8e99a1;
  --steel-400:      #667079;

  /* Accent — actions and active states only */
  --red:            #d42a1e;
  --red-hi:         #ef3b2c;
  --red-dim:        #a71f16;

  /* Text */
  --fg:             #eef1f3;
  --fg-muted:       var(--steel-300);
  --fg-ink:         #14171a;
  --fg-ink-muted:   #5b656d;

  /* Hairlines — the signature of the system */
  --line:           rgba(255, 255, 255, .10);
  --line-strong:    rgba(255, 255, 255, .20);
  --line-ink:       rgba(20, 23, 26, .12);
  --line-ink-strong:rgba(20, 23, 26, .24);

  /* Metrics */
  --container:      1280px;
  --container-tight: 960px;
  --gutter:         clamp(1rem, 3vw, 2.5rem);
  --section-y:      clamp(3.5rem, 7vw, 7rem);
  --radius:         2px;          /* near-square: machined, not friendly */
  --radius-lg:      3px;

  /* Type scale */
  --fs-display:     clamp(2.25rem, 5.2vw, 4.25rem);
  --fs-h1:          clamp(1.9rem, 3.8vw, 3.1rem);
  --fs-h2:          clamp(1.5rem, 2.7vw, 2.25rem);
  --fs-h3:          clamp(1.15rem, 1.7vw, 1.45rem);
  --fs-body:        clamp(.975rem, 1.05vw, 1.0625rem);
  --fs-sm:          .875rem;
  --fs-xs:          .78rem;

  /* Motion */
  --ease:           cubic-bezier(.2, .6, .2, 1);
  --dur:            .32s;

  --shadow-lift:    0 18px 50px -22px rgba(0, 0, 0, .75);
}

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

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

/* `body[class]` rather than `body`: Elementor's global kit stylesheet loads after
   the theme and paints the body white via `.elementor-kit-10`. A single class
   beats a bare element selector, so the canvas needs one too. */
body,
body[class] {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: "Vazirmatn VF", Vazirmatn, "Segoe UI", Tahoma, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.85;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: proportional-nums;
  overflow-x: hidden;
}

img, svg, video, iframe { max-width: 100%; display: block; }
img, video { height: auto; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .6em;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.015em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; }

p { margin: 0 0 1.15em; }
ul, ol { margin: 0 0 1.15em; padding-inline-start: 1.35em; }
li { margin-bottom: .4em; }

/* Buttons carry UA chrome (white background, borders, padding) that fights every
   component below; components opt back in explicitly. */
/* Hello Elementor's reset.css styles [type="button"] with a pink 1px border
   and pink text as its generic button default. An attribute selector like
   [type="button"] outranks a plain `button` element selector, so a bare
   `button { border:0 }` rule here loses to it for anything this stylesheet
   doesn't separately override — every plain <button> we render (mega-menu
   triggers, search/drawer toggles, accordions…) inherited that pink border.
   Matching the same selector shape neutralises it everywhere at once. */
button,
[type="button"],
[type="submit"],
[type="reset"] {
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

:focus-visible {
  outline: 2px solid var(--red-hi);
  outline-offset: 3px;
}

::selection { background: var(--red); color: #fff; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  z-index: 999;
  background: var(--red);
  color: #fff;
  padding: .75rem 1.25rem;
  font-weight: 700;
}
.skip-link:focus { inset-inline-start: 0; }

/* ---------- Layout primitives -------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--tight { max-width: var(--container-tight); }

.section { padding-block: var(--section-y); position: relative; }
.section--line { border-top: 1px solid var(--line); }
.section--paper {
  background: var(--paper);
  color: var(--fg-ink);
}
.section--paper .section-head__kicker { color: var(--red); }
.section--paper .section-head__lede { color: var(--fg-ink-muted); }

/* Section heading block: kicker rule + title + lede */
.section-head { margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}
.section-head__kicker {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: 0 0 .9rem;
  color: var(--red);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .16em;
}
.section-head__kicker::before {
  content: "";
  width: 2.25rem;
  height: 2px;
  background: var(--red);
  flex: none;
}
.section-head__title { margin: 0; font-size: var(--fs-h2); }
.section-head__lede {
  margin: .9rem 0 0;
  max-width: 62ch;
  color: var(--fg-muted);
  font-size: var(--fs-body);
}

/* ---------- Buttons ------------------------------------------------------- */
.btn {
  --btn-bg: var(--red);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1.6rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: .01em;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:hover { background: var(--red-hi); border-color: var(--red-hi); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, .06);
  border-color: var(--fg);
  color: var(--fg);
}
.section--paper .btn--ghost { --btn-fg: var(--fg-ink); border-color: var(--line-ink-strong); }
.section--paper .btn--ghost:hover { background: rgba(20, 23, 26, .06); border-color: var(--fg-ink); color: var(--fg-ink); }

.btn--lg { padding: 1.05rem 2.1rem; font-size: var(--fs-body); }

.btn__arrow { font-size: 1.1em; line-height: 1; transition: transform var(--dur) var(--ease); }
.btn:hover .btn__arrow { transform: translateX(-.25rem); } /* RTL: forward is left */

/* Text link with underline reveal */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--red);
  font-weight: 700;
  font-size: var(--fs-sm);
}
.link-arrow::after {
  content: "←";
  transition: transform var(--dur) var(--ease);
}
.link-arrow:hover::after { transform: translateX(-.3rem); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header,
.elementor-location-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(20, 23, 26, .82);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background var(--dur) var(--ease);
}
.site-header.is-solid,
.elementor-location-header.is-solid { background: var(--ink); }

/* Utility strip above the main bar */
.topbar {
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-xs);
  color: var(--fg-muted);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.5rem;
}
.topbar__list { display: flex; align-items: center; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.topbar__list li { margin: 0; }
.topbar a:hover { color: var(--fg); }
.topbar__item { display: inline-flex; align-items: center; gap: .4rem; }
@media (max-width: 900px) { .topbar { display: none; } }

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}
.brand { display: inline-flex; align-items: center; gap: .75rem; flex: none; }
.brand img { height: 2.65rem; width: auto; }
.brand__fallback { font-size: 1.15rem; font-weight: 900; letter-spacing: -.02em; }

/* Primary nav */
.nav { display: flex; align-items: center; gap: .35rem; }
@media (max-width: 1024px) { .nav { display: none; } }

/* Deliberately static: the mega panel resolves its position against
   .site-header, so the item must not become a containing block. */
.nav__item { position: static; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .7rem .85rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--steel-200);
  border-bottom: 2px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav__link:hover,
.nav__item.is-open > .nav__link { color: #fff; }
.nav__item.is-current > .nav__link { color: #fff; border-bottom-color: var(--red); }
.nav__caret { font-size: .6em; opacity: .7; transition: transform var(--dur) var(--ease); }
.nav__item.is-open .nav__caret { transform: rotate(180deg); }

/* Mega panel.
   Anchored to the header, not to the menu item. Item-anchored panels are the
   reason the old dropdowns spilled out of the viewport in RTL: the panel is far
   wider than its trigger, so whichever edge it is pinned to, some trigger
   position pushes it off-screen. Pinned to the header and clamped to the
   container, it is always fully visible and always aligned to the page grid. */
/* The mega dropdown positions absolutely against the nearest positioned
   ancestor, which is meant to be the header itself (position:sticky above
   already qualifies). Elementor's own containers inside the header default
   to position:relative, which — unlike the old .site-header wrapper — do
   not span the header's full width, so the dropdown was being squeezed into
   a narrow column instead of the full page width. Neutralising those inner
   containers pushes the containing block back up to .elementor-location-header. */
.elementor-location-header .e-con,
.elementor-location-header .elementor-widget-rdp-nav { position: static; }

.mega {
  position: absolute;
  top: 100%;
  inset-inline: var(--gutter);
  max-width: var(--container);
  margin-inline: auto;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lift);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.nav__item.is-open .mega { opacity: 1; visibility: visible; transform: translateY(0); }

/* A red rule that ties the open panel back to its trigger. */
.mega::before {
  content: "";
  position: absolute;
  top: -1px;
  inset-inline: 0;
  height: 1px;
  background: linear-gradient(to left, transparent, var(--red), transparent);
}

.mega__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 1.75rem 2.5rem;
}
.mega--wide .mega__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) {
  .mega--wide .mega__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Promo card fills the cell the category columns leave over. */
.mega__promo {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 11rem;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
}
.mega__promo img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.mega__promo::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(20, 23, 26, .94), rgba(20, 23, 26, .45));
}
.mega__promo:hover img { transform: scale(1.05); }
.mega__promo strong { display: block; font-size: .95rem; color: #fff; }
.mega__promo span { font-size: var(--fs-xs); color: var(--steel-200); }
.mega__promo .link-arrow { margin-top: .5rem; }

.mega__col-title {
  display: block;
  margin-bottom: .85rem;
  padding-bottom: .55rem;
  border-bottom: 1px solid var(--line);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 800;
}
.mega__col-title:hover { color: var(--red-hi); }
.mega__list { margin: 0; padding: 0; list-style: none; }
.mega__list li { margin: 0; }
.mega__link {
  display: block;
  padding: .38rem 0;
  color: var(--steel-300);
  font-size: var(--fs-sm);
  line-height: 1.6;
  transition: color var(--dur) var(--ease), padding-inline-start var(--dur) var(--ease);
}
.mega__link:hover { color: #fff; padding-inline-start: .35rem; }
.mega__link--more { color: var(--red-hi); font-weight: 700; }
.mega__link small { display: block; color: var(--steel-400); font-size: var(--fs-xs); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: .6rem; flex: none; }
.header-actions .btn { padding: .7rem 1.15rem; }
@media (max-width: 1024px) { .header-actions .btn--cta { display: none; } }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem; height: 2.6rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--fg);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.icon-btn:hover { border-color: var(--fg); background: rgba(255, 255, 255, .06); }
.nav-toggle { display: none; }
@media (max-width: 1024px) { .nav-toggle { display: inline-flex; } }

/* Search — a full-page takeover, not a boxed modal: a single dark overlay
   with nothing but the query line floating in it. No card, no second surface
   fighting the page underneath, no close button — the entire empty overlay
   is the close target, exactly the way Esc already is. */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: var(--gutter);
  background: rgba(10, 12, 14, .96);
  backdrop-filter: blur(6px);
}
.search-modal.is-open { display: flex; }
.search-modal__form {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(40rem, 100%);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1rem;
  animation: rdp-search-in .25s var(--ease);
}
@keyframes rdp-search-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.search-modal__form:focus-within { border-color: var(--red); }
.search-modal__submit {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--steel-300);
  transition: color var(--dur) var(--ease);
}
.search-modal__submit:hover { color: var(--red-hi); }
.search-modal__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: clamp(1.3rem, 3.4vw, 2rem);
  font-weight: 600;
  color: #fff;
  padding: .25rem 0;
}
.search-modal__input:focus { outline: none; }
.search-modal__input::placeholder { color: var(--steel-400); }
.search-modal__hint { margin: 0; font-size: var(--fs-xs); color: var(--steel-400); text-align: center; }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 300;
  visibility: hidden;
}
.drawer.is-open { visibility: visible; }
.drawer__scrim {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .6);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.drawer.is-open .drawer__scrim { opacity: 1; }
/* Anchored to the inline-start edge (the right, in RTL) and hidden by sliding
   out through that same edge — hence the direction-specific transform. */
.drawer__panel {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: min(24rem, 88vw);
  background: var(--ink-2);
  border-inline-end: 1px solid var(--line);
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform var(--dur) var(--ease);
  padding: 1.25rem var(--gutter) 3rem;
}
[dir="rtl"] .drawer__panel { transform: translateX(100%); }
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding-block: .5rem 1.25rem; border-bottom: 1px solid var(--line); }

.m-nav { list-style: none; margin: 0; padding: 0; }
.m-nav li { margin: 0; border-bottom: 1px solid var(--line); }
.m-nav a { display: block; padding: .95rem 0; font-weight: 600; font-size: var(--fs-sm); }
.m-nav__toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: .95rem 0;
  background: none; border: 0; text-align: start;
  font-weight: 700; font-size: var(--fs-sm);
}
.m-nav__sub { list-style: none; margin: 0 0 .75rem; padding: 0 .9rem 0 0; display: none; }
.m-nav__sub.is-open { display: block; }
.m-nav__sub li { border: 0; }
.m-nav__sub a { padding: .5rem 0; color: var(--steel-300); font-weight: 500; }
.m-nav__sub a:hover { color: #fff; }
.m-nav__group { color: var(--red); font-size: var(--fs-xs); font-weight: 800; letter-spacing: .1em; padding-top: .75rem; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: clamp(32rem, 82vh, 46rem);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img, .hero__media video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(20, 23, 26, .96) 0%, rgba(20, 23, 26, .55) 45%, rgba(20, 23, 26, .35) 100%),
    linear-gradient(to left, rgba(20, 23, 26, .8) 0%, rgba(20, 23, 26, 0) 60%);
}
.hero__inner { width: 100%; padding-block: clamp(3rem, 7vw, 6rem); }
.hero__kicker {
  display: inline-flex; align-items: center; gap: .65rem;
  margin-bottom: 1.25rem;
  padding: .4rem .85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(20, 23, 26, .5);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--steel-100);
}
.hero__kicker b { color: var(--red-hi); font-weight: 800; }
.hero__title {
  margin: 0 0 1rem;
  font-size: var(--fs-display);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.1;
  max-width: 20ch;
  text-wrap: balance;
}
.hero__lede {
  max-width: 54ch;
  margin: 0 0 2rem;
  color: var(--steel-100);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; }

/* Stat rail across the bottom of the hero */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.hero__stats .stat { padding: 1.25rem 1rem 0; border-inline-start: 1px solid var(--line); }
.hero__stats .stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
@media (max-width: 700px) {
  .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 0; }
  .hero__stats .stat:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
}
.stat__num {
  display: block;
  font-size: clamp(1.6rem, 2.8vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.stat__num span { color: var(--red); }
.stat__label { display: block; margin-top: .25rem; font-size: var(--fs-xs); color: var(--fg-muted); }

/* Slider variant of the hero */
.hero-slider { position: relative; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .9s var(--ease);
  pointer-events: none;
}
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__dots {
  position: absolute;
  bottom: 1.5rem;
  inset-inline-start: var(--gutter);
  z-index: 5;
  display: flex;
  gap: .5rem;
}
.hero__dot {
  width: 2.25rem; height: 3px;
  background: rgba(255, 255, 255, .3);
  border: 0; padding: 0;
  transition: background var(--dur) var(--ease);
}
.hero__dot.is-active { background: var(--red); }

/* Video play affordance */
.video-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-2);
  aspect-ratio: 16 / 9;
}
.video-frame img, .video-frame video, .video-frame iframe {
  width: 100%; height: 100%; object-fit: cover; border: 0;
}
.video-frame__btn {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: linear-gradient(to top, rgba(20, 23, 26, .7), rgba(20, 23, 26, .18));
  border: 0;
  transition: background var(--dur) var(--ease);
}
.video-frame__btn:hover { background: linear-gradient(to top, rgba(20, 23, 26, .55), rgba(20, 23, 26, .1)); }
.video-frame__play {
  display: grid; place-items: center;
  width: 4.5rem; height: 4.5rem;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 1.4rem;
  padding-inline-start: .2rem;
  box-shadow: 0 0 0 0 rgba(212, 42, 30, .55);
  animation: pulse 2.8s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(212, 42, 30, .5); }
  70%  { box-shadow: 0 0 0 1.5rem rgba(212, 42, 30, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 42, 30, 0); }
}
.video-frame__caption {
  position: absolute;
  inset-inline-start: 1.25rem;
  bottom: 1.25rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .8);
  pointer-events: none;
}

/* ==========================================================================
   Category tiles — large photo tiles with overlay labels
   ========================================================================== */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .tiles--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .tiles--3 { grid-template-columns: 1fr; } }

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 19rem;
  padding: 1.5rem;
  background: var(--ink-2);
  overflow: hidden;
  isolation: isolate;
}
.tile--tall { min-height: 26rem; }
.tile__img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.tile:hover .tile__img { transform: scale(1.05); }
.tile__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(20, 23, 26, .94) 8%, rgba(20, 23, 26, .5) 48%, rgba(20, 23, 26, .18) 100%);
  transition: background var(--dur) var(--ease);
}
.tile:hover .tile__scrim {
  background: linear-gradient(to top, rgba(20, 23, 26, .96) 8%, rgba(20, 23, 26, .62) 55%, rgba(20, 23, 26, .3) 100%);
}
.tile__index {
  position: absolute;
  top: 1.25rem; inset-inline-end: 1.25rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--steel-400);
  letter-spacing: .1em;
}
.tile__title {
  margin: 0 0 .35rem;
  font-size: var(--fs-h3);
  font-weight: 800;
  color: #fff;
}
.tile__meta { margin: 0; color: var(--steel-200); font-size: var(--fs-sm); }
.tile__cta {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: .9rem;
  color: var(--red-hi);
  font-size: var(--fs-sm);
  font-weight: 700;
  opacity: 0;
  transform: translateY(.35rem);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.tile:hover .tile__cta, .tile:focus-within .tile__cta { opacity: 1; transform: translateY(0); }
.tile__link { position: absolute; inset: 0; z-index: 3; }
.tile::after {
  content: "";
  position: absolute;
  inset-inline-start: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: inline-end;
  transition: transform var(--dur) var(--ease);
}
.tile:hover::after, .tile:focus-within::after { transform: scaleX(1); }

/* ==========================================================================
   Product families — the homepage's main grid
   Six-column base so two lead cards (span 3) and three supporting cards
   (span 2) both divide evenly. No filler cells, and a real hierarchy between
   the flagship lines and the rest.
   ========================================================================== */
.families {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.family { grid-column: span 2; }
.family--lead { grid-column: span 3; }

@media (max-width: 1000px) {
  .families { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .family, .family--lead { grid-column: span 1; }
}
@media (max-width: 620px) {
  .families { grid-template-columns: 1fr; }
}

.family {
  display: flex;
  flex-direction: column;
  background: var(--ink-2);
  transition: background var(--dur) var(--ease);
}
.family:hover { background: var(--ink-3); }

.family__media {
  display: block;
  overflow: hidden;
  background: var(--ink-3);
  aspect-ratio: 16 / 10;
}
.family--lead .family__media { aspect-ratio: 16 / 8; }
.family__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease), opacity var(--dur) var(--ease);
}
.family:hover .family__media img { transform: scale(1.04); }

.family__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(1.15rem, 2vw, 1.75rem);
  border-top: 1px solid var(--line);
}
.family__count {
  margin: 0 0 .5rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--red);
}
.family__title {
  margin: 0 0 1rem;
  font-size: var(--fs-h3);
  font-weight: 800;
  line-height: 1.35;
}
.family__title a:hover { color: var(--red-hi); }

.family__links { list-style: none; margin: 0 0 1.15rem; padding: 0; }
.family__links li { margin: 0; border-top: 1px solid var(--line); }
.family__links li:last-child { border-bottom: 1px solid var(--line); }
.family__links a {
  display: block;
  padding: .55rem 0;
  font-size: var(--fs-sm);
  color: var(--steel-300);
  transition: color var(--dur) var(--ease), padding-inline-start var(--dur) var(--ease);
}
.family__links a:hover { color: #fff; padding-inline-start: .4rem; }
.family .link-arrow { margin-top: auto; }

/* Index tile: fills the odd cell left by five families in a three-column grid. */
.tile--cta {
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0 14px,
      rgba(255, 255, 255, .022) 14px 28px
    ),
    var(--ink-2);
  justify-content: center;
}
.tile--cta .tile__cta { opacity: 1; transform: none; }

/* Subcategory chips under a tile group */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--steel-200);
  transition: all var(--dur) var(--ease);
}
.chip:hover { border-color: var(--red); color: #fff; background: rgba(212, 42, 30, .12); }
.chip.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.section--paper .chip { border-color: var(--line-ink-strong); color: var(--fg-ink-muted); }
.section--paper .chip:hover { border-color: var(--red); color: var(--red); background: rgba(212, 42, 30, .07); }

/* ==========================================================================
   Cards (news, catalogs, certificates, team)
   ========================================================================== */
.grid { display: grid; gap: clamp(1rem, 2vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.section--paper .card { background: #fff; border-color: var(--line-ink); }
.section--paper .card:hover { border-color: var(--line-ink-strong); }

.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-3); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
/* Awaiting photography (brief item 7). */
.card__media--empty {
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(135deg, transparent 0 12px, rgba(255, 255, 255, .03) 12px 24px),
    var(--ink-3);
}
.card__placeholder {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--steel-400);
}
.section--paper .card__media--empty {
  background:
    repeating-linear-gradient(135deg, transparent 0 12px, rgba(20, 23, 26, .04) 12px 24px),
    var(--paper-2);
}

.card__body { padding: 1.35rem; display: flex; flex-direction: column; flex: 1; }
.card__meta { font-size: var(--fs-xs); color: var(--fg-muted); margin-bottom: .5rem; letter-spacing: .04em; }
.section--paper .card__meta { color: var(--fg-ink-muted); }
.card__title { font-size: 1.0625rem; font-weight: 700; line-height: 1.5; margin: 0 0 .6rem; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__excerpt { margin: 0 0 1rem; font-size: var(--fs-sm); color: var(--fg-muted); }
.section--paper .card__excerpt { color: var(--fg-ink-muted); }
.card__foot { margin-top: auto; padding-top: .5rem; }

/* Team — name and role only, no photo/placeholder box. */
.card--person { border-top: 2px solid var(--red); }
.card--person .card__body { padding: 1.5rem 1.35rem; }
.person__name { font-size: 1.05rem; font-weight: 800; margin: 0 0 .2rem; }
.person__role { font-size: var(--fs-sm); color: var(--red); font-weight: 600; margin: 0; }

/* Certificates */
.cert {
  display: flex; flex-direction: column;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.cert__media {
  aspect-ratio: 3 / 4;
  background: #fff;
  display: grid; place-items: center;
  padding: .75rem;
}
.cert__media img { width: 100%; height: 100%; object-fit: contain; }
.cert__body { padding: 1rem 1.15rem; border-top: 1px solid var(--line); }
.cert__title { font-size: var(--fs-sm); font-weight: 700; margin: 0 0 .25rem; }
.cert__issuer { font-size: var(--fs-xs); color: var(--fg-muted); margin: 0; }

/* ISO badge row */
.iso-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.iso-badge {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .6rem 1.05rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: .04em;
}
.iso-badge::before { content: "✓"; color: var(--red); font-weight: 900; }

/* ==========================================================================
   Customers / logos
   ========================================================================== */
.sectors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
  gap: 1px;
  background: var(--line-ink);
  border: 1px solid var(--line-ink);
}
.section:not(.section--paper) .sectors { background: var(--line); border-color: var(--line); }
.sector {
  background: var(--paper);
  padding: 1.75rem 1.5rem;
  transition: background var(--dur) var(--ease);
}
.section:not(.section--paper) .sector { background: var(--ink-2); }
.sector:hover { background: #fff; }
.section:not(.section--paper) .sector:hover { background: var(--ink-3); }
.sector__num {
  font-size: var(--fs-xs); font-weight: 800; color: var(--red);
  letter-spacing: .12em; display: block; margin-bottom: .75rem;
}
.sector__title { font-size: 1rem; font-weight: 700; margin: 0; line-height: 1.6; }

/* Sector list — icon-led, three columns so six items fill exactly two rows.
   Dividers are hairlines between rows, not a boxed table. */
.sector-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 4vw, 3.5rem);
}
@media (max-width: 900px) { .sector-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sector-list { grid-template-columns: 1fr; } }

.sector-item {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  margin: 0;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}
.sector-item__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--red);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.sector-item:hover .sector-item__icon { border-color: var(--red); background: rgba(212, 42, 30, .1); }
.sector-item__label {
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.6;
  padding-top: .3rem;
}

.logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.logo-wall__item {
  background: var(--ink-2);
  aspect-ratio: 16 / 9;
  display: grid; place-items: center;
  padding: 1.25rem;
}
.logo-wall__item img {
  max-height: 3.5rem; width: auto;
  filter: grayscale(1) brightness(1.6) contrast(.85);
  opacity: .65;
  transition: opacity var(--dur) var(--ease), filter var(--dur) var(--ease);
}
.logo-wall__item:hover img { filter: none; opacity: 1; }

/* Brand cards — image-led, wordmark as type. */
.reps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 1000px) { .reps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .reps { grid-template-columns: 1fr; } }

.rep {
  display: flex;
  flex-direction: column;
  background: var(--ink-2);
  transition: background var(--dur) var(--ease);
}
.rep:hover { background: var(--ink-3); }

.rep__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink-3);
}
.rep__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.9) contrast(1.04);
  transition: transform .7s var(--ease), filter var(--dur) var(--ease);
}
.rep:hover .rep__media img { transform: scale(1.05); filter: none; }

.rep__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(1.15rem, 2vw, 1.6rem);
  border-top: 1px solid var(--line);
}
.rep__origin {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--red);
}
.rep__name { margin: .5rem 0 .85rem; }
.rep__latin {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
}
.rep__local {
  display: block;
  margin-top: .15rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--steel-300);
}
.rep__name a:hover .rep__latin { color: var(--red-hi); }
.rep__desc {
  margin: 0 0 1.1rem;
  font-size: var(--fs-sm);
  color: var(--fg-muted);
}
.rep .link-arrow { margin-top: auto; }

/* Brand (نمایندگی) panels — used on the brand pages themselves */
.brand-panel {
  display: grid;
  grid-template-columns: 15rem 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-2);
}
@media (max-width: 800px) { .brand-panel { grid-template-columns: 1fr; } }
.brand-panel__mark {
  display: grid; place-items: center;
  padding: 2rem 1.5rem;
  background: #fff;
  border-inline-end: 1px solid var(--line);
}
.brand-panel__mark img { max-height: 4.25rem; width: auto; object-fit: contain; }
.brand-panel__body { padding: 1.75rem; }
.brand-panel__title { margin: 0 0 .15rem; font-size: var(--fs-h3); }
.brand-panel__origin { font-size: var(--fs-xs); color: var(--red); font-weight: 700; letter-spacing: .1em; }
.brand-panel__desc { margin: .85rem 0 1.1rem; color: var(--fg-muted); font-size: var(--fs-sm); }

/* ==========================================================================
   Product gallery + lightbox
   ========================================================================== */
.gallery { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.gallery__lead { margin: 0; background: var(--ink-2); }
.gallery__lead img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: opacity var(--dur) var(--ease);
}
.gallery__lead a:hover img { opacity: .88; }

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(11rem, 45vw), 1fr));
  gap: 1px;
  background: var(--line);
}
.gallery__item {
  position: relative;
  display: block;
  background: var(--ink-2);
  overflow: hidden;
}
.gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .5s var(--ease), opacity var(--dur) var(--ease);
}
.gallery__item:hover img { transform: scale(1.06); opacity: .9; }
.gallery__item::after {
  content: "";
  position: absolute;
  inset-inline-start: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: inline-end;
  transition: transform var(--dur) var(--ease);
}
.gallery__item:hover::after { transform: scaleX(1); }

.lightbox {
  position: fixed; inset: 0; z-index: 500;
  display: none;
  place-items: center;
  background: rgba(10, 12, 14, .95);
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox.is-open { display: grid; }
.lightbox img {
  max-width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border: 1px solid var(--line);
}
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute;
  display: grid; place-items: center;
  width: 3rem; height: 3rem;
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: #fff;
  transition: background var(--dur) var(--ease);
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: var(--red); border-color: var(--red); }
.lightbox__close { top: 1.25rem; inset-inline-end: 1.25rem; }
.lightbox__prev  { top: 50%; inset-inline-end: 1.25rem; transform: translateY(-50%); }
.lightbox__next  { top: 50%; inset-inline-start: 1.25rem; transform: translateY(-50%); }
.lightbox__count {
  position: absolute;
  bottom: 1.25rem; inset-inline-start: 50%;
  transform: translateX(50%);
  font-size: var(--fs-sm);
  color: var(--steel-300);
}

/* ==========================================================================
   Spec tables — the technical signature
   ========================================================================== */
.spec-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); margin-bottom: 1.5rem; }
.spec-table caption {
  text-align: start;
  font-weight: 800;
  padding-bottom: .85rem;
  color: var(--fg);
}
.spec-table th, .spec-table td {
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
}
.spec-table thead th {
  border-bottom: 1px solid var(--line-strong);
  color: var(--fg-muted);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.spec-table tbody th { width: 38%; font-weight: 600; color: var(--fg-muted); }
.spec-table tbody tr:hover { background: rgba(255, 255, 255, .03); }
.section--paper .spec-table th, .section--paper .spec-table td { border-color: var(--line-ink); }
.section--paper .spec-table thead th { border-color: var(--line-ink-strong); color: var(--fg-ink-muted); }
.section--paper .spec-table tbody th { color: var(--fg-ink-muted); }
.section--paper .spec-table tbody tr:hover { background: rgba(20, 23, 26, .03); }

/* ==========================================================================
   Page hero (inner pages) + breadcrumbs
   ========================================================================== */
.page-hero {
  position: relative;
  padding-block: clamp(3.5rem, 7vw, 6rem);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.page-hero__img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.page-hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(20, 23, 26, .95), rgba(20, 23, 26, .78));
}
.page-hero__title { margin: .75rem 0 0; font-size: var(--fs-h1); max-width: 24ch; }
.page-hero__lede { margin: 1rem 0 0; max-width: 60ch; color: var(--steel-200); }

.crumbs { font-size: var(--fs-xs); color: var(--fg-muted); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.crumbs li { margin: 0; display: inline-flex; align-items: center; gap: .5rem; }
.crumbs li + li::before { content: "/"; color: var(--steel-400); }
.crumbs a:hover { color: var(--red-hi); }
.crumbs [aria-current] { color: var(--fg); }

/* ==========================================================================
   Content (prose) — used for page-builder tabs and post bodies
   ========================================================================== */
.prose { max-width: 78ch; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 2.25em; font-size: var(--fs-h2); }
.prose h3 { margin-top: 1.9em; }
.prose h2 + h3 { margin-top: 1em; }
.prose img { border-radius: var(--radius); margin-block: 1.75rem; }
.prose figure { margin: 1.75rem 0; }
.prose figcaption { font-size: var(--fs-xs); color: var(--fg-muted); text-align: center; margin-top: .6rem; }
.prose a { color: var(--red-hi); text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--red); }
.prose blockquote {
  margin: 1.75rem 0;
  padding: .35rem 1.35rem;
  border-inline-start: 2px solid var(--red);
  color: var(--fg-muted);
  font-size: 1.05em;
}
.prose ul { list-style: none; padding-inline-start: 0; }
.prose ul > li { position: relative; padding-inline-start: 1.4rem; }
.prose ul > li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0; top: .78em;
  width: .45rem; height: 1px;
  background: var(--red);
}
.prose ol { padding-inline-start: 1.4rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); margin-block: 1.75rem; }
.prose th, .prose td { padding: .75rem 1rem; border: 1px solid var(--line); text-align: start; }
.prose thead th { background: var(--ink-3); font-weight: 700; }
.section--paper .prose a { color: var(--red); }
.section--paper .prose blockquote { color: var(--fg-ink-muted); }
.section--paper .prose th, .section--paper .prose td { border-color: var(--line-ink); }
.section--paper .prose thead th { background: var(--paper-2); }
.section--paper .prose figcaption { color: var(--fg-ink-muted); }

/* Tabbed content (page-builder tabs) */
.tabs { display: grid; grid-template-columns: 16rem 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 900px) { .tabs { grid-template-columns: 1fr; } }
.tabs__nav { position: sticky; top: 7rem; display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 900px) { .tabs__nav { position: static; flex-direction: row; flex-wrap: wrap; } }
.tabs__btn {
  background: var(--ink-2);
  border: 0;
  padding: .95rem 1.15rem;
  text-align: start;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--steel-200);
  border-inline-start: 2px solid transparent;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  flex: 1 1 auto;
}
.tabs__btn:hover { background: var(--ink-3); color: #fff; }
.tabs__btn.is-active { background: var(--ink-3); color: #fff; border-inline-start-color: var(--red); }
.section--paper .tabs__nav { background: var(--line-ink); border-color: var(--line-ink); }
.section--paper .tabs__btn { background: #fff; color: var(--fg-ink-muted); }
.section--paper .tabs__btn:hover, .section--paper .tabs__btn.is-active { background: var(--paper-2); color: var(--fg-ink); }
.tabs__panel { display: none; }
.tabs__panel.is-active { display: block; animation: fade .4s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(.5rem); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Catalog download (email-gated)
   ========================================================================== */
.catalog {
  display: grid;
  grid-template-columns: 7rem 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease);
}
.catalog:hover { border-color: var(--line-strong); }
@media (max-width: 700px) { .catalog { grid-template-columns: 4.5rem 1fr; } .catalog .btn { grid-column: 1 / -1; justify-content: center; } }
.catalog__thumb { aspect-ratio: 3 / 4; background: var(--ink-3); border: 1px solid var(--line); overflow: hidden; }
.catalog__thumb img { width: 100%; height: 100%; object-fit: cover; }
.catalog__title { font-size: 1rem; font-weight: 700; margin: 0 0 .25rem; }
.catalog__meta { font-size: var(--fs-xs); color: var(--fg-muted); margin: 0; }

.modal {
  position: fixed; inset: 0; z-index: 400;
  display: none;
  place-items: center;
  padding: var(--gutter);
  background: rgba(0, 0, 0, .72);
}
.modal.is-open { display: grid; }
.modal__box {
  width: min(30rem, 100%);
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: var(--shadow-lift);
  animation: fade .3s var(--ease);
}
.modal__title { margin: 0 0 .4rem; font-size: var(--fs-h3); }
.modal__lede { margin: 0 0 1.5rem; color: var(--fg-muted); font-size: var(--fs-sm); }
.modal__close { position: absolute; top: 1rem; inset-inline-end: 1rem; }

/* Forms */
.field { margin-bottom: 1rem; }
.field label { display: block; margin-bottom: .4rem; font-size: var(--fs-sm); font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: .8rem 1rem;
  background: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--fg);
  font: inherit;
  font-size: var(--fs-sm);
  transition: border-color var(--dur) var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--red); outline: none; }
.field input::placeholder, .field textarea::placeholder { color: var(--steel-400); }
.field__hint { margin: .35rem 0 0; font-size: var(--fs-xs); color: var(--steel-400); }
.form-note { font-size: var(--fs-xs); color: var(--steel-400); margin-top: .85rem; }
.form-msg { padding: .8rem 1rem; border-radius: var(--radius); font-size: var(--fs-sm); margin-bottom: 1rem; }
.form-msg--ok { background: rgba(46, 160, 67, .14); border: 1px solid rgba(46, 160, 67, .4); }
.form-msg--err { background: rgba(212, 42, 30, .14); border: 1px solid rgba(212, 42, 30, .45); }

/* ==========================================================================
   Comments — WordPress's own default markup (comment_form(), the core
   comment walker), restyled to match the rest of the site rather than left
   as unstyled core HTML. The classes below (.comments-area, .comment-form,
   #reply-title, .comment-list…) are WordPress's, not ours, so they're
   targeted directly rather than through .field/.btn.
   ========================================================================== */
.comments-area {
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(2.5rem, 5vw, 4rem) var(--gutter);
  border-top: 1px solid var(--line);
}
.comments-title,
.comment-reply-title {
  margin: 0 0 1.5rem;
  font-size: var(--fs-h3);
  font-weight: 800;
}
.comment-reply-title small {
  margin-inline-start: .75rem;
  font-size: var(--fs-xs);
  font-weight: 500;
}
.comment-reply-title small a { color: var(--steel-400); border-bottom: 1px solid var(--line-strong); }
.comment-reply-title small a:hover { color: #fff; }

.comment-notes,
.comment-awaiting-moderation,
.logged-in-as {
  margin: 0 0 1.5rem;
  font-size: var(--fs-sm);
  color: var(--fg-muted);
}
.comment-notes .required,
.comment-form-comment .required,
.comment-form-author .required,
.comment-form-email .required { color: var(--red-hi); }

.comment-form p { margin: 0 0 1rem; }
.comment-form label {
  display: block;
  margin-bottom: .4rem;
  font-size: var(--fs-sm);
  font-weight: 600;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: .8rem 1rem;
  background: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--fg);
  font: inherit;
  font-size: var(--fs-sm);
  transition: border-color var(--dur) var(--ease);
}
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus { border-color: var(--red); outline: none; }
.comment-form textarea { resize: vertical; min-height: 8rem; }

.comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
}
.comment-form-cookies-consent input { margin-top: .3rem; accent-color: var(--red); }
.comment-form-cookies-consent label { margin: 0; font-size: var(--fs-xs); font-weight: 400; color: var(--fg-muted); }

.form-submit { margin-top: 1.5rem; }
.comment-form #submit {
  display: inline-flex;
  align-items: center;
  padding: .85rem 1.6rem;
  background: var(--red);
  color: #fff;
  border: 1px solid var(--red);
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.comment-form #submit:hover { background: var(--red-hi); border-color: var(--red-hi); }

/* The comment thread itself, for whenever a post actually has replies. */
.comment-list { list-style: none; margin: 0 0 3rem; padding: 0; }
.comment-list .children { list-style: none; margin: 0; padding-inline-start: clamp(1.25rem, 4vw, 2.75rem); }
.comment-list > li + li,
.comment-list .children > li { margin-top: 1.5rem; }
.comment-body {
  padding: 1.35rem;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.comment-author { display: flex; align-items: center; gap: .65rem; margin-bottom: .35rem; }
.comment-author .avatar { border-radius: 999px; flex: none; }
.comment-author .fn { font-style: normal; font-weight: 700; font-size: var(--fs-sm); }
.comment-author .says { display: none; }
.comment-metadata { font-size: var(--fs-xs); }
.comment-metadata a { color: var(--steel-400); }
.comment-metadata a:hover { color: #fff; }
.comment-content p { margin: .75rem 0 0; color: var(--fg-muted); font-size: var(--fs-sm); line-height: 1.75; }
.comment-content p:first-child { margin-top: .5rem; }
.reply { margin-top: .75rem; }
.comment-reply-link {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--red-hi);
  border-bottom: 1px solid transparent;
}
.comment-reply-link:hover { border-color: var(--red-hi); }
.pingback .comment-body,
.trackback .comment-body { padding: .9rem 1.35rem; }

.comment-navigation { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; font-size: var(--fs-sm); }
.comment-navigation a { color: var(--fg); border-bottom: 1px solid var(--line-strong); }
.comment-navigation a:hover { border-color: var(--red); }
.no-comments { font-size: var(--fs-sm); color: var(--fg-muted); margin-bottom: 2rem; }

@media (max-width: 640px) {
  .comment-list .children { padding-inline-start: 1rem; }
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  position: relative;
  padding-block: clamp(3rem, 6vw, 5rem);
  background: var(--ink-2);
  border-block: 1px solid var(--line);
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 4px;
  background: var(--red);
}
.cta-band__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.75rem;
}
.cta-band__title { margin: 0 0 .5rem; font-size: var(--fs-h2); max-width: 22ch; }
.cta-band__lede { margin: 0; color: var(--fg-muted); max-width: 52ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #0f1214;
  border-top: 1px solid var(--line);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  font-size: var(--fs-sm);
}
/* Elementor's "boxed" content-width containers wrap their actual children in
   an inner .e-con-inner div (the outer element only handles the max-width
   centering) — the grid has to apply one level down, on that inner div, or
   it has nothing to place children into. */
.footer-grid > .e-con-inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
}
/* Each column still carries the fixed percentage width (28%/22%/22%/26%)
   Elementor generated for its old flex layout — against a grid track that
   percentage no longer means "fill the column," so every column was
   rendering as a narrow, cramped box instead of spanning its track. */
.footer-grid > .e-con-inner > .e-con { width: 100%; }
.footer-grid { padding-bottom: 3rem; }
@media (max-width: 1000px) { .footer-grid > .e-con-inner { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .footer-grid > .e-con-inner { grid-template-columns: 1fr; } }

.footer__brand img { height: 2.75rem; width: auto; margin-bottom: 1.15rem; }
.footer__about { color: var(--fg-muted); margin-bottom: 1.35rem; }
.footer__title {
  margin: 0 0 1.15rem;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: .14em;
  color: #fff;
  padding-bottom: .65rem;
  border-bottom: 1px solid var(--line);
}
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin-bottom: .55rem; }
.footer__list a { color: var(--fg-muted); }
.footer__list a:hover { color: #fff; }

.contact-line { display: flex; gap: .65rem; margin-bottom: .9rem; color: var(--fg-muted); }
.contact-line b { color: #fff; font-weight: 600; display: block; }
.contact-line svg { flex: none; margin-top: .35rem; color: var(--red); }

.socials { display: flex; gap: .5rem; margin-top: 1.25rem; }
.socials a {
  display: grid; place-items: center;
  width: 2.4rem; height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--fg-muted);
  transition: all var(--dur) var(--ease);
}
.socials a:hover { border-color: var(--red); color: #fff; background: rgba(212, 42, 30, .14); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 1.35rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  color: var(--steel-400);
  font-size: var(--fs-xs);
}
.footer-bottom a:hover { color: var(--fg); }

/* Trust badges (enamad etc.) */
.trust-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.trust-row img { height: 4.5rem; width: auto; background: #fff; padding: .35rem; border-radius: var(--radius); }

/* ==========================================================================
   Utilities
   ========================================================================== */
.u-muted { color: var(--fg-muted); }
.u-center { text-align: center; }
.u-mt-0 { margin-top: 0; }
.u-mb-0 { margin-bottom: 0; }
.u-stack > * + * { margin-top: 1rem; }
.u-flex { display: flex; gap: 1rem; flex-wrap: wrap; }
.u-hide { display: none !important; }
@media (max-width: 700px) { .u-hide\@sm { display: none !important; } }

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.pagination { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: 3rem; }
.pagination .page-numbers {
  display: inline-grid; place-items: center;
  min-width: 2.6rem; height: 2.6rem;
  padding-inline: .6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: all var(--dur) var(--ease);
}
.pagination .page-numbers:hover { border-color: var(--fg); }
.pagination .page-numbers.current { background: var(--red); border-color: var(--red); color: #fff; }

/* Reveal-on-scroll. Gated behind the `rdp-js` flag that the document sets before
   first paint: if scripting is unavailable or the bundle fails, content must
   still be visible rather than sitting at opacity 0 forever. */
.rdp-js .reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.rdp-js .reveal.is-in { opacity: 1; transform: 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;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Print */
@media print {
  .site-header, .elementor-location-header, .site-footer, .elementor-location-footer, .cta-band, .drawer, .modal { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- Language switcher -------------------------------------------- */
.lang-switch { display: inline-flex; align-items: center; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lang-switch__item {
  padding: .3rem .7rem;
  background: var(--ink-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--steel-300);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.lang-switch__item:hover { color: #fff; background: var(--ink-3); }
.lang-switch__item.is-active { background: var(--red); color: #fff; }

/* ---------- LTR (English) direction fixes --------------------------------
   Arrows and slide-in affordances are authored for RTL, where "forward" is to
   the left. In English the reading direction flips, so they flip with it. */
[dir="ltr"] .btn:hover .btn__arrow { transform: translateX(.25rem); }
[dir="ltr"] .link-arrow::after { content: "→"; }
[dir="ltr"] .link-arrow:hover::after { transform: translateX(.3rem); }
[dir="ltr"] .tile::after,
[dir="ltr"] .gallery__item::after { transform-origin: left; }
[dir="ltr"] .mega::before { background: linear-gradient(to right, transparent, var(--red), transparent); }
[dir="ltr"] .lightbox__prev { inset-inline-end: auto; left: 1.25rem; }
[dir="ltr"] .lightbox__next { inset-inline-start: auto; right: 1.25rem; }
[dir="ltr"] body { font-variant-numeric: tabular-nums; }


/* ==========================================================================
   Product page: jump bar, sub-category grid, document layout
   ========================================================================== */

/* Sticky anchor bar under the hero. Sits below the header, never over it. */
.jumpbar {
  position: sticky;
  top: 4.5rem;
  z-index: 90;
  background: rgba(20, 23, 26, .92);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.jumpbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
}
.jumpbar__list {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.jumpbar__list::-webkit-scrollbar { display: none; }
.jumpbar__list li { margin: 0; flex: none; }
.jumpbar__list a {
  display: block;
  padding: .55rem .85rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--steel-300);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.jumpbar__list a:hover { color: #fff; border-bottom-color: var(--red); }
.jumpbar__cta { flex: none; padding: .6rem 1.15rem; }
@media (max-width: 760px) { .jumpbar__cta { display: none; } }

/* Sub-category cards — compact, image-led, one line of type. */
.subcats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.subcat {
  display: flex;
  flex-direction: column;
  background: var(--ink-2);
  transition: background var(--dur) var(--ease);
}
.subcat:hover { background: var(--ink-3); }
.subcat__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink-3);
}
.subcat__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.subcat:hover .subcat__media img { transform: scale(1.05); }
.subcat__body {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1rem 1.15rem 1.25rem;
  border-top: 1px solid var(--line);
}
.subcat__title { font-size: var(--fs-sm); font-weight: 700; line-height: 1.55; }
.subcat:hover .subcat__title { color: var(--red-hi); }
.subcat__meta { font-size: var(--fs-xs); color: var(--steel-400); }

/* Document layout: measured column plus a sticky rail. */
/* The shell is capped so the measured text column does not leave a wide empty
   band beside it — previously the grid stretched to 1280px while the body was
   limited to 72ch, and the difference showed up as dead space. */
.doc {
  display: grid;
  grid-template-columns: 17rem minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: start;
  max-width: 68rem;
  margin-inline: auto;
}
@media (max-width: 1000px) {
  .doc { grid-template-columns: 1fr; }
  .doc__aside { order: 2; }
}
.doc__aside { position: sticky; top: 9rem; display: grid; gap: 1.25rem; }
@media (max-width: 1000px) { .doc__aside { position: static; } }

/* No max-width here: the shell above already sets the measure, and capping the
   column a second time is what created the empty band. */
.doc__body { min-width: 0; }

.toc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .35rem 1.25rem 1.15rem;
  background: var(--ink-2);
}
.toc[open] { padding-bottom: 1.15rem; }
.toc__title {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0;
  padding: .9rem 0;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--red);
  cursor: pointer;
  list-style: none;
  min-height: 2.75rem;
}
.toc__title::-webkit-details-marker { display: none; }
.toc__title::after {
  content: "";
  margin-inline-start: auto;
  width: .5rem; height: .5rem;
  border-inline-end: 2px solid currentColor;
  border-block-end: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--dur) var(--ease);
}
.toc[open] .toc__title::after { transform: rotate(-135deg); }
.toc__count {
  padding: .1rem .45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--steel-300);
  font-size: .68rem;
  letter-spacing: 0;
}
.toc nav { max-height: min(52vh, 28rem); overflow-y: auto; }
.toc__list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.toc__item { margin: 0; }
.toc__item a {
  display: block;
  padding: .38rem 0;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--steel-300);
  border-inline-start: 2px solid transparent;
  padding-inline-start: .7rem;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.toc__item a:hover { color: #fff; border-inline-start-color: var(--line-strong); }
.toc__item.is-current > a { color: #fff; border-inline-start-color: var(--red); }
.toc__item--h3 a { padding-inline-start: 1.5rem; font-size: var(--fs-xs); color: var(--steel-400); }

.aside-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--ink-2);
}
.aside-card__title { margin: 0 0 .4rem; font-size: 1rem; font-weight: 800; }
.aside-card__text { margin: 0 0 1rem; font-size: var(--fs-sm); color: var(--fg-muted); }
.aside-card__facts { list-style: none; margin: 1.25rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--line); }
.aside-card__facts li {
  display: flex; align-items: flex-start; gap: .5rem;
  margin-bottom: .6rem;
  font-size: var(--fs-xs);
  color: var(--fg-muted);
}
.aside-card__facts svg { flex: none; color: var(--red); margin-top: .15rem; }

/* Client copy arrives with Tailwind utility classes from the old build. Those
   stylesheets no longer load, so tables and callouts are styled from scratch
   here and the leftover light-theme utilities are neutralised. */
.prose table { display: block; overflow-x: auto; white-space: normal; }
.prose table th, .prose table td { min-width: 8rem; }
.prose h2 { padding-top: .35em; scroll-margin-top: 9rem; }
.prose h3 { scroll-margin-top: 9rem; }
.prose h2 + p, .prose h3 + p { margin-top: .35em; }


/* ==========================================================================
   Mobile
   ~65% of this site's traffic is on a phone, so these are corrections to the
   desktop-first defaults above, not afterthoughts.
   ========================================================================== */

/* Sticky action bar. Hidden on desktop, where the header CTA is always visible. */
.mobile-actions { display: none; }

@media (max-width: 860px) {
  .mobile-actions {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 150;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 1px;
    background: var(--line);
    border-top: 1px solid var(--line-strong);
    /* Clear of the iOS home indicator. */
    padding-bottom: env(safe-area-inset-bottom, 0);
    box-shadow: 0 -12px 32px -20px rgba(0, 0, 0, .9);
  }
  .mobile-actions__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .2rem;
    min-height: 3.5rem;          /* comfortably above the 44px tap-target floor */
    padding: .55rem .35rem;
    background: var(--ink-2);
    color: var(--fg);
    font-size: .72rem;
    font-weight: 700;
    text-align: center;
  }
  .mobile-actions__btn--primary { background: var(--red); color: #fff; }
  .mobile-actions__btn svg { flex: none; }

  /* The bar overlays the end of the page; give the footer room. */
  .site-footer { padding-bottom: 4.5rem; }
}

@media (max-width: 860px) {
  /* Type: tighten the desktop scale so headings stop eating the viewport. */
  :root {
    --fs-display: clamp(1.9rem, 8.5vw, 2.6rem);
    --fs-h1: clamp(1.55rem, 6.6vw, 2.1rem);
    --fs-h2: clamp(1.3rem, 5.4vw, 1.7rem);
    --fs-h3: 1.1rem;
    --section-y: clamp(2.5rem, 9vw, 3.5rem);
  }

  body { line-height: 1.8; }

  /* Hero: full-height heroes are a scroll tax on a phone. */
  .hero { min-height: 32rem; }
  .hero__title { max-width: none; }
  .hero__actions { display: grid; grid-template-columns: 1fr; gap: .6rem; }
  .hero__actions .btn { justify-content: center; min-height: 3rem; }
  .hero__stats { margin-top: 2rem; }

  /* Header: keep the bar shallow, the logo legible. */
  .header-bar { min-height: 3.75rem; }
  .brand img { height: 2.1rem; }
  .header-actions { gap: .4rem; }
  .icon-btn { width: 2.75rem; height: 2.75rem; }

  /* Anchor bar sits directly under a shorter header. */
  .jumpbar { top: 3.75rem; }
  .jumpbar__inner { min-height: 3rem; }
  .jumpbar__list { gap: 0; }
  .jumpbar__list a { padding: .7rem .7rem; min-height: 2.75rem; display: flex; align-items: center; }

  /* Contents list leads the article; the enquiry card follows it.
     `display: contents` dissolves the sidebar wrapper so its two children become
     direct flex items and can be ordered independently — otherwise the CTA card
     rides above the article and the reader scrolls past a sales pitch to reach
     what they came for. */
  .doc { display: flex; flex-direction: column; gap: 1.25rem; }
  .doc__aside { display: contents; }
  .doc .toc { order: 0; }
  .doc__body { order: 1; max-width: none; }
  .doc .aside-card { order: 2; }

  /* Galleries: two up reads better than one huge image per screen. */
  .gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery__lead img { aspect-ratio: 4 / 3; }

  /* Sub-category cards: two up, shorter media. */
  .subcats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .subcat__media { aspect-ratio: 1 / 1; }
  .subcat__body { padding: .75rem .85rem 1rem; }
  .subcat__title { font-size: .82rem; }

  /* Product families: image + body stack, one per row. */
  .family__media, .family--lead .family__media { aspect-ratio: 16 / 10; }
  .family__body { padding: 1.1rem; }

  /* Sections and cards */
  .section-head { margin-bottom: 1.75rem; }
  .section-head--split { align-items: flex-start; }
  .section-head--split .btn { width: 100%; justify-content: center; min-height: 3rem; }
  .cta-band__inner { flex-direction: column; align-items: stretch; }
  .cta-band__actions .btn { width: 100%; justify-content: center; min-height: 3rem; }

  /* Buttons and inputs reach the 44px tap-target floor. */
  .btn { min-height: 2.9rem; }
  .field input, .field textarea, .field select { min-height: 2.9rem; font-size: 16px; } /* 16px stops iOS zooming on focus */
  .search-form input[type="search"] { font-size: 16px; }

  /* Footer collapses to a single readable column. */
  .footer-grid > .e-con-inner { gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: .5rem; }

  /* Lightbox controls move within thumb reach. */
  .lightbox__prev, .lightbox__next { top: auto; bottom: 1.25rem; transform: none; }
  .lightbox__prev { inset-inline-end: 1.25rem; }
  .lightbox__next { inset-inline-start: 1.25rem; }
  .lightbox__count { bottom: 5.25rem; }
}

@media (max-width: 560px) {
  .gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat__num { font-size: 1.5rem; }
}

/* Wide content must scroll inside its own box — the page itself never does. */
@media (max-width: 860px) {
  .prose table { font-size: .8rem; }
  .prose pre, .prose table { max-width: 100%; }
}

@media (max-width: 860px) {
  /* The header switcher duplicates the one in the drawer and crowds the bar at
     the width where space is scarcest. */
  .header-actions .lang-switch { display: none; }
  .drawer__head .lang-switch { display: inline-flex; }
  .brand img { max-width: 8.5rem; object-fit: contain; }
}


/* ==========================================================================
   Brand cards with official wordmarks
   ========================================================================== */
.rep { position: relative; }
.rep__logo {
  display: grid;
  place-items: center;
  padding: 1.15rem 1.25rem;
  background: #f4f6f7;
  border-top: 1px solid var(--line);
}
.rep__logo img {
  max-height: 2.1rem;
  width: auto;
  max-width: 78%;
  object-fit: contain;
}
.rep__name { margin: .5rem 0 .85rem; font-size: 1.02rem; font-weight: 800; }
.rep__name a:hover { color: var(--red-hi); }

/* ==========================================================================
   Achievements — a numbered rail, not a grid with an orphan cell
   ========================================================================== */
.achievements {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: clamp(2rem, 5vw, 4rem);
}
@media (max-width: 860px) { .achievements { columns: 1; } }

.achievement {
  break-inside: avoid;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin: 0;
  padding: 1.05rem 0;
  border-top: 1px solid var(--line);
}
.achievement__num {
  flex: none;
  width: 2rem;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.35;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}
.achievement__text { margin: 0; font-size: var(--fs-sm); line-height: 1.75; }

/* ==========================================================================
   Company-first home page (review section 1, items 5–9)
   ========================================================================== */

/* Opening statement: a short lead against a wide measure of copy. */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.75rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 900px) { .intro { grid-template-columns: 1fr; gap: 1.5rem; } }
.intro__lead .section-head__title { margin: 0; font-size: clamp(1.6rem, 3.2vw, 2.5rem); }
.intro__text { font-size: clamp(1rem, 1.15vw, 1.1rem); line-height: 1.95; }
.intro__body .link-arrow { margin-top: .5rem; }

/* The two divisions: the primary fork in the journey, so they are the largest
   interactive objects on the page. */
.units {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 860px) { .units { grid-template-columns: 1fr; } }

.unit {
  position: relative;
  display: flex;
  min-height: 24rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--ink-2);
  overflow: hidden;
  isolation: isolate;
}
.unit__img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.unit:hover .unit__img { transform: scale(1.04); }
.unit__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(20, 23, 26, .97) 20%, rgba(20, 23, 26, .78) 60%, rgba(20, 23, 26, .55) 100%);
}
.unit__body { display: flex; flex-direction: column; width: 100%; margin-top: auto; }
.unit__title { margin: 0 0 .6rem; font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 800; color: #fff; }
.unit__lede { margin: 0 0 1.35rem; font-size: var(--fs-sm); color: var(--steel-200); max-width: 44ch; }

.unit__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.unit__list li { margin: 0; border-bottom: 1px solid var(--line); }
.unit__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 0;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--steel-100);
  transition: color var(--dur) var(--ease), padding-inline-start var(--dur) var(--ease);
}
.unit__list a:hover { color: #fff; padding-inline-start: .4rem; }
.unit__list b {
  min-width: 1.75rem;
  padding: .1rem .4rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--red-hi);
  text-align: center;
}

/* Capability cards */
.caps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 1000px) { .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .caps { grid-template-columns: 1fr; } }
.cap { background: var(--ink-2); padding: clamp(1.25rem, 2.5vw, 1.75rem); transition: background var(--dur) var(--ease); }
.cap:hover { background: var(--ink-3); }
.cap__icon {
  display: grid; place-items: center;
  width: 2.6rem; height: 2.6rem;
  margin-bottom: 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--red);
}
.cap__title { margin: 0 0 .5rem; font-size: 1rem; font-weight: 800; }
.cap__text { margin: 0; font-size: var(--fs-sm); color: var(--fg-muted); }

/* Certificate strip: proof at a glance, full set one click away. */
.certstrip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: clamp(2rem, 4vw, 3rem);
}
@media (max-width: 1000px) { .certstrip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 620px)  { .certstrip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.certstrip__item {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: .9rem;
  background: var(--ink-2);
  text-align: center;
  transition: background var(--dur) var(--ease);
}
.certstrip__item:hover { background: var(--ink-3); }
.certstrip__item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  background: #fff;
  border: 1px solid var(--line);
}
.certstrip__item span { font-size: var(--fs-xs); font-weight: 700; color: var(--steel-200); }

/* Representation cards: logo plate + one distinct paragraph + two links. */
.reps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .reps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .reps { grid-template-columns: 1fr; } }
.rep__logo { border-top: 0; border-bottom: 1px solid var(--line); min-height: 5.5rem; }
.rep__logo strong { color: #14171a; font-size: 1.05rem; letter-spacing: .08em; }
.rep__body { border-top: 0; }
.rep__desc { margin: .6rem 0 1.1rem; font-size: var(--fs-sm); color: var(--fg-muted); }
.rep__links { margin-top: auto; display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.rep__site {
  font-size: var(--fs-xs);
  color: var(--steel-400);
  border-bottom: 1px solid var(--line-strong);
  transition: color var(--dur) var(--ease);
}
.rep__site:hover { color: #fff; }

/* Review item 21: body copy is justified, with the last line left alone. */
.intro__text,
.prose p,
.doc__body p { text-align: justify; text-justify: inter-word; text-align-last: start; }

/* Footer product catalogue (review item 4) */
.footer-grid > .e-con-inner { grid-template-columns: 1.15fr 2.2fr 1fr 1.35fr; }
@media (max-width: 1100px) { .footer-grid > .e-con-inner { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .footer-grid > .e-con-inner { grid-template-columns: 1fr; } }
.footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1.75rem; }
@media (max-width: 620px) { .footer__cols { grid-template-columns: 1fr; } }
.footer__group {
  display: block;
  margin-bottom: .6rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #fff;
}
.footer__group:hover { color: var(--red-hi); }
.footer__cols .footer__list li { margin-bottom: .35rem; }
.footer__cols .footer__list a { font-size: var(--fs-xs); }

/* Brand lock-up: mark above, full company name beneath (review item 12). */
.brand { flex-direction: column; align-items: flex-start; gap: .15rem; }
.brand__name {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--steel-300);
  white-space: nowrap;
}
@media (max-width: 860px) { .brand__name { font-size: .6rem; } }

/* ==========================================================================
   Footer — rebalanced
   Four columns of comparable weight, generous line-height, one contact block.
   ========================================================================== */
.footer-grid > .e-con-inner {
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: clamp(2rem, 4vw, 3.5rem);
}
.footer-grid { padding-bottom: clamp(2.5rem, 5vw, 3.5rem); }
@media (max-width: 1000px) { .footer-grid > .e-con-inner { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .footer-grid > .e-con-inner { grid-template-columns: 1fr; gap: 2rem; } }

.footer__mark { display: inline-flex; flex-direction: column; gap: .3rem; margin-bottom: 1.15rem; }
.footer__mark img { height: 2.5rem; width: auto; margin: 0; }
.footer__mark span { font-size: .7rem; font-weight: 700; letter-spacing: .1em; color: var(--steel-300); }

.footer__about { margin-bottom: 1rem; color: var(--fg-muted); max-width: 34ch; }

/* Certificates as one line with a link, rather than seven badges. */
.footer__iso { margin: 0 0 1.15rem; font-size: var(--fs-xs); color: var(--steel-400); }
.footer__iso a { color: var(--steel-200); border-bottom: 1px solid var(--line-strong); }
.footer__iso a:hover { color: #fff; border-color: var(--red); }

.footer__col .footer__list li { margin-bottom: .5rem; }
.footer__more { color: var(--red-hi) !important; font-weight: 700; }

.footer__phone {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .5rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.footer__phone:hover { color: var(--red-hi); }
.footer__phone svg { color: var(--red); flex: none; }

.footer__mail { display: block; margin-bottom: .75rem; color: var(--fg-muted); }
.footer__mail:hover { color: #fff; }
.footer__hours { margin: 0 0 1rem; font-size: var(--fs-xs); color: var(--steel-400); }
.footer__addr { margin: 0 0 1rem; font-size: var(--fs-xs); color: var(--fg-muted); line-height: 1.8; }
.footer__addr b { display: block; color: var(--steel-200); font-weight: 700; margin-bottom: .15rem; }

.footer-bottom { padding-block: 1.25rem; }

/* ---------- Video hero ---------------------------------------------------- */
.hero__poster,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* The poster paints immediately; the film fades in over it once it can play, so
   there is never a blank frame and LCP is an image, not a video. */
.hero__video { opacity: 0; transition: opacity .8s var(--ease); }
.hero__video.is-playing { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero__video { display: none; } }

/* ==========================================================================
   Native Elementor layer
   The home page is now built from Elementor containers and stock widgets so
   every element is draggable. These rules dress those native structures in the
   design system — Elementor owns the layout, this owns the look.
   ========================================================================== */
.rdp-band { position: relative; }
.rdp-band--line { border-top: 1px solid var(--line); }
.rdp-band--cta { background: var(--ink-2); border-block: 1px solid var(--line); }

/* Kicker + section title */
.rdp-kicker, .rdp-hero-kicker {
  color: var(--red);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .16em;
}
.rdp-kicker p, .rdp-hero-kicker p { margin: 0; }
.rdp-title .elementor-heading-title {
  font-size: var(--fs-h2);
  font-weight: 800;
  letter-spacing: -.015em;
  color: var(--fg);
}

/* Hero */
.rdp-hero-el { min-height: min(82vh, 46rem); }
.rdp-hero-title .elementor-heading-title {
  font-size: var(--fs-display);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.03em;
  max-width: 20ch;
}
.rdp-hero-lede { max-width: 54ch; color: var(--steel-100); }
.rdp-hero-actions { justify-content: flex-start; }

/* Buttons — Elementor's own widget, dressed as ours */
.rdp-btn .elementor-button {
  background: var(--red);
  color: #fff;
  border: 1px solid var(--red);
  border-radius: var(--radius);
  padding: .85rem 1.6rem;
  font-weight: 700;
  font-size: var(--fs-sm);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.rdp-btn .elementor-button:hover { background: var(--red-hi); transform: translateY(-1px); }
.rdp-btn--ghost .elementor-button {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--fg);
}
.rdp-btn--ghost .elementor-button:hover { background: rgba(255,255,255,.06); border-color: var(--fg); }
.rdp-btn--link .elementor-button {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--red-hi);
}
.rdp-btn--link .elementor-button:hover { color: var(--red); transform: none; }

/* Rows and cards */
.rdp-row { align-items: stretch; }
.rdp-card-el {
  background: var(--ink-2);
  border: 1px solid var(--line);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.rdp-card-el:hover { background: var(--ink-3); border-color: var(--line-strong); }
.rdp-plain { background: transparent; border: 0; padding: 0 !important; }

/* Stat rail */
.rdp-stats { border-top: 1px solid var(--line-strong); margin-top: 1.5rem; }
.rdp-stat { background: transparent; border: 0; border-inline-start: 1px solid var(--line); }
.rdp-stat:first-child { border-inline-start: 0; }
.rdp-stat-num .elementor-heading-title {
  font-size: clamp(1.6rem, 2.8vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -.03em;
}
.rdp-stat-num span { color: var(--red); }
.rdp-stat-label { font-size: var(--fs-xs); color: var(--fg-muted); }
.rdp-stat-label p { margin: 0; }

/* Divisions */
.rdp-unit-el { min-height: 22rem; justify-content: flex-end; }
.rdp-unit-title .elementor-heading-title { font-size: var(--fs-h3); color: #fff; }
.rdp-unit-lede { color: var(--steel-200); font-size: var(--fs-sm); }

/* Link lists inside cards */
.rdp-links { list-style: none; margin: 0; padding: 0; }
.rdp-links li { margin: 0; border-top: 1px solid var(--line); }
.rdp-links a {
  display: block;
  padding: .5rem 0;
  font-size: var(--fs-sm);
  color: var(--steel-300);
  transition: color var(--dur) var(--ease), padding-inline-start var(--dur) var(--ease);
}
.rdp-links a:hover { color: #fff; padding-inline-start: .35rem; }

/* Capability + sector icon boxes */
.rdp-cap-el, .rdp-sector-el {
  background: var(--ink-2);
  border: 1px solid var(--line);
  padding: 1.5rem;
}
.rdp-cap-el .elementor-icon-box-title, .rdp-sector-el .elementor-icon-box-title { color: var(--fg); font-size: 1rem; font-weight: 800; }
.rdp-cap-el .elementor-icon-box-description { color: var(--fg-muted); font-size: var(--fs-sm); }
.rdp-cap-el .elementor-icon, .rdp-sector-el .elementor-icon { color: var(--red); border-color: var(--line-strong); }

/* Product family + brand cards */
.rdp-family-el .rdp-card-media img,
.rdp-brand-el .rdp-brand-logo img { display: block; width: 100%; }
.rdp-family-el .rdp-card-media img { aspect-ratio: 16/10; object-fit: cover; }
.rdp-card-title .elementor-heading-title { font-size: var(--fs-h3); font-weight: 800; }
.rdp-brand-el { background: var(--ink-2); }
.rdp-brand-logo { background: #f4f6f7; padding: 1rem; }
.rdp-brand-logo img { max-height: 2.1rem; width: auto; margin-inline: auto; object-fit: contain; }
.rdp-brand-name { color: #fff; letter-spacing: .08em; text-transform: uppercase; font-size: .95rem; }
.rdp-brand-name p, .rdp-brand-desc p { margin: 0; }
.rdp-brand-desc { color: var(--fg-muted); font-size: var(--fs-sm); }

@media (max-width: 900px) {
  .rdp-row > .e-con, .rdp-row > .elementor-widget { width: 100% !important; }
  .rdp-hero-actions { flex-direction: column; }
  .rdp-hero-actions .elementor-button { width: 100%; justify-content: center; }
}
