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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; inset-inline-start: 16px; top: 12px; z-index: 100; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--ink); color: #fff; font-size: var(--fs-sm); font-weight: 600; transform: translateY(-200%); transition: transform .15s; }
.skip-link:focus-visible { transform: none; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; overflow-wrap: break-word; }
p { margin: 0; }

.container {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.display {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 1.02;
  text-wrap: balance;
}
:lang(de) .display { hyphens: auto; }
:lang(ar) .display { text-transform: none; line-height: 1.25; font-weight: 700; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.eyebrow::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--dot, currentColor);
}
:lang(ar) .eyebrow { letter-spacing: 0; font-size: var(--fs-xs); }

.section { position: relative; padding-block: var(--space-9); }
.section > .container { z-index: 1; }

/* Thin vertical column lines, as in engineering drawings */
.lined::before {
  content: "";
  position: absolute;
  inset-block: 0;
  left: 50%;
  translate: -50% 0;
  width: calc(min(100vw, var(--container)) - 2 * var(--gutter));
  background:
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 25% 100% repeat-x,
    linear-gradient(90deg, transparent calc(100% - 1px), var(--line) 0);
  pointer-events: none;
}
@media (max-width: 760px) {
  .lined::before { background-size: 50% 100%, auto; }
}


/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
:lang(ar) .btn { letter-spacing: 0; font-size: var(--fs-sm); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--grey-150); }
.btn-dark { background: var(--ink-2); color: #fff; }
.btn-dark:hover { background: #3a3a38; }
.btn-outline-light { border-color: rgb(255 255 255 / 0.4); color: #fff; }
.btn-outline-light:hover { background: rgb(255 255 255 / 0.12); }
.btn .chev { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.btn:hover .chev { transform: translateX(2px); }
[dir="rtl"] .chev { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .chev { transform: scaleX(-1) translateX(2px); }

/* Logo */
.logo { display: inline-flex; align-items: flex-end; gap: 5px; line-height: 1; }
.logo svg { height: 30px; width: auto; }
.site-header .logo svg { height: 48px; }
.logo .sub { font-weight: 600; font-size: 1rem; padding-block-end: 1px; letter-spacing: -0.01em; }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  color: #fff;
  transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.solid {
  color: var(--ink);
  background: color-mix(in srgb, var(--grey-100) 90%, transparent);
  backdrop-filter: saturate(1.3) blur(14px);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header .container { display: flex; align-items: center; gap: var(--space-6); height: var(--header-h); }
.main-nav { display: flex; gap: 2.75rem; margin-inline: auto; }
.main-nav a { font-size: var(--fs-sm); font-weight: 500; opacity: 0.82; transition: opacity .2s; }
.main-nav a:hover { opacity: 1; }
.header-actions { display: flex; align-items: center; gap: var(--space-2); }
.site-header:not(.solid) .btn-dark { background: #fff; color: var(--ink); }
.quote-toggle { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid color-mix(in srgb, currentColor 30%, transparent); background: transparent; color: inherit; cursor: pointer; }
.quote-toggle svg { width: 18px; height: 18px; }
.quote-count { position: absolute; inset-block-start: -4px; inset-inline-end: -4px; min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; border-radius: 9px; background: var(--neo-blue); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }

.lang { position: relative; }
.lang summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 30%, transparent);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 15px; height: 15px; }
.lang ul {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  margin: 0;
  padding: 6px;
  list-style: none;
  min-width: 200px;
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-float);
}
.lang button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 9px 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  cursor: pointer;
  text-align: start;
  font-size: var(--fs-sm);
}
.lang button:hover { background: var(--grey-100); }
.lang button[aria-current="true"] { font-weight: 600; }
.lang button span:last-child { color: var(--text-muted); font-size: var(--fs-xs); }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
  background: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1000px) {
  .main-nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    flex-direction: column;
    gap: 0;
    padding: var(--space-2) var(--gutter) var(--space-5);
    background: var(--grey-100);
    color: var(--ink);
    box-shadow: 0 12px 24px -16px rgb(0 0 0 / 0.3);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding-block: var(--space-3); border-block-end: 1px solid var(--line); opacity: 1; }
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-inline-start: auto; }
}
@media (max-width: 560px) {
  .header-actions .btn-quote { display: none; }
}
.header-actions .btn-wa-head { display: none; margin: 0; }
/* Homepage hero with the quick-quote card in view (app.js initHeroQuoteSwap) */
.hero-quote-on .header-actions .btn-quote { display: none; }
.hero-quote-on .header-actions .btn-wa-head { display: inline-flex; }
.hero-quote-on .wa-float { opacity: 0; visibility: hidden; transform: translateY(12px); }

/* Hero */
.hero {
  position: relative;
  min-height: min(100svh, 920px);
  color: #fff;
  background: var(--black);
  overflow: hidden;
  isolation: isolate;
}
.hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  scale: 1.06;
  transition: opacity 1.4s var(--ease), scale 9s linear;
  z-index: -2;
}
.hero-slides img.active { opacity: 1; scale: 1; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgb(0 0 0 / 0.55) 0%, rgb(0 0 0 / 0.08) 38%, rgb(0 0 0 / 0.12) 60%, rgb(0 0 0 / 0.72) 100%),
    linear-gradient(90deg, rgb(0 0 0 / 0.45) 0%, transparent 55%);
}
[dir="rtl"] .hero::after {
  background:
    linear-gradient(180deg, rgb(0 0 0 / 0.55) 0%, rgb(0 0 0 / 0.08) 38%, rgb(0 0 0 / 0.12) 60%, rgb(0 0 0 / 0.72) 100%),
    linear-gradient(270deg, rgb(0 0 0 / 0.45) 0%, transparent 55%);
}
.hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-8);
  min-height: min(100svh, 920px);
  padding-block: calc(var(--header-h) + var(--space-8)) var(--space-6);
}
/* Brand line "Manifold is our game": always English, sentence case, in a tight grotesk (hero, about, footer) */
.slogan-title { font-family: "Inter", system-ui, sans-serif; font-weight: 600; text-transform: none; letter-spacing: -0.055em; line-height: 0.86; }
.hero-main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  grid-template-rows: 1fr auto;
  column-gap: var(--space-7);
  row-gap: var(--space-7);
}
.hero-side { grid-area: 2 / 1; align-self: end; display: grid; justify-items: start; gap: var(--space-4); padding-block-end: 0.6rem; }
.hero-label { font-size: var(--fs-sm); letter-spacing: 0.04em; color: rgb(255 255 255 / 0.85); }
.hero-lead { max-width: 17ch; margin: 0 0 var(--space-3); font-size: var(--fs-lg); line-height: 1.35; }
.hero-slogan { grid-area: 2 / 2; margin: 0; white-space: nowrap; font-size: clamp(3rem, min(0.6rem + 8.6vw, 19svh), 10.25rem); }
/* Short laptop screens: tighter spacing so the hero fits above the fold */
@media (max-height: 820px) and (min-width: 961px) {
  .hero-inner { padding-block: calc(var(--header-h) + var(--space-5)) var(--space-5); gap: var(--space-5); }
  .hero-main { row-gap: var(--space-5); }
}
/* Quick quote: a glass card over the hero photo, posted through the contact form handler */
.hero-quote-card { grid-area: 1 / 2; justify-self: end; align-self: end; display: grid; justify-items: start; gap: 10px; width: min(100%, 340px); padding: 18px 20px; border-radius: var(--radius-md); background: rgb(20 20 20 / 0.42); border: 1px solid rgb(255 255 255 / 0.18); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.hero-quote-card .hq-sub { margin: -4px 0 4px; }
/* Quick-quote form, opened from the card in a dialog */
.hq-dialog { width: min(440px, 92vw); padding: 0; border: 0; border-radius: var(--radius-md); background: #18181a; color: #fff; }
.hq-dialog::backdrop { background: rgb(0 0 0 / 0.5); }
.hq-close { position: absolute; inset-block-start: 14px; inset-inline-end: 14px; width: 34px; height: 34px; border-color: rgb(255 255 255 / 0.3); color: #fff; }
.hero-quote { display: grid; gap: 12px; padding: 24px; }
.hq-title { margin: 0; padding-inline-end: 40px; font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 700; text-transform: uppercase; }
:lang(ar) .hq-title { text-transform: none; }
.hq-sub { margin: -6px 0 2px; font-size: var(--fs-xs); color: var(--on-dark-soft); }
.hq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hq-field { display: grid; gap: 2px; }
.hq-field span { font-size: var(--fs-2xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgb(255 255 255 / 0.6); }
:lang(ar) .hq-field span { letter-spacing: 0; font-size: var(--fs-xs); }
.hq-field input, .hq-field textarea { width: 100%; min-height: 36px; padding: 6px 0; border: 0; border-block-end: 1px solid rgb(255 255 255 / 0.3); background: transparent; color: #fff; font-size: var(--fs-sm); resize: none; }
.hq-field input:focus, .hq-field textarea:focus { outline: none; border-block-end-color: #fff; }
.hq-field textarea::placeholder { color: rgb(255 255 255 / 0.4); }
.hero-quote .check { color: rgb(255 255 255 / 0.7); }
.hero-quote .check input { accent-color: #fff; }
.hero-quote .btn { justify-self: start; }
.hero-quote .form-status { margin: 0; color: var(--ink); font-size: var(--fs-xs); }
.hero-bottom {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding-block-start: var(--space-5);
  border-block-start: 1px solid rgb(255 255 255 / 0.14);
}
.hero-cats { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hero-cats a { display: flex; align-items: center; gap: 12px; padding: 8px; margin-inline-end: var(--space-4); border-radius: var(--radius-sm); font-size: var(--fs-sm); color: rgb(255 255 255 / 0.85); transition: color .2s, background-color .2s; }
.hero-cats a:hover { color: #fff; background: rgb(255 255 255 / 0.08); }
.hero-cats .thumb { flex: none; width: 44px; height: 36px; display: grid; place-items: center; padding: 4px; border-radius: 6px; background: var(--grey-100); }
.hero-cats .thumb img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: darken; }
.hero-cats .chev { width: 14px; height: 14px; margin-inline-start: auto; opacity: 0.5; transition: transform .25s var(--ease), opacity .2s; }
.hero-cats a:hover .chev { opacity: 1; transform: translateX(4px); }
[dir="rtl"] .hero-cats a:hover .chev { transform: scaleX(-1) translateX(4px); }
.hero-bottom .progress { margin: 0; }
.hero-bottom .progress .bar { width: 72px; }
.hero-cats a > span:not(.thumb) { min-width: 0; line-height: 1.25; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.thumbs { display: flex; gap: 10px; }
.thumbs button {
  width: 92px;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.55;
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: opacity .3s, outline-color .3s;
}
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button[aria-current="true"] { opacity: 1; outline-color: #fff; }
.progress { display: flex; align-items: center; gap: 12px; margin-block-start: var(--space-4); font-size: var(--fs-2xs); font-weight: 600; letter-spacing: 0.1em; font-variant-numeric: tabular-nums; }
.progress .bar { position: relative; width: 160px; height: 1px; background: rgb(255 255 255 / 0.3); overflow: hidden; }
.progress .bar i { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }
[dir="rtl"] .progress .bar i { transform-origin: right; }
.progress .bar i.run { animation: fill var(--slide-ms, 6000ms) linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }
.hero-note { max-width: 360px; font-size: var(--fs-sm); color: var(--on-dark-soft); line-height: 1.55; }

@media (max-width: 960px) {
  .hero-main { grid-template-columns: 1fr; grid-template-rows: 1fr auto auto; row-gap: var(--space-6); }
  .hero-slogan { grid-area: 2 / 1; }
  .hero-side { grid-area: 3 / 1; }
  .hero-quote-card { display: none; }
  .hero-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-3); }
  /* Hidden but still animating: the bar's animationend drives the slider */
  .hero-bottom .progress { position: absolute; visibility: hidden; }
}

/* Scroll-driven 3D manifold (homepage) – tall section with a sticky stage */
.assembly { position: relative; height: 330vh; background: var(--black); color: #fff; }
.assembly-sticky { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; padding-block-start: var(--header-h); overflow: hidden; }
.assembly-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--space-7); align-items: center; }
.assembly .eyebrow { color: rgb(255 255 255 / 0.8); --dot: var(--neo-yellow); }
.assembly h2 { font-size: var(--fs-h2); margin-block: var(--space-4) var(--space-6); }
.asm-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.asm-steps li { display: grid; grid-template-columns: 40px 1fr; gap: var(--space-3); padding: var(--space-3) 0; border-block-start: 1px solid rgb(255 255 255 / 0.1); opacity: 0.35; transition: opacity .4s var(--ease); }
.asm-steps li.active { opacity: 1; }
.asm-steps b { font-family: var(--font-display); font-size: var(--fs-lg); color: var(--neo-yellow); }
.asm-steps h3 { font-family: var(--font-display); font-size: var(--fs-lg); text-transform: uppercase; letter-spacing: 0.01em; }
:lang(ar) .asm-steps h3 { text-transform: none; }
.asm-steps p { font-size: var(--fs-sm); color: var(--on-dark-soft); margin-block-start: 4px; }
.assembly-visual { position: relative; }
.assembly-visual canvas { display: block; width: 100%; height: min(68svh, 620px); }
.assembly-fallback { display: none; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); }
/* No WebGL / reduced motion: no pinning, all steps visible, photo instead of canvas */
.assembly--static, .assembly--still { height: auto; }
:is(.assembly--static, .assembly--still) .assembly-sticky { position: static; height: auto; padding-block: var(--space-9); }
:is(.assembly--static, .assembly--still) .asm-steps li { opacity: 1; }
.assembly--static canvas { display: none; }
.assembly--static .assembly-fallback { display: block; }
@media (max-width: 900px) {
  .assembly-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .assembly h2 { margin-block: var(--space-2) var(--space-3); }
  .assembly-visual { order: -1; }
  .assembly-visual canvas { height: 38svh; }
  /* Only the current step is shown on small screens */
  .assembly:not(.assembly--static, .assembly--still) .asm-steps li:not(.active) { display: none; }
}

/* Sub-brand strip */
.brand-strip { background: var(--grey-50); border-block: 1px solid var(--line); }
.brand-strip .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); min-height: 104px; }
.brand-strip a { color: var(--ink); filter: grayscale(1); opacity: 0.5; transition: opacity .25s, filter .25s; }
.brand-strip a:hover { filter: none; opacity: 1; }
.brand-strip .logo svg { height: 24px; }
.brand-strip .logo .sub { font-size: 0.95rem; }
@media (max-width: 900px) {
  .brand-strip .container { display: grid; grid-template-columns: repeat(3, 1fr); justify-items: center; gap: var(--space-5); padding-block: var(--space-5); }
}

/* About */
.about .container { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; }
.about-copy { max-width: 540px; }
.about h2 { font-size: var(--fs-h2); margin-block: var(--space-4); }
.about .lead { color: var(--text-soft); font-size: var(--fs-sm); max-width: 440px; margin-block-end: var(--space-6); }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); margin-block-start: var(--space-8); }
.feature svg { width: 40px; height: 40px; color: var(--grey-700); margin-block-end: var(--space-4); }
.feature h3 { font-family: var(--font-display); font-size: var(--fs-h3); text-transform: uppercase; letter-spacing: 0.01em; margin-block-end: var(--space-2); }
:lang(ar) .feature h3 { text-transform: none; }
.feature p { font-size: var(--fs-xs); color: var(--text-soft); line-height: 1.6; }
.about-media { position: relative; justify-self: end; width: 100%; max-width: 520px; }
.about-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-md); }
.float-pill {
  position: absolute;
  inset-block-end: -18px;
  left: 50%;
  translate: -50% 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border-radius: var(--radius-pill);
  background: #fff;
  box-shadow: var(--shadow-float);
  font-size: var(--fs-xs);
  font-weight: 500;
  white-space: nowrap;
}
[dir="rtl"] .float-pill { padding: 8px 8px 8px 16px; }
.dots { display: flex; }
.dots i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; margin-inline-start: -7px; }
.dots i:first-child { margin-inline-start: 0; }
.float-pill .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--grey-300); }
@media (max-width: 900px) {
  .about .container { grid-template-columns: 1fr; gap: var(--space-8); }
  .about-media { justify-self: stretch; max-width: none; }
  .about-media img { aspect-ratio: 4 / 3; }
}
@media (max-width: 480px) { .features { grid-template-columns: 1fr; } }

/* Products rail */
.products { padding-block-start: var(--space-8); }
.section-head-center { display: grid; justify-items: center; text-align: center; gap: var(--space-4); margin-block-end: var(--space-7); }
.section-head-center h2 { font-size: var(--fs-h2); max-width: 18ch; }
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * var(--space-4)) / 4);
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-block-end: 2px;
}
.rail::-webkit-scrollbar { display: none; }
.card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--grey-150);
  color: #fff;
}
.card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale .8s var(--ease); }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgb(0 0 0 / 0.6)); }
.card:hover > img { scale: 1.04; }
.card .plus {
  position: absolute;
  z-index: 2;
  inset-block-start: 14px;
  inset-inline-end: 14px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.9);
  color: var(--ink);
}
.card .plus svg { width: 14px; height: 14px; }
.card .label { position: absolute; z-index: 1; inset-inline: 18px; inset-block-end: 16px; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-lg); text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.1; }
:lang(ar) .card .label { text-transform: none; }
.card .panel {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: #fff;
  color: var(--ink);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  pointer-events: none;
}
.card.is-active .panel { opacity: 1; transform: none; pointer-events: auto; }
.panel .icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--grey-100); color: var(--grey-700); margin-block-end: var(--space-5); }
.panel .icon svg { width: 20px; height: 20px; }
.panel h3 { font-family: var(--font-display); font-size: var(--fs-lg); text-transform: uppercase; letter-spacing: 0.01em; margin-block-end: var(--space-2); }
:lang(ar) .panel h3 { text-transform: none; }
.panel p { font-size: var(--fs-xs); color: var(--text-soft); }
.panel .btn { margin-block-start: auto; align-self: flex-start; }
.rail-nav { display: flex; justify-content: flex-end; align-items: center; gap: var(--space-2); margin-block-start: var(--space-5); }
.rail-nav button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
}
.rail-nav button:hover { background: #fff; }
.rail-nav svg { width: 16px; height: 16px; }
[dir="rtl"] .rail-nav svg { transform: scaleX(-1); }
.rail-nav .prev svg { rotate: 180deg; }
@media (max-width: 1000px) { .rail { grid-auto-columns: calc((100% - var(--space-4)) / 2.2); } }
@media (max-width: 560px) { .rail { grid-auto-columns: 78%; } }

/* Feature band (Forte) */
.band {
  position: relative;
  color: #fff;
  background: var(--black);
  overflow: hidden;
  isolation: isolate;
}
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(0 0 0 / 0.78) 0%, rgb(0 0 0 / 0.35) 60%, rgb(0 0 0 / 0.2) 100%); }
[dir="rtl"] .band::after { background: linear-gradient(270deg, rgb(0 0 0 / 0.78) 0%, rgb(0 0 0 / 0.35) 60%, rgb(0 0 0 / 0.2) 100%); }
.band .container { display: grid; grid-template-columns: 1fr 420px; gap: var(--space-8); align-items: end; padding-block: var(--space-9); }
.band .eyebrow { color: rgb(255 255 255 / 0.8); --dot: var(--neo-red); }
.band h2 { font-size: var(--fs-h2); margin-block: var(--space-4); }
.band .lead { color: var(--on-dark-soft); font-size: var(--fs-sm); max-width: 440px; margin-block-end: var(--space-6); }
.spec-card {
  padding: var(--space-5) var(--space-5) var(--space-6);
  border-radius: var(--radius-md);
  background: rgb(14 14 15 / 0.5);
  border: 1px solid rgb(255 255 255 / 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.specs { margin: 0; }
.specs div { display: flex; justify-content: space-between; gap: var(--space-4); padding-block: 12px; border-block-end: 1px solid rgb(255 255 255 / 0.12); font-size: var(--fs-sm); }
.specs dt { color: var(--on-dark-muted); }
.specs dd { margin: 0; font-weight: 500; text-align: end; }
.finish-label { display: block; margin-block: var(--space-5) var(--space-3); font-size: var(--fs-2xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-muted); }
:lang(ar) .finish-label { letter-spacing: 0; }
.finishes { display: flex; flex-wrap: wrap; gap: 8px; }
.finishes span { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: var(--radius-pill); border: 1px solid rgb(255 255 255 / 0.18); font-size: var(--fs-xs); }
[dir="rtl"] .finishes span { padding: 5px 5px 5px 12px; }
.finishes i { width: 20px; height: 20px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.25); }
@media (max-width: 900px) { .band .container { grid-template-columns: 1fr; gap: var(--space-7); } }

/* Catalogue + fairs */
.duo { display: grid; grid-template-columns: 1.25fr 1fr; gap: var(--space-4); }
.tile { position: relative; overflow: hidden; border-radius: var(--radius-md); padding: var(--space-7); min-height: 340px; display: flex; flex-direction: column; isolation: isolate; }
.tile h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); margin-block: var(--space-4) var(--space-3); }
.tile p { font-size: var(--fs-sm); max-width: 420px; }
.tile-dark { background: var(--black); color: #fff; }
.tile-dark > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.38; z-index: -1; }
.tile-dark .eyebrow { color: rgb(255 255 255 / 0.8); --dot: var(--neo-yellow); }
.tile-dark p { color: var(--on-dark-soft); }
.tile-light { background: #fff; }
.tile-light .eyebrow { --dot: var(--neo-blue); }
.tile-light p { color: var(--text-soft); }
.tile-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: auto; padding-block-start: var(--space-6); }
.btn-ghost-light { color: #fff; border: 1px solid rgb(255 255 255 / 0.4); }
.btn-ghost-light:hover { background: rgb(255 255 255 / 0.1); }
.fair { margin-block-start: auto; padding-block-start: var(--space-4); border-block-start: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); }
.fair b { display: block; font-family: var(--font-display); font-size: var(--fs-h3); text-transform: uppercase; }
:lang(ar) .fair b { text-transform: none; }
.fair span { font-size: var(--fs-xs); color: var(--text-muted); }
@media (max-width: 900px) { .duo { grid-template-columns: 1fr; } .tile { padding: var(--space-6); min-height: 300px; } }

/* Contact */
.contact .container { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--space-8); }
.contact h2 { font-size: var(--fs-h2); margin-block: var(--space-4); }
.contact .lead { color: var(--text-soft); font-size: var(--fs-sm); max-width: 420px; }
.contact-list { list-style: none; padding: 0; margin: var(--space-7) 0 0; display: grid; gap: var(--space-5); }
.contact-list li { display: grid; gap: 4px; padding-block-start: var(--space-4); border-block-start: 1px solid var(--line); }
.contact-list small { font-size: var(--fs-2xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
:lang(ar) .contact-list small { letter-spacing: 0; }
.contact-list a, .contact-list span { font-size: var(--fs-sm); font-weight: 500; justify-self: start; }
.social-btns { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-block-start: auto; }
.form { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5) var(--space-5); padding: var(--space-7); border-radius: var(--radius-md); background: #fff; align-content: start; }
.field { display: grid; gap: 4px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-2xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
:lang(ar) .field label { letter-spacing: 0; font-size: var(--fs-xs); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  border-block-end: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-block-end-color: var(--ink); }
.form .btn { justify-self: start; margin-block-start: var(--space-2); }
@media (max-width: 900px) { .contact .container { grid-template-columns: 1fr; gap: var(--space-7); } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; padding: var(--space-5); } }

/* Footer */
.site-footer { background: var(--black); color: var(--on-dark-muted); font-size: var(--fs-sm); padding-block: var(--space-8) var(--space-5); }
.site-footer .top { display: grid; grid-template-columns: 2.4fr repeat(3, minmax(0, 1fr)); gap: var(--space-7); }
.site-footer a[href^="tel:"] { white-space: nowrap; }
/* Brand block: large logo over the slogan on one line; app.js inlines the logo and turns the "o" toward the cursor */
.site-footer .brand { min-width: 0; }
.footer-logo { display: block; width: 100%; max-width: 440px; height: auto; aspect-ratio: 74.15874 / 24.99995; overflow: visible; }
.site-footer .slogan { width: max-content; margin: var(--space-4) 0 0; color: #fff; font-family: "Inter", system-ui, sans-serif; font-size: clamp(1.25rem, 0.8rem + 1.6vw, 2.25rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; white-space: nowrap; }
.footer-logo .logo-dot { color: #fff; }
.site-footer h4 { color: #fff; font-size: var(--fs-2xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin-block-end: var(--space-4); }
:lang(ar) .site-footer h4 { letter-spacing: 0; font-size: var(--fs-xs); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.site-footer a:hover { color: #fff; }
.site-footer .socials { display: flex; gap: var(--space-3); margin-block-start: var(--space-2); }
.site-footer .socials svg { width: 20px; height: 20px; }
.site-footer .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); margin-block-start: var(--space-8); padding-block-start: var(--space-5); border-block-start: 1px solid rgb(255 255 255 / 0.1); font-size: var(--fs-xs); }
.subbrands { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); }
.subbrands span { color: #fff; font-weight: 500; }
.subbrands span::before { content: "neo•"; color: var(--on-dark-muted); }
@media (max-width: 900px) { .site-footer .top { grid-template-columns: 1fr 1fr; } .site-footer .brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .site-footer .top { grid-template-columns: 1fr; } }

/* Photo strip (homepage) – slow marquee; the image set is rendered twice by JS for a seamless loop */
.photo-strip { overflow: hidden; padding-block: 0 var(--space-8); }
.photo-strip .track { display: flex; gap: var(--space-4); width: max-content; animation: marquee 60s linear infinite; }
.photo-strip:hover .track { animation-play-state: paused; }
.photo-strip img { height: clamp(200px, 22vw, 300px); width: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
[dir="rtl"] .photo-strip .track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ---------- Catalogue pages ---------- */
.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.8125rem; letter-spacing: 0; }

.page-head { padding-block: calc(var(--header-h) + var(--space-8)) var(--space-7); }
.page-head .container { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; }
.page-head h1 { font-size: var(--fs-h1); margin-block: var(--space-4) var(--space-3); }
.page-head--compact { padding-block: calc(var(--header-h) + var(--space-5)) var(--space-4); }
.page-head--compact h1 { font-size: var(--fs-h2); margin-block: var(--space-2) var(--space-1); }
/* Product pages sit on a deeper grey so the white product cut-outs stand out */
body[data-page="products"], body[data-page="product"] { --bg: var(--grey-200); }
.page-head .lead { color: var(--text-soft); font-size: var(--fs-sm); max-width: 520px; }

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(420px, 100%);
  min-height: 48px;
  padding-inline: 18px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--line-strong);
  transition: border-color .2s;
}
.search:focus-within { border-color: var(--ink); }
.search svg { width: 18px; height: 18px; flex: none; color: var(--text-muted); }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: var(--fs-sm); padding-block: 12px; }
.search-sm { min-height: 40px; width: min(300px, 100%); }
.search-sm input { padding-block: 8px; }

.filters {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-block: 1px solid var(--line);
}
.filters .container { display: grid; gap: var(--space-3); padding-block: var(--space-3); }
.chip-row { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-block: 2px; }
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: transparent;
  font-size: var(--fs-xs);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { background: #fff; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-sm { min-height: 30px; padding: 0 12px; }
.chip-row .sep { flex: none; width: 1px; height: 20px; background: var(--line-strong); margin-inline: 4px; }

.catalogue { padding-block: var(--space-6) var(--space-9); }

.grid-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.pcard {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color .2s, box-shadow .25s var(--ease), transform .25s var(--ease);
}
.pcard:hover { border-color: var(--line-strong); box-shadow: var(--shadow-float); transform: translateY(-2px); }
.pcard .media { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 8%; border-block-end: 1px solid var(--line); }
.pcard .media img { max-width: 100%; max-height: 100%; object-fit: contain; transition: scale .5s var(--ease); }
.pcard:hover .media img { scale: 1.04; }
.pcard .media .plus { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--grey-100); }
.pcard .media .plus svg { width: 14px; height: 14px; }
.pcard .body { display: grid; gap: 6px; padding: 16px 18px 18px; }
.brand-tag { font-size: var(--fs-2xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.pcard h3 { font-family: var(--font-display); font-size: var(--fs-lg); text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.1; }
:lang(ar) .pcard h3 { text-transform: none; }
.pcard .meta { font-size: var(--fs-xs); color: var(--text-muted); }
.pcard .series { font-size: 0.75rem; font-weight: 600; color: var(--text-soft); }
.pcard .media svg.cat-icon { width: 64px; height: 64px; color: var(--grey-300); }
.pcard.soon .meta { color: var(--text-muted); font-style: italic; }
.hit { justify-self: start; display: inline-flex; gap: 6px; align-items: center; padding: 3px 8px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--neo-yellow) 28%, #fff); font-size: var(--fs-2xs); }
.empty { padding: var(--space-8) var(--space-5); text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius-md); color: var(--text-soft); }
.empty .btn { margin-block-start: var(--space-4); }
@media (max-width: 1100px) {
  .grid-products { grid-template-columns: repeat(3, 1fr); }
  /* Four category tiles: two rows of two rather than three plus one */
  .grid-products:has(> [data-open-cat]) { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) { .grid-products { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); } .pcard .body { padding: 12px 14px 14px; } }

/* Product detail */
.pdp { padding-block: calc(var(--header-h) + var(--space-6)) var(--space-8); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: var(--fs-xs); color: var(--text-muted); margin-block-end: var(--space-6); }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { opacity: 0.5; }
.pdp-top { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-8); align-items: start; }
.gallery .main { aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 6%; border-radius: var(--radius-md); background: #fff; border: 1px solid var(--line); }
.gallery .main img { max-width: 100%; max-height: 100%; object-fit: contain; }
/* Catalogue photos have a #efefed backdrop: cards and gallery use that grey, and white-backed cut-outs blend into it. */
:is(body[data-page="products"], body[data-page="product"]) :is(.pcard, .gallery .main, .gallery .thumbs button) { background: var(--grey-100); }
:is(body[data-page="products"], body[data-page="product"]) :is(.pcard .media, .gallery) img { mix-blend-mode: darken; }
.gallery .thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: var(--space-3); }
.gallery .thumbs button { width: 84px; aspect-ratio: 4 / 3; padding: 6px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); cursor: pointer; }
.gallery .thumbs button img { width: 100%; height: 100%; object-fit: contain; }
.gallery .thumbs button[aria-current="true"] { border-color: var(--ink); }
.pdp-info .logo { color: var(--ink); }
.pdp-info .logo svg { height: 22px; }
.pdp-info .logo .sub { font-size: 0.9rem; }
.pdp-info h1 { font-size: var(--fs-h2); margin-block: var(--space-4) var(--space-2); }
.pdp-info .group { font-size: var(--fs-sm); color: var(--text-soft); }
.pdp-series { margin-block-start: 6px; font-size: var(--fs-sm); }
.pdp-desc { margin-block-start: var(--space-4); max-width: 60ch; font-size: var(--fs-sm); line-height: 1.65; color: var(--text-soft); }
.pdp-series span:first-child { color: var(--text-muted); }
.pdp-series .mono { font-weight: 600; }
.facts-row { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin-block: var(--space-6); border-block: 1px solid var(--line); }
.facts-row div { padding: var(--space-4) var(--space-4) var(--space-4) 0; }
.facts-row div + div { padding-inline-start: var(--space-4); border-inline-start: 1px solid var(--line); }
.facts-row dt { font-size: var(--fs-2xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
:lang(ar) .facts-row dt { letter-spacing: 0; font-size: var(--fs-xs); }
.facts-row dd { margin: 4px 0 0; font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; }
.opt { margin-block-end: var(--space-5); }
.opt-label { display: block; margin-block-end: var(--space-2); font-size: var(--fs-2xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
:lang(ar) .opt-label { letter-spacing: 0; font-size: var(--fs-xs); }
.opt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.spec-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-5); margin: 0; }
.spec-list div { display: flex; justify-content: space-between; gap: var(--space-3); padding-block: 8px; border-block-end: 1px solid var(--line); font-size: var(--fs-sm); }
.spec-list dt { color: var(--text-soft); }
.spec-list dd { margin: 0; font-weight: 600; text-align: end; }
@media (max-width: 560px) { .spec-list { grid-template-columns: 1fr; } }
.opt-chips span { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 12px; border-radius: var(--radius-pill); background: #fff; border: 1px solid var(--line); font-size: var(--fs-xs); }
.opt-chips i { width: 18px; height: 18px; margin-inline-start: -6px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.12); }
.feat-list { list-style: none; padding: 0; margin: 0 0 var(--space-5); display: grid; gap: 6px; font-size: var(--fs-sm); }
.feat-list li { display: flex; align-items: center; gap: 8px; }
.feat-list svg { width: 18px; height: 18px; color: var(--neo-blue); }
.pdp-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-block-start: var(--space-6); }
.btn-outline { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-outline:hover { background: #fff; }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn svg.lead-icon { width: 16px; height: 16px; }
@media (max-width: 900px) { .pdp-top { grid-template-columns: 1fr; gap: var(--space-6); } }
@media (max-width: 480px) { .facts-row { grid-auto-flow: row; grid-template-columns: 1fr 1fr; } .facts-row div:nth-child(3) { grid-column: 1 / -1; padding-inline-start: 0; border-inline-start: 0; border-block-start: 1px solid var(--line); } }

.codes { padding-block: var(--space-8); }
.codes-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4); margin-block-end: var(--space-5); }
.codes-head h2 { font-size: var(--fs-h2); }
.codes-head .count { font-size: var(--fs-xs); color: var(--text-muted); margin-block-start: 6px; }
.codes-filters { display: grid; gap: 10px; margin-block-end: var(--space-4); }
.codes-filters .label { flex: none; min-width: 72px; font-size: var(--fs-2xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
:lang(ar) .codes-filters .label { letter-spacing: 0; font-size: var(--fs-xs); }
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); background: #fff; border: 1px solid var(--line); }
.codes-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.codes-table th { position: sticky; top: 0; padding: 12px 16px; background: var(--grey-50); border-block-end: 1px solid var(--line); text-align: start; font-size: var(--fs-2xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; }
:lang(ar) .codes-table th { letter-spacing: 0; font-size: var(--fs-xs); }
.codes-table td { padding: 10px 16px; border-block-end: 1px solid var(--line); white-space: nowrap; }
.codes-table tr:last-child td { border-block-end: 0; }
.codes-table tbody tr:hover { background: var(--grey-50); }
.codes-table td.num { font-variant-numeric: tabular-nums; }
.sku-cell { display: inline-flex; align-items: center; gap: 6px; }
.copy-btn { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--text-muted); cursor: pointer; opacity: 0; transition: opacity .15s, background-color .15s; }
.copy-btn svg { width: 15px; height: 15px; }
.codes-table tr:hover .copy-btn, .copy-btn:focus-visible, .copy-btn.done { opacity: 1; }
.copy-btn:hover { background: var(--grey-100); color: var(--ink); }
.copy-btn.done { color: var(--neo-blue); }
.add-btn { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--line-strong); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.add-btn svg { width: 12px; height: 12px; }
.add-btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.add-btn.done { background: var(--neo-blue); border-color: var(--neo-blue); color: #fff; }
@media (hover: none) { .copy-btn { opacity: 1; } }
.related { padding-block: 0 var(--space-9); }
.related h2 { font-size: var(--fs-h2); margin-block-end: var(--space-6); }

/* ---------- Content pages ---------- */
.page-hero { position: relative; color: #fff; background: var(--black); overflow: hidden; isolation: isolate; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(0 0 0 / 0.55), rgb(0 0 0 / 0.25) 45%, rgb(0 0 0 / 0.7)); }
.page-hero .container { display: flex; flex-direction: column; justify-content: flex-end; min-height: min(68svh, 640px); padding-block: calc(var(--header-h) + var(--space-8)) var(--space-7); }
.page-hero .eyebrow { color: rgb(255 255 255 / 0.85); --dot: var(--neo-yellow); }
.page-hero h1 { font-size: var(--fs-h1); max-width: 18ch; margin-block: var(--space-4) var(--space-4); }
.page-hero .lead { max-width: 560px; color: var(--on-dark-soft); font-size: var(--fs-md); }


/* About: the page opens on the timeline; key figures sit between it and the manufacturing band */
/* Full-width, short factory band under the header */
.about-banner { position: relative; display: flex; align-items: flex-end; margin: var(--header-h) 0 0; height: clamp(220px, 28vw, 420px); overflow: hidden; background: #6b5552; color: #fff; }
.about-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.about-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(0 0 0 / 0.55), rgb(0 0 0 / 0.15) 55%, transparent), linear-gradient(0deg, rgb(0 0 0 / 0.35), transparent 60%); }
[dir="rtl"] .about-banner::after { background: linear-gradient(270deg, rgb(0 0 0 / 0.55), rgb(0 0 0 / 0.15) 55%, transparent), linear-gradient(0deg, rgb(0 0 0 / 0.35), transparent 60%); }
.about-banner .container { position: relative; z-index: 1; padding-block-end: var(--space-7); }
.about-banner .eyebrow { color: rgb(255 255 255 / 0.85); }
.about-banner h1 { margin-block-start: var(--space-3); font-size: var(--fs-h1); }
.about-start { padding-block-start: var(--space-8); }
.about-figures { padding-block: 0; }
.about-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.about-stats div { padding: var(--space-6) var(--space-5) var(--space-6) 0; }
.about-stats div + div { padding-inline-start: var(--space-5); border-inline-start: 1px solid var(--line); }
.about-stats b { display: block; font-size: clamp(1.75rem, 1.1rem + 1.8vw, 3rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.about-stats span { display: block; margin-block-start: var(--space-2); font-size: var(--fs-sm); color: var(--text-soft); }
@media (max-width: 760px) {
  .about-stats { grid-template-columns: 1fr 1fr; }
  .about-stats div:nth-child(3) { padding-inline-start: 0; border-inline-start: 0; }
  .about-stats div:nth-child(n+3) { border-block-start: 1px solid var(--line); }
}

/* Timeline (about): one full-width row per year (marker, year, text, photo) on a dotted rail.
   JS sets --progress (the red rail grows with scroll) and marks passed years .active */
.timeline { --rail-top: calc(var(--space-7) + 0.9rem + 7px); position: relative; list-style: none; margin: 0; padding: 0; border-block-end: 1px solid var(--line); }
.timeline::before,
.timeline::after { content: ""; position: absolute; z-index: 1; inset-block-start: var(--rail-top); inset-inline-start: 6px; width: 2px; }
.timeline::before { inset-block-end: 0; background: radial-gradient(circle, rgb(22 22 22 / 0.55) 1px, transparent 1.5px) 0 0 / 2px 8px repeat-y; }
.timeline::after { height: calc((100% - var(--rail-top)) * var(--progress, 0)); background: var(--neo-red); transition: height .15s linear; }
.tl-item { display: grid; grid-template-columns: 20px minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1.3fr); column-gap: var(--space-6); align-items: start; padding-block: var(--space-7); border-block-start: 1px solid var(--line); }
.tl-dot { position: relative; z-index: 2; grid-area: 1 / 1; width: 14px; height: 14px; margin-block-start: 0.9rem; border-radius: 50%; background: var(--bg); border: 2px solid var(--ink); transition: background-color .4s, border-color .4s, scale .4s var(--ease); }
.tl-year { grid-area: 1 / 2; font-family: "Inter", system-ui, sans-serif; font-size: clamp(2.25rem, 1.2rem + 2.6vw, 4rem); font-weight: 600; letter-spacing: -0.05em; line-height: 0.85; color: var(--grey-300); transition: color .4s var(--ease); }
.tl-body { grid-column: 3; opacity: 0.6; transition: opacity .4s var(--ease); }
.tl-body h3 { font-family: var(--font-display); font-size: clamp(1.2rem, 1rem + 0.5vw, 1.5rem); text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.05; margin-block-end: var(--space-3); }
:lang(ar) .tl-body h3 { text-transform: none; }
.tl-body p { font-size: var(--fs-sm); color: var(--text-soft); line-height: 1.55; }
.tl-photo { grid-column: 4; margin: 0; }
.tl-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); }
.tl-item.active .tl-year { color: var(--ink); }
.tl-item.active .tl-dot { background: var(--neo-red); border-color: var(--neo-red); scale: 1.2; }
.tl-item.active .tl-body { opacity: 1; }
@media (max-width: 900px) {
  .tl-item { grid-template-columns: 20px minmax(0, 1fr); row-gap: var(--space-4); }
  .tl-body, .tl-photo { grid-column: 2; grid-row: auto; }
}

/* Manufacturing (about): dark band */
.about-mfg { --line: rgb(255 255 255 / 0.12); --text-soft: var(--on-dark-soft); background: var(--black); color: #fff; }
.about-mfg .eyebrow { color: rgb(255 255 255 / 0.8); }
.about-mfg .container { grid-template-columns: 1fr; }
.about-mfg .about-copy { max-width: 900px; }
.about-mfg .lead { font-size: var(--fs-md); max-width: 640px; }
.about-mfg .feature { padding-block-start: var(--space-5); border-block-start: 1px solid var(--line); }
.about-mfg .feature svg { color: rgb(255 255 255 / 0.75); }
.about-mfg .feature p { font-size: var(--fs-sm); }

.quality .info-card { background: #fff; }

.page-plain { padding-block: calc(var(--header-h) + var(--space-8)) var(--space-7); }
.page-plain h1 { font-size: var(--fs-h1); margin-block: var(--space-4) var(--space-3); }
.page-plain .lead { color: var(--text-soft); font-size: var(--fs-md); max-width: 620px; }

.section-head { display: grid; gap: var(--space-4); max-width: 640px; margin-block-end: var(--space-7); }
.section-head h2 { font-size: var(--fs-h2); }
.section-head p { color: var(--text-soft); font-size: var(--fs-sm); }

.prose-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); font-size: var(--fs-sm); color: var(--text-soft); }
.prose-cols p + p { margin-block-start: var(--space-4); }
@media (max-width: 760px) { .prose-cols { grid-template-columns: 1fr; gap: var(--space-4); } }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.info-card { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); border-radius: var(--radius-md); background: #fff; border: 1px solid var(--line); }
.info-card svg.icon { width: 36px; height: 36px; color: var(--grey-700); }
.info-card h3 { font-family: var(--font-display); font-size: var(--fs-h3); text-transform: uppercase; letter-spacing: 0.01em; }
:lang(ar) .info-card h3 { text-transform: none; }
.info-card p { font-size: var(--fs-sm); color: var(--text-soft); }
.info-card .btn { align-self: flex-start; margin-block-start: auto; }
@media (max-width: 900px) { .cards-3 { grid-template-columns: 1fr; } }

.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.brand-tile { display: grid; gap: var(--space-4); align-content: start; padding: var(--space-6); border-radius: var(--radius-md); background: #fff; border: 1px solid var(--line); }
.brand-tile .logo { color: var(--ink); }
.brand-tile .logo svg { height: 26px; }
.brand-tile p { font-size: var(--fs-sm); color: var(--text-soft); }
.brand-tile a.more { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; }
.brand-tile a.more .chev { width: 14px; height: 14px; }
@media (max-width: 900px) { .brand-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .brand-grid { grid-template-columns: 1fr; } }

.cert-figure { margin: 0; border-radius: var(--radius-md); background: #fff; border: 1px solid var(--line); padding: var(--space-5); }
.cert-figure img { width: 100%; height: auto; }
.cert-figure figcaption { margin-block-start: var(--space-3); font-size: var(--fs-xs); color: var(--text-muted); }

/* Documents & videos */
.doc-list { display: grid; gap: var(--space-3); }
.doc {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--line);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s;
}
/* Rows darken under the pointer */
.doc:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.doc:hover .meta { color: rgb(255 255 255 / 0.6); }
.doc:hover .btn-dark { background: #fff; color: var(--ink); }
.doc:hover .btn-outline { color: #fff; border-color: rgb(255 255 255 / 0.4); }
.doc .thumb { width: 72px; aspect-ratio: 3 / 4; border-radius: var(--radius-sm); overflow: hidden; background: var(--grey-100); display: grid; place-items: center; color: var(--grey-500); }
.doc .thumb img { width: 100%; height: 100%; object-fit: cover; }
.doc .thumb svg { width: 28px; height: 28px; }
.doc h3 { font-family: var(--font-display); font-size: var(--fs-h3); text-transform: uppercase; letter-spacing: 0.01em; }
:lang(ar) .doc h3 { text-transform: none; }
.doc .meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-block-start: 6px; font-size: var(--fs-xs); color: var(--text-muted); }
.doc-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
@media (max-width: 640px) { .doc { grid-template-columns: auto 1fr; } .doc > .btn, .doc-actions { grid-column: 1 / -1; justify-self: start; } }

/* Technical sheet finder */
.sheet-tools { display: grid; gap: var(--space-3); margin-block-end: var(--space-5); }
.sheet-try { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: -4px 0 4px; font-size: var(--fs-xs); color: var(--text-muted); }
.sheet-try button { padding: 2px 8px; border: 0; border-radius: 4px; background: var(--grey-150); font: 600 0.75rem ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; color: var(--ink); cursor: pointer; transition: background-color .2s; }
.sheet-try button:hover { background: var(--neo-yellow); }
.sheet-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); padding: 0; margin: 0; list-style: none; }
.sheet {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--line);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s;
}
.sheet:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.sheet:hover :is(.group, .sheet-codes) { color: rgb(255 255 255 / 0.6); }
.sheet:hover .btn-outline { color: #fff; border-color: rgb(255 255 255 / 0.4); }
.sheet:hover .btn-outline:hover { background: rgb(255 255 255 / 0.12); }
.sheet .thumb { aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 6px; border-radius: var(--radius-sm); background: var(--grey-100); }
.sheet .thumb img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.sheet:hover .thumb img { mix-blend-mode: normal; }
.sheet .group { display: block; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.sheet h3 { margin-block: 2px 4px; font-family: var(--font-display); font-size: 1.125rem; line-height: 1.15; text-transform: uppercase; letter-spacing: 0.01em; }
:lang(ar) .sheet h3 { text-transform: none; }
.sheet h3 a { color: inherit; }
.sheet .sheet-codes { display: block; color: var(--text-soft); font-size: 0.75rem; }
.sheet .sheet-codes .hit { padding: 1px 6px; border-radius: 4px; background: var(--neo-yellow); color: var(--ink); }
.sheet-links { display: flex; gap: 6px; }
.sheet-links .btn { min-height: 34px; padding: 0 12px; }
.sheet-empty { color: var(--text-muted); font-size: var(--fs-sm); }
@media (max-width: 1000px) { .sheet-list { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .sheet { grid-template-columns: 64px 1fr; } .sheet-links { grid-column: 1 / -1; } }

.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.video-card { display: grid; gap: var(--space-3); padding: 0; border: 0; background: none; text-align: start; cursor: pointer; }
.video-card .poster { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-md); overflow: hidden; background: var(--black); }
.video-card .poster img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--ease); }
.video-card:hover .poster img { scale: 1.04; }
.video-card .play { position: absolute; inset: 0; display: grid; place-items: center; }
.video-card .play span { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: rgb(255 255 255 / 0.92); color: var(--ink); box-shadow: var(--shadow-float); }
.video-card .play svg { width: 20px; height: 20px; margin-inline-start: 3px; }
.video-card h3 { font-size: var(--fs-sm); font-weight: 600; }
.video-card .meta { font-size: var(--fs-xs); color: var(--text-muted); }
@media (max-width: 900px) { .video-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .video-grid { grid-template-columns: 1fr; } }

.player { width: min(960px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: var(--radius-md); background: var(--black); color: #fff; overflow: hidden; }
.player::backdrop { background: rgb(0 0 0 / 0.75); }
.player video { display: block; width: 100%; max-height: 80vh; background: #000; }
.player .bar { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: 12px 16px; font-size: var(--fs-sm); }
.player button { border: 0; background: rgb(255 255 255 / 0.12); color: #fff; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; line-height: 1; }

/* Fairs */
.events { display: grid; gap: var(--space-3); }
.event { display: grid; grid-template-columns: 120px 1fr auto; gap: var(--space-5); align-items: center; padding: var(--space-5); border-radius: var(--radius-md); background: #fff; border: 1px solid var(--line); }
.event .date { font-family: var(--font-display); font-weight: 600; line-height: 1.05; }
.event .date b { display: block; font-size: 1.75rem; }
.event .date span { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.event h3 { font-family: var(--font-display); font-size: var(--fs-h3); text-transform: uppercase; letter-spacing: 0.01em; }
:lang(ar) .event h3 { text-transform: none; }
.event .meta { margin-block-start: 4px; font-size: var(--fs-xs); color: var(--text-muted); }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-pill); font-size: var(--fs-2xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; background: var(--grey-100); color: var(--text-soft); }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.upcoming { background: color-mix(in srgb, var(--neo-yellow) 30%, #fff); color: #6b5200; }
:lang(ar) .status { letter-spacing: 0; }
.event.past { opacity: 0.75; }
.pcard.news .media { padding: 0; }
.pcard.news .media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; }
.pcard.news .media.logo-media { background: #fff; }
.pcard.news .media.logo-media img { object-fit: contain; padding: 6%; }
.pcard.news .media .status { position: absolute; inset-block-start: 12px; inset-inline-start: 12px; background: rgb(255 255 255 / 0.92); }
.pcard.news .media .status.upcoming { background: var(--neo-yellow); color: var(--ink); }
.pcard.news .play { position: absolute; inset: 0; display: grid; place-items: center; }
.pcard.news .play > span { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: rgb(255 255 255 / 0.92); color: var(--ink); }
.pcard.news .play svg { width: 18px; height: 18px; margin-inline-start: 3px; }
@media (max-width: 640px) { .event { grid-template-columns: 1fr; gap: var(--space-3); } }

/* Contact page extras */
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-xs); color: var(--text-soft); }
.check input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--ink); }
.check a { text-decoration: underline; text-underline-offset: 2px; }
.form-status { grid-column: 1 / -1; font-size: var(--fs-sm); padding: 12px 14px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--neo-blue) 10%, #fff); }
.form-status.is-error { background: color-mix(in srgb, var(--neo-red) 12%, #fff); }
:is(.form, .hero-quote) .hp { position: absolute; inset-inline-start: -9999px; inline-size: 1px; block-size: 1px; overflow: hidden; }

/* Legal pages */
.prose { max-width: 760px; font-size: var(--fs-sm); color: var(--text-soft); line-height: 1.75; }
.prose h2 { margin-block: var(--space-7) var(--space-3); font-family: var(--font-display); font-size: var(--fs-h3); text-transform: uppercase; letter-spacing: 0.01em; color: var(--ink); }
:lang(ar) .prose h2 { text-transform: none; }
.prose p + p, .prose ul { margin-block-start: var(--space-3); }
.prose ul { padding-inline-start: 20px; display: grid; gap: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin-block-start: var(--space-4); font-size: var(--fs-xs); }
.prose th, .prose td { text-align: start; padding: 10px 12px; border-block-end: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--text-muted); font-weight: 600; }
html:not([lang="tr"]) .legal-tr, html[lang="tr"] .legal-en { display: none; }

/* Footer legal links + cookie banner */
.site-footer .legal { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.site-footer .legal button { padding: 0; border: 0; background: none; color: inherit; cursor: pointer; font-size: inherit; }
.site-footer .legal a:hover, .site-footer .legal button:hover { color: #fff; }

.cookie-banner {
  position: fixed;
  z-index: 90;
  inset-inline: 16px;
  inset-block-end: 16px;
  margin-inline: auto;
  max-width: 760px;
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 20px 50px -20px rgb(0 0 0 / 0.45), 0 0 0 1px var(--line);
}
.cookie-banner b { display: block; font-family: var(--font-display); font-size: var(--fs-lg); text-transform: uppercase; }
:lang(ar) .cookie-banner b { text-transform: none; }
.cookie-banner p { font-size: var(--fs-xs); color: var(--text-soft); margin-block-start: 4px; }
.cookie-banner a { text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: var(--space-2); flex: none; }

/* Dark page theme (contact) – white on black; the form stays a white card for legibility */
.theme-dark {
  --bg: var(--black);
  --text: #fff;
  --text-soft: rgb(255 255 255 / 0.72);
  --text-muted: rgb(255 255 255 / 0.5);
  --line: rgb(255 255 255 / 0.1);
  --line-strong: rgb(255 255 255 / 0.22);
}
.theme-dark .site-header.solid { color: #fff; background: color-mix(in srgb, var(--black) 88%, transparent); }
.theme-dark .info-card { background: #18181a; }
.theme-dark .info-card svg.icon { color: rgb(255 255 255 / 0.7); }
.theme-dark .btn-dark { background: #fff; color: var(--ink); }
.theme-dark .btn-dark:hover { background: var(--grey-150); }
.theme-dark .btn-outline { color: #fff; }
.theme-dark .btn-outline:hover { background: rgb(255 255 255 / 0.08); }
/* Light popups (quote list, WhatsApp choice) keep light-theme colours on dark pages */
.theme-dark :is(.quote-drawer, .wa-choice) { --text: var(--ink); --text-soft: #555552; --text-muted: var(--grey-500); --line: rgb(22 22 22 / 0.09); --line-strong: rgb(22 22 22 / 0.16); color: var(--ink); }
.theme-dark :is(.quote-drawer, .wa-choice) .btn-outline { color: var(--ink); }
.theme-dark :is(.quote-drawer, .wa-choice) .btn-outline:hover { background: var(--grey-100); }
.theme-dark .quote-drawer .btn-dark { background: var(--ink); color: #fff; }
.theme-dark .form {
  color: var(--ink);
  --text: var(--ink);
  --text-soft: #555552;
  --text-muted: var(--grey-500);
  --line: rgb(22 22 22 / 0.09);
  --line-strong: rgb(22 22 22 / 0.16);
}
.theme-dark .form .btn-dark { background: var(--ink-2); color: #fff; }
.theme-dark .form-status { color: var(--ink); }
.btn-wa { background: #25d366; color: #fff; margin-block-end: var(--space-6); }
.btn-wa:hover { background: #1ebe5a; }

/* Online catalogue reader */
.reader { display: flex; flex-direction: column; min-height: 100svh; padding-block-start: var(--header-h); background: var(--black); }
.reader-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-4); }
.reader-back { display: inline-flex; align-items: center; gap: 6px; flex: none; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-soft); }
.reader-back:hover { color: #fff; }
.reader-back .chev { width: 14px; height: 14px; transform: scaleX(-1); }
[dir="rtl"] .reader-back .chev { transform: none; }
.reader-title { flex: 1; min-width: 0; font-family: var(--font-display); font-size: var(--fs-h3); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:lang(ar) .reader-title { text-transform: none; }
.reader-tools { display: flex; align-items: center; gap: var(--space-2); flex: none; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: inherit; cursor: pointer; font-size: 1.25rem; line-height: 1; }
.icon-btn:hover { background: rgb(255 255 255 / 0.08); }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn svg.flip-x { transform: scaleX(-1); }
.reader-count { min-width: 76px; text-align: center; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; color: var(--text-soft); }
.reader-stage { flex: 1; display: grid; place-items: center; padding: var(--space-2) var(--gutter) var(--space-4); }
/* Two pages side by side, scaled to the viewport height (page ratio 1400×1963) */
.book-wrap { width: min(100%, calc((100svh - var(--header-h) - 220px) * 1400 / 1963 * 2)); }
.book .page { background: #fff; }
.book .page img { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; }
.reader-thumbs { display: flex; gap: var(--space-2); overflow-x: auto; padding: var(--space-3) var(--gutter) var(--space-5); padding-inline-end: 96px; scrollbar-width: thin; }
.reader-thumbs button { flex: none; display: grid; gap: 4px; justify-items: center; width: 60px; padding: 0; border: 0; background: none; color: var(--text-muted); cursor: pointer; font-size: var(--fs-2xs); }
.reader-thumbs img { width: 60px; height: auto; border-radius: 3px; outline: 2px solid transparent; outline-offset: 2px; opacity: 0.6; transition: opacity .2s; }
.reader-thumbs button:hover img { opacity: 1; }
.reader-thumbs button[aria-current] img { opacity: 1; outline-color: #fff; }
.reader-thumbs button[aria-current] { color: #fff; }
.zoom-view { width: min(1100px, 96vw); max-height: 94vh; padding: 0; border: 0; border-radius: var(--radius-md); background: #111; overflow: auto; }
.zoom-view::backdrop { background: rgb(0 0 0 / 0.8); }
.zoom-view img { display: block; width: 100%; height: auto; }
.zoom-close { position: sticky; top: 12px; float: right; margin: 12px; background: rgb(0 0 0 / 0.6); color: #fff; }
@media (max-width: 760px) {
  .reader-bar { flex-wrap: wrap; }
  .reader-title { flex-basis: 100%; order: -1; }
  .reader-tools .btn span { display: none; }
  /* Single page in portrait mode */
  .book-wrap { width: min(100%, calc((100svh - var(--header-h) - 260px) * 1400 / 1963)); }
}

/* Floating WhatsApp button (bottom end corner, hidden while the cookie banner is open) */
.wa-float {
  position: fixed;
  z-index: 85;
  inset-block-end: 20px;
  inset-inline-end: 20px;
  height: 56px;
  min-width: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  padding-inline: 13px;
  border-radius: var(--radius-pill);
  background: #25d366;
  color: #fff;
  box-shadow: var(--shadow-float);
  transition: transform .25s var(--ease), background-color .2s, opacity .3s, visibility .3s;
}
.wa-float svg { flex: none; width: 30px; height: 30px; }
/* The pop-out line: hidden until hover / focus, and shown once per visit (.peek, set by app.js) */
.wa-text { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; font-size: var(--fs-sm); font-weight: 600; transition: max-width .45s var(--ease), opacity .25s, margin .45s var(--ease); }
.wa-float:is(:hover, :focus-visible, .peek) { transform: scale(1.06); background: #1ebe5a; }
.wa-float:is(:hover, :focus-visible, .peek) .wa-text { max-width: min(340px, calc(100vw - 120px)); opacity: 1; margin-inline-end: 10px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; animation: wa-pulse 2.4s 2s 3; }
@keyframes wa-pulse { from { box-shadow: 0 0 0 0 rgb(37 211 102 / 0.55); } to { box-shadow: 0 0 0 18px rgb(37 211 102 / 0); } }
@media (prefers-reduced-motion: reduce) { .wa-float::before { animation: none; } }
.cookie-open .wa-float { display: none; }
@media (max-width: 640px) { .cookie-banner { flex-direction: column; align-items: stretch; } .cookie-actions { flex-direction: column; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-slides img { transition: opacity .3s; scale: 1; }
  .progress .bar i.run { animation: none; transform: scaleX(1); }
  .photo-strip .track { animation: none; overflow-x: auto; width: auto; }
}

/* Quote list drawer (opened from the header), WhatsApp topic choice, toast */
.quote-drawer { position: fixed; inset: 0 0 0 auto; width: min(460px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: #fff; color: var(--ink); box-shadow: var(--shadow-float); }
[dir="rtl"] .quote-drawer { inset: 0 auto 0 0; }
.quote-drawer[open] { display: flex; flex-direction: column; }
.quote-drawer::backdrop, .wa-choice::backdrop { background: rgb(0 0 0 / 0.35); }
.qd-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-5) var(--space-6); border-block-end: 1px solid var(--line); }
.qd-head h2 { font-family: var(--font-display); font-size: var(--fs-h3); text-transform: uppercase; }
:lang(ar) .qd-head h2 { text-transform: none; }
.qd-body { flex: 1; overflow-y: auto; display: grid; align-content: start; gap: var(--space-5); padding: var(--space-5) var(--space-6) var(--space-7); }
.qd-empty { display: grid; justify-items: start; gap: var(--space-4); color: var(--text-soft); font-size: var(--fs-sm); }
.qd-items { list-style: none; margin: 0; padding: 0; }
.qd-items li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding-block: 12px; border-block-end: 1px solid var(--line); }
.qd-items .mono { font-weight: 600; }
.qd-items small { display: block; margin-block-start: 2px; font-size: var(--fs-xs); color: var(--text-muted); }
.qd-qty { width: 76px; min-height: 36px; padding: 4px 8px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); text-align: center; font: inherit; }
.qd-items .icon-btn { width: 32px; height: 32px; font-size: 1.1rem; }
.qd-note { display: grid; gap: 6px; }
.qd-note span { font-size: var(--fs-2xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.qd-note textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font: inherit; font-size: var(--fs-sm); resize: vertical; }
.qd-form { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.qd-form .hp { position: absolute; inset-inline-start: -9999px; inline-size: 1px; block-size: 1px; overflow: hidden; }
.qd-hint { grid-column: 1 / -1; margin: 0; font-size: var(--fs-xs); color: var(--text-soft); }
.qd-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.qd-actions .btn-wa { margin: 0; }
.qd-body .form-status { margin: 0; }
@media (max-width: 480px) { .qd-form { grid-template-columns: 1fr; } }
.wa-choice { width: min(380px, 92vw); padding: var(--space-6); border: 0; border-radius: var(--radius-md); background: #fff; color: var(--ink); }
.wa-choice[open] { display: grid; gap: 10px; }
.wa-choice p { margin: 0 0 6px; padding-inline-end: 40px; font-weight: 600; }
.wa-choice .btn { width: 100%; margin: 0; }
.wa-choice-close { position: absolute; inset-block-start: 14px; inset-inline-end: 14px; width: 32px; height: 32px; }
.toast { position: fixed; z-index: 120; inset-block-end: 92px; left: 50%; translate: -50% 8px; padding: 10px 18px; border-radius: var(--radius-pill); background: var(--ink); color: #fff; font-size: var(--fs-sm); opacity: 0; pointer-events: none; transition: opacity .2s, translate .2s var(--ease); }
.toast.show { opacity: 1; translate: -50% 0; }
/* Contact page WhatsApp button pulses like the floating one */
.btn-wa.btn-wa--pulse { position: relative; transition: transform .2s var(--ease), background-color .2s; }
.btn-wa.btn-wa--pulse:hover { transform: scale(1.04); }
.btn-wa.btn-wa--pulse::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; animation: wa-pulse 2.4s 1s infinite; }
@media (prefers-reduced-motion: reduce) { .btn-wa.btn-wa--pulse::before { animation: none; } }
