/* =============================================================
   Weavers Community Forum — Shared Styles
   ============================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:        #1b3a2d;
  --green-mid:    #2d5c44;
  --green-dark:   #111f18;
  --terra:        #c4522a;
  --terra-light:  #d9714a;
  --cream:        #f5f0e8;
  --cream-dark:   #ede7db;
  --ink:          #1a1a18;
  --muted:        #6b6560;
  --rule:         #d4cec6;
  --white:        #ffffff;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a  { color: inherit; }

/* ── LAYOUT ─────────────────────────────── */
.wrap        { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.wrap--narrow { max-width: 860px;  margin: 0 auto; padding: 0 32px; }

/* ── EYEBROW LABEL ───────────────────────── */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: var(--terra);
  flex-shrink: 0;
}
.eyebrow--light { color: rgba(255,255,255,.38); }
.eyebrow--light::before { background: var(--terra); }

/* ── BUTTONS ─────────────────────────────── */
.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--terra);
  color: var(--white);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  font-weight: 500;
  padding: 13px 26px;
  border-radius: 3px;
  letter-spacing: .02em;
  border: none;
  cursor: pointer;
  transition: background .18s, transform .18s;
}
.btn-solid:hover { background: var(--terra-light); transform: translateY(-1px); }
.btn-solid--green { background: var(--green); }
.btn-solid--green:hover { background: var(--green-mid); transform: translateY(-1px); }
.btn-solid--outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.35);
}
.btn-solid--outline:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); transform: none; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 400;
  letter-spacing: .01em;
  transition: color .18s;
}
.btn-ghost:hover { color: var(--white); }
.btn-ghost svg { transition: transform .18s; }
.btn-ghost:hover svg { transform: translateX(4px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--terra);
  text-decoration: none;
  border-bottom: 1px solid rgba(196,82,42,.3);
  padding-bottom: 1px;
  transition: border-color .18s, color .18s;
}
.text-link:hover { color: var(--terra-light); border-color: var(--terra-light); }
.text-link--white {
  color: rgba(255,255,255,.65);
  border-color: rgba(255,255,255,.2);
}
.text-link--white:hover { color: var(--white); border-color: rgba(255,255,255,.5); }

/* ── NAV ─────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 32px;
  transition: background .3s, border-color .3s;
}
.nav.scrolled {
  background: var(--green);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav__wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: .02em;
  line-height: 1.1;
}
.nav__wordmark span {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: .63rem;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .55;
  margin-top: 2px;
}
.nav__divider {
  width: 1px; height: 28px;
  background: rgba(255,255,255,.18);
  flex-shrink: 0;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav__links a {
  color: rgba(255,255,255,.72);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 400;
  padding: 7px 13px;
  border-radius: 4px;
  letter-spacing: .01em;
  transition: color .18s, background .18s;
}
.nav__links a:hover,
.nav__links a.active { color: var(--white); background: rgba(255,255,255,.08); }
.nav__cta {
  font-size: .8rem;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.32);
  padding: 8px 18px;
  border-radius: 3px;
  letter-spacing: .02em;
  transition: all .18s;
  margin-left: 8px;
}
.nav__cta:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.55); }
.nav__donate {
  font-size: .8rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  background: var(--terra);
  padding: 8px 18px;
  border-radius: 3px;
  letter-spacing: .02em;
  margin-left: 6px;
  transition: background .18s, transform .18s;
  flex-shrink: 0;
}
.nav__donate:hover { background: var(--terra-light); transform: translateY(-1px); }
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span { display: block; width: 24px; height: 1.5px; background: var(--white); border-radius: 1px; }

/* ── MOBILE NAV ──────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--green);
  z-index: 99;
  flex-direction: column;
  padding: 100px 40px 48px;
  gap: 0;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: rgba(255,255,255,.78);
  text-decoration: none;
  font-size: 1.55rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.09);
  transition: color .18s;
}
.mobile-nav a:hover { color: var(--white); }
.mobile-nav a.mobile-nav__action {
  margin-top: 20px;
  border-bottom: none;
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  font-weight: 500;
  color: var(--terra-light);
}
.mobile-nav__close {
  position: absolute;
  top: 22px; right: 32px;
  background: none;
  border: none;
  color: rgba(255,255,255,.65);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  transition: color .18s;
}
.mobile-nav__close:hover { color: var(--white); }

/* ── PAGE HERO (inner pages) ─────────────── */
.page-hero {
  background: var(--green);
  padding: 148px 32px 72px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.page-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  color: rgba(255,255,255,.38);
  letter-spacing: .06em;
  margin-bottom: 24px;
}
.page-hero__breadcrumb a {
  text-decoration: none;
  color: rgba(255,255,255,.38);
  transition: color .18s;
}
.page-hero__breadcrumb a:hover { color: rgba(255,255,255,.7); }
.page-hero__breadcrumb span { opacity: .4; }
.page-hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -.01em;
  max-width: 640px;
  margin-bottom: 20px;
}
.page-hero__title em { font-style: italic; color: rgba(255,255,255,.6); }
.page-hero__sub {
  font-size: .95rem;
  color: rgba(255,255,255,.5);
  max-width: 520px;
  line-height: 1.75;
  font-weight: 300;
}

/* ── FOOTER ──────────────────────────────── */
.footer {
  background: #111610;
  padding: 64px 32px 32px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.footer__inner { max-width: 1200px; margin: 0 auto; }
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer__org-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(255,255,255,.82);
  margin-bottom: 14px;
  letter-spacing: .01em;
}
.footer__org-desc {
  font-size: .82rem;
  color: rgba(255,255,255,.32);
  line-height: 1.72;
  font-weight: 300;
  max-width: 260px;
  margin-bottom: 24px;
}
.footer__social { display: flex; gap: 8px; }
.footer__social a {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.4);
  text-decoration: none;
  font-size: .75rem;
  font-weight: 600;
  transition: all .18s;
}
.footer__social a:hover { background: var(--terra); color: var(--white); border-color: var(--terra); }
.footer__col-head {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.28);
  margin-bottom: 20px;
}
.footer__links { list-style: none; }
.footer__links li + li { margin-top: 10px; }
.footer__links a {
  font-size: .82rem;
  color: rgba(255,255,255,.42);
  text-decoration: none;
  font-weight: 300;
  transition: color .18s;
}
.footer__links a:hover { color: rgba(255,255,255,.78); }
.footer__bottom {
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__copy  { font-size: .75rem; color: rgba(255,255,255,.22); }
.footer__legal { font-size: .72rem; color: rgba(255,255,255,.18); }

/* ── SHARED SECTION PATTERNS ─────────────── */
.section-head { margin-bottom: 56px; }
.section-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.01em;
}
.section-title--white { color: var(--white); }
.section-sub {
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.78;
  font-weight: 300;
  max-width: 480px;
  margin-top: 14px;
}
.section-sub--white { color: rgba(255,255,255,.5); }

/* ── FORM SHARED ─────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  font-family: 'Inter', sans-serif;
  font-size: .88rem;
  color: var(--ink);
  background: var(--white);
  outline: none;
  -webkit-appearance: none;
  transition: border-color .18s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--green); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 1024px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .wrap, .wrap--narrow { padding: 0 20px; }
  .form-row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .page-hero { padding: 120px 20px 56px; }
  .page-hero__title { font-size: 2.4rem; }
}
