/* ==========================================================================
   Stroke Awareness Africa — stylesheet
   Warm & approachable design system, ported from the original React/Tailwind
   build to plain CSS custom properties + utility classes.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&family=Open+Sans:wght@400;500;600;700&display=swap');

:root {
  --background: 30 50% 98%;
  --foreground: 20 30% 15%;

  --card: 30 40% 97%;
  --card-foreground: 20 30% 15%;

  --primary: 25 85% 55%;
  --primary-foreground: 0 0% 100%;

  --secondary: 145 45% 42%;
  --secondary-foreground: 0 0% 100%;

  --muted: 30 20% 92%;
  --muted-foreground: 20 15% 45%;

  --accent: 35 90% 60%;
  --accent-foreground: 20 30% 15%;

  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 100%;

  --border: 30 25% 85%;

  --radius: 0.75rem;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: 'Nunito', sans-serif;
  margin: 0 0 0.5em 0;
  line-height: 1.2;
}
p { margin: 0 0 1em 0; }
ul, ol { margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
:focus-visible {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 2px;
}

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

.font-display { font-family: 'Nunito', sans-serif; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--background) / 0.95);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.brand img { height: 2.5rem; width: auto; }
.brand-text {
  font-family: 'Nunito', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: inherit;
}
.brand-text span { color: hsl(var(--primary)); }

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}
.nav-link {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
  color: hsl(var(--muted-foreground));
  transition: background-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav-link:hover { color: hsl(var(--foreground)); background: hsl(var(--muted)); }
.nav-link.active { color: hsl(var(--primary)); background: hsl(var(--primary) / 0.1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: transparent;
  border: none;
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s;
}
.icon-btn:hover { background: hsl(var(--muted)); }
.icon-btn svg { width: 1rem; height: 1rem; }

.menu-toggle {
  display: inline-flex;
  background: transparent;
  border: none;
  padding: 0.5rem;
  border-radius: 0.5rem;
  color: hsl(var(--foreground));
}
.menu-toggle:hover { background: hsl(var(--muted)); }
.menu-toggle svg { width: 1.25rem; height: 1.25rem; }

.nav-mobile {
  display: none;
  padding: 1rem 0;
  border-top: 1px solid hsl(var(--border));
  flex-direction: column;
  gap: 0.25rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile .nav-link { padding: 0.75rem; }

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .menu-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* ---------- hero sections ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 7rem;
}
.hero-home { padding: 4rem 0 6rem; }
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, hsl(var(--background) / 0.95), hsl(var(--background) / 0.85) 55%, transparent);
}
.hero-overlay-home {
  background: linear-gradient(to right, hsl(var(--background) / 0.95), hsl(var(--background) / 0.8), hsl(var(--background) / 0.6));
}
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 42rem;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.eyebrow.eyebrow-primary { background: hsl(var(--primary) / 0.2); color: hsl(var(--primary)); }
.eyebrow.eyebrow-secondary { background: hsl(var(--secondary) / 0.15); color: hsl(var(--secondary)); }
.eyebrow.eyebrow-destructive { background: hsl(var(--destructive) / 0.15); color: hsl(var(--destructive)); }
.eyebrow.eyebrow-accent { background: hsl(var(--accent) / 0.3); color: hsl(var(--accent-foreground)); }
.eyebrow svg { width: 1rem; height: 1rem; }

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.hero p.subtitle {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  max-width: 36rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: 0.6rem;
  border: none;
  transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
  cursor: pointer;
}
.btn svg { width: 1rem; height: 1rem; }
.btn-primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.btn-primary:hover { background: hsl(var(--primary) / 0.9); transform: translateY(-1px); }
.btn-secondary { background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground)); }
.btn-secondary:hover { background: hsl(var(--secondary) / 0.9); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 2px solid currentColor;
}
.btn-ghost { background: transparent; padding: 0; color: hsl(var(--foreground)); }
.btn-ghost:hover { background: transparent; }
.btn-block { width: 100%; }

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 640px) {
  .hero-ctas { flex-direction: row; }
}

/* ---------- sections ---------- */
section { padding: 4rem 0; }
.section-tight { padding: 3rem 0; }
.bg-alt { background: hsl(var(--muted) / 0.5); }
.bg-card { background: hsl(var(--card)); }
.bg-primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.bg-secondary { background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground)); }
.bg-destructive-soft { background: hsl(var(--destructive) / 0.05); }
.bg-accent-soft { background: hsl(var(--accent) / 0.1); }
.bg-dark { background: hsl(var(--foreground)); color: hsl(var(--background)); }
.bg-gradient-hero { background: linear-gradient(135deg, hsl(var(--primary) / 0.1), hsl(var(--background)) 50%, hsl(var(--secondary) / 0.1)); }

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.75rem;
}
.section-subtitle {
  text-align: center;
  color: hsl(var(--muted-foreground));
  max-width: 42rem;
  margin: 0 auto 3rem;
}
.text-center { text-align: center; }

/* ---------- grid & cards ---------- */
.grid {
  display: grid;
  gap: 2rem;
}
.grid-3 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
.grid-tight { gap: 1rem; }
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.grid-narrow { max-width: 64rem; margin: 0 auto; }
.grid-mid { max-width: 56rem; margin: 0 auto; }
.grid-wide { max-width: 72rem; margin: 0 auto; }

.card {
  background: hsl(var(--card));
  border-radius: var(--radius);
  border: none;
  box-shadow: 0 4px 16px hsl(20 30% 15% / 0.06);
  transition: box-shadow 0.25s, border-color 0.25s;
}
.card-pad { padding: 1.75rem 1.5rem; }
.card:hover { box-shadow: 0 12px 28px hsl(20 30% 15% / 0.12); }

.stat-card { text-align: center; padding: 2rem 1.5rem 1.5rem; }
.stat-icon {
  height: 4rem; width: 4rem;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.stat-icon svg { width: 2rem; height: 2rem; }
.stat-number { font-size: 1.6rem; font-weight: 800; margin-bottom: 0.25rem; }
.stat-label { font-weight: 700; margin-bottom: 0.25rem; }
.stat-desc { font-size: 0.9rem; color: hsl(var(--muted-foreground)); margin: 0; }

.pillar-card {
  padding: 2rem 1.5rem 1.5rem;
  border: 2px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.pillar-card:hover { box-shadow: 0 12px 28px hsl(20 30% 15% / 0.12); }
.pillar-icon {
  height: 3.5rem; width: 3.5rem;
  border-radius: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
}
.pillar-icon svg { width: 1.75rem; height: 1.75rem; }
.pillar-card h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 0.75rem; }
.pillar-card p { color: hsl(var(--muted-foreground)); }
.pillar-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 700; background: none; border: none; padding: 0; font-size: 0.95rem;
  color: hsl(var(--foreground));
}
.pillar-link svg { width: 1rem; height: 1rem; transition: transform 0.2s; }
.pillar-card:hover .pillar-link svg { transform: translateX(3px); }

.info-card {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.5rem;
}
.info-card-icon {
  height: 3.5rem; width: 3.5rem; flex-shrink: 0;
  border-radius: 0.9rem;
  display: flex; align-items: center; justify-content: center;
}
.info-card-icon svg { width: 1.75rem; height: 1.75rem; }
.info-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 0.4rem; }
.info-card p { color: hsl(var(--muted-foreground)); font-size: 0.95rem; margin: 0; }

.tip-card { padding: 1.5rem; }
.tip-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.75rem; }
.tip-icon {
  height: 3rem; width: 3rem; flex-shrink: 0;
  border-radius: 999px; background: hsl(var(--secondary) / 0.1);
  display: flex; align-items: center; justify-content: center;
}
.tip-icon svg { width: 1.5rem; height: 1.5rem; color: hsl(var(--secondary)); }
.tip-card h3 { font-size: 1.15rem; font-weight: 800; margin: 0; }
.tip-card p { color: hsl(var(--muted-foreground)); margin: 0; }

.simple-card { display: flex; align-items: center; gap: 1rem; padding: 1.25rem; }
.simple-icon {
  height: 3rem; width: 3rem; flex-shrink: 0; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
}
.simple-icon svg { width: 1.5rem; height: 1.5rem; }
.simple-card p { margin: 0; font-weight: 600; }

/* F.A.S.T. cards */
.fast-card { overflow: hidden; text-align: center; }
.fast-banner { padding: 1.5rem 0; text-align: center; }
.fast-letter { font-family: 'Nunito', sans-serif; font-size: 3rem; font-weight: 800; }
.fast-body { padding: 1.5rem; }
.fast-body svg { width: 2.5rem; height: 2.5rem; margin: 0 auto 1rem; color: hsl(var(--muted-foreground)); }
.fast-body h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 0.5rem; }
.fast-body p { font-size: 0.9rem; color: hsl(var(--muted-foreground)); margin: 0; }
.fast-f { background: hsl(var(--destructive)); color: hsl(var(--destructive-foreground)); }
.fast-a { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.fast-s { background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground)); }
.fast-t { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }

/* action list */
.action-card {
  border: 2px solid hsl(var(--destructive) / 0.2);
  padding: 2rem;
  max-width: 48rem;
  margin: 0 auto;
}
.action-list { list-style: none; display: flex; flex-direction: column; gap: 1.25rem; }
.action-list li { display: flex; align-items: flex-start; gap: 1rem; }
.action-num {
  height: 2rem; width: 2rem; flex-shrink: 0;
  border-radius: 999px; background: hsl(var(--destructive)); color: hsl(var(--destructive-foreground));
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.action-list p { margin: 0; font-size: 1.05rem; padding-top: 0.15rem; }
.action-title-wrap { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-bottom: 2rem; }
.action-title-wrap svg { width: 2rem; height: 2rem; color: hsl(var(--destructive)); }

/* journey card */
.journey-card {
  max-width: 48rem; margin: 0 auto; text-align: center; padding: 2.5rem 2rem;
  background: linear-gradient(to right, hsl(var(--primary) / 0.05), hsl(var(--secondary) / 0.05));
}
.journey-card svg { width: 3rem; height: 3rem; color: hsl(var(--primary)); margin: 0 auto 1rem; }
.journey-card h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 1rem; }
.journey-card p { font-size: 1.1rem; color: hsl(var(--muted-foreground)); margin: 0; }

/* download cta */
.download-cta { text-align: center; }
.download-cta svg { width: 3rem; height: 3rem; margin: 0 auto 1rem; }
.download-cta h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 1rem; }
.download-cta p { max-width: 34rem; margin: 0 auto 2rem; opacity: 0.85; }

/* next step */
.next-step { text-align: center; }
.next-step .eyebrow-label { color: hsl(var(--muted-foreground)); margin-bottom: 0.5rem; }
.next-step h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 1.5rem; }

/* contact */
.contact-card { max-width: 26rem; margin: 0 auto; text-align: center; padding: 2rem; }
.contact-icon {
  height: 3rem; width: 3rem; border-radius: 999px; background: hsl(var(--primary) / 0.1);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem;
}
.contact-icon svg { width: 1.5rem; height: 1.5rem; color: hsl(var(--primary)); }
.contact-card h3 { font-weight: 800; margin-bottom: 0.5rem; }
.contact-card a { color: hsl(var(--muted-foreground)); }
.contact-card a:hover { color: hsl(var(--primary)); }

.form-card { padding: 2rem; }
.form-card h2 { display: flex; align-items: center; gap: 0.5rem; font-size: 1.25rem; font-weight: 800; }
.form-card h2 svg { width: 1.25rem; height: 1.25rem; color: hsl(var(--primary)); }
.form-desc { color: hsl(var(--muted-foreground)); margin-bottom: 1.5rem; font-size: 0.95rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.4rem; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 1px;
  border-color: hsl(var(--primary));
}
.field-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.form-success { text-align: center; padding: 2rem 0; }
.form-success svg { width: 4rem; height: 4rem; color: hsl(var(--secondary)); margin: 0 auto 1rem; }
.form-success h3 { font-weight: 800; margin-bottom: 0.5rem; }
.form-success p { color: hsl(var(--muted-foreground)); }
.hidden { display: none !important; }

/* footer */
.site-footer { background: hsl(var(--foreground)); color: hsl(var(--background)); }
.footer-grid {
  display: grid; gap: 2rem; padding: 3rem 0;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-brand p { color: hsl(var(--background) / 0.7); font-size: 0.9rem; margin-top: 1rem; }
.footer-col h4 { font-weight: 700; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { color: hsl(var(--background) / 0.7); font-size: 0.9rem; }
.footer-col a:hover { color: hsl(var(--primary)); }
.footer-bottom {
  border-top: 1px solid hsl(var(--background) / 0.2);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.875rem;
  color: hsl(var(--background) / 0.6);
}

/* language badge fallback icon */
.lang-code { text-transform: uppercase; }
