/* Nexra shared styles. Colours come from the logo: navy, blue, orange. */
:root {
  --bg: #0a1626;
  --surface: #101f36;
  --surface-2: #162a49;
  --line: #24395c;
  --text: #eef3fa;
  --muted: #a3b4cd;
  --link: #6aa8ff;
  --orange: #f47b20;
  --accent-text: #ff9a4d;
  --on-orange: #1b0e02;
  --header-bg: rgba(10, 22, 38, 0.92);
  --display: 'Saira', 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
  --body: 'IBM Plex Sans', 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
}
:root[data-theme="light"] {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #e8eef7;
  --line: #d3ddeb;
  --text: #0f2747;
  --muted: #4a5f80;
  --link: #1f5fa8;
  --accent-text: #b4500a;
  --header-bg: rgba(244, 247, 251, 0.94);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; display: block; }
a { color: var(--link); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--display); line-height: 1.15; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
[dir="rtl"] h1 { letter-spacing: 0; line-height: 1.35; }
[dir="rtl"] h2, [dir="rtl"] h3 { line-height: 1.45; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.band { padding-block: 64px; }
.band-alt { background: var(--surface); border-block: 1px solid var(--line); }
.band-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.lead { color: var(--muted); font-size: 1.15rem; max-width: 62ch; }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px; border-radius: 6px;
  font: 600 1rem var(--body); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background-color .15s, border-color .15s;
}
.btn-main { background: var(--orange); color: var(--on-orange); }
.btn-main:hover { background: #ff8d38; }
.btn-line { border-color: var(--line); color: var(--text); background: transparent; }
.btn-line:hover { border-color: var(--orange); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--header-bg); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); margin-inline-end: auto; }
.brand img { width: 44px; height: 44px; border-radius: 8px; background: #f5f7f6; }
.brand span { font: 700 1.45rem var(--display); letter-spacing: 0.06em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: 6px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--orange); border-radius: 0; }
.nav .btn { color: var(--on-orange); min-height: 40px; padding: 6px 16px; margin-inline-start: 8px; }
.tools { display: flex; gap: 6px; }
.tool {
  min-height: 40px; padding: 6px 12px; border-radius: 6px; cursor: pointer;
  background: transparent; color: var(--text); border: 1px solid var(--line);
  font: 500 0.9rem var(--body); white-space: nowrap;
}
@media (max-width: 520px) { .tool .lbl { display: none; } .brand span { font-size: 1.25rem; } }
.tool:hover { border-color: var(--orange); }
.menu-btn { display: none; }

@media (max-width: 1040px) {
  .menu-btn { display: inline-block; }
  .nav {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--orange); padding-inline-start: 14px; }
  [dir="rtl"] .nav a[aria-current="page"] { box-shadow: inset -4px 0 0 var(--orange); }
  .nav .btn { margin: 16px 0 0; min-height: 48px; border-bottom: 0; border-radius: 6px; }
}

/* Hero */
.hero { padding-block: 56px 64px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 28px; }
.jobs {
  background: var(--surface); border: 1px solid var(--line);
  border-inline-start: 6px solid var(--orange); border-radius: 6px; padding: 22px 24px;
}
.jobs h2 { font-size: 1rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.jobs ul { list-style: none; }
.jobs li { padding-block: 12px; border-top: 1px solid var(--line); }
.jobs li strong { display: block; font-weight: 600; line-height: 1.35; }
.jobs li span { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } .hero { padding-block: 36px 48px; } }

/* Page title block */
.page-top { padding-block: 48px 8px; }
.page-top h1 { font-size: clamp(2rem, 5vw, 2.9rem); margin-bottom: 14px; }

/* Service index rows (home) */
.svc-rows { border-top: 1px solid var(--line); }
.svc-row {
  display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 8px 32px; align-items: center;
  padding: 22px 8px; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--text); transition: background-color .15s;
}
.svc-row:hover { background: var(--surface-2); }
.svc-row p { color: var(--muted); }
.svc-row .go { color: var(--accent-text); font-weight: 600; white-space: nowrap; }
@media (max-width: 760px) { .svc-row { grid-template-columns: 1fr; padding-inline: 0; } }

/* Service detail blocks */
.svc-block { display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px 48px; padding-block: 40px; border-top: 1px solid var(--line); }
.svc-block h2 { margin-bottom: 12px; }
.svc-block ul { list-style: none; margin-bottom: 22px; }
.svc-block li { padding: 12px 0 12px 22px; border-bottom: 1px solid var(--line); position: relative; }
.svc-block li::before { content: ""; position: absolute; left: 0; top: 1.35em; width: 10px; height: 3px; background: var(--orange); }
[dir="rtl"] .svc-block li { padding: 12px 22px 12px 0; }
[dir="rtl"] .svc-block li::before { left: auto; right: 0; }
@media (max-width: 760px) { .svc-block { grid-template-columns: 1fr; padding-block: 32px; } }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.band-alt .card { background: var(--bg); }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-in { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card p { color: var(--muted); }
.tag { align-self: flex-start; font-size: 0.85rem; font-weight: 600; color: var(--accent-text); }
.card ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.card ul li { background: var(--surface-2); border-radius: 4px; padding: 2px 10px; font-size: 0.9rem; }
.card .btn { margin-top: auto; align-self: flex-start; }

/* Why / about */
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 36px; }
.why p { color: var(--muted); margin-top: 8px; }
.prose p { max-width: 68ch; margin-bottom: 18px; }
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.info { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 24px; }
.info h2 { font-size: 1.25rem; margin-bottom: 14px; }
.info dl { display: grid; gap: 14px; margin-bottom: 20px; }
.info dt { color: var(--muted); font-size: 0.9rem; }
.info dd a { color: var(--text); }
.info .btn-row .btn { flex: 1 1 130px; }

blockquote { border-inline-start: 4px solid var(--orange); padding-inline-start: 18px; }
blockquote footer { color: var(--muted); margin-top: 8px; font-size: 0.95rem; }

.cta { text-align: center; }
.cta h2 { margin-bottom: 10px; }
.cta p { color: var(--muted); margin-bottom: 24px; }
.cta .btn-row { justify-content: center; }

/* Form */
.form { display: grid; gap: 18px; max-width: 640px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font: 400 1rem var(--body);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input[type="file"] { padding: 10px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--orange); outline-offset: 1px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.status { padding: 14px 16px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); }
.status.ok { border-color: #2fae73; }
.status.bad { border-color: var(--orange); }
.status .btn { margin-top: 10px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding-block: 40px 28px; margin-top: 24px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
.foot-grid h2 { font-size: 1rem; margin-bottom: 10px; }
.foot-grid ul { list-style: none; display: grid; gap: 6px; }
.foot-grid a { color: var(--muted); text-decoration: none; }
.foot-grid a:hover { color: var(--text); text-decoration: underline; }
.foot-grid p { color: var(--muted); }
.foot-end { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ===================== Store ===================== */
.banner { background: var(--orange); color: var(--on-orange); font-weight: 600; text-align: center; padding: 10px 20px; }
.shop-tools { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-bottom: 24px; }
.shop-tools .field { flex: 1 1 220px; max-width: 360px; }
.shop-tools .field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text); font: 500 0.95rem var(--body); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
@media (min-width: 700px) { .shop-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; } }
.pimg { display: grid; place-items: center; aspect-ratio: 1 / 1; background: var(--surface-2); color: var(--muted); overflow: hidden; }
.pimg img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.pcard .card-in { padding: 14px; gap: 6px; }
.pcard h3 { font-size: 1.02rem; line-height: 1.3; }
.pcard h3 a { color: var(--text); text-decoration: none; }
.pcard h3 a:hover { text-decoration: underline; }
.pcard .btn { align-self: stretch; margin-top: auto; padding-inline: 10px; }
.price { color: var(--text) !important; font-weight: 600; font-variant-numeric: tabular-nums; }
.price.big { font-size: 1.5rem; margin-block: 6px 4px; }
.stock { font-size: 0.9rem; font-weight: 600; }
.stock.out { color: var(--muted); }
.stock.low { color: var(--accent-text); }

.pview { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 800px) { .pview { grid-template-columns: 1fr; gap: 24px; } }
.gallery .pimg { border-radius: 6px; border: 1px solid var(--line); }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumbs button { flex: 0 0 64px; height: 64px; padding: 0; border-radius: 6px; overflow: hidden; border: 2px solid var(--line); background: none; cursor: pointer; }
.thumbs button[aria-pressed="true"] { border-color: var(--orange); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pinfo { display: grid; gap: 10px; justify-items: start; }
.pinfo h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.pdesc { color: var(--muted); white-space: pre-wrap; max-width: 60ch; }
.buy { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-block: 8px; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.qty button { width: 44px; height: 44px; border: 0; background: none; color: var(--text); font-size: 1.3rem; cursor: pointer; }
.qty button:disabled { opacity: 0.35; cursor: default; }
.qty output { min-width: 2.2ch; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

.lines { list-style: none; border-top: 1px solid var(--line); margin-bottom: 8px; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: start; padding-block: 16px; border-bottom: 1px solid var(--line); }
.lines.plain .line { grid-template-columns: 1fr auto; padding-block: 12px; }
.line .pimg { border-radius: 6px; }
.line-main { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.line-name { color: var(--text); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.line-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 6px; }
.line-total { font-variant-numeric: tabular-nums; white-space: nowrap; }
.linkbtn { background: none; border: 0; color: var(--link); font: inherit; text-decoration: underline; cursor: pointer; min-height: 44px; padding: 0 4px; }
.checkout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .checkout { grid-template-columns: 1fr; gap: 8px; } }
.checkout h2 { font-size: 1.3rem; margin-block: 28px 14px; }
fieldset { border: 0; display: grid; gap: 10px; }
legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.choice { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.choice input { width: 20px; height: 20px; accent-color: var(--orange); }
.choice strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.totals { display: grid; gap: 8px; margin-block: 8px 16px; font-variant-numeric: tabular-nums; }
.totals div { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); }
.totals .grand { color: var(--text); font-weight: 700; font-size: 1.2rem; padding-top: 10px; border-top: 1px solid var(--line); }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn-wide { width: 100%; }
.fine { color: var(--muted); font-size: 0.9rem; }
.result { border: 1px solid var(--line); border-inline-start: 6px solid var(--line); border-radius: 6px; background: var(--surface); padding: 20px 22px; margin-bottom: 20px; max-width: 640px; }
.result.ok { border-inline-start-color: #2fae73; }
.result.bad { border-inline-start-color: var(--orange); }
.result h2 { font-size: 1.4rem; margin-bottom: 6px; }
.narrow { max-width: 640px; }
.cart-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.25); font-weight: 600; font-variant-numeric: tabular-nums; }
.has-bar { padding-bottom: 76px; }
