/* =========================================================
   Honor the Struggle — compassion movement site
   Light palette = mission pages (Home, Get Involved, About, Contact)
   Dark palette  = Products page only (body.theme-dark)
   ========================================================= */

:root {
  /* Mission / light palette */
  --bg: #f4f7f5;
  --surface: #ffffff;
  --green: #3a7d5e;
  --green-dark: #2a5c45;
  --card-border: #ccddd5;
  --headline: #1a1a1a;
  --body: #555555;
  --muted: #888888;
  --divider: #e8e8e8;
  --cta-subtext: #b8dece;

  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(26, 26, 26, 0.06);
  --shadow-md: 0 10px 30px rgba(42, 92, 69, 0.12);
  --maxw: 1140px;
}

/* Dark palette — Products page only */
body.theme-dark {
  --bg: #1c1c1c;
  --surface: #252525;
  --card-border: #383838;
  --green: #6db89a;       /* accent on dark */
  --green-dark: #2a3d35;
  --headline: #e8e8e8;
  --body: #b8b8b8;
  --muted: #8a8a8a;
  --divider: #383838;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--headline); line-height: 1.2; font-weight: 700; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 78px 0; }
.section-surface { background: var(--surface); }

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.13em; font-size: 0.8rem;
  font-weight: 700; color: var(--green); margin-bottom: 12px;
}
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 14px; }
.section-head p { color: var(--body); font-size: 1.08rem; }

/* Buttons */
.btn {
  display: inline-block; font-weight: 600; font-size: 1rem; padding: 14px 28px;
  border-radius: 10px; border: 2px solid transparent; cursor: pointer; text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--green); color: #fff; border-color: var(--green); }
.btn-primary:hover { box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--green); border-color: var(--green); }
.btn-secondary:hover { background: rgba(58, 125, 94, 0.08); }
.btn-white { background: #fff; color: var(--green); border-color: #fff; }
.btn-white:hover { box-shadow: var(--shadow-md); }

/* Header / nav */
.header {
  position: sticky; top: 0; z-index: 50; background: var(--surface);
  border-bottom: 1px solid var(--card-border);
}
.nav { max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { font-weight: 700; font-size: 1.12rem; color: var(--headline); }
.logo:hover { text-decoration: none; }
.nav-menu { display: flex; align-items: center; gap: 30px; }
.nav-link { color: var(--headline); font-weight: 500; font-size: 0.98rem; }
.nav-link:hover { color: var(--green); text-decoration: none; }
.nav-link.active { color: var(--green); font-weight: 600; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle .bar { width: 24px; height: 2px; background: var(--headline); border-radius: 2px; }

/* Hero */
.hero { background: var(--bg); padding: 86px 0; }
.hero-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); margin-bottom: 22px; letter-spacing: -0.01em; }
.hero-subtext { color: var(--body); font-size: 1.18rem; max-width: 620px; margin: 0 auto 32px; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Cards */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--green-dark); }
body.theme-dark .card h3 { color: var(--green); }
.card p { color: var(--body); }

/* Product cards */
.product-card { display: flex; flex-direction: column; text-align: center; }
.product-img {
  height: 180px; border-radius: 10px; background: var(--bg); border: 1px dashed var(--card-border);
  display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 0.85rem; margin-bottom: 18px;
}
.product-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.product-price { font-size: 1.5rem; font-weight: 700; color: var(--green); margin-bottom: 12px; }
.product-card p { flex-grow: 1; margin-bottom: 20px; }

/* CTA band */
.cta-band { background: var(--green); color: #fff; text-align: center; padding: 72px 0; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 14px; }
.cta-band p { color: var(--cta-subtext); font-size: 1.12rem; max-width: 560px; margin: 0 auto 28px; }

/* Footer */
.footer { background: var(--surface); border-top: 1px solid var(--divider); color: var(--muted); padding: 40px 0; text-align: center; font-size: 0.92rem; }
.footer a { color: var(--green); }

/* Responsive */
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 680px) {
  .nav-menu {
    position: absolute; top: 66px; left: 0; right: 0; background: var(--surface);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 24px 16px;
    border-bottom: 1px solid var(--card-border); box-shadow: var(--shadow-md); display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu .nav-link { width: 100%; padding: 12px 0; }
  .nav-toggle { display: flex; }
  .section { padding: 54px 0; }
}

/* Forms */
.form-field { margin-bottom: 16px; text-align: left; }
.form-field label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--headline); margin-bottom: 6px; }
.form-field label .req { color: #c0392b; }
.form-field input, .form-field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--card-border); border-radius: 8px;
  font-family: inherit; font-size: 0.98rem; background: var(--surface); color: var(--headline);
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(58, 125, 94, 0.15); }
.form-field textarea { min-height: 120px; resize: vertical; }
#contact-form .btn { width: 100%; margin-top: 6px; }
.form-success { display: none; background: var(--surface); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 26px; text-align: center; }
.form-success.show { display: block; }
.form-success h3 { color: var(--green-dark); margin-bottom: 8px; }
.form-error { color: #c0392b; font-size: 0.9rem; margin-top: 10px; display: none; }
.form-error.show { display: block; }
