/* ============================================================
   Go Culture Africa - main.css
   Tokens, reset, typography, layout primitives.
   Reference layout (Neatenn style guide) reskinned to GCA's
   earthy brand: forest green, brown, sparing red on warm cream.
   ============================================================ */

:root {
  /* Surfaces */
  --surface:    #FBFAF7;
  --surface-2:  #F3EFE9;
  --paper:      #FFFFFF;
  --line:       #E6DFD4;

  /* Ink */
  --ink:        #241B14;
  --ink-soft:   #4A3F35;
  --muted:      #6B5E52;

  /* Brand */
  --brand:      #009A12;
  --brand-700:  #047A12;
  --brand-100:  #E3F3E2;
  --brown:      #764526;
  --brown-700:  #5E371E;
  --brown-900:  #2B1A0F;
  --accent:     #FC0100;

  /* Type - Roboto Condensed across the whole site */
  --font-sans: "Roboto Condensed", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Roboto Condensed", system-ui, sans-serif;

  /* Spacing scale */
  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6.5rem;

  /* Layout */
  --container: 1200px;
  --radius:    18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(36,27,20,.06), 0 4px 16px rgba(36,27,20,.05);
  --shadow-md: 0 10px 40px rgba(36,27,20,.10);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--surface);
  color: var(--ink);
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
input, textarea, select, button { font-family: inherit; }

/* ---------- Typography (style-guide scale, fluid) ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.035em;
  color: var(--ink);
}
.display {
  font-size: clamp(2.6rem, 7.5vw, 5.6rem);
  line-height: .98;
  letter-spacing: -.05em;
  font-weight: 500;
}
h1, .h1 {
  font-size: clamp(2.4rem, 6.2vw, 4.6rem);
  line-height: .96;
  letter-spacing: -.05em;
}
h2, .h2 {
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  line-height: 1.04;
  letter-spacing: -.045em;
}
h3, .h3 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}
h4, .h4 { font-size: clamp(1.25rem, 2vw, 1.65rem); line-height: 1.18; letter-spacing: -.03em; }
h5, .h5 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -.03em; }
h6, .h6 { font-size: 1.15rem; line-height: 1.3; letter-spacing: -.03em; }

p { color: var(--ink-soft); }
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.55;
  color: var(--ink-soft);
  letter-spacing: -.015em;
}
.muted { color: var(--muted); }

/* Eyebrow / kicker label (IBM Plex Mono) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brown);
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.eyebrow.on-dark { color: rgba(255,255,255,.7); }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}
.section { padding-block: clamp(3.5rem, 8vw, var(--space-7)); }
.section-sm { padding-block: clamp(2.5rem, 5vw, var(--space-6)); }
.section-tint { background: var(--surface-2); }
.section-paper { background: var(--paper); }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 1rem; }
.section-head p { margin-top: 1rem; }

.grid { display: grid; gap: clamp(1.1rem, 2.5vw, 1.8rem); }
.cols-2 { grid-template-columns: 1fr; }
.cols-3 { grid-template-columns: 1fr; }
.cols-4 { grid-template-columns: 1fr; }

.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.flow > * + * { margin-top: 1.1rem; }

/* Accessibility */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); will-change: opacity, transform; }
.reveal.is-in { opacity: 1; transform: none; }

/* Gentle image reveal inside split / hero media */
.split-media img, .stay-figure img { transition: transform 1.1s var(--ease); }
.reveal.split-media:not(.is-in) img,
.reveal .split-media:not(.is-in) img { transform: scale(1.06); }

/* Headline clip-reveal for hero + page-hero titles */
.title-reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.title-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .title-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  [data-parallax] { transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive grids ---------- */
@media (min-width: 700px) {
  .cols-2 { grid-template-columns: repeat(2, 1fr); }
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .cols-3 { grid-template-columns: repeat(3, 1fr); }
  .cols-4 { grid-template-columns: repeat(4, 1fr); }
}
