/* Noto Sans Arabic — self-hosted, SIL OFL 1.1 (see assets/OFL-NotoSansArabic.txt). */
@font-face {
  font-family: 'Noto Sans Arabic';
  src: url('/assets/NotoSansArabic-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Sans Arabic';
  src: url('/assets/NotoSansArabic-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
[dir=rtl] body { font-family: 'Noto Sans Arabic', 'Noto Naskh Arabic', Tahoma, sans-serif; }

:root {
  --paper: #f8f5ef;
  --surface: #fffdf9;
  --ink: #242a27;
  --muted: #596159;
  --line: #dcd8cf;
  --green: #344a40;
  --green-strong: #24382e;
  --sand: #a9834f;
  --s1: 4px;
  --s2: 8px;
  --s3: 14px;
  --s4: 22px;
  --s5: 34px;
  --s6: 54px;
  --s7: 84px;
  --step--1: 13px;
  --step0: 16px;
  --step1: 18px;
  --step2: 21px;
  --step3: clamp(24px, 3.2vw, 32px);
  --step4: clamp(30px, 4.4vw, 44px);
  --step5: clamp(36px, 5.6vw, 60px);
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: var(--step0)/1.62 system-ui, -apple-system, "Segoe UI", Tahoma, "Noto Sans Arabic", sans-serif;
}
a { color: inherit; text-underline-offset: 4px; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--sand); outline-offset: 3px; }
.skip {
  position: absolute; inset-inline-start: var(--s3); top: -80px; z-index: 5;
  background: var(--surface); padding: var(--s3); border-radius: var(--radius);
}
.skip:focus { top: var(--s2); }
.wrap { width: min(1100px, calc(100% - 40px)); margin-inline: auto; }

header { border-bottom: 1px solid var(--line); }
nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding-block: var(--s3); }
.brand img { width: 172px; height: auto; mix-blend-mode: multiply; }
.navlinks { display: flex; align-items: center; gap: var(--s4); font-size: var(--step--1); }
.navlinks a { text-decoration: none; }
.navlinks a:hover { text-decoration: underline; }
.lang {
  border: 1px solid var(--line); background: transparent; border-radius: var(--radius);
  padding: 9px 12px; min-height: 40px; cursor: pointer; text-decoration: none;
}

.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--s5); align-items: center; padding-block: var(--s6) var(--s5); }
.eyebrow { margin: 0 0 var(--s2); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
h1 { margin: 0 0 var(--s3); font-size: var(--step5); line-height: 1.04; letter-spacing: -.04em; font-weight: 680; text-wrap: balance; }
.lede { max-width: 52ch; color: var(--muted); font-size: var(--step1); margin: 0 0 var(--s4); }
.actions { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 13px 22px; border: 1px solid var(--green); border-radius: var(--radius);
  background: var(--green); color: #fff; font-weight: 650; text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--green-strong); }
.button.secondary { background: transparent; color: var(--green); }
.button.secondary:hover { background: rgba(52, 74, 64, .08); }
.button:disabled { opacity: .55; cursor: not-allowed; }
.text-link { font-size: var(--step--1); }
.meta { margin: var(--s3) 0 0; font-size: var(--step--1); color: var(--muted); }
figure { margin: 0; }
figure img { display: block; width: 100%; aspect-ratio: 1.24; object-fit: cover; border-radius: var(--radius); }
figcaption { margin-top: var(--s2); font-size: 12px; color: var(--muted); }

.strip { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); padding-block: var(--s4); gap: var(--s3); }
.strip div + div { border-inline-start: 1px solid var(--line); padding-inline-start: var(--s4); }
.strip strong { display: block; font-size: var(--step2); font-weight: 650; }
.strip span { font-size: var(--step--1); color: var(--muted); }
.hours { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }

section { padding-block: var(--s6); border-bottom: 1px solid var(--line); }
h2 { margin: 0 0 var(--s3); font-size: var(--step4); line-height: 1.12; letter-spacing: -.03em; text-wrap: balance; }
.section-lead { max-width: 62ch; color: var(--muted); margin: 0 0 var(--s5); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 var(--s5); }
.feature { display: grid; grid-template-columns: 28px 1fr; gap: var(--s3); padding-block: var(--s4); border-top: 1px solid var(--line); }
.feature strong { display: block; font-size: var(--step1); }
.feature p { margin: var(--s1) 0 0; font-size: var(--step--1); color: var(--muted); line-height: 1.65; }
.icon { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; color: var(--green); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); counter-reset: step; }
.steps li { border-top: 2px solid var(--green); padding-top: var(--s3); }
.steps strong { display: block; margin-bottom: var(--s1); }
.steps p { margin: 0; font-size: var(--step--1); color: var(--muted); }

details { border-top: 1px solid var(--line); padding-block: var(--s3); }
summary { font-weight: 650; cursor: pointer; }
details p { margin: var(--s2) 0 0; color: var(--muted); max-width: 68ch; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5); }
.poll { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); margin-top: var(--s4); }
.choice {
  min-height: 56px; padding: var(--s3); border: 1.5px solid var(--green); border-radius: var(--radius);
  background: transparent; color: var(--green); font-weight: 650; cursor: pointer;
}
.choice:hover:not(:disabled) { background: rgba(52, 74, 64, .08); }
.choice[aria-pressed="true"] { background: var(--green); color: #fff; }
.choice.dismiss { grid-column: 1 / -1; min-height: 44px; border: 0; color: var(--muted); font-weight: 400; text-decoration: underline; }
.status { min-height: 1.5em; margin: var(--s3) 0 0; font-size: var(--step--1); font-weight: 600; }
.status[data-tone="error"] { color: #8c2f21; }

form { display: grid; gap: var(--s3); margin-top: var(--s4); }
.field { display: grid; gap: var(--s1); font-size: var(--step--1); font-weight: 600; }
input, select, textarea {
  width: 100%; padding: 12px; border: 1px solid #bdbdb2; border-radius: var(--radius);
  background: #fff; color: var(--ink); min-height: 44px;
}
input[type=checkbox] { width: 20px; height: 20px; min-height: 0; margin: 0; }
.check { display: flex; align-items: flex-start; gap: var(--s2); font-weight: 400; font-size: var(--step--1); line-height: 1.5; }
.check input { flex: none; margin-top: 2px; }
.formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.note { font-size: 12px; color: var(--muted); margin: 0; }
.reveal { margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--line); }
.recorded { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; font-weight: 600; }

footer { padding-block: var(--s5); font-size: var(--step--1); color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }
footer a { margin-inline-end: var(--s4); }

[dir=rtl] h1, [dir=rtl] h2 { letter-spacing: 0; line-height: 1.28; }
[dir=rtl] .eyebrow { letter-spacing: 0; }
[dir=rtl] .hours, [dir=rtl] input[type=email] { direction: ltr; text-align: start; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: var(--s4); padding-block: var(--s5) var(--s4); }
  .features { grid-template-columns: 1fr 1fr; gap: 0 var(--s4); }
  .steps { grid-template-columns: 1fr; gap: var(--s4); }
  .navlinks a:first-child { display: none; }
  .panel { padding: var(--s4) var(--s3); }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 28px); }
  h1 { font-size: clamp(32px, 9vw, 40px); }
  .brand img { width: 146px; }
  .features { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr; gap: var(--s3); }
  .strip div + div { border-inline-start: 0; border-top: 1px solid var(--line); padding-inline-start: 0; padding-top: var(--s3); }
  .poll { grid-template-columns: 1fr; }
  .formgrid { grid-template-columns: 1fr; }
  section { padding-block: var(--s5); }
  footer .wrap { display: block; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
