@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Nunito+Sans:ital,opsz,wght@0,6..12,400;0,6..12,500;0,6..12,600;0,6..12,700;1,6..12,400&display=swap');

:root {
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Nunito Sans', system-ui, sans-serif;
  --color-primary: #14532D;
  --color-accent: #84CC16;
  --color-bg: #F7FEE7;
  --color-ink: #1C1917;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --shadow-soft: 0 8px 32px rgba(20, 83, 45, 0.08);
  --shadow-lift: 0 16px 40px rgba(20, 83, 45, 0.12);
}

body {
  font-family: var(--font-body);
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(32px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes count-glow {
  0%, 100% { text-shadow: 0 0 0 transparent; }
  50% { text-shadow: 0 0 16px rgba(132, 204, 22, 0.35); }
}

@keyframes leaf-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.animate-fade-in-up { animation: fade-in-up 0.7s ease-out both; }
.animate-slide-in-right { animation: slide-in-right 0.7s ease-out both; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-count-glow { animation: count-glow 2s ease-in-out infinite; }

.hero-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(247, 254, 231, 0.94) 0%,
    rgba(247, 254, 231, 0.82) 45%,
    rgba(236, 252, 203, 0.88) 100%
  );
}

.card-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.clay-card {
  border: 3px solid rgba(20, 83, 45, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 8px 24px rgba(20, 83, 45, 0.08);
  border-radius: var(--radius-xl);
}

.burger-line { transition: transform 0.3s ease, opacity 0.3s ease; }
.burger-open .burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-open .burger-line:nth-child(2) { opacity: 0; }
.burger-open .burger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav-open { overflow: hidden; }

.stat-number { font-variant-numeric: tabular-nums; }

.btn-forest {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background: var(--color-primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-forest:hover { background: #0F4228; transform: translateY(-1px); }
.btn-forest:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.btn-lime-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  padding: 0.7rem 1.45rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-lime-outline:hover { background: var(--color-primary); color: #fff; }

.form-field-error {
  border-color: #DC2626 !important;
  background-color: #FEF2F2;
}

.form-error-msg {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.75rem;
  line-height: 1rem;
  color: #DC2626;
}

.form-success-toast {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 60;
  max-width: 22rem;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.form-success-toast.is-visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.is-open .faq-answer { max-height: 28rem; }

.faq-chevron { transition: transform 0.3s ease; }
.faq-item.is-open .faq-chevron { transform: rotate(180deg); }

.legal-content h2 { margin-top: 2rem; margin-bottom: 1rem; font-size: 1.25rem; font-weight: 700; color: var(--color-ink); }
.legal-content h3 { margin-top: 1.25rem; margin-bottom: 0.75rem; font-size: 1.05rem; font-weight: 600; color: var(--color-ink); }
.legal-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-content li { margin-bottom: 0.35rem; }
.legal-content a { color: var(--color-primary); text-decoration: underline; }

.leaf-badge {
  animation: leaf-float 4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
