:root {
  --primary: #1F3A5F;
  --accent: #E67E22;
  --accent-text: #1a1a1a;
  --bg: #F2F4F6;
  --surface: #ffffff;
  --text: #1c2530;
  --muted: #4a5563;
  --radius: 6px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Noto Sans Arabic", "Geeza Pro", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img, svg, video, iframe, textarea, input, select { max-width: 100%; }

h1, h2, h3 { line-height: 1.2; font-weight: 800; margin: 0 0 .6em; }
h1 { font-size: clamp(1.6rem, 6vw, 2.6rem); overflow-wrap: anywhere; }
h2 { font-size: clamp(1.35rem, 4.5vw, 1.9rem); color: var(--primary); }
h3 { font-size: 1.1rem; color: var(--primary); }
p { margin: 0 0 .75em; }

a { color: var(--primary); }
a:focus-visible, button:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 1rem; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--accent-text); padding: .5rem 1rem; z-index: 10;
}
.skip:focus { left: 0; }

/* Header */
.site-header { background: var(--primary); color: #fff; position: sticky; top: 0; z-index: 5; }
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .5rem; padding-top: .6rem; padding-bottom: .4rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .5rem; min-width: 0;
  color: #fff; text-decoration: none; font-weight: 800; font-size: 1rem;
}
.brand span { overflow-wrap: anywhere; }
.brand-icon { width: 1.5rem; height: 1.5rem; fill: var(--accent); flex: none; }

.lang { display: flex; flex-wrap: wrap; gap: .25rem; }
.lang button {
  font: inherit; font-size: .8rem; font-weight: 600;
  color: #fff; background: transparent;
  border: 1px solid rgba(255,255,255,.55); border-radius: var(--radius);
  padding: .3rem .55rem; cursor: pointer; min-height: 2rem;
}
.lang button[aria-pressed="true"] { background: #fff; color: var(--primary); border-color: #fff; }

.nav {
  list-style: none; margin: 0; padding: .25rem 0 .6rem;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem .5rem;
}
.nav a {
  display: inline-block; color: #fff; text-decoration: none;
  font-size: .85rem; font-weight: 600; padding: .35rem .5rem; border-radius: var(--radius);
}
.nav a:hover { background: rgba(255,255,255,.12); }

/* Sections */
main section { padding: 2.5rem 0; scroll-margin-top: 8rem; }
section.alt { background: #e6eaee; }

.hero { background: var(--primary); color: #fff; text-align: center; padding: 3rem 0 3.5rem; border-top: 4px solid var(--accent); }
.hero h1 { color: #fff; }
.slogan { font-size: 1.15rem; margin-bottom: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }

.btn {
  display: inline-block; font: inherit; font-weight: 700; text-decoration: none;
  padding: .7rem 1.2rem; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; max-width: 100%;
}
.btn-accent { background: var(--accent); color: var(--accent-text); }
.btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.btn:disabled { background: #c8ced5; color: #3a4350; cursor: not-allowed; }

.card {
  background: var(--surface); border-radius: var(--radius); padding: 1.25rem;
  border-inline-start: 4px solid var(--accent);
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.empty { display: flex; align-items: center; gap: 1rem; }
.empty p { margin: 0; color: var(--muted); }
.icon { width: 2.25rem; height: 2.25rem; fill: var(--primary); flex: none; }

.grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.order { display: grid; gap: .75rem; }
.order label { font-weight: 700; }
.order textarea {
  width: 100%; font: inherit; padding: .6rem; border: 1px solid #9aa4b0;
  border-radius: var(--radius); background: #f7f8f9; color: var(--muted); resize: vertical;
}
.order fieldset { border: 1px solid #c8ced5; border-radius: var(--radius); margin: 0; padding: .5rem .75rem; }
.order legend { font-weight: 700; padding: 0 .25rem; }
.radio { font-weight: 400 !important; display: inline-flex; gap: .4rem; align-items: center; }
.note { color: var(--muted); font-size: .9rem; margin: 0; }

.break { overflow-wrap: anywhere; word-break: break-all; }

/* Footer */
.site-footer { text-align: center; padding: 1rem; font-size: .8rem; color: var(--muted); }
.site-footer p { margin: 0; }
.site-footer a { color: var(--primary); }

/* RTL */
[dir="rtl"] body, [dir="rtl"] { font-family: "Noto Sans Arabic", "Geeza Pro", Tahoma, var(--font); }

@media (min-width: 720px) {
  .nav a { font-size: .95rem; }
  .brand { font-size: 1.15rem; }
}
