/* ===================================================
   GARBAGE PER CAPITA — Stylesheet
   =================================================== */

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

:root {
  --green-dark:   #1a4731;
  --green-mid:    #2d6a4f;
  --green-light:  #52b788;
  --green-pale:   #d8f3dc;
  --amber:        #e9a800;
  --amber-light:  #fff3cd;
  --charcoal:     #1c1c1c;
  --gray-dark:    #374151;
  --gray-mid:     #6b7280;
  --gray-light:   #f3f4f6;
  --white:        #ffffff;
  --red:          #c0392b;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.10);
  --shadow-md:    0 4px 16px rgba(0,0,0,.12);
  --shadow-lg:    0 8px 32px rgba(0,0,0,.16);
  --radius:       8px;
  --radius-lg:    16px;
  --transition:   0.2s ease;
  --font-sans:    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--green-mid); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-dark); text-decoration: underline; }

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

/* ----- Typography ----- */
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p  { line-height: 1.7; }

.lead { font-size: 1.15rem; }
.section-intro { font-size: 1.1rem; color: var(--gray-dark); max-width: 900px; margin: 0.75rem auto 2.5rem; text-align: center; }
.section-label {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .75rem;
  font-weight: 700;
  color: var(--green-light);
  margin-bottom: .5rem;
}
.section-label.light { color: var(--green-pale); }

/* ----- Layout ----- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 800px; }

.section { padding: 5rem 0; }
.section-light { background: var(--white); }
.section-dark  { background: var(--green-dark); color: var(--white); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,.88); }
.section-green { background: var(--green-mid); color: var(--white); }
.section-green h2, .section-green h4 { color: var(--white); }
.section-green p { color: rgba(255,255,255,.88); }
.section-signup { background: var(--green-pale); }

/* ----- Navbar ----- */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(26,71,49,.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex; align-items: center; gap: .5rem;
  color: var(--white) !important; font-weight: 700; font-size: 1rem;
  text-decoration: none !important;
}
.logo-icon { font-size: 1.4rem; }
.nav-links {
  display: flex; list-style: none; gap: .25rem; align-items: center;
}
.nav-links li a {
  color: rgba(255,255,255,.82);
  padding: .4rem .7rem;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
.nav-links li a:hover { background: rgba(255,255,255,.12); color: var(--white); text-decoration: none; }
.nav-cta {
  background: var(--amber) !important;
  color: var(--charcoal) !important;
  font-weight: 700 !important;
  padding: .45rem 1rem !important;
}
.nav-cta:hover { background: #d4960a !important; }
.nav-toggle { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; padding: .25rem; }

/* ----- Buttons ----- */
.btn {
  display: inline-block; padding: .75rem 1.75rem; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem; cursor: pointer;
  transition: all var(--transition); border: 2px solid transparent;
  text-decoration: none !important; line-height: 1;
}
.btn-primary { background: var(--amber); color: var(--charcoal); border-color: var(--amber); }
.btn-primary:hover { background: #d4960a; border-color: #d4960a; color: var(--charcoal); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: var(--white); color: var(--white); }
.btn-large { padding: 1rem 2.5rem; font-size: 1.1rem; }

/* ----- Hero ----- */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--green-dark) 0%, #0d2b1d 60%, #1a3a28 100%);
  display: flex; flex-direction: column; justify-content: center;
  padding: 7rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(82,183,136,.15) 0%, transparent 65%);
}
.hero-content { max-width: 900px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.hero-eyebrow {
  font-size: .9rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--green-light); font-weight: 600; margin-bottom: 1rem;
}
#hero h1 { color: var(--white); margin-bottom: 1.5rem; }
.hero-sub {
  font-size: 1.2rem; color: rgba(255,255,255,.82);
  max-width: 680px; margin: 0 auto 2.5rem;
}
.hero-stat-row {
  display: flex; justify-content: center; align-items: center;
  gap: 0; flex-wrap: wrap;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg); padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
}
.hero-stat { text-align: center; padding: .5rem 2rem; }
.hero-stat.divider {
  width: 1px; height: 50px; background: rgba(255,255,255,.2); padding: 0;
}
.stat-num {
  display: block; font-size: 2.2rem; font-weight: 800;
  color: var(--amber); line-height: 1;
}
.stat-label { font-size: .78rem; color: rgba(255,255,255,.7); line-height: 1.4; margin-top: .3rem; display: block; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.4); font-size: 1.5rem;
  animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* ----- Cards ----- */
.card-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
}
.card {
  background: var(--white); border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg); padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-icon { font-size: 2rem; margin-bottom: .75rem; }
.card h3 { margin-bottom: .5rem; color: var(--green-dark); }
.card p { color: var(--gray-dark); font-size: .95rem; }

/* ----- Solution Layout ----- */
.solution-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; margin-top: 2rem; }
.solution-text .lead { margin-bottom: 1.5rem; }
.formula-block {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg); padding: 1.5rem 2rem;
  margin-bottom: 1.75rem; text-align: center;
}
.formula { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.formula-label { font-weight: 600; font-size: 1.05rem; color: var(--green-light); white-space: nowrap; }
.fraction { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.numerator, .denominator { display: block; padding: .25rem .75rem; font-size: .95rem; }
.numerator { border-bottom: 2px solid rgba(255,255,255,.5); }
.formula-note { margin-top: .75rem; font-size: .9rem; color: rgba(255,255,255,.75); }
.check-list { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.check-list li { padding-left: 1.6rem; position: relative; font-size: .95rem; color: rgba(255,255,255,.88); }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--green-light); font-weight: 700; }

.callout-box {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg); padding: 1.5rem;
  margin-bottom: 1rem;
}
.callout-quote {
  font-size: 1.15rem; font-style: italic; color: var(--green-pale);
  text-align: center; font-weight: 600;
}
.callout-green { border-color: var(--green-light); }
.callout-green h4 { color: var(--green-light); margin-bottom: .6rem; }
.callout-green ul { list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.callout-green li { font-size: .9rem; padding-left: 1.2rem; position: relative; color: rgba(255,255,255,.85); }
.callout-green li::before { content: '→'; position: absolute; left: 0; color: var(--green-light); }
.callout-amber { border-left: 4px solid var(--amber); }
.callout-amber h4 { color: var(--amber); margin-bottom: .6rem; }

/* ----- Charts ----- */
.chart-wrapper {
  background: var(--white); border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg); padding: 2rem;
  box-shadow: var(--shadow-sm); margin-bottom: 2.5rem;
}
.chart-title { font-size: 1rem; color: var(--gray-dark); margin-bottom: 1.5rem; font-weight: 600; }
.chart-container { overflow-x: auto; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
.legend-item { display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--gray-dark); }
.legend-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }

/* SVG chart inline */
.ntmwd-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ntmwd-table th { background: var(--green-dark); color: var(--white); padding: .6rem .8rem; text-align: left; font-size: .8rem; }
.ntmwd-table td { padding: .55rem .8rem; border-bottom: 1px solid #f0f0f0; }
.ntmwd-table tr:hover td { background: var(--green-pale); }
.ntmwd-table .city-bar-cell { width: 180px; }
.bar-outer { background: #e8f5e9; border-radius: 4px; overflow: hidden; height: 12px; }
.bar-inner { height: 100%; border-radius: 4px; transition: width .4s ease; }
.gpc-num { font-weight: 700; color: var(--green-dark); }
.change-pos { color: #e74c3c; font-size: .8rem; }
.change-neg { color: #27ae60; font-size: .8rem; font-weight: 600; }

/* ----- Proof Story ----- */
.proof-story { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: start; margin-bottom: 2.5rem; }
.story-highlight {
  background: var(--green-pale); border-left: 5px solid var(--green-mid);
  border-radius: var(--radius-lg); padding: 2rem;
}
.story-badge {
  display: inline-block; background: var(--green-mid); color: var(--white);
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; padding: .3rem .8rem; border-radius: 20px;
  margin-bottom: 1rem;
}
.story-highlight p { color: var(--gray-dark); margin-bottom: 1rem; }
.story-subtext { font-style: italic; color: var(--green-mid) !important; font-weight: 600; }
.stats-row { display: flex; flex-direction: column; gap: 1rem; }
.mini-stat {
  background: var(--white); border: 1px solid #e5e7eb;
  border-radius: var(--radius); padding: 1.2rem;
  text-align: center; box-shadow: var(--shadow-sm);
}
.mini-num { display: block; font-size: 2rem; font-weight: 800; line-height: 1; margin-bottom: .3rem; }
.mini-num.green { color: var(--green-mid); }
.mini-label { font-size: .8rem; color: var(--gray-mid); }

.california-block {
  display: flex; gap: 1.5rem; align-items: flex-start;
  background: var(--green-pale); border-radius: var(--radius-lg); padding: 2rem;
}
.ca-icon { font-size: 3rem; flex-shrink: 0; }
.ca-text h3 { color: var(--green-dark); margin-bottom: .6rem; }
.ca-text p { color: var(--gray-dark); }

/* ----- Benefits Grid ----- */
.benefits-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem;
  margin-top: 1rem;
}
.benefit-item {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg); padding: 1.5rem;
  transition: background var(--transition);
}
.benefit-item:hover { background: rgba(255,255,255,.14); }
.benefit-num { display: block; font-size: 2.5rem; font-weight: 900; color: rgba(255,255,255,.15); line-height: 1; margin-bottom: .25rem; }
.benefit-item h4 { color: var(--green-pale); margin-bottom: .5rem; }
.benefit-item p { font-size: .88rem; color: rgba(255,255,255,.75); }

/* ----- Economy ----- */
.economy-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: start; }
.jobs-chart h3 { margin-bottom: 1.25rem; font-size: 1rem; color: var(--gray-dark); }
.jobs-bar-container { display: flex; flex-direction: column; gap: .55rem; }
.job-row { display: flex; align-items: center; gap: .75rem; }
.job-label { width: 180px; font-size: .8rem; color: var(--gray-dark); text-align: right; flex-shrink: 0; }
.job-bar-wrap { flex: 1; background: #e8f5e9; border-radius: 4px; overflow: hidden; height: 22px; }
.job-bar { height: 100%; border-radius: 4px; display: flex; align-items: center; padding-left: .4rem; }
.job-bar span { font-size: .75rem; font-weight: 700; color: var(--white); }
.jobs-source { font-size: .78rem; color: var(--gray-mid); margin-top: .75rem; }

.economy-stats { display: flex; flex-direction: column; gap: 1rem; }
.econ-stat {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--white); border: 1px solid #e5e7eb;
  border-radius: var(--radius); padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-sm);
}
.econ-num { font-size: 1.5rem; font-weight: 800; color: var(--green-mid); flex-shrink: 0; line-height: 1.1; }
.econ-stat p { font-size: .875rem; color: var(--gray-dark); margin: 0; }
.econ-callout {
  background: var(--amber-light); border-left: 4px solid var(--amber);
  border-radius: var(--radius); padding: 1.1rem 1.25rem;
}
.econ-callout p { font-size: .875rem; color: var(--gray-dark); margin: 0; }

/* ----- Action Cards ----- */
.action-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.action-card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg); padding: 2rem;
}
.action-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.action-card h3 { color: var(--green-pale); margin-bottom: 1rem; font-size: 1.1rem; }
.action-card ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.action-card li {
  padding-left: 1.4rem; position: relative;
  font-size: .88rem; color: rgba(255,255,255,.8);
}
.action-card li::before { content: '→'; position: absolute; left: 0; color: var(--amber); }

/* ----- Sign-up Form ----- */
.signup-form { background: var(--white); border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow-md); margin-top: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group-full { margin-bottom: 1.25rem; }
label { font-size: .875rem; font-weight: 600; color: var(--gray-dark); }
.required { color: var(--red); }
input, select, textarea {
  width: 100%; padding: .65rem .9rem;
  border: 1px solid #d1d5db; border-radius: var(--radius);
  font-size: .95rem; font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white); color: var(--charcoal);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(45,106,79,.15);
}
input::placeholder, textarea::placeholder { color: #9ca3af; }
textarea { resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.form-footer { display: flex; flex-direction: column; align-items: center; gap: .75rem; margin-top: 1.5rem; }
.form-privacy { font-size: .78rem; color: var(--gray-mid); text-align: center; }

/* Form states */
.spinner {
  width: 18px; height: 18px; border: 2px solid rgba(0,0,0,.2);
  border-top-color: var(--charcoal); border-radius: 50%;
  animation: spin .6s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }
.form-message {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: 1rem 1.25rem; border-radius: var(--radius);
  font-size: .9rem; margin-top: 1.25rem;
}
.form-success { background: #d1fae5; border: 1px solid #6ee7b7; color: #065f46; }
.form-error   { background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b; }
.msg-icon { font-size: 1.1rem; flex-shrink: 0; }

/* ----- About ----- */
.about-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: start; }
.about-right { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.about-portrait {
  width: 260px; height: 260px; border-radius: 50%;
  object-fit: cover; display: block;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.about-text p { color: var(--gray-dark); margin-bottom: 1rem; }
.contact-line { font-size: .9rem; color: var(--gray-mid); margin-top: .5rem; }
.about-quote {
  background: var(--green-pale); border-radius: var(--radius-lg); padding: 2rem;
  border-left: 5px solid var(--green-mid); display: flex; flex-direction: column; gap: .75rem;
}
blockquote { font-style: italic; font-size: 1.1rem; color: var(--green-dark); line-height: 1.6; }
cite { font-style: normal; font-size: .875rem; color: var(--green-mid); font-weight: 600; }

/* ----- Footer ----- */
#footer {
  background: var(--charcoal); color: rgba(255,255,255,.7); padding: 3rem 0 1.5rem;
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  align-items: center; justify-content: space-between;
  margin-bottom: 2rem;
}
.footer-brand {
  display: flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: 1rem; color: var(--white);
}
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.6); font-size: .875rem; }
.footer-links a:hover { color: var(--white); text-decoration: none; }
.footer-tagline { font-style: italic; color: var(--green-light); font-size: .875rem; }
.footer-copy { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; font-size: .8rem; text-align: center; }
.footer-copy a { color: rgba(255,255,255,.5); }

/* ----- Responsive ----- */
@media (max-width: 900px) {
  .solution-layout { grid-template-columns: 1fr; }
  .proof-story { grid-template-columns: 1fr; }
  .stats-row { flex-direction: row; }
  .economy-layout { grid-template-columns: 1fr; }
  .action-grid { grid-template-columns: 1fr; }
  .about-layout { grid-template-columns: 1fr; }
  .hero-stat-row { gap: 1rem; }
  .hero-stat.divider { display: none; }
}
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: fixed; top: 64px; left: 0; right: 0; background: var(--green-dark); padding: 1rem; gap: .25rem; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
  .nav-links.open { display: flex; }
  .nav-links li a { padding: .7rem 1rem; display: block; }
  .nav-toggle { display: block; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  .hero-stat-row { flex-direction: column; padding: 1.25rem; }
  .stats-row { flex-direction: column; }
}
@media (max-width: 520px) {
  .job-label { width: 110px; font-size: .72rem; }
  .hero-actions { flex-direction: column; align-items: center; }
}
