/* Reset, typography styles (Design System text styles) and layout primitives. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }

:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus-color); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--color-white); }

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; inset-inline-start: 16px; top: -100px; z-index: 1000;
  background: var(--color-white); color: var(--color-text); padding: 12px 20px; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-1); font-weight: 700;
}
.skip-link:focus { top: 16px; }

/* ---------- Text styles (Manrope, Design System) ---------- */
.t-h1  { font-size: clamp(40px, 5.2vw, 64px); line-height: 1.25; font-weight: 600; }
.t-h9  { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.2; font-weight: 600; }
.t-h6  { font-size: clamp(30px, 3.9vw, 48px); line-height: 1.1667; font-weight: 500; }
.t-h12 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.25; font-weight: 700; }
.t-h14 { font-size: clamp(20px, 2vw, 24px);   line-height: 1.3333; font-weight: 700; }
.t-h15 { font-size: clamp(20px, 2vw, 24px);   line-height: 1.5; font-weight: 600; }
.t-b1 { font-size: 18px; line-height: 28px; font-weight: 700; }
.t-b2 { font-size: 18px; line-height: 28px; font-weight: 600; }
.t-b3 { font-size: 18px; line-height: 28px; font-weight: 400; }
.t-b4 { font-size: 16px; line-height: 24px; font-weight: 700; }
.t-b5 { font-size: 16px; line-height: 24px; font-weight: 600; }
.t-b6 { font-size: 16px; line-height: 24px; font-weight: 400; }
.t-b7 { font-size: 14px; line-height: 22px; font-weight: 700; }
.t-b8 { font-size: 14px; line-height: 22px; font-weight: 600; }
.t-b9 { font-size: 14px; line-height: 22px; font-weight: 400; }
.t-c3 { font-size: 12px; line-height: 20px; font-weight: 500; }
.t-c4 { font-size: 12px; line-height: 20px; font-weight: 400; }
.t-muted { color: var(--color-text-muted); }
.t-brand { color: var(--secondary-600); }
.t-gradient {
  background: var(--gradient-linear-one);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--primary-500);
}
[dir="rtl"] .t-gradient { background-image: linear-gradient(270deg, #173B5C 0%, #00C950 100%); }
[dir="rtl"] input[type="tel"]:placeholder-shown { direction: rtl; }

/* Arabic: Cairo with taller line heights and one step larger small text (provisional). */
:lang(ar) .t-h1  { line-height: 1.5; }
:lang(ar) .t-h6  { line-height: 1.5; }
:lang(ar) .t-h12 { line-height: 1.625; }
:lang(ar) .t-h14, :lang(ar) .t-h15 { line-height: 1.6; }
:lang(ar) .t-b1, :lang(ar) .t-b2, :lang(ar) .t-b3 { line-height: 32px; }
:lang(ar) body, :lang(ar) .t-b4, :lang(ar) .t-b5, :lang(ar) .t-b6 { line-height: 28px; }
:lang(ar) .t-b7, :lang(ar) .t-b8, :lang(ar) .t-b9 { font-size: 15px; line-height: 26px; }
:lang(ar) .t-c3, :lang(ar) .t-c4 { font-size: 13px; line-height: 22px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--page-margin)); margin-inline: auto; padding-inline: var(--page-margin); }
.section { padding-block: var(--section-pad-y); }
.section--tight { padding-block: calc(var(--section-pad-y) / 2); }
.section--flush-top { padding-top: 0; }
.stack > * + * { margin-top: var(--stack, 16px); }
.grid { display: grid; gap: var(--grid-gap); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1023px) {
  .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: minmax(0, 1fr); }
}
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
@media (max-width: 1023px) { .split { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

.section-head { text-align: center; max-width: 820px; margin-inline: auto; margin-bottom: 40px; }
.section-head .eyebrow { margin-bottom: 8px; }
.section-head p:last-child { margin-top: 16px; color: var(--color-text-muted); }
.section-head--start { text-align: start; margin-inline: 0; }
.eyebrow { font-size: 16px; line-height: 24px; font-weight: 400; color: var(--color-text); letter-spacing: 0; }
:lang(ar) .eyebrow { line-height: 28px; }

.prose { color: var(--color-text-muted); }
.prose > * + * { margin-top: 16px; }
.prose h2 { color: var(--color-text); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.3; font-weight: 700; margin-top: 32px; }
.prose h3 { color: var(--color-text); font-size: 16px; line-height: 24px; font-weight: 700; margin-top: 24px; }
.prose h3 + p, .prose h3 + ul { margin-top: 4px; }
.prose ul { padding-inline-start: 20px; }
.prose li + li { margin-top: 2px; }
:lang(ar) .prose h3 { line-height: 28px; }

.d-block { display: block; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
