/* The White Majlis. One calm page: warm stone ground, deep green ink, a soft arch. */
:root {
  --ground: #ffffff;
  --ink: #12302b;
  --muted: #4e6560;
  --green: #1f5d50;
  --green-deep: #0f3d34;
  --card: #ffffff;
  --line: #e3e6e4;
  --wash: #e3efe9;
  --danger: #a1301f;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}
html[lang="ar"] body { font-family: "IBM Plex Sans Arabic", var(--sans); line-height: 1.8; }

a { color: var(--green); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--card); padding: 8px 12px; z-index: 5; }

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }

/* ---------- Header ---------- */
.site-head { padding-block: 22px; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { display: block; width: 24px; height: 30px; }
.brand-name { font-family: var(--serif); font-size: 21px; letter-spacing: 0.01em; }
html[lang="ar"] .brand-name { font-family: "IBM Plex Sans Arabic", var(--sans); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 18px; }
.lang-switch { color: var(--muted); text-decoration: none; font-size: 15px; }
.lang-switch:hover { color: var(--green); }

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-weight: 600;
  padding: 14px 28px;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--green-deep); }
.button:disabled { opacity: 0.6; cursor: default; }
.button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #7bb7a6; outline-offset: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(40px, 9vw, 110px) clamp(56px, 9vw, 120px); }
.arches { position: absolute; inset-block: 0; inset-inline-end: -8%; width: min(560px, 70%); display: flex; align-items: flex-end; gap: 18px; opacity: 0.35; pointer-events: none; }
.arches span { flex: 1; border: 2px solid var(--green); border-bottom: 0; border-radius: 999px 999px 0 0; }
.arches span:nth-child(1) { height: 52%; }
.arches span:nth-child(2) { height: 78%; }
.arches span:nth-child(3) { height: 100%; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.kicker { margin: 0 0 18px; color: var(--green); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 13px; }
html[lang="ar"] .kicker { letter-spacing: 0; text-transform: none; font-size: 16px; }
.h-huge { margin: 0 0 22px; font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 6vw, 68px); line-height: 1.08; letter-spacing: -0.01em; }
html[lang="ar"] .h-huge { font-family: "IBM Plex Sans Arabic", var(--sans); font-weight: 600; line-height: 1.35; letter-spacing: 0; }
.body-copy { margin: 0 0 16px; color: var(--muted); font-size: 19px; max-width: 34em; }

/* ---------- Form ---------- */
.form { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 4vw, 34px); display: grid; gap: 16px; box-shadow: 0 18px 50px rgba(18, 48, 43, 0.08); }
.form-title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 24px; }
html[lang="ar"] .form-title { font-family: "IBM Plex Sans Arabic", var(--sans); font-weight: 600; }
.field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.field input { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; padding: 12px 14px; }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field .error { margin: 6px 0 0; font-size: 14px; color: var(--danger); }
.field .error:empty { display: none; }
.trap { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-status { margin: 0; padding: 12px 14px; border-radius: 12px; font-size: 15px; }
.form-status:empty { display: none; }
.form-status[data-kind="ok"] { background: var(--wash); color: var(--green-deep); }
.form-status[data-kind="fail"] { background: #fbefed; color: var(--danger); }
.fine { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding-block: 26px 36px; color: var(--muted); font-size: 15px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--green); }

/* ---------- Text pages ---------- */
.text-page { padding-block: clamp(32px, 6vw, 72px); }
.text-page .wrap { max-width: 720px; }
.h-large { margin: 0 0 16px; font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 4.5vw, 44px); line-height: 1.15; }
html[lang="ar"] .h-large { font-family: "IBM Plex Sans Arabic", var(--sans); font-weight: 600; line-height: 1.4; }
.h-med { margin: 30px 0 8px; font-size: 20px; }
.text-page ul { color: var(--muted); padding-inline-start: 22px; }
.ltr-run { unicode-bidi: isolate; }

/* ---------- Small screens ---------- */
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .arches { width: 90%; inset-inline-end: -25%; opacity: 0.35; }
  .body-copy { font-size: 18px; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
