/* base.css — إرث المونديال
   Reset, variables, typography, base elements (RTL, Arabic) */

:root {
  /* Palette: burgundy + sand, dark immersive */
  --burgundy-900: #2a0d14;
  --burgundy-800: #3d121d;
  --burgundy-700: #5a1626;
  --burgundy-600: #761d31;
  --burgundy-500: #97283f;
  --burgundy-400: #b8475e;
  --sand-100: #f6ecd8;
  --sand-200: #ecdcbd;
  --sand-300: #ddc69a;
  --sand-400: #cbab74;
  --sand-500: #b8924f;
  --ink: #1a070c;
  --paper: #faf3e6;

  --bg: #1c0810;
  --bg-elev: #260c16;
  --bg-card: #310f1c;
  --text: #f2e7d4;
  --text-dim: #cbb79b;
  --text-faint: #9a886f;
  --line: rgba(203, 171, 116, 0.18);
  --line-strong: rgba(203, 171, 116, 0.35);

  --accent: var(--sand-400);
  --accent-warm: var(--burgundy-400);

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.7);
  --shadow-soft: 0 10px 30px -16px rgba(0, 0, 0, 0.6);

  --maxw: 1180px;
  --gap: clamp(1rem, 2.5vw, 2rem);

  --ff-base: 'Cairo', 'Tahoma', system-ui, sans-serif;
  --t-fast: 0.18s ease;
  --t: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--ff-base);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 17px;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  background-image:
    radial-gradient(circle at 85% -10%, rgba(151, 40, 63, 0.4), transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(58, 18, 29, 0.6), transparent 55%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5 {
  font-weight: 800;
  line-height: 1.25;
  color: var(--sand-100);
  letter-spacing: 0;
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { color: var(--text-dim); }
p + p { margin-top: 1rem; }

a {
  color: var(--sand-300);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--sand-100); }

ul, ol { list-style-position: inside; }

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

strong, b { color: var(--sand-200); font-weight: 700; }

::selection {
  background: var(--burgundy-500);
  color: var(--sand-100);
}

:focus-visible {
  outline: 2px solid var(--sand-400);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.4rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--burgundy-400), var(--sand-400));
  border-radius: 2px;
}

.section {
  padding-block: clamp(3rem, 7vw, 6rem);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
}
.section-head p { margin-top: 0.8rem; font-size: 1.05rem; }

.text-center { text-align: center; }
.muted { color: var(--text-faint); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
