/* ─────────────────────────────────────────────────────────────────────────
   QuickRide Africa — Base Reset & Typography Utilities
───────────────────────────────────────────────────────────────────────── */

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

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

body {
  font-family: var(--f-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--c-on-light);
  background: var(--c-pearl);
  -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     { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }
fieldset   { border: none; padding: 0; }

/* ─── Container ──────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* ─── Section wrappers ───────────────────────────────────────────────────── */
.section {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
}
.section--sm {
  padding-top: var(--section-py-sm);
  padding-bottom: var(--section-py-sm);
}

/* Dark section skins */
.section--dark { background: var(--c-ink); }
.section--midnight { background: var(--c-midnight); }
.section--navy { background: var(--c-navy); }

/* Light section skins */
.section--light  { background: var(--c-pearl); }
.section--bone   { background: var(--c-bone); }

/* Gold horizontal rule between sections */
.section-rule {
  height: 1px;
  background: var(--c-gold-border);
  border: none;
  margin: 0;
}

/* ─── Typography utilities ───────────────────────────────────────────────── */

/* Display — hero headline only */
.display {
  font-family: var(--f-display);
  font-weight: 300;
  font-style: normal;
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-size: clamp(3rem, 8vw, 6rem);
  text-wrap: balance;
}

/* Section headings */
.heading {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.15;
  font-size: clamp(1.875rem, 4vw, 3rem);
  text-wrap: balance;
}

.heading--sm {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
  font-size: clamp(1.375rem, 2.5vw, 1.875rem);
  text-wrap: balance;
}

/* Eyebrow label — always gold */
.eyebrow {
  font-family: var(--f-label);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-gold);
}

/* Body copy scales */
.body-lead {
  font-size: clamp(var(--fs-base), 1.5vw, var(--fs-md));
  line-height: 1.85;
}

/* Colour helpers */
.text-gold    { color: var(--c-gold); }
.text-pearl   { color: var(--c-pearl); }
.text-slate   { color: var(--c-slate); }
.text-muted   { color: var(--c-muted); }
.text-on-dark { color: var(--c-on-dark); }

/* Section header block (eyebrow + heading + optional lead) */
.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-header .eyebrow {
  margin-bottom: var(--sp-3);
}
.section-header .heading {
  margin-bottom: var(--sp-5);
}
.section-header .body-lead {
  max-width: 55ch;
}

/* Centered variant */
.section-header--center {
  text-align: center;
}
.section-header--center .body-lead {
  margin-left: auto;
  margin-right: auto;
}

/* ─── Screen reader only ─────────────────────────────────────────────────── */
.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;
}

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