/* ==========================================================================
   ROYESH SABZ — site system v2
   Formal, buyer-first. Paper and ink carry the page; deep green is the brand's
   signature, used for the mark, primary actions and our land on the map.
   Breakpoints: 600 · 900 · 1200 (min-width, mobile first).
   ========================================================================== */

:root {
  --paper: #F5F3EE;
  --paper-2: #EDE9E1;
  --paper-3: #E2DDD2;
  --white: #FBFAF7;
  --ink: #151816;
  --ink-2: #3A3F3B;
  --muted: #646963;
  --faint: #8F938C;
  --line: rgba(21, 24, 22, .12);
  --line-2: rgba(21, 24, 22, .22);
  --green: #1F3D2B;
  --green-2: #2C5139;
  --green-tint: #E1E6DD;
  --gold: #8E6F35;
  --narenj: #B4532A;

  --serif: 'Newsreader', 'Iowan Old Style', 'Times New Roman', serif;
  --sans: 'Geist', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --fa: 'Vazirmatn', Tahoma, sans-serif;

  --gutter: clamp(20px, 4vw, 56px);
  --max: 1360px;
  --head-h: 68px;
  --r: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  background: var(--paper); color: var(--ink);
  font: 400 16px/1.6 var(--sans); font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul[role="list"], ol[role="list"] { list-style: none; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--green); color: var(--white); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 14px; border-radius: var(--r); }
.skip:focus { top: 12px; }

/* ---------- Type ---------- */
.t-display { font: 400 clamp(40px, 5.6vw, 88px)/1.02 var(--serif); letter-spacing: -.02em; font-variation-settings: "opsz" 72; }
.t-h1 { font: 400 clamp(36px, 4.4vw, 64px)/1.05 var(--serif); letter-spacing: -.018em; font-variation-settings: "opsz" 72; }
.t-h2 { font: 400 clamp(30px, 3.1vw, 46px)/1.1 var(--serif); letter-spacing: -.012em; font-variation-settings: "opsz" 60; }
.t-h3 { font: 400 clamp(22px, 1.8vw, 27px)/1.22 var(--serif); letter-spacing: -.005em; }
.t-h4 { font: 600 17px/1.35 var(--sans); letter-spacing: -.01em; }
.t-display em, .t-h1 em, .t-h2 em, .t-h3 em { font-style: italic; }
.t-lead { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 58ch; }
.t-body { color: var(--ink-2); max-width: 64ch; }
.t-small { font-size: 14px; line-height: 1.55; color: var(--muted); }
.t-label { font: 500 12px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.t-code { font: 400 13px/1.4 var(--mono); letter-spacing: .02em; }
.t-num { font: 400 clamp(36px, 3.6vw, 54px)/1 var(--serif); letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; font-variation-settings: "opsz" 72; }
.fa { font-family: var(--fa); direction: rtl; unicode-bidi: isolate; }
.prose p + p { margin-top: 1em; }
.prose { color: var(--ink-2); max-width: 64ch; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 9vw, 132px); }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.section + .section { border-top: 1px solid var(--line); }
.section--alt { background: var(--paper-2); }
.section--alt + .section, .section + .section--alt { border-top: 0; }
.band-ink { background: var(--ink); color: var(--paper); --line: rgba(245, 243, 238, .14); --line-2: rgba(245, 243, 238, .26); --muted: rgba(245, 243, 238, .62); --faint: rgba(245, 243, 238, .45); --ink-2: rgba(245, 243, 238, .82); }
.band-ink .btn--primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.band-ink .btn--primary:hover { background: var(--white); }
.band-ink :focus-visible { outline-color: var(--paper); }

.sec-head { display: grid; gap: 20px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head__label { display: flex; align-items: center; gap: 12px; }
.sec-head__label::before { content: ""; width: 24px; height: 1px; background: var(--ink); }
.band-ink .sec-head__label::before { background: var(--paper); }
@media (min-width: 900px) {
  .sec-head { grid-template-columns: 4fr 8fr; column-gap: 32px; align-items: start; }
  .sec-head > :not(.sec-head__label) { grid-column: 2; }
  .sec-head__label { padding-top: .7em; grid-row: 1 / span 2; }
}
.sec-head .t-lead { margin-top: 4px; }

.grid-2, .grid-3, .grid-4 { display: grid; gap: clamp(16px, 2vw, 28px); }
@media (min-width: 600px) { .grid-2, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.split { display: grid; gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .split--wide-left { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } .split--wide-right { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.stack-s > * + * { margin-top: 12px; }
.stack-m > * + * { margin-top: 22px; }
.stack-l > * + * { margin-top: 36px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.rule { border: 0; border-top: 1px solid var(--line); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px;
  border-radius: var(--r); border: 1px solid var(--line-2); background: transparent; color: var(--ink);
  font: 500 15px/1.2 var(--sans); letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn:hover { border-color: var(--ink); }
.btn--primary { background: var(--green); border-color: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-2); border-color: var(--green-2); }
.btn--ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--ink-2); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn svg { width: 16px; height: 16px; flex: none; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--line-2); transition: text-decoration-color .25s, color .25s; }
.link:hover { text-decoration-color: currentColor; color: var(--green); }
.band-ink .link:hover { color: var(--paper); }
.link svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.link:hover svg { transform: translateX(3px); }

/* ---------- Tags & status ---------- */
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line-2); font: 500 12px/1.3 var(--sans); color: var(--ink-2); white-space: nowrap; }
.tag--green { background: var(--green-tint); border-color: transparent; color: var(--green); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; }
.dot--ok { background: #3E7A4F; }
.dot--prog { background: var(--gold); }

/* ---------- Header ---------- */
.utility { display: none; background: var(--ink); color: rgba(245, 243, 238, .78); font-size: 13px; }
.utility .container { display: flex; justify-content: space-between; gap: 24px; align-items: center; min-height: 38px; }
.utility a { text-decoration: none; }
.utility a:hover { color: var(--white); }
.utility__list { display: flex; gap: 22px; align-items: center; }
.utility__list span { opacity: .55; }
@media (min-width: 1200px) { .utility { display: block; } }

.masthead { position: sticky; top: 0; z-index: 50; background: rgba(245, 243, 238, .97); border-bottom: 1px solid var(--line); }
.masthead .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--head-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; flex: none; }
.brand__mark { width: 32px; height: 32px; color: var(--green); }
.brand__text { display: grid; line-height: 1.15; }
.brand__text strong { font: 600 16px/1.2 var(--sans); letter-spacing: -.015em; }
.brand__text span { font-size: 12px; color: var(--muted); }
.nav { display: none; }
.nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink-2); transition: color .2s; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; background: var(--green); }
.masthead__actions { display: flex; align-items: center; gap: 8px; }
.qbtn { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: var(--r); font-size: 14px; font-weight: 500; color: var(--ink-2); }
.qbtn:hover { color: var(--ink); background: var(--paper-2); }
.qbtn svg { width: 20px; height: 20px; }
.qbtn__count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--green); color: var(--white); font-size: 11px; font-weight: 600; display: inline-grid; place-items: center; }
.qbtn__count[data-n="0"] { background: var(--paper-3); color: var(--muted); }
.qbtn__text { display: none; }
.masthead__cta { display: none; }
.burger { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r); }
.burger span { display: block; width: 20px; height: 1.5px; background: var(--ink); box-shadow: 0 6px 0 var(--ink); transform: translateY(-3px); }
@media (min-width: 600px) { .masthead__cta { display: inline-flex; } }
@media (min-width: 1100px) { .nav { display: flex; } .burger { display: none; } .qbtn__text { display: inline; } }

.menu { position: fixed; inset: 0; z-index: 60; background: var(--paper); display: flex; flex-direction: column; padding: 0 var(--gutter) max(24px, env(safe-area-inset-bottom)); overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity .25s, visibility 0s .25s; }
.menu.is-open { visibility: visible; opacity: 1; transition: opacity .25s; }
.menu__top { display: flex; justify-content: space-between; align-items: center; min-height: var(--head-h); }
.menu__close { width: 44px; height: 44px; display: grid; place-items: center; font-size: 22px; }
.menu nav { display: grid; border-top: 1px solid var(--line); margin-top: 8px; }
.menu nav a { display: flex; justify-content: space-between; align-items: center; min-height: 60px; border-bottom: 1px solid var(--line); text-decoration: none; font: 400 26px/1.2 var(--serif); }
.menu nav a span { font: 400 13px var(--sans); color: var(--muted); }
.menu__foot { margin-top: auto; padding-top: 28px; display: grid; gap: 8px; font-size: 15px; }
.menu__foot .btn { margin-top: 12px; }

.crumbs { border-bottom: 1px solid var(--line); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; min-height: 48px; align-items: center; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--faint); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding-block: clamp(48px, 7vw, 104px) clamp(40px, 5vw, 72px); }
.page-head__grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .page-head__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; column-gap: 48px; } }
.page-head .t-label { margin-bottom: 18px; display: block; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.facts > div { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
@media (min-width: 900px) { .facts--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .facts--4 > div { border-bottom: 0; padding-bottom: 4px; } }
.facts dt { order: 2; }
.facts dd { order: 1; }

/* ---------- Media ---------- */
.media { position: relative; overflow: hidden; border-radius: var(--r); background: var(--paper-3); isolation: isolate; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--3x2 { aspect-ratio: 3 / 2; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x5 { aspect-ratio: 4 / 5; }
.media--wide { aspect-ratio: 21 / 9; }
@media (max-width: 599px) { .media--wide { aspect-ratio: 4 / 3; } }
.media figcaption, .caption { font-size: 13px; color: var(--muted); margin-top: 10px; }
.media__cap { position: absolute; left: 12px; bottom: 12px; z-index: 1; padding: 6px 10px; border-radius: 4px; background: rgba(21, 24, 22, .62); color: var(--white); font-size: 12px; }
.ph { display: grid; place-items: center; text-align: center; padding: 24px; color: var(--muted); font-size: 13px; background: repeating-linear-gradient(135deg, var(--paper-2) 0 12px, var(--paper-3) 12px 13px); }

/* ---------- Cards ---------- */
.card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; }
.card__body { display: grid; gap: 8px; }
.card .media img { transition: transform 1.2s var(--ease); }
@media (hover: hover) { .card:hover .media img { transform: scale(1.035); } .card:hover .link { text-decoration-color: currentColor; color: var(--green); } }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 2.4vw, 32px); }
.panel--flat { background: transparent; }

/* ---------- Lists & tables ---------- */
.list-rows { list-style: none; border-top: 1px solid var(--line); }
.list-rows > li { display: grid; gap: 6px 24px; padding-block: 20px; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .list-rows > li { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(170px, 2fr); align-items: baseline; } .list-rows > li > :nth-child(3) { justify-self: end; } }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 1px solid var(--line-2); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
.table th, .table td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
.table thead th { font: 500 12px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 16px; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.kv { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 16px; }
.kv dt, .kv dd { padding-block: 10px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.kv dt { color: var(--muted); }
.kv dd { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Steps (how to buy) ---------- */
.steps { list-style: none; display: grid; gap: 0; counter-reset: s; border-top: 1px solid var(--line-2); }
.steps > li { counter-increment: s; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 16px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.steps > li::before { content: counter(s, decimal-leading-zero); grid-row: 1 / span 3; font: 400 28px/1 var(--serif); color: var(--green); }
.steps .t-small { max-width: 44ch; }
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 0; }
  .steps > li { grid-template-columns: 1fr; padding: 28px 24px 8px 0; border-bottom: 0; border-top: 1px solid var(--line-2); position: relative; }
  .steps > li::before { grid-row: auto; margin-bottom: 18px; }
  .steps > li::after { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
}

/* ---------- Accordion ---------- */
.acc { border-top: 1px solid var(--line-2); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; min-height: 64px; padding-block: 14px; cursor: pointer; font: 400 clamp(19px, 1.6vw, 23px)/1.3 var(--serif); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font: 300 26px/1 var(--sans); color: var(--muted); transition: transform .3s var(--ease); flex: none; }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc .acc__body { padding: 0 0 22px; color: var(--ink-2); max-width: 70ch; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 22px; }
.form fieldset { border: 0; display: grid; gap: 18px; }
.form legend { font: 400 22px/1.2 var(--serif); margin-bottom: 4px; padding: 0; }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 700px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid .full { grid-column: 1 / -1; } }
.field { display: grid; gap: 7px; align-content: start; }
.field label, .field .label { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.field .hint { font-size: 13px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--white);
  font-size: 16px; line-height: 1.4; transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23646963' stroke-width='1.5'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 3px rgba(31, 61, 43, .14); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #A23B2A; }
.field .err { font-size: 13px; color: #A23B2A; display: none; }
.field [aria-invalid="true"] ~ .err { display: block; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); min-height: 44px; padding-top: 2px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green); flex: none; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--white); font-size: 15px; cursor: pointer; transition: all .2s; }
.choice input:checked + span { background: var(--green); color: var(--white); border-color: var(--green); }
.choice input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.qty { display: inline-flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--white); height: 46px; }
.qty button { width: 44px; font-size: 18px; color: var(--ink-2); }
.qty input { width: 64px; min-height: 44px; border: 0; text-align: center; font-size: 16px; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty .unit { display: grid; place-items: center; padding-right: 12px; font-size: 13px; color: var(--muted); }

/* ---------- Drawer (quotation list, spec sheets) ---------- */
.drawer { position: fixed; inset: 0; z-index: 70; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(21, 24, 22, .4); opacity: 0; transition: opacity .3s; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--paper); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .45s var(--ease); box-shadow: -20px 0 60px rgba(0, 0, 0, .12); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px var(--gutter) 16px clamp(20px, 3vw, 32px); border-bottom: 1px solid var(--line); min-height: var(--head-h); }
.drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 24px clamp(20px, 3vw, 32px); }
.drawer__foot { padding: 16px clamp(20px, 3vw, 32px) max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); }
.x { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r); font-size: 22px; color: var(--ink-2); }
.x:hover { background: var(--paper-2); }
.qitem { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; padding-block: 16px; border-bottom: 1px solid var(--line); align-items: center; }
.qitem__rm { font-size: 13px; color: var(--muted); text-decoration: underline; min-height: 44px; }
.empty { padding: 40px 0; text-align: center; color: var(--muted); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 90; transform: translate(-50%, 150%); max-width: min(92vw, 520px); padding: 14px 18px; border-radius: var(--r); background: var(--ink); color: var(--paper); font-size: 15px; box-shadow: 0 16px 40px rgba(0, 0, 0, .2); transition: transform .4s var(--ease); }
.toast.is-on { transform: translate(-50%, 0); }

/* ---------- Footer ---------- */
.footer { padding-block: clamp(64px, 8vw, 104px) 28px; }
.footer__grid { display: grid; gap: 40px; }
@media (min-width: 700px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .footer__grid { grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); } }
.footer h2 { font: 500 12px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 4px; }
.footer li a { display: inline-flex; min-height: 32px; align-items: center; text-decoration: none; color: var(--ink-2); }
.footer li a:hover { color: var(--white); }
.footer__brand .brand__mark { color: var(--paper); }
.footer__legal { margin-top: clamp(48px, 6vw, 80px); padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: 13px; color: var(--muted); }
.footer__legal a { color: inherit; }

/* ---------- Reveal (complete well before 40% of the viewport) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .55s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}

/* ---------- Review mode (?review=1): values awaiting client confirmation ---------- */
.review .tbc { background: #FFF0A8; box-shadow: 0 0 0 2px #FFF0A8; border-radius: 2px; color: var(--ink); }
.review-bar { position: fixed; left: 12px; bottom: 12px; z-index: 95; padding: 10px 14px; border-radius: var(--r); background: #FFF0A8; color: var(--ink); font-size: 13px; box-shadow: 0 8px 24px rgba(0, 0, 0, .15); max-width: 320px; }

@media print {
  .masthead, .utility, .footer, .menu, .review-bar { display: none !important; }
  body { background: #fff; }
  body:not(.print-spec) .drawer { display: none !important; }
  /* a spec sheet prints on its own, as a one-page document */
  body.print-spec * { visibility: hidden; }
  body.print-spec #spec, body.print-spec #spec * { visibility: visible; }
  body.print-spec #spec { position: absolute; inset: 0; }
  body.print-spec .drawer__panel { position: static; transform: none; width: auto; box-shadow: none; }
  body.print-spec .drawer__scrim, body.print-spec .drawer__foot, body.print-spec .x { display: none; }
}
.media > .ph { position: absolute; inset: 0; }
.field input[type="range"] { min-height: 32px; padding: 0; border: 0; background: transparent; box-shadow: none; appearance: auto; -webkit-appearance: auto; accent-color: var(--green); }
.field input[type="file"] { padding: 10px; min-height: 48px; }
.field input[type="checkbox"], .field input[type="radio"] { min-height: 0; width: auto; }
.form { gap: 32px; }
.form fieldset + fieldset { border-top: 1px solid var(--line); padding-top: 32px; }

/* ---------- QA fixes ---------- */
/* touch devices: every standalone control is at least 44 px tall (inline links inside prose excepted) */
@media (pointer: coarse) {
  .link, .footer li a, .crumbs a, .qitem__rm, .desk__lines a, .footer__legal a { min-height: 44px; display: inline-flex; align-items: center; }
  .footer li a { display: flex; width: 100%; }
  .crumbs a { padding-inline: 6px; margin-inline: -6px; }
  .prose .link, p .link:not(:only-child) { min-height: 0; display: inline; }
  .btn--sm { min-height: 44px; }
  .field input[type="range"], input[type="range"] { min-height: 44px; }
  .crumbs ol { min-height: 52px; }
}
/* Persian under the wordmark: Vazirmatn's taller metrics need their own line box (Firefox) */
.brand__text { gap: 3px; }
.brand__text .fa { line-height: 1.45; }
/* key–value lists stack on very narrow screens instead of colliding */
.kv { grid-template-columns: minmax(min(9em, 45%), 1fr) minmax(0, max-content); }
.kv dd { overflow-wrap: anywhere; }
@media (max-width: 479px) {
  .kv { grid-template-columns: minmax(0, 1fr); }
  .kv dt { border-bottom: 0; padding-bottom: 0; }
  .kv dd { text-align: left; padding-top: 2px; }
}
