:root {
  --navy: #042C53;
  --navy-2: #0C447C;
  --ink: #10146A;
  --hull: #001DB3;
  --signal: #137BFF;
  --sea: #48D6F9;
  --paper: #F5F8FC;
  --line: #D9E2EE;
  --text: #16202E;
  --muted: #4E5B6E;
  --radius: 10px;
  --max: 1080px;
  --font: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, sans-serif;
}
html[lang="ar"] { --font: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif; }

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); color: var(--text); background: #fff; line-height: 1.65; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: var(--hull); }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: var(--navy); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.site-header .logo img { height: 64px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a { color: #B5D4F4; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 15px; }
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; background: var(--navy-2); }
.nav .lang { border: 1px solid #185FA5; margin-inline-start: 8px; }

/* Hero */
.hero { background: var(--navy-2); color: #fff; padding: 64px 0 0; }
.hero h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.2; font-weight: 600; margin: 0 0 14px; max-width: 22ch; }
.hero p { color: #B5D4F4; font-size: 18px; margin: 0 0 28px; max-width: 55ch; }
.hero .wave { display: block; width: 100%; height: 48px; margin-top: 48px; }

.btn { display: inline-block; background: var(--signal); color: #fff; text-decoration: none; padding: 12px 22px; border-radius: 8px; font-weight: 500; border: 0; font: inherit; cursor: pointer; }
.btn:hover { background: #0F66D6; }

/* Sections */
section { padding: 56px 0; }
section.alt { background: var(--paper); }
h2 { font-size: 26px; font-weight: 600; color: var(--ink); margin: 0 0 16px; line-height: 1.3; }
h3 { font-size: 18px; font-weight: 600; color: var(--ink); margin: 0 0 6px; }
.lead { max-width: 65ch; color: var(--muted); margin: 0; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.features p { margin: 0; color: var(--muted); }
.features .icon { width: 36px; height: 36px; color: var(--hull); margin-bottom: 12px; }

.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.services > * { background: #fff; padding: 22px; text-decoration: none; color: var(--text); }
.services .soon { color: var(--muted); font-size: 14px; }
.services a.featured { background: var(--navy); color: #fff; }
.services a.featured h3 { color: #fff; }
.services a.featured .soon { color: var(--sea); }

.spotlight { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; border-inline-start: 4px solid var(--signal); padding: 8px 0 8px 20px; }
html[dir="rtl"] .spotlight { padding: 8px 20px 8px 0; }
.spotlight p { margin: 4px 0 0; color: var(--muted); }

.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.examiner { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.examiner img { height: 44px; width: auto; }
.examiner p { margin: 0; }

/* Verification */
.verify { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; max-width: 560px; }
.verify form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.verify input { flex: 1; min-width: 180px; font: inherit; padding: 11px 14px; border: 1px solid #B8C4D4; border-radius: 8px; direction: ltr; }
.result { margin: 14px 0 0; font-weight: 500; min-height: 1.6em; }
.result.ok { color: #1E7A3C; }
.result.bad { color: #B42318; }
.result.wait { color: var(--muted); }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.contact-list li { display: flex; gap: 10px; align-items: baseline; }
.contact-list .k { color: var(--muted); min-width: 150px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* Placeholder marker: remove before going live */
.todo { background: #FFF4C2; outline: 1px dashed #C99A00; padding: 0 4px; }

/* Footer */
.site-footer { background: var(--navy); color: #B5D4F4; padding: 32px 0; font-size: 15px; }
.site-footer .wrap { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
.site-footer img { height: 70px; width: auto; }
.site-footer a { color: #fff; }
.site-footer p { margin: 0; }

@media (max-width: 640px) {
  .site-header .logo img { height: 52px; }
  .hero { padding-top: 40px; }
  section { padding: 40px 0; }
  .contact-list li { flex-direction: column; gap: 0; }
}

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
