@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

/* Design system updated 2026-07-06 — see
   ~/CarGlow_Enterprise_Knowledge_Base/docs/ui/UI_MEMORY.md for the full
   token catalog and rationale (user-confirmed brand direction, resolving
   05_DECISIONS.md ADR-004). Variable NAMES are kept from the original
   system so every existing page picks up the new palette automatically;
   only the values change. New pages should prefer the new-named tokens
   (--teal, --blue, --deep-blue, etc.) directly. */
:root {
  --brand-green: #00C853;
  --deep-green: #111827;   /* headings — plain dark ink in the new system, not a green tint */
  --ink: #111827;
  --mist: #F5F7FA;
  --droplet: #0097A7;      /* teal accent/links */
  --marigold: #D97706;     /* warning/amber accent (method-badge etc.) */
  --danger: #DC2626;
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-mono: 'Outfit', ui-monospace, monospace;

  /* New named tokens */
  --teal: #0097A7;
  --blue: #1E88E5;
  --deep-blue: #0D47A1;
  --surface: #FFFFFF;
  --border: #E5E9F0;
  --muted: #6B7280;
  --faint: #9CA3AF;
  --sidebar-bg: #0B1220;
  --sidebar-muted: #9AA6B8;
  --accent-on-dark: #69F0AE;
  --success-bg: #E8FBF0;
  --success-text: #00873B;
  --warning-bg: #FDF3E7;
  --warning-text: #D97706;
  --info-bg: #E9F2FD;
  --info-text: #1E88E5;
  --gradient-dark-green: linear-gradient(135deg, #00391C 0%, #00602F 60%, #00873B 100%);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font-body);
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

header.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--deep-green);
  text-decoration: none;
}

.brand img { width: 36px; height: 36px; border-radius: 8px; }

.lang-toggle {
  display: flex;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--deep-green);
  border-radius: 999px;
  padding: 4px;
}

.lang-toggle button {
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--deep-green);
}

.lang-toggle button.active {
  background: var(--brand-green);
  color: var(--deep-green);
}

.hero {
  padding: 48px 0 32px;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-display);
  color: var(--deep-green);
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.15;
  margin: 0 0 16px;
}

.hero p.sub {
  font-size: 18px;
  color: var(--ink);
  max-width: 560px;
  margin: 0 auto 28px;
}

.cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 16px;
}

.btn-primary { background: var(--brand-green); color: var(--deep-green); }
.btn-secondary { background: #fff; color: var(--deep-green); border: 2px solid var(--deep-green); }

.operator-portals {
  margin-top: 48px;
  padding: 24px;
  background: #fff;
  border-radius: 16px;
}

.operator-portals h2 {
  font-family: var(--font-display);
  color: var(--deep-green);
  font-size: 18px;
  margin: 0 0 12px;
}

.portal-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.portal-links a {
  color: var(--droplet);
  font-weight: 600;
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid var(--droplet);
  border-radius: 8px;
}

.pull-quote {
  margin: 48px 0;
  padding: 28px 32px;
  background: var(--deep-green);
  color: var(--brand-green);
  border-radius: 16px;
  font-family: var(--font-display);
  font-size: clamp(18px, 3vw, 24px);
  line-height: 1.4;
}

.pull-quote cite {
  display: block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #fff;
  font-style: normal;
  opacity: 0.8;
}

.counters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.counter {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}

.counter .value {
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--deep-green);
}

.counter .label {
  font-size: 14px;
  margin-top: 6px;
  color: var(--ink);
}

.method-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--marigold);
  color: var(--deep-green);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.water-copy {
  font-size: 14px;
  color: var(--ink);
  opacity: 0.75;
  max-width: 640px;
  margin: 0 0 32px;
}

.ward-bars { margin: 24px 0; }

.ward-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.ward-bar-row .ward-name {
  width: 90px;
  font-family: var(--font-mono);
  font-size: 13px;
  flex-shrink: 0;
}

.ward-bar-track {
  flex: 1;
  background: #fff;
  border-radius: 8px;
  height: 22px;
  overflow: hidden;
}

.ward-bar-fill {
  height: 100%;
  background: var(--brand-green);
}

.ward-bar-row .ward-value {
  width: 90px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 13px;
  flex-shrink: 0;
}

.state-msg {
  text-align: center;
  padding: 32px;
  color: var(--ink);
  opacity: 0.7;
}

footer.site-footer {
  text-align: center;
  padding: 32px 0;
  font-size: 13px;
  opacity: 0.6;
}

/* ---------- shared content-page components (added for the 9 new website
   pages — Government Proposal integration, 2026-07-06). Originally
   site/index.html kept its own inline styles as an "approved, integrated
   as-is" asset; the homepage was later redesigned onto this same shared
   system (see .home-* classes further down) per explicit user instruction —
   these classes are for every site/*/index.html page. ---------- */

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-left: auto;
}
.site-nav a {
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  padding: 8px 10px;
  border-radius: 8px;
}
.site-nav a:hover { background: #E2EDE7; }
header.site-header { flex-wrap: wrap; gap: 12px; }

.page-hero { padding: 40px 0 8px; }
.page-hero .eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--droplet);
  margin-bottom: 10px;
}
.page-hero h1 {
  font-family: var(--font-display);
  color: var(--deep-green);
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.12;
  margin: 0 0 16px;
  max-width: 18ch;
}
.page-hero p.lede {
  font-size: 17px;
  color: var(--ink);
  opacity: 0.85;
  max-width: 62ch;
  margin: 0 0 8px;
}

.section { padding: 40px 0; }
.section h2 {
  font-family: var(--font-display);
  color: var(--deep-green);
  font-size: clamp(22px, 3.4vw, 30px);
  margin: 0 0 18px;
}
.section p { font-size: 15.5px; line-height: 1.6; max-width: 68ch; margin: 0 0 14px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.card {
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 1px 3px rgba(10, 58, 36, 0.08);
}
.card h3 {
  font-family: var(--font-display);
  color: var(--deep-green);
  font-size: 17px;
  margin: 0 0 8px;
}
.card p { font-size: 14px; margin: 0; opacity: 0.85; }

.timeline { border-left: 3px solid var(--brand-green); margin: 20px 0 20px 8px; padding-left: 22px; }
.timeline-item { position: relative; padding-bottom: 24px; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand-green);
  border: 2px solid var(--deep-green);
}
.timeline-item h3 { font-family: var(--font-display); color: var(--deep-green); font-size: 16px; margin: 0 0 4px; }
.timeline-item p { font-size: 14px; margin: 0; opacity: 0.85; }

.stat-row { display: flex; flex-wrap: wrap; gap: 16px; margin: 20px 0; }
.stat-pill {
  background: var(--deep-green);
  color: #fff;
  border-radius: 14px;
  padding: 16px 20px;
  min-width: 140px;
}
.stat-pill .num { font-family: var(--font-mono); font-size: 26px; font-weight: 700; color: var(--brand-green); }
.stat-pill .lab { font-size: 12px; opacity: 0.85; margin-top: 4px; }

.form-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  max-width: 520px;
  box-shadow: 0 1px 3px rgba(10, 58, 36, 0.08);
}
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--deep-green); }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 12px;
  border: 1.5px solid #D9E4DE;
  border-radius: 10px;
  background: var(--mist);
}
.form-note { font-size: 12.5px; opacity: 0.7; margin-top: 4px; }
.form-status { font-size: 13.5px; font-weight: 600; margin-top: 12px; min-height: 18px; }
.form-status.ok { color: var(--deep-green); }
.form-status.err { color: var(--danger); }

.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.disclosure-box {
  background: #FBF6EA;
  border: 1px solid #F0E4C8;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 13px;
  margin: 16px 0;
  max-width: 68ch;
}

/* ============================================================
   Homepage-specific components (Design Discovery, 2026-07-06)
   — see docs/ui/UI_MEMORY.md for the source design system.
   Namespaced .home-* to avoid touching the generic .hero/.section
   classes other site pages already rely on.
   ============================================================ */

.announcement-bar {
  background: var(--deep-blue);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 500;
  text-align: center;
  padding: 9px 24px;
}
.announcement-bar strong { color: var(--accent-on-dark); font-weight: 600; }

.nav-glass {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 5vw;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-glass .brand { font-size: 21px; }
.nav-glass nav { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 500; }
.nav-glass nav a { color: #374151; }
.nav-glass nav a:hover, .nav-glass nav a.active { color: var(--brand-green); }
.nav-glass .actions { display: flex; align-items: center; gap: 12px; }

.home-hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
  max-width: 1232px; margin: 0 auto; padding: 56px 5vw 64px;
}
@media (max-width: 860px) { .home-hero { grid-template-columns: 1fr; } }
.home-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--success-bg); color: var(--success-text);
  font-size: 13.5px; font-weight: 600; padding: 7px 14px; border-radius: 999px; margin-bottom: 20px;
}
.home-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-green); display: inline-block; }
.home-hero h1 { font-size: clamp(34px, 5.5vw, 56px); line-height: 1.08; font-weight: 800; letter-spacing: -1.5px; margin: 0 0 20px; }
.home-hero h1 .accent { color: var(--brand-green); }
.home-hero p.lede { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 480px; margin: 0 0 30px; }
.home-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.home-stat-row { display: flex; gap: 32px; flex-wrap: wrap; }
.home-stat { min-width: 100px; }
.home-stat .num { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; }
.home-stat .lab { font-size: 13px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.home-stat-divider { width: 1px; background: var(--border); align-self: stretch; }

.home-hero-visual {
  position: relative; height: 400px; border-radius: 24px; overflow: hidden;
  background: var(--gradient-dark-green);
  display: flex; align-items: center; justify-content: center;
}
.home-hero-visual img { height: 140px; width: auto; filter: drop-shadow(0 18px 36px rgba(0,0,0,0.3)); }
.home-hero-visual .caption {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  color: #fff; font-size: 14px; font-weight: 700; text-align: center; white-space: nowrap;
}
.home-hero-chip {
  position: absolute; background: rgba(255,255,255,0.95); border-radius: 14px;
  padding: 12px 16px; box-shadow: 0 10px 26px rgba(0,0,0,0.18);
}

.home-section { padding: 64px 5vw; }
.home-section-inner { max-width: 1160px; margin: 0 auto; }
.home-section-head { text-align: center; margin-bottom: 44px; }
.home-eyebrow-label { font-size: 13px; font-weight: 700; color: var(--success-text); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }
.home-section-head h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; letter-spacing: -0.8px; margin: 0; }

.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 760px) { .pricing-grid { grid-template-columns: 1fr; } }
.pricing-card {
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 22px;
  padding: 32px 28px; display: flex; flex-direction: column;
}
.pricing-card.featured { background: var(--deep-blue); color: #fff; border: none; box-shadow: 0 16px 40px rgba(13,71,161,0.25); position: relative; }
.pricing-card.featured .muted-on-dark { color: #B9CBE8; }
.pricing-card h3 { font-size: 19px; font-weight: 700; margin: 0 0 6px; }
.pricing-card .price { font-size: 34px; font-weight: 800; letter-spacing: -0.8px; margin: 10px 0 18px; }
.pricing-card .price small { font-size: 14px; font-weight: 500; opacity: 0.75; }
.pricing-card ul { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.pricing-card li { display: flex; align-items: baseline; gap: 8px; }
.pricing-card li::before { content: "✓"; color: var(--brand-green); font-weight: 800; }
.pricing-card.featured li::before { color: var(--accent-on-dark); }
.pricing-card table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pricing-card table td { padding: 7px 0; }
.pricing-card table td.amt { text-align: right; font-weight: 700; }

.impact-strip {
  background: var(--gradient-dark-green); color: #fff; padding: 64px 5vw;
}
.impact-strip-inner { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .impact-strip-inner { grid-template-columns: 1fr; } }
.impact-strip h2 { font-size: clamp(26px, 4vw, 34px); font-weight: 800; letter-spacing: -0.8px; margin: 0 0 16px; line-height: 1.18; }
.impact-strip p { font-size: 16px; line-height: 1.6; color: #BFE8D2; max-width: 460px; margin: 0 0 24px; }
.impact-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.impact-stat-tile { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: 18px; padding: 22px; }
.impact-stat-tile .num { font-size: 30px; font-weight: 800; color: var(--accent-on-dark); letter-spacing: -0.5px; }
.impact-stat-tile .lab { font-size: 13.5px; color: #BFE8D2; font-weight: 500; margin-top: 4px; }

.partner-cta {
  max-width: 1160px; margin: 0 auto; background: #F5F9F7; border-radius: 26px; padding: 48px 52px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
}
@media (max-width: 860px) { .partner-cta { grid-template-columns: 1fr; padding: 32px; } }
.partner-cta h2 { font-size: clamp(22px, 3.4vw, 30px); font-weight: 800; letter-spacing: -0.6px; margin: 0 0 14px; }
.partner-cta p { font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 500px; margin: 0 0 22px; }
.role-card-list { display: flex; flex-direction: column; gap: 12px; }
.role-card {
  background: var(--surface); border-radius: 16px; padding: 16px 20px; display: flex; align-items: center; gap: 14px;
  box-shadow: 0 1px 3px rgba(13,71,161,0.06); text-decoration: none; color: inherit;
}
.role-card .avatar { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; }
.role-card .title { font-size: 15px; font-weight: 700; color: var(--ink); }
.role-card .sub { font-size: 12.5px; color: var(--muted); }

.footer-dark {
  background: var(--sidebar-bg); color: var(--sidebar-muted); padding: 48px 5vw 32px;
}
.footer-dark-inner { max-width: 1160px; margin: 0 auto; }
.footer-dark-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.08); }
@media (max-width: 760px) { .footer-dark-grid { grid-template-columns: 1fr 1fr; } }
.footer-dark-grid a { display: block; color: var(--sidebar-muted); font-size: 14px; padding: 4px 0; text-decoration: none; }
.footer-dark-grid a:hover { color: var(--accent-on-dark); }
.footer-dark-col-title { font-size: 12.5px; font-weight: 700; color: #fff; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 10px; }
.footer-dark-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; font-size: 13px; flex-wrap: wrap; gap: 12px; }
.footer-dark-bottom a { color: var(--sidebar-muted); text-decoration: none; margin-left: 20px; }
.footer-dark-bottom a:hover { color: var(--accent-on-dark); }

/* ============================================================
   ESG / Water Savings dashboard components (Design Discovery,
   2026-07-06) — shared by site/impact and any other ESG-style page.
   ============================================================ */

.esg-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; border-bottom: 1px solid var(--border); margin-bottom: 24px;
}
.esg-topbar .title-block { display: flex; align-items: center; gap: 12px; }
.esg-topbar .title-block img { height: 28px; width: auto; }
.esg-topbar .title-block .name { font-size: 17px; font-weight: 800; letter-spacing: -0.3px; }
.esg-topbar .title-block .sub { font-size: 12.5px; color: var(--muted); }

.gradient-band {
  background: var(--gradient-dark-green); border-radius: 24px; padding: 30px 32px; color: #fff;
  margin-bottom: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; align-items: center;
}
.gradient-band .cell { border-left: 1px solid rgba(255,255,255,0.15); padding-left: 24px; }
.gradient-band .cell:first-child { border-left: none; padding-left: 0; }
.gradient-band .cell .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent-on-dark); margin-bottom: 6px; }
.gradient-band .cell .num { font-size: clamp(26px, 3.6vw, 42px); font-weight: 800; letter-spacing: -1px; line-height: 1; }
.gradient-band .cell .lab { font-size: 13px; color: #BFE8D2; font-weight: 500; margin-top: 6px; }

.esg-card { background: var(--surface); border-radius: 18px; padding: 22px 24px; box-shadow: 0 1px 3px rgba(13,71,161,0.06); margin-bottom: 18px; }
.esg-card h2 { font-size: 16px; font-weight: 700; margin: 0 0 16px; }
.leaderboard-row { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.leaderboard-rank { width: 28px; height: 28px; border-radius: 50%; background: var(--border); color: #374151; display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 800; flex-shrink: 0; }
.leaderboard-rank.top { background: var(--brand-green); color: #fff; }
.leaderboard-body { flex: 1; }
.leaderboard-head { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
.leaderboard-head .val { color: var(--success-text); }
.leaderboard-track { background: var(--border); border-radius: 999px; height: 8px; overflow: hidden; }
.leaderboard-fill { height: 100%; background: var(--brand-green); border-radius: 999px; }

.gov-view-tag { background: var(--info-bg); color: var(--blue); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.gov-view-note { background: #F5F9F7; border-radius: 12px; padding: 14px 16px; font-size: 13px; line-height: 1.5; color: var(--success-text); font-weight: 500; margin-top: 4px; }
