/* =========================================================================
   Micro Jobs Africa — base
   Reset, typography, layout shell, shared decoration and motion.
   Mobile-first: the small-screen rules are the defaults.
   ====================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Anchored sections clear the sticky header */
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-muted);
  background: var(--c-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--c-heading);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
}

p  { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a  { color: inherit; text-decoration: none; }

img,
svg { display: block; max-width: 100%; }

button,
input {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--c-green-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Visible to screen readers only */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 20px;
  background: var(--c-forest);
  color: #fff;
  border-radius: 0 0 var(--r-md) 0;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------------- shell */

.shell {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 20px;
}

.section { position: relative; }

/* Generous mobile rhythm, tightened up on desktop */
.section__inner { padding-block: 64px; }

/* ------------------------------------------------------------ headings */

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.section-head__title {
  font-size: clamp(1.75rem, 6.2vw, 2.5rem);
  max-width: 20ch;
}

.section-head--light .section-head__title { color: #fff; }

/* --------------------------------------------------------- decorations */

/* Dotted grid used behind the about / testimonial blocks */
.dots {
  position: absolute;
  background-image: radial-gradient(currentColor 1.6px, transparent 1.6px);
  background-size: 18px 18px;
  color: rgba(0, 132, 42, 0.22);
  pointer-events: none;
}

/* Soft radial wash behind imagery */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(46px);
  pointer-events: none;
  z-index: 0;
}

/* Full-bleed wave divider */
.wave {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

/* ------------------------------------------------------------- motion */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1),
              transform .7s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  [data-reveal] { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ desktop */

@media (min-width: 720px) {
  .section__inner { padding-block: 80px; }
}

@media (min-width: 1024px) {
  .shell { padding-inline: 32px; }
  .section__inner { padding-block: 96px; }

  .section-head__title { font-size: 2.5rem; }
}
