/* ==========================================================================
   SZGOING — Solar Camera & Dash Camera
   Design system: tokens, layout, components
   ========================================================================== */

:root {
  --ink: #0c1a26;
  --ink-soft: #2b3b4a;
  --muted: #5d6f7f;
  --line: #e2e8ee;
  --line-strong: #cbd6e0;
  --bg: #ffffff;
  --bg-alt: #f5f8fa;
  --bg-deep: #0a1d2b;
  --primary: #0b4f6c;
  --primary-dark: #073a50;
  --primary-soft: #e6f1f6;
  --accent: #f08c1a;
  --accent-dark: #c96f0a;
  --accent-soft: #fdf1e0;
  --green: #12805c;
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(12, 26, 38, .06), 0 2px 8px rgba(12, 26, 38, .04);
  --shadow: 0 4px 12px rgba(12, 26, 38, .06), 0 12px 32px rgba(12, 26, 38, .07);
  --shadow-lg: 0 12px 24px rgba(12, 26, 38, .08), 0 32px 64px rgba(12, 26, 38, .10);
  --max: 1180px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "Noto Sans Arabic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -.02em;
  margin: 0 0 .6em;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.15rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.55rem, 2.7vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.35rem); letter-spacing: -.01em; }
h4 { font-size: 1.02rem; letter-spacing: 0; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-inline-start: 1.15em; }
li { margin-bottom: .45em; }
strong { color: var(--ink); font-weight: 650; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.container-narrow { max-width: 820px; }
.section { padding: clamp(42px, 5.2vw, 76px) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-deep { background: var(--bg-deep); color: #c9d6e0; }
.section-deep h2, .section-deep h3, .section-deep strong { color: #fff; }
.section-deep a { color: #ffd8a8; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .76rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-dark);
  background: var(--accent-soft); border-radius: 999px;
  padding: 6px 13px; margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.section-deep .eyebrow { background: rgba(240, 140, 26, .16); color: #ffc078; }
.lede { font-size: clamp(1.02rem, 1.4vw, 1.16rem); color: var(--muted); max-width: 68ch; }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 3.4vw, 46px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lede { margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  font-size: .95rem; font-weight: 650; cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #24160a; box-shadow: 0 6px 16px rgba(240, 140, 26, .3); }
.btn-primary:hover { background: #ff9c30; color: #24160a; }
.btn-dark { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(11, 79, 108, .24); }
.btn-dark:hover { background: var(--primary-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.section-deep .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .3); }
.section-deep .btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn-sm { padding: 9px 17px; font-size: .86rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 26px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 34px; height: 34px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; }
.brand-sub { font-size: .6rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav a {
  padding: 9px 13px; border-radius: 8px; font-size: .92rem; font-weight: 550; color: var(--ink-soft);
  white-space: nowrap;
}
/* seven top-level items: tighten the bar before it is allowed to wrap */
@media (min-width: 861px) and (max-width: 1239px) {
  .nav { gap: 0; }
  .nav a { padding: 9px 9px; font-size: .87rem; }
  .header-actions { gap: 6px; }
  .brand-sub { display: none; }
}
.nav a:hover { background: var(--bg-alt); color: var(--primary); }
.nav a[aria-current="page"] { color: var(--primary); background: var(--primary-soft); }

/* Solar Cameras is a parent: its sub-menu carries the two product families */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-parent { display: inline-flex; align-items: center; gap: 5px; }
.nav-caret { opacity: .5; transition: transform .18s ease; }
.nav-item.has-sub:hover .nav-caret,
.nav-item.has-sub:focus-within .nav-caret { transform: rotate(180deg); }
/* Hover bridge: must span the whole panel width, not just the parent label,
   otherwise a diagonal move into the right half of the menu drops through the
   8px gap and the menu closes before the click lands. */
.nav-item.has-sub::after {
  content: ""; position: absolute; top: 100%;
  inset-inline-start: 0; width: 244px; height: 20px;
}
.nav-sub {
  position: absolute; inset-inline-start: 0; top: calc(100% + 16px);
  min-width: 244px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow); padding: 7px;
  display: none; z-index: 70;
}
.nav-item.has-sub:hover .nav-sub,
.nav-item.has-sub:focus-within .nav-sub,
.nav-item.has-sub.sub-open .nav-sub { display: block; }
.nav-sub a {
  display: block; padding: 8px 11px; border-radius: 7px;
  font-size: .89rem; font-weight: 550; color: var(--ink-soft);
}
.nav-sub a:hover { background: var(--bg-alt); color: var(--primary); }
.nav-sub a[aria-current="page"] { color: var(--primary); background: var(--primary-soft); }
.nav-sub-head {
  display: block; margin-top: 7px; padding: 10px 11px 5px;
  border-top: 1px solid var(--line);
  font-size: .67rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); font-weight: 700;
}
.nav-sub-head:first-child { margin-top: 0; padding-top: 6px; border-top: 0; }
#hunting { scroll-margin-top: 92px; }
.header-actions { display: flex; align-items: center; gap: 10px; }

.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; background: transparent;
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 7px 12px; font-size: .82rem; font-weight: 650; color: var(--ink-soft);
  cursor: pointer; font-family: inherit;
}
.lang-btn:hover { border-color: var(--primary); color: var(--primary); }
.lang-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 156px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); padding: 6px; display: none; z-index: 70;
}
.lang-menu.open { display: block; }
.lang-menu a { display: block; padding: 8px 11px; border-radius: 6px; font-size: .88rem; color: var(--ink-soft); }
.lang-menu a:hover { background: var(--bg-alt); color: var(--primary); }
.lang-menu a[aria-current="true"] { color: var(--primary); font-weight: 700; }

.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--line-strong);
  border-radius: 8px; width: 40px; height: 38px; align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 17px; height: 2px; background: var(--ink); border-radius: 2px; position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 12% -10%, #eaf4f9 0%, rgba(255, 255, 255, 0) 62%),
    radial-gradient(760px 380px at 88% 0%, #fdf0dd 0%, rgba(255, 255, 255, 0) 60%),
    #fff;
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 56px);
  align-items: center; padding: clamp(46px, 5.6vw, 86px) 0 clamp(40px, 5vw, 74px);
}
.hero h1 { margin-bottom: .5em; }
.hero .lede { font-size: clamp(1.04rem, 1.5vw, 1.2rem); }
.hero-art { position: relative; }
.hero-art img, .hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 26px 50px rgba(11, 79, 108, .16)); }

.trustbar {
  display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center;
  padding: 16px 0 0; border-top: 1px solid var(--line); margin-top: 26px;
}
.trustbar span { font-size: .82rem; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.trustbar svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--green); }

/* ---------- stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: #fff; padding: 22px 20px; }
.stat b { display: block; font-size: 1.72rem; color: var(--primary); letter-spacing: -.02em; line-height: 1.1; }
.stat span { font-size: .84rem; color: var(--muted); }

/* ---------- grids & cards ---------- */
.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); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }

.icon-tile {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); margin-bottom: 16px;
}
.icon-tile svg { width: 22px; height: 22px; }
.icon-tile.accent { background: var(--accent-soft); color: var(--accent-dark); }

/* category cards */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.cat-card {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-card .cat-media {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.cat-card .cat-media svg, .cat-card .cat-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  padding: 22px; object-fit: contain;
}
/* scene photos fill the frame edge to edge instead of sitting on white */
.cat-card.photo .cat-media img { padding: 0; object-fit: cover; }
.cat-card .cat-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.cat-card .cat-body h3 { font-size: 1.3rem; }
.cat-card .cat-body p { color: var(--muted); font-size: .95rem; }
.cat-card .cat-body .btn-row { margin-top: auto; }
/* an odd number of cards in a two-column grid: let the last one run full width */
.cat-card.wide { grid-column: 1 / -1; flex-direction: row; min-height: 300px; }
.cat-card.wide .cat-media {
  flex: 0 0 44%; aspect-ratio: auto; border-bottom: 0;
  border-inline-end: 1px solid var(--line);
}
.cat-card.wide .cat-media img { padding: 16px; }
.cat-card.wide .cat-body { padding: 34px 38px; justify-content: center; }
.cat-card.wide .cat-body .btn-row { margin-top: 20px; }
@media (max-width: 720px) {
  .cat-card.wide { flex-direction: column; }
  .cat-card.wide .cat-media {
    flex: none; aspect-ratio: 16 / 9; border-inline-end: 0;
    border-bottom: 1px solid var(--line);
  }
  .cat-card.wide .cat-body { padding: 24px 26px 26px; }
}
.pill-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 4px 0 18px; padding: 0; list-style: none; }
.pill-list li {
  font-size: .78rem; font-weight: 600; color: var(--primary-dark);
  background: var(--primary-soft); border-radius: 999px; padding: 4px 11px; margin: 0;
}

/* product gallery/product page */
.product-head { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(26px, 4vw, 52px); align-items: start; }
.product-media {
  border: 1px solid var(--line); border-radius: var(--radius-lg); background:
    linear-gradient(155deg, #eff6fa 0%, #fbfdfe 58%, #fdf4e8 100%);
  padding: clamp(18px, 2.4vw, 30px); box-shadow: var(--shadow-sm);
  position: sticky; top: 92px;
}
.product-media img { width: 100%; height: auto; border-radius: var(--radius); }
.product-media img.main-shot { aspect-ratio: 1; object-fit: contain; background: #fff; }

/* photo gallery under the hero shot */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; margin-top: 12px; }
/* display:grid beats the UA hidden rule, so state it explicitly */
.gallery[hidden] { display: none; }
.gallery button {
  padding: 0; border: 1px solid var(--line); border-radius: 9px; overflow: hidden;
  background: #fff; cursor: pointer; line-height: 0; transition: border-color .18s ease, box-shadow .18s ease;
}
.gallery button:hover { border-color: var(--line-strong); }
.gallery button[aria-current="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.gallery img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }

/* housing colourway chips (progressive: hidden until main.js runs) */
.finish-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; justify-content: center; }
.finish-chip {
  font: inherit; font-size: .84rem; line-height: 1; cursor: pointer;
  padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); transition: border-color .18s ease, background .18s ease;
}
.finish-chip:hover { border-color: var(--line-strong); }
.finish-chip[aria-pressed="true"] {
  border-color: var(--accent); background: var(--accent-soft); font-weight: 600;
}
/* colourway chips: column count follows how many there are, so two chips fill
   the column and four/five wrap evenly instead of leaving orphans */
@media (min-width: 1025px) {
  .finish-switch { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
  .finish-switch:has(> .finish-chip:nth-child(5)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .finish-switch:has(> .finish-chip:nth-child(4)):not(:has(> .finish-chip:nth-child(5))) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .finish-chip { padding: 9px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* product video */
.video-frame {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  background: #0a1d2b; box-shadow: var(--shadow); max-width: 860px;
}
.video-frame video { display: block; width: 100%; height: auto; }
.video-cap { font-size: .88rem; color: var(--muted); margin-top: 10px; }

/* long-form product description: text and images in one readable column */
.story { margin-top: 8px; }
.story h3 {
  font-size: 1.18rem; margin: 34px 0 10px; letter-spacing: -.01em;
}
.story h3:first-child { margin-top: 4px; }
.story p { color: var(--ink-soft); margin: 0 0 14px; }
.story .checklist { margin: 4px 0 18px; }
.story-fig { margin: 22px 0 26px; }
.story-fig img {
  display: block; width: 100%; height: auto; border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: var(--surface);
}
.story-fig figcaption {
  font-size: .86rem; color: var(--muted); margin-top: 8px; line-height: 1.5;
}
.story-row {
  display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
  gap: 18px; margin: 22px 0 26px; align-items: start;
}
.story-row .story-fig { margin: 0; }
@media (max-width: 640px) {
  .story-row { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
.spec-list { list-style: none; padding: 0; margin: 0 0 22px; border-top: 1px solid var(--line); }
.spec-list li {
  display: grid; grid-template-columns: 44% 56%; gap: 14px;
  padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .94rem; margin: 0;
}
.spec-list .k { color: var(--muted); }
.spec-list .v { color: var(--ink); font-weight: 600; }

table.data { width: 100%; border-collapse: collapse; font-size: .93rem; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
table.data th, table.data td { padding: 13px 15px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th { background: var(--bg-alt); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td strong { color: var(--ink); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* callouts / key facts (GEO friendly, quotable blocks) */
.callout {
  border: 1px solid var(--line); border-inline-start: 3px solid var(--accent);
  background: var(--bg-alt); border-radius: var(--radius-sm);
  padding: 18px 20px; margin: 0 0 22px;
}
.callout h4 { margin-bottom: .4em; color: var(--ink); }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout.facts { background: #fff; border-inline-start-color: var(--primary); }

.factbox { background: var(--bg-deep); color: #c9d6e0; border-radius: var(--radius); padding: 26px 26px 22px; }
.factbox h3 { color: #fff; font-size: 1.12rem; }
.factbox ul { list-style: none; padding: 0; margin: 0; }
.factbox li { display: flex; gap: 10px; font-size: .92rem; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); margin: 0; }
.factbox li:last-child { border-bottom: 0; }
.factbox b { color: #fff; font-weight: 650; }

/* feature list */
.checklist { list-style: none; padding: 0; margin: 0 0 24px; }
.checklist li { position: relative; padding-inline-start: 28px; margin-bottom: 11px; font-size: .97rem; }
.checklist li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .42em;
  width: 16px; height: 16px; border-radius: 50%; background: var(--primary-soft);
  box-shadow: inset 0 0 0 2px var(--primary);
}
.checklist li::after {
  content: ""; position: absolute; inset-inline-start: 4.5px; top: .68em;
  width: 7px; height: 4px; border-inline-start: 2px solid var(--primary); border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}

/* steps */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { position: relative; padding-inline-start: 58px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; inset-inline-start: 0; top: -2px;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: #fff; font-weight: 700; font-size: .95rem;
}
.step h4 { margin-bottom: .3em; }
.step p { margin-bottom: 0; color: var(--muted); font-size: .95rem; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 34px 16px 0;
  font-weight: 650; color: var(--ink); font-size: 1.01rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.35rem; font-weight: 400; color: var(--primary); line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq .faq-body { padding: 0 12px 18px 0; color: var(--muted); font-size: .96rem; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--primary-dark) 0%, var(--primary) 55%, #14688a 100%);
  color: #d7e6ee; border-radius: var(--radius-lg);
  padding: clamp(30px, 4vw, 52px); display: grid;
  grid-template-columns: 1.25fr auto; gap: 26px; align-items: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; margin-bottom: .35em; }
.cta-band p { margin-bottom: 0; color: #cfe2eb; }

/* forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .84rem; font-weight: 650; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: .95rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 11px 13px; width: 100%; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11, 79, 108, .12);
}
.field textarea { min-height: 116px; resize: vertical; }
.form-note { font-size: .8rem; color: var(--muted); margin: 12px 0 0; }

/* honeypot: present in the DOM for bots, out of sight and out of the a11y tree */
/* fixed, not offset: a negative inline offset widens the RTL scroll area */
.hp { position: fixed; top: 0; inset-inline-start: 0; width: 1px; height: 1px;
      opacity: 0; overflow: hidden; pointer-events: none; }

/* inline result for the ajax submit */
.form-status { grid-column: 1 / -1; margin: 0; font-size: .9rem; line-height: 1.5; }
.form-status:empty { display: none; }
.form-status.is-pending { color: var(--muted); }
.form-status.is-ok {
  color: #14603f; background: #eaf7ef; border: 1px solid #bfe4cf;
  border-radius: 10px; padding: 11px 14px;
}
.form-status.is-err {
  color: #8a2231; background: #fdeef0; border: 1px solid #f2c7ce;
  border-radius: 10px; padding: 11px 14px;
}
.form-status a { font-weight: 650; }
.field button[disabled] { opacity: .6; cursor: progress; }

/* contact blocks */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; font-size: .95rem; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list svg { width: 18px; height: 18px; color: var(--primary); margin-top: 3px; }
.contact-list .lbl { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }

/* breadcrumbs */
.crumbs { font-size: .82rem; color: var(--muted); padding: 14px 0 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.crumbs li { margin: 0; display: flex; align-items: center; gap: 6px; }
.crumbs li:not(:last-child)::after { content: "/"; color: var(--line-strong); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--primary); }

/* blog */
.post-list { display: grid; gap: 18px; }
.post-item { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.post-item h3 { margin-bottom: .25em; }
.post-item p { margin-bottom: 0; color: var(--muted); font-size: .96rem; }
.post-meta { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.prose { font-size: 1.02rem; }
.prose h2 { margin-top: 1.7em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose img { border-radius: var(--radius); margin: 1.4em 0; }

/* footer */
.site-footer { background: var(--bg-deep); color: #9fb3c2; padding: clamp(42px, 5vw, 64px) 0 0; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 34px; }
.site-footer h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .11em; margin-bottom: 16px; }
.site-footer a { color: #b9cad7; }
.site-footer a:hover { color: var(--accent); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: #7f96a6; }
.footer-about { max-width: 34ch; line-height: 1.6; }
.footer-bottom {
  margin-top: 40px; border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 20px 0 26px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  font-size: .82rem; color: #7f96a6;
}
.footer-bottom a { color: #7f96a6; }

/* misc */
.skip-link {
  position: absolute; top: 0; inset-inline-start: 0; transform: translateY(-150%);
  background: #fff; color: var(--primary); padding: 10px 16px; z-index: 100;
  border-radius: 0 0 8px 0; font-weight: 650;
}
.skip-link:focus { transform: none; }
.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; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.text-center { text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 560px; }
  .product-head { grid-template-columns: 1fr; }
  .product-media { position: static; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cta-band { grid-template-columns: 1fr; }
}

/* seven nav items need the hamburger earlier than the rest of the layout does */
@media (max-width: 980px) {
  .nav, .header-actions .btn-dark { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-inner { justify-content: space-between; }
  .site-header.nav-open .nav {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; inset-inline: 0; top: 70px; background: #fff;
    border-bottom: 1px solid var(--line); padding: 10px 16px 18px; gap: 2px;
    box-shadow: var(--shadow);
  }
  .site-header.nav-open .nav a { padding: 11px 10px; font-size: .98rem; }
  .site-header.nav-open .nav-item { display: block; }
  .site-header.nav-open .nav-item.has-sub::after { display: none; }
  .site-header.nav-open .nav-sub {
    position: static; display: block; min-width: 0;
    padding: 0 0 6px; border: 0; background: transparent; box-shadow: none;
  }
  .site-header.nav-open .nav-sub a { padding: 9px 10px; padding-inline-start: 24px; font-size: .93rem; }
  .site-header.nav-open .nav-sub-head { padding-inline-start: 24px; margin-top: 4px; }
  .site-header.nav-open .nav-caret { display: none; }
}

@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .spec-list li { grid-template-columns: 1fr; gap: 2px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .stats { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .cta-band { padding: 26px 20px; }
  .btn { width: 100%; }
  .btn-row .btn { width: auto; }
}

/* ---------- RTL (Arabic) ---------- */
[dir="rtl"] body { letter-spacing: 0; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { letter-spacing: 0; }
[dir="rtl"] .checklist li::after { transform: rotate(45deg); }
[dir="rtl"] .faq summary { padding: 16px 0 16px 34px; }
[dir="rtl"] .faq .faq-body { padding: 0 0 18px 12px; }
[dir="rtl"] .step { padding-inline-start: 58px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
