:root {
  --ink: #18211c;
  --muted: #52635a;
  --page: #f6f8f5;
  --surface: #ffffff;
  --line: #d9e0d8;
  --green: #236447;
  --green-dark: #143a2b;
  --gold: #e8aa35;
  --blue: #d7eef4;
  --shadow: 0 18px 44px rgba(24, 33, 28, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px 32px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  background: var(--green);
  border-radius: 8px;
  font-size: 24px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

nav a {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
}

nav a:hover,
nav a:focus-visible {
  color: var(--green-dark);
  background: #ecf4ee;
  outline: none;
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  isolation: isolate;
  padding: 80px 32px 110px;
  color: #ffffff;
  background-image:
    linear-gradient(90deg, rgba(10, 18, 14, 0.86) 0%, rgba(10, 18, 14, 0.65) 42%, rgba(10, 18, 14, 0.16) 76%),
    linear-gradient(0deg, rgba(10, 18, 14, 0.36), rgba(10, 18, 14, 0)),
    url("assets/images/solar-panels-pallet-hero.png");
  background-position: center;
  background-size: cover;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  background: linear-gradient(0deg, var(--page), rgba(246, 248, 245, 0));
  z-index: -1;
}

.hero-content {
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: 64px;
  line-height: 1;
}

h2 {
  margin: 0;
  font-size: 36px;
  line-height: 1.12;
}

h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.2;
}

.hero-copy {
  max-width: 650px;
  margin: 22px 0 0;
  color: #eef5f0;
  font-size: 22px;
}

.hero-pricing {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 0;
}

.hero-pricing span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-height: 44px;
  padding: 9px 12px;
  color: #f7fbf8;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
}

.hero-pricing strong {
  font-size: 20px;
}

.hero-actions,
.quote-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: #ffffff;
  background: var(--green);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--green-dark);
  outline: none;
}

.button.secondary {
  color: var(--green-dark);
  background: #ffffff;
  border-color: var(--line);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: var(--green);
  outline: none;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading p,
.intro-grid p,
.equipment-grid p,
.limited-grid p,
.two-column p,
.pvwatts p,
.contact-band p {
  color: var(--muted);
  font-size: 18px;
}

.intro-grid,
.two-column,
.pvwatts,
.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: center;
}

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

.featured-products {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stats div,
.equipment-grid article,
.featured-products article,
.limited-grid article,
.notice-panel,
.quote-result,
.quote-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.stats div {
  min-height: 118px;
  padding: 18px;
}

.featured-products article {
  display: flex;
  min-height: 244px;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
}

.featured-products p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.product-meta span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 8px 10px;
  color: var(--green-dark);
  background: #eef5ef;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}

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

.equipment-grid article {
  min-height: 214px;
  padding: 22px;
  border-top: 6px solid var(--green);
}

.equipment-grid article:nth-child(2) {
  border-top-color: var(--gold);
}

.equipment-grid article:nth-child(3) {
  border-top-color: #4c8da1;
}

.equipment-grid article:nth-child(4) {
  border-top-color: #7b8d55;
}

.equipment-grid p {
  margin: 0;
  font-size: 16px;
}

.limited-section {
  padding-top: 28px;
}

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

.limited-grid article {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
}

.limited-grid h3 {
  margin-bottom: 0;
}

.limited-grid p {
  margin: 0;
  font-size: 16px;
}

.limited-grid .text-link {
  margin-top: auto;
}

.status-tag {
  align-self: flex-start;
  padding: 5px 8px;
  color: var(--green-dark);
  background: #eef5ef;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 0;
}

.stats dd {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 800;
}

.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  gap: 24px;
  align-items: start;
}

.quote-form,
.quote-result,
.notice-panel {
  padding: 24px;
}

fieldset {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

legend,
.field span {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 4px;
  background: #edf3ee;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.segmented label {
  position: relative;
  min-width: 0;
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented span {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  color: var(--muted);
  border-radius: 6px;
  font-weight: 800;
  text-align: center;
}

.segmented input:checked + span {
  color: #ffffff;
  background: var(--green);
}

.segmented input:focus-visible + span {
  outline: 3px solid var(--gold);
}

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

.check-grid label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
  background: #f7faf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.check-grid input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.check-grid input:focus-visible {
  outline: 3px solid var(--gold);
}

.field {
  display: block;
  margin-bottom: 20px;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #bfcabe;
  border-radius: 8px;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--green);
  outline: 3px solid rgba(232, 170, 53, 0.35);
}

.is-hidden {
  display: none;
}

.quote-result {
  position: sticky;
  top: 100px;
}

.quote-id {
  margin-bottom: 16px;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 800;
}

.result-list {
  margin: 0;
}

.result-list div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.result-list dd {
  font-weight: 800;
  text-align: right;
}

.result-list .total-row {
  align-items: baseline;
  border-bottom: 0;
}

.result-list .total-row dt {
  color: var(--ink);
  font-size: 16px;
}

.result-list .total-row dd {
  color: var(--green-dark);
  font-size: 30px;
}

.fine-print,
.copy-status {
  color: var(--muted);
  font-size: 14px;
}

.copy-status {
  min-height: 22px;
  margin: 14px 0 0;
  font-weight: 800;
}

.text-link {
  color: var(--green-dark);
  font-weight: 800;
}

.notice-panel {
  border-top: 6px solid var(--gold);
}

.pvwatts {
  padding: 34px;
  background: var(--blue);
  border: 1px solid #bad7dd;
  border-radius: 8px;
}

.roi-section {
  background: #eff3d7;
  border-color: #d8dfaa;
}

.contact-band {
  margin-bottom: 48px;
  padding: 34px;
  color: #ffffff;
  background: var(--green-dark);
  border-radius: 8px;
}

.contact-band .eyebrow,
.contact-band p {
  color: #e9f2eb;
}

.contact-band .button.secondary {
  justify-self: end;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 32px;
  color: #e9f2eb;
  background: #111914;
}

.site-footer p {
  max-width: 620px;
  margin: 0;
  font-size: 14px;
}

@media (max-width: 900px) {
  .site-header,
  .intro-grid,
  .featured-products,
  .equipment-grid,
  .limited-grid,
  .two-column,
  .pvwatts,
  .contact-band,
  .quote-layout {
    grid-template-columns: 1fr;
  }

  .site-header {
    position: static;
    display: grid;
    padding: 14px 20px;
  }

  nav {
    justify-content: start;
  }

  .hero {
    min-height: 760px;
    padding: 76px 24px 110px;
    background-position: 64% center;
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 30px;
  }

  .hero-copy {
    font-size: 20px;
  }

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

  .quote-result {
    position: static;
  }

  .contact-band .button.secondary {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .section {
    width: min(100% - 28px, 1180px);
    padding: 52px 0;
  }

  .hero {
    min-height: 720px;
    padding: 54px 18px 96px;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 26px;
  }

  .hero-copy,
  .section-heading p,
  .intro-grid p,
  .two-column p,
  .pvwatts p,
  .contact-band p {
    font-size: 16px;
  }

  .hero-pricing span,
  .button {
    width: 100%;
  }

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

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

  .result-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .result-list dd {
    text-align: left;
  }

  .quote-form,
  .quote-result,
  .notice-panel,
  .pvwatts,
  .contact-band {
    padding: 18px;
  }
}

@media print {
  .site-header,
  .hero,
  .quote-form,
  .section:not(.quote-section),
  .quote-actions,
  .site-footer {
    display: none;
  }

  body {
    background: #ffffff;
  }

  .section,
  .quote-layout {
    width: 100%;
    display: block;
    padding: 0;
  }

  .quote-result {
    position: static;
    box-shadow: none;
  }
}
