/*
Theme Name: CEDO Version 6
Theme URI: https://cedopr.org
Author: CEDO
Author URI: https://cedopr.org
Description: Six-page institutional WordPress theme for CEDO — Community Environmental Development Organization. Built to match the approved Version 6 environmental coordination platform mockup.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: cedo-v6
Tags: nonprofit, environmental, sustainability, custom-theme, responsive
*/

:root {
  --cedo-navy: #04294b;
  --cedo-navy-deep: #02203b;
  --cedo-navy-soft: #06365f;
  --cedo-green: #6da629;
  --cedo-green-deep: #4f861f;
  --cedo-green-soft: #dfecca;
  --cedo-cream: #f7f5ed;
  --cedo-white: #ffffff;
  --cedo-ink: #07233d;
  --cedo-muted: #5e6b72;
  --cedo-border: #e6e9e3;
  --cedo-shadow: 0 14px 34px rgba(3, 31, 54, 0.11);
  --cedo-radius: 3px;
  --cedo-max: 1180px;
  --cedo-header-h: 74px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--cedo-ink);
  background: var(--cedo-cream);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.cedo-container {
  width: min(var(--cedo-max), calc(100% - 48px));
  margin: 0 auto;
}

/* Header */
.cedo-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--cedo-navy-deep), var(--cedo-navy));
  border-bottom: 2px solid var(--cedo-green);
  box-shadow: 0 6px 22px rgba(0,0,0,.16);
}
.cedo-header-inner {
  height: var(--cedo-header-h);
  display: flex;
  align-items: center;
  gap: 26px;
  justify-content: space-between;
}
.cedo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
}
.cedo-brand img {
  width: 180px;
  height: auto;
  object-fit: contain;
}

/* Header logo/icon removed from navigation area */
.cedo-header-inner > .cedo-brand,
.cedo-header-inner > .cedo-brand * {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}
.cedo-brand-text {
  display: none;
  color: #fff;
  line-height: 1.05;
}
.cedo-brand-text strong {
  display: block;
  font-size: 28px;
  letter-spacing: .5px;
}
.cedo-brand-text span {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .8px;
}
.cedo-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 27px;
}
.cedo-nav a {
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
  opacity: .94;
  white-space: nowrap;
}
.cedo-nav a:hover,
.cedo-nav a:focus { color: #cde6a8; }
.cedo-header-cta {
  color: #fff;
  background: var(--cedo-green);
  padding: 10px 17px;
  border-radius: 2px;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .3px;
  white-space: nowrap;
}
.cedo-header-cta:hover { background: var(--cedo-green-deep); }
.cedo-menu-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(255,255,255,.35);
  color: white;
  padding: 9px 11px;
  border-radius: 3px;
  font-weight: 700;
}

/* Hero */
.cedo-hero {
  position: relative;
  min-height: 390px;
  color: #fff;
  overflow: hidden;
  background-color: var(--cedo-navy);
}
.cedo-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center;
  transform: scale(1.01);
}
.cedo-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 32, 59, .94) 0%, rgba(2, 32, 59, .78) 31%, rgba(2, 32, 59, .24) 65%, rgba(2, 32, 59, .03) 100%),
    linear-gradient(180deg, rgba(2,32,59,.08) 0%, rgba(2,32,59,.18) 100%);
}
.cedo-hero-inner {
  position: relative;
  z-index: 2;
  min-height: 390px;
  display: flex;
  align-items: center;
  padding: 72px 0 68px;
}
.cedo-hero-copy { max-width: 580px; }
.cedo-page-eyebrow {
  display: block;
  color: #9bd24f;
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 12px;
}
.cedo-hero h1 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
  letter-spacing: -.45px;
  text-transform: uppercase;
  font-weight: 900;
}
.cedo-hero p {
  margin: 0 0 28px;
  max-width: 540px;
  color: rgba(255,255,255,.94);
  font-size: clamp(14px, 1.25vw, 17px);
  line-height: 1.45;
  font-weight: 500;
}
.cedo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 2px;
  background: var(--cedo-green);
  color: #fff;
  padding: 13px 26px;
  min-height: 42px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .4px;
  box-shadow: 0 10px 20px rgba(0,0,0,.12);
}
.cedo-button:hover { background: var(--cedo-green-deep); }
.cedo-button.is-outline {
  background: transparent;
  color: var(--cedo-green);
  box-shadow: none;
  padding-inline: 0;
}

/* Common sections */
.cedo-main { background: var(--cedo-cream); }
.cedo-value-strip {
  background: linear-gradient(90deg, var(--cedo-navy-deep), var(--cedo-navy));
  color: #fff;
}
.cedo-value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.cedo-value-item {
  padding: 28px 32px 30px;
  text-align: center;
  border-left: 1px solid rgba(255,255,255,.2);
}
.cedo-value-item:first-child { border-left: 0; }
.cedo-icon-circle {
  width: 62px;
  height: 62px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--cedo-green);
  font-size: 28px;
  line-height: 1;
}
.cedo-value-item h3,
.cedo-card h3,
.cedo-section-title,
.cedo-mini-title {
  margin: 0;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--cedo-navy);
}
.cedo-value-item h3 {
  color: #fff;
  font-size: 16px;
  line-height: 1.18;
  margin-bottom: 8px;
}
.cedo-value-item p {
  color: rgba(255,255,255,.84);
  font-size: 12.5px;
  line-height: 1.45;
  margin: 0 auto;
  max-width: 210px;
}

.cedo-section { padding: 48px 0; }
.cedo-section.is-white { background: #fff; }
.cedo-section.is-soft { background: linear-gradient(90deg, #f8faf4, #ecf4df); }
.cedo-section-title {
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -.2px;
  margin-bottom: 18px;
}
.cedo-section-kicker {
  margin: 0 0 6px;
  color: var(--cedo-green);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .45px;
}
.cedo-copy { color: var(--cedo-muted); font-size: 15px; margin: 0 0 16px; }
.cedo-narrative-row {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.cedo-narrative-actions { margin-top: 20px; }
.cedo-inline-image {
  overflow: hidden;
  border-radius: var(--cedo-radius);
  box-shadow: var(--cedo-shadow);
}
.cedo-inline-image img { width: 100%; height: 100%; object-fit: cover; }

/* Breadcrumb */
.cedo-breadcrumb {
  padding: 18px 0;
  color: #55708a;
  background: #fff;
  border-bottom: 1px solid var(--cedo-border);
  font-size: 12px;
  font-weight: 700;
}
.cedo-breadcrumb a { color: var(--cedo-navy); }
.cedo-breadcrumb span { margin: 0 8px; color: #8b9baa; }

/* Cards */
.cedo-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.cedo-card-grid.three { grid-template-columns: repeat(3, 1fr); }
.cedo-card {
  background: #fff;
  border: 1px solid var(--cedo-border);
  box-shadow: 0 8px 24px rgba(7, 35, 61, .06);
  border-radius: var(--cedo-radius);
  padding: 30px 24px;
  text-align: center;
  min-height: 210px;
}
.cedo-card.image-card { padding: 0; text-align: left; overflow: hidden; }
.cedo-card.image-card img { width: 100%; height: 170px; object-fit: cover; }
.cedo-card-body { padding: 22px 22px 24px; }
.cedo-card h3 {
  font-size: 15px;
  line-height: 1.2;
  margin-bottom: 9px;
}
.cedo-card p {
  margin: 0;
  color: var(--cedo-muted);
  font-size: 13.5px;
  line-height: 1.5;
}
.cedo-card .cedo-card-link {
  display: inline-flex;
  margin-top: 17px;
  color: var(--cedo-green-deep);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.cedo-card .cedo-card-link:after { content: "→"; padding-left: 8px; }
.cedo-principles-title { text-align: center; margin-bottom: 24px; }

/* Home map */
.cedo-map-section { padding: 40px 0 54px; background: #fff; text-align: center; }
.cedo-map-section h2 { margin-bottom: 20px; }
.cedo-map-wrap {
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--cedo-radius);
  overflow: hidden;
  background: #eef3e7;
}
.cedo-map-wrap img { width: 100%; height: auto; }

/* Network */
.cedo-split-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}
.cedo-check-list { list-style: none; padding: 0; margin: 18px 0 0; }
.cedo-check-list li {
  position: relative;
  padding-left: 28px;
  margin: 10px 0;
  color: var(--cedo-muted);
  font-weight: 700;
}
.cedo-check-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--cedo-green);
  font-weight: 900;
}
.cedo-impact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--cedo-border);
  background: #fff;
}
.cedo-impact-cell {
  padding: 26px;
  border-right: 1px solid var(--cedo-border);
  border-bottom: 1px solid var(--cedo-border);
}
.cedo-impact-cell:nth-child(even) { border-right: 0; }
.cedo-impact-cell:nth-last-child(-n+2) { border-bottom: 0; }
.cedo-stat {
  display: block;
  color: var(--cedo-green);
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
}
.cedo-stat-label {
  color: var(--cedo-navy);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

/* CTA bands */
.cedo-cta-band {
  background: linear-gradient(90deg, #eef8e3, #dcecc8);
  border-top: 1px solid var(--cedo-border);
  border-bottom: 1px solid var(--cedo-border);
}
.cedo-cta-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.cedo-cta-inner p {
  margin: 0;
  color: var(--cedo-ink);
  font-size: 17px;
  font-weight: 700;
}
.cedo-cta-icon {
  width: 64px;
  min-width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 2px solid var(--cedo-green);
  border-radius: 50%;
  color: var(--cedo-green);
  font-size: 32px;
  background: rgba(255,255,255,.58);
}
.cedo-cta-message { display: flex; align-items: center; gap: 22px; }

/* Footer */
.cedo-site-footer {
  background: linear-gradient(90deg, var(--cedo-navy-deep), var(--cedo-navy));
  color: #fff;
  border-top: 2px solid rgba(109,166,41,.65);
}
.cedo-footer-main {
  padding: 40px 0 26px;
  display: grid;
  grid-template-columns: 1.5fr .8fr .9fr .9fr;
  gap: 42px;
}
.cedo-footer-logo img { width: 185px; margin-bottom: 16px; }
.cedo-footer-logo p,
.cedo-footer-col p,
.cedo-footer-col a {
  color: rgba(255,255,255,.78);
  font-size: 12.5px;
  line-height: 1.5;
}
.cedo-footer-col h4 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: .35px;
}
.cedo-footer-col a { display: block; margin: 5px 0; }
.cedo-footer-col a:hover { color: #cde6a8; }
.cedo-social {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.cedo-social a {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}
.cedo-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255,255,255,.68);
  font-size: 11px;
}
.cedo-footer-legal a { margin-left: 16px; }

@media (max-width: 1080px) {
  .cedo-header-inner { height: auto; min-height: var(--cedo-header-h); flex-wrap: wrap; padding: 12px 0; }
  .cedo-brand { min-width: auto; }
  .cedo-brand img { width: 160px; }
  .cedo-menu-toggle { display: inline-block; }
  .cedo-nav {
    display: none;
    width: 100%;
    flex-basis: 100%;
    order: 4;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    padding: 16px 0 12px;
  }
  .cedo-nav.is-open { display: flex; }
  .cedo-header-cta { margin-left: auto; }
  .cedo-card-grid, .cedo-value-grid { grid-template-columns: repeat(2, 1fr); }
  .cedo-footer-main { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .cedo-container { width: min(100% - 32px, var(--cedo-max)); }
  .cedo-header-cta { display: none; }
  .cedo-hero, .cedo-hero-inner { min-height: 430px; }
  .cedo-hero-inner { padding: 64px 0; }
  .cedo-hero h1 {
    font-size: clamp(28px, 8vw, 34px);
    line-height: 1.08;
  }
  .cedo-hero p {
    font-size: 16px;
  }
  .cedo-hero:after {
    background: linear-gradient(90deg, rgba(2,32,59,.94), rgba(2,32,59,.7));
  }
  .cedo-value-grid, .cedo-card-grid, .cedo-card-grid.three, .cedo-narrative-row, .cedo-split-panel, .cedo-footer-main { grid-template-columns: 1fr; }
  .cedo-value-item { border-left: 0; border-top: 1px solid rgba(255,255,255,.18); }
  .cedo-value-item:first-child { border-top: 0; }
  .cedo-cta-inner { flex-direction: column; align-items: flex-start; padding: 24px 0; }
  .cedo-footer-bottom { flex-direction: column; }
  .cedo-impact-grid { grid-template-columns: 1fr; }
  .cedo-impact-cell, .cedo-impact-cell:nth-child(even), .cedo-impact-cell:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--cedo-border); }
  .cedo-impact-cell:last-child { border-bottom: 0; }
}
/* Program detail sections */
.cedo-program-details {
  padding: 72px 0;
  background: #f6f8f2;
}

.cedo-detail-block {
  background: #ffffff;
  border-radius: 16px;
  padding: 34px 38px;
  margin-bottom: 28px;
  box-shadow: 0 14px 34px rgba(0, 31, 58, 0.10);
  border-left: 6px solid #6fa832;
  scroll-margin-top: 110px;
}

.cedo-detail-eyebrow {
  display: inline-block;
  color: #6fa832;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 8px;
}

.cedo-detail-block h2 {
  margin: 0 0 14px;
  color: #062d4f;
  font-size: 28px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.3px;
}

.cedo-detail-block p {
  margin: 0;
  color: #3c4a55;
  font-size: 17px;
  line-height: 1.65;
  max-width: 980px;
}

@media (max-width: 768px) {
  .cedo-program-details {
    padding: 48px 0;
  }

  .cedo-detail-block {
    padding: 26px 24px;
  }

  .cedo-detail-block h2 {
    font-size: 23px;
  }

  .cedo-detail-block p {
    font-size: 15.5px;
  }
}
/* Reduce hero text size on all interior pages only - Home excluded */
.cedo-interior-page .cedo-hero h1 {
  font-size: clamp(26px, 2.8vw, 38px) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.35px !important;
  max-width: 640px !important;
}

.cedo-interior-page .cedo-hero p {
  font-size: clamp(14px, 1.15vw, 16px) !important;
  line-height: 1.45 !important;
  max-width: 560px !important;
}
/* Get Involved contact panel */
.cedo-contact-panel {
  background: #ffffff;
  border: 1px solid var(--cedo-border);
  border-left: 6px solid var(--cedo-green);
  box-shadow: var(--cedo-shadow);
  padding: 32px;
  border-radius: var(--cedo-radius);
}

.cedo-contact-panel h3 {
  margin: 0 0 12px;
  color: var(--cedo-navy);
  font-size: 24px;
  line-height: 1.15;
  text-transform: uppercase;
  font-weight: 900;
}

.cedo-contact-panel p {
  margin: 0 0 20px;
  color: var(--cedo-muted);
  font-size: 15px;
  line-height: 1.55;
}

.cedo-contact-line {
  padding: 12px 0;
  border-top: 1px solid var(--cedo-border);
  color: var(--cedo-muted);
  font-size: 15px;
}

.cedo-contact-line strong {
  display: inline-block;
  min-width: 78px;
  color: var(--cedo-navy);
}

.cedo-contact-line a {
  color: var(--cedo-green-deep);
  font-weight: 800;
}