/* SLSC — Design tokens (v2)
   Arabic-first, evolved from Equita.
   Red brand accent · IBM Plex Sans Arabic · structured editorial system.
*/

:root {
  /* === COLOR === */
  --bg: #ffffff;
  --bg-soft: #f7f5f1;        /* warm off-white for alt sections */
  --bg-deep: #0c1116;        /* hero / dark sections */
  --bg-deep-2: #161b22;
  --ink: #0c1116;            /* primary text */
  --ink-2: #2a2f37;
  --ink-mute: #5a6270;
  --ink-faint: #8a93a3;
  --rule: #e6e3dc;
  --rule-2: #d8d3c8;
  --rule-on-dark: rgba(255,255,255,0.12);

  /* SLSC red — sampled from logo */
  --red: #d61f1f;
  --red-deep: #a8160e;
  --red-soft: #fce8e6;
  --red-ink: #ffffff;

  /* Sand — Saudi context accent */
  --sand: #c9a96b;
  --sand-deep: #8c7438;

  /* === TYPE === */
  --font-ar: "IBM Plex Sans Arabic", "Tajawal", system-ui, sans-serif;
  --font-en: "IBM Plex Sans", "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", monospace;
  --font-display: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif;

  /* Scale (1440 design width) */
  --fs-display: clamp(48px, 5.6vw, 88px);
  --fs-h1: clamp(40px, 4.4vw, 64px);
  --fs-h2: clamp(32px, 3.2vw, 48px);
  --fs-h3: 28px;
  --fs-h4: 22px;
  --fs-lede: 20px;
  --fs-body: 17px;
  --fs-small: 14px;
  --fs-mono: 12px;

  /* === SPACE === */
  --gutter: 64px;
  --section-y: 120px;
  --max-w: 1320px;
  --radius: 4px;
  --radius-lg: 12px;
}

/* === BASE === */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-ar);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[dir="rtl"] body { font-family: var(--font-ar); }
[dir="ltr"] body { font-family: var(--font-en); }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; }
p { margin: 0; text-wrap: pretty; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* === UTILITY === */
.container { max-width: var(--max-w); margin-inline: auto; padding-inline: var(--gutter); }

.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
}
.kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--red);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-ar);
  border: 0;
  background: var(--red);
  color: var(--red-ink);
  border-radius: 2px;
  transition: background .2s, transform .15s;
  text-decoration: none;
}
.btn:hover { background: var(--red-deep); }
.btn:active { transform: translateY(1px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  padding: 12px 26px;
}
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--on-dark {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn--on-dark:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--lg { padding: 18px 36px; font-size: 16px; }

.btn .arrow { width: 14px; height: 14px; }
[dir="rtl"] .btn .arrow { transform: scaleX(-1); }

/* === RULE === */
.rule { height: 1px; background: var(--rule); }

/* === PHOTO PLACEHOLDER === */
.ph {
  position: relative;
  background: linear-gradient(135deg, #d8d3c8 0%, #c5bfb2 100%);
  background-image:
    repeating-linear-gradient(45deg, rgba(0,0,0,0.04) 0 2px, transparent 2px 14px),
    linear-gradient(135deg, #d8d3c8 0%, #c5bfb2 100%);
  overflow: hidden;
  border-radius: var(--radius);
}
.ph__label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.45);
  text-align: center;
  padding: 16px;
}
.ph--dark {
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 14px),
    linear-gradient(135deg, #1f262e 0%, #0c1116 100%);
}
.ph--dark .ph__label { color: rgba(255,255,255,0.4); }

/* === FOCUS === */
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* === SECTION === */
.section { padding-block: var(--section-y); }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--bg-deep); color: #d6dae0; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
