@font-face {
  font-family: "Baloo 2";
  src: url("/assets/fonts/Baloo2-VariableFont_wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "Baloo Bhaijaan 2";
  src: url("/assets/fonts/BalooBhaijaan2-VariableFont_wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/IBMPlexSans-VariableFont_wdth,wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/assets/fonts/IBMPlexSansArabic-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/assets/fonts/IBMPlexSansArabic-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --teal: #12706e;
  --teal-dark: #0b4c4a;
  --teal-soft: #dcecea;
  --rose: #e24a6b;
  --citrus: #f97a1f;
  --jasmine: #f6c445;
  --sand: #fbf8f2;
  --paper: #fffdf9;
  --border: #e7dfd2;
  --ink: #0f2422;
  --slate: #536663;
  --shadow: 0 18px 54px rgb(15 36 34 / 8%);
  --radius-lg: 28px;
  --radius-md: 18px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgb(246 196 69 / 18%), transparent 24rem),
    radial-gradient(circle at 100% 8%, rgb(226 74 107 / 10%), transparent 25rem),
    var(--sand);
  font-family: "IBM Plex Sans Arabic", "IBM Plex Sans", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

body[data-language="en"] {
  font-family: "IBM Plex Sans", sans-serif;
}

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

a {
  color: var(--teal-dark);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--rose);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--jasmine);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  color: #fff;
  background: var(--teal-dark);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgb(231 223 210 / 80%);
  background: rgb(251 248 242 / 92%);
  backdrop-filter: blur(18px);
}

.header-inner,
.footer-inner,
.page-shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 42px;
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-ar {
  font-family: "Baloo Bhaijaan 2", sans-serif;
  font-size: 24px;
  font-weight: 700;
}

.brand-en {
  margin-top: 2px;
  color: var(--slate);
  font-family: "Baloo 2", sans-serif;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.desktop-nav a {
  color: var(--slate);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.desktop-nav a[aria-current="page"],
.desktop-nav a:hover {
  color: var(--teal);
}

.language-switch {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--paper);
}

.language-switch button {
  min-width: 42px;
  min-height: 36px;
  padding: 4px 10px;
  border: 0;
  border-radius: 999px;
  color: var(--slate);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
  color: #fff;
  background: var(--teal);
}

.page-shell {
  padding-block: 72px 88px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  align-items: center;
  gap: clamp(36px, 7vw, 96px);
  min-height: 560px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: var(--citrus);
  content: "";
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.18;
}

h1,
h2 {
  font-family: "Baloo Bhaijaan 2", "Baloo 2", sans-serif;
}

body[data-language="en"] h1,
body[data-language="en"] h2 {
  font-family: "Baloo 2", sans-serif;
}

h1 {
  max-width: 780px;
  font-size: clamp(44px, 7vw, 82px);
  font-weight: 720;
  letter-spacing: -0.025em;
}

.document-hero h1 {
  font-size: clamp(40px, 6vw, 68px);
}

h2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
}

h3 {
  font-size: 20px;
  font-weight: 650;
}

.hero-lead {
  max-width: 670px;
  margin: 24px 0 0;
  color: var(--slate);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.7;
}

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

.hero-mark::before,
.hero-mark::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.hero-mark::before {
  width: 360px;
  height: 360px;
  background: var(--teal-soft);
}

.hero-mark::after {
  width: 270px;
  height: 270px;
  border: 2px dashed rgb(18 112 110 / 25%);
}

.hero-mark img {
  position: relative;
  z-index: 2;
  width: 150px;
  height: auto;
  filter: drop-shadow(0 18px 28px rgb(18 112 110 / 20%));
}

.document-hero {
  display: grid;
  gap: 18px;
  max-width: 820px;
  margin-bottom: 48px;
}

.document-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 0;
  color: var(--slate);
  font-size: 14px;
}

.document-grid {
  display: grid;
  grid-template-columns: minmax(210px, 0.32fr) minmax(0, 1fr);
  align-items: start;
  gap: 34px;
}

.document-aside {
  position: sticky;
  top: 112px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgb(255 253 249 / 86%);
}

.document-aside p {
  margin: 0 0 14px;
  color: var(--slate);
  font-size: 14px;
}

.document-aside a {
  display: block;
  margin-top: 9px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.document-body {
  display: grid;
  gap: 18px;
}

.document-section,
.link-card,
.contact-card,
.step-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgb(255 253 249 / 94%);
  box-shadow: var(--shadow);
}

.document-section {
  padding: clamp(24px, 4vw, 38px);
}

.spaced-section {
  margin-top: 28px;
}

.document-section h2 {
  margin-bottom: 14px;
  font-size: clamp(25px, 3vw, 32px);
}

.document-section p,
.document-section ul,
.document-section ol {
  margin-block: 12px 0;
  color: var(--slate);
}

.document-section li + li {
  margin-top: 8px;
}

.document-section strong {
  color: var(--ink);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.link-card {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  padding: 28px;
  color: var(--ink);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.link-card:hover {
  border-color: rgb(18 112 110 / 40%);
  color: var(--ink);
  box-shadow: 0 22px 56px rgb(15 36 34 / 12%);
  transform: translateY(-4px);
}

.card-number {
  color: var(--rose);
  font-family: "Baloo 2", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.link-card h2 {
  margin-top: auto;
  padding-top: 34px;
}

.link-card p {
  margin: 10px 0 0;
  color: var(--slate);
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
  padding: clamp(26px, 5vw, 46px);
}

.contact-card p {
  margin: 10px 0 0;
  color: var(--slate);
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid var(--teal);
  border-radius: 999px;
  color: #fff;
  background: var(--teal);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  color: #fff;
  background: var(--teal-dark);
}

.steps {
  display: grid;
  gap: 14px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step-card {
  position: relative;
  padding: 22px 24px 22px 76px;
  counter-increment: step;
}

[dir="rtl"] .step-card {
  padding: 22px 76px 22px 24px;
}

.step-card::before {
  position: absolute;
  top: 20px;
  left: 22px;
  display: grid;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  background: var(--teal);
  content: counter(step);
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 700;
  place-items: center;
}

[dir="rtl"] .step-card::before {
  right: 22px;
  left: auto;
}

.step-card h3 {
  margin-bottom: 4px;
}

.step-card p {
  margin: 0;
  color: var(--slate);
}

.notice {
  margin-top: 22px;
  padding: 18px 20px;
  border-inline-start: 4px solid var(--citrus);
  border-radius: 12px;
  color: var(--slate);
  background: rgb(249 122 31 / 8%);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--paper);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding-block: 34px;
}

.footer-copy {
  color: var(--slate);
  font-size: 14px;
}

.footer-copy strong {
  color: var(--ink);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}

.footer-nav a {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .hero,
  .document-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-mark {
    min-height: 340px;
  }

  .hero-mark::before {
    width: 300px;
    height: 300px;
  }

  .hero-mark::after {
    width: 230px;
    height: 230px;
  }

  .hero-mark img {
    width: 125px;
  }

  .document-aside {
    position: static;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .header-inner,
  .footer-inner,
  .page-shell {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .header-inner {
    min-height: 72px;
  }

  .brand-copy {
    display: none;
  }

  .page-shell {
    padding-block: 48px 64px;
  }

  .cards,
  .footer-inner,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    justify-content: flex-start;
  }

  [dir="rtl"] .footer-nav {
    justify-content: flex-start;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
