/*
Theme Name: ORCHEDS Foundation
Theme URI: https://orcheds.org
Author: OpenAI Codex
Description: A clean nonprofit WordPress theme for ORCHEDS Foundation, focused on education, health, donations, and community support.
Version: 1.0.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: orcheds-foundation
*/

:root {
  --orcheds-ink: #153b3f;
  --orcheds-teal: #0b5d5b;
  --orcheds-green: #4d8b3a;
  --orcheds-gold: #d79a2b;
  --orcheds-blue: #477b9e;
  --orcheds-paper: #f7faf8;
  --orcheds-white: #ffffff;
  --orcheds-muted: #5f6f70;
  --orcheds-line: #dce6e1;
  --orcheds-shadow: 0 16px 38px rgba(21, 59, 63, 0.12);
  --orcheds-radius: 8px;
  --orcheds-max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--orcheds-white);
  color: var(--orcheds-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

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

a {
  color: var(--orcheds-teal);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus {
  color: var(--orcheds-green);
}

.screen-reader-text,
.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 1000;
  background: var(--orcheds-white);
  color: var(--orcheds-ink);
  padding: 10px 14px;
  border: 2px solid var(--orcheds-teal);
}

.orcheds-container,
.site-header__inner,
.site-footer__inner,
.content-area {
  width: min(var(--orcheds-max), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--orcheds-line);
  backdrop-filter: blur(14px);
}

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

.site-branding {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--orcheds-ink);
  text-decoration: none;
}

.site-branding__logo {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
}

.site-branding__text {
  display: grid;
  gap: 0;
  max-width: 430px;
}

.site-branding__name {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.1;
}

.site-branding__tagline {
  color: var(--orcheds-muted);
  font-size: clamp(0.62rem, 0.76vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.95rem;
  font-weight: 700;
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  color: var(--orcheds-ink);
  text-decoration: none;
}

.main-navigation a:hover,
.main-navigation a:focus {
  color: var(--orcheds-teal);
}

.main-navigation .nav-donate {
  color: var(--orcheds-white);
}

.main-navigation .nav-donate:hover,
.main-navigation .nav-donate:focus {
  color: var(--orcheds-white);
}

.orcheds-button,
.wp-block-button__link,
.nav-donate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: var(--orcheds-radius);
  border: 2px solid var(--orcheds-teal);
  background: var(--orcheds-teal);
  color: var(--orcheds-white);
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
}

.orcheds-button:hover,
.orcheds-button:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus,
.nav-donate:hover,
.nav-donate:focus {
  background: var(--orcheds-green);
  border-color: var(--orcheds-green);
  color: var(--orcheds-white);
}

.orcheds-button--secondary {
  background: var(--orcheds-white);
  color: var(--orcheds-teal);
}

.orcheds-button--secondary:hover,
.orcheds-button--secondary:focus {
  background: #eef7f2;
  color: var(--orcheds-ink);
}

.site-main {
  min-height: 58vh;
}

.orcheds-hero {
  color: var(--orcheds-white);
  background-color: var(--orcheds-ink);
  background-image: linear-gradient(90deg, rgba(21, 59, 63, 0.96), rgba(11, 93, 91, 0.82)), url("assets/orcheds-hero.svg");
  background-position: center;
  background-size: cover;
}

.orcheds-hero__inner {
  width: min(var(--orcheds-max), calc(100% - 40px));
  margin-inline: auto;
  min-height: 640px;
  display: grid;
  align-items: center;
  padding: 88px 0 104px;
}

.orcheds-kicker {
  margin: 0 0 16px;
  color: #ffe3a6;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.orcheds-hero h1,
.orcheds-page-hero h1,
.entry-title {
  margin: 0;
  max-width: 860px;
  font-size: clamp(2.4rem, 6vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.orcheds-hero p {
  max-width: 710px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.orcheds-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.orcheds-section {
  padding: 82px 0;
}

.orcheds-section--soft {
  background: var(--orcheds-paper);
}

.orcheds-section--teal {
  background: var(--orcheds-teal);
  color: var(--orcheds-white);
}

.orcheds-section__header {
  max-width: 780px;
  margin-bottom: 34px;
}

.orcheds-section__header h2,
.orcheds-page-section h2,
.entry-content h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.orcheds-section__header p,
.orcheds-page-section p,
.entry-content p {
  color: var(--orcheds-muted);
}

.orcheds-section--teal .orcheds-section__header p,
.orcheds-section--teal p {
  color: rgba(255, 255, 255, 0.86);
}

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

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

.orcheds-acronym {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 38px;
  align-items: center;
}

.orcheds-acronym__panel {
  padding: 30px;
  border: 1px solid var(--orcheds-line);
  border-radius: var(--orcheds-radius);
  background: var(--orcheds-white);
}

.orcheds-acronym__word {
  display: block;
  margin-bottom: 10px;
  color: var(--orcheds-teal);
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  font-weight: 900;
  line-height: 0.92;
}

.orcheds-acronym__full {
  color: var(--orcheds-ink);
  font-size: clamp(1.45rem, 3vw, 2.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
}

.orcheds-acronym__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.orcheds-acronym__list li {
  padding: 12px 14px;
  border-left: 4px solid var(--orcheds-gold);
  background: #fffdf6;
  color: var(--orcheds-ink);
  font-weight: 800;
}

.orcheds-acronym__list li:nth-child(2n) {
  border-left-color: var(--orcheds-blue);
}

.orcheds-acronym__list li:nth-child(3n) {
  border-left-color: var(--orcheds-green);
}

.orcheds-card,
.orcheds-impact-item,
.entry-content .orcheds-card {
  background: var(--orcheds-white);
  border: 1px solid var(--orcheds-line);
  border-radius: var(--orcheds-radius);
  padding: 24px;
  box-shadow: 0 1px 0 rgba(21, 59, 63, 0.04);
}

.orcheds-card h3,
.orcheds-impact-item h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  line-height: 1.25;
}

.orcheds-card h2,
.entry-content .orcheds-card h2 {
  margin: 0 0 14px;
  font-size: clamp(1.55rem, 2vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.orcheds-card p,
.orcheds-impact-item p {
  margin: 0;
  color: var(--orcheds-muted);
}

.orcheds-card__stripe {
  display: block;
  width: 48px;
  height: 5px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--orcheds-gold);
}

.orcheds-card:nth-child(2) .orcheds-card__stripe {
  background: var(--orcheds-blue);
}

.orcheds-card:nth-child(3) .orcheds-card__stripe {
  background: var(--orcheds-green);
}

.orcheds-card:nth-child(4) .orcheds-card__stripe {
  background: var(--orcheds-teal);
}

.orcheds-impact {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 42px;
  align-items: start;
}

.orcheds-impact-list {
  display: grid;
  gap: 14px;
}

.orcheds-impact-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
}

.orcheds-amount {
  min-width: 72px;
  padding: 8px 10px;
  border-radius: var(--orcheds-radius);
  background: #fff3d6;
  color: #81560d;
  font-weight: 900;
  text-align: center;
}

.orcheds-page-hero {
  background: var(--orcheds-paper);
  border-bottom: 1px solid var(--orcheds-line);
  padding: 76px 0;
}

.orcheds-page-hero .orcheds-container,
.orcheds-page-section .orcheds-container {
  width: min(var(--orcheds-max), calc(100% - 40px));
}

.orcheds-page-hero p {
  max-width: 760px;
  color: var(--orcheds-muted);
  font-size: 1.18rem;
}

.content-area {
  padding: 64px 0;
}

.entry-content > * {
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

.entry-content > .alignwide {
  max-width: var(--orcheds-max);
}

.entry-content > .alignfull {
  max-width: none;
}

.entry-content h1,
.entry-content h2,
.entry-content h3 {
  line-height: 1.12;
  letter-spacing: 0;
}

.entry-content h3 {
  margin-top: 32px;
}

.entry-content ul {
  padding-left: 1.2em;
}

.orcheds-donation-box {
  max-width: 780px;
  margin: 28px auto;
  padding: 28px;
  border: 2px dashed var(--orcheds-teal);
  border-radius: var(--orcheds-radius);
  background: #f4fbf9;
}

.orcheds-donation-box h2,
.entry-content .orcheds-donation-box h2 {
  margin: 0 0 16px;
  font-size: clamp(1.55rem, 2.4vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.orcheds-donation-box p {
  margin: 0;
}

.orcheds-donation-placeholder {
  display: grid;
  gap: 10px;
}

.orcheds-donation-placeholder h2 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.2;
}

.orcheds-donation-placeholder code {
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(11, 93, 91, 0.1);
}

.orcheds-note {
  padding: 16px 18px;
  border-left: 5px solid var(--orcheds-gold);
  background: #fff8e8;
  color: #5c461b;
}

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

.orcheds-contact-form p {
  margin: 0;
}

.orcheds-contact-form label {
  display: block;
  margin-bottom: 6px;
  color: var(--orcheds-ink);
  font-size: 0.92rem;
  font-weight: 800;
}

.orcheds-contact-form input,
.orcheds-contact-form select,
.orcheds-contact-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--orcheds-line);
  border-radius: var(--orcheds-radius);
  background: var(--orcheds-white);
  color: var(--orcheds-ink);
  font: inherit;
}

.orcheds-contact-form textarea {
  resize: vertical;
}

.orcheds-contact-form__trap {
  display: none;
}

.orcheds-form-status {
  padding: 12px 14px;
  border-radius: var(--orcheds-radius);
  font-weight: 700;
}

.orcheds-form-status--success {
  background: #eaf6ee;
  color: #225b33;
}

.orcheds-form-status--error {
  background: #fff0ef;
  color: #8b2c24;
}

.site-footer {
  background: var(--orcheds-ink);
  color: rgba(255, 255, 255, 0.84);
  padding: 48px 0 28px;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
}

.site-footer h2,
.site-footer h3 {
  color: var(--orcheds-white);
  margin-top: 0;
}

.site-footer a {
  color: var(--orcheds-white);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__bottom {
  width: min(var(--orcheds-max), calc(100% - 40px));
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

@media (max-width: 1120px) {
  .site-branding__text {
    max-width: 320px;
  }

  .main-navigation,
  .main-navigation ul {
    gap: 12px;
    font-size: 0.9rem;
  }
}

@media (max-width: 920px) {
  .site-header__inner,
  .main-navigation,
  .main-navigation ul {
    align-items: flex-start;
  }

  .site-header__inner {
    flex-direction: column;
    padding: 16px 0;
  }

  .main-navigation {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .main-navigation ul {
    flex-wrap: wrap;
    gap: 12px 16px;
  }

  .orcheds-grid,
  .orcheds-grid--two,
  .orcheds-impact,
  .orcheds-acronym,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .orcheds-card h2,
  .entry-content .orcheds-card h2 {
    font-size: clamp(1.45rem, 6vw, 2rem);
  }

  .orcheds-hero__inner {
    min-height: 560px;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .orcheds-container,
  .site-header__inner,
  .site-footer__inner,
  .content-area,
  .site-footer__bottom {
    width: min(100% - 28px, var(--orcheds-max));
  }

  .site-branding__tagline {
    display: none;
  }

  .main-navigation {
    gap: 12px;
  }

  .nav-donate {
    width: 100%;
  }

  .orcheds-hero__inner {
    min-height: 520px;
    padding: 68px 0 76px;
  }

  .orcheds-section {
    padding: 58px 0;
  }

  .orcheds-impact-item {
    grid-template-columns: 1fr;
  }
}
