/*
Theme Name: Catalystcraft Trust Pages
Theme URI: https://catalystcrafttrust.org/
Author: Catalystcraft Trust
Description: A custom NGO WordPress theme for Catalystcraft Trust, covering skill development, education, women empowerment, and health programs.
Version: 1.0.4
License: GPL-2.0-or-later
Text Domain: catalystcraft-trust-pages
*/

:root {
  --ink: #14302d;
  --muted: #62736f;
  --paper: #f7f3ea;
  --surface: #ffffff;
  --line: #e6ded0;
  --teal: #0e5a55;
  --teal-dark: #073733;
  --green: #a7c957;
  --amber: #f4b35d;
  --rose: #d76868;
  --blue: #4f87a8;
  --shadow: 0 18px 50px rgba(20, 48, 45, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 82px;
  padding: 12px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(230, 222, 208, 0.85);
  background: rgba(247, 243, 234, 0.94);
  backdrop-filter: blur(16px);
}

.brand img {
  width: 220px;
  height: auto;
}

.site-nav,
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  padding: 10px 13px;
  border-radius: 999px;
  color: #314642;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.active,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
  color: var(--teal-dark);
  background: #e9f0dc;
}

.site-nav .nav-button {
  color: #fff;
  background: var(--teal);
}

.site-nav .nav-button:hover,
.site-nav .nav-button.active,
.site-nav .current-menu-item > .nav-button,
.site-nav .current_page_item > .nav-button {
  color: #fff;
  background: var(--teal-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
  gap: clamp(34px, 6vw, 82px);
  align-items: center;
  min-height: calc(100vh - 82px);
  padding: clamp(58px, 9vw, 120px) clamp(20px, 5vw, 72px);
  background:
    radial-gradient(circle at 88% 18%, rgba(167, 201, 87, 0.2), transparent 28%),
    linear-gradient(135deg, #f9f5ec 0%, #f4ead9 100%);
}

.hero-content {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.9rem, 6vw, 6.5rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.85rem, 3.4vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.24rem;
  line-height: 1.2;
}

.hero p {
  max-width: 650px;
  color: #50625e;
  font-size: clamp(1.04rem, 1.9vw, 1.32rem);
}

.hero-actions,
.cta-band {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--teal);
}

.button.light {
  color: var(--teal-dark);
  background: #fff;
  border-color: var(--line);
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 520px;
  place-items: center;
}

.hero-visual > img {
  width: min(100%, 640px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 10px solid #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.impact-card {
  position: absolute;
  z-index: 2;
  width: min(250px, 76vw);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(20, 48, 45, 0.16);
}

.impact-card span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.impact-card strong {
  display: block;
  line-height: 1.2;
}

.card-skill { top: 34px; left: 18px; border-top: 5px solid var(--amber); }
.card-education { top: 130px; right: 0; border-top: 5px solid var(--blue); }
.card-women { bottom: 120px; left: 0; border-top: 5px solid var(--rose); }
.card-health { bottom: 34px; right: 28px; border-top: 5px solid var(--green); }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.trust-strip div {
  padding: 24px clamp(20px, 5vw, 72px);
  background: var(--surface);
}

.trust-strip strong,
.trust-strip span,
.trust-strip a {
  display: block;
}

.trust-strip strong {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.section,
.page-hero {
  padding: clamp(64px, 9vw, 116px) clamp(20px, 5vw, 72px);
}

.page-hero {
  background: linear-gradient(135deg, #f9f5ec, #edf3de);
}

.page-hero h1,
.page-hero p {
  max-width: 920px;
}

.page-hero p {
  color: var(--muted);
  font-size: 1.15rem;
}

.intro-section,
.two-column,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: clamp(28px, 6vw, 76px);
}

.section-copy,
.rich-copy {
  color: var(--muted);
  font-size: 1.06rem;
}

.muted {
  background: #efe8d9;
}

.section-heading {
  max-width: 850px;
  margin-bottom: 32px;
}

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

.program-card,
.values-grid article,
.team-card,
.contact-panel,
.contact-form {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(20, 48, 45, 0.06);
}

.program-card {
  overflow: hidden;
  padding: 0;
}

.program-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.program-card .program-icon,
.program-card h3,
.program-card p {
  margin-left: 24px;
  margin-right: 24px;
}

.program-card .program-icon {
  margin-top: 24px;
}

.program-card p {
  margin-bottom: 26px;
}

.program-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 50%;
  color: #fff;
  background: var(--teal);
  font-weight: 800;
}

.program-card p,
.values-grid p,
.team-card span,
.contact-panel p {
  color: var(--muted);
}

.cta-band {
  justify-content: space-between;
  padding: clamp(42px, 6vw, 72px);
  color: #fff;
  background: var(--teal-dark);
}

.cta-band .eyebrow {
  color: var(--amber);
}

.cta-band h2 {
  max-width: 760px;
  margin-bottom: 0;
}

.cta-band .button {
  background: var(--amber);
  color: #23170b;
}

.service-list {
  display: grid;
  gap: 18px;
}

.service-row {
  display: grid;
  grid-template-columns: 240px 72px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.service-row img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.service-row > span {
  color: var(--teal);
  font-size: 2rem;
  font-weight: 800;
}

.service-row p {
  color: var(--muted);
  font-size: 1.06rem;
}

.team-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.avatar {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 50%;
  color: #fff;
  background: var(--teal);
  font-weight: 800;
}

.team-card h2 {
  font-size: 1.35rem;
}

.team-card p {
  margin-bottom: 10px;
  color: var(--teal);
  font-weight: 800;
}

.contact-panel h2 {
  font-size: 2rem;
}

.content-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 24px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fbfaf6;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(14, 90, 85, 0.18);
  border-color: var(--teal);
}

.form-note {
  min-height: 22px;
  margin: 0;
  color: var(--teal);
  font-weight: 800;
}

.form-note.error {
  color: #a33d3d;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 24px;
  padding: 44px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.78);
  background: #101c1a;
}

.site-footer img {
  width: 210px;
  margin-bottom: 12px;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
}

.site-footer strong,
.site-footer a {
  display: block;
}

.site-footer a {
  margin-top: 7px;
  text-decoration: none;
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer.compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 28px;
}

.site-footer.compact p {
  margin: 0;
}

@media (max-width: 980px) {
  .site-header {
    min-height: 74px;
  }

  .brand img {
    width: 190px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 18px;
    right: 18px;
    display: none;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
    gap: 4px;
  }

  .site-nav.is-open ul {
    display: grid;
    gap: 4px;
  }

  .site-nav a {
    border-radius: 8px;
  }

  .hero,
  .intro-section,
  .two-column,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 470px;
  }

  .program-grid,
  .values-grid,
  .team-grid,
  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .brand img {
    width: 170px;
  }

  .hero-visual {
    min-height: auto;
  }

  .hero-visual > img {
    aspect-ratio: 16 / 11;
  }

  .impact-card {
    position: relative;
    inset: auto;
    width: 100%;
    margin: 8px 0;
  }

  .program-grid,
  .values-grid,
  .team-grid,
  .trust-strip,
  .service-row {
    grid-template-columns: 1fr;
  }

  .button,
  .hero-actions {
    width: 100%;
  }

  .site-footer,
  .site-footer.compact {
    display: grid;
  }
}
