/* Sunpal Installations */

.sunpal-install-archive,
.sunpal-install-single {
  position: relative;
  min-height: 70vh;
  padding: 28px 28px 96px;
  background:
    radial-gradient(920px 420px at 10% -8%, rgba(22, 139, 61, .12), transparent 58%),
    radial-gradient(680px 320px at 96% 0%, rgba(9, 11, 13, .05), transparent 55%),
    linear-gradient(180deg, #f3faf5 0%, #fff 36%, #fff 100%);
}

.sunpal-install-hero {
  max-width: 820px;
  margin: 0 auto 40px;
  text-align: center;
}

.sunpal-install-crumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.sunpal-install-eyebrow {
  margin: 22px 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.sunpal-install-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 750;
  letter-spacing: -.04em;
  line-height: .98;
}

.sunpal-install-lede {
  margin: 0 auto;
  max-width: 52ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.sunpal-install-cover {
  max-width: 1100px;
  margin: 32px auto 0;
  overflow: hidden;
  border: 1px solid rgba(9, 11, 13, .08);
  background: #e8eee9;
}

.sunpal-install-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.sunpal-install-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto 40px;
}

.sunpal-install-gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(9, 11, 13, .08);
  background: #e8eee9;
}

.sunpal-install-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.sunpal-install-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.sunpal-install-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto 40px;
}

.sunpal-install-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(9, 11, 13, .08);
  background: rgba(255, 255, 255, .94);
  transition: border-color .2s ease, transform .2s ease;
}

.sunpal-install-card:hover {
  border-color: rgba(22, 139, 61, .4);
  transform: translateY(-2px);
}

.sunpal-install-card-link {
  display: grid;
  gap: 0;
  min-height: 100%;
  padding: 0;
}

.sunpal-install-card.has-media .sunpal-install-card-link {
  grid-template-rows: auto 1fr;
}

.sunpal-install-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e8eee9;
}

.sunpal-install-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .55s cubic-bezier(.22, .75, .18, 1);
}

.sunpal-install-card:hover .sunpal-install-card-media img {
  transform: scale(1.04);
}

.sunpal-install-card-body {
  display: grid;
  gap: 10px;
  padding: 22px 24px 24px;
}

.sunpal-install-type {
  width: fit-content;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.sunpal-install-location {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.sunpal-install-card h2 {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
}

.sunpal-install-card > a > p,
.sunpal-install-card-link > p,
.sunpal-install-card-body > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.sunpal-install-card dl {
  display: grid;
  gap: 10px;
  margin: 8px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.sunpal-install-card dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.sunpal-install-card dd {
  margin: 3px 0 0;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.sunpal-install-more {
  margin-top: auto;
  padding-top: 12px;
  font-size: 14px;
  font-weight: 750;
  color: var(--green);
}

.sunpal-install-overview,
.sunpal-install-specs,
.sunpal-install-upgrade,
.sunpal-install-notes,
.sunpal-install-cta,
.sunpal-install-legal {
  max-width: 980px;
  margin: 0 auto 36px;
}

.sunpal-install-overview > header p,
.sunpal-install-specs > header p,
.sunpal-install-upgrade > header p {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.sunpal-install-overview > header h2,
.sunpal-install-specs > header h2,
.sunpal-install-upgrade > header h2,
.sunpal-install-cta h2 {
  margin: 0 0 22px;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.05;
}

.sunpal-install-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sunpal-install-facts > div {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.sunpal-install-facts > div:nth-child(odd) {
  padding-right: 22px;
}

.sunpal-install-facts > div:nth-child(even) {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.sunpal-install-facts dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sunpal-install-facts dd {
  margin: 6px 0 0;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.4;
}

.sunpal-install-specs ul,
.sunpal-install-upgrade ul,
.sunpal-install-challenges ul,
.sunpal-install-benefits ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.sunpal-install-specs li,
.sunpal-install-upgrade li,
.sunpal-install-challenges li,
.sunpal-install-benefits li {
  padding: 16px 0 16px 28px;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-size: 15px;
  line-height: 1.5;
}

.sunpal-install-specs li::before,
.sunpal-install-upgrade li::before,
.sunpal-install-challenges li::before,
.sunpal-install-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--green);
  border-radius: 50%;
}

.sunpal-install-challenges,
.sunpal-install-benefits {
  max-width: 980px;
  margin: 0 auto 36px;
}

.sunpal-install-challenges > header p,
.sunpal-install-benefits > header p {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.sunpal-install-challenges > header h2,
.sunpal-install-benefits > header h2 {
  margin: 0 0 22px;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.05;
}

.sunpal-install-challenges {
  padding: 28px;
  border: 1px solid var(--line);
  background: #f7f8f8;
}

.sunpal-install-benefits {
  padding: 28px;
  border: 1px solid rgba(22, 139, 61, .22);
  background: linear-gradient(180deg, #f4fbf6, #fff);
}

.sunpal-install-upgrade {
  padding: 28px;
  border: 1px solid rgba(22, 139, 61, .22);
  background: linear-gradient(180deg, #f4fbf6, #fff);
}

.sunpal-install-upgrade-lead {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.sunpal-install-upgrade-value {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.sunpal-install-cta {
  text-align: center;
  padding: 48px 28px;
  border: 1px solid rgba(9, 11, 13, .08);
  background: #090b0d;
  color: #fff;
}

.sunpal-install-cta .sunpal-install-eyebrow {
  color: #8fe0a8;
}

.sunpal-install-cta h2 {
  color: #fff;
}

.sunpal-install-cta > p {
  margin: 0 auto 28px;
  max-width: 46ch;
  color: rgba(255, 255, 255, .68);
  font-size: 16px;
  line-height: 1.55;
}

.sunpal-install-cta nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.sunpal-install-cta .button.secondary {
  border-color: rgba(255, 255, 255, .45) !important;
  color: #fff !important;
}

.sunpal-install-legal {
  padding-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.sunpal-install-legal p {
  margin: 0 0 12px;
}

/* Homepage Field Stories */
.sunpal-field-stories {
  padding: clamp(64px, 8vw, 108px) max(28px, calc((100vw - var(--max)) / 2));
  background:
    radial-gradient(820px 360px at 8% 0%, rgba(22, 139, 61, .08), transparent 60%),
    linear-gradient(180deg, #f6faf7 0%, #fff 42%, #fff 100%);
}

.sunpal-field-stories > header {
  max-width: 720px;
  margin: 0 0 36px;
}

.sunpal-field-stories > header > p {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.sunpal-field-stories > header h2 {
  margin: 0 0 12px;
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: .98;
}

.sunpal-field-stories > header span {
  display: block;
  max-width: 52ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.sunpal-field-stories-layout {
  display: grid;
  grid-template-columns: 1.35fr .9fr;
  gap: 16px;
  align-items: stretch;
}

.sunpal-field-story {
  margin: 0;
  min-height: 100%;
}

.sunpal-field-story > a {
  display: grid;
  grid-template-rows: minmax(200px, 1fr) auto;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(9, 11, 13, .08);
  background: #fff;
  transition: border-color .2s ease, transform .2s ease;
}

.sunpal-field-story.is-featured > a {
  grid-template-rows: minmax(280px, 1.15fr) auto;
}

.sunpal-field-story > a:hover {
  border-color: rgba(22, 139, 61, .4);
  transform: translateY(-2px);
}

.sunpal-field-story-media {
  display: block;
  overflow: hidden;
  background: #dfe8e1;
  min-height: 200px;
}

.sunpal-field-story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.22, .75, .18, 1);
}

.sunpal-field-story > a:hover .sunpal-field-story-media img {
  transform: scale(1.045);
}

.sunpal-field-story-copy {
  display: grid;
  gap: 8px;
  padding: 22px 22px 24px;
  align-content: start;
}

.sunpal-field-story-kicker {
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.sunpal-field-story strong {
  font-size: clamp(22px, 2.1vw, 30px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.12;
}

.sunpal-field-story.is-featured strong {
  font-size: clamp(26px, 2.6vw, 36px);
}

.sunpal-field-story em {
  color: var(--muted);
  font-style: normal;
  font-size: 14px;
  line-height: 1.5;
}

.sunpal-field-story-cta {
  margin-top: 6px;
  color: var(--green);
  font-weight: 750;
  font-size: 14px;
}

.sunpal-field-stories-side {
  display: grid;
  gap: 16px;
}

.sunpal-field-stories-foot {
  margin: 28px 0 0;
}

.sunpal-field-stories-foot a {
  color: var(--green);
  font-weight: 750;
}

/* Legacy homepage class kept for safety */
.sunpal-home-installs {
  padding: clamp(72px, 9vw, 120px) max(28px, calc((100vw - var(--max)) / 2));
}

.sunpal-home-installs > header {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.sunpal-home-installs > header > p {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.sunpal-home-installs > header h2 {
  margin: 0 0 12px;
  font-size: clamp(36px, 4.8vw, 56px);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: .98;
}

.sunpal-home-installs > header span {
  display: block;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.sunpal-home-installs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.sunpal-home-installs-grid article a {
  display: grid;
  gap: 8px;
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color .2s ease, transform .2s ease;
}

.sunpal-home-installs-grid article a:hover {
  border-color: rgba(22, 139, 61, .4);
  transform: translateY(-2px);
}

.sunpal-home-installs-grid strong {
  font-size: 22px;
  letter-spacing: -.03em;
  line-height: 1.1;
}

.sunpal-home-installs-grid em {
  color: var(--muted);
  font-style: normal;
  font-size: 14px;
  line-height: 1.45;
}

.sunpal-home-installs-grid span:last-child {
  margin-top: auto;
  padding-top: 10px;
  color: var(--green);
  font-weight: 750;
  font-size: 14px;
}

.sunpal-home-installs-foot {
  text-align: center;
  margin-top: 28px;
}

@media (max-width: 980px) {
  .sunpal-install-grid,
  .sunpal-home-installs-grid,
  .sunpal-field-stories-layout {
    grid-template-columns: 1fr;
  }

  .sunpal-install-gallery {
    grid-template-columns: 1fr;
  }

  .sunpal-install-facts {
    grid-template-columns: 1fr;
  }

  .sunpal-install-facts > div:nth-child(odd),
  .sunpal-install-facts > div:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .sunpal-install-archive,
  .sunpal-install-single {
    padding: 22px 18px 72px;
  }

  .sunpal-install-grid,
  .sunpal-home-installs-grid {
    grid-template-columns: 1fr;
  }

  .sunpal-install-hero-actions .button,
  .sunpal-install-cta .button {
    width: 100%;
  }
}
