/* ==========================================================================
   HorAfrid — Design System
   Lightweight, RTL-first, mobile-first
   ========================================================================== */

/* ---------- 0. Font ---------- */
/* Self-hosted variable font: one 108 KB request covers every weight and
   removes the third-party CDN from the critical path. */
/* Subset of Vazirmatn: 45 KB instead of 108 KB. Rebuild with
   `python tools/subset-font.py` after changing the font or the character set.
   The wght axis is pinned to 400-900, which is every weight the CSS uses. */
@font-face{
  font-family:'Vazirmatn';
  src:url('../fonts/Vazirmatn-site.woff2') format('woff2');
  font-weight:400 900;
  font-style:normal;
  font-display:swap;
}

/* ---------- 1. Tokens ---------- */
:root{
  --navy:#0b1a3a;
  --navy-2:#12265a;
  --navy-3:#1b3573;
  --orange:#ff6b1a;
  --orange-2:#ef5606;
  --orange-soft:#fff3ec;
  --orange-line:rgba(255,107,26,.18);

  --bg:#f5f7fb;
  --surface:#ffffff;
  --surface-2:#fafbfd;
  --border:#e4e9f1;
  --border-soft:#eef2f8;
  --ink:#0d1526;
  --ink-2:#243049;
  --muted:#5b6880;
  --muted-2:#8a96ab;

  --teal:#0e9f8a;
  --blue:#2563eb;
  --violet:#7c3aed;
  --pink:#db2777;
  --amber:#d97706;

  --r-xs:8px;
  --r-sm:10px;
  --r:14px;
  --r-lg:20px;
  --r-xl:28px;

  --sh-1:0 1px 2px rgba(13,21,38,.05), 0 1px 3px rgba(13,21,38,.04);
  --sh-2:0 12px 28px -14px rgba(13,21,38,.20);
  --sh-3:0 26px 60px -24px rgba(11,26,58,.38);

  --container:1180px;
  --header-h:72px;

  --ease:cubic-bezier(.22,.61,.36,1);
  --fast:.18s;
  --slow:.45s;
}

/* ---------- 2. Reset ---------- */
*,*::before,*::after{box-sizing:border-box}
*{margin:0;padding:0}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;overflow-x:clip}
body{
  font-family:'Vazirmatn','Segoe UI',Tahoma,system-ui,-apple-system,sans-serif;
  font-size:16px;
  line-height:1.75;
  color:var(--ink-2);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  /* `clip`, not `hidden`. Both stop a decorative element from adding a
     horizontal scrollbar, but `hidden` turns <body> into a scroll container —
     and a sticky header (or the in-page nav under it) then sticks to <body>
     instead of to the viewport, which is to say it does not stick at all.
     `clip` clips without creating a scroll container, so position:sticky works
     again. Browsers that do not know `clip` simply drop the line. */
  overflow-x:clip;
}
img,svg{display:block;max-width:100%}
img{height:auto}
/* <picture> is inline by default, which breaks inside the flex and grid
   containers used for cards. The width/height attributes on the <img> inside
   are what reserve the space, so the ratio survives before the bytes land. */
picture{display:block}
picture img{width:100%}
a{color:inherit;text-decoration:none}
ul,ol{list-style:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
input,select,textarea{font:inherit;color:inherit}
::selection{background:var(--orange);color:#fff}

/* ---------- 3. Typography ---------- */
h1,h2,h3,h4,h5{
  color:var(--ink);
  font-weight:800;
  line-height:1.35;
  letter-spacing:-.015em;
}
h1{font-size:clamp(1.85rem,4.2vw,3rem)}
h2{font-size:clamp(1.4rem,2.9vw,2.1rem)}
h3{font-size:clamp(1.1rem,2vw,1.35rem)}
h4{font-size:1rem}
/* Card titles sit directly under an <h2>, so they are emitted as <h3> for a
   correct outline. `.sub` restores the old <h4> size so the visual rhythm is
   unchanged while the heading tree stays h1 > h2 > h3. */
.sub{font-size:1rem}
/* Listing pages go straight from <h1> to a grid of card <h3>s. An invisible
   <h2> names that grid for assistive tech without adding a visual element. */
.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}
p{color:var(--ink-2)}
strong{font-weight:700;color:var(--ink)}
small{font-size:.82rem}

.eyebrow{
  display:inline-flex;align-items:center;gap:7px;
  font-size:.78rem;font-weight:700;letter-spacing:.02em;
  color:var(--orange-2);
  background:var(--orange-soft);
  border:1px solid var(--orange-line);
  padding:6px 14px;border-radius:999px;
  margin-bottom:16px;
}
.eyebrow::before{
  content:"";width:6px;height:6px;border-radius:50%;
  background:var(--orange);
}
.eyebrow.on-dark{
  color:#ffb98d;
  background:rgba(255,107,26,.14);
  border-color:rgba(255,107,26,.28);
}

.lead{font-size:1.02rem;color:var(--muted);max-width:62ch}
.muted{color:var(--muted)}

/* ---------- 4. Layout ---------- */
.container{width:100%;max-width:var(--container);margin-inline:auto;padding-inline:22px}
.section{padding-block:72px}
.section--tight{padding-block:48px}
.section--alt{background:var(--surface-2);border-block:1px solid var(--border-soft)}
.center{text-align:center}
.section-head{max-width:660px;margin-inline:auto;margin-bottom:44px;text-align:center}
.section-head h2{margin-bottom:10px}
.section-head p{color:var(--muted);font-size:.97rem}

.grid{display:grid;gap:20px}
.grid-2{grid-template-columns:repeat(2,1fr)}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-4{grid-template-columns:repeat(4,1fr)}
.grid-auto{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}

/* ---------- 5. Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  padding:12px 24px;
  border-radius:var(--r-sm);
  font-size:.92rem;font-weight:700;
  white-space:nowrap;
  transition:transform var(--fast) var(--ease), background var(--fast), box-shadow var(--fast), color var(--fast), border-color var(--fast);
  border:1.5px solid transparent;
}
.btn svg{width:17px;height:17px;flex:none}
.btn:active{transform:translateY(1px) scale(.995)}

.btn--primary{
  background:linear-gradient(180deg,#ff7d33,var(--orange-2));
  color:#fff;
  box-shadow:0 8px 20px -10px rgba(239,86,6,.85), inset 0 1px 0 rgba(255,255,255,.22);
}
.btn--primary:hover{background:linear-gradient(180deg,#ff8b4a,#f55f0d);box-shadow:0 14px 26px -12px rgba(239,86,6,.9)}

.btn--dark{background:var(--navy);color:#fff;box-shadow:var(--sh-2)}
.btn--dark:hover{background:var(--navy-2)}

.btn--ghost{background:var(--surface);color:var(--ink);border-color:var(--border);box-shadow:var(--sh-1)}
.btn--ghost:hover{border-color:var(--orange);color:var(--orange-2)}

.btn--glass{
  background:rgba(255,255,255,.10);
  border-color:rgba(255,255,255,.24);
  color:#fff;
  backdrop-filter:blur(6px);
}
.btn--glass:hover{background:rgba(255,255,255,.18)}

.btn--wa{background:#1faa55;color:#fff}
.btn--wa:hover{background:#188c46}

.btn--lg{padding:15px 30px;font-size:.97rem}
.btn--block{width:100%}

.link-arrow{
  display:inline-flex;align-items:center;gap:7px;
  font-size:.87rem;font-weight:700;color:var(--orange-2);
}
.link-arrow svg{width:15px;height:15px;transition:transform var(--fast) var(--ease)}
.link-arrow:hover svg{transform:translateX(-4px)}

/* ---------- 6. Header ---------- */
.site-header{
  position:sticky;top:0;z-index:900;
  height:var(--header-h);
  display:flex;align-items:center;
  background:rgba(255,255,255,.86);
  backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid var(--border-soft);
  transition:box-shadow var(--fast), background var(--fast);
}
.site-header.is-stuck{box-shadow:0 8px 24px -18px rgba(13,21,38,.4);background:rgba(255,255,255,.95)}

.header-inner{
  width:100%;max-width:var(--container);
  margin-inline:auto;padding-inline:22px;
  display:flex;align-items:center;gap:18px;
}

.logo{display:flex;align-items:center;gap:10px;flex:none}
.logo-mark{
  width:40px;height:40px;border-radius:12px;
  background:linear-gradient(145deg,var(--navy-2),var(--navy));
  display:grid;place-items:center;
  box-shadow:0 8px 18px -10px rgba(11,26,58,.9), inset 0 1px 0 rgba(255,255,255,.14);
  position:relative;overflow:hidden;
}
.logo-mark::after{
  content:"";position:absolute;inset:auto -30% -60% -30%;height:70%;
  background:radial-gradient(circle,rgba(255,107,26,.55),transparent 70%);
}
.logo-mark svg{width:22px;height:22px;color:#fff;position:relative;z-index:1}
/* Uploaded logo: the tile and its orange glow exist to make the built-in glyph
   readable. Behind a client's own artwork they read as a coloured box that is
   part of the logo, so both are switched off and the image sits on the header
   background directly.

   The box is 56px tall and as wide as the artwork needs, up to 200px. The old
   fixed 40x40 square squeezed a horizontal wordmark down to the height of its
   own descenders, which is why it disappeared next to the brand name. The
   width/height attributes written by build.py carry the same numbers, so the
   header reserves the space before the image loads. */
.logo-mark--img{
  width:auto;height:auto;max-width:200px;max-height:56px;
  background:none;box-shadow:none;overflow:visible;border-radius:0;
}
.logo-mark--img::after{content:none}
.logo-mark--img img{
  width:auto;height:auto;max-width:200px;max-height:56px;
  object-fit:contain;position:relative;z-index:1;
}
.logo-txt{display:flex;flex-direction:column;line-height:1.15}
.logo-txt b{font-size:1.06rem;font-weight:800;color:var(--ink);letter-spacing:-.02em}
.logo-txt span{font-size:.62rem;font-weight:600;color:var(--muted-2);letter-spacing:.06em}

.nav{display:flex;align-items:center;gap:2px;margin-inline-start:auto}
.nav > li{position:relative}
.nav a,.nav .nav-btn{
  display:flex;align-items:center;gap:5px;
  padding:9px 13px;border-radius:var(--r-xs);
  font-size:.875rem;font-weight:600;color:var(--ink-2);
  transition:background var(--fast), color var(--fast);
  white-space:nowrap;
}
.nav a:hover,.nav .nav-btn:hover{background:var(--bg);color:var(--orange-2)}
.nav a.is-active{color:var(--orange-2);background:var(--orange-soft)}
/* A dropdown parent that has no page of its own renders as a <button>, so it
   is keyboard-focusable and :focus-within can open the submenu. These three
   declarations strip the user-agent button chrome; without them it would show
   up as a grey OS-styled box next to the other nav links. */
.nav .nav-btn{background:none;border:0;cursor:pointer;font-family:inherit}
.nav .nav-btn.is-active{color:var(--orange-2);background:var(--orange-soft)}
.nav .chev{width:13px;height:13px;opacity:.55;transition:transform var(--fast)}

.dropdown{
  position:absolute;top:calc(100% + 8px);inset-inline-end:0;
  min-width:238px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r);
  box-shadow:var(--sh-3);
  padding:8px;
  opacity:0;visibility:hidden;transform:translateY(6px) scale(.985);
  transition:opacity var(--fast) var(--ease), transform var(--fast) var(--ease), visibility var(--fast);
}
.has-drop:hover .dropdown,.has-drop:focus-within .dropdown{opacity:1;visibility:visible;transform:translateY(0) scale(1)}
.has-drop:hover .chev{transform:rotate(180deg)}
.dropdown a{
  padding:9px 12px;border-radius:var(--r-xs);
  font-size:.855rem;font-weight:600;
}
.dropdown a:hover{background:var(--orange-soft);color:var(--orange-2)}

.header-actions{display:flex;align-items:center;gap:10px;flex:none}
.hdr-phone{
  display:flex;align-items:center;gap:8px;
  font-size:.86rem;font-weight:800;color:var(--ink);
  padding:7px 12px;border-radius:999px;
  border:1px solid var(--border);background:var(--surface);
  transition:border-color var(--fast), color var(--fast);
}
.hdr-phone:hover{border-color:var(--orange);color:var(--orange-2)}
.hdr-phone svg{width:15px;height:15px;color:var(--orange)}

.burger{
  display:none;width:42px;height:42px;border-radius:var(--r-xs);
  border:1px solid var(--border);background:var(--surface);
  place-items:center;flex:none;
}
.burger span{display:block;width:18px;height:2px;background:var(--ink);border-radius:2px;transition:transform var(--fast), opacity var(--fast)}
.burger span + span{margin-top:4px}
.burger.is-open span:nth-child(1){transform:translateY(6px) rotate(45deg)}
.burger.is-open span:nth-child(2){opacity:0}
.burger.is-open span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}

.drawer{
  position:fixed;inset:var(--header-h) 0 0 0;z-index:880;
  background:var(--surface);
  padding:18px 22px 40px;
  overflow-y:auto;
  display:none;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(-10px);
  transition:opacity .26s var(--ease), transform .26s var(--ease), visibility .26s;
}
.drawer.is-open{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:none;
}
.drawer nav a{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 4px;font-size:.95rem;font-weight:700;color:var(--ink);
  border-bottom:1px solid var(--border-soft);
}
.drawer nav a small{color:var(--muted-2);font-weight:600;font-size:.78rem}
/* A dropdown parent with no page of its own. It is a heading, not a link, so
   tapping it in the drawer must not navigate anywhere. */
.drawer nav .drawer-group{
  display:block;padding:14px 4px 6px;font-size:.95rem;font-weight:700;
  color:var(--ink);border-bottom:0;
}
.drawer nav a.drawer-sub{padding-inline-start:16px;font-size:.875rem;font-weight:600;color:var(--muted)}
.drawer-cta{margin-top:22px;display:grid;gap:10px}

/* ---------- 7. Hero ---------- */
.hero{
  position:relative;overflow:hidden;
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(255,107,26,.20), transparent 62%),
    radial-gradient(700px 380px at 8% 110%, rgba(37,99,235,.22), transparent 62%),
    linear-gradient(160deg,#0a1733 0%,#10224b 48%,#0b1a3a 100%);
  color:#fff;
  padding-block:76px 96px;
}
.hero::before{
  content:"";position:absolute;inset:0;
  background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);
  background-size:56px 56px;
  -webkit-mask-image:radial-gradient(ellipse 80% 60% at 50% 40%,#000 30%,transparent 75%);
  mask-image:radial-gradient(ellipse 80% 60% at 50% 40%,#000 30%,transparent 75%);
  pointer-events:none;
}
.hero .container{position:relative;z-index:1}
.hero-grid{display:grid;grid-template-columns:1.06fr .94fr;gap:52px;align-items:center}
.hero h1{color:#fff;margin-bottom:18px;line-height:1.28}
.hero h1 em{
  font-style:normal;
  background:linear-gradient(100deg,#ffa064,var(--orange));
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.hero-sub{
  font-size:1.03rem;line-height:1.85;
  color:rgba(255,255,255,.74);
  max-width:52ch;margin-bottom:26px;
}
.hero-pills{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:30px}
.hero-pill{
  display:inline-flex;align-items:center;gap:7px;
  padding:7px 13px;border-radius:999px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.13);
  font-size:.79rem;font-weight:600;color:rgba(255,255,255,.9);
}
.hero-pill svg{width:14px;height:14px;color:#ffa064;flex:none}
.hero-actions{display:flex;flex-wrap:wrap;gap:11px}

.hero-panel{
  background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.12);
  border-radius:var(--r-xl);
  padding:22px;
  backdrop-filter:blur(16px);
  box-shadow:0 30px 70px -34px rgba(0,0,0,.85);
}
.hero-panel-head{
  display:flex;align-items:center;justify-content:space-between;
  padding-bottom:14px;margin-bottom:6px;
  border-bottom:1px solid rgba(255,255,255,.09);
}
.hero-panel-head span{font-size:.78rem;font-weight:700;color:rgba(255,255,255,.55);letter-spacing:.03em}
.hero-panel-head i{
  font-style:normal;font-size:.68rem;font-weight:700;
  color:#7ee2b8;background:rgba(16,185,129,.14);
  border:1px solid rgba(16,185,129,.3);
  padding:3px 9px;border-radius:999px;
}
.panel-row{
  display:flex;align-items:center;gap:13px;
  padding:13px 12px;border-radius:var(--r-sm);
  transition:background var(--fast), transform var(--fast);
}
.panel-row:hover{background:rgba(255,255,255,.07);transform:translateX(-3px)}
.panel-ico{
  width:40px;height:40px;border-radius:11px;flex:none;
  display:grid;place-items:center;
  background:linear-gradient(150deg,rgba(255,107,26,.95),rgba(239,86,6,.75));
  box-shadow:0 10px 20px -12px rgba(239,86,6,.95);
}
.panel-ico svg{width:19px;height:19px;color:#fff}
.panel-ico.alt{background:linear-gradient(150deg,rgba(37,99,235,.9),rgba(30,64,175,.7));box-shadow:0 10px 20px -12px rgba(37,99,235,.9)}
.panel-ico.alt2{background:linear-gradient(150deg,rgba(14,159,138,.9),rgba(6,120,105,.7));box-shadow:0 10px 20px -12px rgba(14,159,138,.9)}
.panel-ico.alt3{background:linear-gradient(150deg,rgba(124,58,237,.9),rgba(91,33,182,.7));box-shadow:0 10px 20px -12px rgba(124,58,237,.9)}
.panel-txt b{display:block;font-size:.875rem;font-weight:700;color:#fff}
.panel-txt span{display:block;font-size:.745rem;color:rgba(255,255,255,.5)}
.panel-arrow{margin-inline-start:auto;color:rgba(255,255,255,.35)}
.panel-arrow svg{width:15px;height:15px}

/* ---------- 8. Stats strip ---------- */
.stats-strip{margin-top:-52px;position:relative;z-index:2}
.stats-card{
  display:grid;grid-template-columns:repeat(4,1fr);
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r-lg);
  box-shadow:var(--sh-3);
  overflow:hidden;
}
.stat-cell{
  padding:26px 20px;text-align:center;
  border-inline-start:1px solid var(--border-soft);
}
.stat-cell:first-child{border-inline-start:0}
.stat-cell b{
  display:block;font-size:1.75rem;font-weight:800;
  color:var(--ink);letter-spacing:-.03em;line-height:1.2;
  direction:ltr;unicode-bidi:isolate;
}
.stat-cell b i{font-style:normal;color:var(--orange)}
.stat-cell span{font-size:.79rem;color:var(--muted);font-weight:600}

/* ---------- 9. Cards ---------- */
.card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r-lg);
  padding:26px;
  transition:transform var(--fast) var(--ease), box-shadow var(--fast), border-color var(--fast);
}
.card:hover{transform:translateY(-4px);box-shadow:var(--sh-2);border-color:#d8dfea}

.svc-card{
  position:relative;
  display:flex;flex-direction:column;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r-lg);
  padding:26px 24px 22px;
  overflow:hidden;
  transition:transform var(--fast) var(--ease), box-shadow var(--fast), border-color var(--fast);
}
.svc-card::after{
  content:"";position:absolute;inset:auto 0 0 0;height:3px;
  background:linear-gradient(90deg,var(--orange),#ffb37a);
  transform:scaleX(0);transform-origin:right;
  transition:transform var(--slow) var(--ease);
}
.svc-card:hover{transform:translateY(-5px);box-shadow:var(--sh-2);border-color:#d9e0ec}
.svc-card:hover::after{transform:scaleX(1)}
.svc-ico{
  width:50px;height:50px;border-radius:14px;
  display:grid;place-items:center;margin-bottom:18px;
  background:var(--orange-soft);
  color:var(--orange-2);
  border:1px solid var(--orange-line);
}
.svc-ico svg{width:23px;height:23px}
.svc-ico.c-blue{background:#eef3ff;color:var(--blue);border-color:#dbe6ff}
.svc-ico.c-teal{background:#e8f8f5;color:var(--teal);border-color:#cdf0e9}
.svc-ico.c-violet{background:#f3eeff;color:var(--violet);border-color:#e5dbff}
.svc-ico.c-amber{background:#fff6e6;color:var(--amber);border-color:#ffe7bd}
.svc-ico.c-pink{background:#fdeef5;color:var(--pink);border-color:#fbd9e8}
.svc-card h3{font-size:1.05rem;margin-bottom:8px}
.svc-card p{font-size:.875rem;color:var(--muted);line-height:1.8;margin-bottom:16px;flex:1}
.svc-card .link-arrow{font-size:.83rem}

.checklist{display:grid;gap:11px}
.checklist li{display:flex;align-items:flex-start;gap:10px;font-size:.895rem;color:var(--ink-2)}
.checklist svg{width:18px;height:18px;flex:none;color:var(--teal);margin-top:2px}
.checklist.warn svg{color:var(--orange)}

/* ---------- 10. Tabs ---------- */
.tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:26px}
/* Category chips above the catalogue. Same geometry language as .tab, but
   they are real links, so they get a visited-safe colour and a focus ring. */
.cat-strip{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:26px}
.cat-chip{
  display:inline-flex;align-items:center;gap:8px;
  padding:9px 15px;border:1px solid var(--border);border-radius:999px;
  background:var(--surface);color:var(--ink);
  font-size:.855rem;font-weight:700;
  transition:border-color var(--fast), color var(--fast), background var(--fast);
}
.cat-chip svg{width:16px;height:16px;color:var(--orange-2)}
.cat-chip:hover{border-color:var(--orange);color:var(--orange-2);background:var(--orange-soft)}
.cat-chip:focus-visible{outline:2px solid var(--orange);outline-offset:2px}
.cat-chip span{white-space:nowrap}
.tab{
  padding:9px 18px;border-radius:999px;
  font-size:.855rem;font-weight:700;
  color:var(--muted);
  background:var(--surface);
  border:1px solid var(--border);
  transition:all var(--fast);
}
.tab:hover{border-color:var(--orange);color:var(--orange-2)}
.tab.is-active{background:var(--navy);border-color:var(--navy);color:#fff;box-shadow:var(--sh-2)}

/* ---------- 11. Products ---------- */
.prod-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(268px,1fr));gap:22px}
.prod{
  display:flex;flex-direction:column;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r-lg);
  overflow:hidden;
  transition:transform var(--fast) var(--ease), box-shadow var(--fast), border-color var(--fast);
}
.prod:hover{transform:translateY(-5px);box-shadow:var(--sh-2);border-color:#d9e0ec}
.prod-thumb{
  position:relative;
  /* 4:3 is the frame tools/process-image.py --fit card produces, so a photo
     dropped in here is shown whole instead of having its top and bottom cut
     off by a frame that does not match. */
  aspect-ratio:4/3;
  display:grid;place-items:center;
  background:
    radial-gradient(circle at 50% 42%,#ffffff 0%,#f4f7fb 52%,#e8eef7 100%);
  border-bottom:1px solid var(--border-soft);
  overflow:hidden;
}
.prod-thumb::before{
  content:"";position:absolute;inset:0;
  background-image:radial-gradient(rgba(11,26,58,.07) 1px,transparent 1px);
  background-size:16px 16px;
  -webkit-mask-image:radial-gradient(circle at 50% 50%,#000 0%,transparent 72%);
  mask-image:radial-gradient(circle at 50% 50%,#000 0%,transparent 72%);
}
.prod-thumb svg{
  width:92px;height:92px;color:var(--navy);opacity:.26;
  position:relative;z-index:1;
  transition:transform var(--slow) var(--ease), opacity var(--slow);
}
.prod:hover .prod-thumb svg{transform:scale(1.07);opacity:.34}

/* A real photo replaces the icon, not sits behind it. The frame keeps its
   aspect ratio so every card in the grid is the same height whether it has a
   photo or not — a grid that reflows when one image loads is worse than no
   image. */
.prod-thumb img{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;display:block;z-index:1;
  transition:transform var(--slow) var(--ease);
}
.prod:hover .prod-thumb img{transform:scale(1.04)}
.prod-thumb.has-photo{background:var(--surface-2)}
.prod-thumb.has-photo::before{content:none}
.prod-badge{
  position:absolute;top:12px;inset-inline-start:12px;z-index:2;
  padding:4px 11px;border-radius:999px;
  font-size:.7rem;font-weight:800;letter-spacing:.01em;
  background:var(--teal);color:#fff;
  box-shadow:0 6px 14px -8px rgba(14,159,138,.9);
}
.prod-badge.used{background:var(--orange);box-shadow:0 6px 14px -8px rgba(239,86,6,.9)}
.prod-badge.part{background:var(--navy);box-shadow:0 6px 14px -8px rgba(13,27,62,.9)}
.prod-body{padding:18px;display:flex;flex-direction:column;flex:1}
.prod-cat{font-size:.72rem;font-weight:700;color:var(--muted-2);letter-spacing:.02em;margin-bottom:5px}
.prod-name{font-size:.96rem;font-weight:800;color:var(--ink);margin-bottom:8px;line-height:1.5}
.prod-spec{
  font-size:.755rem;color:var(--muted);line-height:1.7;
  margin-bottom:16px;flex:1;
  display:flex;flex-wrap:wrap;align-content:flex-start;gap:5px;
}
/* A spec longer than the card used to stay on one line and run off the edge,
   where `overflow:hidden` on the card cut it in half. Now it wraps inside the
   card — the card grows a line taller, the text stays readable. */
.prod-spec span{
  background:var(--surface-2);
  border:1px solid var(--border-soft);
  padding:2px 8px;border-radius:6px;
  max-width:100%;
  overflow-wrap:anywhere;
}
.prod-actions{display:flex;gap:8px}
.prod-actions .btn{flex:1;padding:9px 14px;font-size:.82rem;border-radius:var(--r-xs)}
.prod-actions .btn--call{
  flex:none;width:40px;padding:0;
  background:var(--surface-2);border:1px solid var(--border);color:var(--ink);
}
.prod-actions .btn--call:hover{border-color:var(--orange);color:var(--orange-2)}
.prod-name a{color:inherit;text-decoration:none;transition:color var(--fast)}
.prod-name a:hover{color:var(--orange-2)}

/* ---------- 11b. Product detail ---------- */
.pill{
  display:inline-block;padding:4px 12px;border-radius:999px;
  font-size:.72rem;font-weight:800;line-height:1.7;
  background:var(--orange-soft);color:var(--orange-2);
  border:1px solid var(--orange-line);
}
.pagehead .pill{margin-bottom:12px}
.pill--navy{background:rgba(255,255,255,.1);color:#fff;border-color:rgba(255,255,255,.24)}
.kv{
  display:grid;grid-template-columns:auto 1fr;margin:0;max-width:560px;
  border:1px solid var(--border);border-radius:var(--r);
  overflow:hidden;background:var(--surface);
}
.kv dt,.kv dd{margin:0;padding:12px 16px;font-size:.88rem;border-bottom:1px solid var(--border-soft)}
.kv dt{background:var(--bg);color:var(--muted);font-weight:700;white-space:nowrap}
.kv dd{color:var(--ink);font-weight:600}
.kv > dt:last-of-type,.kv > dd:last-of-type{border-bottom:0}

/* On a phone the sticky sidebar is far below the fold, so the enquiry button
   needs to appear next to the description instead. */
.price-strip{
  display:none;flex-wrap:wrap;align-items:center;justify-content:space-between;
  gap:14px;padding:16px 18px;
  border:1px solid var(--orange-line);background:var(--orange-soft);
  border-radius:var(--r);
}
.price-strip-txt{display:grid;gap:3px}
.price-strip-txt b{font-size:.92rem;color:var(--ink)}
.price-strip-txt span{font-size:.8rem;color:var(--muted)}
.price-strip .btn{flex:none}
@media (max-width:900px){
  .price-strip{display:flex}
  .price-strip .btn{width:100%;justify-content:center}
}
.aside-ico{
  display:grid;place-items:center;height:88px;margin-bottom:14px;
  border-radius:var(--r-sm);border:1px solid var(--border-soft);
  color:var(--navy);
  background:radial-gradient(circle at 50% 45%,#fff 0%,#f1f5fb 55%,#e6edf7 100%);
}
.aside-ico svg{width:40px;height:40px;opacity:.45}
.aside-ico__image{display:block;width:100%;height:88px;object-fit:contain}

/* ---------- 12. Steps ---------- */
.steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(215px,1fr));gap:18px}
.step{
  position:relative;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r);
  padding:28px 22px 22px;
  transition:transform var(--fast) var(--ease), box-shadow var(--fast);
}
.step:hover{transform:translateY(-3px);box-shadow:var(--sh-2)}
.step-n{
  width:34px;height:34px;border-radius:10px;
  display:grid;place-items:center;
  background:linear-gradient(150deg,#ff7d33,var(--orange-2));
  color:#fff;font-size:.85rem;font-weight:800;
  box-shadow:0 10px 18px -10px rgba(239,86,6,.95);
  margin-bottom:14px;
}
.step .sub{font-size:.95rem;margin-bottom:6px}
.step p{font-size:.845rem;color:var(--muted);line-height:1.8}

/* ---------- 13. FAQ ---------- */
.faq{display:grid;gap:10px}
.faq details{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r);
  overflow:hidden;
  transition:border-color var(--fast), box-shadow var(--fast);
}
.faq details[open]{border-color:#d5dded;box-shadow:var(--sh-1)}
.faq summary{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:17px 20px;
  font-size:.92rem;font-weight:700;color:var(--ink);
  cursor:pointer;list-style:none;
  transition:background var(--fast);
}
.faq summary::-webkit-details-marker{display:none}
.faq summary:hover{background:var(--surface-2)}
.faq summary .plus{
  width:24px;height:24px;border-radius:7px;flex:none;
  display:grid;place-items:center;
  background:var(--orange-soft);color:var(--orange-2);
  transition:transform var(--fast) var(--ease), background var(--fast);
}
.faq summary .plus svg{width:14px;height:14px}
.faq details[open] summary .plus{transform:rotate(45deg);background:var(--orange);color:#fff}
.faq-body{padding:0 20px 18px;font-size:.875rem;color:var(--muted);line-height:1.9}

/* ---------- 14. CTA banner ---------- */
.cta{
  position:relative;overflow:hidden;
  border-radius:var(--r-xl);
  padding:44px 46px;
  background:
    radial-gradient(600px 240px at 92% 0%, rgba(255,107,26,.35), transparent 65%),
    linear-gradient(150deg,#0d1e42,#0a1733);
  color:#fff;
  display:flex;align-items:center;justify-content:space-between;gap:26px;flex-wrap:wrap;
  box-shadow:var(--sh-3);
}
.cta::before{
  content:"";position:absolute;inset:0;
  background-image:radial-gradient(rgba(255,255,255,.09) 1px,transparent 1px);
  background-size:22px 22px;
  opacity:.5;pointer-events:none;
}
.cta > *{position:relative;z-index:1}
.cta h2{color:#fff;font-size:clamp(1.25rem,2.4vw,1.7rem);margin-bottom:6px}
.cta p{color:rgba(255,255,255,.72);font-size:.9rem}

/* ---------- 15. Forms ---------- */
.form-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r-lg);
  padding:30px;
  box-shadow:var(--sh-1);
}
.form-grid{display:grid;gap:16px}
/* Honeypot: bots fill every field they find, humans never see this one. */
.hp{
  position:absolute !important;
  inset-inline-start:-9999px !important;
  width:1px;height:1px;
  opacity:0;pointer-events:none;
}
/* Inline status under a submitted form. */
.form-note{
  margin:0;
  font-size:.83rem;
  font-weight:600;
  line-height:1.8;
  color:var(--teal);
  min-height:0;
}
.form-note:empty{display:none}
.form-note.is-error{color:#d92d20}
.btn.is-sent{
  background:linear-gradient(180deg,#16b981,#0e9f8a) !important;
  border-color:#0e9f8a !important;
  color:#fff !important;
}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.field{display:grid;gap:6px}
.field label{font-size:.82rem;font-weight:700;color:var(--ink)}
.field label .req{color:var(--orange)}
.field input,.field select,.field textarea{
  width:100%;
  padding:11px 14px;
  background:var(--surface-2);
  border:1.5px solid var(--border);
  border-radius:var(--r-sm);
  font-size:.88rem;color:var(--ink);
  transition:border-color var(--fast), box-shadow var(--fast), background var(--fast);
  appearance:none;
  -webkit-appearance:none;
}
.field select{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6880' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:left 12px center;
  background-size:16px;
  padding-inline-start:36px;
}
.field textarea{min-height:112px;resize:vertical;line-height:1.8}
.field input::placeholder,.field textarea::placeholder{color:var(--muted-2)}
.field input:focus,.field select:focus,.field textarea:focus{
  outline:none;
  background:#fff;
  border-color:var(--orange);
  box-shadow:0 0 0 4px rgba(255,107,26,.12);
}
.field .hint{font-size:.75rem;color:var(--muted-2)}

/* ---------- 16. Contact info ---------- */
.info-card{
  position:relative;overflow:hidden;
  border-radius:var(--r-lg);
  padding:32px;
  background:
    radial-gradient(420px 200px at 100% 0%, rgba(255,107,26,.28), transparent 62%),
    linear-gradient(160deg,#0d1e42,#0a1733);
  color:#fff;
  box-shadow:var(--sh-3);
}
.info-card h2{color:#fff;font-size:1.1rem;margin-bottom:22px}
.info-item{display:flex;gap:13px;align-items:flex-start;margin-bottom:18px}
.info-item:last-of-type{margin-bottom:0}
.info-ico{
  width:40px;height:40px;border-radius:11px;flex:none;
  display:grid;place-items:center;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
}
.info-ico svg{width:18px;height:18px;color:#ffa064}
.info-item b{display:block;font-size:.72rem;font-weight:600;color:rgba(255,255,255,.5);margin-bottom:1px}
.info-item span{display:block;font-size:.9rem;font-weight:700;color:#fff;line-height:1.65}
.info-item span a{color:#fff;transition:color var(--fast)}
.info-item span a:hover{color:#ffa064}
.info-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:26px}

/* ---------- 17. Page head / breadcrumb ---------- */
.crumbs{padding-block:16px;font-size:.8rem;color:var(--muted-2);display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.crumbs a{color:var(--muted);transition:color var(--fast)}
.crumbs a:hover{color:var(--orange-2)}
.crumbs .sep{opacity:.45}
.crumbs .now{color:var(--ink-2);font-weight:700}

.pagehead{
  position:relative;overflow:hidden;
  background:
    radial-gradient(700px 320px at 85% -20%, rgba(255,107,26,.22), transparent 62%),
    linear-gradient(155deg,#0c1c3f,#0a1733);
  color:#fff;
  padding-block:52px 56px;
}
.pagehead::before{
  content:"";position:absolute;inset:0;
  background-image:linear-gradient(rgba(255,255,255,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px);
  background-size:52px 52px;
  -webkit-mask-image:radial-gradient(ellipse 70% 70% at 50% 40%,#000 20%,transparent 78%);
  mask-image:radial-gradient(ellipse 70% 70% at 50% 40%,#000 20%,transparent 78%);
  pointer-events:none;
}
.pagehead .container{position:relative;z-index:1}
.pagehead h1{color:#fff;font-size:clamp(1.6rem,3.4vw,2.5rem);margin-bottom:10px}
.pagehead p{color:rgba(255,255,255,.7);font-size:.96rem;max-width:60ch}

/* ---------- 18. Prose ---------- */
.prose{max-width:820px}
.prose > * + *{margin-top:16px}
.prose h2{font-size:clamp(1.3rem,2.4vw,1.65rem);margin-top:38px}
.prose h3{font-size:1.1rem;margin-top:30px}
.prose p{color:var(--ink-2);line-height:1.95;font-size:.95rem}
.prose ul{display:grid;gap:9px;padding-inline-start:2px}
.prose ul li{position:relative;padding-inline-start:20px;font-size:.92rem;color:var(--ink-2);line-height:1.85}
.prose ul li::before{
  content:"";position:absolute;inset-inline-start:0;top:.68em;
  width:6px;height:6px;border-radius:2px;background:var(--orange);
}
.panel-box{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r);
  padding:22px;
}
.panel-box.tinted{
  background:var(--orange-soft);
  border-color:var(--orange-line);
}
.panel-box .sub{margin-bottom:10px;font-size:.95rem}

/* ---------- 19. Blog ---------- */
.post-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:22px}
.post{
  display:flex;flex-direction:column;
  background:var(--surface);border:1px solid var(--border);
  border-radius:var(--r-lg);overflow:hidden;
  transition:transform var(--fast) var(--ease), box-shadow var(--fast);
}
.post:hover{transform:translateY(-5px);box-shadow:var(--sh-2)}
.post-thumb{
  position:relative;
  aspect-ratio:16/9;display:grid;place-items:center;
  background:linear-gradient(140deg,#eef2fa,#e2e9f5);
  border-bottom:1px solid var(--border-soft);
  overflow:hidden;
}
.post-thumb::before{
  content:"";position:absolute;inset:0;
  background-image:radial-gradient(rgba(11,26,58,.07) 1px,transparent 1px);
  background-size:15px 15px;
  -webkit-mask-image:radial-gradient(circle at 50% 50%,#000 0%,transparent 70%);
  mask-image:radial-gradient(circle at 50% 50%,#000 0%,transparent 70%);
}
.post-thumb svg{width:56px;height:56px;color:var(--navy);opacity:.28;position:relative;z-index:1}
/* A real photo replaces the patterned placeholder — the dots and the icon are
   only there to stop an empty box looking broken. */
.post-thumb.has-img::before{display:none}
.post-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.post-body{padding:20px;display:flex;flex-direction:column;flex:1}
.post-meta{display:flex;align-items:center;gap:8px;font-size:.72rem;font-weight:700;color:var(--orange-2);margin-bottom:9px}
.post-meta i{font-style:normal;width:4px;height:4px;border-radius:50%;background:var(--muted-2)}
.post h3{font-size:1rem;line-height:1.6;margin-bottom:8px}
.post p{font-size:.845rem;color:var(--muted);line-height:1.85;margin-bottom:14px;flex:1}
.post .link-arrow{font-size:.82rem}

/* ---------- 20. Pricing ---------- */
.price-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:20px;align-items:start}
.price{
  position:relative;
  background:var(--surface);border:1px solid var(--border);
  border-radius:var(--r-lg);padding:28px 24px;
  transition:transform var(--fast) var(--ease), box-shadow var(--fast);
}
.price:hover{transform:translateY(-3px);box-shadow:var(--sh-2)}
.price.feat{
  border-color:var(--orange);
  box-shadow:0 22px 50px -26px rgba(239,86,6,.55);
}
.price-tag{
  position:absolute;top:-12px;inset-inline-start:22px;
  background:linear-gradient(150deg,#ff7d33,var(--orange-2));color:#fff;
  font-size:.68rem;font-weight:800;
  padding:4px 12px;border-radius:999px;
  box-shadow:0 8px 16px -8px rgba(239,86,6,.9);
}
.price h3{font-size:1.05rem;margin-bottom:4px}
.price .price-sub{font-size:.8rem;color:var(--muted);margin-bottom:18px}
.price ul{display:grid;gap:9px;margin-bottom:22px}
.price li{display:flex;gap:9px;align-items:flex-start;font-size:.855rem;color:var(--ink-2)}
.price li svg{width:16px;height:16px;color:var(--teal);flex:none;margin-top:3px}

/* ---------- 21. Footer ---------- */
.site-footer{
  background:linear-gradient(180deg,#0a1733,#081227);
  color:rgba(255,255,255,.62);
  padding-top:56px;
}
.footer-grid{
  display:grid;grid-template-columns:1.7fr 1fr 1fr 1fr;gap:36px;
  padding-bottom:40px;
}
.footer-brand .logo{margin-bottom:14px}
.footer-brand .logo-txt b{color:#fff}
.footer-brand .logo-txt span{color:rgba(255,255,255,.4)}
.footer-brand p{font-size:.855rem;line-height:1.9;color:rgba(255,255,255,.5);max-width:34ch}

.footer-contact{display:grid;gap:8px;margin-top:16px}
.footer-contact a,.footer-contact span{
  display:flex;align-items:flex-start;gap:8px;
  font-size:.82rem;line-height:1.7;
  color:rgba(255,255,255,.58);
}
.footer-contact svg{width:15px;height:15px;flex:none;color:#ffa064;margin-top:2px}
.footer-contact a:hover{color:#ffa064}
.footer-social{display:flex;gap:9px;margin-top:18px}
.footer-social a{
  width:36px;height:36px;border-radius:10px;
  display:grid;place-items:center;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.09);
  transition:background var(--fast), border-color var(--fast), transform var(--fast);
}
.footer-social a:hover{background:var(--orange);border-color:var(--orange);transform:translateY(-2px)}
.footer-social svg{width:17px;height:17px;color:#fff}
.footer-col .sub{
  color:#fff;font-size:.85rem;font-weight:800;
  margin-bottom:16px;letter-spacing:.01em;
}
.footer-col a{
  display:block;padding:5px 0;
  font-size:.845rem;color:rgba(255,255,255,.5);
  transition:color var(--fast), padding-inline-start var(--fast);
}
.footer-col a:hover{color:#ffa064;padding-inline-start:5px}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.08);
  padding-block:20px;
  display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;
  font-size:.78rem;color:rgba(255,255,255,.38);
}
.footer-bottom .fb-links{display:flex;gap:16px}
.footer-bottom a:hover{color:#ffa064}

/* ---------- 22. Floating WhatsApp ---------- */
.wa-float{
  position:fixed;inset-inline-end:18px;bottom:18px;z-index:850;
  width:54px;height:54px;border-radius:50%;
  display:grid;place-items:center;
  background:#1faa55;color:#fff;
  box-shadow:0 14px 30px -10px rgba(31,170,85,.75);
  transition:transform var(--fast) var(--ease), background var(--fast);
}
.wa-float:hover{transform:scale(1.07) translateY(-2px);background:#188c46}
.wa-float svg{width:26px;height:26px}

/* ---------- 23. Reveal ---------- */
.reveal{opacity:0;transform:translateY(16px)}
.reveal.is-in{opacity:1;transform:none;transition:opacity .6s var(--ease), transform .6s var(--ease)}
@media (prefers-reduced-motion:reduce){
  .reveal,.reveal.is-in{opacity:1;transform:none;transition:none}
  html{scroll-behavior:auto}
  *{animation-duration:.001ms !important;transition-duration:.001ms !important}
}

/* ---------- 24. Responsive ---------- */
@media (max-width:1040px){
  .hero-grid{grid-template-columns:1fr;gap:38px}
  .hero-panel{max-width:520px}
  .footer-grid{grid-template-columns:1fr 1fr;gap:30px}
  .grid-4{grid-template-columns:repeat(2,1fr)}
}

@media (max-width:900px){
  .nav{display:none}
  .burger{display:grid}
  .drawer{display:block}
  /* On a phone the 200px logo box competes with the burger and the phone button.
     Shrink the cap, not the ratio: width/height stay auto so the artwork keeps
     its own aspect ratio instead of being squashed into a smaller square. */
  .logo-mark--img,.logo-mark--img img{max-width:150px;max-height:44px}
  .logo{gap:8px}
  .hdr-phone span{display:none}
  .hdr-phone{padding:9px;border-radius:var(--r-xs)}
  .stats-card{grid-template-columns:repeat(2,1fr)}
  .stat-cell:nth-child(3){border-inline-start:0}
  .stat-cell:nth-child(1),.stat-cell:nth-child(2){border-bottom:1px solid var(--border-soft)}
  .grid-3{grid-template-columns:1fr}
  .hero{padding-block:56px 84px}
  .section{padding-block:56px}
  .cta{padding:34px 28px}
  .form-row{grid-template-columns:1fr}
}

@media (max-width:640px){
  .container{padding-inline:18px}
  .header-actions .btn--primary{display:none}
  .section{padding-block:46px}
  .hero-actions .btn{width:100%}
  .hero-panel{padding:16px}
  .form-card,.info-card{padding:22px}
  .cta{flex-direction:column;text-align:center;align-items:stretch}
  .cta .btn{width:100%}
  .footer-grid{grid-template-columns:1fr}
  .footer-bottom{justify-content:center;text-align:center}
  .prod-grid,.post-grid{grid-template-columns:1fr}
  .grid-2{grid-template-columns:1fr}
  .grid-4{grid-template-columns:1fr}
  .pagehead{padding-block:38px 42px}
  .wa-float{width:48px;height:48px;inset-inline-end:14px;bottom:14px}
  .wa-float svg{width:23px;height:23px}
}

/* ---------- 24b. Landing pages ---------- */
.prose-wrap{
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:48px;
  align-items:start;
}
/* The sidebar sticks under the header — and under the in-page nav on the pages
   that have one, otherwise its first card slides behind the chips. */
.prose-aside{position:sticky;top:calc(var(--header-h) + var(--page-nav-h, 0px) + 22px)}
.aside-card{
  display:grid;
  gap:12px;
  padding:24px;
  border:1px solid var(--border);
  border-radius:var(--r-lg);
  background:var(--surface);
  box-shadow:var(--sh-1);
}
.aside-card h3{font-size:1rem;margin:0}
.aside-card p{font-size:.84rem;color:var(--muted);line-height:1.8;margin:0}
.aside-card .btn{width:100%;justify-content:center}
.chip-row{display:flex;flex-wrap:wrap;gap:9px;margin-top:4px}
/* Hub rows sit under a centred section head, so they centre too — a single
   chip left-aligned in a 1100px row reads as a layout mistake. */
.chip-row--center{justify-content:center}
.chip,
.prose .chip{
  display:inline-flex;align-items:center;
  padding:8px 14px;
  border:1px solid var(--border);
  border-radius:999px;
  background:var(--surface);
  color:var(--ink-2);
  font-size:.82rem;font-weight:600;
  text-decoration:none;
  box-shadow:var(--sh-1);
  transition:border-color .18s var(--ease),background .18s var(--ease),color .18s var(--ease);
}
.chip:hover,
.prose .chip:hover{border-color:var(--orange);background:var(--orange-soft);color:var(--orange-2)}

/* ---------- 24c. Article pages ---------- */
.aside-list{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.aside-list li{display:grid;gap:2px;padding:9px 0;border-bottom:1px solid var(--border)}
.aside-list li:last-child{border-bottom:0;padding-bottom:0}
.aside-list a{
  color:var(--ink);font-size:.86rem;font-weight:600;line-height:1.65;
  text-decoration:none;
}
.aside-list a:hover{color:var(--orange-2)}
.aside-list span{font-size:.72rem;color:var(--muted)}
.article-foot{display:flex;flex-wrap:wrap;gap:10px;margin-top:38px;padding-top:24px;border-top:1px solid var(--border)}
.article-foot .chip svg{width:15px;height:15px;transform:rotate(180deg)}

/* ---------- Article: cover, contents, tags, related devices ---------- */
.article-cover{
  margin:0 0 6px;border-radius:var(--r-lg);overflow:hidden;
  border:1px solid var(--border-soft);background:#eef2fa;
}
.article-cover img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}

/* Contents list. Built from the article's own headings, so it only appears
   when there are at least three of them. */
.article-toc{
  background:var(--surface-2);border:1px solid var(--border);
  border-radius:var(--r);padding:18px 20px;
}
.article-toc h2{
  font-size:.82rem;margin:0 0 10px;color:var(--muted);
  text-transform:none;letter-spacing:0;
}
.article-toc ol{margin:0;padding:0;list-style:none;display:grid;gap:7px;counter-reset:toc}
.article-toc li{counter-increment:toc;font-size:.87rem;line-height:1.7}
.article-toc li::before{
  content:counter(toc) ".";
  color:var(--orange-2);font-weight:800;margin-inline-end:7px;
}
.article-toc a{color:var(--ink-2);text-decoration:none;border-bottom:1px solid transparent}
.article-toc a:hover{color:var(--orange-2);border-bottom-color:currentColor}
/* A sub-heading sits under its parent, not beside it. */
.article-toc .toc-l3{padding-inline-start:18px;font-size:.83rem}

.article-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:30px}
.article-tags .chip{cursor:default;background:var(--surface-2);color:var(--muted)}

.rel-devices{
  margin-top:34px;padding:20px;border-radius:var(--r-lg);
  background:linear-gradient(160deg,#f7f9fd,#eef3fb);
  border:1px solid var(--border);
}
.rel-devices h2{font-size:1rem;margin:0 0 14px}
.rel-devices ul{display:grid;gap:9px;padding:0;margin:0;list-style:none}
.rel-devices li{
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  padding:9px 12px;background:var(--surface);border:1px solid var(--border-soft);
  border-radius:11px;
}
.rel-devices li::before{display:none}
.rel-device-name{font-size:.86rem;font-weight:700;color:var(--ink);margin-inline-end:auto}
.rel-devices .chip{
  font-size:.74rem;padding:5px 11px;border-radius:8px;
  background:var(--surface-2);border:1px solid var(--border);color:var(--ink-2);
}
.rel-devices .chip:hover{border-color:var(--orange);color:var(--orange-2);background:var(--orange-soft)}

.prose blockquote{
  margin:26px 0;padding:4px 20px;border-inline-start:3px solid var(--orange);
  background:var(--surface-2);border-radius:0 12px 12px 0;
}
.prose blockquote p,.prose blockquote{color:var(--muted);font-size:.93rem;line-height:1.95}
.prose code{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.86em;
  background:#eef2fa;padding:2px 6px;border-radius:6px;direction:ltr;
  display:inline-block;
}
.prose img{border-radius:var(--r);border:1px solid var(--border-soft);height:auto}
.prose a{color:var(--orange-2);text-decoration:underline;text-underline-offset:3px}

/* ---------- 24d. 404 ---------- */
.err-wrap{max-width:620px;margin:0 auto;text-align:center;padding:24px 0 8px}
.err-code{
  font-size:clamp(4.5rem,14vw,7rem);
  font-weight:900;line-height:1;
  letter-spacing:-.04em;
  color:transparent;
  background:linear-gradient(135deg,var(--orange) 0%,var(--orange-2) 100%);
  -webkit-background-clip:text;background-clip:text;
  margin-bottom:6px;
}
.err-wrap h1{font-size:clamp(1.4rem,4vw,1.9rem);margin:0 0 14px}
.err-text{color:var(--muted);line-height:1.9;margin:0 auto 26px;max-width:46ch}
.err-actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-bottom:28px}
.err-links{justify-content:center}
.err-links .chip svg{width:15px;height:15px}

@media (max-width:900px){
  .prose-wrap{grid-template-columns:1fr;gap:34px}
  .prose-aside{position:static}
}

/* ---------- 25. Print ---------- */
/* ---------- 26. Device pages ----------
   /devices/<type>/<slug>.html. The gallery is the only new layout: the first
   photo is the one above the fold, so it spans the full column and is the one
   the builder marks eager. The rest are lazy and share a 3-up grid. */
.dev-gallery{
  display:grid;grid-template-columns:repeat(3,1fr);gap:10px;
  margin-bottom:26px;
}
.dev-shot{
  margin:0;position:relative;overflow:hidden;
  aspect-ratio:4/3;background:var(--surface-2);
  border:1px solid var(--border);border-radius:var(--r);
}
.dev-shot.is-main{grid-column:1/-1;aspect-ratio:16/9;max-height:440px}
.dev-shot img{width:100%;height:100%;object-fit:cover;display:block}

/* The spec table is the first thing a buyer scans; it keeps the page rhythm
   without the 560px cap .kv uses on its own. */
.dev-facts{margin-bottom:26px}
.dev-facts .kv{max-width:none}

.dev-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:6px}
.dev-actions .ico{display:inline-flex}
.dev-actions .btn{flex:1 1 auto;min-width:190px}

/* A button that happens to live inside .prose must still look like a button.
   `.prose a` is more specific than `.btn`, so without this the device page
   renders its three actions underlined and coloured like article links. */
.prose .btn{text-decoration:none}
.prose .btn--primary,.prose .btn--wa{color:#fff}
.prose .btn--ghost{color:var(--ink)}
.prose .btn--ghost:hover{color:var(--orange-2)}

/* The sidebar phone number: the one thing a buyer on a phone wants to tap. */
.aside-phone{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  width:100%;margin-top:10px;padding:11px;
  font-size:.9rem;font-weight:800;color:var(--navy);
  background:var(--bg);border-radius:var(--r-sm);
  font-variant-numeric:tabular-nums;
}
.aside-phone:hover{color:var(--orange-2);background:var(--orange-soft)}
.aside-phone svg{width:16px;height:16px;flex:none}

@media (max-width:640px){
  .dev-gallery{grid-template-columns:repeat(2,1fr);gap:8px}
  .dev-shot.is-main{aspect-ratio:4/3;max-height:none}
  .dev-actions{gap:9px}
  .dev-actions .btn{width:100%;min-width:0}
}

/* ---------- 27. In-page navigation ----------
   The sticky map of a long page. Offsets derive from --header-h; --page-nav-h is
   what the page adds (0 without a nav, the bar's height with one), declared on
   <body> with :has() so anchors are right on the very first paint. */
:root{--page-nav-h:0px}
body:has(.page-nav){--page-nav-h:58px}
/* One rule clears header + bar for every anchor, or the heading parks under it. */
[id]{scroll-margin-top:calc(var(--header-h) + var(--page-nav-h, 0px) + 14px)}

.page-nav{
  position:sticky;top:var(--header-h);z-index:800;
  background:rgba(255,255,255,.92);backdrop-filter:saturate(180%) blur(12px);
  border-bottom:1px solid var(--border-soft);
}
.page-nav-list{
  display:flex;align-items:center;gap:4px;list-style:none;margin:0;padding-block:9px;
  overflow-x:auto;overflow-y:hidden;scrollbar-width:none;scroll-snap-type:x proximity;
  -webkit-overflow-scrolling:touch;
}
.page-nav-list::-webkit-scrollbar{display:none}
.page-nav-list > li{flex:none;scroll-snap-align:center}
.page-nav-link{
  display:inline-flex;align-items:center;gap:7px;padding:7px 13px;border-radius:999px;
  font-size:.82rem;font-weight:700;color:var(--muted);white-space:nowrap;text-decoration:none;
  transition:background var(--fast) var(--ease),color var(--fast) var(--ease);
}
.page-nav-link::before{
  content:"";width:5px;height:5px;border-radius:50%;background:currentColor;opacity:.28;
  transition:opacity var(--fast),transform var(--fast);
}
.page-nav-link:hover{background:var(--bg);color:var(--ink)}
.page-nav-link:focus-visible{outline:2px solid var(--orange);outline-offset:2px}
.page-nav-link.is-active{background:var(--orange-soft);color:var(--orange-2)}
.page-nav-link.is-active::before{opacity:1;transform:scale(1.35)}

/* ---------- 28. Media blocks ----------
   One frame for a photo and a video, so a body carrying both reads as one
   rhythm instead of a pile of differently sized rectangles. */
.media{
  margin:30px 0;overflow:hidden;background:var(--surface);
  border:1px solid var(--border);border-radius:var(--r-lg);box-shadow:var(--sh-1);
}
.prose .media img{width:100%;height:auto;display:block;border:0;border-radius:0;background:var(--surface-2)}
/* The ratio belongs to the player: on the figure the caption lands inside the
   video box and an absolutely positioned player paints straight over it. */
.media--video iframe,.media--video video{display:block;width:100%;aspect-ratio:16/9;border:0;background:#0b1220}
.media figcaption{
  padding:11px 16px;text-align:center;font-size:.79rem;line-height:1.7;color:var(--muted);
  background:var(--surface-2);border-top:1px solid var(--border-soft);
}
.media--video figcaption{border-top:0}
/* Display size, chosen per image in the panel. Percentages, because the same
   body is read in a 1200px article column and on a 390px phone — a fixed pixel
   width would overflow the phone and look lost on the desk.
   The figure shrinks; the photo inside always fills it, so nothing is cropped
   and no second set of rules is needed for the <img>. */
.media--img{width:100%}
.media--w25{width:25%}
.media--w33{width:33.3333%}
.media--w50{width:50%}
.media--w66{width:66.6666%}
.media--w75{width:75%}
.media--w100{width:100%}
/* Alignment is margin, not float. A float would let the next heading sit beside
   a half-width photo and then wrap under it halfway down — and in RTL the clear
   rules that fix that are the ones people forget. Logical properties keep
   «راست» meaning the right edge in this RTL site and the start edge anywhere
   else, without a second rule. */
.media--center{margin:30px auto}
/* Physical margins, not logical ones, and that is deliberate: the class names
   are physical too («سمت راست» means the right edge, not the start edge). In an
   RTL line the start edge *is* the right one, so `margin-inline-start:auto`
   pushes the box the other way — which is exactly the bug this replaces. */
.media--right{margin:30px 0 30px auto}
.media--left{margin:30px auto 30px 0}
.media--audio audio{display:block;width:100%;padding:10px 14px;background:var(--surface-2)}
/* Below 640px a quarter-width photo is a thumbnail nobody can see, so every
   size collapses to full width. The caption needs the room too. */
@media (max-width:640px){
  .prose .media--w25,.prose .media--w33,.prose .media--w50,
  .prose .media--w66,.prose .media--w75{width:100%}
}

/* ---------- 29. Spec list ----------
   A hairline grid instead of a wall of bullets; survives long Persian values
   without pushing the column wide. */
.prose .spec-list{
  display:grid;grid-template-columns:1fr 1fr;gap:1px;padding:0;margin:18px 0 0;list-style:none;
  background:var(--border-soft);border:1px solid var(--border);border-radius:var(--r);overflow:hidden;
}
.prose .spec-list li{padding:11px 15px;background:var(--surface);font-size:.855rem;line-height:1.75;color:var(--ink-2)}
.prose .spec-list li::before{content:none}
/* An odd count leaves one cell in the last row: let it own the full width. */
.prose .spec-list li:last-child:nth-child(odd){grid-column:1/-1}

/* A product description is a real body now; give it the same rhythm as .prose. */
.dev-desc > h2:first-child{margin-top:0}
.dev-desc > * + *{margin-top:16px}

@media (max-width:640px){
  .page-nav-link{padding:6px 11px;font-size:.78rem}
  .prose .spec-list{grid-template-columns:1fr}
}

/* ---------- 30. Editable page slots ----------
   The two places an owner can add to any page: under the page head, and above
   the closing call to action. Both are plain .prose so the text keeps the same
   rhythm as an article — centred, because a page-level block that starts at
   the left edge under a centred head looks like a mistake. */
.page-slot{margin-inline:auto}

/* ---------- 31. Card carousel ----------
   A native horizontal scroller, not a slider library: swipe works on touch,
   the track scrolls with the keyboard when focused, and every card is a real
   <a href> in the markup — so the links exist for a crawler and for a reader
   with scripting off. The arrow buttons are an enhancement cards.js reveals. */
.cards-section{overflow:hidden}
.cards-wrap{position:relative}
.cards-track{
  display:flex;
  gap:18px;
  margin:0;
  padding:4px 2px 16px;
  list-style:none;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
.cards-track::-webkit-scrollbar{display:none}
.cards-track:focus-visible{outline:2px solid var(--orange);outline-offset:4px;border-radius:var(--r)}
.cards-item{
  flex:0 0 clamp(230px,26vw,292px);
  scroll-snap-align:start;
  display:flex;
}
.cards-card{
  display:flex;flex-direction:column;
  width:100%;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r-lg);
  overflow:hidden;
  color:inherit;
  text-decoration:none;
  transition:transform var(--fast) var(--ease),box-shadow var(--fast),border-color var(--fast);
}
a.cards-card:hover{transform:translateY(-4px);box-shadow:var(--sh-2);border-color:#d9e0ec}
.cards-media{
  display:block;
  position:relative;
  aspect-ratio:4/3;
  background:radial-gradient(circle at 50% 42%,#ffffff 0%,#f4f7fb 52%,#e8eef7 100%);
  border-bottom:1px solid var(--border-soft);
  overflow:hidden;
}
.cards-media img{
  width:100%;height:100%;
  object-fit:cover;
  display:block;
  transition:transform var(--slow) var(--ease);
}
a.cards-card:hover .cards-media img{transform:scale(1.04)}
.cards-body{
  display:flex;flex-direction:column;gap:6px;
  flex:1;
  padding:14px 16px 16px;
}
.cards-title{font-weight:700;font-size:.95rem;line-height:1.65;color:var(--navy)}
.cards-text{font-size:.83rem;line-height:1.8;color:var(--muted);flex:1}
.cards-cta{
  margin-top:auto;
  display:inline-flex;align-items:center;gap:6px;
  font-size:.8rem;font-weight:700;color:var(--orange-2);
}
/* RTL: "forward" points left. The arrow is decoration, so it is added here
   rather than as text in the markup, where it would be read out loud. */
.cards-cta::before{content:"\2190";font-size:.95rem;line-height:1}
.cards-nav{
  position:absolute;
  inset-block:0;
  inset-inline:-6px;
  display:flex;align-items:center;justify-content:space-between;
  pointer-events:none;
}
.cards-btn{
  pointer-events:auto;
  width:38px;height:38px;
  border-radius:50%;
  border:1px solid var(--border);
  background:rgba(255,255,255,.95);
  color:var(--navy);
  font-size:1.05rem;line-height:1;
  display:grid;place-items:center;
  cursor:pointer;
  box-shadow:var(--sh-2);
  transition:background var(--fast),color var(--fast),opacity var(--fast);
}
.cards-btn:hover{background:var(--navy);color:#fff}
/* At the end of the strip there is nothing left to scroll to, so the arrow is
   removed rather than dimmed: a white circle at 32% opacity on a white page
   reads as a rendering glitch. `visibility` keeps the flex slot, so the other
   arrow does not jump across the track. */
.cards-btn[disabled]{visibility:hidden;pointer-events:none}

/* Touch devices already have the gesture, and a narrow screen has no room for
   a button on top of the card: in both cases the arrows are noise. */
@media (hover:none){
  .cards-nav{display:none}
}
@media (max-width:640px){
  .cards-item{flex:0 0 min(78vw,262px)}
  .cards-track{gap:12px}
  .cards-nav{display:none}
}
@media (prefers-reduced-motion:reduce){
  .cards-track{scroll-behavior:auto}
  a.cards-card:hover{transform:none}
  a.cards-card:hover .cards-media img{transform:none}
}

@media print{
  .site-header,.site-footer,.wa-float,.cta,.hero-panel,.page-nav{display:none}
  body{background:#fff}
  .hero,.pagehead{background:#fff;color:#000}
  .hero h1,.pagehead h1{color:#000}
}
