/* Agrinature Foundation Mockup — Shared Styles */

:root {
  --green-900: #1a3d2e;
  --green-800: #2d5a3d;
  --green-700: #3d7553;
  --green-600: #4a9168;
  --green-500: #5fae7c;
  --green-100: #e8f3ec;
  --green-50: #f4faf6;
  --earth-900: #3d2817;
  --earth-700: #6b4423;
  --earth-500: #a07a4a;
  --cream: #faf7f0;
  --gold: #c9a961;
}

* { -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Sarabun', 'Inter', system-ui, sans-serif;
  background: var(--cream);
  color: #1f1f1f;
}

.font-display { font-family: 'Prompt', 'Inter', sans-serif; font-weight: 600; letter-spacing: -0.01em; }
.font-serif-th { font-family: 'Charm', 'Sarabun', serif; }

.bg-leaf-pattern {
  background-color: var(--green-50);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(74,145,104,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(201,169,97,0.05) 0%, transparent 50%);
}

.hero-gradient {
  background: linear-gradient(135deg, rgba(26,61,46,0.85) 0%, rgba(45,90,61,0.7) 50%, rgba(61,117,83,0.5) 100%);
}

.text-balance { text-wrap: balance; }

.btn-primary {
  background: var(--green-700);
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(45,90,61,0.25);
}
.btn-primary:hover { background: var(--green-800); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(45,90,61,0.35); }

.btn-outline {
  border: 1.5px solid var(--green-700);
  color: var(--green-800);
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  font-weight: 500;
  transition: all 0.2s;
}
.btn-outline:hover { background: var(--green-700); color: #fff; }

.btn-gold {
  background: var(--gold);
  color: var(--earth-900);
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
}

.card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(26,61,46,0.08), 0 8px 24px rgba(26,61,46,0.04);
  overflow: hidden;
  transition: all 0.3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 4px 12px rgba(26,61,46,0.12), 0 20px 40px rgba(26,61,46,0.08); }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.875rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--green-100);
  color: var(--green-800);
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 0.75rem;
}

.divider-leaf {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--green-600);
  margin: 1rem 0;
}
.divider-leaf::before, .divider-leaf::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--green-600), transparent);
}

.scroll-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-fade.visible { opacity: 1; transform: translateY(0); }

/* Header */
.site-header { backdrop-filter: blur(12px); background: rgba(250,247,240,0.85); border-bottom: 1px solid rgba(45,90,61,0.08); }
.nav-link { color: #2d5a3d; font-weight: 500; padding: 0.5rem 0; position: relative; transition: color 0.2s; }
.nav-link:hover { color: var(--green-900); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--green-700);
}

/* Stats counter */
.stat-number {
  font-family: 'Prompt', sans-serif;
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  white-space: nowrap;
}

/* Lang switch */
.lang-switch {
  display: inline-flex;
  border: 1px solid rgba(45,90,61,0.2);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.8125rem;
}
.lang-switch a { padding: 0.375rem 0.875rem; color: var(--green-800); }
.lang-switch a.active { background: var(--green-700); color: #fff; }

/* Image placeholders with eco illustration */
.img-eco {
  background: linear-gradient(135deg, #5fae7c 0%, #3d7553 100%);
  position: relative;
  overflow: hidden;
}
.img-eco::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 40%, rgba(255,255,255,0.15) 0%, transparent 30%),
    radial-gradient(circle at 70% 60%, rgba(201,169,97,0.2) 0%, transparent 40%);
}

.img-earth {
  background: linear-gradient(135deg, #a07a4a 0%, #6b4423 100%);
  position: relative;
}

.img-water {
  background: linear-gradient(135deg, #6ba8c9 0%, #3d6b85 100%);
  position: relative;
}

/* Footer */
.site-footer {
  background: var(--green-900);
  color: rgba(255,255,255,0.85);
}
.site-footer a:hover { color: var(--gold); }

/* Calendar mini */
.cal-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 0.875rem; color: #555; border-radius: 0.5rem; }
.cal-day.has-event { background: var(--green-100); color: var(--green-800); font-weight: 600; position: relative; }
.cal-day.has-event::after {
  content: '';
  position: absolute;
  bottom: 4px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--green-700);
}
.cal-day.today { background: var(--green-700); color: #fff; font-weight: 600; }

/* Marquee */
.marquee {
  display: flex;
  gap: 3rem;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
