:root {
  --bg: #f6f8f7;
  --ink: #15261f;
  --accent: #2a6582;
  --accent-2: #b9d5ed;
  --accent-3: #f2c75b;
  --card: #ffffff;
  --soft: #edf3f0;
  --line: #d8e1dc;
  --shadow: 0 10px 24px rgba(18, 38, 30, 0.08);
  --shadow-soft: 0 4px 12px rgba(18, 38, 30, 0.06);
  --radius: 14px;
  --container: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

.bg-texture {
  display: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

input,
select,
textarea,
button {
  font: inherit;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(31, 143, 115, 0.28);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid rgba(21, 38, 31, 0.08);
  transition: box-shadow 0.22s ease, background 0.22s ease;
}

.site-header.scrolled {
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  font-family: "Fraunces", "Georgia", serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.96rem;
  font-weight: 600;
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--accent-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  margin-left: auto;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border: 1px solid transparent;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 14px;
  font-weight: 700;
  color: var(--ink);
}

.hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: 72px 24px 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
}

.hero h1 {
  margin: 10px 0 14px;
  font-family: "Fraunces", "Georgia", serif;
  font-size: clamp(2.3rem, 4.3vw, 4rem);
  line-height: 1.08;
}

.lead {
  margin: 0;
  max-width: 560px;
  color: rgba(36, 62, 51, 0.84);
  font-size: 1.08rem;
}

.hero-actions {
  margin: 22px 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn.ghost {
  background: #fff;
  border-color: rgba(21, 38, 31, 0.24);
  color: var(--ink);
}

.btn:hover {
  box-shadow: var(--shadow-soft);
}

.btn.primary:hover {
  background: #234f66;
  border-color: #234f66;
}

.btn.ghost:hover {
  background: #f1f6f3;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(21, 38, 31, 0.08);
  font-size: 0.82rem;
  font-weight: 600;
}

.hero-art {
  position: relative;
  min-height: 340px;
}

.orb {
  position: absolute;
  left: 8%;
  top: 8%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--soft);
  filter: none;
  animation: none;
}

.tile {
  position: absolute;
  right: 4%;
  top: 12%;
  width: 208px;
  height: 268px;
  border-radius: 20px;
  transform: rotate(4deg);
  background: var(--accent);
  box-shadow: var(--shadow-soft);
}

.stack {
  position: absolute;
  left: 0;
  bottom: 0;
  display: grid;
  gap: 12px;
}

.stack-card {
  width: 188px;
  border-radius: 14px;
  background: var(--card);
  padding: 12px 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(21, 38, 31, 0.06);
}

.stack-card p {
  margin: 0;
  font-size: 0.9rem;
}

.stack-card strong {
  font-size: 1.2rem;
}

.impact-ticker {
  background: var(--ink);
  color: #f5f8f6;
  overflow: hidden;
  padding: 10px 0;
}

.ticker-track {
  display: inline-flex;
  gap: 22px;
  white-space: nowrap;
  animation: ticker 17s linear infinite;
}

.stats {
  max-width: var(--container);
  margin: 24px auto 0;
  padding: 0 24px 36px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.stat-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid rgba(21, 38, 31, 0.08);
  box-shadow: var(--shadow-soft);
  padding: 18px;
}

.stat-card h3 {
  margin: 0 0 6px;
  font-size: 1.55rem;
}

.stat-card p {
  margin: 0;
  color: rgba(21, 38, 31, 0.82);
}

section {
  padding: 52px 24px;
}

.section-title {
  max-width: 880px;
  margin: 0 auto 22px;
}

.section-title p {
  margin: 0 0 7px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
}

.section-title h2 {
  margin: 0;
  font-family: "Fraunces", "Georgia", serif;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.15;
}

.story-grid,
.process-steps,
.volunteer-grid,
.product-grid,
.commerce-grid,
.loop-grid,
.partner-grid,
.testimonial-grid,
.faq-grid,
.contact-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.story-card,
.process-card,
.volunteer-card,
.product-card,
.commerce-card,
.loop-card,
.faq-card,
.contact-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid rgba(21, 38, 31, 0.07);
  box-shadow: none;
}

.story-card h3,
.process-card h3,
.volunteer-card h3,
.commerce-card h3,
.faq-card h3,
.contact-card h3 {
  margin-top: 0;
}

.story-card p,
.process-card p,
.volunteer-card p,
.commerce-card p,
.loop-card p,
.faq-card p,
.contact-card p {
  margin: 0;
  color: rgba(21, 38, 31, 0.82);
}

.process-card {
  border-top: 4px solid var(--accent-2);
}

.step {
  display: inline-block;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--accent);
}

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--accent-2);
  font-weight: 700;
}

.volunteer {
  position: relative;
}

.chat-section {
  max-width: var(--container);
  margin: 34px auto 0;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(21, 38, 31, 0.08);
  overflow: hidden;
}

.chat-header {
  padding: 18px;
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-weight: 700;
}

.chat-status {
  padding: 10px 20px;
  background: rgba(31, 143, 115, 0.12);
  text-align: center;
  color: #176854;
  font-size: 0.9rem;
}

.chat-messages {
  list-style: none;
  margin: 0;
  padding: 18px 20px;
  height: 380px;
  overflow-y: auto;
  background: #f9fcfa;
}

.message {
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(21, 38, 31, 0.04);
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 10px;
  align-items: start;
}

.message strong {
  color: var(--accent);
  font-size: 0.9rem;
}

.message p {
  margin: 0;
}

.message time {
  color: rgba(21, 38, 31, 0.58);
  font-size: 0.78rem;
}

.chat-input {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 12px;
  padding: 16px;
  background: #ffffff;
  border-top: 1px solid var(--line);
}

#username,
#message {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}

.chat-send {
  border: none;
  border-radius: 12px;
  padding: 0 18px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.chat-send:hover {
  background: #187561;
}

.volunteer-hub {
  background: transparent;
}

.volunteer-hub-shell {
  max-width: var(--container);
  margin: 0 auto;
}

.volunteer-hub-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid rgba(21, 38, 31, 0.1);
  border-radius: 999px;
  padding: 10px;
  box-shadow: none;
}

.volunteer-hub-search input {
  flex: 1;
  min-width: 180px;
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 12px 16px;
}

.volunteer-hub-search input::placeholder {
  color: rgba(21, 38, 31, 0.54);
}

.volunteer-hub-search input:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(31, 143, 115, 0.22);
}

.volunteer-hub-search .btn {
  flex-shrink: 0;
}

.campaign-results {
  margin-top: 22px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
}

.campaign-card {
  border-left: 6px solid var(--accent-2);
  border-radius: var(--radius);
  background: var(--card);
  padding: 18px;
  box-shadow: none;
  border-top: 1px solid rgba(21, 38, 31, 0.08);
  border-right: 1px solid rgba(21, 38, 31, 0.08);
  border-bottom: 1px solid rgba(21, 38, 31, 0.08);
  display: grid;
  gap: 12px;
}

.campaign-card h3 {
  margin: 0;
  font-family: "Fraunces", "Georgia", serif;
  font-size: 1.2rem;
}

.campaign-card-meta {
  margin: 0;
  display: grid;
  gap: 4px;
  font-size: 0.92rem;
  color: rgba(21, 38, 31, 0.8);
}

.campaign-card .join-team-btn {
  justify-self: start;
}

.campaign-empty {
  margin: 0;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(21, 38, 31, 0.07);
  color: rgba(21, 38, 31, 0.85);
}

.community {
  background: transparent;
}

.product-grid {
  align-items: stretch;
}

.product-card {
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto;
  gap: 10px;
  background: var(--card);
}

.product-media {
  width: 100%;
  height: 210px;
  border-radius: 14px;
  object-fit: cover;
  margin-bottom: 2px;
  border: 1px solid rgba(21, 38, 31, 0.08);
}

.product-topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.product-topline h3 {
  margin: 0;
  font-size: 1.2rem;
}

.product-price {
  margin: 0;
  color: var(--accent);
  font-weight: 800;
}

.product-info {
  margin: 0;
  font-size: 0.89rem;
  color: rgba(21, 38, 31, 0.72);
}

.product-actions {
  margin-top: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.product-actions .btn {
  width: 100%;
}

.cart-panel {
  max-width: var(--container);
  margin: 28px auto 0;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid rgba(21, 38, 31, 0.1);
  box-shadow: var(--shadow-soft);
  padding: 22px;
  display: grid;
  gap: 14px;
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-head h3 {
  margin: 0;
  font-family: "Fraunces", "Georgia", serif;
}

.cart-clear-btn {
  border: none;
  background: transparent;
  color: var(--accent-2);
  font-weight: 700;
  cursor: pointer;
}

.cart-items {
  display: grid;
  gap: 10px;
}

.cart-item {
  background: rgba(21, 38, 31, 0.06);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.cart-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.cart-item-title,
.cart-item-subtotal {
  margin: 0;
}

.cart-item-title {
  font-weight: 600;
}

.cart-item-subtotal {
  color: var(--accent);
  font-weight: 800;
}

.cart-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(21, 38, 31, 0.18);
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.qty-value {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
}

.remove-item-btn {
  margin-left: auto;
  border: none;
  background: transparent;
  color: var(--accent-2);
  font-weight: 700;
  cursor: pointer;
}

.cart-summary {
  padding-top: 8px;
  border-top: 1px solid rgba(21, 38, 31, 0.14);
  display: grid;
  gap: 8px;
}

.cart-summary p {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkout-btn {
  width: 100%;
}

.cart-status {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.9rem;
  color: rgba(21, 38, 31, 0.7);
}

.cart-empty {
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  background: rgba(21, 38, 31, 0.06);
}

.commerce {
  background: transparent;
}

.cta-band {
  max-width: var(--container);
  margin: 30px auto 0;
  padding: 24px 30px;
  border-radius: 24px;
  background: var(--ink);
  color: #f2f8f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-band h3 {
  margin: 0 0 6px;
}

.cta-band p {
  margin: 0;
  color: rgba(242, 248, 245, 0.86);
}

.cta-band .btn.primary {
  background: var(--accent-3);
  border-color: var(--accent-3);
  color: #20332b;
}

.loop-card h4 {
  margin: 0 0 8px;
}

.partner-pill {
  border-radius: 999px;
  padding: 14px 18px;
  text-align: center;
  font-weight: 700;
  background: rgba(21, 38, 31, 0.08);
}

.testimonial {
  margin: 0;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: none;
  border-top: 1px solid rgba(21, 38, 31, 0.08);
  border-right: 1px solid rgba(21, 38, 31, 0.08);
  border-bottom: 1px solid rgba(21, 38, 31, 0.08);
  padding: 22px;
}

.testimonial cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-weight: 700;
  color: var(--accent-2);
}

.contact {
  background: transparent;
}

.contact-form {
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: none;
  border: 1px solid rgba(21, 38, 31, 0.08);
  padding: 22px;
  display: grid;
  gap: 12px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

input,
select,
textarea {
  border-radius: 12px;
  border: 1px solid rgba(21, 38, 31, 0.16);
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
}

textarea {
  resize: vertical;
}

.form-note {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(21, 38, 31, 0.62);
}

.success-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(12, 21, 18, 0.36);
  backdrop-filter: blur(4px);
}

.success-modal[hidden] {
  display: none;
}

.success-modal-card {
  width: min(100%, 460px);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  padding: 26px;
  text-align: center;
  border: 1px solid rgba(21, 38, 31, 0.08);
}

.success-modal-card h3 {
  margin: 0 0 8px;
  font-family: "Fraunces", "Georgia", serif;
}

.success-modal-card p {
  margin: 0 0 18px;
  color: rgba(21, 38, 31, 0.82);
}

body.modal-open {
  overflow: hidden;
}

.site-footer {
  max-width: var(--container);
  margin: 0 auto;
  padding: 44px 24px 62px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(21, 38, 31, 0.1);
}

.site-footer p {
  margin: 6px 0 0;
  color: rgba(21, 38, 31, 0.72);
}

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

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 980px) {
  .hero {
    padding-top: 62px;
  }

  .chat-input {
    grid-template-columns: 1fr;
  }

  .chat-send {
    min-height: 44px;
  }

  .message {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .message time {
    justify-self: start;
  }

  .product-actions {
    grid-template-columns: 1fr;
  }

  .volunteer-hub-search {
    flex-direction: column;
    align-items: stretch;
    border-radius: var(--radius);
  }

  .volunteer-hub-search .btn {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .nav {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    order: 3;
    width: 100%;
    margin: 10px 0 0;
    padding: 12px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    background: var(--card);
    border-radius: 16px;
    border: 1px solid rgba(21, 38, 31, 0.08);
    box-shadow: var(--shadow-soft);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  section {
    padding: 44px 18px;
  }

  .hero {
    padding: 52px 18px 30px;
    gap: 24px;
  }

  .stats {
    padding: 0 18px 30px;
  }

  .site-footer {
    padding: 34px 18px 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
