/* ============================================================
   BASE.CSS — Design tokens, reset, typography
   MOBILE FIRST: base styles = mobile, min-width queries scale up
   Waterlight Africa Investments
   ============================================================ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  /* Colors */
  --color-navy:            #0d1b2a;
  --color-navy-mid:        #131f2e;
  --color-navy-card:       #182334;
  --color-navy-light:      #1e2d40;
  --color-gold:            #c49a1a;
  --color-gold-light:      #d4aa2a;
  --color-gold-pale:       rgba(196, 154, 26, 0.12);
  --color-white:           #ffffff;
  --color-off-white:       #f7f8fa;
  --color-text-body:       #4a5568;
  --color-text-muted-dark: rgba(255, 255, 255, 0.60);
  --color-border-light:    rgba(255, 255, 255, 0.09);
  --color-border-card:     #e2e8f0;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Type scale — mobile first (smaller base, scales up) */
  --text-xs:   11px;
  --text-sm:   13px;
  --text-base: 15px;
  --text-md:   17px;
  --text-lg:   20px;
  --text-xl:   22px;
  --text-2xl:  26px;
  --text-3xl:  32px;
  --text-hero: 36px;   /* grows via clamp at wider breakpoints */

  /* Spacing — mobile first (tighter) */
  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  40px;
  --space-xl:  56px;
  --space-2xl: 72px;

  /* Layout */
  --container-max: 1160px;
  --container-pad: 20px;   /* tighter on mobile */
  --navbar-h:      58px;

  /* Radii */
  --radius-sm:  4px;
  --radius:     8px;
  --radius-md:  12px;
  --radius-lg:  18px;
  --radius-pill:50px;

  /* Shadows */
  --shadow-sm:   0 1px 4px rgba(0,0,0,0.06);
  --shadow-md:   0 4px 20px rgba(13,27,42,0.10);
  --shadow-lg:   0 8px 40px rgba(13,27,42,0.16);
  --shadow-dark: 0 2px 20px rgba(0,0,0,0.40);

  /* Transitions */
  --transition-fast: 0.18s ease;
  --transition-base: 0.26s ease;
  --transition-slow: 0.44s ease;
}

/* Tablet (640px+) */
@media (min-width: 640px) {
  :root {
    --container-pad: 24px;
    --text-hero: 44px;
    --text-2xl:  30px;
    --text-3xl:  38px;
    --space-xl:  64px;
    --space-2xl: 86px;
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  :root {
    --container-pad: 28px;
    --navbar-h:      62px;
    --text-hero: clamp(44px, 6vw, 68px);
    --text-2xl:  clamp(28px, 3.5vw, 38px);
    --text-3xl:  clamp(34px, 4.5vw, 52px);
    --space-xl:  72px;
    --space-2xl: 96px;
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Prevent layout shift from scrollbar appearing */
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-navy);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* Larger tap targets on mobile */
  -webkit-tap-highlight-color: transparent;
}

img, video, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  color: var(--color-navy);
}

.dark-section h1,
.dark-section h2,
.dark-section h3,
.dark-section h4 { color: var(--color-white); }

p { color: var(--color-text-body); line-height: 1.75; }
.dark-section p { color: var(--color-text-muted-dark); }

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

/* Eyebrow / label */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 10px;
}

/* Section heading block */
.section-head { margin-bottom: var(--space-lg); }
.section-head h2 {
  font-size: var(--text-2xl);
  margin-bottom: 10px;
}
.section-head p {
  font-size: var(--text-base);
  line-height: 1.75;
  max-width: 560px;
}
.section-head.centered { text-align: center; }
.section-head.centered p { margin: 0 auto; }

/* Section padding */
.section-pad    { padding: var(--space-xl) 0; }
.section-pad-lg { padding: var(--space-2xl) 0; }

/* Background helpers */
.bg-white      { background: var(--color-white); }
.bg-off-white  { background: var(--color-off-white); }
.bg-navy       { background: var(--color-navy); }
.bg-navy-mid   { background: var(--color-navy-mid); }

/* 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;
}

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