/* CalWastewater.com — Institutional Style */
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:wght@400;600;700&family=Source+Sans+3:wght@400;500;600&display=swap');

:root {
  --navy: #1a2d4a;
  --blue: #2c5282;
  --lightblue: #4a90c4;
  --accent: #2b7a3d;
  --gray: #f5f7fa;
  --border: #d0dbe8;
  --txt: #2d3748;
  --txt2: #4a5568;
  --txt3: #718096;
  --white: #ffffff;
}

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

body {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--txt);
  background: var(--white);
  font-size: 16px;
  line-height: 1.7;
}

/* ── Header ── */
header {
  background: var(--navy);
  border-bottom: 4px solid var(--lightblue);
}
.header-top {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--lightblue);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.logo-text {
  font-family: 'Source Serif 4', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}
.logo-sub {
  font-size: 11px;
  color: #a0b4cc;
  font-weight: 400;
  display: block;
  letter-spacing: .5px;
  text-transform: uppercase;
}
nav {
  display: flex;
  gap: 4px;
}
nav a {
  color: #c8d8e8;
  text-decoration: none;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 4px;
  transition: background .2s, color .2s;
}
nav a:hover { background: rgba(255,255,255,.1); color: var(--white); }
nav a.active { background: var(--lightblue); color: var(--white); }

/* ── CPUC Banner ── */
.cpuc-banner {
  background: var(--blue);
  padding: 8px 24px;
  text-align: center;
  font-size: 13px;
  color: #c8d8e8;
}
.cpuc-banner strong { color: var(--white); }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  padding: 64px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1581092580497-e0d23cbdf1dc?w=1400&q=60') center/cover;
  opacity: .12;
}
.hero-inner {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
}
.hero-tag {
  display: inline-block;
  background: rgba(74,144,196,.3);
  border: 1px solid rgba(74,144,196,.5);
  color: #c8e4f8;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.hero h1 {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(26px, 4vw, 42px);
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 18px;
}
.hero p {
  font-size: 17px;
  color: #b8cfe0;
  max-width: 620px;
  margin: 0 auto 28px;
}
.hero-cta {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  padding: 13px 32px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  transition: opacity .2s;
}
.hero-cta:hover { opacity: .88; }

/* ── Main layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 56px 0; }
.section-alt { background: var(--gray); }

.section-label {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--lightblue);
  font-weight: 600;
  margin-bottom: 10px;
}
.section-title {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(22px, 3vw, 32px);
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 16px;
}
.section-intro {
  font-size: 17px;
  color: var(--txt2);
  max-width: 680px;
  margin-bottom: 36px;
}

/* ── Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  border-top: 4px solid var(--lightblue);
}
.card-icon { font-size: 28px; margin-bottom: 14px; }
.card h3 {
  font-family: 'Source Serif 4', serif;
  font-size: 19px;
  color: var(--navy);
  margin-bottom: 10px;
}
.card p { font-size: 15px; color: var(--txt2); line-height: 1.6; }
.card a {
  display: inline-block;
  margin-top: 14px;
  color: var(--lightblue);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.card a:hover { text-decoration: underline; }

/* ── Two column ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.two-col img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  height: 320px;
}

/* ── Stats bar ── */
.stats-bar {
  background: var(--navy);
  padding: 36px 24px;
}
.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  text-align: center;
}
.stat-num {
  font-family: 'Source Serif 4', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--lightblue);
}
.stat-label { font-size: 13px; color: #a0b4cc; margin-top: 4px; }

/* ── CTA box ── */
.cta-box {
  background: var(--blue);
  border-radius: 12px;
  padding: 40px 36px;
  text-align: center;
  color: var(--white);
}
.cta-box h3 {
  font-family: 'Source Serif 4', serif;
  font-size: 24px;
  margin-bottom: 12px;
}
.cta-box p { color: #b8cfe0; margin-bottom: 24px; }
.btn-white {
  display: inline-block;
  background: var(--white);
  color: var(--blue);
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  transition: opacity .2s;
}
.btn-white:hover { opacity: .9; }

/* ── Disclosure ── */
.disclosure {
  background: #f0f4f8;
  border-left: 4px solid var(--lightblue);
  padding: 16px 20px;
  font-size: 13px;
  color: var(--txt3);
  border-radius: 0 6px 6px 0;
  margin: 32px 0;
  line-height: 1.6;
}

/* ── Footer ── */
footer {
  background: var(--navy);
  color: #a0b4cc;
  padding: 40px 24px 24px;
  font-size: 14px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-brand p { color: #7a8fa0; font-size: 13px; margin-top: 10px; line-height: 1.6; }
footer h4 { color: var(--white); font-size: 14px; margin-bottom: 14px; font-weight: 600; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 8px; }
footer ul a { color: #7a8fa0; text-decoration: none; }
footer ul a:hover { color: var(--lightblue); }
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #5a6e80;
  flex-wrap: wrap;
  gap: 8px;
}
.cpuc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(74,144,196,.15);
  border: 1px solid rgba(74,144,196,.3);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  color: #a0b4cc;
}

/* ── Page hero (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  padding: 48px 24px;
}
.page-hero-inner { max-width: 1100px; margin: 0 auto; }
.breadcrumb { font-size: 13px; color: #7a9ab8; margin-bottom: 12px; }
.breadcrumb a { color: #7a9ab8; text-decoration: none; }
.breadcrumb a:hover { color: var(--lightblue); }
.page-hero h1 {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(24px, 3.5vw, 38px);
  color: var(--white);
  line-height: 1.25;
  max-width: 700px;
}
.page-hero p { color: #b8cfe0; margin-top: 12px; max-width: 600px; font-size: 16px; }

/* ── Content page ── */
.content-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  padding: 56px 0;
}
.prose h2 {
  font-family: 'Source Serif 4', serif;
  font-size: 24px;
  color: var(--navy);
  margin: 32px 0 12px;
}
.prose h3 {
  font-size: 18px;
  color: var(--navy);
  margin: 24px 0 10px;
  font-weight: 600;
}
.prose p { color: var(--txt2); margin-bottom: 16px; line-height: 1.75; }
.prose ul { padding-left: 20px; margin-bottom: 16px; }
.prose ul li { color: var(--txt2); margin-bottom: 8px; line-height: 1.6; }
.prose img { width: 100%; border-radius: 8px; margin: 20px 0; object-fit: cover; height: 260px; }

/* Sidebar */
.sidebar-box {
  background: var(--gray);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 20px;
}
.sidebar-box h4 {
  font-family: 'Source Serif 4', serif;
  font-size: 17px;
  color: var(--navy);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--lightblue);
}
.sidebar-box ul { list-style: none; }
.sidebar-box ul li { margin-bottom: 10px; }
.sidebar-box ul a {
  color: var(--lightblue);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.sidebar-box ul a:hover { text-decoration: underline; }
.sidebar-cta {
  background: var(--navy);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  color: var(--white);
}
.sidebar-cta h4 { font-family: 'Source Serif 4', serif; font-size: 17px; margin-bottom: 10px; }
.sidebar-cta p { font-size: 13px; color: #a0b4cc; margin-bottom: 16px; }
.sidebar-cta a {
  display: block;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  transition: opacity .2s;
}
.sidebar-cta a:hover { opacity: .88; }

@media (max-width: 768px) {
  .two-col, .content-wrap, .footer-inner { grid-template-columns: 1fr; }
  nav { display: none; }
  .footer-inner { gap: 24px; }
}
