:root {
  --ink: #08264a;
  --muted: #5b6878;
  --line: #d8e3ec;
  --paper: #f7f8fa;
  --panel: #ffffff;
  --brand: #12b7c8;
  --brand-dark: #08264a;
  --accent: #c8a45d;
  --danger: #a33b3b;
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.12);
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  margin: 0;
}

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

a {
  color: inherit;
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  display: flex;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 72px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand,
.site-header nav,
.hero-actions,
footer {
  align-items: center;
  display: flex;
  gap: 16px;
}

.brand {
  font-weight: 900;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  aspect-ratio: 1;
  background: var(--brand);
  border-radius: 8px;
  color: white;
  display: inline-flex;
  font-size: 0.78rem;
  justify-content: center;
  width: 38px;
}

.brand-logo {
  height: 58px;
  max-width: min(245px, 48vw);
  object-fit: contain;
}

.brand-logo-inverse {
  background: white;
  border-radius: 8px;
  padding: 8px;
}

.site-header nav a {
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 800;
  text-decoration: none;
}

.hero {
  background:
    linear-gradient(90deg, rgba(8, 38, 74, 0.96), rgba(8, 38, 74, 0.6)),
    url("https://images.unsplash.com/photo-1494526585095-c41746248156?auto=format&fit=crop&w=1800&q=84") center / cover;
  color: white;
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
  min-height: 650px;
  padding: clamp(64px, 9vw, 120px) clamp(20px, 5vw, 72px);
}

.hero-copy {
  align-self: center;
  max-width: 760px;
}

.eyebrow {
  color: var(--brand);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.hero .eyebrow,
.hero p,
.hero h1 {
  color: white;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.02;
}

h1 {
  font-size: clamp(3rem, 6vw, 6rem);
  margin-bottom: 22px;
}

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

h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

p,
li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.hero-copy p {
  max-width: 680px;
}

.button,
.service-grid button {
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 900;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  text-decoration: none;
}

.button-primary {
  background: var(--brand);
  color: white;
}

.button-ghost {
  background: white;
  border-color: var(--line);
  color: var(--ink);
}

.button-danger {
  background: white;
  border-color: rgba(163, 59, 59, 0.28);
  color: var(--danger);
}

.hero-panel {
  align-self: end;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  padding: 18px;
}

.hero-panel div,
.metric-grid article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.hero-panel span,
.metric-grid span {
  color: var(--muted);
  display: block;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.hero-panel strong,
.metric-grid strong {
  color: var(--ink);
  display: block;
  font-size: 2rem;
}

.process-band {
  background: var(--brand-dark);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-band article {
  background: rgba(255, 255, 255, 0.06);
  padding: 34px clamp(20px, 5vw, 72px);
}

.process-band strong,
.process-band p {
  color: white;
}

.rating-strip {
  align-items: center;
  background: white;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(20px, 5vw, 72px);
}

.rating-strip div {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.rating-strip strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
}

.stars {
  color: var(--accent);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.rating-strip p {
  margin: 0;
}

.rating-strip a {
  color: var(--brand);
  font-weight: 900;
  text-decoration: none;
}

.reviews-hero {
  background:
    linear-gradient(90deg, rgba(8, 38, 74, 0.96), rgba(8, 38, 74, 0.56)),
    url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=1800&q=84") center / cover;
  color: white;
  padding: clamp(72px, 10vw, 128px) clamp(20px, 5vw, 72px);
}

.reviews-hero h1,
.reviews-hero p {
  color: white;
  max-width: 840px;
}

.reviews-hero .eyebrow {
  color: var(--accent);
}

.rating-summary {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  display: inline-grid;
  gap: 6px;
  margin-top: 24px;
  padding: 20px;
}

.rating-summary strong {
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4rem;
  line-height: 1;
}

.review-wall {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 72px);
}

.review-wall article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.07);
  padding: 22px;
}

.review-wall cite {
  color: var(--ink);
  font-style: normal;
  font-weight: 900;
}

.broker-value {
  align-items: start;
  background: white;
  display: grid;
  gap: 38px;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 72px);
}

.service-paths {
  background: var(--paper);
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 72px);
}

.path-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
}

.path-grid article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.07);
  padding: 24px;
}

.path-grid span {
  color: var(--brand);
  display: block;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.path-grid ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding-left: 20px;
}

.client-protection {
  background: #eaf8fb;
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 72px);
}

.protection-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 30px;
}

.protection-grid article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.06);
  padding: 20px;
}

.protection-grid strong {
  color: var(--ink);
  display: block;
  margin-bottom: 8px;
}

.broker-value ul {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.broker-value li {
  background: #f6fbfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.broker-value strong,
.broker-value span {
  display: block;
}

.broker-value strong {
  color: var(--ink);
  margin-bottom: 8px;
}

.services,
.qualifier,
.local-pages,
.dashboard-main {
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 72px);
}

.local-pages {
  background: white;
}

.local-page-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.local-page-grid a,
.lead-action-link {
  background: #eaf8fb;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: block;
  font-weight: 900;
  padding: 14px 16px;
  text-decoration: none;
}

.page-hero {
  background:
    linear-gradient(90deg, rgba(8, 38, 74, 0.96), rgba(8, 38, 74, 0.64)),
    url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=1800&q=84") center / cover;
  color: white;
  padding: clamp(72px, 10vw, 128px) clamp(20px, 5vw, 72px);
}

.landing-hero {
  background:
    linear-gradient(90deg, rgba(8, 38, 74, 0.96), rgba(8, 38, 74, 0.56)),
    url("https://images.unsplash.com/photo-1509391366360-2e959784a276?auto=format&fit=crop&w=1800&q=84") center / cover;
  color: white;
  padding: clamp(72px, 10vw, 128px) clamp(20px, 5vw, 72px);
}

.landing-hero h1,
.landing-hero p {
  color: white;
  max-width: 860px;
}

.landing-hero .eyebrow {
  color: var(--accent);
}

.landing-proof {
  background: var(--ink);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-proof article {
  background: rgba(255, 255, 255, 0.06);
  padding: 30px clamp(20px, 5vw, 72px);
}

.landing-proof strong,
.landing-proof p {
  color: white;
}

.solar-estimator {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.07);
  display: grid;
  gap: 14px;
  margin-top: 24px;
  padding: 18px;
}

.map-preview {
  align-items: center;
  background: #dfeaf0;
  border: 1px dashed var(--line);
  border-radius: 8px;
  display: grid;
  min-height: 260px;
  overflow: hidden;
  place-items: center;
  text-align: center;
}

.map-preview img {
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  width: 100%;
}

.map-preview a {
  background: white;
  border-radius: 8px;
  bottom: 14px;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.18);
  color: var(--ink);
  font-weight: 900;
  padding: 10px 12px;
  position: absolute;
  text-decoration: none;
}

.map-preview {
  position: relative;
}

.estimate-output {
  color: var(--ink);
  font-weight: 900;
  margin: 0;
}

.solar-fields {
  display: grid;
  gap: 16px;
}

.page-hero h1,
.page-hero p {
  color: white;
  max-width: 860px;
}

.page-hero .eyebrow {
  color: var(--accent);
}

.agreement-layout,
.portal-layout {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(360px, 1fr) minmax(320px, 0.85fr);
  padding: clamp(48px, 7vw, 88px) clamp(20px, 5vw, 72px);
}

.portal-layout {
  grid-template-columns: minmax(320px, 0.55fr) minmax(360px, 1fr);
}

.contract-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.agreement-preview-stack {
  display: grid;
  gap: 16px;
}

.agreement-actions {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.07);
  display: grid;
  gap: 12px;
  padding: 18px;
}

.contract-card ol {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding-left: 22px;
}

.contract-card dl {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px 0;
}

.contract-card dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contract-card dd {
  margin: 3px 0 0;
}

.field-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.portal-results {
  display: grid;
  gap: 18px;
}

.client-contract .button {
  width: fit-content;
}

.signature-form {
  background: #f6fbfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  margin: 18px 0;
  padding: 16px;
}

.signature-form button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.section-heading {
  max-width: 820px;
}

.section-heading.compact h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.service-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
}

.service-grid article,
.lead-card,
.lead-row,
.sweep-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.07);
}

.service-grid article {
  overflow: hidden;
}

.service-grid article > *:not(img) {
  margin-left: 22px;
  margin-right: 22px;
}

.service-grid img {
  aspect-ratio: 1.25;
  margin-bottom: 22px;
  object-fit: cover;
  width: 100%;
}

.service-grid button {
  background: var(--ink);
  color: white;
  margin-bottom: 22px;
}

.qualifier {
  align-items: start;
  background: #eaf8fb;
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1.2fr);
}

.qualifier-copy ul {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding-left: 20px;
}

.lead-card {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  color: var(--muted);
  display: grid;
  font-size: 0.84rem;
  font-weight: 900;
  gap: 7px;
}

input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 44px;
  padding: 11px 12px;
  width: 100%;
}

textarea {
  resize: vertical;
}

.consent-row {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: 18px minmax(0, 1fr);
}

.consent-row input {
  margin-top: 3px;
  min-height: auto;
  width: auto;
}

.status-message {
  font-weight: 900;
  margin: 0;
}

footer {
  background: var(--ink);
  color: white;
  justify-content: space-between;
  padding: 26px clamp(20px, 5vw, 72px);
}

footer p,
footer a {
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

.dashboard-body {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  background: var(--ink);
  color: white;
  padding: 28px 22px;
}

.sidebar .brand {
  color: white;
  margin-bottom: 36px;
}

.sidebar nav {
  display: grid;
  gap: 8px;
}

.sidebar nav a {
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 850;
  padding: 12px 14px;
  text-decoration: none;
}

.sidebar nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.dashboard-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.dashboard-header h1 {
  color: var(--ink);
  font-size: clamp(2.5rem, 5vw, 5.5rem);
  margin: 0;
}

.metric-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 42px;
}

.dashboard-section {
  margin-bottom: 46px;
}

.toolbar {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto auto;
  margin: 18px 0;
}

.lead-list {
  display: grid;
  gap: 14px;
}

.lead-row {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 18px;
}

.lead-row-header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.lead-row p {
  margin: 10px 0 16px;
}

.lead-row dl {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.lead-action-link {
  display: inline-block;
  margin: 12px 10px 0 0;
  padding: 10px 12px;
}

.lead-row dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead-row dd {
  margin: 3px 0 0;
}

.lead-row time {
  color: var(--muted);
  font-size: 0.86rem;
  white-space: nowrap;
}

.tag {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 6px 10px;
}

.tag-hot {
  background: #ffe5d0;
  color: #8a3a00;
}

.tag-warm {
  background: #e5f0ff;
  color: #17447a;
}

.tag-nurture {
  background: #ebedf1;
  color: #4a5565;
}

.empty-state,
.sweep-intro {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.sweep-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sweep-card {
  padding: 18px;
}

.sweep-card p {
  margin-bottom: 16px;
}

.sweep-card div {
  display: grid;
  gap: 8px;
}

.sweep-card a {
  color: var(--brand);
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 980px) {
  .hero,
  .qualifier,
  .dashboard-body,
  .agreement-layout,
  .portal-layout,
  .broker-value {
    grid-template-columns: 1fr;
  }

  .process-band,
  .service-grid,
  .metric-grid,
  .sweep-grid,
  .local-page-grid,
  .landing-proof,
  .broker-value ul,
  .protection-grid,
  .path-grid,
  .review-wall {
    grid-template-columns: 1fr;
  }

  .rating-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .sidebar {
    position: static;
  }

  .toolbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header,
  .dashboard-header,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-grid,
  .lead-row,
  .lead-row dl {
    grid-template-columns: 1fr;
  }
}
