/*
  ICFC — International Climate Finance Centre, Brussels
  "North Meets South"
  Design system derived from the ICFC WordPress theme draft.
*/

@import url("https://api.fontshare.com/v2/css?f[]=switzer@400,500,600,700,800&display=swap");

:root {
  --icfc-bg: #f5f7ee;
  --icfc-surface: #fbfcf7;
  --icfc-ink: #102f43;
  --icfc-muted: #5c6d73;
  --icfc-border: #d9dfcf;
  --icfc-green: #45ad2d;
  --icfc-green-dark: #2f8120;
  --icfc-blue: #0f5977;
  --icfc-orange: #f36f21;
  --icfc-red: #e91d3c;
  --icfc-radius: 18px;
  --icfc-shadow: 0 24px 70px rgba(16, 47, 67, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--icfc-bg);
  color: var(--icfc-ink);
  font-family: "Switzer", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.icfc-container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* ---------- Header ---------- */

.icfc-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--icfc-border);
  background: rgba(245, 247, 238, 0.92);
  backdrop-filter: blur(18px);
}

.icfc-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.icfc-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.icfc-brand img {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  object-fit: contain;
}

.icfc-brand strong {
  display: block;
  letter-spacing: 0.28em;
  font-size: 15px;
}

.icfc-brand span {
  display: block;
  color: var(--icfc-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}

.icfc-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #425762;
  font-size: 14px;
  font-weight: 600;
}

.icfc-menu a {
  white-space: nowrap;
}

.icfc-menu a:hover {
  color: var(--icfc-green-dark);
}

.icfc-menu a.is-active {
  color: var(--icfc-green-dark);
}

/* ---------- Buttons ---------- */

.icfc-button,
.icfc-button-outline,
.icfc-form button,
.icfc-payment-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: linear-gradient(180deg, #4fbb35, #3fa028);
  color: #fff;
  min-height: 46px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  font-family: inherit;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 2px rgba(16, 47, 67, 0.16);
  transition: background 160ms ease, box-shadow 160ms ease, border-color 160ms ease, color 160ms ease;
}

.icfc-button:hover,
.icfc-form button:hover,
.icfc-payment-form button:hover {
  background: linear-gradient(180deg, #3ea228, #2f8120);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 20px rgba(47, 129, 32, 0.28);
}

/* Transparent (ghost) CTA in the navbar: green outline, no fill. */
.icfc-menu a.icfc-button {
  background: transparent;
  color: var(--icfc-green-dark);
  border-color: var(--icfc-green);
  box-shadow: none;
}

.icfc-menu a.icfc-button:hover {
  background: rgba(69, 173, 45, 0.12);
  color: var(--icfc-green-dark);
  box-shadow: none;
}

.icfc-button:focus-visible,
.icfc-button-outline:focus-visible,
.icfc-form button:focus-visible,
.icfc-payment-form button:focus-visible {
  outline: 2px solid var(--icfc-green-dark);
  outline-offset: 2px;
}

.icfc-button-outline {
  border-color: #c3cbb4;
  background: rgba(255, 255, 255, 0.72);
  color: var(--icfc-ink);
  box-shadow: 0 1px 2px rgba(16, 47, 67, 0.07);
}

.icfc-button-outline:hover {
  border-color: var(--icfc-green);
  background: rgba(69, 173, 45, 0.1);
  color: var(--icfc-green-dark);
  box-shadow: 0 4px 14px rgba(69, 173, 45, 0.16);
}

/* ---------- Hero ---------- */

.icfc-hero {
  padding: 80px 0;
  background:
    radial-gradient(circle at 5% 10%, rgba(243, 111, 33, 0.15), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(69, 173, 45, 0.18), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(236, 244, 231, 0.5));
  border-bottom: 1px solid var(--icfc-border);
}

.icfc-hero-grid,
.icfc-overview-grid,
.icfc-form-grid,
.icfc-payment-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.icfc-overview-grid,
.icfc-form-grid {
  align-items: start;
}

/* Side-by-side heading pairs share one size so parallel columns align. */
.icfc-overview-grid h2 {
  font-size: clamp(28px, 3.4vw, 42px);
}

.icfc-kicker {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--icfc-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.icfc-hero h1,
.icfc-section h2,
.icfc-page-hero h1 {
  margin: 18px 0 0;
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.icfc-hero h1 {
  max-width: 680px;
  font-size: clamp(44px, 6.5vw, 76px);
}

.icfc-lede {
  margin: 24px 0 0;
  max-width: 640px;
  color: #36515e;
  font-size: clamp(18px, 2vw, 21px);
}

.icfc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.icfc-hero-card {
  overflow: hidden;
  border: 1px solid var(--icfc-border);
  border-radius: var(--icfc-radius);
  background: var(--icfc-surface);
  box-shadow: var(--icfc-shadow);
}

.icfc-hero-card-media {
  position: relative;
}

.icfc-hero-card-media img {
  display: block;
  width: 100%;
  height: 232px;
  object-fit: cover;
}

.icfc-hero-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 47, 67, 0.5), transparent 52%);
}

.icfc-hero-card-tag {
  position: absolute;
  z-index: 1;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 18px rgba(16, 47, 67, 0.22);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--icfc-ink);
}

.icfc-hero-card-tag img {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: contain;
  background: #fff;
}

.icfc-hero-card-body {
  padding: 24px 26px 28px;
}

.icfc-hero-card-body h3 {
  margin: 9px 0 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.icfc-pill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.icfc-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--icfc-border);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.3;
}

.icfc-pill::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--icfc-green);
  box-shadow: 0 0 0 3px rgba(69, 173, 45, 0.18);
}

/* Full-width priority list: fills the row edge-to-edge, no dead space. */
.icfc-priority-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.icfc-priority-grid .icfc-pill {
  align-items: flex-start;
  padding: 14px 16px;
  font-size: 14px;
}

.icfc-priority-grid .icfc-pill::before {
  margin-top: 6px;
}

/* ---------- Page hero (subpages) ---------- */

.icfc-page-hero {
  padding: 64px 0 56px;
  background:
    radial-gradient(circle at 90% 0%, rgba(69, 173, 45, 0.14), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(236, 244, 231, 0.5));
  border-bottom: 1px solid var(--icfc-border);
}

.icfc-page-hero h1 {
  max-width: 820px;
  font-size: clamp(36px, 5vw, 60px);
}

.icfc-page-hero .icfc-lede {
  font-size: clamp(17px, 2vw, 20px);
}

/* ---------- Sections ---------- */

.icfc-section {
  padding: 72px 0;
  border-bottom: 1px solid var(--icfc-border);
}

.icfc-section h2 {
  max-width: 680px;
  font-size: clamp(30px, 4vw, 46px);
}

.icfc-label {
  color: var(--icfc-green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.icfc-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.icfc-grid-3,
.icfc-project-grid,
.icfc-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.icfc-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.icfc-card {
  border: 1px solid var(--icfc-border);
  border-radius: var(--icfc-radius);
  background: rgba(255, 255, 255, 0.54);
  padding: 24px;
  box-shadow: 0 10px 32px rgba(16, 47, 67, 0.05);
}

.icfc-card h3 {
  margin: 0 0 12px;
  font-size: 21px;
}

.icfc-card p {
  margin: 0;
  color: var(--icfc-muted);
}

.icfc-card p + p {
  margin-top: 12px;
}

.icfc-card-meta {
  color: var(--icfc-green-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.icfc-card p.icfc-card-meta {
  margin: 0 0 10px;
}

a.icfc-card {
  display: block;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

a.icfc-card:hover {
  transform: translateY(-2px);
  border-color: var(--icfc-green);
  box-shadow: 0 16px 40px rgba(16, 47, 67, 0.1);
}

/* ---------- Stats ---------- */

.icfc-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.icfc-stat {
  border: 1px solid var(--icfc-border);
  border-radius: var(--icfc-radius);
  background: rgba(255, 255, 255, 0.54);
  padding: 24px;
}

.icfc-stat strong {
  display: block;
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--icfc-green-dark);
}

.icfc-stat span {
  display: block;
  margin-top: 10px;
  color: var(--icfc-muted);
  font-size: 14px;
}

/* ---------- Prose / document content ---------- */

.icfc-prose {
  max-width: none;
}

.icfc-prose p {
  color: #36515e;
  font-size: 17px;
}

.icfc-prose ul {
  margin: 18px 0;
  padding-left: 22px;
  color: #36515e;
  font-size: 17px;
}

.icfc-prose li {
  margin: 8px 0;
}

/* Justify running body paragraphs for a clean, block-aligned text edge. */
.icfc-lede,
.icfc-prose p,
.icfc-prose li,
.icfc-card p:not(.icfc-card-meta),
.icfc-overview-grid p,
.icfc-payment-grid p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.icfc-figure {
  margin: 30px 0 0;
}

.icfc-figure img {
  width: 100%;
  border: 1px solid var(--icfc-border);
  border-radius: var(--icfc-radius);
}

.icfc-figure figcaption {
  margin-top: 10px;
  color: var(--icfc-muted);
  font-size: 13px;
}

.icfc-image-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.icfc-image-band img {
  width: 100%;
  height: 280px;
  border: 1px solid var(--icfc-border);
  border-radius: var(--icfc-radius);
  object-fit: cover;
}

/* ---------- Fact list ---------- */

.icfc-fact-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--icfc-border);
  border-radius: var(--icfc-radius);
  background: rgba(255, 255, 255, 0.54);
  overflow: hidden;
}

.icfc-fact {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--icfc-border);
}

.icfc-fact:last-child {
  border-bottom: none;
}

.icfc-fact dt {
  margin: 0;
  font-weight: 800;
  font-size: 14px;
}

.icfc-fact dd {
  margin: 0;
  color: var(--icfc-muted);
  font-size: 15px;
}

/* ---------- Sector chips ---------- */

.icfc-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.icfc-chip {
  border: 1px solid var(--icfc-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 600;
}

/* ---------- Membership tiers ---------- */

.icfc-tiers {
  display: grid;
  gap: 12px;
}

.icfc-tier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--icfc-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
  padding: 15px 20px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.icfc-tier:hover {
  border-color: var(--icfc-green);
  box-shadow: 0 12px 28px rgba(16, 47, 67, 0.08);
  transform: translateY(-1px);
}

.icfc-tier-info strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
}

.icfc-tier-info span {
  display: block;
  margin-top: 3px;
  color: var(--icfc-muted);
  font-size: 13px;
}

.icfc-tier-price {
  flex: none;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--icfc-green-dark);
}

/* ---------- Forms ---------- */

.icfc-form,
.icfc-payment-form {
  display: grid;
  gap: 16px;
}

#icfc-member-form {
  background: var(--icfc-surface);
  box-shadow: 0 22px 55px rgba(16, 47, 67, 0.09);
}

.icfc-form-head {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--icfc-border);
}

.icfc-form-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.icfc-form-head p {
  margin: 4px 0 0;
  color: var(--icfc-muted);
  font-size: 13px;
}

.icfc-form button[type="submit"] {
  width: 100%;
  margin-top: 4px;
}

.icfc-form-note {
  margin: 0;
  color: var(--icfc-muted);
  font-size: 12.5px;
  text-align: center;
}

.icfc-field {
  display: grid;
  gap: 6px;
}

.icfc-field label {
  font-size: 13px;
  font-weight: 800;
}

.icfc-field input,
.icfc-field select,
.icfc-field textarea {
  width: 100%;
  border: 1px solid #c7ceb9;
  border-radius: 10px;
  background: white;
  color: var(--icfc-ink);
  padding: 12px 13px;
  font: inherit;
}

.icfc-field small {
  color: var(--icfc-muted);
}

.icfc-field textarea {
  min-height: 112px;
  resize: vertical;
}

.icfc-message {
  display: none;
  border-radius: 12px;
  padding: 14px 16px;
  font-weight: 700;
}

.icfc-message.is-visible {
  display: block;
}

.icfc-message.success {
  background: rgba(69, 173, 45, 0.12);
  color: var(--icfc-green-dark);
}

.icfc-message.error {
  background: rgba(233, 29, 60, 0.1);
  color: #9b1026;
}

.icfc-payment-box {
  border: 1px dashed var(--icfc-green);
  border-radius: var(--icfc-radius);
  background: rgba(69, 173, 45, 0.08);
  padding: 24px;
}

.icfc-payment-box h3 {
  margin: 6px 0;
  font-size: 26px;
  letter-spacing: 0.04em;
}

/* ---------- Footer ---------- */

.icfc-footer {
  background: #102f43;
  color: #f6f7ef;
  padding: 48px 0;
}

.icfc-footer-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr 0.8fr;
  gap: 32px;
}

.icfc-footer h3 {
  margin: 0 0 12px;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.icfc-footer p {
  margin: 6px 0;
  color: #c3d0d2;
  font-size: 14px;
}

.icfc-footer a:hover {
  color: white;
}

.icfc-footer .icfc-brand span {
  color: #9db4bb;
}

.icfc-footer-legal {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(246, 247, 239, 0.16);
  color: #9db4bb;
  font-size: 13px;
}

/* ---------- News ---------- */

.icfc-news-status {
  margin-top: 18px;
  color: var(--icfc-muted);
  font-size: 14px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .icfc-nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .icfc-menu {
    flex-wrap: wrap;
    row-gap: 10px;
  }
}

@media (max-width: 900px) {
  /* The wrapped menu is tall on small screens — don't pin it while scrolling. */
  .icfc-header {
    position: static;
  }

  .icfc-hero-grid,
  .icfc-overview-grid,
  .icfc-form-grid,
  .icfc-payment-grid,
  .icfc-footer-grid {
    grid-template-columns: 1fr;
  }

  .icfc-grid-2,
  .icfc-grid-3,
  .icfc-grid-4,
  .icfc-project-grid,
  .icfc-news-grid,
  .icfc-image-band {
    grid-template-columns: 1fr;
  }

  .icfc-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .icfc-fact {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 620px) {
  .icfc-container {
    width: min(100% - 28px, 1120px);
  }

  .icfc-hero {
    padding: 48px 0;
  }

  .icfc-pill-grid {
    grid-template-columns: 1fr;
  }

  .icfc-stat-grid {
    grid-template-columns: 1fr;
  }
}
