/* peacro.africa pages. The header and footer are in chrome.css (shared with other Peacro sites). */

:root {
  --teal: #1F5E57; --teal-dark: #123E39; --teal-hero: #256652; --orange: #E07B24; --orange-text: #A6520F;
  --ink: #1B2B29; --muted: #44524F; --muted-2: #5A6966; --line: #E6ECEA; --soft: #F4F8F7; --mint: #EAF3F1; --cream: #FDF1E6;
  --radius: 24px; --gut: clamp(20px, 7vw, 112px); --wrap: calc(1160px + 2 * var(--gut));
  --sans: "Peacro Inter", Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Peacro Display", "Peacro Inter", Inter, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: #FFFFFF; color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; color: var(--teal); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.band { padding: 88px 0; }
.band-tight { padding: 48px 0; }
.band-soft { background: var(--soft); }
.band-gap { padding-top: 88px; padding-bottom: 88px; }
.band:not(.band-soft) + .band:not(.band-soft) { padding-top: 0; }

.eyebrow { margin: 0 0 16px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-text); }
.eyebrow span { margin: 0 .7em; font-weight: 400; }
.h2 { margin: 0 0 12px; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.12; }
.sub { margin: 0 0 40px; max-width: 640px; font-size: 18px; color: var(--muted); }
.lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px; border-radius: 999px; font-size: 16px; font-weight: 600; text-decoration: none; transition: background-color .15s, color .15s; }
.btn-fill { background: var(--teal); color: #FFFFFF; }
.btn-fill:hover { background: var(--teal-dark); color: #FFFFFF; }
.btn-line { border: 1.5px solid var(--teal); color: var(--teal); background: #FFFFFF; }
.btn-line:hover { background: var(--mint); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions-center { justify-content: center; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 88px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero-copy { container-type: inline-size; }
/* Always three lines: each line is its own block, and the size follows the column width (the longest line,
   "communities that thrive", is about 10 times the font size, with room to spare). */
.hero h1 { margin: 0 0 24px; font-size: clamp(34px, 4.2vw, 60px); font-size: clamp(26px, 9.3cqi, 64px); line-height: 1.06; }
.hero h1 span { display: block; white-space: nowrap; }
.hero .lead { margin: 0 0 36px; max-width: 560px; }
.hero .actions { margin-bottom: 28px; }
.hero-note { margin: 0; font-size: 15px; color: var(--muted); }
.hero-note a { font-weight: 600; }
.hero-panel { position: relative; aspect-ratio: 1 / 1.02; border-radius: 32px; background: var(--teal-hero); overflow: hidden; }
.hero-photo { position: absolute; left: -11%; bottom: 0; width: 98%; max-width: none; height: auto; display: block; }

/* ---------- cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; gap: 10px; padding: 32px; border-radius: var(--radius); background: #FFFFFF; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.band-soft .card { border-color: transparent; }
.card-link { transition: box-shadow .15s, transform .15s; }
.card-link:hover { color: var(--ink); box-shadow: 0 12px 30px rgba(10, 40, 36, .1); transform: translateY(-2px); }
.tag { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-text); }
.card-title { font-family: var(--display); font-size: 23px; font-weight: 600; line-height: 1.25; color: var(--teal); }
.card-body { font-size: 15.5px; line-height: 1.6; color: var(--muted); flex: 1; }
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 15px; font-weight: 600; color: var(--teal); }

/* ---------- inner pages ---------- */
.page-head { padding: 72px 0 40px; }
.page-head h1 { margin: 0 0 16px; font-size: clamp(38px, 4.4vw, 58px); line-height: 1.08; max-width: 900px; }
.page-head .lead { margin: 0; max-width: 680px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 40px; }
.chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid #D5DFDC; color: var(--ink); text-decoration: none; font-weight: 500; }
.chips a:hover { border-color: var(--teal); color: var(--teal); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 56px; align-items: start; }
.prose { font-size: 17.5px; line-height: 1.7; color: var(--muted); }
.prose p { margin: 0 0 18px; }
.prose h2 { margin: 36px 0 10px; font-size: 24px; }
.prose-narrow { max-width: 760px; }
.cta { text-align: center; }
.cta .sub { margin-left: auto; margin-right: auto; }

/* ---------- Rural Digital Agents band ---------- */
.agent-band { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding: 56px; border-radius: 32px; background: var(--cream); }
.agent-copy { flex: 999 1 480px; min-width: 0; }
.agent-copy p:not(.eyebrow) { margin: 0; max-width: 580px; font-size: 17px; color: var(--muted); }
.agent-actions { flex: 1 1 280px; display: flex; flex-direction: column; gap: 12px; }

/* ---------- Rural Digital Agents band ---------- */
.agent-band {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  padding: 56px;
  border-radius: 32px;
  background: var(--cream);
}

.agent-copy {
  min-width: 0;
}

.agent-copy p:not(.eyebrow) {
  margin: 0;
  max-width: 580px;
  font-size: 17px;
  color: var(--muted);
}

.agent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.agent-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

@media (max-width: 960px) {
  .agent-band {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 24px;
  }
}

/* ---------- live sections from peacro-connect (match the site) ---------- */
.live .pc { --pc-ink: var(--ink); --pc-muted: var(--muted-2); --pc-line: var(--line); --pc-brand: var(--teal); --pc-accent: var(--teal); --pc-soft: var(--mint); margin: 0; }
.live .pc-head { margin-bottom: 28px; align-items: center; }
.live .pc-head h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.12; }
.live .pc-head a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
.live .pc-grid { gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.live .pc-grid-s { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.live .pc-grid-p { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.live .pc-card { border-radius: 20px; }
.live .pc-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(10, 40, 36, .1); }
.live .pc-body { padding: 16px 18px 20px; }
.live .pc-body b { font-family: var(--display); font-size: 19px; font-weight: 600; }
.live .pc-blog .pc-card img, .live .pc-blog .pc-ph { border-radius: 20px 20px 0 0; }
.live .pc-go { background: var(--teal); color: #FFFFFF; border-radius: 999px; }
.live .pc-go:hover { background: var(--teal-dark); }
.live .pc-form { max-width: none; border-radius: var(--radius); padding: 28px; }
.live .pc-f input, .live .pc-f select { min-height: 50px; border-radius: 12px; }
.live .pc-f input:focus, .live .pc-f select:focus { outline: 3px solid var(--orange); outline-offset: 1px; border-color: var(--teal); }
.live .pc-main { background: var(--teal); }
.live-form .pc-head { display: none; }
.live-form .pc-lead { display: none; }

/* ---------- Rural Digital Agents ---------- */
.agents-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.agents-head h1 { font-size: clamp(36px, 4.2vw, 56px); }
.agents-head .actions { gap: 12px; }
.agents-head .btn { padding: 0 26px; white-space: nowrap; }
.agents-photo { border-radius: 28px; overflow: hidden; background: #E2ECE9; }
.agents-photo img { display: block; width: 100%; height: auto; aspect-ratio: 928 / 793; object-fit: cover; }
@media (max-width: 1100px) { .agents-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } .agents-photo { max-width: 760px; } }
@media (max-width: 560px) { .agents-head .btn { width: 100%; white-space: normal; } }
.agents-head .lead { margin-bottom: 32px; }
.job-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.job-line { font-size: 14.5px; color: var(--orange-text); font-weight: 600; }
.job-group ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; }
.job-group li { display: flex; flex-direction: column; padding: 12px 0; border-top: 1px solid var(--line); }
.job-group li b { font-size: 16px; font-weight: 600; color: var(--ink); }
.job-group li span { font-size: 15px; color: var(--muted); line-height: 1.5; }
.who .card-title { font-size: 21px; }
.steps { list-style: none; margin: 0 0 36px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.steps li { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 28px 24px 24px; border-radius: var(--radius); background: #FFFFFF; counter-increment: step; }
.steps li::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: #FFFFFF; font-weight: 700; margin-bottom: 8px; }
.steps b { font-family: var(--display); font-size: 20px; font-weight: 600; color: var(--teal); }
.steps span { color: var(--muted); font-size: 15.5px; }
.steps-small { grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 0 0 20px; }
.steps-small li { padding: 16px 18px; background: var(--soft); flex-direction: column; }
.steps-small li::before { width: 30px; height: 30px; font-size: 14px; margin-bottom: 4px; }
.steps-small b { font-size: 17px; }
.faq-wrap .faq, .faq-wrap .h2 { max-width: 860px; }
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin-top: 20px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 14px 0; font-size: 18px; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--mint); color: var(--teal); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 20px; max-width: 720px; color: var(--muted); font-size: 16.5px; }
.apply-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 40px; align-items: start; }
.apply-side { position: sticky; top: 96px; }
.apply-side h2 { margin: 0 0 14px; font-size: 22px; }
.live .pc-form-apply { padding: 28px; gap: 16px; }
.live .pc-step { font-family: var(--display); font-size: 21px; font-weight: 600; color: var(--teal); margin-top: 6px; }
.live .pc-check:has(input:checked) { border-color: var(--teal); background: var(--mint); }
.live .pc-check input { accent-color: var(--teal); }
.live .pc-f textarea:focus, .live .pc-check:focus-within { outline: 3px solid var(--orange); outline-offset: 1px; }

/* ---------- registration strip and company documents ---------- */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 24px 40px; align-items: start; }
.trust-item { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 12px; row-gap: 4px; align-items: center; min-width: 0; }
.trust-item .pch-ic { color: var(--teal); }
.trust-item b { font-size: 17px; line-height: 24px; color: var(--ink); }
.trust-item span { grid-column: 2; font-size: 15px; line-height: 1.5; color: var(--muted); }
.trust-link { display: inline-flex; align-items: center; gap: 6px; height: 24px; font-size: 16px; font-weight: 600; white-space: nowrap; }
.doclist { border-radius: var(--radius); background: #FFFFFF; border: 1px solid var(--line); padding: 8px 28px; }
.docrow { display: flex; align-items: center; gap: 20px; padding: 18px 0; }
.docrow + .docrow { border-top: 1px solid #EEF2F1; }
.doc-thumb { width: 58px; height: 72px; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: #EEF3F1; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.doc-thumb img { display: block; width: 100%; height: auto; }
.doc-thumb.is-old img { opacity: .45; filter: grayscale(1); }
.doc-text { flex: 1; min-width: 0; }
.doc-text b { display: block; font-size: 17px; line-height: 1.35; color: var(--teal); }
.doc-text span { font-size: 14.5px; color: var(--muted-2); }
.doc-badge { flex-shrink: 0; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.doc-badge.ok { background: #E3F3E8; color: #1D6B3A; }
.doc-badge.wait { background: #FFF1D6; color: #7A4B00; }
.doc-btn { flex-shrink: 0; width: 176px; gap: 8px; }
.doc-btn .pch-ic { flex-shrink: 0; }

/* ---------- small screens ---------- */
@media (max-width: 960px) {
  .hero { padding: 40px 0 64px; }
  .hero-grid, .split, .agents-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .band, .band-gap { padding-top: 64px; padding-bottom: 64px; }
  .band-tight { padding-top: 40px; padding-bottom: 40px; }
  .band:not(.band-soft) + .band:not(.band-soft) { padding-top: 0; }
  .agent-band { padding: 32px 24px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apply-grid { grid-template-columns: minmax(0, 1fr); }
  .apply-side { position: static; }
  .trust-row { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .trust-link { padding-left: 34px; height: 44px; }
}
@media (max-width: 560px) {
  .eyebrow { font-size: 11.5px; letter-spacing: .12em; }
  .eyebrow span { margin: 0 .4em; }
  .hero .actions .btn, .agent-actions .btn, .cta .btn { width: 100%; }
  .hero-note { text-align: center; }
  .card { padding: 24px; }
  .page-head { padding: 48px 0 28px; }
        .live .pc-form { padding: 18px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .faq summary { font-size: 16.5px; }
  .live .pc-form-apply { padding: 18px; }
  .doclist { padding: 4px 18px; }
  .docrow { flex-wrap: wrap; gap: 12px 14px; }
  .doc-thumb { width: 48px; height: 60px; }
  .doc-text { flex: 1 1 calc(100% - 62px); }
  .doc-badge { margin-left: 62px; }
  .doc-btn { width: 100%; }
}
