/* Layout: white classic page, navy for structure, gold kept to small accents. Engineering tables where the content is a list of facts. Single light theme by choice. */
:root {
  --navy: #1B3A5C;
  --navy-deep: #12263D;
  --gold: #A9823F;
  --gold-soft: #D9C089;
  --gold-text: #866732; /* same hue as --gold, deepened to pass WCAG AA (5.2:1 on white) for small text */
  --ink: #1F2A36;
  --muted: #56636F;
  --line: #E1E6EC;
  --paper: #FFFFFF;
  --mist: #F4F6F9;
  --ok: #2E7D5B;
  --warn: #B4542F;

  --f-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --f-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --f-data: "IBM Plex Mono", Consolas, "Courier New", monospace;
  --wrap: 1180px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.65; text-rendering: optimizeLegibility; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--f-display); color: var(--navy); font-weight: 600; line-height: 1.12; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.3rem, 4.8vw, 3.5rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.4rem; }
p { margin: 0; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 64ch; }
.section { padding-block: 84px; }
.section.alt { background: var(--mist); }
.sec-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 780px; }
.note { font-size: .88rem; color: var(--muted); margin-top: 18px; max-width: 80ch; }

.btn { display: inline-flex; align-items: center; gap: 10px; justify-content: center; font-family: var(--f-body); font-weight: 600; font-size: 1rem; text-decoration: none; padding: 13px 24px; border-radius: 3px; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s; min-height: 48px; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); }
.btn-gold { background: var(--gold-text); color: #fff; }
.btn-gold:hover { background: #6F562A; }
.btn-line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-line:hover { background: var(--navy); color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Top bar */
.topbar { background: var(--navy-deep); color: #D6DEE8; font-size: .9rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; padding-block: 9px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--gold-soft); }
.topbar .group { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
.topbar svg { width: 15px; height: 15px; vertical-align: -2px; margin-inline-end: 6px; fill: var(--gold-soft); }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 12px; position: relative; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 46px; }
.brand-name { display: grid; line-height: 1.05; }
.brand-name strong { font-family: var(--f-display); font-size: 1.6rem; color: var(--navy); font-weight: 700; }
.brand-name span { font-size: .64rem; letter-spacing: .26em; font-weight: 700; color: var(--navy); text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .98rem; }
.nav a:hover { color: var(--gold-text); }
.nav .btn { padding: 10px 18px; font-size: .95rem; color: #fff; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 3px; padding: 8px 10px; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; display: block; stroke: var(--navy); }
@media (max-width: 1040px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px max(20px, env(safe-area-inset-right, 0px)) 18px max(20px, env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .nav a { padding: 11px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; border-bottom: 0; }
}

/* Hero */
.hero { padding-block: 76px 64px; border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; gap: 48px; }
.hero-copy { display: grid; gap: 20px; max-width: 860px; min-width: 0; }
.hero-copy .actions { margin-top: 6px; }
.hero-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 32px; margin: 0; }
@media (max-width: 1000px) { .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hero-facts div { display: grid; gap: 4px; padding-top: 16px; border-top: 2px solid var(--gold); align-content: start; }
.hero-facts dt { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero-facts dd { margin: 0; color: var(--navy); font-weight: 600; font-size: 1.05rem; }
@media (max-width: 760px) { .hero-facts { grid-template-columns: minmax(0, 1fr); gap: 20px; } }

/* Situations */
.situations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.situation { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 28px; display: grid; gap: 12px; grid-template-rows: auto auto 1fr auto; }
.situation .who { font-size: .78rem; font-weight: 700; color: var(--gold-text); letter-spacing: .1em; text-transform: uppercase; }
.situation p { color: var(--muted); }
.situation a { font-weight: 600; text-decoration: none; }
.situation a:hover { color: var(--gold-text); }
@media (max-width: 900px) { .situations { grid-template-columns: minmax(0, 1fr); } }

/* Tables */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
table.spec { width: 100%; border-collapse: collapse; min-width: 640px; }
.spec th { text-align: start; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 14px 20px; background: var(--mist); border-bottom: 1px solid var(--line); }
.spec td { padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .97rem; }
.spec tr:last-child td { border-bottom: 0; }
.spec td:first-child { font-family: var(--f-display); font-size: 1.22rem; font-weight: 600; color: var(--navy); white-space: nowrap; }
.spec td.proto { font-family: var(--f-data); font-size: .82rem; color: var(--gold-text); white-space: nowrap; }
.spec td.mute { color: var(--muted); }

/* Alarm section */
.notify-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.channels { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.channel { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 18px; display: grid; gap: 6px; align-content: start; }
.channel b { color: var(--navy); font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.channel b svg { width: 20px; height: 20px; fill: var(--gold); flex: none; }
.channel span { font-size: .94rem; color: var(--muted); }
.channel.wide { grid-column: 1 / -1; }
.flow { list-style: none; margin: 0; padding: 0; counter-reset: f; border-top: 1px solid var(--line); }
.flow li { counter-increment: f; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.flow li::before { content: counter(f); width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-text); display: grid; place-items: center; font-family: var(--f-data); font-size: .85rem; }
.flow strong { color: var(--navy); display: block; }
.flow span { font-size: .94rem; color: var(--muted); }
.sample-msg { margin-top: 24px; background: var(--mist); border: 1px solid var(--line); border-inline-start: 3px solid var(--gold); padding: 16px 18px; font-family: var(--f-data); font-size: .82rem; color: var(--ink); line-height: 1.7; overflow-x: auto; white-space: nowrap; }
.sample-msg .cap { display: block; color: var(--gold-text); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
@media (max-width: 900px) { .notify-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
@media (max-width: 520px) { .channels { grid-template-columns: 1fr; } }

/* Case study */
.case { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: start; }
.case-copy { display: grid; gap: 16px; }
.case-copy p { color: var(--muted); }
.case-copy ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; }
.case-figs { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 8px 28px; display: grid; }
.case-figs div { display: grid; gap: 2px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.case-figs div:last-child { border-bottom: 0; }
.case-figs b { font-family: var(--f-display); font-size: 2.4rem; color: var(--navy); line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; }
.case-figs span { font-size: .92rem; color: var(--muted); }
@media (max-width: 900px) { .case { grid-template-columns: 1fr; gap: 32px; } }

.clients { margin-top: 56px; display: grid; gap: 18px; }
.clients h3 { font-size: 1.5rem; }
.client-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 20px; border-top: 1px solid var(--line); }
.client-list li { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.client-list b { font-family: var(--f-display); font-size: 1.25rem; color: var(--navy); font-weight: 600; }
.client-list span { font-size: .85rem; color: var(--muted); }
@media (max-width: 900px) { .client-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .client-list { grid-template-columns: 1fr; } }

/* Scope */
.scope { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.scope > div { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 28px; display: grid; gap: 14px; align-content: start; }
.scope ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
.scope li { padding-block: 10px; padding-inline: 28px 0; border-bottom: 1px solid var(--line); position: relative; }
.scope li:last-child { border-bottom: 0; }
.scope .inc li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 17px; width: 10px; height: 5px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.scope .exc li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 20px; width: 11px; height: 2px; background: var(--muted); }
@media (max-width: 800px) { .scope { grid-template-columns: 1fr; } }

/* Partners */
.partners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: 32px; }
.partner { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: 4px; padding: 28px 24px; display: flex; flex-direction: column; gap: 6px; }
.partner b { font-family: var(--f-display); font-size: 1.9rem; font-weight: 600; color: var(--navy); line-height: 1.1; }
.partner > span { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); }
.brands { list-style: none; margin: 14px 0 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.brands li { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.brands li:last-child { border-bottom: 0; padding-bottom: 0; }
.brands b { direction: ltr; unicode-bidi: isolate; font-size: 1rem; color: var(--navy); }
html[lang="ar"] .brands b { text-align: right; }
.brands span { font-size: .9rem; color: var(--muted); letter-spacing: 0 !important; text-transform: none !important; font-weight: 400 !important; }
.third-party { display: grid; gap: 6px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.third-party b { color: var(--navy); font-size: 1.1rem; }
.third-party .protos { font-family: var(--f-data); font-size: .85rem; color: var(--gold-text); }
.third-party p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .partners { grid-template-columns: minmax(0, 1fr); } .partners { gap: 14px; } }

/* FAQ */
.faq { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 32px; }
.qa { display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 2px solid var(--gold); }
.qa h3 { font-family: var(--f-body); font-size: 1.1rem; font-weight: 700; line-height: 1.35; color: var(--navy); }
.qa p { color: var(--muted); font-size: .97rem; }
@media (max-width: 960px) { .faq { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .faq { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* Contact */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.ci { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ci .ico { width: 44px; height: 44px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; }
.ci .ico svg { width: 20px; height: 20px; fill: #fff; }
.ci small { display: block; color: var(--muted); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.ci .val { color: var(--ink); font-size: 1.04rem; word-break: break-word; }
.ci .val a { text-decoration: none; color: var(--navy); font-weight: 600; }
.ci .val a:hover { color: var(--gold-text); }
.copy { margin-inline-start: 8px; font-size: .78rem; background: none; border: 1px solid var(--line); border-radius: 2px; padding: 4px 10px; min-height: 32px; color: var(--muted); cursor: pointer; font-family: var(--f-body); }
.copy:hover { border-color: var(--gold-text); color: var(--navy); }
.form { background: var(--mist); border: 1px solid var(--line); border-radius: 4px; padding: 32px; display: grid; gap: 16px; }
.form h3 { font-size: 1.55rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: .88rem; font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; font-size: .98rem; color: var(--ink); background: #fff; border: 1px solid #CBD3DD; border-radius: 3px; padding: 11px 12px; width: 100%; }
.field textarea { min-height: 110px; resize: vertical; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form-note { font-size: .86rem; color: var(--muted); }
.form-msg { font-size: .92rem; color: var(--ok); }
.form-msg.err { color: var(--warn); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } .form { padding: 22px; } }

/* Footer */
.footer { background: var(--navy-deep); color: #A9B7C7; font-size: .93rem; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-block: 56px 30px; }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: #C9D3DF; text-decoration: none; }
.footer a:hover { color: var(--gold-soft); }
.fbrand { display: grid; gap: 14px; align-content: start; }
.fbrand .logo-box { background: #fff; border-radius: 4px; padding: 10px; width: 80px; }
.fbrand strong { font-family: var(--f-display); color: #fff; font-size: 1.45rem; font-weight: 600; }
.footer-base { border-top: 1px solid rgba(255,255,255,.08); }
.footer-base .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-block: 18px; font-size: .84rem; }
@media (max-width: 900px) { .footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer .cols { grid-template-columns: 1fr; } }

/* Floating contact */
.float { position: fixed; z-index: 70; display: grid; gap: 10px; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
.float a { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 8px 20px -6px rgba(18,38,61,.45); transition: transform .15s; }
.float a:hover { transform: translateY(-2px); }
.float a svg { width: 23px; height: 23px; fill: #fff; }
.float .wa { background: #1F9D57; }
.float .call { background: var(--navy); }
@media (max-width: 640px) { .topbar .group:last-child, .topbar .group a + a { display: none; } .float a { width: 46px; height: 46px; } }

/* Language switch */
.lang { font-weight: 600; text-decoration: none; color: var(--navy); border: 1px solid var(--line); border-radius: 3px; padding: 6px 12px; font-size: .92rem; }
.lang:hover { border-color: var(--gold-text); color: var(--gold-text); }
@media (max-width: 1040px) { .nav .lang { border: 0; padding: 11px 0; border-bottom: 1px solid var(--line); border-radius: 0; } }

/* Quotation form states */
.form .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.form .req { color: var(--warn); }
.form button[disabled] { opacity: .6; cursor: wait; }
.form-alt { font-size: .9rem; color: var(--muted); }
.form-alt a { font-weight: 600; text-decoration: none; }

/* Arabic */
html[lang="ar"] {
  --f-display: "Amiri", "Traditional Arabic", "Times New Roman", serif;
  --f-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
}
html[lang="ar"] body { font-size: 18px; line-height: 1.85; }
html[lang="ar"] .lead { font-size: 1.12rem; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.35; font-weight: 700; }
html[lang="ar"] .eyebrow, html[lang="ar"] .situation .who, html[lang="ar"] .spec th, html[lang="ar"] .hero-facts dt,
html[lang="ar"] .partner span, html[lang="ar"] .ci small, html[lang="ar"] .footer h4, html[lang="ar"] .brand-name span { letter-spacing: 0; }
html[lang="ar"] .spec td:first-child { font-size: 1.15rem; }
html[lang="ar"] .points, html[lang="ar"] .proto, html[lang="ar"] .sample-msg, html[lang="ar"] .ltr { direction: ltr; unicode-bidi: isolate; }
html[lang="ar"] .sample-msg { text-align: left; }
html[lang="ar"] .float { right: auto; left: calc(18px + env(safe-area-inset-left, 0px)); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* Service pages */
.svc-hero { padding-block: 40px 56px; }
.svc-hero .hero-copy { max-width: 820px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: var(--muted); margin-bottom: 26px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold-text); }
.svc-body { display: grid; gap: 48px; max-width: 900px; }
.svc-block { display: grid; gap: 16px; }
.svc-block h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.svc-block p { color: var(--muted); max-width: 72ch; }
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--line); }
.svc-list li { padding-block: 12px; padding-inline: 26px 0; border-bottom: 1px solid var(--line); position: relative; }
.svc-list li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 19px; width: 10px; height: 5px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.svc-steps { list-style: none; margin: 0; padding: 0; counter-reset: st; display: grid; gap: 0; border-top: 1px solid var(--line); }
.svc-steps li { counter-increment: st; display: grid; grid-template-columns: 44px 1fr; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.svc-steps li::before { content: counter(st); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-text); display: grid; place-items: center; font-family: var(--f-data); font-size: .85rem; }
.svc-steps strong { color: var(--navy); }
.svc-steps span { color: var(--muted); font-size: .97rem; }
.svc-end { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.svc-cta { display: grid; gap: 16px; }
.svc-related { background: var(--mist); border: 1px solid var(--line); border-radius: 4px; padding: 24px; display: grid; gap: 12px; }
.svc-related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.svc-related li { border-bottom: 1px solid var(--line); }
.svc-related li:last-child { border-bottom: 0; }
.svc-related a { display: block; padding: 10px 0; text-decoration: none; font-weight: 600; }
.svc-related a:hover { color: var(--gold-text); }
.svc-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.svc-links a { display: grid; gap: 4px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--gold); border-radius: 4px; text-decoration: none; color: var(--navy); font-weight: 700; }
.svc-links a span { font-weight: 400; color: var(--muted); font-size: .9rem; }
.svc-links a:hover { border-color: var(--gold-text); }
@media (max-width: 900px) { .svc-end { grid-template-columns: minmax(0, 1fr); } .svc-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .svc-list, .svc-links { grid-template-columns: minmax(0, 1fr); } }

/* How a BMS works */
.bms-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: bf; }
.bms-flow li { counter-increment: bf; position: relative; background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 20px; display: grid; gap: 8px; align-content: start; }
.bms-flow li::before { content: counter(bf); width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--f-data); font-size: .85rem; }
.bms-flow li + li::after { content: ""; position: absolute; top: 34px; inset-inline-start: -24px; width: 20px; height: 2px; background: var(--gold); }
.bms-flow strong { color: var(--navy); font-size: 1.05rem; }
.bms-flow span { color: var(--muted); font-size: .95rem; }
.how-gains { margin-top: 36px; }
@media (max-width: 900px) { .bms-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bms-flow li + li::after { display: none; } }
@media (max-width: 520px) { .bms-flow { grid-template-columns: minmax(0, 1fr); } }

/* Sectors */
.sectors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; }
.sector-card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 6px; padding: 30px 28px 32px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 1px 2px rgba(18,38,61,.04), 0 8px 24px rgba(18,38,61,.05); }
.sector-card .sec-tag { align-self: flex-start; font-size: .78rem; font-weight: 700; color: var(--gold-text); background: rgba(176,138,72,.10); padding: 5px 12px; border-radius: 999px; letter-spacing: .02em; margin-bottom: 8px; }
.sector-card h3 { font-size: 1.6rem; }
.sector-card .sec-where { font-size: .88rem; color: var(--muted); padding-bottom: 16px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.sector-card p { color: var(--ink, #2A3440); font-size: .97rem; line-height: 1.8; margin: 0; }
@media (max-width: 900px) { .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (max-width: 560px) { .sectors { grid-template-columns: minmax(0, 1fr); gap: 20px; } }

/* Free offer line and 2x2 cards */
.offer { display: inline-flex; align-items: center; gap: 8px; align-self: start; justify-self: start; background: var(--mist); border: 1px solid var(--gold-soft); border-radius: 3px; padding: 8px 14px; color: var(--navy); font-weight: 700; font-size: .98rem; }
.offer svg { width: 16px; height: 16px; fill: var(--gold); flex: none; }
.faq.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 600px) { .faq.two { grid-template-columns: minmax(0, 1fr); } }

/* BMS cycle terms and equipment column */
.bms-flow li { grid-template-rows: auto auto 1fr auto; }
.bms-flow strong { font-family: var(--f-display); font-size: 1.45rem; font-weight: 700; }
.term { display: block; font-style: normal; font-family: var(--f-data); font-size: .76rem; color: var(--gold-text); padding-top: 10px; border-top: 1px solid var(--line); direction: ltr; text-align: left; }
html[lang="ar"] .term { text-align: right; }
.spec td.eq { direction: ltr; unicode-bidi: isolate; }
html[lang="ar"] .spec td.eq { text-align: right; }
html[lang="ar"] .spec td.proto { text-align: right; }

/* Building systems grid */
.sys-head { margin: 56px 0 22px; display: grid; gap: 8px; max-width: 780px; }
.sys-head h3 { font-size: 1.6rem; }
.sys-head p { margin: 0; color: var(--muted); }
.sys-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.sys { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.sys h3 { font-size: 1.25rem; }
.sys p { margin: 0; color: var(--muted); font-size: .95rem; flex: 1; }
.svc-block .sys-grid { margin-top: 18px; }
.svc-block .table-wrap { margin-top: 18px; }
@media (max-width: 900px) { .sys-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sys-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; } }

/* Keyboard access to scrollable areas */
.table-wrap:focus-visible, .sample-msg:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
