/*
Theme Name: HopeBridge NGO
Theme URI: https://example.org/hopebridge-ngo
Author: OpenAI
Author URI: https://openai.com/
Description: A responsive, accessible WordPress theme for NGOs, charities, community groups, and nonprofit organizations. Includes automatic starter pages, projects, news, donation calls to action, and a contact form.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hopebridge
Tags: charity, nonprofit, education, one-column, two-columns, custom-logo, custom-menu, featured-images, accessibility-ready, translation-ready
*/

:root {
  --hb-ink: #17332d;
  --hb-text: #40534e;
  --hb-muted: #6d7d78;
  --hb-green: #19745f;
  --hb-green-dark: #105847;
  --hb-mint: #dff3ea;
  --hb-cream: #fbf8f0;
  --hb-gold: #f2b84b;
  --hb-coral: #e96f51;
  --hb-white: #ffffff;
  --hb-line: #dce7e2;
  --hb-shadow: 0 18px 45px rgba(18, 67, 55, .11);
  --hb-radius: 22px;
  --hb-radius-sm: 13px;
  --hb-container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--hb-text);
  background: var(--hb-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--hb-green); text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { color: var(--hb-green-dark); }
button, input, textarea, select { font: inherit; }
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .7em;
  color: var(--hb-ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.12;
  letter-spacing: -.025em;
}
h1 { font-size: clamp(2.7rem, 7vw, 5.8rem); }
h2 { font-size: clamp(2.1rem, 4.5vw, 3.75rem); }
h3 { font-size: clamp(1.35rem, 2.3vw, 1.75rem); }
p { margin: 0 0 1.25rem; }
ul, ol { padding-left: 1.25rem; }
blockquote {
  margin: 2rem 0;
  padding: 1.5rem 1.8rem;
  border-left: 5px solid var(--hb-gold);
  background: var(--hb-cream);
  color: var(--hb-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.container { width: min(calc(100% - 2rem), var(--hb-container)); margin-inline: auto; }
.narrow { width: min(calc(100% - 2rem), 790px); margin-inline: auto; }
.section { padding: clamp(4rem, 8vw, 7.5rem) 0; }
.section-sm { padding: 3rem 0; }
.bg-cream { background: var(--hb-cream); }
.bg-mint { background: linear-gradient(135deg, #eaf8f1, #dff3ea); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1rem;
  color: var(--hb-green-dark);
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow::before { width: 28px; height: 3px; border-radius: 99px; background: var(--hb-gold); content: ""; }
.section-heading { max-width: 760px; margin-bottom: 2.5rem; }
.section-heading p { max-width: 660px; color: var(--hb-muted); font-size: 1.08rem; }
.text-center { text-align: center; }
.text-center .section-heading { margin-inline: auto; }
.text-center .section-heading p { margin-inline: auto; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.screen-reader-text:focus, .skip-link:focus {
  position: fixed !important;
  z-index: 100000;
  top: 12px; left: 12px;
  width: auto; height: auto;
  padding: .7rem 1rem;
  clip: auto;
  color: var(--hb-white);
  background: var(--hb-ink);
  border-radius: 8px;
}

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  border-bottom: 1px solid rgba(220, 231, 226, .85);
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.site-branding { display: flex; align-items: center; min-width: 0; }
.custom-logo { max-height: 54px; width: auto; }
.brand-link { display: inline-flex; align-items: center; gap: .72rem; color: var(--hb-ink); text-decoration: none; }
.brand-mark { width: 43px; height: 43px; flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-title { font-family: Georgia, "Times New Roman", serif; font-size: 1.26rem; font-weight: 700; }
.brand-tagline { margin-top: .25rem; color: var(--hb-muted); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.primary-menu-wrap { display: flex; align-items: center; gap: 1.5rem; }
.primary-menu, .footer-menu { display: flex; align-items: center; gap: 1.45rem; margin: 0; padding: 0; list-style: none; }
.primary-menu a { color: var(--hb-ink); font-size: .92rem; font-weight: 700; text-decoration: none; }
.primary-menu a:hover, .primary-menu .current-menu-item > a { color: var(--hb-green); }
.header-donate { white-space: nowrap; }
.menu-toggle {
  display: none;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  border: 1px solid var(--hb-line);
  border-radius: 12px;
  color: var(--hb-ink); background: var(--hb-white);
  cursor: pointer;
}
.menu-toggle-lines, .menu-toggle-lines::before, .menu-toggle-lines::after {
  width: 20px; height: 2px; display: block; position: relative; border-radius: 9px; background: currentColor;
}
.menu-toggle-lines::before, .menu-toggle-lines::after { position: absolute; left: 0; content: ""; }
.menu-toggle-lines::before { top: -6px; }
.menu-toggle-lines::after { top: 6px; }

.button, .wp-block-button__link, input[type="submit"] {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .82rem 1.35rem;
  border: 2px solid var(--hb-green);
  border-radius: 999px;
  color: var(--hb-white);
  background: var(--hb-green);
  box-shadow: none;
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover, .wp-block-button__link:hover, input[type="submit"]:hover {
  transform: translateY(-2px);
  border-color: var(--hb-green-dark);
  color: var(--hb-white);
  background: var(--hb-green-dark);
}
.button-light { border-color: var(--hb-white); color: var(--hb-green-dark); background: var(--hb-white); }
.button-light:hover { border-color: var(--hb-cream); color: var(--hb-green-dark); background: var(--hb-cream); }
.button-outline { color: var(--hb-green); background: transparent; }
.button-outline:hover { color: var(--hb-white); }
.button-gold { border-color: var(--hb-gold); color: var(--hb-ink); background: var(--hb-gold); }
.button-gold:hover { border-color: #e7a72d; color: var(--hb-ink); background: #e7a72d; }
.button-arrow::after { content: "→"; transition: transform .2s ease; }
.button-arrow:hover::after { transform: translateX(3px); }
.button-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.text-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 800; text-decoration: none; }
.text-link::after { content: "→"; }

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 8rem) 0 clamp(5rem, 8vw, 8rem);
  background:
    radial-gradient(circle at 12% 18%, rgba(242,184,75,.27), transparent 25%),
    radial-gradient(circle at 90% 10%, rgba(25,116,95,.13), transparent 31%),
    var(--hb-cream);
}
.hero::after {
  position: absolute;
  right: -90px; bottom: -130px;
  width: 300px; height: 300px;
  border: 55px solid rgba(25,116,95,.08);
  border-radius: 50%; content: "";
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.06fr .94fr; align-items: center; gap: clamp(2.5rem, 7vw, 6rem); }
.hero-copy h1 { max-width: 760px; }
.hero-copy h1 em { color: var(--hb-green); font-style: normal; }
.hero-copy > p { max-width: 630px; color: var(--hb-text); font-size: clamp(1.05rem, 2vw, 1.24rem); }
.hero-visual { position: relative; }
.hero-visual img { width: 100%; filter: drop-shadow(0 24px 26px rgba(30,85,70,.14)); }
.hero-note {
  position: absolute;
  right: -1rem; bottom: 1.4rem;
  max-width: 245px;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 18px;
  background: rgba(255,255,255,.93);
  box-shadow: var(--hb-shadow);
  color: var(--hb-ink);
  font-size: .86rem;
  font-weight: 700;
}
.hero-note strong { display: block; color: var(--hb-green); font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; }

.impact-strip { position: relative; z-index: 4; margin-top: -42px; }
.impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border-radius: var(--hb-radius); background: var(--hb-ink); box-shadow: var(--hb-shadow); }
.impact-item { min-height: 145px; display: flex; flex-direction: column; justify-content: center; padding: 1.7rem 2rem; color: rgba(255,255,255,.72); }
.impact-item + .impact-item { border-left: 1px solid rgba(255,255,255,.14); }
.impact-number { color: var(--hb-white); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 700; line-height: 1; }
.impact-label { margin-top: .55rem; font-size: .83rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }

.split { display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: clamp(2.5rem, 7vw, 6.5rem); }
.story-art { position: relative; min-height: 490px; }
.story-shape { position: absolute; inset: 7% 7% 4% 0; border-radius: 48% 52% 44% 56% / 55% 42% 58% 45%; background: var(--hb-mint); }
.story-card {
  position: absolute;
  top: 0; right: 0;
  width: 72%;
  padding: 2.2rem;
  border-radius: var(--hb-radius);
  background: var(--hb-white);
  box-shadow: var(--hb-shadow);
}
.story-card .large-quote { color: var(--hb-gold); font-family: Georgia, serif; font-size: 5.5rem; line-height: .6; }
.story-card blockquote { margin: .6rem 0 1.3rem; padding: 0; border: 0; background: transparent; font-size: 1.4rem; }
.story-person { display: flex; align-items: center; gap: .75rem; color: var(--hb-muted); font-size: .86rem; }
.story-avatar { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--hb-white); background: var(--hb-coral); font-weight: 800; }
.story-mini {
  position: absolute;
  bottom: 0; left: 0;
  width: 55%;
  padding: 1.5rem;
  border-radius: var(--hb-radius);
  color: var(--hb-white);
  background: var(--hb-green);
  box-shadow: var(--hb-shadow);
}
.story-mini strong { display: block; font-family: Georgia, serif; font-size: 2rem; }
.check-list { margin: 1.8rem 0; padding: 0; list-style: none; }
.check-list li { position: relative; margin: .75rem 0; padding-left: 2rem; color: var(--hb-ink); font-weight: 700; }
.check-list li::before { position: absolute; left: 0; top: .1rem; width: 1.25rem; height: 1.25rem; display: grid; place-items: center; border-radius: 50%; color: var(--hb-white); background: var(--hb-green); content: "✓"; font-size: .72rem; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-card, .project-card, .post-card, .option-card {
  overflow: hidden;
  border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius);
  background: var(--hb-white);
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover, .project-card:hover, .post-card:hover, .option-card:hover { transform: translateY(-5px); box-shadow: var(--hb-shadow); }
.feature-card { padding: 2rem; }
.feature-icon { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 1.4rem; border-radius: 16px; color: var(--hb-green); background: var(--hb-mint); font-size: 1.5rem; font-weight: 800; }
.feature-card:nth-child(2) .feature-icon { color: #8b5a00; background: #fff0c9; }
.feature-card:nth-child(3) .feature-icon { color: #a13f29; background: #ffe2da; }
.feature-card p { color: var(--hb-muted); }

.project-card { display: flex; min-height: 100%; flex-direction: column; }
.project-image { aspect-ratio: 16 / 10; overflow: hidden; background: var(--hb-mint); }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.project-card:hover .project-image img { transform: scale(1.035); }
.project-content { display: flex; flex: 1; flex-direction: column; padding: 1.7rem; }
.project-kicker { margin-bottom: .7rem; color: var(--hb-green); font-size: .73rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.project-content p { color: var(--hb-muted); }
.project-content .text-link { margin-top: auto; }

.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; counter-reset: process; }
.process-step { position: relative; padding: 2rem; border-radius: var(--hb-radius); background: rgba(255,255,255,.75); counter-increment: process; }
.process-step::before { display: block; margin-bottom: 2rem; color: var(--hb-green); font-family: Georgia, serif; font-size: 2.2rem; font-weight: 700; content: "0" counter(process); }
.process-step p { color: var(--hb-muted); }

.post-card { min-height: 100%; padding: 1.8rem; }
.post-meta { display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: .9rem; color: var(--hb-muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; }
.post-card h3 a, .entry-title a { color: var(--hb-ink); text-decoration: none; }
.post-card h3 a:hover, .entry-title a:hover { color: var(--hb-green); }
.post-card p { color: var(--hb-muted); }

.cta-band { position: relative; overflow: hidden; padding: clamp(3rem, 6vw, 5.2rem); border-radius: 32px; color: rgba(255,255,255,.82); background: var(--hb-green); }
.cta-band::after { position: absolute; right: -65px; bottom: -110px; width: 270px; height: 270px; border: 46px solid rgba(255,255,255,.1); border-radius: 50%; content: ""; }
.cta-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; }
.cta-band h2 { max-width: 760px; color: var(--hb-white); }
.cta-band p { max-width: 650px; margin-bottom: 0; }

.page-hero { padding: clamp(4rem, 7vw, 6.5rem) 0; background: var(--hb-cream); }
.page-hero h1 { max-width: 900px; font-size: clamp(2.8rem, 6vw, 5rem); }
.page-hero p { max-width: 680px; color: var(--hb-muted); font-size: 1.12rem; }
.breadcrumb { margin-bottom: 1.2rem; color: var(--hb-muted); font-size: .82rem; font-weight: 700; text-transform: uppercase; }
.breadcrumb a { text-decoration: none; }
.entry-content { color: var(--hb-text); }
.entry-content > * { max-width: 790px; margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { max-width: 1100px; }
.entry-content > .alignfull { max-width: none; }
.entry-content h2, .entry-content h3 { margin-top: 1.7em; }
.entry-content img { border-radius: var(--hb-radius); }
.entry-footer { margin-top: 2rem; padding-top: 1.3rem; border-top: 1px solid var(--hb-line); color: var(--hb-muted); font-size: .88rem; }

.contact-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(2rem, 5vw, 5rem); }
.contact-details { padding: 2rem; border-radius: var(--hb-radius); background: var(--hb-ink); color: rgba(255,255,255,.76); }
.contact-details h2, .contact-details h3 { color: var(--hb-white); }
.contact-list { margin: 1.7rem 0 0; padding: 0; list-style: none; }
.contact-list li { padding: 1rem 0; border-top: 1px solid rgba(255,255,255,.13); }
.contact-list span { display: block; color: rgba(255,255,255,.55); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.contact-list a { color: var(--hb-white); text-decoration: none; }
.contact-form { padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--hb-line); border-radius: var(--hb-radius); background: var(--hb-white); box-shadow: 0 12px 35px rgba(18,67,55,.07); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { margin-bottom: 1rem; }
.form-field label { display: block; margin-bottom: .4rem; color: var(--hb-ink); font-size: .86rem; font-weight: 800; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: .82rem .95rem;
  border: 1px solid #cbdad4;
  border-radius: 11px;
  color: var(--hb-ink);
  background: var(--hb-white);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: 3px solid rgba(25,116,95,.17); border-color: var(--hb-green); }
.form-field textarea { min-height: 165px; resize: vertical; }
.honeypot { position: absolute; left: -9999px; }
.notice { margin-bottom: 1.3rem; padding: 1rem 1.15rem; border-radius: 12px; font-weight: 700; }
.notice-success { color: #0e513f; background: #dff5e9; }
.notice-error { color: #7d2a1a; background: #ffe5df; }

.option-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.option-card { padding: 2rem; }
.option-card.highlight { border: 2px solid var(--hb-gold); box-shadow: var(--hb-shadow); }
.amount { margin: .5rem 0 1rem; color: var(--hb-green); font-family: Georgia, serif; font-size: 2.4rem; font-weight: 700; }
.inline-note { margin-top: 2rem; padding: 1.3rem 1.5rem; border-radius: var(--hb-radius-sm); background: var(--hb-cream); color: var(--hb-muted); }

.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 2.4rem; }
.page-numbers { min-width: 42px; min-height: 42px; display: grid; place-items: center; padding: .4rem .7rem; border: 1px solid var(--hb-line); border-radius: 10px; text-decoration: none; }
.page-numbers.current, .page-numbers:hover { color: var(--hb-white); background: var(--hb-green); }
.post-navigation { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--hb-line); }
.post-navigation .nav-links { justify-content: space-between; }

.comments-area { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--hb-line); }
.comment-list { padding: 0; list-style: none; }
.comment-body { margin: 1rem 0; padding: 1.3rem; border: 1px solid var(--hb-line); border-radius: var(--hb-radius-sm); }
.comment-form input:not([type="submit"]), .comment-form textarea { width: 100%; padding: .8rem; border: 1px solid var(--hb-line); border-radius: 10px; }

.site-footer { margin-top: 0; color: rgba(255,255,255,.68); background: var(--hb-ink); }
.footer-main { display: grid; grid-template-columns: 1.25fr .75fr .8fr; gap: 3rem; padding: 4.5rem 0 3rem; }
.footer-main h2, .footer-main h3 { color: var(--hb-white); }
.footer-brand .brand-link { color: var(--hb-white); }
.footer-brand p { max-width: 420px; margin-top: 1.2rem; }
.footer-menu { align-items: flex-start; flex-direction: column; gap: .65rem; }
.footer-menu a, .site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.footer-menu a:hover, .site-footer a:hover { color: var(--hb-white); }
.social-links { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.2rem; }
.social-links a { min-width: 41px; height: 41px; display: grid; place-items: center; padding: 0 .75rem; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.footer-bottom { padding: 1.25rem 0; border-top: 1px solid rgba(255,255,255,.11); font-size: .78rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 1rem; }

.empty-state { padding: 3rem; border: 1px dashed #b8cbc4; border-radius: var(--hb-radius); text-align: center; }
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.not-found .code { color: var(--hb-mint); font-family: Georgia, serif; font-size: clamp(6rem, 20vw, 14rem); font-weight: 700; line-height: .8; }

@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; }
  .primary-menu-wrap {
    position: absolute;
    top: calc(100% + 1px); right: 1rem; left: 1rem;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 1rem;
    padding: 1.2rem;
    border: 1px solid var(--hb-line);
    border-radius: 0 0 18px 18px;
    background: var(--hb-white);
    box-shadow: var(--hb-shadow);
  }
  body.nav-open .primary-menu-wrap { display: flex; }
  .primary-menu { align-items: stretch; flex-direction: column; gap: 0; }
  .primary-menu a { display: block; padding: .72rem .3rem; border-bottom: 1px solid var(--hb-line); }
  .header-donate { width: 100%; }
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { width: min(100%, 650px); margin-inline: auto; }
  .story-art { min-height: 430px; }
  .footer-main { grid-template-columns: 1.4fr 1fr; }
  .footer-main > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .header-inner { min-height: 72px; }
  .brand-tagline { display: none; }
  .hero { padding-top: 3.2rem; }
  .hero-note { right: 0; bottom: .5rem; }
  .impact-grid, .card-grid, .process-grid, .option-grid { grid-template-columns: 1fr; }
  .impact-item { min-height: 115px; }
  .impact-item + .impact-item { border-top: 1px solid rgba(255,255,255,.14); border-left: 0; }
  .cta-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-main > :last-child { grid-column: auto; }
  .footer-bottom-inner { flex-direction: column; }
}

@media (max-width: 520px) {
  .container, .narrow { width: min(calc(100% - 1.3rem), var(--hb-container)); }
  .button-row .button { width: 100%; }
  .story-art { min-height: 520px; }
  .story-card { width: 90%; }
  .story-mini { width: 74%; }
  .hero-note { position: relative; right: auto; bottom: auto; margin-top: -1rem; margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
