/* ==========================================================================
   MENA design system — main.css
   Tokens are fixed per project spec.
   ========================================================================== */

:root {
  --green-primary: #1E7B34;
  --green-primary-h: #17632A;
  --green-secondary: #4FA85C;
  --green-dark: #0B2C14;
  --cream: #FAF7F0;
  --surface: #FFFFFF;
  --ink: #1F2937;
  --muted: #6B7280;
  --border: #E5E7EB;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, .05), 0 2px 4px -2px rgba(0, 0, 0, .05);
  --shadow-lg: 0 20px 40px -16px rgba(11, 44, 20, .25);
  --container: 1200px;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-ethiopic: 'Noto Sans Ethiopic', 'Plus Jakarta Sans', system-ui, sans-serif;
}

html[lang="am"] body {
  font-family: var(--font-ethiopic);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--green-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; color: var(--ink); margin: 0 0 .75rem; }
p { margin: 0 0 1rem; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.container.narrow { max-width: 820px; }

.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--green-primary);
  color: #fff;
  padding: .5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: .5rem; top: .5rem; }

.muted { color: var(--muted); }
.placeholder { color: var(--muted); font-style: italic; }

/* ------------------------------------------------------------- buttons */

.btn {
  display: inline-block;
  padding: .7rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: 600 1rem/1.2 var(--font-sans);
  cursor: pointer;
  text-align: center;
  transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; }

.btn--primary {
  background: var(--green-primary);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn--primary:hover { background: var(--green-primary-h); }

.btn--lg { padding: .95rem 1.9rem; font-size: 1.05rem; }
.btn--sm { padding: .4rem .85rem; font-size: .875rem; }
.btn--block { display: block; width: 100%; }

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--green-primary); color: var(--green-primary); }

.btn--danger {
  background: #fff;
  border-color: #FCA5A5;
  color: #B91C1C;
}
.btn--danger:hover { background: #FEF2F2; }

.inline-form { display: inline; }

/* -------------------------------------------------------------- badges */

.badge {
  display: inline-block;
  padding: .3rem .8rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.badge--wfd {
  background: #E8F5EB;
  color: #14532D;
  border: 1px solid #A7F3CF;
}

/* ------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 240, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand__mark { font-size: 1.5rem; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-size: 1.1rem; color: var(--green-primary); letter-spacing: .06em; }
.brand__text small { color: var(--muted); font-size: .72rem; }

.site-nav { flex: 1; }
.site-nav ul {
  display: flex;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: .95rem;
}
.site-nav a:hover { color: var(--green-primary); text-decoration: none; }

.site-header__actions { display: flex; align-items: center; gap: .9rem; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-weight: 600;
  font-size: .9rem;
}
.lang-switch__link { color: var(--muted); padding: .25rem .45rem; border-radius: 6px; }
.lang-switch__link:hover { color: var(--green-primary); text-decoration: none; }
.lang-switch__link.is-active { background: var(--green-primary); color: #fff; }
.lang-switch__sep { color: var(--border); }

/* ------------------------------------------------------------- footer */

.site-footer {
  background: var(--green-dark);
  color: #C7D8CB;
  margin-top: 4rem;
  padding: 3rem 0 2rem;
}
.site-footer a { color: #9FE0AB; }
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.site-footer strong { color: #fff; font-size: 1.1rem; }
.site-footer__meta { text-align: right; font-size: .92rem; }
.site-footer p { margin-bottom: .35rem; }

/* ------------------------------------------------------------ generic */

.section { padding: 4.5rem 0; position: relative; }

.section__heading {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: var(--green-dark);
}
.section__heading--center { text-align: center; }

.section__intro {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
}
.section__intro p { margin-bottom: .75rem; }

.prose { font-size: 1.06rem; color: var(--ink); }
.prose p { margin-bottom: 1.15rem; }
.prose strong { color: var(--green-dark); }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.5rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .45rem; }
.prose--center { text-align: center; }

.disclaimer {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  background: #F3F9F4;
  border: 1px solid #CFE7D4;
  border-left: 4px solid var(--green-primary);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-top: 1.75rem;
  font-size: .95rem;
  color: #33513B;
}
.disclaimer p { margin: 0; }
.disclaimer__mark {
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--green-primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: .85rem;
  font-weight: 700;
}

/* ------------------------------------------------------------- alerts */

.alert {
  border-radius: var(--radius);
  padding: .9rem 1.2rem;
  margin-bottom: 1.25rem;
  font-size: .95rem;
}
.alert ul { margin: 0; padding-left: 1.1rem; }
.alert--success { background: #ECFDF3; border: 1px solid #A7F3CF; color: #065F46; }
.alert--error { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }
.alert--info { background: #EFF6FF; border: 1px solid #BFDBFE; color: #1E40AF; }

@media (max-width: 900px) {
  .site-nav { display: none; }
  .site-footer__meta { text-align: left; }
}

@media (max-width: 640px) {
  .section { padding: 3rem 0; }
  .site-header__inner { gap: .75rem; }
  .site-header .badge--wfd { display: none; }
}
