/* Mazaya – one stylesheet for Arabic (RTL, default) and English (LTR).
   Logical properties only (inline-start / inline-end), so both directions work from the same rules.
   No external fonts: system Arabic fonts on every platform (load time, privacy). */
:root {
  --bg: #f3f7f7;
  --surface: #ffffff;
  --soft: #e7f0f0;
  --ink: #0e2426;
  --muted: #47605f;
  --line: #d0e0df;
  --deep: #0b3034;          /* hero, closing band */
  --deep-ink: #e9f5f4;
  --deep-muted: #a7c7c4;
  --deep-eyebrow: #7fdacb;
  --accent: #0a6f86;        /* call button, links */
  --accent-ink: #ffffff;
  --wa: #128c4a;
  --wa-ink: #ffffff;
  --gold: #b7791f;
  --warn-bg: #fff5da;
  --warn-line: #e3b341;
  --tel-shadow: rgba(10, 111, 134, .35);
  --wa-shadow: rgba(18, 140, 74, .35);
  --font-ar: "SF Arabic", "Segoe UI", "Geeza Pro", "Noto Sans Arabic", "Noto Naskh Arabic", Tahoma, system-ui, sans-serif;
  --font-en: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display-en: "Avenir Next", "Segoe UI Variable Display", "Helvetica Neue", Arial, sans-serif;
  --font-body: var(--font-en);
  --font-display: var(--font-display-en);
  --r: 12px;
}
:root:lang(ar) { --font-body: var(--font-ar); --font-display: var(--font-ar); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #081719; --surface: #0e2124; --soft: #0b1c1f; --ink: #e2f0ef; --muted: #9dbab7;
    --line: #1f3a3d; --deep: #051113; --deep-ink: #e2f0ef; --deep-muted: #8fb0ad; --deep-eyebrow: #6fd6c6;
    --accent: #4fc3dc; --accent-ink: #03191e; --wa: #34c27a; --wa-ink: #03190d; --gold: #e0a64a;
    --warn-bg: #2b2410; --warn-line: #8a6d1c; --tel-shadow: rgba(0,0,0,.4); --wa-shadow: rgba(0,0,0,.4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #081719; --surface: #0e2124; --soft: #0b1c1f; --ink: #e2f0ef; --muted: #9dbab7;
  --line: #1f3a3d; --deep: #051113; --deep-ink: #e2f0ef; --deep-muted: #8fb0ad; --deep-eyebrow: #6fd6c6;
  --accent: #4fc3dc; --accent-ink: #03191e; --wa: #34c27a; --wa-ink: #03190d; --gold: #e0a64a;
  --warn-bg: #2b2410; --warn-line: #8a6d1c; --tel-shadow: rgba(0,0,0,.4); --wa-shadow: rgba(0,0,0,.4);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.65 var(--font-body);
  padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
}
:lang(ar) body, body:lang(ar) { font-size: 17px; line-height: 1.8; }
@media (min-width: 900px) { body { padding-bottom: 0; } }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.5vw, 3rem); letter-spacing: -0.02em; font-weight: 800; }
h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.95rem); letter-spacing: -0.01em; font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { letter-spacing: 0; line-height: 1.4; }
.measure { max-width: 66ch; }
.wrap {
  max-width: 1120px; margin: 0 auto;
  padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px));
}
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 50; }
.skip:focus { inset-inline-start: 8px; }
.eyebrow { margin: 0 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
:lang(ar) .eyebrow { letter-spacing: 0; font-size: .9rem; text-transform: none; }
.num { font-variant-numeric: tabular-nums; }
.ltr { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }

/* Head */
.topbar { background: var(--deep); color: var(--deep-muted); font-size: .84rem; }
.topbar-in { display: flex; flex-wrap: wrap; gap: 4px 20px; justify-content: space-between; align-items: center; padding-block: 7px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3fcf8e; margin-inline-end: 8px; vertical-align: 1px; }
.lang-switch { color: var(--deep-ink); font-weight: 700; text-decoration: none; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 1px 12px; }
.lang-switch:hover { border-color: var(--deep-eyebrow); }
.header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 16px; padding-block: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; margin-inline-end: auto; }
.brand-logo { display: block; width: 52px; height: 52px; border-radius: 12px; object-fit: contain; background: #fff; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; line-height: 1.15; display: flex; flex-direction: column; }
.brand-name small { font-family: var(--font-body); font-weight: 500; font-size: .74rem; color: var(--muted); }
.nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--accent); }
@media (max-width: 720px) { .nav { order: 3; width: 100%; gap: 6px 16px; } }
.header-cta { display: flex; gap: 8px; align-items: center; }
@media (max-width: 720px) { .header .header-cta { display: none; } }

.crumbs { background: var(--surface); border-bottom: 1px solid var(--line); font-size: .86rem; }
.crumbs ol { list-style: none; margin: 0; padding: 8px 0; display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs li + li::before { content: "/"; margin-inline: 4px 8px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 54px; padding-block: 8px; padding-inline: 16px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; text-align: start;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
.btn svg { flex: none; }
.btn-txt { display: flex; flex-direction: column; line-height: 1.2; }
.btn-label { font-weight: 800; font-size: 1rem; }
.btn-num { font-weight: 600; font-size: .82rem; opacity: .92; font-variant-numeric: tabular-nums; }
.btn-call { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 20px -8px var(--tel-shadow); }
.btn-wa { background: var(--wa); color: var(--wa-ink); box-shadow: 0 8px 20px -8px var(--wa-shadow); }
.btn-call:hover, .btn-wa:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-sm { min-height: 42px; padding-inline: 12px 16px; gap: 8px; font-size: .92rem; box-shadow: none; }
.btn-icon { width: 42px; padding: 0; justify-content: center; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
[dir="rtl"] .icon-flip { transform: scaleX(-1); }

/* Hero */
.hero { background: var(--deep); color: var(--deep-ink); padding-block: 44px 50px; }
.hero-slim { padding-block: 36px; }
.hero .eyebrow { color: var(--deep-eyebrow); }
.hero-grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.hero h1 { max-width: 24ch; }
.lead { margin: 0; font-size: 1.08rem; color: var(--deep-muted); max-width: 62ch; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; background: rgba(255,255,255,.12); border-radius: var(--r); overflow: hidden; }
.facts > div { background: var(--deep); padding: 14px 18px; }
.facts dt { font-size: .78rem; color: var(--deep-muted); }
.facts dd { margin: 4px 0 0; font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.facts dd small { font-size: .85rem; color: var(--deep-muted); font-weight: 600; }
.facts .dd-text { font-family: var(--font-body); font-size: 1rem; font-weight: 600; }
.facts-wide { grid-column: 1 / -1; }
.hero-photo { margin: 0; }
.hero-photo img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .hero .actions .btn, .cta .actions .btn { flex: 1 1 100%; } }

/* Bands */
.band { padding-block: 52px; }
.band-soft { background: var(--soft); }
.band > .wrap { display: flex; flex-direction: column; gap: 16px; }
.band > .wrap.two { display: grid; }
.band p { margin: 0; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
.two-center { align-items: center; }
.two > div { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }
.source { font-size: .84rem; color: var(--muted); }
.muted { color: var(--muted); }
.plain { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 8px; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.checks li { position: relative; padding-inline-start: 28px; }
.checks li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 0; font-weight: 800; color: var(--accent); }

/* Tables */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.tbl { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tbl caption { text-align: start; padding: 14px 16px 6px; font-weight: 800; font-family: var(--font-display); }
.tbl th, .tbl td { padding: 10px 16px; text-align: start; border-top: 1px solid var(--line); vertical-align: top; }
.tbl thead th { font-size: .8rem; color: var(--muted); border-top: 0; }
.tbl td.num, .tbl th.num { text-align: end; white-space: nowrap; font-weight: 800; }
.code { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--accent); }

/* Cards */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.service { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.service p { color: var(--muted); }
.service-img { display: block; width: calc(100% + 40px); max-width: none; margin: -20px -20px 4px; aspect-ratio: 16 / 9; object-fit: cover; background: var(--soft); }
.service .price { font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.service a { margin-top: auto; font-weight: 700; }
.types { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.type, .note, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.type ul, .note ul { margin: 0; padding-inline-start: 18px; display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.note p { color: var(--muted); }
.note-info { border-inline-start: 4px solid var(--accent); }
.photo { margin: 0; min-width: 0; }
.photo img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); background: var(--soft); }

/* Areas */
.districts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.district { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); }
.district:hover { border-color: var(--accent); }
.district-name { font-family: var(--font-display); font-weight: 800; font-size: 1.08rem; }
.district-meta { font-size: .86rem; color: var(--muted); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips a, .chips span { display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .93rem; }
.chips a:hover { border-color: var(--accent); color: var(--accent); }
.chips .chip-all { background: var(--deep); color: var(--deep-ink); border-color: var(--deep); }
.group-h { margin: 22px 0 8px; font-size: 1.15rem; }
.group-h a { color: inherit; }

/* Process */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: s; }
.process li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.process li::before { content: counter(s); font: 800 1.6rem var(--font-display); color: var(--accent); }
.process span { color: var(--muted); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 840px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 700; }
.faq details p { padding: 0 18px 16px; color: var(--muted); }

/* Key-value */
.kv { margin: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; max-width: 840px; }
.kv > div { display: grid; grid-template-columns: minmax(130px, 210px) minmax(0, 1fr); gap: 16px; background: var(--surface); padding: 12px 16px; }
.kv dt { font-weight: 700; } .kv dd { margin: 0; }
@media (max-width: 560px) { .kv > div { grid-template-columns: 1fr; gap: 2px; } }
.legal { max-width: 840px; }
.legal h2 { font-size: 1.2rem; margin-top: 12px; }
.legal p { max-width: 74ch; }

/* Closing band and footer */
.cta { background: var(--deep); color: var(--deep-ink); padding-block: 40px; }
.cta-in { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.cta p { margin: 6px 0 0; color: var(--deep-muted); }
.footer { padding-block: 40px; font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.footer-grid > * { min-width: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { font: 800 1.1rem var(--font-display); color: var(--ink); margin: 0 0 6px; }
.footer-op { margin: 0; line-height: 1.9; }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-h { margin: 0; font-weight: 700; color: var(--ink); }
.footer-note { margin: 24px 0 0; font-size: .82rem; }

/* Fixed bar on phones */
.callbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 20; background: var(--surface); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; box-shadow: 0 -6px 20px -10px rgba(0,0,0,.25);
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.callbar-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 8px 12px; border-radius: 14px; text-decoration: none; }
.callbar-btn span { display: flex; flex-direction: column; line-height: 1.2; text-align: start; }
.callbar-btn strong { font-size: 1rem; }
.callbar-btn small { font-size: .8rem; opacity: .92; }
.callbar-tel { background: var(--accent); color: var(--accent-ink); }
.callbar-wa { background: var(--wa); color: var(--wa-ink); }
@media (min-width: 900px) { .callbar { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .btn-call:hover, .btn-wa:hover { transform: none; } }
