/* ==========================================================================
   LETSPACT — base.css
   Font faces, base typography, layout primitives, utilities
   ========================================================================== */

/* --- Fonts supplied in /assets/fonts (see README for licensing notes) --- */
@font-face {
  font-family: "Century Gothic Pro";
  src: url("../fonts/CenturyGothicPro-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Century Gothic Pro";
  src: url("../fonts/CenturyGothicPro-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Century Gothic Pro";
  src: url("../fonts/CenturyGothicPro-Italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Migra";
  src: url("../fonts/Migra-Extralight.otf") format("opentype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Migra";
  src: url("../fonts/Migra-Extrabold.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
/* Aeonik Arabic — TRIAL files supplied; replace with licensed files before production */
@font-face {
  font-family: "Aeonik Arabic";
  src: url("../fonts/AeonikArabic-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Aeonik Arabic";
  src: url("../fonts/AeonikArabic-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Aeonik Arabic";
  src: url("../fonts/AeonikArabic-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Aeonik Arabic";
  src: url("../fonts/AeonikArabic-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Base document --- */
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--text-on-dark);
  background-color: var(--charcoal);
  overflow-x: hidden;
}

[lang="ar"] body,
body[dir="rtl"] {
  font-family: var(--font-ar);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: var(--z-top);
  background: var(--white);
  color: var(--charcoal);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 700;
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus {
  top: 1rem;
}

/* --- Layout primitives --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: var(--space-3xl);
  position: relative;
}
.section--tight {
  padding-block: var(--space-2xl);
}

/* Theme surfaces */
.surface-dark {
  background: var(--charcoal);
  color: var(--text-on-dark);
}
.surface-green {
  background: var(--royal-green);
  color: var(--text-on-dark);
}
.surface-light {
  background: var(--light-coral);
  color: var(--text-on-light);
}
.surface-white {
  background: var(--white);
  color: var(--text-on-light);
}

/* --- Typography helpers --- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}
[lang="ar"] .display {
  font-family: var(--font-ar);
  font-weight: 700;
}

.h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}
[lang="ar"] .h1 {
  font-family: var(--font-ar);
  font-weight: 700;
  line-height: var(--lh-snug);
}

.h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
}
[lang="ar"] .h2 {
  font-family: var(--font-ar);
  font-weight: 700;
  line-height: var(--lh-snug);
}

.h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
}
[lang="ar"] .h3 {
  font-family: var(--font-ar);
  font-weight: 700;
}

.h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-h4);
  line-height: var(--lh-snug);
}
[lang="ar"] .h4 {
  font-family: var(--font-ar);
}

.lead {
  font-size: var(--fs-body-lg);
  line-height: 1.45;
  color: var(--text-on-dark-muted);
  max-width: 56ch;
}
.surface-light .lead,
.surface-white .lead {
  color: var(--text-on-light-muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--accent);
}
[lang="ar"] .eyebrow {
  letter-spacing: normal;
}
.eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: currentColor;
  display: inline-block;
}

.text-muted {
  color: var(--text-on-dark-muted);
}
.surface-light .text-muted,
.surface-white .text-muted {
  color: var(--text-on-light-muted);
}

.accent-coral { color: var(--coral); }
.accent-green { color: var(--light-green); }
.accent-burgundy { color: var(--burgundy); }

.italic-serif {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 200;
}
[lang="ar"] .italic-serif {
  font-family: var(--font-ar);
  font-style: normal;
}

/* --- Utility --- */
.stack > * + * { margin-top: var(--space-md); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.max-60 { max-width: 60ch; }
.max-48 { max-width: 48ch; }
.hidden { display: none !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;
}
