/* ── VARIABLES ── */
:root {
  --green:   #11511f;
  --green-d: #0a3314;
  --green-m: #1d7a35;
  --cream:   #fff7c0;
  --cream-d: #ede491;
  --white:   #ffffff;
  --off:     #f9f7ef;
  --text:    #0d2a15;
  --muted:   #4a6452;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--white); color: var(--text); overflow-x: hidden; }

/* ── SKIP LINK (accessibility) ── */
.skip-link {
  position: absolute; left: 1rem; top: -100%;
  padding: .5rem 1.2rem; background: var(--green); color: var(--cream);
  font-size: .85rem; font-weight: 600; text-decoration: none;
  border-radius: 0 0 4px 4px; z-index: 9999; transition: top .15s;
}
.skip-link:focus { top: 0; }

/* ── FOCUS STYLES (keyboard navigation) ── */
:focus-visible {
  outline: 3px solid var(--green-m);
  outline-offset: 3px;
  border-radius: 2px;
}
:focus:not(:focus-visible) { outline: none; }
.faq-q:focus-visible { outline-offset: -3px; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  padding: 1.1rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .3s, box-shadow .3s;
}
nav.scrolled { background: var(--white); box-shadow: 0 1px 0 rgba(17,81,31,.12); }
.nav-logo {
  font-family: 'Cormorant', serif; font-size: 1.25rem; font-weight: 700;
  color: var(--cream); text-decoration: none;
}
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a {
  color: var(--text); text-decoration: none; font-size: .8rem;
  font-weight: 500; letter-spacing: .05em; text-transform: uppercase; transition: color .2s;
}
.nav-links a:hover { color: var(--green-m); }
.nav-links .active { color: var(--green); }
.nav-cta {
  background: var(--green) !important; color: var(--cream) !important;
  padding: .5rem 1.3rem !important; border-radius: 4px !important; font-weight: 600 !important;
}
.nav-cta:hover { background: var(--green-m) !important; }

/* Inner pages: nav always white with green logo */
body.inner-page nav {
  background: var(--white);
  box-shadow: 0 1px 0 rgba(17,81,31,.12);
}
body.inner-page .nav-logo { color: var(--green); }

/* ── PAGE HEADER (directory + pledge) ── */
.page-header { background: var(--green); padding: 8rem 3rem 5rem; }
.page-header .eyebrow {
  font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,247,192,.55); margin-bottom: 1rem;
  display: inline-flex; align-items: center; gap: .7rem;
}
.page-header .eyebrow::before { content: ''; display: block; width: 28px; height: 2px; background: rgba(255,247,192,.4); }
.page-header h1 {
  font-family: 'Cormorant', serif;
  font-size: clamp(3rem, 5vw, 4.8rem); font-weight: 300; line-height: 1.06;
  color: var(--white); margin-bottom: 1.2rem;
}
.page-header h1 em { font-style: italic; color: var(--cream); }
.page-header-main p { font-size: 1rem; font-weight: 300; line-height: 1.8; color: rgba(255,255,255,.82); max-width: 520px; }
.req-item p + p { margin-top: .6rem; }
.page-header--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 3rem; }
.page-header-main { flex: 1; }
.page-header-note {
  flex-shrink: 0; width: 280px;
  padding: 1.6rem 1.8rem;
  background: var(--cream); border-radius: 8px;
  margin-bottom: .2rem;
}
.page-header-note-title {
  font-size: .68rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: #11511f; font-weight: bold; margin-bottom: .6rem;
}
.page-header-note p:last-child { font-size: .84rem; font-weight: 300; line-height: 1.7; color: var(--muted); max-width: none; }
@media (max-width: 960px) {
  .page-header--split { flex-direction: column; align-items: flex-start; gap: 2rem; }
  .page-header-note { width: 100%; }
}

/* ── SECTIONS COMMON ── */
section { padding: 6rem 3rem; }
.eyebrow {
  font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--green); margin-bottom: 1rem;
  display: inline-flex; align-items: center; gap: .7rem;
}
.eyebrow::before { content: ''; display: block; width: 28px; height: 2px; background: var(--green); }
.eyebrow.light { color: rgba(255,247,192,.6); }
.eyebrow.light::before { background: rgba(255,247,192,.4); }
h2 {
  font-family: 'Cormorant', serif;
  font-size: clamp(2.2rem, 3.5vw, 3.8rem); font-weight: 300; line-height: 1.1;
  color: var(--green-d); margin-bottom: 1.2rem;
}
h2 em { font-style: italic; color: var(--green); }
h2.on-dark { color: var(--white); }
h2.on-dark em { color: var(--cream); }
.lead { font-size: 1rem; font-weight: 300; line-height: 1.82; color: var(--muted); max-width: 560px; }

/* ── BUTTONS ── */
.btn {
  padding: .85rem 2rem; border-radius: 4px;
  font-family: 'DM Sans', sans-serif; font-size: .82rem;
  font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: none; display: inline-block;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-cream { background: var(--cream); color: var(--green-d); }
.btn-cream:hover { background: var(--white); box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.btn-outline-cream { background: transparent; color: var(--cream); border: 1.5px solid rgba(255,247,192,.4); }
.btn-outline-cream:hover { border-color: var(--cream); background: rgba(255,247,192,.06); }
.btn-green { background: var(--green); color: var(--cream); }
.btn-green:hover { background: var(--green-d); }

/* ── HERO (index) ── */
.hero { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.hero-left {
  background: var(--green);
  display: flex; flex-direction: column; justify-content: center;
  padding: 7rem 4rem 4rem; position: relative; overflow: hidden;
}
.hero-left::after {
  content: ''; position: absolute; bottom: -80px; right: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255,247,192,.05) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.hero-right {
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  padding: 7rem 3rem 4rem; position: relative; overflow: hidden;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  color: rgba(255,247,192,.55); font-size: .72rem;
  font-weight: 500; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 2rem;
}
.eyebrow-dot { width: 5px; height: 5px; background: var(--cream); border-radius: 50%; opacity: .5; }
.hero-h1 {
  font-family: 'Cormorant', serif;
  font-size: clamp(3rem, 5.2vw, 5.2rem);
  font-weight: 300; line-height: 1.06; color: var(--white); margin-bottom: 1.8rem;
}
.hero-h1 em { font-style: italic; color: var(--cream); }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-badge-panel {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.6rem;
  max-width: 340px;
}
.hero-badge-img { width: 200px; height: 200px; }
.hero-badge-title { font-family: 'Cormorant', serif; font-size: 1.8rem; font-weight: 600; color: var(--green-d); }
.hero-badge-text { font-size: .95rem; line-height: 1.8; color: var(--muted); max-width: 280px; }
.badge-tick {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--green); color: var(--cream);
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: .4rem .9rem; border-radius: 20px;
}

/* ── HOW IT WORKS (index) ── */
#how { background: var(--off); }
.steps-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
  margin-top: 3rem;
}
.step {
  background: var(--white); border: 1px solid rgba(17,81,31,.1); border-radius: 8px;
  padding: 2.5rem 2rem; transition: transform .3s, box-shadow .3s;
}
.step:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(17,81,31,.08); }
.step-n {
  font-family: 'Cormorant', serif; font-size: 4rem; font-weight: 700;
  color: var(--cream-d); line-height: 1; margin-bottom: 1rem;
}
.step h3 { font-family: 'Cormorant', serif; font-size: 1.5rem; font-weight: 600; color: var(--green-d); margin-bottom: .6rem; }
.step p { font-size: .9rem; font-weight: 300; line-height: 1.75; color: var(--muted); }
.step .step-note {
  margin-top: 1rem; padding: .8rem 1rem;
  background: var(--off); border-radius: 4px; border-left: 2px solid var(--green);
  font-size: .82rem; color: var(--muted); line-height: 1.6;
}

/* ── FAQ ── */
#faq { background: var(--cream); }
.faq-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 5rem; align-items: start; }
.faq-aside h2 { margin-bottom: .8rem; }
.faq-aside .lead { margin-top: .8rem; }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid rgba(17,81,31,.15); }
.faq-item:first-child { border-top: 1px solid rgba(17,81,31,.15); }
.faq-q {
  width: 100%; background: none; border: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.3rem 0; font-family: 'DM Sans', sans-serif;
  font-size: .95rem; font-weight: 500; color: var(--text);
  cursor: pointer; text-align: left; gap: 1rem; transition: color .2s;
}
.faq-q:hover, .faq-q.open { color: var(--green); }
.faq-chevron {
  flex-shrink: 0; width: 20px; height: 20px;
  border: 1.5px solid currentColor; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transition: transform .3s;
}
.faq-q.open .faq-chevron { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .5s ease, padding .4s; }
.faq-a.open { max-height: 400px; padding-bottom: 1.4rem; }
.faq-a p { font-size: .92rem; font-weight: 300; line-height: 1.8; color: var(--muted); }
.faq-a p + p { margin-top: .7rem; }

/* pledge.html FAQ overrides */
#faq.faq-white { background: var(--white); }

/* ── FOR BUSINESSES CTA (index) ── */
#businesses { background: var(--green); padding: 5rem 3rem; text-align: center; }
#businesses h2 { margin: 0 auto 1.2rem; max-width: 600px; }
#businesses .lead { margin: 0 auto 2rem; text-align: center; color: rgba(255,255,255,.82); }
#businesses .sub-note { margin: 1.5rem auto 0; max-width: 500px; font-size: .85rem; font-weight: 300; color: rgba(255,255,255,.62); line-height: 1.7; }
.biz-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── MEMBER CARDS (directory) ── */
.member-card {
  display: grid; grid-template-columns: 220px 1fr;
  align-items: stretch;
  background: var(--white); border: 1px solid rgba(17,81,31,.15); border-radius: 10px;
  overflow: hidden; margin-top: 2rem;
}
.member-card:first-of-type { margin-top: 2.5rem; }
.member-img {
  background: var(--off); border-right: 1px solid rgba(17,81,31,.1);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; padding: 2rem; text-align: center;
}
.member-img img { width: 160px; height: 160px; object-fit: contain; }
.member-img-placeholder {
  width: 100%; aspect-ratio: 1;
  background: var(--white); border: 1px dashed rgba(17,81,31,.2); border-radius: 6px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .5rem; color: var(--muted); font-size: .72rem; font-weight: 400; line-height: 1.5;
}
.member-img-placeholder svg { opacity: .3; }
.member-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--green); color: var(--cream);
  font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .75rem; border-radius: 20px;
}
.member-info { padding: 2.5rem 3rem; display: flex; flex-direction: column; gap: 1rem; }
.member-info-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.member-info h2, .member-info h3 { font-family: 'Cormorant', serif; font-size: 1.8rem; font-weight: 600; color: var(--green-d); margin-bottom: .3rem; }
.member-info a.member-url { color: var(--green); font-size: .85rem; text-decoration: none; font-weight: 500; }
.member-since { font-size: .85rem; font-weight: 400; color: var(--muted); }
.member-info a.member-url:hover { text-decoration: underline; }
.member-info p.member-desc { font-size: .9rem; font-weight: 300; line-height: 1.8; color: var(--muted); }
.member-products {
  padding: .9rem 1rem;
  background: var(--off); border-radius: 4px; border-left: 2px solid var(--green);
  font-size: .84rem; color: var(--muted); line-height: 1.6;
}
.member-products strong { color: var(--green-d); font-weight: 600; display: block; margin-bottom: .2rem; }
.member-evidence { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.member-evidence strong { font-size: .8rem; font-weight: 600; color: var(--green-d); text-transform: uppercase; letter-spacing: .05em; }
.evidence-links { display: flex; gap: .5rem; flex-wrap: wrap; }
.evidence-link {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .3rem .9rem; border-radius: 4px;
  background: var(--off); border: 1px solid rgba(17,81,31,.15);
  font-size: .8rem; font-weight: 500; color: var(--green); text-decoration: none;
  transition: background .2s, border-color .2s;
}
.evidence-link:hover { background: var(--cream); border-color: var(--green); }
.evidence-link.pending { color: var(--muted); cursor: default; }
.evidence-link.pending:hover { background: var(--off); border-color: rgba(17,81,31,.15); }
.member-costnote {
  padding: .8rem 1rem;
  background: var(--off); border-radius: 4px; border-left: 2px solid var(--green);
  font-size: .84rem; color: var(--muted); line-height: 1.6;
}
.member-costnote strong { color: var(--green-d); font-weight: 600; }

/* ── MEMBER LIST (directory) ── */
#members { background: var(--off); }
.empty-state {
  margin-top: 2.5rem; padding: 3rem 2.5rem;
  background: var(--white); border: 1px solid rgba(17,81,31,.1); border-radius: 8px;
  max-width: 640px;
}
.empty-state p { font-size: 1rem; font-weight: 300; line-height: 1.8; color: var(--muted); font-style: italic; }
.empty-state p + p { margin-top: .8rem; }

/* ── VERIFIED DOCS (directory) ── */
#documents { background: var(--white); }
.doc-explainer {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.5rem;
}
.doc-card {
  padding: 2rem; background: var(--off); border: 1px solid rgba(17,81,31,.1); border-radius: 8px;
}
.doc-card h4 { font-family: 'Cormorant', serif; font-size: 1.25rem; font-weight: 600; color: var(--green-d); margin-bottom: .5rem; }
.doc-card p { font-size: .88rem; font-weight: 300; line-height: 1.75; color: var(--muted); }
.doc-empty {
  margin-top: 1.5rem; padding: 2rem 2.5rem;
  border: 1px dashed rgba(17,81,31,.2); border-radius: 8px;
  font-size: .95rem; font-weight: 300; color: var(--muted); font-style: italic;
  max-width: 640px;
}

/* ── WHY CARRY THE MARK (pledge) ── */
#why { background: var(--off); }
.why-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem;
}
.why-card {
  background: var(--white); border: 1px solid rgba(17,81,31,.1); border-radius: 8px; padding: 2rem;
  transition: transform .3s;
}
.why-card:hover { transform: translateY(-3px); }
.why-card h3 { font-family: 'Cormorant', serif; font-size: 1.4rem; font-weight: 600; color: var(--green-d); margin-bottom: .6rem; }
.why-card p { font-size: .9rem; font-weight: 300; line-height: 1.75; color: var(--muted); }

/* ── REQUIREMENTS (pledge) ── */
#requirements { background: var(--white); }
.req-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; margin-top: 1rem; }
.req-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.req-item {
  display: flex; gap: 1.2rem; align-items: flex-start;
  padding: 1.4rem; background: var(--off); border: 1px solid rgba(17,81,31,.09); border-radius: 8px;
}
.req-num {
  flex-shrink: 0; width: 28px; height: 28px; background: var(--green); color: var(--cream);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; margin-top: .1rem;
}
.req-item h4 { font-weight: 600; font-size: .9rem; color: var(--text); margin-bottom: .3rem; }
.req-item p { font-size: .87rem; font-weight: 300; line-height: 1.7; color: var(--muted); }
.req-aside {
  position: sticky; top: 5rem;
  padding: 2.5rem; background: var(--green); border-radius: 8px; color: var(--white);
}
.req-aside h3 { font-family: 'Cormorant', serif; font-size: 1.5rem; color: var(--cream); margin-bottom: 1rem; }
.req-aside p { font-size: .88rem; font-weight: 300; line-height: 1.8; color: rgba(255,255,255,.85); }
.req-aside p + p { margin-top: .8rem; }

/* ── HOW TO JOIN (pledge) ── */
#join { background: var(--off); }
.join-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem;
}
.join-step {
  background: var(--white); border: 1px solid rgba(17,81,31,.1); border-radius: 8px; padding: 2rem;
}
.join-step-n {
  font-family: 'Cormorant', serif; font-size: 3.5rem; font-weight: 700;
  color: var(--cream-d); line-height: 1; margin-bottom: 1rem;
}
.join-step h3 { font-family: 'Cormorant', serif; font-size: 1.4rem; font-weight: 600; color: var(--green-d); margin-bottom: .6rem; }
.join-step p { font-size: .9rem; font-weight: 300; line-height: 1.75; color: var(--muted); }

/* ── CTA (pledge) ── */
#cta { background: var(--cream); text-align: center; padding: 6rem 3rem; }
#cta h2 { margin: 0 auto 1.2rem; max-width: 600px; }
#cta .lead { margin: 0 auto 2.5rem; text-align: center; }

/* ── PROSE (privacy page) ── */
.prose { max-width: 720px; }
.prose-block { margin-bottom: 3rem; }
.prose-block h2 { font-size: clamp(1.4rem, 2vw, 1.8rem); margin-bottom: .8rem; }
.prose-block .lead + .lead { margin-top: .8rem; }
.prose a { color: var(--green); }

/* ── FOOTER ── */
footer { background: var(--green-d); }
.footer-bottom {
  padding: 2rem 3rem; display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; font-size: .74rem; color: rgba(255,255,255,.55);
}
.footer-bottom a { color: rgba(255,255,255,.55); text-decoration: none; transition: color .2s; }
.footer-bottom a:hover { color: var(--cream); }
.footer-legal { display: flex; gap: 1.5rem; }

/* ── REVEAL ── */
.reveal { opacity:0; transform:translateY(22px); transition:opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }
.d1 { transition-delay:.12s; }
.d2 { transition-delay:.24s; }
.d3 { transition-delay:.36s; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .page-header { padding: 6rem 1.5rem 4rem; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 6rem 1.5rem 3rem; }
  .hero-right { padding: 2rem 1.5rem 3.5rem; min-height: 360px; }
  .steps-grid { grid-template-columns: 1fr; }
  .faq-layout { grid-template-columns: 1fr; gap: 2rem; }
  .member-card { grid-template-columns: 1fr; }
  .member-img { border-right: none; border-bottom: 1px solid rgba(17,81,31,.1); aspect-ratio: auto; min-height: 180px; }
  .member-info { padding: 2rem 1.5rem; }
  .doc-explainer { grid-template-columns: 1fr; }
  .why-cards { grid-template-columns: 1fr; }
  .req-layout { grid-template-columns: 1fr; }
  .req-aside { position: static; }
  .join-steps { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  section { padding: 4rem 1.5rem; }
  .hero-btns { flex-direction: column; align-items: flex-start; }
  .footer-bottom { padding: 2rem 1.5rem; }
}
