/* ==========================================================================
   Help The Poor Initiative — Where We Work
   Page-specific only. Tokens, header, footer, page banner, sticky jump bar,
   review notice and the CTA band all come from css/style.css.

   This page also absorbs the old communities.html: the "how we choose a
   community" material lives here under #communities and the nav points at
   that anchor.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Region blocks
   -------------------------------------------------------------------------- */
.region {
  padding: 66px 0;
  scroll-margin-top: calc(var(--header-h) + 70px);
}

.region--alt { background: var(--surface-alt); }

.region-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.region-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: color-mix(in srgb, var(--accent, var(--green)) 12%, #fff);
  color: var(--accent, var(--green));
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1);
}

.region:hover .region-mark { transform: rotate(-6deg) scale(1.05); }

.region-title {
  font-size: clamp(1.4rem, 2.8vw, 1.95rem);
  line-height: 1.16;
  color: var(--ink);
}

.region-kicker {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent, var(--green));
}

.region-lede {
  max-width: 68ch;
  margin-top: 12px;
  font-size: 1.0625rem;
  line-height: 1.78;
  color: var(--muted);
}

/* Country chips */
.places {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.place {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: .875rem;
  color: var(--muted);
  transition: border-color var(--speed) var(--ease),
              transform var(--speed) var(--ease);
}

.region--alt .place { background: #fff; }

.place:hover {
  border-color: color-mix(in srgb, var(--accent, var(--green)) 45%, var(--line));
  transform: translateY(-2px);
}

.place-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--accent, var(--green));
}

/* A place we are physically based in, rather than working through a partner */
.place--base {
  border-color: color-mix(in srgb, var(--accent, var(--green)) 45%, var(--line));
  background: color-mix(in srgb, var(--accent, var(--green)) 8%, #fff);
  color: var(--ink);
  font-weight: 600;
}

.place-tag {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent, var(--green));
  color: #fff;
  font-family: var(--font-display);
  font-size: .5625rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

/* What we run in a region — one card: how programmes are delivered there
   (Direct / Partner / Same-standard). Used to be a 3-column grid holding two
   fabricated stat cards alongside this one; those are gone, so it is a
   single full-width card now rather than a 1fr-wide sliver next to empty
   columns. */
.region-runs {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 26px;
}

.run {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.region--alt .run { background: #fff; }

.run b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent, var(--green));
  font-variant-numeric: tabular-nums;
}

.run span {
  display: block;
  margin-top: 4px;
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   3. Communities (absorbs the old communities.html)
   -------------------------------------------------------------------------- */
.communities {
  padding: 84px 0;
  scroll-margin-top: calc(var(--header-h) + 70px);
}

.comm-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 54px;
  align-items: start;
}

.comm-copy p { margin-top: 15px; line-height: 1.82; }

.comm-steps {
  display: grid;
  gap: 14px;
  counter-reset: cstep;
}

.comm-step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.comm-step:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }

.comm-step::before {
  counter-increment: cstep;
  content: "0" counter(cstep);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.3;
  color: color-mix(in srgb, var(--green) 40%, #fff);
}

.comm-step h3 {
  font-size: .9375rem;
  font-weight: 800;
  color: var(--ink);
}

.comm-step p {
  margin-top: 6px;
  font-size: .875rem;
  line-height: 1.68;
  color: var(--muted);
}

/* The exit criteria, stated as a promise rather than buried */
.exit-note {
  margin-top: 22px;
  padding: 20px 24px;
  border-left: 3px solid var(--orange);
  background: var(--cream);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.exit-note h3 {
  font-size: .9375rem;
  font-weight: 800;
  color: var(--ink);
}

.exit-note p {
  margin-top: 8px;
  font-size: .9375rem;
  line-height: 1.72;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   4. Offices strip
   -------------------------------------------------------------------------- */
.bases { padding: 0 0 84px; }

.base-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 38px clamp(24px, 4vw, 44px);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.base-card h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  color: var(--ink);
}

.base-card p {
  max-width: 58ch;
  margin-top: 10px;
  line-height: 1.76;
  color: var(--muted);
}

.base-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --------------------------------------------------------------------------
   5. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .comm-grid { grid-template-columns: 1fr; gap: 32px; }
  .base-card { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 768px) {
  .region { padding: 48px 0; }
  .communities { padding: 58px 0; }
  .bases { padding-bottom: 58px; }
  .base-actions .btn { width: 100%; }
}

@media (max-width: 560px) {
  .region-head { flex-direction: column; align-items: flex-start; gap: 12px; }
}
