/* === VillageWorks Design System === */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,400;0,500;0,600;1,400&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --warm: #F5F0E8;
  --earth: #2C3E2D;
  --earth-light: #3A5240;
  --copper: #C17832;
  --copper-light: #D4944A;
  --clay: #A0522D;
  --sage: #7A8B6F;
  --cream: #FDF8F0;
  --dark: #1A1A1A;
  --mist: #E8E2D6;
  --success: #4A7C59;
  --warning: #C17832;
  --danger: #8B3A3A;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--dark);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5 { font-family: 'Syne', sans-serif; }

/* === NAV === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(26, 36, 24, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-brand {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-brand span { color: var(--copper); }

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: white;
  background: rgba(255,255,255,0.08);
}

.nav-links a.active {
  color: var(--copper);
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
}

/* === PAGE HEADER === */
.page-header {
  padding: 120px 40px 60px;
  background: linear-gradient(165deg, var(--earth) 0%, #1F2B20 55%, #1A2418 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(193,120,50,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.page-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.page-header .section-label {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 16px;
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -1.5px;
}

.page-header h1 span { color: var(--copper); }

.page-header p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  max-width: 600px;
  line-height: 1.7;
}

/* === SECTION === */
.section {
  padding: 80px 40px;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 12px;
}

.section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--earth);
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: #666;
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 40px;
}

/* === CARDS === */
.card {
  background: white;
  border-radius: 12px;
  padding: 28px 24px;
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.card-dark {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: white;
}

.card-dark:hover {
  background: rgba(255,255,255,0.1);
}

/* === STATS GRID === */
.stats-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.stat-card {
  flex: 1;
  min-width: 160px;
  background: white;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid rgba(0,0,0,0.04);
}

.stat-card.dark {
  background: var(--earth);
  color: white;
  border: none;
}

.stat-value {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--earth);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-card.dark .stat-value { color: var(--copper); }

.stat-label {
  font-size: 0.82rem;
  color: #888;
}

.stat-card.dark .stat-label { color: rgba(255,255,255,0.5); }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--copper);
  color: white;
}

.btn-primary:hover {
  background: var(--copper-light);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--earth);
  border: 1.5px solid var(--earth);
}

.btn-outline:hover {
  background: var(--earth);
  color: white;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
}

/* === TAGS === */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.tag-earn { background: rgba(74,124,89,0.12); color: var(--success); }
.tag-spend { background: rgba(193,120,50,0.12); color: var(--copper); }
.tag-food { background: rgba(193,120,50,0.1); color: var(--clay); }
.tag-services { background: rgba(122,139,111,0.15); color: var(--sage); }
.tag-trades { background: rgba(44,62,45,0.1); color: var(--earth); }
.tag-education { background: rgba(100,100,200,0.1); color: #5555AA; }
.tag-community { background: rgba(193,120,50,0.12); color: var(--copper); }
.tag-wellness { background: rgba(74,124,89,0.12); color: var(--success); }
.tag-real_estate { background: rgba(44,62,45,0.1); color: var(--earth); }

/* === PROGRESS BAR === */
.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--mist);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--sage), var(--copper));
  transition: width 0.6s ease;
}

/* === REVENUE BAR === */
.revenue-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.revenue-bar-track {
  flex: 1;
  height: 24px;
  background: var(--mist);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.revenue-bar-fill {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--earth), var(--sage));
  transition: width 0.6s ease;
  position: relative;
}

.revenue-bar-fill.high {
  background: linear-gradient(90deg, var(--sage), var(--copper));
  opacity: 0.4;
  position: absolute;
  top: 0;
  left: 0;
}

/* === TOOLTIP === */
.tooltip {
  position: absolute;
  background: var(--dark);
  color: white;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  line-height: 1.5;
  z-index: 50;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  max-width: 280px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.tooltip.show { opacity: 1; }

/* === FOOTER === */
.site-footer {
  padding: 48px 40px 32px;
  background: #1A2418;
  text-align: center;
}

.site-footer p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
}

.site-footer span { color: var(--copper); }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.footer-links a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--copper); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav { padding: 12px 20px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(26, 36, 24, 0.98);
    padding: 8px 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-links.open { display: flex; }
  .nav-mobile-toggle { display: block; }
  .page-header { padding: 100px 24px 48px; }
  .section { padding: 56px 24px; }
  .stats-row { gap: 12px; }
  .stat-card { min-width: 140px; padding: 18px; }
  .stat-value { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .stats-row { flex-direction: column; }
  .page-header h1 { letter-spacing: -0.5px; }
}
