/* asc impact, Republic of the Congo
   One stylesheet for every page. Matches asc-impact.com:
   Titillium Web, green #2E614E, gold #BF9004, khaki #C0B59B, pale green #E2E9E7. */

/* ---------- Base ---------- */
:root {
  --green: #2E614E;
  --gold: #BF9004;
  --khaki: #C0B59B;
  --pale: #E2E9E7;
  --mint: #F1F8F6;
  --grey: #555555;
  --line: #dde4e1;
  --font: "Titillium Web", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17.6px;
  line-height: 1.9;
  color: #000;
  background: #fff;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); }

h1, h2, h3 {
  color: var(--green);
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
}
h2 { font-size: 28px; margin: 0 0 24px; }
h3 { font-size: 20px; margin: 32px 0 8px; }
p { margin: 0 0 16px; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.narrow > * { max-width: 820px; } /* shorter lines, same left edge as the rest of the page */

/* Contact detail or address that is still missing */
.placeholder { padding: 0 4px; background: #eef1f0; color: var(--grey); }
.center { text-align: center; }
.small { font-size: 15px; color: var(--grey); }
.mt { margin-top: 40px; }
.mt-small { margin-top: 12px; }

/* ---------- Header ---------- */
.site-header { background: #fff; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
}
.logo img { width: 140px; }

.header-links { display: flex; align-items: center; gap: 22px; }
.header-links a { color: var(--green); text-decoration: none; text-transform: uppercase; font-size: 16px; }
.header-links a[aria-current] { color: var(--gold); }

.menu-toggle { background: none; border: 0; padding: 6px; cursor: pointer; }
.menu-toggle span { display: block; width: 34px; height: 2px; margin: 7px 0; background: var(--grey); }

/* Menu panel, opened by the hamburger button */
.site-nav { display: none; padding: 8px 0 40px; border-bottom: 1px solid var(--line); }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; columns: 2; }
.site-nav li { break-inside: avoid; margin-bottom: 14px; }
.site-nav a { text-decoration: none; text-transform: uppercase; }
.nav-main { font-size: 26px; font-weight: 600; color: var(--green); }
.nav-sub { display: block; font-size: 20px; color: var(--grey); }
.site-nav a[aria-current] { color: var(--gold); }

/* ---------- Banner photo with title ---------- */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 450px;
  padding: 0 24px;
  text-align: center;
  background-color: var(--green);
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 0 2000px rgba(0, 0, 0, 0.2); /* darkens the photo slightly so the title stays readable */
}
.hero h1 {
  margin: 0;
  color: #fff;
  font-size: 44px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

/* Title on pages without a banner photo */
.page-title { padding: 48px 0 0; text-align: center; border-top: 1px solid var(--line); }
.page-title h1 { margin: 0; font-size: 32px; }

/* Tab buttons under the banner (as on the asc-impact.com portfolio pages) */
.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.tabs a {
  display: block;
  padding: 8px;
  border-radius: 6px;
  background: var(--khaki);
  color: #fff;
  font-size: 18px;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
}
.tabs a[aria-current] { background: var(--gold); }

/* Line with the key data of a project */
.keyline { margin: 24px 0 0; text-align: center; color: var(--green); font-size: 20px; font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.band-pale { background: var(--pale); }
.band-mint { background: var(--mint); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.two-col.middle { align-items: center; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.three-col h3 { margin-top: 0; }

/* Opening sentence of a page or section: larger, green */
.statement { font-size: 20px; line-height: 1.6; color: var(--green); }

/* Boxes: pale green on white sections, white on coloured sections */
.boxes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.boxes-3 { grid-template-columns: repeat(3, 1fr); }
.box { padding: 32px; border-radius: 6px; background: var(--pale); }
.band-pale .box, .band-mint .box { background: #fff; }
.box h3 { margin-top: 0; }
.box p { line-height: 1.7; }
.box p:last-child, .box ul:last-child { margin-bottom: 0; }
.box ul { margin: 0; padding: 0; list-style: none; }
.box li { position: relative; margin-bottom: 10px; padding-left: 20px; line-height: 1.6; }
.box li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* Short label on its own line above a paragraph */
.label { margin: 0 0 2px; font-weight: 600; color: var(--green); }

/* Key figures in a row */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; align-items: start; }
.facts p { margin: 0; }
.figure { display: block; font-size: 28px; font-weight: 600; line-height: 1.3; color: var(--green); }

/* Heading on the left, text on the right, divided by thin lines */
.rows { border-top: 1px solid #c9d3cf; }
.row { display: grid; grid-template-columns: 1fr 2fr; gap: 56px; padding: 32px 0; border-bottom: 1px solid #c9d3cf; }
.row h3 { margin: 4px 0 0; }
.row p:last-child { margin-bottom: 0; }

/* Text link with a little more weight */
.link { font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--gold);
  border-radius: 6px;
  background: var(--gold);
  color: #F8F9FA;
  font-family: inherit;
  font-size: 18px;
  line-height: 1.4;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}
.btn:hover { background: #a67d02; }

/* ---------- Photos ---------- */
.photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Photo with a short caption; two side by side with .photo-pair */
.photo-figure { margin: 16px 0 0; }
.photo-figure figcaption { margin-top: 6px; font-size: 14px; line-height: 1.4; color: var(--grey); }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* People: name and role. Add a 230 x 300 portrait above the name once photos exist. */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px 40px; margin: 0; padding: 0; list-style: none; }
.people li { padding-top: 12px; border-top: 1px solid #c9d3cf; }
.person-name { display: block; font-weight: 600; color: var(--green); }
.person-role { display: block; color: var(--grey); line-height: 1.5; }

/* ---------- Content blocks ---------- */
.table-wrap { overflow-x: auto; margin: 0 0 40px; }
table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 16px; line-height: 1.6; }
th { padding: 10px 12px; text-align: left; font-weight: 600; color: #fff; background: var(--green); }
td { padding: 12px; vertical-align: top; border-bottom: 1px solid var(--line); }
td:first-child { white-space: nowrap; font-weight: 600; color: var(--green); }

.downloads { padding-left: 20px; }
.downloads li { margin-bottom: 8px; }

.steps { padding-left: 24px; }
.steps li { margin-bottom: 12px; padding-left: 6px; }
.steps li::marker { color: var(--green); font-weight: 700; }

.form label { display: block; margin: 16px 0 6px; font-weight: 600; }
.form textarea,
.form input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #b9c5c0;
  border-radius: 6px;
  font: inherit;
}
.form textarea { min-height: 160px; }
.form .btn { margin-top: 16px; }
.hidden-field { position: absolute; left: -9999px; }
.form .inline-label { display: inline; margin: 0; font-weight: 400; }

details { padding: 16px 0; border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-size: 20px; font-weight: 600; color: var(--green); }
details p { margin: 12px 0 0; }

.post { padding: 20px 0; border-bottom: 1px solid var(--line); }
.post-date { font-weight: 600; color: var(--green); }
.post h3 { margin: 2px 0 4px; font-size: 18px; color: #000; text-transform: none; }
.post-tags { font-size: 15px; color: var(--grey); }
.year { margin: 48px 0 0; }

/* ---------- Footer ---------- */
.site-footer { padding: 32px 0; background: var(--green); color: #fff; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-inner img { width: 140px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px 48px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: #fff; text-decoration: none; }

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  .section { padding: 48px 0; }
  .two-col, .three-col, .row { grid-template-columns: 1fr; gap: 12px 28px; }
  .two-col, .three-col { gap: 28px; }
  .boxes, .boxes-3 { grid-template-columns: 1fr; gap: 16px; }
  .box { padding: 24px; }
  .facts { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hero { height: 280px; }
  .hero h1 { font-size: 30px; }
  .header-links .wide-only { display: none; }
  .logo img { width: 110px; }
  .site-nav ul { columns: 1; }
  .footer-inner { justify-content: center; text-align: center; }
  .footer-links { justify-content: center; gap: 12px 28px; }
}

/* ---------- Review notes (prototype only, delete this block before publishing) ---------- */
.review-toggle {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  padding: 8px 14px;
  border: 0;
  border-radius: 6px;
  background: #3b2a00;
  color: #fde9b0;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.flag {
  margin: 12px 0;
  padding: 8px 12px;
  background: #fff6dc;
  border-left: 3px solid #c0392b;
  color: #5b2a00;
  font-size: 14px;
  font-style: normal;
  line-height: 1.5;
  text-align: left;
  text-transform: none;
  text-shadow: none;
}
.flag::before { content: "To do: "; font-weight: 700; color: #c0392b; }
.flag.suggest::before { content: "Suggested change to the brief text: "; }
span.flag { display: inline; padding: 1px 6px; }
.new { background: #e7effa; box-shadow: inset 0 -2px 0 #3d6fc4; }

.hide-flags .flag { display: none; }
.hide-flags .new { background: none; box-shadow: none; }

/* ---------- Version 1 additions (appended by _build_version1/rebuild.sh) ---------- */

/* Highlighted sentences in the style of asc-impact.com ("WE CREATE IMPACT & VALUE"): green capitals, semi-bold, tight lines */
.statement {
  font-size: 20.8px;
  font-weight: 600;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--green);
}

/* Header with six links: a little tighter; on smaller screens only Consultation, Benefits, Dialogue and grievances plus the menu */
.header-links { gap: 18px; }
@media (max-width: 1080px) {
  .header-links .wide-only { display: none; }
}
/* Phones: Consultation, Benefits and Dialogue stay visible, so the links get smaller and may wrap */
@media (max-width: 640px) {
  .header-links { gap: 6px 12px; flex-wrap: wrap; justify-content: flex-end; }
  .header-links a { font-size: 13px; }
}

/* List of difficulties: problem and response side by side */
.challenges { margin: 0; padding: 0; list-style: none; }
.challenges li { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid #c9d3cf; }
.challenges li:first-child { border-top: 1px solid #c9d3cf; }
.challenges .label { margin-bottom: 4px; }
.challenges p { margin: 0; line-height: 1.6; }
@media (max-width: 860px) {
  .challenges li { grid-template-columns: 1fr; gap: 8px; }
}

/* Congo logo (upright, from asc-impact_Logo_Congo.pdf) instead of the wide asc impact logo */
.logo img { width: auto; height: 80px; }
@media (max-width: 760px) {
  .logo img { width: auto; height: 64px; }
}

/* Photos with captions: the same space above and below everywhere, so text never sits right under a caption */
.photo-figure { margin: 24px 0; }
.photo-figure:last-child { margin-bottom: 0; }
