/* Nour site: the app palette (night navy, school blue, orange accent). */
:root {
  --bg: #F6F6FB; --surface: #FFFFFF; --line: #E2E1EE; --text: #22183A; --muted: #5A5470;
  --navy: #2A1E6E; --blue: #1C6FD6; --link: #1A5FB8; --orange: #FF8A1F; --orange-deep: #E5600A;
  --soft: #EEF2FC; --orange-soft: #FFF1E3; --on-orange: #22183A;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #120D24; --surface: #1B1534; --line: #2E2750; --text: #F2F0FA; --muted: #B7B1CC;
    --link: #8DBBFF; --soft: #221B42; --orange-soft: #2E2033;
  }
}
:root[data-theme="dark"] {
  --bg: #120D24; --surface: #1B1534; --line: #2E2750; --text: #F2F0FA; --muted: #B7B1CC;
  --link: #8DBBFF; --soft: #221B42; --orange-soft: #2E2033;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px; line-height: 1.6;
}
[dir="rtl"] body, body[dir="rtl"] { font-family: "Tajawal", "Jost", system-ui, sans-serif; line-height: 1.8; }
.wrap { max-width: 780px; margin: 0 auto; padding: 0 16px; }

/* Header */
.top { display: flex; align-items: center; gap: 12px; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 19px; min-height: 44px; white-space: nowrap; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.top nav { margin-inline-start: auto; display: flex; gap: 2px; flex-wrap: wrap; }
.top nav a {
  color: var(--muted); text-decoration: none; padding: 10px 11px; border-radius: 12px; font-size: 15px;
  min-height: 44px; display: inline-flex; align-items: center;
  transition: background-color 150ms var(--ease-out), color 150ms var(--ease-out);
}
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--text); background: var(--soft); }
.top nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--orange); }

/* Home */
.hero {
  margin: 8px 0 0; padding: 36px 28px 30px; border-radius: 28px; color: #FFFFFF;
  background: linear-gradient(160deg, var(--navy) 0%, #23307F 55%, var(--blue) 100%);
}
.hero img { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 8px 24px rgba(10, 6, 30, 0.35); }
.hero h1 { font-size: clamp(34px, 7.5vw, 52px); line-height: 1.08; margin: 20px 0 10px; letter-spacing: -0.02em; font-weight: 600; }
.hero p { font-size: 19px; color: #DCE3FA; margin: 0; max-width: 32em; }
.stores { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.pill { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.35); color: #FFFFFF; font-size: 15px; }
.pill b { color: var(--orange); font-weight: 500; margin-inline-start: 6px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 20px 0 8px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 16px; }
.fact b { display: block; font-size: 17px; margin-bottom: 4px; }
.fact b::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-inline-end: 8px; vertical-align: 2px; }
.fact span { color: var(--muted); font-size: 15px; }
.band { margin: 28px 0 0; }
.band h2 { font-size: 22px; margin: 0 0 6px; font-weight: 600; }
.band p { margin: 0 0 10px; max-width: 40em; }
.links { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0 0; }
.links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 15px;
  transition: border-color 150ms var(--ease-out), transform 100ms var(--ease-out);
}
.links a:hover { border-color: var(--orange); }
.links a:active { transform: scale(0.96); }

/* Documents */
.doc h1 { font-size: clamp(30px, 6vw, 40px); line-height: 1.12; margin: 20px 0 6px; font-weight: 600; letter-spacing: -0.01em; }
.doc .meta { color: var(--muted); margin: 0 0 22px; font-size: 15px; }
.doc h2 { font-size: 21px; margin: 32px 0 8px; font-weight: 600; }
.doc p, .doc li { max-width: 40em; }
.doc ul { padding-inline-start: 22px; margin: 8px 0; }
.doc li { margin: 6px 0; }
.note { background: var(--orange-soft); border-inline-start: 4px solid var(--orange); border-radius: 14px; padding: 14px 18px; margin: 16px 0; }
.note ul { margin: 4px 0 0; }
.table { overflow-x: auto; margin: 12px 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
th, td { text-align: start; padding: 12px 14px; vertical-align: top; }
tr + tr td { border-top: 1px solid var(--line); }
th { color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--line); }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color 150ms var(--ease-out); }
a:hover { text-decoration-thickness: 2px; }

/* Support */
.mail {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px; border-radius: 26px;
  background: var(--orange); color: var(--on-orange); text-decoration: none; font-weight: 600; margin: 8px 0 4px;
  transition: transform 100ms var(--ease-out), background-color 150ms var(--ease-out);
}
.mail:hover { background: #FF9B3D; }
.mail:active { transform: scale(0.96); }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 18px; margin: 10px 0; }
summary { cursor: pointer; min-height: 52px; display: flex; align-items: center; font-weight: 500; list-style: none; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; margin-inline-start: auto; color: var(--orange-deep); font-size: 22px; transition: transform 200ms var(--ease-out); }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 16px; color: var(--muted); }

footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 20px 0 40px; color: var(--muted); font-size: 14px; display: flex; gap: 8px 16px; flex-wrap: wrap; }
footer a { color: var(--muted); display: inline-flex; align-items: center; min-height: 32px; }

@media (max-width: 640px) {
  .top { flex-wrap: wrap; padding-bottom: 6px; }
  .top nav { margin-inline-start: -11px; width: calc(100% + 11px); }
  .hero { padding: 28px 20px 24px; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
