/* MEA Techno — engineering catalog */
@font-face { font-family: "Archivo"; src: url(../assets/fonts/archivo-latin.woff2) format("woff2"); font-weight: 400 800; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(../assets/fonts/plexmono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(../assets/fonts/plexmono-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url(../assets/fonts/plexar-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url(../assets/fonts/plexar-600.woff2) format("woff2"); font-weight: 600 800; font-display: swap; }

:root {
  --ink: #111316;
  --graphite: #191c20;
  --graphite-2: #22262b;
  --graphite-3: #2c3137;
  --steel: #6b717a;
  --steel-2: #9aa0a8;
  --paper: #edebe5;
  --paper-2: #e2dfd7;
  --white: #fbfaf7;
  --line: rgba(17, 19, 22, .14);
  --line-strong: rgba(17, 19, 22, .32);
  --line-dark: rgba(255, 255, 255, .09);
  --line-dark-strong: rgba(255, 255, 255, .2);
  --yellow: #f4c20d;
  --yellow-2: #ffd84a;
  --yellow-ink: #1c1600;
  --ok: #3fb27f;

  --f-display: "Archivo", "Plex Arabic", system-ui, sans-serif;
  --f-body: "Archivo", "Plex Arabic", system-ui, sans-serif;
  --f-mono: "Plex Mono", ui-monospace, "Cascadia Mono", monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --header-h: 64px;
}
html[lang="ar"] {
  --f-display: "Plex Arabic", "Archivo", system-ui, sans-serif;
  --f-body: "Plex Arabic", "Archivo", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.55 var(--f-body); font-stretch: 100%;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
html[lang="ar"] .mono { letter-spacing: 0; }
.tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); }
.dark .tag { color: var(--steel-2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  height: 48px; padding: 0 22px; border-radius: var(--radius); border: 1px solid transparent;
  font-weight: 650; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
html[dir="rtl"] .btn .arrow { transform: scaleX(-1); }
.btn-yellow { background: var(--yellow); color: var(--yellow-ink); }
.btn-yellow:hover { background: var(--yellow-2); }
.btn-ghost { border-color: var(--line-dark-strong); color: var(--white); }
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--graphite-3); }
.btn-line { border-color: var(--line-strong); }
.btn-line:hover { border-color: var(--ink); }
.btn-wa { background: #1fa855; color: #fff; }
.btn-wa:hover { background: #22bd5f; }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- top strip + header ---------- */
.strip { background: var(--ink); color: var(--steel-2); }
.strip .wrap { display: flex; gap: 20px; align-items: center; height: 34px; }
.strip .mono { font-size: 11px; }
.strip a { text-decoration: none; }
.strip a:hover { color: var(--yellow); }
.strip .sep { flex: 1; }
.strip .hide-sm { display: inline; }

.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(25, 28, 32, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--white); border-bottom: 1px solid var(--line-dark);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 100%; }
.brand { display: flex; align-items: center; gap: 2px; text-decoration: none; flex: none; direction: ltr; }
.brand-mark {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 3px solid #4a4f56; border-radius: 7px; background: linear-gradient(#2a2e33, #1d2024);
  font: 800 24px/1 "Archivo", sans-serif; font-stretch: 105%; color: var(--yellow);
}
.brand-text { display: flex; flex-direction: column; line-height: 1; padding-left: 2px; }
.brand-text b { font: 800 17px/1 "Archivo", sans-serif; font-stretch: 112%; color: var(--yellow); letter-spacing: .01em; }
.brand-text small { font: 500 10px/1.3 var(--f-mono); color: var(--steel-2); letter-spacing: .04em; margin-top: 3px; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a {
  text-decoration: none; padding: 8px 12px; border-radius: var(--radius); font-size: 14px; font-weight: 550; color: #d6d8db;
  display: inline-flex; gap: 8px; align-items: baseline;
}
.nav a i { font: 500 10px var(--f-mono); color: var(--steel); font-style: normal; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); background: var(--graphite-3); }
.header-actions { display: flex; gap: 10px; align-items: center; margin-inline-start: auto; }
.lang-btn {
  height: 38px; min-width: 44px; padding: 0 10px; border: 1px solid var(--line-dark-strong); border-radius: var(--radius);
  background: none; font-size: 14px; font-weight: 600;
}
.lang-btn:hover { border-color: var(--yellow); color: var(--yellow); }
.rfq-btn {
  height: 38px; padding: 0 12px 0 14px; border-radius: var(--radius); border: 0;
  background: var(--yellow); color: var(--yellow-ink); font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; gap: 10px;
}
.rfq-btn .count {
  min-width: 22px; height: 22px; border-radius: 3px; background: var(--ink); color: var(--yellow);
  font: 500 12px/22px var(--f-mono); text-align: center; padding: 0 5px;
}
.rfq-btn.bump { animation: bump .45s ease; }
@keyframes bump { 30% { transform: scale(1.08); } }
.menu-btn { display: none; width: 40px; height: 38px; border: 1px solid var(--line-dark-strong); border-radius: var(--radius); background: none; }
.menu-btn svg { width: 20px; height: 20px; margin: auto; }

/* ---------- section scaffolding ---------- */
section { position: relative; }
.dark { background: var(--graphite); color: var(--white); }
.sec { padding: clamp(64px, 9vw, 120px) 0; }
.sec-head { display: grid; grid-template-columns: 220px 1fr; gap: 24px 40px; margin-bottom: clamp(36px, 5vw, 56px); align-items: start; }
.sec-num { font: 500 12px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--steel); padding-top: 12px; border-top: 2px solid var(--ink); }
.dark .sec-num { color: var(--steel-2); border-color: var(--yellow); }
.sec-num b { color: var(--ink); font-weight: 500; }
.dark .sec-num b { color: var(--yellow); }
.sec-title { margin: 0; font: 750 clamp(30px, 4.4vw, 54px)/1.02 var(--f-display); font-stretch: 112%; letter-spacing: -.02em; max-width: 18ch; }
html[lang="ar"] .sec-title { letter-spacing: 0; line-height: 1.25; }
.sec-lead { margin: 14px 0 0; max-width: 56ch; color: #4a4f57; font-size: 17px; }
.dark .sec-lead { color: #b5bac1; }

.grid-bg {
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
}

/* ---------- hero ---------- */
.hero { overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 88px); }
.hero-kicker { display: inline-flex; gap: 10px; align-items: center; color: var(--yellow); }
.hero-kicker::before { content: ""; width: 28px; height: 2px; background: var(--yellow); }
.hero h1 {
  margin: 22px 0 22px; font: 800 clamp(40px, 6.4vw, 84px)/.96 var(--f-display); font-stretch: 118%;
  letter-spacing: -.03em;
}
html[lang="ar"] .hero h1 { letter-spacing: 0; line-height: 1.2; font-size: clamp(36px, 5.6vw, 70px); }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero p.lead { margin: 0 0 32px; color: #c1c5cb; font-size: 18px; max-width: 46ch; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { margin-top: 40px; display: grid; grid-template-columns: repeat(3, auto); gap: 0; justify-content: start; border-top: 1px solid var(--line-dark-strong); }
.hero-meta div { padding: 14px 28px 0 0; }
html[dir="rtl"] .hero-meta div { padding: 14px 0 0 28px; }
.hero-meta b { display: block; font: 750 28px/1 var(--f-display); font-stretch: 112%; }
.hero-meta span { font: 500 11px var(--f-mono); color: var(--steel-2); text-transform: uppercase; letter-spacing: .06em; }

.schematic { position: relative; border: 1px solid var(--line-dark-strong); background: rgba(17,19,22,.55); border-radius: 6px; }
.schematic-top, .schematic-bot { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; font: 500 11px var(--f-mono); color: var(--steel-2); text-transform: uppercase; letter-spacing: .06em; }
.schematic-top { border-bottom: 1px solid var(--line-dark); }
.schematic-bot { border-top: 1px solid var(--line-dark); }
.schematic-top .live { color: var(--ok); display: inline-flex; gap: 6px; align-items: center; }
.schematic-top .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.schematic svg { display: block; width: 100%; height: auto; direction: ltr; }
.schematic .flow { stroke-dasharray: 6 8; animation: flow 1.1s linear infinite; }
.schematic .flow.rev { animation-direction: reverse; }
.schematic .flow.slow { animation-duration: 2.4s; }
@keyframes flow { to { stroke-dashoffset: -28; } }
.readout { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); direction: ltr; }
.readout div { padding: 12px 14px; border-right: 1px solid var(--line-dark); }
.readout div:last-child { border-right: 0; }
.readout span { display: block; font: 500 10px var(--f-mono); color: var(--steel-2); letter-spacing: .08em; }
.readout b { font: 500 22px/1.2 var(--f-mono); color: var(--white); }
.readout b small { font-size: 12px; color: var(--steel-2); margin-left: 3px; }

.brands-strip { border-top: 1px solid var(--line-dark); }
.brands-strip .wrap { display: flex; align-items: center; gap: 36px; height: 72px; overflow: hidden; }
.brands-strip .tag { flex: none; }
.brands-list { display: flex; gap: 40px; align-items: center; white-space: nowrap; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.brands-list span { font: 750 19px var(--f-display); font-family: "Archivo", sans-serif; font-stretch: 118%; color: #8d939b; letter-spacing: .02em; }

/* ---------- catalog index (home) ---------- */
.index-list { border-top: 2px solid var(--ink); }
.index-row {
  display: grid; grid-template-columns: 90px minmax(0, 1.1fr) minmax(0, 1.4fr) 110px 40px; gap: 24px; align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--line-strong); text-decoration: none; position: relative;
  transition: background .2s, padding .25s;
}
.index-row:hover { background: var(--white); padding-inline: 18px; }
.index-row .no { font: 500 13px var(--f-mono); color: var(--steel); }
.index-row h3 { margin: 0; font: 750 clamp(22px, 2.6vw, 32px)/1.05 var(--f-display); font-stretch: 112%; letter-spacing: -.015em; }
html[lang="ar"] .index-row h3 { letter-spacing: 0; line-height: 1.3; }
.index-row .subs { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.index-row .subs span { font-size: 13.5px; padding: 3px 9px; border: 1px solid var(--line); border-radius: 3px; background: rgba(255,255,255,.4); white-space: nowrap; }
.index-row .subs span i { font-style: normal; font-family: var(--f-mono); font-size: 11px; color: var(--steel); margin-inline-start: 5px; }
.index-row .cnt { text-align: end; font: 500 13px var(--f-mono); color: var(--steel); }
.index-row .cnt b { display: block; font: 750 30px/1 var(--f-display); font-stretch: 112%; color: var(--ink); }
.index-row .go { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.index-row .go svg { width: 16px; height: 16px; }
html[dir="rtl"] .index-row .go svg { transform: scaleX(-1); }
.index-row:hover .go { background: var(--yellow); border-color: var(--yellow); }
.index-peek {
  position: fixed; z-index: 40; width: 200px; aspect-ratio: 1; pointer-events: none; background: #fff; border: 1px solid var(--line-strong);
  border-radius: 4px; padding: 14px; opacity: 0; transform: translate(-50%, -50%) scale(.9); transition: opacity .18s, transform .18s;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.4);
}
.index-peek.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.index-peek img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- spec cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1px; background: var(--line-strong); border: 1px solid var(--line-strong); }
.card { background: var(--white); display: flex; flex-direction: column; position: relative; min-width: 0; }
.card-img { position: relative; aspect-ratio: 1 / .86; background: #fff; display: grid; place-items: center; padding: 22px; cursor: zoom-in; border: 0; width: 100%; }
.card-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .35s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-ref { position: absolute; top: 10px; inset-inline-start: 12px; font: 500 10.5px var(--f-mono); color: var(--steel); letter-spacing: .06em; }
.card-ref::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--yellow); margin-inline-end: 6px; vertical-align: 1px; }
.card-body { padding: 14px 16px 16px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-specs { display: flex; flex-wrap: wrap; gap: 4px; min-height: 22px; }
.chip { font: 500 11px/1 var(--f-mono); padding: 5px 6px; border-radius: 2px; background: var(--paper); color: #3b4047; letter-spacing: .03em; white-space: nowrap; direction: ltr; }
.chip.brand { background: var(--ink); color: var(--yellow); }
.card-name { margin: 0; font-size: 15.5px; font-weight: 600; line-height: 1.3; cursor: pointer; overflow-wrap: anywhere; }
.card-name:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.card-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding-top: 6px; }
.price { font: 500 18px/1 var(--f-mono); direction: ltr; }
.price small { display: block; font-size: 10px; color: var(--steel); letter-spacing: .06em; margin-bottom: 4px; text-transform: uppercase; }
.add-btn {
  height: 36px; padding: 0 12px; border-radius: var(--radius); border: 1px solid var(--ink); background: none;
  font-size: 13px; font-weight: 650; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  transition: background .15s, color .15s;
}
.add-btn svg { width: 14px; height: 14px; }
.add-btn:hover { background: var(--ink); color: var(--white); }
.add-btn.in { background: var(--yellow); border-color: var(--yellow); color: var(--yellow-ink); }

/* featured rail */
.rail-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
.rail-head h3 { margin: 0; font: 700 22px var(--f-display); font-stretch: 110%; }
.rail { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.rail .card { scroll-snap-align: start; }

/* ---------- solar sizer ---------- */
.sizer { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1px; background: var(--line-dark-strong); border: 1px solid var(--line-dark-strong); border-radius: 6px; overflow: hidden; }
.sizer > div { background: var(--graphite); }
.sizer-in { padding: 28px; }
.sizer-in h3, .sizer-out h3 { margin: 0 0 4px; font: 700 18px var(--f-display); }
.sizer-in .hint { margin: 0 0 20px; color: var(--steel-2); font-size: 14px; }
.appl { display: grid; grid-template-columns: 1fr auto auto; gap: 10px 14px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line-dark); }
.appl:last-of-type { border-bottom: 0; }
.appl-name { display: flex; gap: 12px; align-items: center; min-width: 0; }
.appl-name svg { width: 22px; height: 22px; flex: none; color: var(--yellow); }
.appl-name b { font-weight: 600; font-size: 15px; display: block; }
.appl-name span { font: 500 11px var(--f-mono); color: var(--steel-2); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-dark-strong); border-radius: var(--radius); height: 34px; direction: ltr; }
.stepper button { width: 32px; height: 100%; background: none; border: 0; font-size: 18px; line-height: 1; color: var(--steel-2); }
.stepper button:hover { color: var(--yellow); }
.stepper output { min-width: 26px; text-align: center; font: 500 14px var(--f-mono); }
.hours { font: 500 12px var(--f-mono); color: var(--steel-2); min-width: 56px; text-align: end; direction: ltr; }
.range-row { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-dark-strong); }
.range-row label { display: flex; justify-content: space-between; font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.range-row label output { font: 500 14px var(--f-mono); color: var(--yellow); }
input[type="range"] { width: 100%; accent-color: var(--yellow); }
.sizer-out { padding: 28px; display: flex; flex-direction: column; background: var(--graphite-2) !important; }
.gauges { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); margin: 16px 0 20px; }
.gauge { background: var(--graphite-2); padding: 14px; }
.gauge span { font: 500 10.5px var(--f-mono); color: var(--steel-2); letter-spacing: .08em; text-transform: uppercase; }
.gauge b { display: block; font: 500 30px/1.15 var(--f-mono); color: var(--white); direction: ltr; text-align: start; }
html[dir="rtl"] .gauge b { text-align: end; }
.gauge b small { font-size: 13px; color: var(--steel-2); margin-left: 4px; }
.gauge .bar { height: 3px; background: var(--graphite-3); margin-top: 10px; }
.gauge .bar i { display: block; height: 100%; background: var(--yellow); width: 0; transition: width .4s; }
.bom { list-style: none; margin: 0 0 20px; padding: 0; border-top: 1px solid var(--line-dark-strong); }
.bom li { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-dark); }
.bom img { width: 52px; height: 52px; object-fit: contain; background: #fff; border-radius: 3px; padding: 4px; }
.bom b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.bom span { font: 500 11px var(--f-mono); color: var(--steel-2); }
.bom .q { font: 500 15px var(--f-mono); color: var(--yellow); }
.sizer-note { font-size: 13px; color: var(--steel-2); margin: 0 0 18px; }
.sizer-out .btn { width: 100%; margin-top: auto; }

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.wo { background: var(--white); border: 1px solid var(--line-strong); border-radius: 6px; display: flex; flex-direction: column; overflow: hidden; }
.wo-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px dashed var(--line-strong); font: 500 11px var(--f-mono); letter-spacing: .06em; color: var(--steel); text-transform: uppercase; }
.wo-head b { color: var(--ink); font-weight: 500; }
.wo-body { padding: 22px 18px; flex: 1; display: flex; flex-direction: column; }
.wo-ico { width: 52px; height: 52px; border-radius: 6px; background: var(--ink); color: var(--yellow); display: grid; place-items: center; margin-bottom: 18px; }
.wo-ico svg { width: 26px; height: 26px; }
.wo h3 { margin: 0 0 8px; font: 750 22px/1.15 var(--f-display); font-stretch: 108%; }
.wo p { margin: 0 0 18px; color: #4a4f57; font-size: 15px; }
.wo ol { list-style: none; margin: 0 0 22px; padding: 0; counter-reset: s; }
.wo ol li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.wo ol li::before { content: counter(s, decimal-leading-zero); font: 500 12px var(--f-mono); color: var(--steel); padding-top: 2px; }
.wo .btn { margin-top: auto; }

/* ---------- process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--yellow); }
.step { padding: 24px 24px 0 0; position: relative; }
html[dir="rtl"] .step { padding: 24px 0 0 24px; }
.step b { font: 500 13px var(--f-mono); color: var(--yellow); }
.step h4 { margin: 10px 0 6px; font: 700 19px var(--f-display); font-stretch: 106%; }
.step p { margin: 0; color: #b5bac1; font-size: 15px; }

/* ---------- visit ---------- */
.visit { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1px; background: var(--line-strong); border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; }
.visit > div { background: var(--white); }
.visit-info { padding: 32px; }
.visit-info dl { margin: 0; display: grid; grid-template-columns: 110px 1fr; }
.visit-info dt, .visit-info dd { padding: 16px 0; border-bottom: 1px solid var(--line); margin: 0; }
.visit-info dt { font: 500 11px/1.9 var(--f-mono); color: var(--steel); text-transform: uppercase; letter-spacing: .06em; }
.visit-info dd { font-size: 16px; font-weight: 550; }
.visit-info dd a { text-decoration: none; direction: ltr; unicode-bidi: embed; }
.visit-info dd a:hover { color: #9a7a00; }
.visit-info .btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.map { min-height: 380px; position: relative; background: var(--paper-2); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--steel-2); padding: 56px 0 28px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot h5 { margin: 0 0 14px; font: 500 11px var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--white); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--yellow); }
.foot p { font-size: 14.5px; max-width: 34ch; margin: 16px 0 0; }
.foot-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font: 500 11px var(--f-mono); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- catalog page ---------- */
.cat-hero { padding: 40px 0 34px; }
.cat-hero h1 { margin: 10px 0 8px; font: 800 clamp(34px, 5vw, 60px)/1 var(--f-display); font-stretch: 116%; letter-spacing: -.025em; }
html[lang="ar"] .cat-hero h1 { letter-spacing: 0; line-height: 1.25; }
.cat-hero p { margin: 0; color: #b5bac1; max-width: 60ch; }
.crumbs { display: flex; gap: 8px; color: var(--steel-2); }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--yellow); }
.catalog { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; padding-top: 32px; padding-bottom: 80px; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow: auto; scrollbar-width: thin; }
.toc-sec { border-top: 2px solid var(--ink); padding: 10px 0 14px; }
.toc-sec > button, .toc-all {
  width: 100%; background: none; border: 0; padding: 4px 0; display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  text-align: start; font-weight: 700; font-size: 15px;
}
.toc-sec > button i, .toc-all i { font: 500 11px var(--f-mono); font-style: normal; color: var(--steel); }
.toc-sub { display: grid; margin-top: 4px; }
.toc-sub button { background: none; border: 0; padding: 5px 10px; margin-inline-start: -10px; border-radius: 3px; display: flex; justify-content: space-between; gap: 8px; text-align: start; font-size: 14.5px; color: #3e434a; }
.toc-sub button i { font: 500 11px var(--f-mono); font-style: normal; color: var(--steel); }
.toc-sub button:hover { background: var(--paper-2); }
.toc button.on { background: var(--ink); color: var(--white); }
.toc button.on i { color: var(--yellow); }
.toc-all { border-top: 2px solid var(--ink); padding: 12px 10px 12px 0; margin-bottom: 8px; }
.toc-all.on { background: none !important; color: var(--ink) !important; }
.toc-all.on span::before { content: "▸ "; color: #b08b00; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.search { flex: 1 1 260px; position: relative; }
.search svg { position: absolute; top: 50%; inset-inline-start: 14px; width: 18px; height: 18px; transform: translateY(-50%); color: var(--steel); }
.search input { width: 100%; height: 46px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--white); padding: 0 14px; padding-inline-start: 42px; font-size: 15px; }
.search input:focus { outline: 2px solid var(--yellow); outline-offset: -1px; border-color: var(--ink); }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; height: 46px; background: var(--white); }
.seg button { border: 0; background: none; padding: 0 14px; display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; }
.seg button + button { border-inline-start: 1px solid var(--line-strong); }
.seg button svg { width: 16px; height: 16px; }
.seg button.on { background: var(--ink); color: var(--white); }
select.sort { height: 46px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--white); padding: 0 12px; font-size: 14px; font-weight: 600; }
.brand-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.brand-chips button { border: 1px solid var(--line-strong); background: transparent; border-radius: 3px; padding: 5px 10px; font: 500 12px var(--f-mono); letter-spacing: .04em; text-transform: uppercase; }
.brand-chips button:hover { border-color: var(--ink); }
.brand-chips button.on { background: var(--ink); color: var(--yellow); border-color: var(--ink); }
.results-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; font: 500 12px var(--f-mono); color: var(--steel); text-transform: uppercase; letter-spacing: .06em; }
.results-meta b { color: var(--ink); font-weight: 500; }
.sub-head { display: flex; align-items: baseline; gap: 12px; margin: 34px 0 12px; }
.sub-head:first-child { margin-top: 0; }
.sub-head h2 { margin: 0; font: 750 24px var(--f-display); font-stretch: 110%; }
.sub-head .tag { margin-inline-start: auto; }
.empty { padding: 60px 20px; text-align: center; border: 1px dashed var(--line-strong); border-radius: 6px; }
.empty h3 { margin: 0 0 6px; font-family: var(--f-display); }
.empty p { margin: 0 0 18px; color: var(--steel); }

/* datasheet table view */
.sheet { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line-strong); font-size: 14.5px; }
.sheet th { text-align: start; font: 500 10.5px var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--steel); padding: 10px 12px; background: var(--paper-2); border-bottom: 1px solid var(--line-strong); }
.sheet td { padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.sheet tr:hover td { background: #fffdf3; }
.sheet .t-ref { font: 500 11.5px var(--f-mono); color: var(--steel); white-space: nowrap; }
.sheet .t-img { width: 56px; }
.sheet .t-img img { width: 44px; height: 44px; object-fit: contain; mix-blend-mode: multiply; cursor: zoom-in; }
.sheet .t-name { font-weight: 600; cursor: pointer; }
.sheet .t-name:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }
.sheet .t-spec .chip { margin: 1px; }
.sheet .t-price { font: 500 14px var(--f-mono); text-align: end; white-space: nowrap; direction: ltr; }
.sheet .t-act { width: 1%; text-align: end; }
.sheet .add-btn { height: 32px; }

/* ---------- datasheet modal ---------- */
.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(10, 11, 13, .62); opacity: 0; pointer-events: none; transition: opacity .25s; }
.overlay.on { opacity: 1; pointer-events: auto; }
.modal {
  position: fixed; z-index: 90; left: 50%; top: 50%; width: min(920px, calc(100% - 32px)); max-height: calc(100vh - 48px); overflow: auto;
  background: var(--white); border-radius: 6px; transform: translate(-50%, -46%); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  display: grid; grid-template-columns: 1fr 1fr;
}
.modal.on { opacity: 1; transform: translate(-50%, -50%); pointer-events: auto; }
.modal-img { background: #fff; display: grid; place-items: center; padding: 36px; border-inline-end: 1px dashed var(--line-strong); position: relative; min-height: 340px; }
.modal-img img { max-height: 420px; object-fit: contain; }
.modal-img .tag { position: absolute; top: 14px; inset-inline-start: 16px; }
.modal-info { padding: 30px 28px 26px; display: flex; flex-direction: column; }
.modal-close { position: absolute; top: 10px; inset-inline-end: 10px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); display: grid; place-items: center; z-index: 2; }
.modal-close svg { width: 16px; height: 16px; }
.modal h2 { margin: 6px 0 16px; font: 750 26px/1.15 var(--f-display); font-stretch: 106%; overflow-wrap: anywhere; padding-inline-end: 30px; }
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 14.5px; }
.spec-table th { text-align: start; width: 40%; font: 500 11px var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--steel); padding: 9px 0; border-top: 1px solid var(--line); font-weight: 500; }
.spec-table td { padding: 9px 0; border-top: 1px solid var(--line); font-weight: 550; }
.modal-desc { font-size: 14.5px; color: #3e434a; margin: 0 0 18px; white-space: pre-line; }
.modal-buy { margin-top: auto; padding-top: 16px; border-top: 2px solid var(--ink); display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.modal-buy .price { font-size: 26px; margin-inline-end: auto; }
.modal-buy .stepper { border-color: var(--line-strong); height: 48px; }
.modal-buy .stepper button { color: var(--ink); width: 40px; }
.modal-buy .btn { flex: 1 1 auto; }
.modal-ask { margin-top: 10px; font-size: 14px; text-align: center; }
.modal-ask a { color: #1a8a47; font-weight: 600; }

/* ---------- RFQ drawer ---------- */
.drawer {
  position: fixed; z-index: 95; top: 0; bottom: 0; inset-inline-end: 0; width: min(480px, 100%); background: var(--paper);
  transform: translateX(100%); transition: transform .3s ease; display: flex; flex-direction: column; box-shadow: -20px 0 60px -30px rgba(0,0,0,.5);
}
html[dir="rtl"] .drawer { transform: translateX(-100%); }
.drawer.on { transform: none !important; }
.drawer-head { background: var(--ink); color: var(--white); padding: 18px 20px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.drawer-head h2 { margin: 2px 0 0; font: 750 22px var(--f-display); font-stretch: 110%; }
.drawer-head .tag { color: var(--yellow); }
.drawer-head button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-dark-strong); background: none; display: grid; place-items: center; flex: none; }
.drawer-head button svg { width: 16px; height: 16px; }
.drawer-body { flex: 1; overflow: auto; padding: 4px 20px 20px; }
.rfq-items { list-style: none; margin: 0; padding: 0; }
.rfq-items li { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-strong); }
.rfq-items img { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 3px; padding: 4px; border: 1px solid var(--line); }
.rfq-items .nm { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.rfq-items .rf { font: 500 10.5px var(--f-mono); color: var(--steel); display: flex; gap: 10px; align-items: center; margin-top: 3px; }
.rfq-items .rf button { background: none; border: 0; padding: 0; color: #a3341f; font: inherit; text-decoration: underline; text-transform: uppercase; }
.rfq-items .r { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.rfq-items .stepper { border-color: var(--line-strong); height: 30px; }
.rfq-items .stepper button { color: var(--ink); width: 28px; }
.rfq-items .ln { font: 500 13px var(--f-mono); direction: ltr; }
.rfq-empty { padding: 48px 8px; text-align: center; color: var(--steel); }
.rfq-empty svg { width: 44px; height: 44px; margin: 0 auto 12px; color: var(--steel-2); }
.rfq-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 6px; }
.rfq-total span { font: 500 11px var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--steel); }
.rfq-total b { font: 500 22px var(--f-mono); direction: ltr; }
.rfq-fine { font-size: 12.5px; color: var(--steel); margin: 0 0 18px; }
.form-grid { display: grid; gap: 12px; }
.field label { display: block; font: 500 10.5px var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--steel); margin-bottom: 5px; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--white); padding: 11px 12px; font-size: 15px; }
.field textarea { min-height: 70px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--yellow); outline-offset: -1px; }
.radios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.radios label { margin: 0; }
.radios input { position: absolute; opacity: 0; }
.radios span { display: block; text-align: center; padding: 10px 6px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--white); font: 600 13.5px var(--f-body); text-transform: none; letter-spacing: 0; color: var(--ink); cursor: pointer; }
.radios input:checked + span { background: var(--ink); color: var(--yellow); border-color: var(--ink); }
.radios input:focus-visible + span { outline: 2px solid var(--yellow); }
.drawer-foot { padding: 16px 20px; border-top: 1px solid var(--line-strong); background: var(--white); }
.drawer-foot .btn { width: 100%; }

.toast {
  position: fixed; z-index: 100; bottom: 22px; left: 50%; transform: translate(-50%, 30px); opacity: 0; transition: .3s;
  background: var(--ink); color: var(--white); padding: 12px 16px; border-radius: var(--radius); font-size: 14.5px; display: flex; gap: 12px; align-items: center;
  border-inline-start: 4px solid var(--yellow); box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); max-width: calc(100% - 32px);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast button { background: none; border: 0; color: var(--yellow); font-weight: 700; padding: 0; text-decoration: underline; }

/* mobile nav */
.mnav { display: none; }

/* reveal */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .mnav { display: block; position: fixed; z-index: 49; top: calc(var(--header-h) + 34px); left: 0; right: 0; background: var(--graphite); border-bottom: 1px solid var(--line-dark); transform: translateY(-110%); transition: transform .3s; visibility: hidden; }
  body.scrolled .mnav { top: var(--header-h); }
  .mnav.on { transform: none; visibility: visible; }
  .mnav a { display: flex; justify-content: space-between; padding: 16px var(--gutter); color: var(--white); text-decoration: none; border-top: 1px solid var(--line-dark); font-weight: 600; }
  .mnav a i { font: 500 11px var(--f-mono); color: var(--steel-2); font-style: normal; }
  .hero .wrap { grid-template-columns: 1fr; }
  .sizer { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; max-width: 640px; }
  .catalog { grid-template-columns: 1fr; gap: 18px; }
  .toc { position: static; max-height: none; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
  .toc-all, .toc-sec { border: 0; padding: 0; margin: 0; flex: none; }
  .toc-sec > button, .toc-all { white-space: nowrap; border: 1px solid var(--line-strong); border-radius: 3px; padding: 8px 12px; font-size: 14px; width: auto; }
  .toc-sub { display: none; }
  .toc-all.on, .toc button.on { background: var(--ink) !important; color: var(--white) !important; }
  .toc-all.on span::before { content: none; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  :root { --header-h: 58px; }
  .strip .hide-sm { display: none; }
  .sec-head { grid-template-columns: 1fr; gap: 14px; }
  .sec-num { max-width: 200px; }
  .hero-meta { grid-template-columns: repeat(3, 1fr); }
  .hero-meta div { padding-right: 10px; }
  .hero-meta b { font-size: 22px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .readout b { font-size: 17px; }
  .index-row { grid-template-columns: 40px 1fr 40px; gap: 6px 12px; padding: 20px 0; }
  .index-row:hover { padding-inline: 0; background: none; }
  .index-row .subs { grid-column: 2 / 3; grid-row: 2; }
  .index-row .cnt { display: none; }
  .index-row .go { grid-column: 3; grid-row: 1; }
  .index-peek { display: none; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-img { padding: 14px; }
  .card-body { padding: 12px; }
  .card-name { font-size: 14px; }
  .card-foot { flex-direction: column; align-items: stretch; }
  .add-btn { justify-content: center; }
  .rail { grid-auto-columns: 72%; }
  .process { grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .visit { grid-template-columns: 1fr; }
  .visit-info { padding: 22px; }
  .visit-info dl { grid-template-columns: 90px 1fr; }
  .map { min-height: 300px; }
  .modal { grid-template-columns: 1fr; top: auto; bottom: 0; left: 0; width: 100%; max-height: 92vh; transform: translateY(30px); border-radius: 10px 10px 0 0; }
  .modal.on { transform: none; }
  .modal-img { min-height: 0; padding: 24px; border: 0; border-bottom: 1px dashed var(--line-strong); }
  .modal-img img { max-height: 240px; }
  .modal-info { padding: 20px 18px 22px; }
  .sheet .t-spec, .sheet th.t-spec, .sheet .t-ref, .sheet th.t-ref { display: none; }
  .sheet td, .sheet th { padding: 8px 6px; }
  .sizer-in, .sizer-out { padding: 20px 16px; }
  .appl { grid-template-columns: 1fr auto; }
  .appl .hours { grid-column: 2; grid-row: 2; }
  .foot { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .brand-text small { display: none; }
  .rfq-btn .lbl { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}

/* bidi: keep units, phone numbers and codes left-to-right inside Arabic layout */
.chip { display: inline-block; unicode-bidi: isolate; }
.strip a, .price, .t-ref, .card-ref { unicode-bidi: isolate; direction: ltr; }
.sheet .t-spec { min-width: 140px; }
.sheet th.t-price { font: 500 10.5px var(--f-mono); }
@media (max-width: 760px) {
  .brand-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .brand-chips button { flex: none; }
  select.sort, .seg { flex: 1 1 auto; }
  .seg button { flex: 1; justify-content: center; }
}
.card-img { overflow: hidden; }
.card-img img { position: absolute; inset: 22px; width: calc(100% - 44px); height: calc(100% - 44px); }
@media (max-width: 760px) { .card-img img { inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); } }
.card-ref { z-index: 1; background: #fff; padding: 1px 5px 1px 0; }

/* ================= v2: clean product cards ================= */
.cards { gap: 18px; background: none; border: 0; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card { border-radius: 12px; border: 1px solid rgba(17,19,22,.08); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.card:hover { box-shadow: 0 14px 34px -18px rgba(17,19,22,.35); transform: translateY(-2px); }
.card-img { aspect-ratio: 1 / 1; background: #fff; padding: 0; border-bottom: 1px solid rgba(17,19,22,.06); }
.card-img img { inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px); }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { border-top: 0; padding: 14px 16px 16px; gap: 12px; }
.card-name {
  font-size: 15px; font-weight: 600; line-height: 1.35; min-height: 2.7em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-name:hover { text-decoration: none; color: #8a6d00; }
.card-foot { align-items: center; padding-top: 0; }
.card .price { font: 700 18px/1 var(--f-body); font-family: "Archivo", sans-serif; }
.add-btn.round { width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 0; background: var(--ink); color: var(--white); justify-content: center; flex: none; }
.add-btn.round svg { width: 18px; height: 18px; }
.add-btn.round:hover { background: var(--yellow); color: var(--yellow-ink); }
.add-btn.round.in { background: var(--yellow); color: var(--yellow-ink); }
.rail { gap: 18px; padding: 4px 2px 18px; }

/* ================= v2: catalog page ================= */
.cat-top { padding: 44px 0 40px; text-align: center; }
.cat-top h1 { margin: 0 0 22px; font: 800 clamp(32px, 4.6vw, 52px)/1.05 var(--f-display); font-stretch: 112%; letter-spacing: -.02em; }
html[lang="ar"] .cat-top h1 { letter-spacing: 0; line-height: 1.3; }
.cat-search { position: relative; display: block; max-width: 560px; margin: 0 auto; }
.cat-search svg { position: absolute; top: 50%; inset-inline-start: 20px; width: 20px; height: 20px; transform: translateY(-50%); color: var(--steel); pointer-events: none; }
.cat-search input {
  width: 100%; height: 56px; border-radius: 999px; border: 0; background: var(--white); color: var(--ink);
  padding: 0 22px; padding-inline-start: 54px; font-size: 16px; box-shadow: 0 0 0 4px rgba(244,194,13,0);
  transition: box-shadow .2s;
}
.cat-search input:focus { outline: 0; box-shadow: 0 0 0 4px rgba(244,194,13,.55); }

.cat-nav { position: sticky; top: var(--header-h); z-index: 30; background: rgba(237,235,229,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.sec-tabs { display: flex; gap: 6px; justify-content: center; padding: 14px 0; overflow-x: auto; scrollbar-width: none; }
.sec-tabs::-webkit-scrollbar, .sub-pills::-webkit-scrollbar { display: none; }
.sec-tabs button {
  flex: none; display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 18px; border-radius: 999px;
  border: 1px solid transparent; background: none; font-size: 15px; font-weight: 600; color: #41464d; transition: background .2s, color .2s;
}
.sec-tabs button svg { width: 20px; height: 20px; }
.sec-tabs button:hover { background: var(--white); color: var(--ink); }
.sec-tabs button.on { background: var(--ink); color: var(--white); }
.sec-tabs button.on svg { color: var(--yellow); }
.sub-pills { display: flex; gap: 8px; justify-content: center; padding: 0 0 14px; overflow-x: auto; scrollbar-width: none; }
.sub-pills button { flex: none; height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--white); font-size: 14px; font-weight: 550; }
.sub-pills button:hover { border-color: var(--ink); }
.sub-pills button.on { background: var(--yellow); border-color: var(--yellow); color: var(--yellow-ink); }

.cat-body { padding-top: 36px; padding-bottom: 90px; }
.group + .group { margin-top: 56px; }
.group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.group-head h2 { margin: 0; font: 750 clamp(22px, 2.6vw, 28px)/1.15 var(--f-display); font-stretch: 108%; }
.group-head .n { font: 500 13px var(--f-mono); color: var(--steel); }
.see-all { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 6px 0; font-size: 15px; font-weight: 650; color: var(--ink); white-space: nowrap; }
.see-all b { font-weight: 650; }
.see-all svg { width: 16px; height: 16px; transition: transform .2s; }
.see-all:hover { color: #8a6d00; }
.see-all:hover svg { transform: translateX(3px); }
html[dir="rtl"] .see-all svg { transform: scaleX(-1); }
.result-count { margin: 0 0 18px; color: var(--steel); font-size: 15px; }
.empty { border: 0; background: var(--white); border-radius: 12px; }

@media (max-width: 760px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-img img { inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); }
  .card-body { padding: 10px 12px 12px; gap: 8px; }
  .card-name { font-size: 13.5px; }
  .card .price { font-size: 16px; }
  .add-btn.round { width: 36px; height: 36px; }
  .card-foot { flex-direction: row; align-items: center; }
  .cat-top { padding: 28px 0 26px; }
  .cat-top h1 { margin-bottom: 16px; }
  .cat-search input { height: 50px; }
  .sec-tabs, .sub-pills { justify-content: flex-start; }
  .sec-tabs { padding: 10px 0; }
  .sec-tabs button { height: 42px; padding: 0 14px; font-size: 14px; }
  .group + .group { margin-top: 40px; }
  .cat-body { padding-top: 24px; }
}
.card-img img { border-radius: 6px; }

/* ================= v3: client revision ================= */
/* hero with photo background */
.hero-photo { position: relative; min-height: min(78vh, 720px); display: flex; align-items: center; overflow: hidden; background: var(--graphite); color: var(--white); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,16,19,.88) 0%, rgba(14,16,19,.7) 38%, rgba(14,16,19,.15) 70%, rgba(14,16,19,0) 100%), linear-gradient(0deg, rgba(14,16,19,.55), transparent 35%); }
html[dir="rtl"] .hero-shade { background: linear-gradient(270deg, rgba(14,16,19,.88) 0%, rgba(14,16,19,.7) 38%, rgba(14,16,19,.15) 70%, rgba(14,16,19,0) 100%), linear-gradient(0deg, rgba(14,16,19,.55), transparent 35%); }
.hero-inner { position: relative; width: 100%; padding-top: 72px; padding-bottom: 72px; }
.hero-inner h1 { margin: 20px 0 18px; font: 800 clamp(40px, 6vw, 78px)/1 var(--f-display); font-stretch: 116%; letter-spacing: -.03em; max-width: 13ch; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
html[lang="ar"] .hero-inner h1 { letter-spacing: 0; line-height: 1.25; font-size: clamp(36px, 5.2vw, 64px); }
.hero-inner h1 em { font-style: normal; color: var(--yellow); }
.hero-inner .lead { margin: 0 0 30px; color: #d9dce0; font-size: 18px; max-width: 40ch; }
.hero-inner .hero-kicker { color: var(--yellow); }
.hero-photo .btn-ghost { background: rgba(17,19,22,.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* brand carousel */
.brands-marquee { background: var(--ink); color: var(--white); padding: 22px 0 26px; overflow: hidden; }
.marquee-head { margin-bottom: 12px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); direction: ltr; }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track > div { display: flex; align-items: center; flex: none; }
.marquee-track span { font: 800 clamp(24px, 3vw, 34px)/1.2 "Archivo", sans-serif; font-stretch: 120%; color: #e6e8eb; padding: 0 28px; white-space: nowrap; }
.marquee-track i { color: var(--yellow); font-style: normal; font-size: 12px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* centred section heads */
.center-head { text-align: center; max-width: 760px; margin: 0 auto clamp(32px, 4vw, 48px); }
.center-head .sec-title { max-width: none; }
.center-head .sec-lead { margin-inline: auto; }
.center-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }

/* rotating category tiles */
.cat-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.cat-tile { display: flex; flex-direction: column; background: var(--white); border-radius: 14px; overflow: hidden; text-decoration: none; border: 1px solid rgba(17,19,22,.08); transition: transform .25s, box-shadow .25s; }
a.cat-tile:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -24px rgba(17,19,22,.45); }
.cat-tile-img { position: relative; aspect-ratio: 1 / 1; background: #fff; }
.cat-tile-img img { position: absolute; inset: 22px; width: calc(100% - 44px); height: calc(100% - 44px); object-fit: contain; border-radius: 8px; opacity: 0; transform: scale(.96); transition: opacity .7s ease, transform 1.2s ease; }
.cat-tile-img img.on { opacity: 1; transform: none; }
.cat-tile-body { position: relative; padding: 16px 18px 18px; background: var(--ink); color: var(--white); flex: 1; display: flex; flex-direction: column; gap: 4px; }
.cat-tile-sub { font: 500 11px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--yellow); transition: opacity .2s; min-height: 1.4em; }
html[lang="ar"] .cat-tile-sub { letter-spacing: 0; font-family: var(--f-body); font-size: 13px; }
.cat-tile-sub.swap { opacity: 0; }
.cat-tile h3 { margin: 0; font: 750 21px/1.2 var(--f-display); font-stretch: 106%; }
.cat-tile-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; color: var(--steel-2); font-size: 14px; }
.cat-tile .go { width: 36px; height: 36px; border-radius: 50%; background: var(--yellow); color: var(--yellow-ink); display: grid; place-items: center; }
.cat-tile .go svg { width: 16px; height: 16px; }
html[dir="rtl"] .cat-tile .go svg { transform: scaleX(-1); }
.dots { position: absolute; top: -18px; inset-inline-start: 18px; display: flex; gap: 5px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(17,19,22,.18); transition: width .3s, background .3s; }
.dots i.on { width: 18px; background: var(--yellow); }

/* wide banner variant (category page) */
.cat-tile.wide { flex-direction: row-reverse; margin-bottom: 44px; min-height: 260px; }
.cat-tile.wide .cat-tile-img { aspect-ratio: auto; flex: 0 0 42%; }
.cat-tile.wide .cat-tile-body { justify-content: center; padding: 32px clamp(24px, 4vw, 48px); gap: 8px; }
.cat-tile.wide h3 { font-size: clamp(26px, 3.4vw, 40px); font-stretch: 112%; }
.cat-tile.wide .cat-tile-sub { font-size: 13px; }
.cat-tile.wide .cat-tile-foot { margin-top: 6px; flex: none; }
.cat-tile.wide .dots { position: static; margin-top: 14px; }
.cat-tile.wide .dots i { background: rgba(255,255,255,.25); }
.cat-tile.wide .dots i.on { background: var(--yellow); }

/* services without the work-order header */
.services-sec { background: var(--paper-2); }
.wo { border-radius: 14px; border-color: rgba(17,19,22,.08); }
.wo-body { padding: 28px 24px; }
.wo p { margin-bottom: 24px; }

@media (max-width: 1060px) {
  .cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .hero-photo { display: block; min-height: 0; }
  .hero-bg { position: relative; height: auto; aspect-ratio: 16 / 9; object-position: 50% 100%; }
  .hero-shade { display: none; }
  .hero-inner { padding-top: 28px; padding-bottom: 36px; }
  .hero-inner h1 { margin-top: 14px; font-size: 40px; }
  .hero-inner .lead { font-size: 16px; }
  .cat-tiles { gap: 10px; }
  .cat-tile-img img { inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); }
  .cat-tile-body { padding: 14px 12px 14px; }
  .cat-tile h3 { font-size: 16px; }
  .cat-tile-foot { font-size: 12.5px; }
  .cat-tile .go { width: 30px; height: 30px; }
  .dots { inset-inline-start: 12px; top: -14px; }
  .cat-tile.wide { flex-direction: column; min-height: 0; }
  .cat-tile.wide .cat-tile-img { aspect-ratio: 16 / 10; flex: none; }
  .cat-tile.wide .cat-tile-body { padding: 20px; }
  .center-cta .btn { flex: 1 1 100%; }
}

/* logo: "EA TECHNO" sits on the middle line of the M, tagline hangs below without shifting it */
.brand { align-items: center; }
.brand-text { position: relative; height: 40px; justify-content: center; padding-left: 3px; }
.brand-text b { line-height: 1; }
.brand-text small { position: absolute; top: calc(50% + 11px); left: 3px; margin: 0; white-space: nowrap; }

/* contact channels */
.channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 28px; }
.channel { display: flex; align-items: center; gap: 14px; padding: 18px; background: var(--white); border: 1px solid rgba(17,19,22,.08); border-radius: 14px; text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.channel:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -22px rgba(17,19,22,.45); border-color: rgba(17,19,22,.18); }
.ch-ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: var(--yellow); flex: none; }
.ch-ico svg { width: 24px; height: 24px; }
.channel.wa .ch-ico { background: #1fa855; color: #fff; }
.channel.instagram .ch-ico { background: linear-gradient(45deg, #f9a825, #e1306c 55%, #833ab4); color: #fff; }
.channel.facebook .ch-ico { background: #1877f2; color: #fff; }
.channel.tiktok .ch-ico { background: #111; color: #fff; }
.channel.youtube .ch-ico { background: #e62117; color: #fff; }
.ch-txt { display: flex; flex-direction: column; min-width: 0; }
.ch-txt b { font-size: 16px; font-weight: 700; }
.ch-txt span { font-size: 14px; color: var(--steel); direction: ltr; text-align: start; }
html[dir="rtl"] .ch-txt span { direction: rtl; }
@media (max-width: 760px) { .channels { grid-template-columns: 1fr; gap: 10px; } .channel { padding: 14px; } }

.visit { border-radius: 14px; border-color: rgba(17,19,22,.1); }
.visit-info { display: flex; flex-direction: column; justify-content: center; }

/* hero: lift the photo slightly on desktop (shows a bit more of the upper part) */
.hero-bg { object-position: 50% 80%; }

/* hero on phones: photo strip shows the upper part, title below */
@media (max-width: 760px) {
  .hero-bg { aspect-ratio: 4 / 3; object-position: 50% 18%; }
  .hero-inner { padding-top: 26px; padding-bottom: 32px; }
  .hero-inner h1 { font-size: 34px; }
}

/* desktop hero: taller and anchored near the top so the photo reads as a whole (logo, cameras, panels, a bit of road) */
@media (min-width: 761px) {
  .hero-photo { min-height: clamp(560px, 56vw, calc(100vh - 98px)); }
  .hero-bg { object-position: 50% 20%; }
}

/* hero: new client artwork (wide for desktop, portrait for phones) */
.hero-photo picture { display: block; }
@media (min-width: 761px) { .hero-bg { object-position: 50% 30%; } }
@media (max-width: 760px) { .hero-bg { aspect-ratio: 571 / 1024; object-position: 50% 50%; } }

/* desktop hero for the new wide artwork: hero takes the picture's own proportions (nothing cropped),
   the dark shade is bottom-only so the picture's logo stays bright, and our text sits low-left under the logo */
@media (min-width: 761px) {
  .hero-photo { align-items: flex-end; min-height: 560px; }
  .hero-bg { object-position: 50% 30%; }
  .hero-shade, html[dir="rtl"] .hero-shade { background: linear-gradient(0deg, rgba(14,16,19,.88) 0%, rgba(14,16,19,.6) 30%, rgba(14,16,19,0) 62%); }
  .hero-inner { padding-top: 0; padding-bottom: 36px; }
  .hero-inner h1 { font-size: clamp(30px, 3.2vw, 50px); max-width: none; margin: 12px 0 10px; }
  html[lang="ar"] .hero-inner h1 { font-size: clamp(28px, 3vw, 46px); }
  .hero-inner .lead { max-width: 60ch; margin-bottom: 18px; font-size: 17px; }
}
@media (min-width: 1101px) {
  .hero-photo { min-height: 0; aspect-ratio: 1024 / 434; }
  .hero-bg { object-position: 50% 50%; }
}

/* phone hero: title + buttons sit ON the picture; its lower part fades into the dark page colour,
   so the logo / city at the top stay clean and the text always has a calm dark backdrop */
@media (max-width: 760px) {
  .hero-photo { background: var(--graphite); }
  .hero-inner {
    margin-top: -414px;
    padding-top: 128px;
    padding-bottom: 30px;
    background: linear-gradient(180deg, rgba(25,28,32,0) 0, rgba(25,28,32,.55) 56px, rgba(25,28,32,.9) 118px, var(--graphite) 190px);
  }
  .hero-inner .hero-kicker { font-size: 11px; }
  .hero-inner h1 { margin: 12px 0 10px; font-size: 34px; line-height: 1.04; text-shadow: none; }
  html[lang="ar"] .hero-inner h1 { font-size: 32px; line-height: 1.3; }
  .hero-inner .lead { margin: 0 0 20px; font-size: 15.5px; line-height: 1.5; max-width: none; }
  .hero-ctas { gap: 10px; }
  .hero-ctas .btn { height: 50px; }
  .hero-photo .btn-ghost { background: rgba(17,19,22,.55); border-color: rgba(255,255,255,.28); }
}

/* phone hero: lighter scrim; the picture's own bottom edge fades out so no seam shows */
@media (max-width: 760px) {
  .hero-bg { -webkit-mask-image: linear-gradient(180deg, #000 0, #000 70%, rgba(0,0,0,.45) 90%, transparent 100%); mask-image: linear-gradient(180deg, #000 0, #000 70%, rgba(0,0,0,.45) 90%, transparent 100%); }
  .hero-inner { background: linear-gradient(180deg, rgba(25,28,32,0) 0, rgba(25,28,32,.38) 70px, rgba(25,28,32,.62) 150px, rgba(25,28,32,.74) 240px); }
  .hero-inner .hero-kicker, .hero-inner h1, .hero-inner .lead { text-shadow: 0 1px 14px rgba(0,0,0,.55); }
}

/* ===== QA polish ===== */
/* comfortable tap targets for the small text links */
.strip a { display: inline-flex; align-items: center; height: 34px; }
.foot a { display: inline-block; padding: 7px 0; }
.foot ul { gap: 0; }
.foot li { line-height: 1.4; }
.visit-info dd a { display: inline-block; padding: 4px 0; }
/* products sit on a soft warm tint so white-background photos and white devices keep their shape */
.card-img { background: #f6f5f1; }
.modal-img { background: #f6f5f1; }
.cat-tile-img { background: #f6f5f1; }
.rfq-items img, .bom img { background: #f6f5f1; }
/* never let a long product title push a card wider */
.card-name, .modal h2, .rfq-items .nm { overflow-wrap: anywhere; }
.cat-tile-img img { mix-blend-mode: multiply; }

.foot a.brand { display: flex; padding: 0; }
.visit-info .btns { margin-top: 20px; }

/* closed overlays must not be reachable with the keyboard */
.drawer { visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s; }
.drawer.on { visibility: visible; transition: transform .3s ease, visibility 0s; }
.modal { visibility: hidden; transition: opacity .25s, transform .25s, visibility 0s linear .25s; }
.modal.on { visibility: visible; transition: opacity .25s, transform .25s, visibility 0s; }
/* modal: keep the reference code off the photo on phones */
@media (max-width: 760px) { .modal-img { padding-top: 48px; } }
/* map: visible fallback if the embed is slow or blocked */
.map-fallback { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; color: var(--steel); text-decoration: none; font-weight: 600; }
.map-fallback svg { width: 34px; height: 34px; color: var(--ink); }
.map-fallback:hover { color: var(--ink); }
.map iframe { z-index: 1; }
