/* =========================================================
   SolarRightsAct.com
   Serious public-rights solar law resource
   File: site.css
   ========================================================= */

:root {
  --ink: #152033;
  --ink-soft: #445269;
  --ink-muted: #6f7b8e;

  --paper: #ffffff;
  --paper-warm: #fbf8f1;
  --paper-cool: #f4f7fb;

  --gold: #f4b400;
  --gold-deep: #b87600;
  --blue: #163c73;
  --blue-deep: #0b2447;
  --green: #1f7a4d;
  --red: #a83232;

  --border: #d9e0ea;
  --shadow: 0 18px 50px rgba(17, 35, 63, 0.12);
  --shadow-soft: 0 10px 28px rgba(17, 35, 63, 0.08);

  --max: 1180px;
  --radius: 18px;
  --radius-sm: 10px;

  --font-main: Georgia, "Times New Roman", serif;
  --font-ui: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------------- Base ---------------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper-warm);
  color: var(--ink);
  font-family: var(--font-main);
  font-size: 18px;
  line-height: 1.65;
}

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

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover {
  color: var(--gold-deep);
}

p {
  margin: 0 0 1.15rem;
}

strong,
b {
  color: #000;
  font-weight: 800;
}

small {
  color: var(--ink-muted);
}

ul,
ol {
  padding-left: 1.35rem;
}

li {
  margin-bottom: 0.45rem;
}

blockquote {
  margin: 2rem 0;
  padding: 1.5rem 1.8rem;
  border-left: 6px solid var(--gold);
  background: #fff;
  box-shadow: var(--shadow-soft);
  font-size: 1.25rem;
  line-height: 1.55;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* ---------------- Layout ---------------- */

.wrapper,
.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 72px 0;
}

.section-tight {
  padding: 44px 0;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 34px;
  align-items: start;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.grid {
  display: grid;
  gap: 22px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.narrow {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------------- Top Bar / Navigation ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(217, 224, 234, 0.9);
  backdrop-filter: blur(14px);
}

.navbar {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #fff7c8 0 16%, transparent 17%),
    linear-gradient(135deg, var(--gold), #ffdd65);
  box-shadow: 0 6px 20px rgba(244, 180, 0, 0.35);
  border: 2px solid #fff;
  flex: 0 0 auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-title {
  font-size: 1.05rem;
}

.brand-subtitle {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #fff;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: 0.2s ease;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-label span::before {
  top: -7px;
}

.nav-toggle-label span::after {
  top: 7px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 800;
}

.nav-menu a {
  color: var(--ink);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 999px;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--blue);
  background: var(--paper-cool);
}

.nav-menu .nav-cta {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 8px 20px rgba(22, 60, 115, 0.18);
}

.nav-menu .nav-cta:hover {
  color: #fff;
  background: var(--blue-deep);
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(11, 36, 71, 0.94), rgba(22, 60, 115, 0.86)),
    radial-gradient(circle at 78% 20%, rgba(244, 180, 0, 0.32), transparent 33%);
  color: #fff;
  padding: 94px 0 76px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -42% -10%;
  height: 55%;
  background: radial-gradient(ellipse at center, rgba(244, 180, 0, 0.22), transparent 58%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff4c5;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kicker.dark {
  background: #fff7da;
  color: var(--gold-deep);
  border-color: #ffe39a;
}

.hero h1,
.page-hero h1 {
  max-width: 980px;
  margin: 0 0 20px;
  font-family: var(--font-main);
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.hero p {
  max-width: 790px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.1rem, 2vw, 1.38rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 46px;
}

.hero-stat {
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-stat strong {
  display: block;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 1.75rem;
  line-height: 1;
}

.hero-stat span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  line-height: 1.35;
}

/* ---------------- Page Hero ---------------- */

.page-hero {
  padding: 74px 0 54px;
  background:
    linear-gradient(135deg, rgba(251, 248, 241, 0.95), rgba(244, 247, 251, 0.95)),
    radial-gradient(circle at 85% 20%, rgba(244, 180, 0, 0.22), transparent 32%);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  color: var(--ink);
}

.page-hero p {
  max-width: 820px;
  font-size: 1.22rem;
  color: var(--ink-soft);
}

/* ---------------- Typography ---------------- */

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-family: var(--font-main);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

h3 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

h4 {
  margin: 0 0 10px;
  font-size: 1.16rem;
}

.section-lead {
  max-width: 820px;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: 1.18rem;
}

.eyebrow {
  color: var(--gold-deep);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------------- Buttons ---------------- */

.button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.button-primary,
.btn-primary {
  background: var(--gold);
  color: #1a1a1a;
  box-shadow: 0 12px 30px rgba(244, 180, 0, 0.28);
}

.button-primary:hover,
.btn-primary:hover {
  background: #ffd35d;
  color: #000;
}

.button-secondary,
.btn-secondary {
  background: #fff;
  color: var(--blue);
  border-color: rgba(22, 60, 115, 0.16);
}

.button-secondary:hover,
.btn-secondary:hover {
  background: var(--paper-cool);
  color: var(--blue-deep);
}

.button-outline,
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.button-outline:hover,
.btn-outline:hover {
  background: #fff;
  color: var(--blue);
}

/* ---------------- Cards ---------------- */

.card,
.law-card,
.info-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.card h3,
.law-card h3,
.info-card h3 {
  margin-top: 0;
}

.card p:last-child,
.law-card p:last-child,
.info-card p:last-child {
  margin-bottom: 0;
}

.law-card {
  position: relative;
  overflow: hidden;
}

.law-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--gold);
}

.law-card .state {
  font-family: var(--font-ui);
  font-weight: 900;
  color: var(--blue);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.law-card .statute {
  display: inline-block;
  margin: 8px 0 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--paper-cool);
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 800;
}

/* ---------------- Callouts ---------------- */

.callout {
  padding: 30px;
  border-radius: var(--radius);
  background: #fff7dc;
  border: 1px solid #ffe39a;
  box-shadow: var(--shadow-soft);
}

.callout h2,
.callout h3 {
  margin-top: 0;
}

.callout-blue {
  background: #edf4ff;
  border-color: #cfe1fb;
}

.callout-green {
  background: #edf8f2;
  border-color: #c8ead7;
}

.warning {
  padding: 24px;
  border-radius: var(--radius-sm);
  background: #fff0f0;
  border: 1px solid #f0c2c2;
  color: #5f1c1c;
}

.disclaimer-box {
  padding: 24px;
  border-radius: var(--radius);
  background: #f7f7f7;
  border: 1px solid var(--border);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---------------- Rights Checklist ---------------- */

.rights-list {
  display: grid;
  gap: 14px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.rights-list li {
  position: relative;
  margin: 0;
  padding: 18px 20px 18px 52px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(17, 35, 63, 0.05);
}

.rights-list li::before {
  content: "✓";
  position: absolute;
  left: 18px;
  top: 17px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------------- Tables ---------------- */

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  font-family: var(--font-ui);
  font-size: 0.94rem;
}

th,
td {
  padding: 15px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--blue-deep);
  color: #fff;
  font-weight: 900;
}

tr:nth-child(even) td {
  background: #fafcff;
}

tr:last-child td {
  border-bottom: 0;
}

td strong {
  font-family: var(--font-ui);
}

/* ---------------- State Index ---------------- */

.state-index {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.state-index a {
  display: block;
  padding: 13px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 800;
  text-decoration: none;
}

.state-index a:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* ---------------- Article Pages ---------------- */

.article {
  background: #fff;
  border-radius: var(--radius);
  padding: clamp(26px, 5vw, 54px);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.article h2 {
  margin-top: 2.2rem;
}

.article h2:first-child {
  margin-top: 0;
}

.article h3 {
  margin-top: 1.8rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--paper-cool);
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 800;
}

/* ---------------- Evidence / Defense Tools ---------------- */

.defense-steps {
  counter-reset: step;
  display: grid;
  gap: 18px;
  padding: 0;
  list-style: none;
}

.defense-steps li {
  counter-increment: step;
  position: relative;
  padding: 24px 24px 24px 78px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.defense-steps li::before {
  content: counter(step);
  position: absolute;
  left: 24px;
  top: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.document-box {
  padding: 22px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px dashed #9fb0c7;
  font-family: var(--font-ui);
  font-size: 0.95rem;
}

/* ---------------- Footer ---------------- */

.site-footer {
  background: var(--blue-deep);
  color: rgba(255, 255, 255, 0.82);
  padding: 54px 0 34px;
  font-family: var(--font-ui);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
}

.site-footer h3,
.site-footer h4 {
  color: #fff;
  font-family: var(--font-ui);
  letter-spacing: -0.02em;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.84rem;
}

/* ---------------- Forms ---------------- */

form {
  display: grid;
  gap: 16px;
}

label {
  font-family: var(--font-ui);
  font-weight: 900;
  color: var(--ink);
}

input,
textarea,
select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-family: var(--font-ui);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(244, 180, 0, 0.28);
  border-color: var(--gold-deep);
}

/* ---------------- Utility Classes ---------------- */

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.muted {
  color: var(--ink-muted);
}

.blue {
  color: var(--blue);
}

.gold {
  color: var(--gold-deep);
}

.green {
  color: var(--green);
}

.red {
  color: var(--red);
}

.white-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 30px;
}

.full-bleed-blue {
  background: var(--blue-deep);
  color: #fff;
}

.full-bleed-blue h2,
.full-bleed-blue h3 {
  color: #fff;
}

.full-bleed-blue p {
  color: rgba(255, 255, 255, 0.82);
}

/* ---------------- Critical readability fix ---------------- */
/* Prevent white text on white cards inside dark blue sections */

.full-bleed-blue .info-card,
.full-bleed-blue .card,
.full-bleed-blue .law-card,
.full-bleed-blue .white-panel,
.full-bleed-blue .callout {
  background: #ffffff;
  color: var(--ink);
}

.full-bleed-blue .info-card h2,
.full-bleed-blue .info-card h3,
.full-bleed-blue .info-card h4,
.full-bleed-blue .card h2,
.full-bleed-blue .card h3,
.full-bleed-blue .card h4,
.full-bleed-blue .law-card h2,
.full-bleed-blue .law-card h3,
.full-bleed-blue .law-card h4,
.full-bleed-blue .white-panel h2,
.full-bleed-blue .white-panel h3,
.full-bleed-blue .white-panel h4,
.full-bleed-blue .callout h2,
.full-bleed-blue .callout h3,
.full-bleed-blue .callout h4 {
  color: var(--ink);
}

.full-bleed-blue .info-card p,
.full-bleed-blue .card p,
.full-bleed-blue .law-card p,
.full-bleed-blue .white-panel p,
.full-bleed-blue .callout p {
  color: var(--ink-soft);
}

.full-bleed-blue .info-card a,
.full-bleed-blue .card a,
.full-bleed-blue .law-card a,
.full-bleed-blue .white-panel a,
.full-bleed-blue .callout a {
  color: var(--blue);
}

.full-bleed-blue .info-card a:hover,
.full-bleed-blue .card a:hover,
.full-bleed-blue .law-card a:hover,
.full-bleed-blue .white-panel a:hover,
.full-bleed-blue .callout a:hover {
  color: var(--gold-deep);
}

.full-bleed-blue .callout.callout-blue {
  background: #edf4ff;
  border-color: #cfe1fb;
}

.full-bleed-blue .callout.callout-green {
  background: #edf8f2;
  border-color: #c8ead7;
}

/* ---------------- Mobile ---------------- */

@media (max-width: 940px) {
  body {
    font-size: 17px;
  }

  .navbar {
    min-height: 68px;
  }

  .nav-toggle-label {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav-menu a {
    border-radius: 12px;
    padding: 13px 14px;
  }

  .nav-toggle:checked ~ .nav-menu {
    display: flex;
  }

  .nav-toggle:checked + .nav-toggle-label span {
    background: transparent;
  }

  .nav-toggle:checked + .nav-toggle-label span::before {
    top: 0;
    transform: rotate(45deg);
  }

  .nav-toggle:checked + .nav-toggle-label span::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .two-col,
  .three-col,
  .grid-2,
  .grid-3,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 70px 0 56px;
  }

  .hero-stat-row {
    grid-template-columns: 1fr;
  }

  .state-index {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 52px 0;
  }

  .article {
    border-radius: 14px;
  }
}

@media (max-width: 560px) {
  .wrapper,
  .container {
    width: min(100% - 26px, var(--max));
  }

  .brand-title {
    font-size: 0.95rem;
  }

  .brand-subtitle {
    font-size: 0.65rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 2.65rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button,
  .btn {
    width: 100%;
  }

  .state-index {
    grid-template-columns: 1fr;
  }

  .card,
  .law-card,
  .info-card,
  .white-panel,
  .callout {
    padding: 22px;
  }

  .defense-steps li {
    padding: 22px 20px 22px 68px;
  }

  .defense-steps li::before {
    left: 20px;
  }

  table {
    font-size: 0.86rem;
  }

  th,
  td {
    padding: 12px;
  }
}
