/* =========================================================
   Brother Nature — Master Stylesheet
   Dark, earthy, professional. Deep desaturated forest green,
   warm bark brown, bone off-white, restrained antique gold.
   WCAG 2.1 AA throughout.
   ========================================================= */

:root {
  --forest-deep: #18241C;   /* near-black green, primary bg */
  --forest: #233528;        /* lifted green, panels */
  --forest-line: #314A38;   /* borders on dark */
  --bark: #3D3128;          /* warm brown, grounding */
  --bark-soft: #4E4035;     /* lighter brown */
  --bone: #EDE6D8;          /* warm off-white, primary text */
  --bone-dim: #C4BCAB;      /* secondary text on dark */
  --gold: #C9A24B;          /* antique gold accent */
  --gold-soft: #D9BC77;     /* hover/focus gold */
  --ink: #0E140F;           /* deepest bg, footer */
  --shadow: rgba(0,0,0,0.35);

  --maxw: 1120px;
  --gutter: 24px;
  --radius: 6px;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--forest-deep);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Skip link (visible on focus only) ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -120px;
  z-index: 999;
  background: var(--gold);
  color: var(--ink);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  font-family: var(--font-body);
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 12px;
  outline: 3px solid var(--bone);
  outline-offset: 2px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--bone);
}
h1 { font-size: clamp(2.3rem, 5.5vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.45rem); }

p { max-width: 68ch; }
a { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--gold); }

/* ---------- Global focus state ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

/* ---------- Skip target reset ---------- */
#main-content { outline: none; }

/* =========================================================
   HEADER / NAV  (identical on every page)
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 20, 15, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--forest-line);
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px var(--gutter);
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--bone);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--gold-soft); }
.brand .leaf { color: var(--gold); }

/* nav list */
.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-list a {
  color: var(--bone);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.97rem;
  padding: 6px 2px;
  transition: color 0.18s;
}
.nav-list a:hover { color: var(--gold-soft); }
.nav-list a[aria-current="page"] {
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
}
.nav-donate a {
  background: var(--gold);
  color: var(--ink) !important;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-weight: 700;
}
.nav-donate a:hover { background: var(--gold-soft); }

/* mobile toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--forest-line);
  border-radius: var(--radius);
  color: var(--bone);
  padding: 8px 12px;
  cursor: pointer;
  font-size: 1rem;
  align-items: center;
  gap: 8px;
}
.nav-toggle .bars {
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--bone);
  position: relative;
}
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--bone);
}
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--forest-line);
    padding: 8px 0;
    display: none;
  }
  .nav-list.open { display: flex; }
  .nav-list li { width: 100%; }
  .nav-list a {
    display: block;
    padding: 14px var(--gutter);
    font-size: 1.05rem;
  }
  .nav-list a[aria-current="page"] { border-bottom: none; border-left: 3px solid var(--gold); }
  .nav-donate { padding: 8px var(--gutter) 4px; }
  .nav-donate a { display: block; text-align: center; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: clamp(72px, 12vw, 128px) var(--gutter) clamp(60px, 9vw, 104px);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(35,53,40,0.9) 0%, var(--forest-deep) 60%);
}
.hero-inner { max-width: 780px; margin: 0 auto; text-align: center; position: relative; z-index: 2; }
.hero h1 { margin-bottom: 22px; }
.hero .lede {
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  color: var(--bone-dim);
  max-width: 600px;
  margin: 0 auto 36px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* horizon / treeline signature */
.horizon {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 70px;
  z-index: 1;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.18s ease, color 0.18s ease;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-soft); color: var(--ink); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--bone); border-color: var(--bone); }
.btn-outline:hover { background: var(--bone); color: var(--forest-deep); }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: clamp(64px, 9vw, 104px) 0; }
.section--forest { background: var(--forest-deep); }
.section--panel { background: var(--forest); }
.section--bark { background: var(--bark); }
.section--ink { background: var(--ink); }

.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { color: var(--bone-dim); font-size: 1.1rem; }

/* lead statement (two-column) */
.statement-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.statement-lead {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  font-weight: 500;
  line-height: 1.32;
  color: var(--bone);
}
.statement-body p { color: var(--bone-dim); margin-bottom: 16px; }
.statement-body p:last-child { margin-bottom: 0; }
@media (max-width: 760px) {
  .statement-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* centred-groups cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 44px;
}
.card {
  background: rgba(237, 230, 216, 0.04);
  border: 1px solid var(--forest-line);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.card h3 { font-size: 1.1rem; color: var(--gold-soft); margin-bottom: 10px; }
.card p { font-size: 0.94rem; color: var(--bone-dim); }
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .card-grid { grid-template-columns: 1fr; } }

/* feature rows */
.feature-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  padding: 26px 0;
  border-top: 1px solid var(--forest-line);
}
.feature-row:first-of-type { border-top: none; }
.feature-row h3 { color: var(--gold-soft); }
.feature-row p { color: var(--bone-dim); }
@media (max-width: 700px) { .feature-row { grid-template-columns: 1fr; gap: 6px; } }

/* values list (numbered) */
.values-list { margin-top: 36px; max-width: 820px; }
.value-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--forest-line);
}
.value-item:first-child { border-top: none; }
.value-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--gold);
  min-width: 34px;
}
.value-item p { color: var(--bone); }

/* details / pricing band */
.band {
  background: var(--ink);
  border: 1px solid var(--forest-line);
  border-radius: 12px;
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}
.band h3 { font-size: 1.6rem; margin-bottom: 12px; }
.band p { color: var(--bone-dim); }
.meta-list { list-style: none; margin-top: 22px; }
.meta-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--forest-line);
  font-size: 0.97rem;
}
.meta-list li:first-child { border-top: none; }
.meta-list .k { color: var(--bone-dim); }
.meta-list .v { color: var(--bone); font-weight: 600; }
.price-card {
  background: var(--forest);
  border: 1px solid var(--forest-line);
  border-radius: var(--radius);
  padding: 28px;
}
.price-card .price {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 6px;
}
@media (max-width: 760px) { .band { grid-template-columns: 1fr; } }

/* prose blocks (content pages) */
.prose { max-width: 720px; }
.prose p { color: var(--bone); margin-bottom: 20px; }
.prose h2 { margin: 44px 0 16px; }
.prose h3 { color: var(--gold-soft); margin: 32px 0 12px; }
.prose .pull {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--bone);
  border-left: 3px solid var(--gold);
  padding-left: 22px;
  margin: 32px 0;
}

/* in-page subnav (for grouped pages) */
.subnav {
  position: sticky;
  top: 68px;
  z-index: 40;
  background: rgba(14,20,15,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--forest-line);
}
.subnav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px var(--gutter);
  overflow-x: auto;
}
.subnav a {
  color: var(--bone-dim);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}
.subnav a:hover { color: var(--gold-soft); }

/* embed placeholder */
.embed-slot {
  background: var(--forest);
  border: 1.5px dashed var(--forest-line);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  color: var(--bone-dim);
  margin-top: 24px;
}

/* contact methods */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.contact-card {
  background: var(--forest);
  border: 1px solid var(--forest-line);
  border-radius: var(--radius);
  padding: 26px;
}
.contact-card h3 { font-size: 1.1rem; color: var(--gold-soft); margin-bottom: 8px; }
.contact-card p { font-size: 0.94rem; color: var(--bone-dim); margin-bottom: 12px; }
.contact-card a { font-weight: 600; word-break: break-word; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* =========================================================
   FOOTER (identical on every page)
   ========================================================= */
.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--forest-line);
  padding: 52px var(--gutter) 32px;
}
.footer-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
}
.footer-brand .brand { font-size: 1.2rem; }
.footer-brand p { color: var(--bone-dim); max-width: 300px; margin-top: 10px; font-size: 0.92rem; }
.footer-nav { list-style: none; display: flex; flex-wrap: wrap; gap: 22px; }
.footer-nav a { color: var(--bone-dim); text-decoration: none; font-size: 0.94rem; }
.footer-nav a:hover { color: var(--gold-soft); }
.footer-base {
  max-width: var(--maxw);
  margin: 32px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--forest-line);
  color: var(--bone-dim);
  font-size: 0.84rem;
  opacity: 0.8;
}

/* =========================================================
   404
   ========================================================= */
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px var(--gutter);
}
.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 8rem);
  color: var(--gold);
  line-height: 1;
}
.error-page p { color: var(--bone-dim); margin: 16px 0 28px; }

/* =========================================================
   MOTION PREFERENCES
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
