:root {
  --ink: #151820;
  --muted: #5e6673;
  --line: #d9dee8;
  --surface: #f5f7f8;
  --surface-strong: #eceff3;
  --white: #ffffff;
  --brand: #f6a51b;
  --brand-dark: #b86700;
  --navy: #07112b;
  --teal: #0f766e;
  --shadow: 0 18px 45px rgba(18, 24, 34, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

svg {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  background: var(--brand);
  color: #111;
  padding: 0.7rem 1rem;
  border-radius: 4px;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.top-strip {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  min-height: 2.3rem;
  padding: 0.35rem 1rem;
  background: var(--ink);
  color: var(--white);
  font-size: 0.88rem;
}

.top-strip a,
.top-strip span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  white-space: nowrap;
}

.nav-shell {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 4.9rem;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand img {
  width: 176px;
  max-height: 64px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  padding: 0.72rem 0.9rem;
  border-radius: 6px;
}

.nav-link:hover,
.nav-link.active {
  background: var(--surface-strong);
}

.menu-button {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  align-items: center;
  justify-content: center;
}

.hero,
.page-hero {
  position: relative;
  min-height: 35rem;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.home-hero,
.solar-hero {
  background: center / cover no-repeat url("/assets/img/work-roof-1.jpg");
}

.solar-hero {
  background-image: url("/assets/img/work-roof-2.jpg");
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 17, 43, 0.91) 0%, rgba(7, 17, 43, 0.79) 42%, rgba(7, 17, 43, 0.34) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.1));
}

.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 7.25rem 1.25rem 4.5rem;
}

.hero-inner > * {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 3.4rem;
  max-width: 780px;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0;
}

.hero-copy,
.page-hero p,
.intro-grid p,
.service-area p {
  font-size: 1.08rem;
}

.hero-copy {
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.78rem 1rem;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
}

.button-primary {
  background: var(--brand);
  color: #1d1604;
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.1);
}

.button-dark {
  background: var(--ink);
  color: var(--white);
}

.button:hover {
  transform: translateY(-1px);
}

.proof-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1180px;
  margin: -2rem auto 0;
  position: relative;
  z-index: 5;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: 8px;
  overflow: hidden;
}

.proof-band div {
  padding: 1.25rem;
  border-right: 1px solid var(--line);
}

.proof-band div:last-child {
  border-right: 0;
}

.credential-band {
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.proof-band strong,
.proof-band span {
  display: block;
}

.proof-band strong {
  font-size: 1.05rem;
}

.proof-band span {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 0.2rem;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 5rem 1.25rem;
}

.section-muted {
  max-width: none;
  margin: 0;
  padding-left: max(1.25rem, calc((100% - 1180px) / 2 + 1.25rem));
  padding-right: max(1.25rem, calc((100% - 1180px) / 2 + 1.25rem));
  background: var(--surface);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: start;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 2rem;
}

.service-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

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

.service-card,
.feature-grid article,
.contact-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
}

.service-card h3,
.feature-grid h3,
.contact-panel h2 {
  margin-bottom: 0.75rem;
}

.service-card p,
.feature-grid p,
.contact-panel p {
  color: var(--muted);
}

.service-card ul,
.check-list,
.plain-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.service-card li,
.check-list li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-top: 0.62rem;
}

.service-card li svg,
.check-list li svg {
  color: var(--teal);
  margin-top: 0.17rem;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.image-panel {
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-strong);
  min-height: 24rem;
}

.image-panel img {
  width: 100%;
  height: 100%;
  min-height: 24rem;
  object-fit: cover;
}

.steps {
  display: grid;
  gap: 1rem;
  padding: 0;
  margin: 1.5rem 0 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 1rem;
}

.steps li > span {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--brand);
  color: #1d1604;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.steps p,
.check-list span {
  color: var(--muted);
}

.service-area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.7fr);
  gap: 2rem;
  align-items: start;
}

.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.area-list span {
  background: #e8f3f1;
  color: #0b4f4a;
  border: 1px solid #b8ddd7;
  border-radius: 999px;
  padding: 0.5rem 0.72rem;
  font-weight: 800;
}

.cta-band {
  max-width: 1180px;
  margin: 0 auto 5rem;
  padding: 2rem;
  border-radius: 8px;
  background: var(--brand);
  color: #1d1604;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-band .eyebrow {
  color: #4e3100;
}

.page-hero {
  min-height: auto;
  background: var(--ink);
}

.compact-hero > div {
  max-width: 1180px;
  margin: 0 auto;
  padding: 4.75rem 1.25rem 4rem;
}

.compact-hero h1,
.compact-hero p {
  max-width: 820px;
}

.compact-hero p:last-child {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.86);
}

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

.contact-link,
.site-footer a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 800;
  margin: 0.65rem 0;
}

.policy-callout {
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem;
  margin-top: 0;
  margin-bottom: 5rem;
}

.policy-callout p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 0.85rem;
}

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

.policy-card,
.details-panel {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  padding: 1.35rem;
}

.policy-card p,
.details-panel p {
  color: var(--muted);
}

.policy-card a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--brand-dark);
}

.external-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.external-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  text-decoration: none;
  font-weight: 800;
  color: var(--ink);
  background: var(--surface);
}

.plain-list {
  color: var(--muted);
  margin-top: 0.5rem;
}

.plain-list li {
  margin-top: 0.45rem;
}

.legal-shell {
  max-width: 960px;
}

.legal-content {
  font-size: 1rem;
}

.legal-content h2 {
  font-size: 1.55rem;
  margin: 2.25rem 0 0.9rem;
}

.legal-content p,
.legal-content li {
  color: #252b34;
}

.legal-content p {
  margin: 0.9rem 0;
}

.legal-content hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

.site-footer {
  background: var(--ink);
  color: var(--white);
  padding: 3rem 1.25rem 1.2rem;
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-logo {
  width: 150px;
  height: auto;
  margin-bottom: 1rem;
}

.site-footer h2 {
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.site-footer p,
.footer-bottom {
  color: rgba(255, 255, 255, 0.72);
}

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

.footer-bottom {
  max-width: 1180px;
  margin: 2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}

@media (max-width: 920px) {
  h1 {
    font-size: 2.55rem;
  }

  h2 {
    font-size: 1.9rem;
  }

  .menu-button {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% - 0.35rem);
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 0.5rem;
  }

  .site-nav.open {
    display: flex;
  }

  .nav-link {
    padding: 0.9rem;
  }

  .hero {
    min-height: 32rem;
  }

  .hero-inner {
    padding-top: 5.25rem;
  }

  .proof-band,
  .intro-grid,
  .split-section,
  .service-area,
  .policy-callout,
  .contact-grid,
  .policy-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .proof-band {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .proof-band div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-band div:last-child {
    border-bottom: 0;
  }

  .service-grid,
  .service-grid.expanded,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-band {
    margin-left: 1rem;
    margin-right: 1rem;
    align-items: flex-start;
    flex-direction: column;
  }

  .policy-callout {
    margin-left: 1rem;
    margin-right: 1rem;
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .top-strip {
    justify-content: flex-start;
    align-items: center;
    gap: 0.25rem 0.8rem;
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
    line-height: 1.25;
  }

  .top-strip a,
  .top-strip span {
    white-space: normal;
  }

  .nav-shell {
    min-height: 4rem;
    padding: 0.45rem 0.9rem;
  }

  .brand img {
    width: 128px;
  }

  h1 {
    font-size: 1.9rem;
    line-height: 1.06;
  }

  h2 {
    font-size: 1.42rem;
    line-height: 1.12;
  }

  h3 {
    font-size: 1.08rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 3.25rem 1rem 2.75rem;
  }

  .compact-hero > div {
    padding: 3rem 1rem 2.75rem;
  }

  .hero-copy,
  .page-hero p,
  .intro-grid p,
  .service-area p {
    font-size: 1rem;
  }

  .hero-copy {
    margin-top: 1rem;
  }

  .eyebrow {
    margin-bottom: 0.65rem;
    font-size: 0.75rem;
  }

  .button-row {
    gap: 0.6rem;
    margin-top: 1.15rem;
  }

  .button {
    min-height: 2.75rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .button-row,
  .button {
    width: 100%;
  }

  .section {
    padding: 2.75rem 1rem;
  }

  .section-muted {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .service-grid,
  .service-grid.expanded,
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .image-panel,
  .image-panel img {
    min-height: 15rem;
  }

  .proof-band {
    margin-top: -1rem;
  }

  .proof-band div,
  .service-card,
  .feature-grid article,
  .contact-panel,
  .policy-card,
  .details-panel {
    padding: 1rem;
  }

  .proof-band strong,
  .contact-link,
  .site-footer a {
    font-size: 0.95rem;
  }

  .service-card h3,
  .feature-grid h3,
  .contact-panel h2 {
    margin-bottom: 0.55rem;
  }

  .split-section,
  .intro-grid,
  .service-area {
    gap: 1.5rem;
  }

  .steps {
    gap: 0.85rem;
  }

  .steps li {
    grid-template-columns: 2.1rem minmax(0, 1fr);
    gap: 0.75rem;
  }

  .steps li > span {
    width: 2.1rem;
    height: 2.1rem;
  }

  .policy-callout,
  .cta-band {
    padding: 1.25rem;
    margin-left: 0.75rem;
    margin-right: 0.75rem;
  }

  .cta-band {
    margin-bottom: 3rem;
  }

  .external-links {
    gap: 0.5rem;
  }

  .external-links a {
    width: 100%;
    border-radius: 8px;
    padding: 0.75rem;
  }

  .site-footer {
    padding: 2.25rem 1rem 1rem;
  }

  .footer-grid {
    gap: 1.35rem;
  }

  .footer-logo {
    width: 132px;
    margin-bottom: 0.8rem;
  }

  .site-footer p,
  .footer-bottom {
    font-size: 0.9rem;
  }

  .footer-bottom {
    margin-top: 1.4rem;
    flex-direction: column;
  }
}

@media (max-width: 390px) {
  .top-strip {
    font-size: 0.76rem;
  }

  h1 {
    font-size: 1.72rem;
  }

  h2 {
    font-size: 1.32rem;
  }

  .brand img {
    width: 118px;
  }
}
