/* Dr. Abdullah Blbas: website design tokens (from the brand book v1.4) */
@font-face { font-family: "Jost"; src: url("fonts/Jost.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/Newsreader.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Kufi"; src: url("fonts/NotoKufiArabic.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
  --brand: #285DCD;
  --brand-deep: #1F4CB0;
  --navy: #14244B;
  --paper: #F9F1E6;
  --white: #FFFFFF;
  --ice: #E8EFFB;
  --sky: #A9C2F5;
  --line: #E4DCCF;
  --line-cool: #DDE3EE;
  --ink: #2C3650;
  --muted: #5B6478;
  --ok: #1F8A5B;
  --ok-bg: #E3F4EC;
  --warn: #A9670B;
  --warn-bg: #FBF0DC;
  --bad: #B23A3A;
  --bad-bg: #FBE7E7;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --kufi: "Kufi", "Jost", sans-serif;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; line-height: 1.55; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
.ku { font-family: var(--kufi); direction: rtl; }

.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.eyebrow { font: 500 13px/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--brand); }
.serif { font-family: var(--serif); font-variation-settings: "opsz" 72; }
.h2 { font: 600 clamp(34px, 4.2vw, 54px)/1.02 var(--serif); font-variation-settings: "opsz" 72; letter-spacing: -.012em; color: var(--brand); }
.lede { font-size: 19px; line-height: 1.6; color: var(--ink); }

.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; font: 500 16px/1 var(--sans); white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); }
.btn-ghost { border: 1.5px solid var(--brand); color: var(--brand); }
.btn-ghost:hover { background: var(--brand); color: #fff; }
.btn-white { background: #fff; color: var(--brand); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.ico { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.tag { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font: 500 12px/1 var(--sans); letter-spacing: .04em; }
.tag-sample { border: 1px dashed var(--muted); color: var(--muted); }
.tag-blue { background: var(--ice); color: var(--brand-deep); }
.tag-ok { background: var(--ok-bg); color: var(--ok); }
.tag-warn { background: var(--warn-bg); color: var(--warn); }
.tag-bad { background: var(--bad-bg); color: var(--bad); }
.todo { border: 1.5px dashed var(--sky); border-radius: 10px; padding: 12px 14px; font-size: 14px; color: var(--muted); }

/* ---------- prototype behaviour ---------- */
.nav { transition: box-shadow .2s, background .2s; }
.nav.scrolled { box-shadow: 0 10px 30px -18px rgba(20,36,75,.35); }
[hidden] { display: none !important; }

.drawer { position: fixed; inset: 0; z-index: 50; background: rgba(20,36,75,.45); opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer.open { opacity: 1; pointer-events: auto; }
.drawer-panel { position: absolute; top: 0; bottom: 0; right: 0; width: min(360px, 88vw); background: var(--paper); padding: 20px 22px 28px; display: flex; flex-direction: column; gap: 12px; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; }
[dir="rtl"] .drawer-panel { right: auto; left: 0; transform: translateX(-100%); }
.drawer.open .drawer-panel { transform: none; }
.drawer-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.drawer-top img { height: 40px; width: auto; }
.drawer-close { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--navy); }
.drawer nav { display: grid; }
.drawer nav li { list-style: none; }
.drawer nav a { display: block; padding: 13px 4px; font-size: 18px; font-weight: 500; color: var(--navy); border-bottom: 1px solid #EFE6D8; }
.drawer .btn { justify-content: center; }
.drawer-langs { display: flex; gap: 16px; justify-content: center; margin-top: 8px; color: var(--muted); font-size: 15px; }
.drawer-langs b { color: var(--navy); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 40; display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 16px; border-radius: 999px; background: #1FAF5A; color: #fff; font-weight: 500; font-size: 15px; box-shadow: 0 14px 30px -10px rgba(16,90,48,.55); transition: transform .15s; }
.wa-float:hover { transform: translateY(-2px); }
.wa-float svg { width: 26px; height: 26px; }
[dir="rtl"] .wa-float { right: auto; left: 22px; padding: 0 16px 0 22px; }
@media (max-width: 640px) { .wa-float span { display: none; } .wa-float { padding: 0; width: 56px; justify-content: center; right: 16px; bottom: 16px; } [dir="rtl"] .wa-float { left: 16px; padding: 0; } }

.faq > div b .ico { transition: transform .2s; flex: none; }
.faq > div:not(.closed) b .ico { transform: rotate(45deg); }
.faq > div.closed p { display: none; }

/* ---------- smooth scrolling ---------- */
html { scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.parallax-img { will-change: transform; }

/* ---------- live forms & states ---------- */
input.input, select.input, textarea.input { width: 100%; font: inherit; outline: none; }
input.input:focus, select.input:focus, textarea.input:focus, .input.with-pre:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(40,93,205,.15); }
.input.with-pre input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; color: var(--navy); height: 100%; }
.input.bad, .input.with-pre:has(input.bad) { border-color: var(--bad); }
.field-err { font-size: 13px; color: var(--bad); }
.form-msg { padding: 10px 14px; border-radius: 10px; background: var(--bad-bg); color: var(--bad); font-size: 14px; }
.form-msg.ok { background: var(--ok-bg); color: var(--ok); }
.btn.is-busy { opacity: .7; pointer-events: none; }
.btn.is-disabled { background: #C9CFDB; color: #fff; pointer-events: none; }
button.btn[disabled] { opacity: .55; cursor: not-allowed; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; z-index: 90; padding: 12px 20px; border-radius: 12px; background: var(--navy); color: #fff; font-size: 14.5px; font-weight: 500; box-shadow: 0 16px 36px -14px rgba(0,0,0,.5); transition: opacity .2s, transform .2s; }
.toast.in { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--bad); }
.empty-row { text-align: center; color: var(--muted); padding: 28px 10px !important; white-space: normal !important; }

/* footer social media */
footer .socials { display: flex; align-items: center; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
footer .socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); transition: background .2s, color .2s, transform .2s; }
footer .socials a:hover { background: #fff; color: var(--brand); transform: translateY(-2px); }
footer .socials svg { width: 20px; height: 20px; }
footer .socials .handle { margin-inline-start: 6px; font-size: 14px; color: rgba(255, 255, 255, .75); direction: ltr; }
