/* ----------------------------
    Brand Tokens & Resets
----------------------------- */
:root {
  --ew-primary: #7c9e82;      /* leaf green */
  --ew-primary-600: #6a8c70;
  --ew-primary-700: #58785e;  /* use for solid CTAs for contrast */
  --ew-secondary: #ffffff;    /* white */
  --ew-tertiary: #000000;     /* black */

  --ew-bg: #ffffff;
  --ew-text: #0e0f0e;         /* near black for reading */
  --ew-muted: #5b615c;
  --ew-border: #e7ebe8;
  --ew-radius: 16px;            /* soft, crafted corners */
  --container: 1200px;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  scroll-behavior: smooth;
  color-scheme: light;
}
body {
  margin: 0;
  line-height: 1.6;
  color: var(--ew-text);
  background-color: var(--ew-bg);
}
h1, .h1 {
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.5rem);
  margin: .4rem 0 1rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
h2, .h2 {
  font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2rem);
  margin: .4rem 0 .9rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
h3, .h3 {
  font-size: clamp(1.25rem, 2vw + 0.25rem, 1.75rem);
  margin: .4rem 0 .8rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
h4, .h4 {
  font-size: clamp(1.125rem, 1.5vw + 0.25rem, 1.5rem);
  margin: .3rem 0 .7rem;
  line-height: 1.3;
}
h5, .h5 {
  font-size: clamp(1rem, 1vw + 0.125rem, 1.25rem);
  margin: .3rem 0 .6rem;
  line-height: 1.35;
}
h6, .h6 {
  font-size: clamp(0.875rem, 0.5vw + 0.125rem, 1rem);
  margin: .2rem 0 .5rem;
  line-height: 1.4;
}
.display {
  font-family: Fraunces, Georgia, serif;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
figure {
  margin: 0;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
.banner {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}
a {
  color: inherit;
}
ul {
  margin: 0;
  padding-left: 1.1rem;
}
blockquote {
  margin: 0;
  padding: 0;
}
small {
  color: var(--ew-muted);
}
select {
  width: 100%;
  padding: .8rem 1rem;
  appearance: none;
  background: #fff;
  border: 1px solid var(--ew-border);
  border-radius: 12px;
}
.options {
  display: grid;
  gap: 16px;
  margin: 18px 0;
}
.field label {
  display: block;
  margin-bottom: .4rem;
  font-weight: 600;
}
.skip-to-content {
  position: fixed;
  top: 1rem;
  left: -200px;
  white-space: nowrap;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}
.skip-to-content:focus,
.skip-to-content:active {
  left: 1rem;
}
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

/* Grid */
.grid {
  --column-gap: clamp(16px, 2vw, 28px);
  display: grid;
  gap: var(--column-gap);
}
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (width >= 600px) {
  .sm\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (width > 768px) {
  .md\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (width >= 1024px) {
  .lg\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (width >= 1280px) {
  .xl\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .xl\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.align-start { align-items: start; }
.align-center { align-items: center; }
.align-end { align-items: end; }
.justify-start { justify-items: start; }
.justify-center { justify-items: center; }
.justify-end { justify-items: end; }
.justify-stretch { justify-items: stretch; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-evenly { justify-content: space-evenly; }
.self-start { justify-self: start; }
.self-center { justify-self: center; }
.self-end { justify-self: end; }
.self-stretch { justify-self: stretch; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  padding: .85rem 1.1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  appearance: none;
  border: none;
  border-radius: calc(var(--ew-radius) + 8px);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn--primary {
  color: #fff;
  background-color: var(--ew-primary-700);
}
.btn--primary:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
  transform: translateY(-1px);
}
.btn--outline {
  color: var(--ew-primary-700);
  background: transparent;
  border: 1.5px solid var(--ew-primary-700);
}
.btn--outline:hover {
  background: rgba(124, 158, 130, .08);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .75rem;
  font-size: .85rem;
  color: var(--ew-muted);
  border: 1px solid var(--ew-border);
  border-radius: 999px;
}

/* Focus styles for accessibility */
:focus-visible {
  border-radius: 8px;
  outline: 3px solid rgba(88, 120, 94, .45);
  outline-offset: 2px;
}

/* Sticky Header */
.header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, .7);
  border-bottom: 1px solid var(--ew-border);
  backdrop-filter: saturate(150%) blur(10px);
  z-index: 50;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .65rem;
  padding-inline: clamp(16px, 4vw, 32px);
}
.nav__brand {
  display: flex;
  align-items: center;
}
.nav__logo {
  width: auto;
  height: 28px;
}
.nav__menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav__menu a:not(.btn) {
  padding: .5rem .6rem;
  font-weight: 500;
  text-decoration: none;
  color: #1d221f;
  border-radius: 10px;
}
.nav__menu a:not(.btn):hover {
  background-color: #f3f5f3;
}
.nav__toggle {
  display: none;
}
@media (max-width: 860px) {
  .nav__toggle {
    display: inline-flex;
    width: auto;
  }
  .nav__menu {
    position: fixed;
    inset: 56px 12px auto 12px;
    display: none;
    flex-direction: column;
    padding: .5rem;
    background-color: #fff;
    border: 1px solid var(--ew-border);
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .1);
  }
  .nav__menu.is-open {
    display: flex;
  }
}

/* Breadcrumbs */
#breadcrumbs {
  padding-block: clamp(12px, 4vw, 24px);
}
.crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .9rem;
  color: var(--ew-muted);
}
.crumbs a {
  text-decoration: none;
  color: inherit;
}

/* Hero — subtle woodgrain background using an inline SVG pattern */
.hero {
  position: relative;
  overflow: hidden;
}
.hero__image {
  border: 1px solid var(--ew-border);
  border-radius: 22px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .12);
}
.hero__actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(124, 158, 130, .18), transparent 60%),
    radial-gradient(1200px 600px at 90% 10%, rgba(124, 158, 130, .12), transparent 60%),
    #fff;
  pointer-events: none;
  z-index: -1;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  mix-blend-mode: multiply;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><defs><pattern id="w" width="200" height="200" patternUnits="userSpaceOnUse"><path d="M0 60 C 60 40, 140 80, 200 60 M0 120 C 60 100, 140 140, 200 120 M0 180 C 60 160, 140 200, 200 180" fill="none" stroke="%237c9e82" stroke-width="2" stroke-linecap="round" opacity="0.5"/></pattern></defs><rect width="100%" height="100%" fill="url(%23w)"/></svg>');
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  padding-top: clamp(42px, 6vw, 88px);
  padding-bottom: clamp(36px, 6vw, 88px);
}
@media (width >= 1024px) {
  .hero .container {
    grid-template-columns: 1.15fr 1fr;
  }
}
.eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ew-primary-700);
}
.sub {
  max-width: 60ch;
  font-size: clamp(1rem, 1vw + .7rem, 1.2rem);
  color: #2a2e2b;
}

/* Sections */
section {
  padding-block: clamp(24px, 4vw, 48px);
  scroll-margin-top: 80px;
}
.container section {
  padding-block: 0;
}
.section__title {
  margin: 0 0 .5rem;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.4rem, 1.2vw+1.2rem, 2rem);
}
.section__kicker {
  margin: 0 0 1.25rem;
  color: var(--ew-muted);
}

/* Cards */
.card {
  padding: clamp(16px, 1.6vw, 24px);
  background-color: #fff;
  border: 1px solid var(--ew-border);
  border-radius: var(--ew-radius);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
}
.card h3 {
  margin: .2rem 0 .4rem;
  font-size: 1.2rem;
}

/* Product tiles */
.tile {
  display: grid;
  gap: 14px;
  padding: 14px;
  background-color: #fff;
  border: 1px solid var(--ew-border);
  border-radius: calc(var(--ew-radius) + 6px);
}
.tile__img {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  color: #96a598;
  background-color: #f6f8f6;
  border-radius: 12px;
}
.tile__title {
  font-weight: 600;
}
.tile__author {
  color: var(--ew-muted);
}

/* Materials */
.materials img {
  border: 1px solid var(--ew-border);
  border-radius: 18px;
}
@media (width >= 768px) {
  .materials .grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

/* Testimonial */
.quote {
  position: relative;
  padding: 22px;
  background-color: #fff;
  border: 1px solid var(--ew-border);
  border-radius: var(--ew-radius);
}
.quote p {
  margin-top: 0;
  font-size: 1.05rem;
}
.quote cite {
  display: block;
  margin-top: .75rem;
  font-style: normal;
  color: var(--ew-muted);
}

/* Trust bar */
.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 18px;
  background-color: #fbfdfb;
  border: 1px dashed var(--ew-border);
  border-radius: var(--ew-radius);
}
.trust img {
  height: 28px;
  opacity: .8;
  filter: grayscale(100%);
}

/* CTA band */
.cta-band {
  padding: clamp(18px, 2vw, 28px);
  background: linear-gradient(0deg, rgba(88, 120, 94, .07), rgba(88, 120, 94, .07)), #fff;
  border: 1px solid var(--ew-border);
  border-radius: 24px;
}
.cta-band h3 {
  margin: 0;
}
.cta-band p {
  margin: .4rem 0 0;
  color: var(--ew-muted);
}
@media (width >= 600px) {
  .cta-band {
    grid-template-columns: 1fr auto;
  }
}

/* Footer */
footer {
  background-color: #fafcfb;
  border-top: 1px solid var(--ew-border);
}
footer .container {
  padding-top: 28px;
  padding-bottom: 10px;
}
@media (width >= 1024px) {
  .foot.grid {
    grid-template-columns: 1.2fr repeat(3, 1fr);
  }
}
.foot .logo-container {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .4rem;
}
.foot .logo-container img {
  max-height: 48px;
}
.foot h4 {
  margin: 0 0 .6rem;
  font-size: 1rem;
}
.foot p {
  max-width: 36ch;
  color: var(--ew-muted);
}
.foot a {
  display: block;
  padding: .25rem 0;
  text-decoration: none;
  color: #29302c;
}
.social {
  display: flex;
  gap: 10px;
}
.social a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--ew-border);
  border-radius: 10px;
}
.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-block: 18px;
  font-size: .9rem;
  color: var(--ew-muted);
}

/* Simple on-scroll reveal */
.reveal {
  transform: translateY(12px);
  transition: opacity .6s ease, transform .6s ease;
  opacity: 0;
}
.reveal.is-visible {
  transform: none;
  opacity: 1;
}

/* Retailers */
.retailers-section {
  margin-bottom: 2rem;
}
.retailers-section h2 {
  color: var(--ew-primary-700);
}
.retailer-card {
  background: var(--ew-bg);
  border: 1px solid var(--ew-border);
  border-radius: var(--ew-radius);
  transition: box-shadow 200ms ease;
}
.retailer-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.retailer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  text-decoration: none;
}
.retailer h3 {
  margin: 0 0 0.5rem 0;
}
.retailer p {
  margin: 0.25rem 0;
  color: var(--ew-muted);
}
.external {
  flex-shrink: 0;
}
.external svg {
  width: 20px;
  height: 20px;
  color: var(--ew-primary-700);
}
