/* =========================================================================
   Valeria Precision Components: site styles
   ========================================================================= */
:root {
  --ink: #0A0F17;
  --navy: #0F1A2A;
  --steel: #1A2638;
  --steel-2: #24324A;
  --paper: #FFFFFF;
  --bone: #F5F3EE;
  --bone-2: #ECE8E0;
  --line: #E1DDD4;
  --line-dark: rgba(255,255,255,.12);
  --text: #121821;
  --muted: #5B6472;
  --muted-light: #A7B0BE;
  --accent: #E8631A;
  --accent-2: #FF7A33;
  --accent-ink: #B94A0C;
  --ok: #1F7A4D;
  --err: #B3261E;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --shadow: 0 1px 2px rgba(10,15,23,.06), 0 12px 32px -12px rgba(10,15,23,.18);
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: #fff; }

h1, h2, h3, h4 { font-family: var(--display); font-stretch: 112%; font-weight: 700; letter-spacing: -.02em; line-height: 1.02; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(42px, 6.6vw, 92px); font-weight: 800; }
h2 { font-size: clamp(34px, 4.4vw, 60px); }
h3 { font-size: 22px; line-height: 1.15; letter-spacing: -.01em; }
.dim { color: var(--muted); }
.on-dark .dim, .dark .dim { color: var(--muted-light); }
.accent { color: var(--accent); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 140px); }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.bone { background: var(--bone); }
.dark { background: var(--navy); color: #fff; }
.ink { background: var(--ink); color: #fff; }

.eyebrow { display: inline-flex; align-items: center; gap: 12px; font: 500 12.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--muted); max-width: 60ch; }
.dark .lede, .ink .lede { color: var(--muted-light); }
.sec-head { display: grid; gap: 22px; margin-bottom: clamp(40px, 5vw, 72px); }
.sec-head--split { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end; gap: 24px 64px; }
.sec-head--split .lede { justify-self: end; }
@media (max-width: 900px) { .sec-head--split { grid-template-columns: minmax(0, 1fr); } .sec-head--split .lede { justify-self: start; } }

/* ---------- buttons */
.btn { --bg: var(--ink); --fg: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 1px solid transparent; border-radius: var(--radius); background: var(--bg); color: var(--fg); font: 600 14px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--accent { --bg: var(--accent); }
.btn--accent:hover { --bg: var(--accent-ink); }
.btn--dark:hover { --bg: var(--steel-2); }
.btn--ghost { --bg: transparent; --fg: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost:hover { --bg: #fff; --fg: var(--ink); border-color: #fff; }
.btn--line { --bg: transparent; --fg: var(--ink); border-color: var(--ink); }
.btn--line:hover { --bg: var(--ink); --fg: #fff; }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: 12.5px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font: 600 13.5px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 6px; }
.link-arrow:hover { color: var(--accent); }

/* ---------- topbar + header */
.topbar { background: var(--ink); color: var(--muted-light); font: 400 12.5px/1 var(--mono); letter-spacing: .04em; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding-block: 11px; }
.topbar .items { display: flex; gap: 8px 22px; flex-wrap: wrap; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar .live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #3DDC84; margin-right: 8px; vertical-align: middle; box-shadow: 0 0 0 3px rgba(61,220,132,.18); }
@media (max-width: 760px) { .topbar .hide-sm { display: none; } }

.header { position: sticky; top: 0; z-index: 50; background: rgba(10,15,23,.94); color: #fff; backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--line-dark); transition: background-color .3s var(--ease), border-color .3s var(--ease); }
.header--overlay:not(.is-stuck) { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.header-overlay-wrap { position: relative; }
.header-overlay-wrap .header { position: fixed; left: 0; right: 0; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo svg { flex: none; }
.logo-text { display: grid; line-height: 1; }
.logo-text b { font: 800 19px/1 var(--display); font-stretch: 118%; letter-spacing: .02em; text-transform: uppercase; }
.logo-text small { font: 500 10px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--muted-light); margin-top: 6px; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0 12px 0 0; padding: 0; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font: 500 15px/1 var(--body); text-decoration: none; color: rgba(255,255,255,.82); position: relative; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; background: var(--accent); }
.basket-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 12px; border-radius: var(--radius); color: #fff; text-decoration: none; font: 500 14px/1 var(--body); border: 1px solid var(--line-dark); }
.basket-btn:hover { border-color: rgba(255,255,255,.4); }
.basket-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #fff; font: 600 11.5px/20px var(--mono); text-align: center; }
.basket-count[data-n="0"] { background: var(--steel-2); }
.menu-btn { display: none; min-height: 44px; min-width: 44px; align-items: center; justify-content: center; background: none; border: 1px solid var(--line-dark); border-radius: var(--radius); color: #fff; cursor: pointer; }
@media (max-width: 1020px) {
  .menu-btn { display: inline-flex; }
  .nav > .btn { display: none; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px var(--gutter) 22px; background: var(--ink); border-bottom: 1px solid var(--line-dark); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0; min-height: 54px; border-bottom: 1px solid var(--line-dark); font-size: 17px; }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-links .mobile-cta { display: block; padding-top: 18px; }
  .nav-links .mobile-cta a { border: 0; justify-content: center; color: #fff; }
}
@media (min-width: 1021px) { .nav-links .mobile-cta { display: none; } }
@media (max-width: 420px) { .logo-text small { display: none; } .basket-btn .lbl { display: none; } }

/* ---------- hero */
.hero { position: relative; min-height: min(100svh, 920px); display: grid; align-items: end; color: #fff; background: var(--ink); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; transform: scale(1.04); animation: heroZoom 18s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(10,15,23,.92) 0%, rgba(10,15,23,.72) 38%, rgba(10,15,23,.25) 70%, rgba(10,15,23,.35) 100%),
  linear-gradient(0deg, rgba(10,15,23,.85) 0%, rgba(10,15,23,0) 40%); }
.hero-body { padding-block: 180px 64px; display: grid; gap: 28px; }
.hero-body > * { max-width: 1000px; }
.hero-body > h1 { max-width: 1200px; }
.hero h1 .dim { color: rgba(255,255,255,.55); }
.hero .lede { color: rgba(255,255,255,.8); max-width: 54ch; }
.hero-search { display: flex; max-width: 640px; background: #fff; border-radius: var(--radius); padding: 6px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); }
.hero-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 16px; font: 400 16px var(--body); color: var(--text); min-height: 52px; }
.hero-search input:focus { outline: none; }
.hero-search:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-foot { border-top: 1px solid var(--line-dark); }
.hero-foot .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 28px 24px 30px 0; display: grid; gap: 6px; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.stat b { font: 700 clamp(30px, 3.4vw, 44px)/1 var(--display); font-stretch: 112%; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat b sup { font-size: .5em; color: var(--accent); vertical-align: top; margin-left: 2px; }
.stat span { font: 400 13px/1.4 var(--mono); color: var(--muted-light); letter-spacing: .02em; }
@media (max-width: 820px) {
  .hero-foot .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .hero-body { padding-top: 140px; }
}
@media (max-width: 520px) { .hero-search { flex-direction: column; } .hero-search .btn { width: 100%; } }

/* page hero (inner pages) */
.page-hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; isolation: isolate; }
.page-hero.has-img::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15,26,42,.96) 0%, rgba(15,26,42,.8) 50%, rgba(15,26,42,.55) 100%); }
.page-hero > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-hero .wrap { padding-block: clamp(72px, 9vw, 128px) clamp(56px, 7vw, 96px); display: grid; gap: 22px; }
.page-hero h1 { font-size: clamp(38px, 5.4vw, 72px); max-width: 18ch; }
.crumbs { font: 400 12.5px/1 var(--mono); letter-spacing: .06em; color: var(--muted-light); display: flex; gap: 10px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #fff; }

/* ---------- trust strip */
.trust { border-bottom: 1px solid var(--line); }
.trust .wrap { display: flex; align-items: center; gap: 16px 48px; flex-wrap: wrap; padding-block: 26px; }
.trust p { font: 500 12px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.trust ul { display: flex; flex-wrap: wrap; gap: 10px 36px; list-style: none; margin: 0; padding: 0; }
.trust li { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.trust li svg { color: var(--accent); flex: none; }

/* ---------- split / intro */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.split--rev > :first-child { order: 2; }
.split-copy { display: grid; gap: 26px; align-content: start; min-width: 0; }
.split-media { position: relative; min-width: 0; }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.split-media .badge { position: absolute; left: -24px; bottom: 32px; background: var(--ink); color: #fff; padding: 22px 26px; border-left: 3px solid var(--accent); display: grid; gap: 4px; box-shadow: var(--shadow); max-width: 260px; }
.split-media .badge b { font: 700 32px/1 var(--display); font-stretch: 112%; }
.split-media .badge span { font: 400 13px/1.4 var(--mono); color: var(--muted-light); }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } .split--rev > :first-child { order: 0; } .split-media img { aspect-ratio: 4 / 3; } .split-media .badge { left: 16px; bottom: 16px; } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.checks li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.checks li svg { color: var(--accent); margin-top: 3px; }
.checks b { display: block; font-weight: 600; }
.checks span { color: var(--muted); font-size: 15.5px; }
.dark .checks, .dark .checks li { border-color: var(--line-dark); }
.dark .checks span { color: var(--muted-light); }

/* ---------- category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cat-tile { background: var(--paper); padding: 30px 26px 26px; display: grid; gap: 14px; grid-template-rows: auto 1fr auto; min-height: 240px; text-decoration: none; position: relative; transition: background-color .25s var(--ease), color .25s var(--ease); }
.cat-tile .num { font: 500 12px/1 var(--mono); color: var(--muted); letter-spacing: .1em; }
.cat-tile h3 { font-size: 21px; align-self: end; }
.cat-tile .meta { display: flex; justify-content: space-between; align-items: center; font: 400 13px/1 var(--mono); color: var(--muted); }
.cat-tile .meta svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.cat-tile:hover { background: var(--ink); color: #fff; }
.cat-tile:hover .num, .cat-tile:hover .meta { color: var(--muted-light); }
.cat-tile:hover .meta svg { transform: translateX(4px); color: var(--accent); }
.cat-tile--cta { background: var(--accent); color: #fff; }
.cat-tile--cta .num, .cat-tile--cta .meta { color: rgba(255,255,255,.85); }
.cat-tile--cta:hover { background: var(--accent-ink); }
@media (max-width: 1080px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cat-grid { grid-template-columns: minmax(0, 1fr); } .cat-tile { min-height: 180px; } }

/* ---------- product cards */
.p-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.p-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1100px) { .p-grid, .p-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .p-grid, .p-grid--4 { grid-template-columns: minmax(0, 1fr); } }
.p-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 0; transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease); }
.p-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.p-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--steel); }
.p-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.p-card:hover .p-media img { transform: scale(1.04); }
.p-art { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(80% 80% at 50% 40%, #2A3A52 0%, #121B29 100%); }
.p-art svg { width: 38%; height: auto; }
.p-tag { position: absolute; left: 14px; top: 14px; background: rgba(10,15,23,.82); color: #fff; padding: 7px 10px; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; border-radius: 2px; }
.p-body { padding: 22px 22px 8px; display: grid; gap: 10px; flex: 1; align-content: start; }
.p-body h3 a { text-decoration: none; }
.p-body h3 a:hover { color: var(--accent); }
.p-body p { color: var(--muted); font-size: 15.5px; }
.specs { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 4px; }
.specs th, .specs td { text-align: left; vertical-align: top; padding: 9px 0; border-top: 1px solid var(--line); }
.specs th { width: 34%; font: 500 11.5px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-right: 12px; }
.p-foot { display: flex; gap: 10px; padding: 16px 22px 22px; flex-wrap: wrap; }
.p-foot .btn { flex: 1; }
.add-rfq[aria-pressed="true"] { --bg: var(--ok); }

/* ---------- catalog toolbar */
.catalog-bar { position: sticky; top: 78px; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.catalog-bar .wrap { display: flex; gap: 14px 24px; align-items: center; padding-block: 14px; flex-wrap: wrap; }
.search { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 6px 0 14px; min-height: 48px; flex: 1 1 280px; max-width: 420px; background: #fff; }
.search:focus-within { border-color: var(--ink); }
.search input { flex: 1; min-width: 0; border: 0; font: 400 15px var(--body); min-height: 44px; background: transparent; }
.search input:focus { outline: none; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font: 500 14px/1 var(--body); background: #fff; white-space: nowrap; }
.chip small { font: 500 11.5px/1 var(--mono); color: var(--muted); }
.chip:hover { border-color: var(--ink); }
.chip[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip[aria-current="true"] small { color: var(--muted-light); }
.result-line { font: 400 13px/1 var(--mono); color: var(--muted); margin-bottom: 24px; letter-spacing: .02em; }
.empty { border: 1px dashed var(--line); padding: 48px; text-align: center; display: grid; gap: 16px; justify-items: center; }

/* ---------- process */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; border-top: 1px solid var(--line-dark); }
.step { padding: 36px 28px 8px 0; display: grid; gap: 14px; align-content: start; position: relative; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line-dark); }
.step::before { counter-increment: step; content: "0" counter(step); font: 700 64px/1 var(--display); font-stretch: 112%; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.3); }
.step h3 { font-size: 22px; }
.step p { color: var(--muted-light); font-size: 15.5px; }
.bone .steps, .bone .step + .step { border-color: var(--line); }
.bone .step::before { -webkit-text-stroke-color: rgba(10,15,23,.25); }
.bone .step p { color: var(--muted); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .step:nth-child(3) { border-left: 0; padding-left: 0; } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } .step + .step { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-dark); } }

/* ---------- regions */
.regions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.region { border-top: 2px solid var(--ink); padding-top: 22px; display: grid; gap: 12px; align-content: start; }
.region .code { font: 500 12px/1 var(--mono); letter-spacing: .12em; color: var(--accent); }
.region p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 960px) { .regions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .regions { grid-template-columns: minmax(0, 1fr); } }
.note-line { margin-top: 40px; padding: 18px 22px; background: var(--paper); border-left: 3px solid var(--accent); font-size: 15px; color: var(--muted); }

/* ---------- docs list (dark) */
.doc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.doc { background: var(--navy); padding: 28px; display: grid; gap: 10px; align-content: start; }
.doc svg { color: var(--accent); }
.doc p { color: var(--muted-light); font-size: 15px; }
@media (max-width: 900px) { .doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .doc-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- FAQ */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); }
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 72px; padding: 18px 0; font: 600 19px/1.3 var(--display); font-stretch: 106%; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .pm { flex: none; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; position: relative; transition: background-color .2s, border-color .2s; }
.acc summary .pm::before, .acc summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .25s var(--ease); }
.acc summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc details[open] summary .pm { background: var(--ink); border-color: var(--ink); color: #fff; }
.acc details[open] summary .pm::after { transform: translate(-50%, -50%) rotate(0); }
.acc details > div { padding: 0 56px 24px 0; color: var(--muted); }
@media (max-width: 900px) { .faq { grid-template-columns: minmax(0, 1fr); } .acc details > div { padding-right: 0; } }

/* ---------- CTA band */
.cta { position: relative; overflow: hidden; isolation: isolate; background: var(--ink); color: #fff; }
.cta::after { content: ""; position: absolute; right: -10%; top: -40%; width: 60%; height: 180%; z-index: -1; background: radial-gradient(closest-side, rgba(232,99,26,.32), transparent); }
.cta .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 40px; align-items: end; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
@media (max-width: 900px) { .cta .wrap { grid-template-columns: minmax(0, 1fr); } .cta .actions { justify-content: flex-start; } }

/* ---------- product detail */
.pd { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.pd-media { border-radius: var(--radius); overflow: hidden; background: var(--steel); aspect-ratio: 1 / 1; position: sticky; top: 110px; }
.pd-media img, .pd-media .p-art { width: 100%; height: 100%; object-fit: cover; }
.pd-info { display: grid; gap: 24px; }
.pd-info .specs th { width: 30%; }
.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pd-note { font-size: 14px; color: var(--muted); border-left: 3px solid var(--accent); padding-left: 14px; }
@media (max-width: 900px) { .pd { grid-template-columns: minmax(0, 1fr); } .pd-media { position: static; aspect-ratio: 4 / 3; } }

/* ---------- forms */
.rfq-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 960px) { .rfq-layout { grid-template-columns: minmax(0, 1fr); } }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 44px); display: grid; gap: 34px; }
.fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 18px; border: 0; margin: 0; padding: 0; min-width: 0; }
.fieldset legend { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; font: 600 13px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; padding: 0; }
.fieldset legend span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11.5px; }
.field { display: grid; gap: 7px; min-width: 0; align-content: start; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14.5px; font-weight: 600; }
.field label small { font-weight: 400; color: var(--muted); }
.input, .field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #CFCAC0; border-radius: var(--radius); background: #fff; color: var(--text); font: 400 16px var(--body); transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 170px; resize: vertical; font-family: var(--mono); font-size: 14.5px; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(232,99,26,.22); }
.field .err { color: var(--err); font-size: 13.5px; font-weight: 600; }
.field.has-err input, .field.has-err textarea { border-color: var(--err); }
.field .hint { font-size: 13px; color: var(--muted); }
.drop { display: grid; place-items: center; gap: 6px; text-align: center; border: 1.5px dashed #CFCAC0; border-radius: var(--radius); padding: 26px; cursor: pointer; transition: border-color .15s, background-color .15s; }
.drop:hover, .drop.drag { border-color: var(--accent); background: #FFF7F2; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop b { font-size: 15px; }
.drop span { font-size: 13px; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.form-foot p { font-size: 13.5px; color: var(--muted); max-width: 46ch; }
.alert { padding: 14px 18px; border-radius: var(--radius); font-size: 15px; }
.alert--err { background: #FCEDEC; color: var(--err); border: 1px solid #F3C8C5; }
.alert--ok { background: #E9F6EF; color: var(--ok); border: 1px solid #BFE3CF; }
.basket-list { display: grid; gap: 8px; }
.basket-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bone); font-size: 14.5px; }
.basket-item button { background: none; border: 0; color: var(--muted); cursor: pointer; min-width: 32px; min-height: 32px; font-size: 18px; }
.basket-item button:hover { color: var(--err); }
.aside-card { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 30px; display: grid; gap: 20px; position: sticky; top: 110px; }
.aside-card .checks, .aside-card .checks li { border-color: var(--line-dark); }
.aside-card .checks span { color: var(--muted-light); }
.contact-lines { display: grid; gap: 10px; font-size: 15px; }
.contact-lines a { text-decoration: none; display: flex; gap: 10px; align-items: center; }
.contact-lines a:hover { color: var(--accent-2); }
.contact-lines svg { color: var(--accent); flex: none; }

/* ---------- footer */
.footer { background: var(--ink); color: #fff; padding-top: clamp(64px, 8vw, 110px); }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--line-dark); align-items: end; }
.foot-top h2 { font-size: clamp(32px, 4vw, 54px); }
.foot-top .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.foot-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-block: 56px; }
.foot-cols h4 { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-light); margin-bottom: 18px; font-stretch: 100%; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot-cols a { text-decoration: none; color: rgba(255,255,255,.85); display: inline-flex; min-height: 32px; align-items: center; font-size: 15px; }
.foot-cols a:hover { color: var(--accent-2); }
.foot-cols p { color: var(--muted-light); font-size: 15px; }
.legal { border-top: 1px solid var(--line-dark); padding-block: 26px 34px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; font: 400 12.5px/1.6 var(--mono); color: #7F8896; }
.legal p:last-child { max-width: 80ch; }
@media (max-width: 900px) { .foot-top { grid-template-columns: minmax(0, 1fr); } .foot-top .actions { justify-content: flex-start; } .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .foot-cols { grid-template-columns: minmax(0, 1fr); } }

/* ---------- floating whatsapp + toast */
.wa { position: fixed; z-index: 60; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #1F8A4C; color: #fff; box-shadow: 0 12px 30px -8px rgba(0,0,0,.45); transition: transform .2s var(--ease); }
.wa:hover { transform: scale(1.06); }
.toast { position: fixed; z-index: 70; left: 50%; bottom: 24px; transform: translate(-50%, calc(100% + 40px)); visibility: hidden; background: var(--ink); color: #fff; padding: 14px 18px; border-radius: var(--radius); box-shadow: var(--shadow); font-size: 14.5px; display: flex; gap: 16px; align-items: center; transition: transform .35s var(--ease), visibility .35s; max-width: calc(100vw - 32px); }
.toast.show { transform: translate(-50%, 0); visibility: visible; }
.toast a { color: var(--accent-2); font-weight: 600; white-space: nowrap; }

/* ---------- 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) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media img { animation: none; transform: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------- misc */
.prose { display: grid; gap: 18px; color: var(--muted); font-size: 17px; max-width: 64ch; }
.prose strong { color: var(--text); }
.kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.kv > div { border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 8px; }
.kv b { font: 700 28px/1 var(--display); font-stretch: 112%; }
.kv span { color: var(--muted); font-size: 15px; }
@media (max-width: 720px) { .kv { grid-template-columns: minmax(0, 1fr); } }
.center { text-align: center; justify-items: center; }
.mt-48 { margin-top: 48px; }

/* home: header floats over hero */
.page-home .hero { margin-top: -79px; }
.p-body h2, .p-body h3 { font-size: 22px; line-height: 1.15; letter-spacing: -.01em; }
.page-hero .lede, .page-hero .dim { color: var(--muted-light); }
@media (max-width: 760px) {
  .catalog-bar { position: static; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; width: calc(100% + var(--gutter) * 2); }
  .chips::-webkit-scrollbar { display: none; }
  .search { max-width: none; }
}

/* ---------- catalog v2: sidebar + category sections */
.catalog { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.cat-side { position: sticky; top: 100px; display: grid; gap: 22px; }
.cat-side .search { max-width: none; flex: none; }
.cat-list { display: grid; border-top: 1px solid var(--line); }
.cat-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; padding: 8px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 15px; font-weight: 500; }
.cat-list a small { font: 500 12px/1 var(--mono); color: var(--muted); }
.cat-list a:hover { color: var(--accent); }
.cat-list a[aria-current="true"] { color: var(--accent); font-weight: 700; box-shadow: inset 3px 0 0 var(--accent); padding-left: 12px; }
.side-cta { background: var(--ink); color: #fff; padding: 22px; border-radius: var(--radius); display: grid; gap: 12px; justify-items: start; }
.side-cta p { font-size: 14.5px; color: var(--muted-light); }
.catalog-main { min-width: 0; }
.catalog-main .p-grid { gap: 22px; }
.cat-section + .cat-section { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line); }
.cat-section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 26px; }
.cat-section-head > div { display: grid; gap: 8px; max-width: 62ch; }
.cat-section-head .num { font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.cat-section-head h2 { font-size: clamp(26px, 2.6vw, 36px); }
.cat-section-head p { color: var(--muted); font-size: 15.5px; }
.p-sku { font: 500 11.5px/1 var(--mono); letter-spacing: .06em; color: var(--muted); }
@media (max-width: 1180px) { .catalog-main .p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .catalog { grid-template-columns: minmax(0, 1fr); }
  .cat-side { position: static; }
  .cat-list { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px; border: 0; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .cat-list::-webkit-scrollbar { display: none; }
  .cat-list a { flex: none; border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; min-height: 40px; white-space: nowrap; }
  .cat-list a[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: none; padding-left: 14px; }
  .cat-list a[aria-current="true"] small { color: var(--muted-light); }
  .side-cta { display: none; }
}
@media (max-width: 600px) { .catalog-main .p-grid { grid-template-columns: minmax(0, 1fr); } }
.nav-links a, .basket-btn { white-space: nowrap; }
@media (max-width: 1180px) and (min-width: 1021px) { .nav-links a { padding: 0 10px; } .nav > .btn { padding: 0 18px; } }

/* Editable text blocks rendered as paragraphs */
div.lede > p { margin: 0; }
div.lede > p + p { margin-top: .8em; }

/* Admin shortcut bar (only visible when logged in to the admin) */
.admin-bar { position: fixed; left: 16px; bottom: 16px; z-index: 90; display: flex; align-items: center; gap: 2px; padding: 5px; background: #0A0F17; color: #fff; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.35); font: 600 13px/1 "Archivo", sans-serif; max-width: calc(100vw - 100px); overflow-x: auto; }
.admin-bar a { color: rgba(255,255,255,.85); text-decoration: none; padding: 9px 11px; border-radius: 5px; white-space: nowrap; }
.admin-bar a:hover { background: rgba(255,255,255,.1); color: #fff; }
.admin-bar .admin-bar-tag { font: 600 10.5px/1 "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; background: #E8631A; color: #0A0F17; padding: 6px 7px; border-radius: 4px; margin-right: 4px; }

/* ---------- Language switcher ---------- */
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; min-width: 44px; padding: 0 12px; border: 1px solid var(--line-dark); border-radius: var(--radius); color: #fff; cursor: pointer; font: 600 12.5px/1 var(--mono); letter-spacing: .08em; user-select: none; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { border-color: rgba(255,255,255,.4); }
.lang-menu summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lang-menu ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 80; list-style: none; margin: 0; padding: 6px; min-width: 190px; background: var(--ink); border: 1px solid var(--line-dark); border-radius: var(--radius); box-shadow: 0 18px 40px -12px rgba(0,0,0,.55); }
.lang-menu a { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: 3px; color: rgba(255,255,255,.86); text-decoration: none; font-size: 15px; }
.lang-menu a b { font: 600 11px/1 var(--mono); letter-spacing: .08em; color: var(--muted-light); width: 22px; }
.lang-menu a:hover { background: var(--steel); color: #fff; }
.lang-menu a[aria-current="true"] { color: #fff; }
.lang-menu a[aria-current="true"] b { color: var(--accent); }
@media (max-width: 420px) { .lang-menu summary { padding: 0 10px; } .lang-menu summary span { display: none; } }
.foot-langs { display: flex; flex-wrap: wrap; gap: 6px 22px; padding-block: 22px; border-top: 1px solid var(--line-dark); }
.foot-langs a { color: rgba(255,255,255,.7); text-decoration: none; font-size: 14.5px; min-height: 32px; display: inline-flex; align-items: center; }
.foot-langs a:hover { color: var(--accent-2); }
.foot-langs a[aria-current="true"] { color: #fff; font-weight: 600; }

/* ---------- Right-to-left (Arabic) ---------- */
html[lang="ar"] { --display: "IBM Plex Sans Arabic", "Archivo", "Helvetica Neue", Arial, sans-serif; --body: "IBM Plex Sans Arabic", "Archivo", "Helvetica Neue", Arial, sans-serif; --mono: "IBM Plex Mono", "IBM Plex Sans Arabic", ui-monospace, Menlo, monospace; }
html[lang="ar"] body { line-height: 1.75; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { letter-spacing: 0; line-height: 1.3; font-stretch: 100%; }
html[lang="ar"] .eyebrow, html[lang="ar"] .foot-cols h4, html[lang="ar"] .specs th { letter-spacing: 0; text-transform: none; }
[dir="rtl"] svg.i-arrow { transform: scaleX(-1); }
[dir="rtl"] .btn:hover svg.i-arrow { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] .cat-tile:hover .meta svg.i-arrow { transform: scaleX(-1) translateX(4px); }
[dir="rtl"] .topbar .live::before { margin-right: 0; margin-left: 8px; }
[dir="rtl"] .nav-links { margin: 0 0 0 12px; }
[dir="rtl"] .stat + .stat { padding-left: 0; border-left: 0; padding-right: 24px; border-right: 1px solid var(--line-dark); }
[dir="rtl"] .stat b sup { margin-left: 0; margin-right: 2px; }
[dir="rtl"] .split-media .badge { left: auto; right: -24px; border-left: 0; border-right: 3px solid var(--accent); }
[dir="rtl"] .p-tag { left: auto; right: 14px; }
[dir="rtl"] .specs th, [dir="rtl"] .specs td { text-align: right; }
[dir="rtl"] .specs th { padding-right: 0; padding-left: 12px; }
[dir="rtl"] .step + .step { padding-left: 0; border-left: 0; padding-right: 28px; border-right: 1px solid var(--line-dark); }
[dir="rtl"] .note-line { border-left: 0; border-right: 3px solid var(--accent); }
[dir="rtl"] .acc details > div { padding: 0 0 24px 56px; }
@media (max-width: 900px) { [dir="rtl"] .acc details > div { padding-left: 0; } }
[dir="rtl"] .cta::after { right: auto; left: -10%; }
[dir="rtl"] .pd-note { border-left: 0; padding-left: 0; border-right: 3px solid var(--accent); padding-right: 14px; }
[dir="rtl"] .wa { right: auto; left: max(18px, env(safe-area-inset-left)); }
[dir="rtl"] .cat-list a[aria-current="true"] { box-shadow: inset -3px 0 0 var(--accent); padding-left: 0; padding-right: 12px; }
[dir="rtl"] .admin-bar { left: auto; right: 16px; }
[dir="rtl"] .admin-bar .admin-bar-tag { margin-right: 0; margin-left: 4px; }
[dir="rtl"] .field textarea { font-family: var(--body); }
@media (max-width: 900px) { [dir="rtl"] .split-media .badge { right: 16px; left: auto; } }
@media (max-width: 960px) { [dir="rtl"] .step:nth-child(3) { border-right: 0; padding-right: 0; } }
@media (max-width: 560px) { [dir="rtl"] .step + .step { border-right: 0; padding-right: 0; } }
@media (max-width: 820px) { [dir="rtl"] .stat:nth-child(3) { border-right: 0; padding-right: 0; } }
@media (max-width: 1020px) { [dir="rtl"] .nav-links { margin: 0; } }
@media (max-width: 900px) { [dir="rtl"] .cat-list a[aria-current="true"] { box-shadow: none; padding-right: 14px; } }
