/* ===================================
   COMMONGROUND — THEME CSS
   =================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-deep: #1B3D2F;
  --green-mid: #2D5A45;
  --green-light: #3E7A5E;
  --cream: #F7F3ED;
  --cream-warm: #EFE8DC;
  --amber: #D97706;
  --amber-light: #F59E0B;
  --amber-muted: rgba(217, 119, 6, 0.15);
  --text-dark: #1A1A18;
  --text-mid: #4A4A47;
  --text-light: #7A7A76;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(27,61,47,0.08);
  --shadow-md: 0 4px 20px rgba(27,61,47,0.10);
  --shadow-lg: 0 12px 48px rgba(27,61,47,0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* --- Typography Utilities --- */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}

.section-headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--green-deep);
  margin-bottom: 1.5rem;
}

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247,243,237,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(27,61,47,0.06);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--green-deep);
  letter-spacing: -0.01em;
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: 6rem 0 5rem;
  overflow: hidden;
}

.hero-bg-accent {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(217,119,6,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text {}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.25rem;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--green-deep);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-lede {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.hero-stat {}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--green-deep);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.4;
  max-width: 140px;
}

.hero-stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(27,61,47,0.15);
}

/* --- Hero Cards --- */
.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 420px;
}

.hero-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(27,61,47,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-lg);
}

.hero-card-1 { border-left: 3px solid var(--amber); }
.hero-card-2 { border-left: 3px solid var(--amber); }
.hero-card-3 { border-left: 3px solid var(--amber); }

.card-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--amber-muted);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--green-deep);
  margin-bottom: 0.25rem;
}

.card-desc {
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.5;
}

/* --- Pillars --- */
.pillars {
  background: var(--white);
  padding: 6rem 0;
}

.pillars-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.pillars-header {
  max-width: 600px;
  margin-bottom: 4rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.pillar {
  padding: 2rem;
  background: var(--cream);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(27,61,47,0.06);
  transition: border-color 0.2s ease;
}

.pillar:hover {
  border-color: rgba(217,119,6,0.3);
}

.pillar-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: rgba(27,61,47,0.15);
  line-height: 1;
  margin-bottom: 1.25rem;
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--green-deep);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.pillar-body {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.pillar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pillar-list li {
  font-size: 0.82rem;
  color: var(--text-mid);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.5;
}

.pillar-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--amber);
  border-radius: 50%;
}

/* --- How It Works --- */
.how {
  background: var(--green-deep);
  padding: 6rem 0;
  color: var(--cream);
}

.how-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.how-header {
  margin-bottom: 4rem;
}

.how-header .section-eyebrow { color: var(--amber-light); }
.how-header .section-headline { color: var(--cream); }

.how-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: 40px 40px 1fr;
  gap: 1.5rem;
  align-items: flex-start;
  position: relative;
}

.step-connector {
  grid-column: 1 / 2;
  width: 2px;
  height: 100%;
  background: rgba(247,243,237,0.15);
  margin-left: 19px;
  margin-top: 40px;
}

.step-circle {
  grid-column: 2 / 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  flex-shrink: 0;
}

.step-content {
  grid-column: 3 / 4;
  padding: 1.25rem 0 2.5rem;
}

.step:last-child .step-content {
  padding-bottom: 0;
}

.step:last-child .step-connector {
  display: none;
}

.step-content h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.step-content p {
  font-size: 0.9rem;
  color: rgba(247,243,237,0.65);
  line-height: 1.7;
}

/* --- Outcomes --- */
.outcomes {
  background: var(--cream-warm);
  padding: 6rem 0;
}

.outcomes-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: center;
}

.outcomes-visual {
  display: flex;
  justify-content: center;
}

.outcomes-ring {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ring-core {
  text-align: center;
  z-index: 2;
}

.ring-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--green-deep);
  line-height: 1;
}

.ring-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-mid);
  margin-top: 0.3rem;
}

.ring-sublabel {
  display: block;
  font-size: 0.7rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

.ring-segment {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(27,61,47,0.08);
}

.ring-1 { width: 280px; height: 280px; top: 0; left: 0; border-color: rgba(217,119,6,0.15); }
.ring-2 { width: 220px; height: 220px; top: 30px; left: 30px; border-color: rgba(27,61,47,0.08); }
.ring-3 { width: 160px; height: 160px; top: 60px; left: 60px; border-color: rgba(217,119,6,0.10); }
.ring-4 { width: 100px; height: 100px; top: 90px; left: 90px; border-color: rgba(27,61,47,0.06); }

.outcomes-text {}

.outcomes-body {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.outcomes-metrics {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.metric {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(27,61,47,0.06);
}

.metric-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--amber);
  flex-shrink: 0;
}

.metric-label {
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.5;
}

/* --- Manifesto --- */
.manifesto {
  background: var(--green-deep);
  padding: 7rem 0;
}

.manifesto-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.manifesto-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 2.5rem;
}

.manifesto-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-style: italic;
  font-weight: 400;
  color: var(--cream);
  line-height: 1.35;
  margin-bottom: 2.5rem;
  quotes: none;
}

.manifesto-body {
  font-size: 0.95rem;
  color: rgba(247,243,237,0.65);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

/* --- Footer --- */
.footer {
  background: var(--cream);
  border-top: 1px solid rgba(27,61,47,0.08);
  padding: 3rem 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--green-deep);
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-mid);
  margin-bottom: 0.5rem;
}

.footer-legal {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-visual { order: -1; }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .outcomes-inner {
    grid-template-columns: 1fr;
  }
  .outcomes-visual { display: none; }
}

@media (max-width: 600px) {
  .hero { padding: 4rem 0 3rem; }
  .hero-stats { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .hero-stat-divider { display: none; }
  .step {
    grid-template-columns: 40px 1fr;
  }
  .step-connector { display: none; }
  .step-circle { grid-column: 1 / 2; }
  .step-content { grid-column: 2 / 3; padding: 0 0 2rem; }
}
