
:root {
  color-scheme: light;
  --brand: #287D3F;
  --brand-pressed: #1E6231;
  --brand-mid: #3E8A54;
  --brand-soft: #E9F4EC;
  --canvas: #F4F7F4;
  --paper: #ffffff;
  --overlay: #FBFDFB;
  --ink: #16251A;
  --muted: #4E5F53;
  --quiet: #7C8A80;
  --line: #DDE6DD;
  --line-strong: #C6D5C8;
  --success: #1a7a4a;
  --danger: #b42318;
  --danger-soft: #fff1ef;
  --shadow-sm: 0 8px 24px rgba(22, 37, 26, .07);
  --shadow-lg: 0 26px 70px rgba(22, 37, 26, .13);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --content: 1180px;
  --reading: 760px;
}

@font-face {
  font-family: "Thmanyah Sans";
  src: url("/fonts/regular.woff2") format("woff2");
  font-style: normal; font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Thmanyah Sans";
  src: url("/fonts/medium.woff2") format("woff2");
  font-style: normal; font-weight: 500; font-display: swap;
}
@font-face {
  font-family: "Thmanyah Sans";
  src: url("/fonts/bold.woff2") format("woff2");
  font-style: normal; font-weight: 600 700; font-display: swap;
}
@font-face {
  font-family: "Thmanyah Sans";
  src: url("/fonts/black.woff2") format("woff2");
  font-style: normal; font-weight: 800 900; font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--canvas); }

body {
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 12% 5%, rgba(40, 125, 63, .07), transparent 24rem),
    var(--canvas);
  color: var(--ink);
  font-family: "Thmanyah Sans", "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }
html[data-language="en"] [data-lang="ar"],
html[data-language="ar"] [data-lang="en"] { display: none !important; }

img { max-width: 100%; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--brand-mid); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
:focus-visible { outline: 3px solid rgba(40, 125, 63, .38); outline-offset: 3px; }

.skip-link {
  position: fixed; inset-block-start: 12px; inset-inline-start: 12px; z-index: 100;
  transform: translateY(-140%);
  padding: 10px 14px; border-radius: 10px;
  background: var(--paper); color: var(--brand); font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }

.topbar {
  position: sticky; inset-block-start: 0; z-index: 20;
  border-bottom: 1px solid rgba(221, 230, 221, .85);
  background: rgba(251, 253, 251, .88);
  backdrop-filter: blur(18px);
}

.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }

.brand {
  display: inline-flex; align-items: center; gap: 11px;
  color: var(--ink); font-size: 19px; font-weight: 800; letter-spacing: -.02em;
  text-decoration: none; white-space: nowrap;
}
.brand-logo {
  width: 42px; height: 42px; border-radius: 13px; object-fit: cover;
  background: #fff; box-shadow: 0 8px 18px rgba(22, 37, 26, .14);
}

.nav-cluster, .nav-links { display: flex; align-items: center; }
.nav-cluster { gap: 26px; }
.nav-links { gap: 7px; }

.nav-links a {
  min-height: 42px; display: inline-flex; align-items: center;
  padding: 0 13px; border-radius: 11px;
  color: var(--muted); font-size: 14px; font-weight: 650; text-decoration: none;
  transition: color .18s ease, background-color .18s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }

.language-toggle {
  min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--paper); color: var(--brand); cursor: pointer;
  font-size: 14px; font-weight: 750;
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}
.language-toggle:hover { border-color: var(--brand-mid); background: var(--brand-soft); transform: translateY(-1px); }
.language-toggle:active { transform: translateY(1px); }
.language-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(112deg, rgba(233, 244, 236, .98), rgba(251, 253, 251, .86)),
    var(--overlay);
}
.hero::after {
  content: "";
  position: absolute; inset-block: -10rem; inset-inline-end: -8rem; width: 34rem;
  border: 1px solid rgba(40, 125, 63, .12); border-radius: 50%;
  transform: rotate(-18deg); pointer-events: none;
}

.hero-grid {
  position: relative; z-index: 1;
  min-height: 390px;
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center; gap: clamp(48px, 8vw, 110px);
  padding-block: 68px 76px;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 0 0 18px;
  color: var(--brand-mid); font-size: 13px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
}
html[dir="rtl"] .eyebrow { letter-spacing: 0; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }

h1, h2, h3 { margin-block-start: 0; color: var(--ink); line-height: 1.16; text-wrap: balance; }
h1 {
  max-width: 780px; margin-block-end: 22px;
  font-size: clamp(38px, 4.8vw, 58px); font-weight: 800; letter-spacing: -.045em;
}
html[dir="rtl"] h1 { letter-spacing: -.02em; }

.lead {
  max-width: 650px; margin: 0;
  color: var(--muted); font-size: clamp(17px, 2vw, 20px); line-height: 1.75; text-wrap: pretty;
}

.updated {
  display: inline-flex; margin-block-start: 18px;
  color: var(--quiet); font-size: 13px; font-variant-numeric: tabular-nums;
}

.hero-visual { position: relative; min-height: 300px; display: grid; place-items: center; }

.visual-card {
  position: relative; width: min(100%, 390px); padding: 32px;
  border: 1px solid rgba(255, 255, 255, .5); border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .7);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .85);
  backdrop-filter: blur(18px);
}
.visual-icon {
  width: 64px; height: 64px; display: grid; place-items: center;
  margin-block-end: 30px; border-radius: 20px;
  background: var(--brand); color: #fff;
  box-shadow: 0 14px 28px rgba(30, 98, 49, .25);
}
.visual-icon svg { width: 30px; height: 30px; }
.visual-card small { display: block; color: var(--quiet); font-size: 13px; font-weight: 700; }
.visual-card strong { display: block; margin-block: 7px 20px; font-size: 22px; line-height: 1.35; }

.status-row { display: flex; align-items: center; gap: 9px; color: var(--success); font-size: 14px; font-weight: 700; }
.status-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--success); box-shadow: 0 0 0 5px rgba(26, 122, 74, .11);
}

.page-summary { position: relative; z-index: 6; margin-block-start: -36px; }

.summary-panel {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(198, 213, 200, .9); border-radius: 22px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 20px 48px rgba(22, 37, 26, .1), inset 0 1px 0 rgba(255, 255, 255, .9);
  backdrop-filter: blur(16px);
}
.summary-item { min-width: 0; padding: 22px 26px 24px; border-inline-start: 1px solid var(--line); }
.summary-item:first-child { border-inline-start: 0; }
.summary-item small { display: block; margin-block-end: 6px; color: var(--quiet); font-size: 12px; font-weight: 650; }
.summary-item strong { display: block; color: var(--ink); font-size: clamp(15px, 1.5vw, 18px); line-height: 1.45; text-wrap: pretty; }

.legal-shell { padding-block: 72px 110px; }

.legal-layout {
  display: grid; grid-template-columns: 230px minmax(0, var(--reading));
  justify-content: space-between; gap: 64px; align-items: start;
}

.legal-index {
  position: sticky; inset-block-start: 110px;
  padding-inline-start: 16px; border-inline-start: 2px solid var(--line);
}
.legal-index strong { display: block; margin-block-end: 12px; color: var(--ink); font-size: 13px; }
.legal-index a { display: block; padding-block: 6px; color: var(--muted); font-size: 13px; text-decoration: none; }
.legal-index a:hover { color: var(--brand); }

.legal-content { min-width: 0; counter-reset: legal-section; }

.legal-section {
  position: relative;
  padding-block: 38px; padding-inline-start: 62px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 100px;
  counter-increment: legal-section;
}
.legal-section::before {
  content: counter(legal-section, decimal-leading-zero);
  position: absolute; inset-block-start: 43px; inset-inline-start: 0;
  color: var(--brand-mid); font-size: 12px; font-weight: 800;
  font-variant-numeric: tabular-nums; letter-spacing: .08em;
}
.legal-section:first-child { padding-block-start: 0; }
.legal-section:first-child::before { inset-block-start: 5px; }
.legal-section:last-child { border-bottom: 0; }
.legal-section h2 { margin-block-end: 16px; font-size: 28px; }
.legal-section p { margin-block: 0 16px; color: var(--muted); }
.legal-section p:last-child { margin-block-end: 0; }
.legal-section ul, .legal-section ol { margin: 0; padding-inline-start: 22px; color: var(--muted); }
.legal-section li { margin-block: 10px; padding-inline-start: 5px; }
.legal-section strong { color: var(--ink); }

.notice {
  padding: 22px 24px;
  border-inline-start: 4px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--brand-soft);
}
html[dir="rtl"] .notice { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.notice p { margin: 0; color: var(--ink); }
.notice--danger { border-color: var(--danger); background: var(--danger-soft); }

.steps { display: grid; gap: 14px; margin-block-start: 24px; }
.step {
  display: grid; grid-template-columns: 42px minmax(0, 1fr);
  align-items: start; gap: 15px; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper);
}
.step-number {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 11px; background: var(--brand-soft); color: var(--brand);
  font-weight: 800; font-variant-numeric: tabular-nums;
}
.step strong { display: block; margin-block: 4px 4px; }
.step p { margin: 0; font-size: 14px; color: var(--muted); }

.button {
  min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 0 19px; border-radius: 13px;
  background: var(--brand); color: #fff; font-weight: 750; text-decoration: none;
  box-shadow: 0 10px 24px rgba(30, 98, 49, .18);
  transition: transform .18s ease, background-color .18s ease;
}
.button:hover { background: var(--brand-pressed); color: #fff; transform: translateY(-2px); }
.button:active { transform: translateY(1px); }

.contact-panel {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; gap: 28px; padding: 34px;
  border-radius: var(--radius-md);
  background: var(--brand); color: rgba(255, 255, 255, .78);
  box-shadow: var(--shadow-lg);
  margin-block-start: 24px;
}
.contact-panel h3 { margin-block-end: 8px; color: #fff; }
.contact-panel p { margin: 0; color: rgba(255, 255, 255, .78); }
.contact-panel .button { background: #fff; color: var(--brand); box-shadow: none; white-space: nowrap; }
.contact-panel .button:hover { background: var(--brand-soft); color: var(--brand-pressed); }
.contact-panel .panel-email {
  display: inline-block; margin-block-start: 10px;
  padding: 6px 12px; border-radius: 9px;
  background: rgba(255, 255, 255, .14); color: #fff;
  font-size: 15px; font-weight: 700; letter-spacing: .01em;
  user-select: all; direction: ltr;
}
.panel-actions { display: grid; gap: 10px; justify-items: stretch; }
.button--ghost {
  background: transparent; color: #fff;
  border: 1px solid rgba(255, 255, 255, .55); box-shadow: none;
}
.button--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

footer {
  padding-block: 38px 46px;
  border-top: 1px solid var(--line);
  background: var(--overlay); color: var(--quiet); font-size: 13px;
}
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.footer-row p { margin: 0; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--brand); }

@media (max-width: 920px) {
  .nav-cluster { gap: 10px; }
  .nav-links { display: none; }
  .hero-grid { min-height: auto; grid-template-columns: 1fr; gap: 54px; padding-block: 62px 70px; }
  .hero-visual { display: none; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-index { display: none; }
}

@media (max-width: 720px) {
  .page-summary { margin-block-start: -24px; }
  .summary-panel { grid-template-columns: 1fr; border-radius: 18px; }
  .summary-item { padding: 18px 20px; border-inline-start: 0; border-block-start: 1px solid var(--line); }
  .summary-item:first-child { border-block-start: 0; }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 28px), var(--content)); }
  .nav { min-height: 68px; }
  .brand span { display: none; }
  .brand-logo { width: 40px; height: 40px; }
  .language-toggle { padding-inline: 12px; }
  h1 { font-size: clamp(34px, 11vw, 48px); }
  .hero-grid { padding-block: 50px 58px; }
  .legal-shell { padding-block: 52px 76px; }
  .legal-section { padding-block: 31px; padding-inline-start: 0; }
  .legal-section::before,
  .legal-section:first-child::before { position: static; display: block; margin-block-end: 10px; }
  .legal-section h2 { font-size: 24px; }
  .contact-panel { grid-template-columns: 1fr; padding: 26px; }
  .contact-panel .button { width: 100%; white-space: normal; text-align: center; }
  .step { grid-template-columns: 36px minmax(0, 1fr); padding: 16px; }
  .step-number { width: 32px; height: 32px; }
  .footer-row { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
