/* ==========================================================================
   Tianhe Group — export website
   Design system + layout
   ========================================================================== */

@import url("fonts.css");

:root {
  --red: #d2121d;
  --red-dark: #a80d16;
  --ink: #14110f;
  --ink-soft: #3a3733;
  --muted: #6f6a64;
  --paper: #f6f4f1;
  --paper-2: #efece7;
  --white: #ffffff;
  --line: #e0dbd4;
  --line-dark: rgba(255, 255, 255, 0.14);
  --dark: #121010;
  --dark-2: #1b1817;

  --maxw: 1280px;
  --pad: clamp(20px, 4.6vw, 60px);
  --section: clamp(64px, 8.5vw, 132px);

  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  font-feature-settings: "ss01" 1, "cv05" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

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

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: 0;
  background: var(--red);
  color: #fff;
  padding: 12px 18px;
  z-index: 200;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateY(-130%);
  transition: transform 0.2s var(--ease);
}
.skip:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- type ---------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(42px, 4.9vw, 68px); }
h2 { font-size: clamp(34px, 4.6vw, 62px); }
h3 { font-size: clamp(21px, 2vw, 26px); line-height: 1.05; }
h4 { font-size: 18px; line-height: 1.15; letter-spacing: 0.02em; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 62ch;
}

.small { font-size: 14px; line-height: 1.55; color: var(--muted); }

.kicker {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--red);
  flex: none;
}
.eyebrow .num { color: var(--red); }

/* ---------- buttons ------------------------------------------------------- */

.btn {
  --bg: var(--red);
  --fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 24px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--bg);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn .arw { transition: transform 0.3s var(--ease); }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn:hover .arw { transform: translateX(4px); }

.btn.ghost {
  --bg: transparent;
  --fg: currentColor;
  border-color: currentColor;
}
.btn.ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.btn.light {
  --bg: #fff;
  --fg: var(--ink);
  border-color: #fff;
}
.btn.light:hover { background: var(--red); border-color: var(--red); color: #fff; }

.btn.ghost.light {
  --bg: transparent;
  --fg: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn.ghost.light:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

/* ---------- header -------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 244, 241, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  flex: none;
}

.brand__mark {
  width: 42px;
  height: 42px;
  flex: none;
  border: 2px solid var(--red);
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
}
.brand__mark::before {
  content: "T";
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  color: var(--red);
  line-height: 1;
  transform: translateY(-1px);
}
.brand__mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(210, 18, 29, 0.45);
  border-radius: 50%;
}

.brand__text { display: grid; gap: 2px; }
.brand__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.06em;
  line-height: 1;
}
.brand__sub {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  margin-left: auto;
}

.nav a {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  padding: 6px 0;
  position: relative;
  white-space: nowrap;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--red);
  transition: right 0.3s var(--ease);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { right: 0; }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.header .btn { padding: 12px 18px; font-size: 11px; }

.navtoggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  position: relative;
}
.navtoggle span,
.navtoggle span::before,
.navtoggle span::after {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  content: "";
  transform: translateX(-50%);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.navtoggle span { top: 50%; }
.navtoggle span::before { top: -6px; }
.navtoggle span::after { top: 6px; }

@media (max-width: 980px) {
  .nav {
    position: fixed;
    inset: 76px 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--pad) 26px;
    transform: translateY(-110%);
    visibility: hidden;
    transition: transform 0.4s var(--ease), visibility 0s linear 0.4s;
    box-shadow: 0 24px 40px -30px rgba(0, 0, 0, 0.4);
  }
  .nav a {
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }
  body[data-nav="open"] .nav {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.4s var(--ease), visibility 0s;
  }
  body[data-nav="open"] { overflow: hidden; }
  .navtoggle { display: block; }
  .header .btn { display: none; }
  body[data-nav="open"] .navtoggle span { background: transparent; }
  body[data-nav="open"] .navtoggle span::before { transform: translateX(-50%) rotate(45deg); top: 0; }
  body[data-nav="open"] .navtoggle span::after { transform: translateX(-50%) rotate(-45deg); top: 0; }
}

/* ---------- placeholder image slots --------------------------------------- */

.ph {
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  width: 100%;
  aspect-ratio: var(--ratio, 4 / 3);
  background:
    repeating-linear-gradient(135deg, rgba(20, 17, 15, 0.035) 0 1px, transparent 1px 9px),
    linear-gradient(160deg, #e9e5df 0%, #ded9d2 100%);
  color: #6b655e;
  text-align: center;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(20, 17, 15, 0.08);
}

.ph::before,
.ph::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(20, 17, 15, 0.28);
}
.ph::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.ph::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

.ph__icon {
  width: 26px;
  height: 26px;
  opacity: 0.5;
}
.ph__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4d4842;
  max-width: 26ch;
  line-height: 1.5;
}
.ph__hint {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: #847d74;
}

.ph--dark {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 9px),
    linear-gradient(160deg, #221f1d 0%, #171514 100%);
  color: #b9b2a9;
  border-color: rgba(255, 255, 255, 0.08);
}
.ph--dark::before,
.ph--dark::after { border-color: rgba(255, 255, 255, 0.25); }
.ph--dark .ph__label { color: #ddd6cc; }
.ph--dark .ph__hint { color: #857e75; }

.ph--img {
  padding: 0;
  background: #ddd8d1;
  border-color: transparent;
}
.ph--img::before,
.ph--img::after { display: none; }
.ph--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* product cutouts: transparent canvas, object floats on the section colour */
.ph--img.ph--cut { background: transparent; }
.ph--img.ph--cut img {
  object-fit: contain;
}

figure { margin: 0; }
figure img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- hero ---------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--dark);
  color: #fff;
  overflow: hidden;
  padding-top: clamp(44px, 6vw, 84px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 520px at 82% 18%, rgba(210, 18, 29, 0.2), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 40%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: end;
}

.hero__intro { padding-bottom: clamp(30px, 4vw, 56px); }

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #d8d2c9;
  border: 1px solid var(--line-dark);
  padding: 8px 14px;
  margin-bottom: clamp(24px, 3vw, 38px);
}
.hero__tag i {
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(210, 18, 29, 0.22);
}

.hero h1 { color: #fff; max-width: none; }
.hero h1 em {
  font-style: normal;
  color: var(--red);
}

.hero__sub {
  margin-top: 26px;
  max-width: 52ch;
  font-size: clamp(15px, 1.15vw, 17.5px);
  line-height: 1.65;
  color: #cec8bf;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero__media { align-self: stretch; display: flex; }
.hero__media .ph { aspect-ratio: auto; height: 100%; min-height: 380px; }

.hero__stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark);
  margin-top: clamp(32px, 4vw, 56px);
}

.stat {
  padding: 26px 0 30px;
  border-right: 1px solid var(--line-dark);
  padding-right: 22px;
}
.stat:last-child { border-right: 0; }
.stat + .stat { padding-left: clamp(16px, 2vw, 28px); }

.stat__num {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 0.9;
  letter-spacing: 0.01em;
  color: #fff;
}
.stat__num span { color: var(--red); }
.stat__label {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9d968d;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media .ph { min-height: 300px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--line-dark); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-last-child(-n + 2) { border-bottom: 0; }
  .stat:nth-child(3) { padding-left: 0; }
}

/* ---------- certification strip ------------------------------------------- */

.certstrip {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.certstrip__inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
  flex-wrap: wrap;
  padding-block: 18px;
}

.certstrip__label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-right: 20px;
  border-right: 1px solid var(--line);
  flex: none;
}

.certs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
}

.cert {
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.08em;
  color: #2c2925;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0.85;
}
.cert em {
  font-family: var(--sans);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 500;
}

/* grid/flex children must be allowed to shrink below content width */
.split > *,
.section__head > *,
.gallery > *,
.grid-products > *,
.footer__grid > *,
.form__row > *,
.hero__grid > * { min-width: 0; }

/* ---------- sections ------------------------------------------------------ */

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(44px, 5vw, 76px); }
.section--paper2 { background: var(--paper-2); }
.section--white { background: #fff; }
.section--dark { background: var(--dark); color: #e9e3da; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .kicker, .section--dark .small { color: #9d968d; }
.section--dark .lead { color: #c9c3ba; }

.section__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 72px);
  align-items: end;
  margin-bottom: clamp(34px, 4.6vw, 62px);
}
.section__head .lead { margin: 0; }
.section__head--stack { grid-template-columns: 1fr; align-items: start; }

@media (max-width: 760px) {
  .section__head { grid-template-columns: 1fr; gap: 18px; align-items: start; }
  .section__head .lead { margin-top: 2px; }
}

/* ---------- product cards ------------------------------------------------- */

.grid-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.pcard {
  background: var(--paper);
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: background 0.3s var(--ease);
}
.pcard:hover { background: #fff; }

.pcard__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.pcard__media img,
.pcard__media .ph { height: 100%; aspect-ratio: auto; transition: transform 0.6s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.03); }

.pcard__body {
  padding: clamp(22px, 2.4vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.pcard__idx {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--red);
}
.pcard h3 { margin: 0; }
.pcard__desc { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; margin: 0; }
.pcard__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: auto 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 500;
}

.linkarrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 18px;
}
.linkarrow::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}
.linkarrow:hover { color: var(--red); }
.linkarrow:hover::after { transform: translateX(4px); }

@media (max-width: 760px) {
  .grid-products { grid-template-columns: 1fr; }
}

/* ---------- split feature ------------------------------------------------ */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
.split--media-right .split__media { order: 2; }

.split--rfq { grid-template-columns: 1.15fr 0.85fr; }

@media (max-width: 860px) {
  .split,
  .split--rfq { grid-template-columns: 1fr; }
  .split--media-right .split__media { order: 0; }
}

/* ---------- numbered value list ------------------------------------------ */

.vlist { display: grid; gap: 0; margin-top: 8px; }
.vitem {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.vitem:last-child { border-bottom: 1px solid var(--line); }
.vitem__n {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  color: var(--red);
  padding-top: 3px;
}
.vitem h4 { margin-bottom: 6px; }
.vitem p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* ---------- spec table --------------------------------------------------- */

.tablewrap { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }

table.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 560px;
}
table.spec th,
table.spec td {
  text-align: left;
  padding: 13px 18px 13px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.spec th {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--ink);
  white-space: nowrap;
}
table.spec td:first-child {
  font-weight: 600;
  color: var(--ink);
  width: 34%;
}
table.spec tr:hover td { background: rgba(0, 0, 0, 0.015); }

.section--dark table.spec th { color: #9d968d; border-bottom-color: rgba(255, 255, 255, 0.5); }
.section--dark table.spec th,
.section--dark table.spec td { border-bottom-color: var(--line-dark); }
.section--dark table.spec td:first-child { color: #fff; }

/* ---------- stat band ---------------------------------------------------- */

.statband {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border-block: 1px solid var(--line-dark);
}
.statband__item {
  background: var(--dark);
  padding: clamp(24px, 3vw, 40px) clamp(16px, 2vw, 26px);
}
.statband__item .num {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 0.92;
  color: #fff;
}
.statband__item .num span { color: var(--red); font-size: 0.55em; margin-left: 4px; }
.statband__item .lbl {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9d968d;
  line-height: 1.5;
}

@media (max-width: 860px) {
  .statband { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- gallery grid ------------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 1.4vw, 18px);
}
.gallery .ph { aspect-ratio: 4 / 3; }
.gallery--2 { grid-template-columns: repeat(2, 1fr); }
.gallery__wide { grid-column: span 2; }
.gallery__wide .ph { aspect-ratio: 2 / 1; }

@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery--2 { grid-template-columns: repeat(2, 1fr); }
.gallery__wide { grid-column: span 2; }
}

/* ---------- process steps ------------------------------------------------ */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  counter-reset: step;
}
.step {
  background: var(--dark);
  padding: clamp(24px, 3vw, 36px);
  position: relative;
}
.step__n {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--red);
  display: block;
  margin-bottom: 16px;
}
.step h4 { color: #fff; margin-bottom: 10px; }
.step p { font-size: 14px; color: #a9a29a; margin: 0; line-height: 1.6; }

.steps--5 { grid-template-columns: repeat(5, 1fr); }
.step { min-width: 0; }

@media (max-width: 860px) {
  .steps,
  .steps--5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .steps,
  .steps--5 { grid-template-columns: 1fr; }
}

/* ---------- cert cards --------------------------------------------------- */

.certcards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.4vw, 18px);
}
.certcard {
  background: #fff;
  border: 1px solid var(--line);
  padding: 14px;
  display: grid;
  gap: 12px;
}
.certcard .ph { aspect-ratio: 1 / 1; }
.certcard h4 { font-size: 14px; letter-spacing: 0.04em; }
.certcard p { font-size: 12px; color: var(--muted); margin: 0; }

@media (max-width: 860px) { .certcards { grid-template-columns: repeat(2, 1fr); } }

/* plain list of the certificates that are supplied on request */
.certlist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.certlist li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.certlist strong {
  font-weight: 600;
  font-size: 15px;
}
.certlist span {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}
@media (max-width: 560px) {
  .certlist li { grid-template-columns: 1fr; gap: 2px; }
  .certlist span { text-align: left; }
}

/* certificate we do not have a scan of yet */
.certblank {
  aspect-ratio: 1 / 1;
  background: var(--paper-2);
  border: 1px solid var(--line);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  text-align: center;
  padding: 20px;
}
.certblank__rule { width: 26px; height: 2px; background: var(--red); }
.certblank__text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.7;
}

/* click-to-enlarge */
.zoom {
  display: block;
  position: relative;
  cursor: zoom-in;
}
.zoom img { transition: transform 0.5s var(--ease); }
.zoom:hover img { transform: scale(1.02); }
.zoom::after {
  content: "Enlarge";
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(18, 16, 16, 0.78);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 8px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}
.zoom:hover::after,
.zoom:focus-visible::after { opacity: 1; transform: none; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  place-items: center;
  padding: 4vh 5vw;
  background: rgba(12, 10, 9, 0.93);
}
body[data-lightbox="open"] .lightbox { display: grid; }
body[data-lightbox="open"] { overflow: hidden; }
.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.lightbox__close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close:hover { background: #fff; color: var(--ink); }

/* ---------- dark CTA band ------------------------------------------------ */

.ctaband {
  background: var(--red);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.ctaband::after {
  content: "";
  z-index: 0;
  position: absolute;
  right: -10%;
  top: -60%;
  width: 60%;
  height: 220%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.22), transparent);
  pointer-events: none;
}
.ctaband__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-block: clamp(40px, 5.4vw, 72px);
}
.ctaband h2 { color: #fff; max-width: 26ch; font-size: clamp(30px, 3.7vw, 50px); }
.ctaband p { color: rgba(255, 255, 255, 0.85); max-width: 52ch; margin-top: 14px; }

/* ---------- footer ------------------------------------------------------- */

.footer {
  background: var(--dark);
  color: #b7b0a7;
  padding-top: clamp(48px, 6vw, 84px);
  font-size: 14px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(36px, 4vw, 56px);
}
.footer h4 {
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.18em;
  margin-bottom: 18px;
  font-family: var(--sans);
  font-weight: 600;
  text-transform: uppercase;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a:hover { color: #fff; }
.footer .brand__name { color: #fff; }
.footer .brand__sub { color: #8f8880; }
.footer__about { max-width: 34ch; margin-top: 20px; font-size: 13.5px; line-height: 1.7; color: #948d84; }
.footer__bottom {
  border-top: 1px solid var(--line-dark);
  padding-block: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #7e776f;
}
.footer__bottom a { color: #a29a91; }

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- page hero (inner pages) -------------------------------------- */

.phero {
  background: var(--dark);
  color: #fff;
  padding-block: clamp(48px, 6vw, 92px);
  position: relative;
  overflow: hidden;
}
.phero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 380px at 88% 0%, rgba(210, 18, 29, 0.22), transparent 70%);
}
.phero__inner { position: relative; }
.phero h1 { font-size: clamp(40px, 6vw, 84px); max-width: 18ch; }
.phero p { color: #c6c0b7; max-width: 58ch; margin-top: 20px; }
.crumbs {
  display: flex;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8c857c;
  margin-bottom: 26px;
}
.crumbs a:hover { color: #fff; }
.crumbs span { color: #5f5952; }

/* ---------- content bits ------------------------------------------------ */

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 7px 12px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.4);
}

.section--dark .chip,
.ctaband .chip {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.2);
  color: #dcd5cc;
}

.note {
  border-left: 2px solid var(--red);
  padding: 4px 0 4px 18px;
  font-size: 14px;
  color: var(--ink-soft);
}

.quote {
  font-family: var(--display);
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.22;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  max-width: 26ch;
}

/* ---------- forms ------------------------------------------------------- */

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  padding: 13px 14px;
  width: 100%;
  border-radius: 0;
  transition: border-color 0.2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
}
.field textarea { min-height: 120px; resize: vertical; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.contactcard {
  background: #fff;
  border: 1px solid var(--line);
  padding: clamp(24px, 3vw, 40px);
}

.dl { display: grid; gap: 18px; margin: 0; }
.dl div { display: grid; gap: 4px; }
.dl dt {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.dl dd { margin: 0; font-size: 15px; line-height: 1.55; }

@media (max-width: 760px) {
  .form__row { grid-template-columns: 1fr; }
}

/* ---------- reveal ------------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- utilities ---------------------------------------------------- */

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 14px; }
.mt-2 { margin-top: 26px; }
.mt-3 { margin-top: 40px; }
.mb-2 { margin-bottom: 26px; }
.two-col-text { columns: 2; column-gap: 48px; }
@media (max-width: 760px) { .two-col-text { columns: 1; } }

.hr { height: 1px; background: var(--line); border: 0; margin: 0; }
.section--dark .hr { background: var(--line-dark); }

/* ---------- language switcher -------------------------------------------- */

.lang {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
}
.lang a {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s;
}
.lang a:hover { color: var(--ink); }
.lang a[aria-current] {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 2px solid var(--red);
  padding-bottom: 1px;
}
.lang--nav { display: none; }

@media (max-width: 1180px) {
  .lang--head { gap: 8px; }
  .lang--head a { font-size: 10px; letter-spacing: 0.04em; }
}

@media (max-width: 980px) {
  .lang--head { display: none; }
  .lang--nav {
    display: flex;
    gap: 18px;
    margin-top: 14px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }
  .lang--nav a { font-size: 13px; }
}

/* ---------- right-to-left (Arabic) ---------------------------------------- */

[dir="rtl"] body {
  font-family: "Noto Sans Arabic", "Inter", system-ui, sans-serif;
  line-height: 1.85;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] .stat__num,
[dir="rtl"] .statband__item .num,
[dir="rtl"] .pcard__idx,
[dir="rtl"] .vitem__n,
[dir="rtl"] .step__n,
[dir="rtl"] .brand__mark::before {
  font-family: "Noto Kufi Arabic", "Barlow Condensed", sans-serif;
  letter-spacing: 0;
  text-transform: none;
}

[dir="rtl"] h1 { line-height: 1.3; }
[dir="rtl"] h2 { line-height: 1.35; }
[dir="rtl"] h3, [dir="rtl"] h4 { line-height: 1.45; }

/* Arabic must never be letter-spaced: it breaks the joining */
[dir="rtl"] * { letter-spacing: 0 !important; }

[dir="rtl"] .eyebrow,
[dir="rtl"] .kicker,
[dir="rtl"] .ph__label,
[dir="rtl"] .stat__label,
[dir="rtl"] .statband__item .lbl,
[dir="rtl"] .pcard__specs,
[dir="rtl"] .chip,
[dir="rtl"] .btn,
[dir="rtl"] .field label,
[dir="rtl"] .dl dt,
[dir="rtl"] .footer h4,
[dir="rtl"] .crumbs { letter-spacing: 0; text-transform: none; }

[dir="rtl"] .linkarrow::after { content: "\2190"; }
[dir="rtl"] .linkarrow:hover::after { transform: translateX(-4px); }

[dir="rtl"] .btn:hover .arw { transform: translateX(-4px); }

[dir="rtl"] .stat { border-right: 0; border-left: 1px solid var(--line-dark); padding-right: 0; padding-left: 22px; }
[dir="rtl"] .stat + .stat { padding-left: 0; padding-right: clamp(16px, 2vw, 28px); }
[dir="rtl"] .stat:last-child { border-left: 0; }

[dir="rtl"] table.spec th,
[dir="rtl"] table.spec td { text-align: right; padding: 13px 0 13px 18px; }

[dir="rtl"] .ph::before { left: auto; right: 10px; border-left: 0; border-right: 1px solid rgba(20,17,15,.28); }
[dir="rtl"] .ph::after { right: auto; left: 10px; border-right: 0; border-left: 1px solid rgba(20,17,15,.28); }

[dir="rtl"] input,
[dir="rtl"] textarea,
[dir="rtl"] select { text-align: right; }

[dir="rtl"] .lightbox__close { right: auto; left: 20px; }

[dir="rtl"] .certlist span { text-align: left; }

[dir="rtl"] .footer__about,
[dir="rtl"] .lead,
[dir="rtl"] .hero__sub { line-height: 1.9; }

@media (max-width: 980px) {
  [dir="rtl"] .nav a { text-align: right; }
}

/* language codes in the header, full names in the mobile drawer */
.lang .short { display: none; }
.lang--head .long { display: none; }
.lang--head .short { display: inline; font-size: 11px; font-weight: 600; }
.lang--nav .long { display: inline; }

.btn { white-space: nowrap; }

[dir="rtl"] .stat__num span { margin-left: 0; margin-right: 4px; }
[dir="rtl"] .statband__item .num span { margin-left: 0; margin-right: 4px; }
