/* ============================================================
   TRUESTORY AFRICA — GLOBAL CSS
   Design tokens, reset, typography, shared utilities
   ============================================================ */

/* ── Google Fonts (Montserrat for logo wordmark only) ─────── */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;800&display=swap');

/* ── Univers (self-hosted) ────────────────────────────────── */
@font-face {
  font-family: 'Univers';
  src: url('../assets/fonts/univers/UniversLight.ttf') format('truetype');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Univers';
  src: url('../assets/fonts/univers/UniversRegular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Univers';
  src: url('../assets/fonts/univers/UniversBold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Univers Condensed';
  src: url('../assets/fonts/univers/UniversCnRg.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Univers Condensed';
  src: url('../assets/fonts/univers/UniversCnBold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  /* Colors */
  --color-bg:           #0a0a0a;
  --color-bg-alt:       #111111;
  --color-bg-card:      #161616;
  --color-bg-hover:     #1a1a1a;
  --color-red:          #E82C2C;
  --color-red-dark:     #c42424;
  --color-red-hover:    #d02626;
  --color-gold:         #C9A84C;
  --color-white:        #ffffff;
  --color-text-primary: #ffffff;
  --color-text-secondary: #999999;
  --color-text-muted:   #666666;
  --color-border:       #222222;
  --color-border-light: #2a2a2a;

  /* Typography */
  --font-heading: 'Univers Condensed', 'Univers', sans-serif;
  --font-body:    'Univers', sans-serif;

  /* Font weights */
  --fw-regular:    400;
  --fw-medium:     500;
  --fw-semibold:   600;
  --fw-bold:       700;
  --fw-extrabold:  800;

  /* Spacing scale */
  --space-1:   4px;
  --space-2:   8px;
  --space-3:   12px;
  --space-4:   16px;
  --space-5:   20px;
  --space-6:   24px;
  --space-8:   32px;
  --space-10:  40px;
  --space-12:  48px;
  --space-16:  64px;
  --space-20:  80px;
  --space-24:  96px;
  --space-32: 128px;

  /* Layout */
  --max-width:       1280px;
  --container-pad:   clamp(16px, 4vw, 80px);
  --nav-height:      72px;

  /* Border radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:  16px;

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  /* Shadows */
  --shadow-card:   0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-hover:  0 8px 40px rgba(0, 0, 0, 0.7);
}

/* ── CSS Reset ────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: var(--font-body);
}

/* ── Typography Base ──────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
}

h1 { font-size: clamp(48px, 7vw, 90px);  font-weight: var(--fw-extrabold); line-height: 1.0; }
h2 { font-size: clamp(32px, 4vw, 52px);  font-weight: var(--fw-bold); }
h3 { font-size: clamp(22px, 2.5vw, 32px); }
h4 { font-size: clamp(18px, 2vw, 24px); }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

p {
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ── Layout Utilities ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--space-20);
}

.section--lg {
  padding-block: var(--space-32);
}

/* ── Label / Eyebrow ──────────────────────────────────────── */
.label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: var(--space-4);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  white-space: nowrap;
  cursor: pointer;
}

.btn--primary {
  background: var(--color-red);
  color: var(--color-white);
  border: 2px solid var(--color-red);
}

.btn--primary:hover {
  background: var(--color-red-hover);
  border-color: var(--color-red-hover);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn--ghost:hover {
  border-color: var(--color-white);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.btn--outline-red {
  background: transparent;
  color: var(--color-red);
  border: 2px solid var(--color-red);
}

.btn--outline-red:hover {
  background: var(--color-red);
  color: var(--color-white);
}

/* ── Arrow Link ───────────────────────────────────────────── */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  transition: color var(--transition-base);
}

.arrow-link:hover {
  color: var(--color-red);
}

.arrow-link .arrow {
  transition: transform var(--transition-base);
}

.arrow-link:hover .arrow {
  transform: translateX(4px);
}

/* ── Divider ──────────────────────────────────────────────── */
.divider {
  width: 40px;
  height: 2px;
  background: var(--color-red);
  margin-bottom: var(--space-6);
}

/* ── Scroll Animation Base ────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }

/* ── Visually Hidden (accessibility) ─────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Focus Visible ────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 3px;
}
