/* ==========================================================================
   Cascadia Soil Co. — site stylesheet
   Palette derived from the company seal:
     forest green, warm cream, muted gold, root tan, river stone.
   ========================================================================== */

:root {
  /* Brand */
  --green-900: #14301F;   /* deepest forest */
  --green-800: #1F3D2B;   /* primary forest green from logo */
  --green-700: #2A5238;
  --green-600: #386B47;
  --green-500: #5E8B5A;   /* mossy mid */

  --cream-50:  #FBF6E8;   /* lightest cream */
  --cream-100: #F4EDDC;   /* primary warm cream from logo */
  --cream-200: #ECE2C7;
  --cream-300: #DDD0AE;

  --gold-600: #9A7A40;
  --gold-500: #B89559;    /* muted gold from logo */
  --gold-400: #C9A972;

  --tan-700:  #6E522B;    /* root */
  --stone-700:#3B3A35;    /* deep text on cream */
  --stone-500:#6F6B5F;
  --stone-400:#8E8978;

  /* Semantic */
  --bg:           var(--cream-100);
  --bg-elev:      var(--cream-50);
  --ink:          var(--stone-700);
  --ink-strong:   #28251D;
  --ink-muted:    var(--stone-500);
  --line:         rgba(31,61,43,.16);
  --line-strong:  rgba(31,61,43,.32);
  --accent:       var(--green-800);
  --accent-hover: var(--green-900);
  --gold:         var(--gold-500);

  /* Type scale */
  --font-display: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  --font-sans:    "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --fs-hero:   clamp(2.5rem, 5.6vw + 0.5rem, 5.5rem);
  --fs-h2:     clamp(1.85rem, 2.4vw + 1rem, 3rem);
  --fs-h3:     clamp(1.15rem, 0.4vw + 1rem, 1.35rem);
  --fs-lede:   clamp(1.05rem, 0.4vw + 0.95rem, 1.2rem);
  --fs-body:   1.0625rem;
  --fs-small:  0.875rem;
  --fs-xs:     0.78rem;

  --radius-sm: 6px;
  --radius:   12px;
  --radius-lg: 20px;

  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6.5rem;

  --container: 1180px;

  --shadow-sm: 0 1px 2px rgba(20,48,31,.06), 0 1px 1px rgba(20,48,31,.04);
  --shadow:    0 6px 24px -10px rgba(20,48,31,.22), 0 2px 6px rgba(20,48,31,.08);
}

/* Reset / base */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,svg { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
button { font: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
}

/* Typography helpers */
.display, .h-display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.04;
  color: var(--ink-strong);
  margin: 0;
}
.display { font-size: var(--fs-hero); font-weight: 500; }
.h-display { font-size: var(--fs-h2); }
.display em, .h-display em {
  font-style: italic;
  font-weight: 500;
  color: var(--green-800);
}
.h-display--on-dark, .h-display--on-dark em { color: var(--cream-50); }
.h-display--on-dark em { color: var(--gold-400); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-700);
  font-weight: 600;
  margin-bottom: var(--space-4);
}
.eyebrow--on-dark { color: var(--gold-400); }

.lede {
  font-size: var(--fs-lede);
  color: var(--ink);
  max-width: 56ch;
  margin: var(--space-5) 0 var(--space-6);
}
.prose p { max-width: 62ch; }
.prose p + p { margin-top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.4rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: .01em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
  cursor: pointer;
  text-align: center;
}
.btn--primary {
  background: var(--green-800);
  color: var(--cream-50);
  border-color: var(--green-800);
}
.btn--primary:hover {
  background: var(--green-900);
  color: var(--cream-50);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--green-800);
  border-color: var(--green-800);
}
.btn--ghost:hover {
  background: var(--green-800);
  color: var(--cream-50);
}
.btn--block { width: 100%; }

/* ============================ HEADER / NAV ============================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 237, 220, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-block: .85rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--ink-strong);
}
.brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  object-fit: cover;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.brand__tag {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-700);
  font-weight: 600;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.nav__links a {
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink-strong);
  position: relative;
}
.nav__links a:hover { color: var(--green-800); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta {
  background: var(--green-800);
  color: var(--cream-50) !important;
  padding: .55rem 1rem;
  border-radius: 999px;
}
.nav__cta:hover { background: var(--green-900); }
.nav__cta::after { display: none; }

.nav__toggle {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  cursor: pointer;
  padding: 10px 8px;
}
.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--ink-strong);
  margin: 4px 0;
  transition: transform .2s ease, opacity .2s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: .5rem 1rem 1rem;
  border-top: 1px solid var(--line);
  background: var(--cream-50);
}
.mobile-nav a {
  padding: .85rem .25rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-strong);
  font-weight: 500;
}
.mobile-nav a:last-child { border-bottom: 0; }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .mobile-nav[data-open="true"] { display: flex; }
}

/* ================================ HERO =================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 5vw, 5rem) clamp(3rem, 6vw, 6rem);
  isolation: isolate;
  background: var(--cream-100);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__svg { width: 100%; height: 100%; }
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__copy { max-width: 36rem; }
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: var(--space-6);
}
.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem .75rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: .9rem;
}
.hero__chips li {
  background: rgba(251, 246, 232, 0.85);
  border: 1px solid rgba(31,61,43,.12);
  color: var(--ink-strong);
  padding: .42rem .8rem .42rem .65rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  font-weight: 500;
}
.hero__chips li {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.dot {
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(184,149,89,.18);
}
.hero__seal {
  margin: 0;
  display: grid;
  place-items: center;
  position: relative;
}
.hero__seal img {
  width: min(440px, 90%);
  height: auto;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px var(--cream-300),
    0 20px 60px -24px rgba(20,48,31,.45),
    0 6px 18px -10px rgba(20,48,31,.25);
}
.hero__seal::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1px dashed rgba(184,149,89,.55);
  pointer-events: none;
}

@media (max-width: 820px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__seal { order: -1; }
  .hero__seal img { width: min(260px, 60%); }
  .hero__seal::before { inset: -10px; }
}

/* ============================== SECTIONS ================================= */

.section {
  padding-block: clamp(3.5rem, 6vw, 6rem);
  position: relative;
}
.section--cream { background: var(--cream-100); }
.section--cream + .section--cream { padding-top: 0; }
.section--green {
  background: var(--green-800);
  color: rgba(244,237,220,.82);
}
.section--green .prose,
.section--green p { color: rgba(244,237,220,.82); }
.section--gold-edge {
  background: var(--cream-50);
  border-block: 1px solid var(--line);
}

.section__head {
  max-width: 56rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section__sub {
  margin-top: var(--space-4);
  font-size: var(--fs-lede);
  color: var(--ink-muted);
  max-width: 50rem;
}
.section__sub--on-dark { color: rgba(244,237,220,.7); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.grid-2--wide-left { grid-template-columns: 1fr 1.4fr; }
@media (max-width: 820px) {
  .grid-2, .grid-2--wide-left { grid-template-columns: 1fr; }
}

/* ============================ CARDS (why) ================================ */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
}
.card {
  padding: var(--space-6);
  border-radius: var(--radius);
  position: relative;
}
.card--dark {
  background: rgba(244,237,220,.04);
  border: 1px solid rgba(244,237,220,.14);
  color: rgba(244,237,220,.85);
}
.card--dark h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--cream-50);
  font-size: var(--fs-h3);
  margin: .5rem 0 .75rem;
  letter-spacing: -0.01em;
}
.card__num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--gold-400);
  letter-spacing: .08em;
}

/* ============================== PROCESS ================================== */

.process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-5);
  counter-reset: step;
}
@media (max-width: 1000px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .process { grid-template-columns: 1fr; } }

.process__step {
  position: relative;
  padding: var(--space-5);
  border-radius: var(--radius);
  background: var(--cream-50);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.process__step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.process__num {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--green-800);
  color: var(--cream-50);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: var(--space-4);
}
.process__step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h3);
  letter-spacing: -0.01em;
  color: var(--ink-strong);
  margin: 0 0 .35rem;
}
.process__step p { margin: 0; color: var(--ink-muted); font-size: .98rem; }

.micro-disclaimer {
  margin-top: var(--space-7);
  font-size: var(--fs-small);
  color: var(--ink-muted);
  border-left: 3px solid var(--gold);
  padding: .15rem 0 .15rem 1rem;
  max-width: 60rem;
}
.micro-disclaimer em { font-style: italic; color: var(--ink-strong); }

/* ============================== BATCHES ================================== */

.batches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}
@media (max-width: 700px) { .batches { grid-template-columns: 1fr; } }

.batch {
  background: var(--cream-100);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-5);
  position: relative;
  overflow: hidden;
}
.batch::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--gold);
}
.batch--partners { grid-column: 1 / -1; background: var(--cream-50); }
.batch--partners::before { background: var(--green-600); }

.batch__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .9rem;
}
.batch__id {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--ink-strong);
}
.batch__state {
  font-size: var(--fs-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .3rem .6rem;
  border-radius: 999px;
  font-weight: 600;
}
.batch__state--ready {
  background: rgba(184,149,89,.18);
  color: var(--gold-600);
}
.batch__state--active {
  background: rgba(31,61,43,.1);
  color: var(--green-800);
}
.batch__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem 1.25rem;
  margin: .25rem 0 1rem;
}
.batch__meta div { display: flex; flex-direction: column; }
.batch__meta dt {
  font-size: var(--fs-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
}
.batch__meta dd {
  margin: .15rem 0 0;
  font-size: .98rem;
  color: var(--ink-strong);
}
.batch__bar {
  height: 8px;
  background: rgba(31,61,43,.1);
  border-radius: 999px;
  overflow: hidden;
}
.batch__bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green-600), var(--gold));
  border-radius: 999px;
}
.batch__list {
  list-style: none;
  padding: 0;
  margin: 0 0 .75rem;
  display: grid;
  gap: .6rem;
}
.batch__list li {
  padding: .65rem .85rem;
  border-radius: var(--radius-sm);
  background: var(--cream-100);
  border: 1px solid var(--line);
  color: var(--ink-strong);
  font-size: .98rem;
}
.batch__list strong { color: var(--green-800); }
.batch__note { color: var(--ink-muted); font-size: .92rem; margin: 0; }

/* ============================== NEEDS ==================================== */

.needs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}
@media (max-width: 1000px) { .needs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .needs { grid-template-columns: 1fr; } }

.need {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  padding: var(--space-6);
  border-radius: var(--radius);
  background: rgba(244,237,220,.05);
  border: 1px solid rgba(244,237,220,.14);
  color: rgba(244,237,220,.85);
  transition: transform .25s ease, background-color .25s ease, border-color .25s ease;
}
.need:hover {
  transform: translateY(-2px);
  background: rgba(244,237,220,.09);
  border-color: rgba(244,237,220,.3);
  color: rgba(244,237,220,.95);
}
.need__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--gold-400);
  background: rgba(184,149,89,.12);
  border: 1px solid rgba(184,149,89,.35);
}
.need__icon svg { width: 24px; height: 24px; }
.need h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h3);
  letter-spacing: -0.01em;
  color: var(--cream-50);
  margin: .3rem 0 0;
}
.need p { margin: 0; font-size: .96rem; color: rgba(244,237,220,.72); }
.need__cta {
  margin-top: auto;
  font-size: .9rem;
  font-weight: 600;
  color: var(--gold-400);
  letter-spacing: .02em;
}

/* ============================== CONTACT ================================== */

.contact__list {
  list-style: none;
  padding: 0;
  margin: var(--space-5) 0 0;
  display: grid;
  gap: .9rem;
  max-width: 32rem;
}
.contact__list li {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--line);
}
.contact__list li:last-child { border-bottom: 0; }
.contact__label {
  font-size: var(--fs-xs);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
}
.contact__value {
  font-size: 1.05rem;
  color: var(--ink-strong);
  font-weight: 500;
}
.contact__link { color: var(--green-800); text-decoration: underline; text-decoration-color: rgba(31,61,43,.35); text-underline-offset: 3px; }
.contact__link:hover { text-decoration-color: var(--gold); color: var(--green-900); }
.contact__muted em { color: var(--ink-muted); font-style: italic; font-weight: 500; }

.contact__card {
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 2.5vw, 2rem);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.contact__card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-800), var(--gold));
  border-radius: var(--radius) var(--radius) 0 0;
}
.contact__card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--ink-strong);
  margin: .25rem 0 .25rem;
}
.contact__card p { margin: 0 0 1rem; color: var(--ink-muted); }
.contact__ctas {
  display: grid;
  gap: .6rem;
}

/* ============================== FOOTER =================================== */

.footer {
  background: var(--green-900);
  color: rgba(244,237,220,.7);
  padding: var(--space-7) 0 var(--space-6);
  border-top: 4px solid var(--gold);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-5);
  align-items: center;
}
@media (max-width: 720px) {
  .footer__inner { grid-template-columns: 1fr; }
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: .9rem;
}
.footer__brand img {
  width: 44px; height: 44px;
  border-radius: 50%;
}
.footer__brand strong {
  display: block;
  color: var(--cream-50);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.footer__brand span {
  display: block;
  font-size: .85rem;
  color: rgba(244,237,220,.6);
}
.footer__meta {
  display: flex;
  gap: .75rem;
  align-items: center;
  justify-content: flex-end;
  font-size: .95rem;
}
@media (max-width: 720px) { .footer__meta { justify-content: flex-start; } }
.footer__meta a { color: var(--cream-50); }
.footer__meta a:hover { color: var(--gold-400); }
.footer__legal {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(244,237,220,.12);
  padding-top: var(--space-4);
  margin-top: var(--space-4);
  font-size: .8rem;
  color: rgba(244,237,220,.55);
  max-width: 70ch;
}

/* ============================ MOTION ===================================== */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================ SELECTION ================================== */
::selection { background: rgba(184,149,89,.45); color: var(--ink-strong); }
