:root {
  --green: #1f7a4d;
  --green-2: #2f9e5b;
  --leaf: #b7e4a8;
  --cream: #f7f6ee;
  --tint: #edf6e9;
  --blue: #2b6cb0;
  --red: #d64545;
  --text: #34403a;
  --heading: #173b2b;
  --muted: #66746c;
  --line: #dbe6d6;
  --white: #fff;
  --radius: 18px;
  --font: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
}

img, svg { display: block; max-width: 100%; }
a { color: var(--green); }
h1, h2, h3 { margin: 0 0 1rem; font-family: var(--font-head); color: var(--heading); line-height: 1.2; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 12px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  background: var(--green);
  box-shadow: 0 8px 20px rgba(31, 122, 77, .25);
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--green-2); transform: translateY(-2px); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 246, 238, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; color: var(--heading); }
.brand-name span { color: var(--green-2); }
.nav-list { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.nav-list a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--heading);
  text-decoration: none;
  transition: background .2s, color .2s;
}
.nav-list a:hover,
.nav-list a.is-active { color: var(--white); background: var(--green); }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--green);
  cursor: pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
  left: 12px;
  width: 20px; height: 2px;
  background: var(--white);
  transition: transform .3s, background .3s;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; left: 0; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero { padding: clamp(48px, 7vw, 90px) 0; background: radial-gradient(70% 80% at 85% 30%, #dff1d6, transparent 70%); }
.hero-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.hero-inner > * { min-width: 0; }
.tag {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--green);
  background: var(--leaf);
}
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 700; }
.hero-lead { max-width: 580px; font-size: 1.1rem; margin-bottom: 28px; }
.hero-art { margin: 0; }
.hero-art svg { width: 100%; height: auto; }
.leaf-float { animation: leaf 6s ease-in-out infinite; transform-origin: 350px 60px; }
@keyframes leaf {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(10px) rotate(-6deg); }
}

/* Sections */
.section { padding: clamp(60px, 8vw, 96px) 0; }
.section-tint { background: var(--tint); }
.section-dark { color: rgba(255, 255, 255, .85); background: var(--heading); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-head { max-width: 740px; margin: 0 0 40px; }
.section-head p:last-child { margin-bottom: 0; color: var(--muted); }
.section-dark .section-head p:last-child { color: rgba(255, 255, 255, .7); }

.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.about > * { min-width: 0; }
.pillars { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.pillars li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius); background: var(--white); box-shadow: 0 6px 18px rgba(23, 59, 43, .06); }
.pillar-num {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--white);
  background: var(--green-2);
}

.bin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.bin-grid > * { min-width: 0; }
.bin { padding: 28px; border-radius: var(--radius); background: var(--white); border-top: 8px solid; }
.bin-wet { border-color: var(--green-2); }
.bin-dry { border-color: var(--blue); }
.bin-haz { border-color: var(--red); }
.bin h3 { margin-bottom: 4px; }
.bin-tip { font-size: .9rem; font-weight: 700; color: var(--muted); }
.bin ul { margin: 0; padding-left: 20px; }
.bin li + li { margin-top: 6px; }
.note { margin: 24px 0 0; font-size: .95rem; color: var(--muted); }

.compost { display: grid; grid-template-columns: 1fr 1.5fr; gap: 56px; align-items: start; }
.compost > * { min-width: 0; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { position: relative; padding: 0 0 26px 64px; counter-increment: s; }
.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0; top: -4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 14px;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green);
  background: var(--leaf);
}
.steps li::after { content: ""; position: absolute; left: 21px; top: 46px; bottom: 4px; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; }

.swap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.swap-grid > * { min-width: 0; }
.swap { padding: 26px 22px; border-radius: var(--radius); background: var(--white); }
.swap h3 { color: var(--green); }
.swap p { margin: 0; font-size: .97rem; }

.sanitation { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
.sanitation > * { min-width: 0; }
.check-list { margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 14px 0 14px 40px; border-bottom: 1px solid var(--line); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 16px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--green-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.community-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.community-grid > * { min-width: 0; }
.community-card { padding: 28px; border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); background: rgba(255, 255, 255, .05); }
.community-card p { margin: 0; }

.faq { max-width: 860px; }
.faq details { margin-bottom: 12px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); }
.faq summary { position: relative; padding: 18px 56px 18px 22px; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 22px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--green);
}
.faq details[open] summary::after { content: "−"; }
.faq summary h3 { display: inline; margin: 0; font-size: 1.08rem; }
.faq details p { margin: 0; padding: 0 22px 18px; }

/* Footer */
.site-footer { color: rgba(255, 255, 255, .8); background: #0f2a1e; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-top: 44px; padding-bottom: 26px; }
.footer-brand { margin: 0; font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; color: var(--white); }
.footer-text { margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }
.footer-nav a { color: inherit; text-decoration: none; }
.footer-nav a:hover { color: var(--leaf); }
.disclaimer { padding-top: 18px; padding-bottom: 22px; font-size: .85rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.disclaimer p { margin: 0 0 6px; }

.back-to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  color: var(--white);
  background: var(--green);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; }

/* Responsive */
@media (max-width: 1080px) {
  .swap-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991.98px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: none;
    padding: 10px 20px 18px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
  }
  .primary-nav.is-open { display: block; }
  .nav-list { flex-direction: column; gap: 4px; }
  .hero-inner, .about, .compost, .sanitation { grid-template-columns: 1fr; gap: 32px; }
  .hero-art svg { max-width: 420px; margin: 0 auto; }
  .bin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .swap-grid, .community-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .back-to-top { right: 16px; bottom: 16px; }
}

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

.release-not-found main { display: block; width: 100%; max-width: 640px; min-height: 0; margin: 10vh auto; padding: 32px; box-sizing: border-box; }
.release-not-found h1 { font-size: clamp(32px, 7vw, 48px); line-height: 1.2; letter-spacing: normal; }
