/* =========================================================
   YourPlace Community Foundation
   Design System
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ------ WordPress / GeneratePress overrides ------ */
/* Neutralize GP's content container so our full-width sections work */
body.yourplace-page {
  background: var(--bg) !important;
  color: var(--ink) !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.yourplace-page #page,
body.yourplace-page .site,
body.yourplace-page .grid-container,
body.yourplace-page .site-content,
body.yourplace-page .content-area,
body.yourplace-page main.site-main,
body.yourplace-page main.yourplace-main,
body.yourplace-page article {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}
body.yourplace-page .entry-content,
body.yourplace-page .entry-header,
body.yourplace-page .entry-footer {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.yourplace-page .entry-title,
body.yourplace-page .page-title { display: none !important; }
/* Hide GP's default header/footer if they ever appear */
body.yourplace-page > header.site-header:not(:first-of-type),
body.yourplace-page .gen-sidebar-nav,
body.yourplace-page footer.site-info { display: none !important; }
/* Account for WP admin bar */
body.yourplace-page.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  body.yourplace-page.admin-bar .site-header { top: 46px; }
}
/* Reset any inline list/p styles GP injects */
body.yourplace-page main.yourplace-main { display: block; }

:root {
  /* Brand colors */
  --green: #406d04;
  --green-deep: #2f5103;
  --green-soft: #6b9a2a;
  --green-tint: #eaf2dc;

  --cream: #f5efde;
  --cream-deep: #d5cca3;

  --red: #c83e34;
  --red-deep: #a82e25;

  --ink: #1a1f12;
  --ink-soft: #4a5240;
  --muted: #6b7560;
  --line: #e3decd;
  --bg: #fbf9f2;
  --white: #ffffff;
  --gray-50: #f7f7f5;
  --gray-100: #efefe9;

  /* Type */
  --display: 'Fraunces', Georgia, serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing & radii */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 12px rgba(26, 31, 18, 0.06);
  --shadow: 0 12px 40px rgba(26, 31, 18, 0.08);
  --shadow-lg: 0 24px 60px rgba(26, 31, 18, 0.12);

  --container: 1240px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* Layout */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--green);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--green);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(251, 249, 242, 0.92);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 32px;
}
.logo {
 
}
.logo img {
  height: 110px;
  width: auto;
  padding-left: 50px;
}
}
.logo-text {
  display: none;
}
.logo-text strong {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.logo-text span {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
}
.nav-links a:hover { color: var(--green); }
.nav-links a.active { color: var(--green); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.menu-toggle svg { width: 22px; height: 22px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.25s ease; }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--green);
  color: var(--white);
}
.btn-primary:hover { background: var(--green-deep); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(64, 109, 4, 0.3); }

.btn-accent {
  background: var(--red);
  color: var(--white);
}
.btn-accent:hover { background: var(--red-deep); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(200, 62, 52, 0.3); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--white); }

.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

.btn-sm { padding: 10px 18px; font-size: 0.88rem; }

/* 501c3 badge */
.badge-501c3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--green-tint);
  color: var(--green-deep);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-501c3::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(64, 109, 4, 0.15);
}

/* HERO */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(107, 154, 42, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(213, 204, 163, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}
.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 70px;
  align-items: center;
}
.hero-content { animation: fadeUp 0.9s ease-out; }
.hero h1 {
  margin: 22px 0 24px;
  letter-spacing: -0.025em;
}
.hero h1 .accent {
  font-style: italic;
  color: var(--green);
  font-weight: 400;
}
.hero-lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 36px;
  max-width: 560px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 50px;
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.hero-stat strong {
  display: block;
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--green);
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stat span {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  animation: fadeUp 1s ease-out 0.15s both;
}
.hero-image {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-soft), var(--green-deep));
  box-shadow: var(--shadow-lg);
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-card {
  position: absolute;
  background: var(--white);
  padding: 20px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-card-1 {
  bottom: 30px;
  left: -40px;
  animation: float 4s ease-in-out infinite;
}
.hero-card-2 {
  top: 40px;
  right: -30px;
  animation: float 4s ease-in-out infinite 1.5s;
}
.hero-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--green-tint);
  display: grid;
  place-items: center;
  color: var(--green);
  flex-shrink: 0;
}
.hero-card-icon svg { width: 22px; height: 22px; }
.hero-card-text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--ink);
  font-weight: 600;
}
.hero-card-text span {
  font-size: 0.78rem;
  color: var(--muted);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* SECTION BASE */
.section {
  padding: 100px 0;
  position: relative;
}
.section-header {
  max-width: 720px;
  margin: 0 auto 60px;
  text-align: center;
}
.section-header.left { text-align: left; margin: 0 0 60px; }
.section-header h2 { margin-top: 18px; }
.section-header p {
  margin-top: 18px;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

/* MISSION STRIP */
.mission-strip {
  background: var(--ink);
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.mission-strip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--cream-deep), var(--red), var(--green));
}
.mission-strip h2 {
  color: var(--white);
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
  font-weight: 400;
}
.mission-strip h2 em {
  color: var(--cream-deep);
  font-style: italic;
}
.mission-strip-sub {
  text-align: center;
  margin-top: 28px;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

/* SERVICES */
.services {
  background: var(--bg);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  position: relative;
  padding: 38px 32px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  transition: all 0.35s ease;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card.accent::before { background: var(--red); }

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--green-tint);
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  color: var(--green);
  transition: all 0.3s ease;
}
.service-card.accent .service-icon { background: rgba(200, 62, 52, 0.1); color: var(--red); }
.service-card:hover .service-icon { transform: scale(1.05) rotate(-3deg); }
.service-icon svg { width: 30px; height: 30px; }
.service-card h3 { margin-bottom: 14px; font-size: 1.45rem; }
.service-card p {
  color: var(--ink-soft);
  margin-bottom: 22px;
  line-height: 1.65;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-weight: 600;
  font-size: 0.92rem;
  transition: gap 0.25s ease;
}
.service-link svg { width: 14px; height: 14px; }
.service-card:hover .service-link { gap: 14px; }

/* IMPACT / WHO WE SERVE */
.impact {
  background: var(--cream);
  position: relative;
}
.impact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(64, 109, 4, 0.06), transparent 60%);
  pointer-events: none;
}
.impact .container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
  position: relative;
}
.impact-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow);
}
.impact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.impact-quote {
  position: absolute;
  bottom: 30px;
  left: 30px;
  right: 30px;
  background: var(--white);
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-family: var(--display);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
}
.impact-quote-attr {
  display: block;
  font-family: var(--body);
  font-style: normal;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 10px;
  letter-spacing: 0.04em;
}

.impact-list {
  margin-top: 36px;
  display: grid;
  gap: 16px;
}
.impact-item {
  display: flex;
  gap: 18px;
  padding: 22px;
  background: rgba(255,255,255,0.6);
  border-radius: var(--radius);
  border: 1px solid rgba(64, 109, 4, 0.1);
  transition: all 0.3s ease;
}
.impact-item:hover {
  background: var(--white);
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
}
.impact-item-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: var(--green);
  color: var(--white);
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.impact-item-icon svg { width: 20px; height: 20px; }
.impact-item h4 {
  font-family: var(--body);
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.impact-item p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0;
}

/* PROGRAMS / FEATURES */
.programs {
  background: var(--white);
}
.programs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.program-card {
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  transition: all 0.3s ease;
  display: flex;
  gap: 24px;
}
.program-card:hover {
  border-color: var(--green);
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}
.program-num {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--green);
  flex-shrink: 0;
  line-height: 1;
}
.program-card h3 { margin-bottom: 10px; font-size: 1.3rem; }
.program-card p { color: var(--ink-soft); font-size: 0.96rem; }

/* CTA STRIP */
.cta-strip {
  position: relative;
  background: var(--green);
  color: var(--white);
  padding: 90px 0;
  text-align: center;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><circle cx='20' cy='20' r='1' fill='%23ffffff' opacity='0.08'/></svg>");
  background-size: 40px 40px;
}
.cta-strip .container { position: relative; }
.cta-strip h2 { color: var(--white); max-width: 760px; margin: 0 auto 24px; }
.cta-strip h2 em { font-style: italic; color: var(--cream-deep); }
.cta-strip p {
  color: rgba(255,255,255,0.85);
  max-width: 580px;
  margin: 0 auto 36px;
  font-size: 1.08rem;
}
.cta-strip .btn-primary {
  background: var(--white);
  color: var(--green-deep);
}
.cta-strip .btn-primary:hover { background: var(--cream); }
.cta-strip .btn-outline {
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}
.cta-strip .btn-outline:hover { background: var(--white); color: var(--green-deep); }
.cta-strip-buttons { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* TESTIMONIAL / TRUST */
.trust {
  background: var(--bg);
  padding: 80px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.trust-item h3 {
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 8px;
}
.trust-item p {
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

/* FOOTER */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: 80px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img { height: 56px; margin-bottom: 18px; }
.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 22px;
  max-width: 380px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: grid;
  place-items: center;
  transition: all 0.25s ease;
  color: rgba(255,255,255,0.6);
}
.footer-social a:hover { background: var(--green); color: var(--white); border-color: var(--green); }
.footer-social svg { width: 18px; height: 18px; }

.footer-col h4 {
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--white);
  margin-bottom: 22px;
}
.footer-col ul { display: grid; gap: 12px; }
.footer-col a {
  font-size: 0.94rem;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--cream-deep); }

.footer-contact { display: grid; gap: 14px; }
.footer-contact-item {
  display: flex;
  gap: 12px;
  font-size: 0.94rem;
  color: rgba(255,255,255,0.7);
  align-items: flex-start;
}
.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--cream-deep);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a:hover { color: var(--cream-deep); }

/* PAGE HEADER (inner pages) */
.page-header {
  padding: 80px 0 70px;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(64, 109, 4, 0.1), transparent 70%);
  border-radius: 50%;
}
.page-header .container { position: relative; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.breadcrumb a:hover { color: var(--green); }
.page-header h1 { max-width: 800px; }
.page-header p {
  margin-top: 18px;
  max-width: 720px;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

/* PROSE */
.prose-section { padding: 80px 0; }
.prose {
  max-width: 760px;
  font-size: 1.05rem;
  color: var(--ink-soft);
}
.prose h2 { margin: 50px 0 20px; color: var(--ink); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 36px 0 14px; color: var(--ink); }
.prose p { margin-bottom: 18px; line-height: 1.75; }
.prose ul { margin: 18px 0 18px 0; padding-left: 0; }
.prose ul li {
  position: relative;
  padding: 6px 0 6px 32px;
  color: var(--ink-soft);
}
.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 18px;
  height: 2px;
  background: var(--green);
}
.prose strong { color: var(--ink); font-weight: 600; }

/* TWO-COL */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}
.two-col-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  position: sticky;
  top: 100px;
}
.two-col-image img { width: 100%; height: 100%; object-fit: cover; }

/* FORMS */
.form-card {
  background: var(--white);
  padding: 44px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.form-card h3 { margin-bottom: 8px; }
.form-intro {
  color: var(--ink-soft);
  margin-bottom: 28px;
  font-size: 0.96rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.form-group label .req { color: var(--red); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 13px 16px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 10px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  transition: all 0.2s ease;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(64, 109, 4, 0.1);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

.form-notice {
  background: rgba(200, 62, 52, 0.06);
  border-left: 3px solid var(--red);
  padding: 16px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 22px 0 26px;
  line-height: 1.55;
}
.form-notice strong { color: var(--red-deep); }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.checkbox input { margin-top: 4px; accent-color: var(--green); }

/* TABS (Get Help) */
.tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
  overflow-x: auto;
  padding-bottom: 0;
}
.tab {
  padding: 14px 20px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-size: 0.94rem;
}
.tab:hover { color: var(--ink); }
.tab.active {
  color: var(--green);
  border-color: var(--green);
}
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* DONATE */
.donate-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.donate-amount {
  padding: 18px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.donate-amount:hover { border-color: var(--green); }
.donate-amount.active { border-color: var(--green); background: var(--green-tint); color: var(--green-deep); }

.donate-toggle {
  display: flex;
  background: var(--gray-100);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 24px;
}
.donate-toggle button {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.2s ease;
  font-size: 0.94rem;
}
.donate-toggle button.active {
  background: var(--white);
  color: var(--green);
  box-shadow: var(--shadow-sm);
}

/* CHATBOT */
.chat-toggle {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #c83e34;
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 14px 40px #c83e34;
  z-index: 998;
  transition: all 0.3s ease;
  animation: pulseRing 2s infinite;
}
.chat-toggle svg { width: 28px; height: 28px; }
.chat-toggle:hover { transform: scale(1.06); background: var(--green-deep); }
@keyframes pulseRing {
  0% { box-shadow: 0 14px 40px rgba(64, 109, 4, 0.4), 0 0 0 0 rgba(64, 109, 4, 0.5); }
  70% { box-shadow: 0 14px 40px rgba(64, 109, 4, 0.4), 0 0 0 18px rgba(64, 109, 4, 0); }
  100% { box-shadow: 0 14px 40px rgba(64, 109, 4, 0.4), 0 0 0 0 rgba(64, 109, 4, 0); }
}

.chat-window {
  position: fixed;
  bottom: 110px;
  right: 28px;
  width: 380px;
  max-width: calc(100vw - 56px);
  height: 560px;
  max-height: calc(100vh - 140px);
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.18);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 999;
  animation: slideUp 0.3s ease;
}
.chat-window.open { display: flex; }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-header {
  padding: 20px 22px;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 14px;
}
.chat-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--white);
  color: var(--green);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-family: var(--display);
}
.chat-header-text { flex: 1; }
.chat-header-text strong { display: block; font-size: 0.98rem; }
.chat-header-text span { font-size: 0.78rem; color: rgba(255,255,255,0.8); display: flex; align-items: center; gap: 6px; }
.chat-header-text span::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #6deb6f;
}
.chat-close {
  color: var(--white);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}
.chat-close:hover { background: rgba(255,255,255,0.15); }

.chat-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.5;
  animation: msgIn 0.3s ease;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-msg.bot {
  background: var(--white);
  color: var(--ink);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
}
.chat-msg.user {
  background: var(--green);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 20px 12px;
  background: var(--bg);
}
.quick-reply {
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--green);
  font-weight: 500;
  transition: all 0.2s ease;
}
.quick-reply:hover { background: var(--green); color: var(--white); border-color: var(--green); }

.chat-input {
  padding: 14px 16px;
  background: var(--white);
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
}
.chat-input input {
  flex: 1;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-size: 0.92rem;
  background: var(--bg);
}
.chat-input input:focus { outline: none; border-color: var(--green); background: var(--white); }
.chat-send {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: grid;
  place-items: center;
  transition: background 0.2s;
}
.chat-send:hover { background: var(--green-deep); }
.chat-send svg { width: 18px; height: 18px; }

/* MOBILE */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; gap: 50px; }
  .hero-stats { gap: 30px; }
  .impact .container { grid-template-columns: 1fr; gap: 50px; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .two-col-image { position: static; aspect-ratio: 16/10; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .programs-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .hero { padding: 50px 0 70px; }
  .nav-links, .nav-cta .btn { display: none; }
  .menu-toggle { display: grid; }
  .nav-mobile-open .nav-links {
    display: flex;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--line);
    gap: 0;
    box-shadow: var(--shadow);
  }
  .nav-mobile-open .nav-links a { padding: 14px; width: 100%; }
  .services-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .donate-amounts { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-card-1 { left: 0; bottom: 20px; }
  .hero-card-2 { right: 0; top: 20px; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .form-card { padding: 28px 22px; }
  .chat-window { right: 12px; left: 12px; width: auto; bottom: 100px; }
  .chat-toggle { right: 18px; bottom: 18px; }
}

/* ============== CONTACT PAGE ============== */
  .contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: start;
  }
  .contact-info-stack { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 100px; }
  .info-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.25s ease;
  }
  .info-card:hover { border-color: var(--green); transform: translateY(-2px); box-shadow: var(--shadow); }
  .info-card-icon {
    width: 44px; height: 44px;
    background: var(--cream);
    color: var(--green);
    border-radius: 12px;
    display: grid; place-items: center;
    margin-bottom: 16px;
  }
  .info-card-icon svg { width: 22px; height: 22px; }
  .info-card h4 {
    font-family: var(--display);
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--ink);
  }
  .info-card p { font-size: 15px; color: var(--ink-soft); line-height: 1.6; margin: 0; }
  .info-card a { color: var(--green); text-decoration: none; font-weight: 500; }
  .info-card a:hover { text-decoration: underline; }
  .info-card .hours-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
  .info-card .hours-row span:first-child { color: var(--ink-soft); }
  .info-card .hours-row span:last-child { color: var(--ink); font-weight: 500; }
  .info-card.accent {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
    border-color: var(--green);
    color: var(--white);
  }
  .info-card.accent h4, .info-card.accent p { color: var(--white); }
  .info-card.accent .info-card-icon { background: rgba(255,255,255,0.18); color: var(--white); }
  .info-card.accent a {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  @media (max-width: 1024px) {
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .contact-info-stack { position: static; }
  }

/* ============== CONTACT FORM 7 INTEGRATION ============== */
/* Make CF7 output blend with our form-card design system. */

/* Reset CF7's form to inherit our form-card styling */
.wpcf7 form.wpcf7-form {
  margin: 0;
}

.wpcf7 .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
}
.wpcf7 .form-group { display: flex; flex-direction: column; }
.wpcf7 .form-group.full { grid-column: 1 / -1; }

@media (max-width: 640px) {
  .wpcf7 .form-grid { grid-template-columns: 1fr; }
}

/* Labels */
.wpcf7 .form-group > label,
.wpcf7-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  display: block;
  letter-spacing: 0.01em;
}

.wpcf7 .req {
  color: var(--red);
  font-weight: 700;
  margin-left: 2px;
}

/* CF7 wraps every field in <span class="wpcf7-form-control-wrap"> */
.wpcf7 .wpcf7-form-control-wrap {
  display: block;
  position: relative;
}

/* Inputs, selects, textareas */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  line-height: 1.4;
}

.wpcf7 textarea {
  min-height: 110px;
  resize: vertical;
  font-family: inherit;
}

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(64, 109, 4, 0.12);
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: var(--muted);
}

.wpcf7 select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234a5240' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 10px;
  padding-right: 38px;
}

/* Radio + Checkbox lists CF7 generates */
.wpcf7 .wpcf7-list-item {
  display: block;
  margin: 8px 0 8px 0 !important;
}
.wpcf7 .wpcf7-list-item label {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500 !important;
  font-size: 0.92rem !important;
  color: var(--ink-soft) !important;
  margin-bottom: 0 !important;
  cursor: pointer;
  line-height: 1.5;
}
.wpcf7 .wpcf7-list-item input[type="checkbox"],
.wpcf7 .wpcf7-list-item input[type="radio"] {
  margin-top: 2px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--green);
  cursor: pointer;
}
.wpcf7 .wpcf7-list-item-label {
  flex: 1;
}

/* Submit button — match our .btn styles */
.wpcf7 input[type="submit"],
.wpcf7 button[type="submit"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: 0.01em;
  margin-top: 24px;
}
.wpcf7 input[type="submit"].btn-primary,
.wpcf7 input[type="submit"]:not(.btn-accent) {
  background: var(--green);
  color: var(--white);
}
.wpcf7 input[type="submit"].btn-primary:hover,
.wpcf7 input[type="submit"]:not(.btn-accent):hover {
  background: var(--green-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(64, 109, 4, 0.18);
}
.wpcf7 input[type="submit"].btn-accent {
  background: var(--red);
  color: var(--white);
  width: 100%;
  justify-content: center;
}
.wpcf7 input[type="submit"].btn-accent:hover {
  background: var(--red-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(200, 62, 52, 0.22);
}

/* Loading spinner */
.wpcf7 .wpcf7-spinner {
  background-color: var(--green);
  margin-left: 12px;
}

/* Validation tip (inline error under field) */
.wpcf7 .wpcf7-not-valid-tip {
  color: var(--red);
  font-size: 0.82rem;
  margin-top: 6px;
  font-weight: 500;
}
.wpcf7 input.wpcf7-not-valid,
.wpcf7 select.wpcf7-not-valid,
.wpcf7 textarea.wpcf7-not-valid {
  border-color: var(--red);
  background: rgba(200, 62, 52, 0.04);
}

/* CF7 response messages (success / error / spam etc) */
.wpcf7 .wpcf7-response-output {
  margin: 24px 0 0 !important;
  padding: 16px 20px !important;
  border-radius: 12px !important;
  border: 1px solid !important;
  font-size: 0.92rem;
  font-weight: 500;
}
.wpcf7 form.sent .wpcf7-response-output {
  background: rgba(64, 109, 4, 0.08);
  border-color: var(--green) !important;
  color: var(--green-deep);
}
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
  background: rgba(200, 62, 52, 0.06);
  border-color: var(--red) !important;
  color: var(--red-deep);
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
  background: rgba(213, 204, 163, 0.3);
  border-color: var(--cream-deep) !important;
  color: var(--ink);
}

/* Form-notice inside CF7 markup (privacy notices etc) */
.wpcf7 .form-notice {
  background: rgba(213, 204, 163, 0.25);
  border-left: 3px solid var(--cream-deep);
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 20px 0;
  line-height: 1.55;
}
.wpcf7 .form-notice strong {
  color: var(--ink);
}

/* Placeholder shown when CF7 isn't installed or ID isn't set */
.cf7-placeholder {
  background: rgba(213, 204, 163, 0.3);
  border: 1px dashed var(--cream-deep);
  color: var(--ink-soft);
  padding: 22px 24px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.6;
}
.cf7-placeholder strong { color: var(--ink); display: block; margin-bottom: 4px; }
.cf7-placeholder code {
  background: var(--white);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
  border: 1px solid var(--line);
}

/* ============== CHAT WIDGET REFINEMENTS ============== */
/* Close button — transparent, subtle hover */
.chat-header .chat-close {
  background: transparent !important;
  border: none !important;
  color: rgba(255, 255, 255, 0.85) !important;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.chat-header .chat-close:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
}
.chat-header .chat-close svg { width: 18px; height: 18px; stroke: currentColor; }

/* Chat input — unified pill */
.chat-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 12px 12px 18px;
  background: var(--white);
  border-top: 1px solid var(--line);
  position: relative;
}
.chat-input input[type="text"] {
  flex: 1;
  border: 1px solid var(--line) !important;
  background: var(--gray-50) !important;
  border-radius: 999px !important;
  padding: 12px 52px 12px 18px !important;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  width: 100%;
}
.chat-input input[type="text"]:focus {
  border-color: var(--green) !important;
  background: var(--white) !important;
  box-shadow: 0 0 0 3px rgba(64, 109, 4, 0.12);
}
.chat-input input[type="text"]::placeholder { color: var(--muted); }

/* Send button sits inside the input */
.chat-input .chat-send {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green) !important;
  color: var(--white) !important;
  border: none !important;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  flex-shrink: 0;
  padding: 0;
}
.chat-input .chat-send:hover {
  background: var(--green-deep) !important;
  transform: translateY(-50%) scale(1.05);
}
.chat-input .chat-send:active { transform: translateY(-50%) scale(0.95); }
.chat-input .chat-send svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  margin-left: -2px;
}

/* ============== MOBILE IMPROVEMENTS — V1.3.0 ============== */

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem !important;
    line-height: 1.15 !important;
  }
  .hero-lede {
    font-size: 1rem !important;
  }
  section h2,
  .page-header h1 {
    font-size: 1.9rem !important;
    line-height: 1.2 !important;
  }
  section h3 {
    font-size: 1.35rem !important;
  }
  .section {
    padding: 50px 0 !important;
  }
  .prose-section {
    padding: 40px 0 !important;
  }
  p + p {
    margin-top: 16px !important;
  }
  .prose p {
    margin-bottom: 18px !important;
  }
  .btn,
  .btn-primary,
  .btn-accent,
  .btn-outline {
    text-decoration: none !important;
    font-size: 0.9rem !important;
    padding: 12px 20px !important;
  }
  .services-grid {
    gap: 24px !important;
  }
  .service-card {
    padding: 24px !important;
  }
  .impact-list {
    gap: 20px !important;
  }
  .form-card,
  .info-card,
  .service-card {
    text-align: left !important;
  }
  .service-icon,
  .impact-item-icon {
    margin-bottom: 12px !important;
  }
  .chat-toggle {
    width: 52px !important;
    height: 52px !important;
    bottom: 20px !important;
    right: 16px !important;
  }
  .chat-toggle svg {
    width: 22px !important;
    height: 22px !important;
  }
  .chat-window {
    width: 90% !important;
    max-width: 380px !important;
    bottom: 85px !important;
    right: 16px !important;
  }
  .service-link,
  .prose a {
    text-decoration: none !important;
    border-bottom: 1px solid currentColor;
    padding-bottom: 1px;
  }
  .service-link:hover,
  .prose a:hover {
    border-bottom-width: 2px;
  }
  .nav-links a {
    font-size: 0.9rem !important;
    padding: 6px 0 !important;
  }
  .hero-stats {
    flex-direction: column !important;
    gap: 16px !important;
  }
  .hero-stat strong {
    font-size: 2rem !important;
  }
  .hero-stat span {
    font-size: 0.85rem !important;
  }
  .mission-strip h2 {
    font-size: 1.6rem !important;
    line-height: 1.3 !important;
  }
  .cta-strip h2 {
    font-size: 1.8rem !important;
  }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  section h2 {
    font-size: 2.4rem !important;
  }
  .hero h1 {
    font-size: 2.8rem !important;
  }
  .chat-toggle {
    width: 56px !important;
    height: 56px !important;
  }
}
