:root {
  --ink: #1f332e;
  --muted: #65756f;
  --paper: #fffdf8;
  --cream: #f7f2e8;
  --sage: #dcebe1;
  --mint: #edf7f1;
  --sky: #dcecf4;
  --gold: #efc66c;
  --coral: #ef9f8f;
  --teal: #2d7a72;
  --line: rgba(31, 51, 46, 0.13);
  --shadow: 0 24px 70px rgba(45, 79, 73, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: fixed;
  inset: 16px 24px auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: 0 12px 38px rgba(31, 51, 46, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #17362f;
  background: linear-gradient(135deg, var(--gold), var(--sage));
  font-weight: 800;
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 0.95rem;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.72rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.primary-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #334943;
  font-size: 0.92rem;
  font-weight: 700;
}

.primary-nav a:hover {
  background: rgba(45, 122, 114, 0.11);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: white;
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  align-items: center;
  padding: 142px 24px 86px;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -3;
  background: url("assets/solar-design-hero.png") center / cover no-repeat;
}

.hero-overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.97) 0%, rgba(255, 253, 248, 0.86) 42%, rgba(255, 253, 248, 0.24) 78%),
    linear-gradient(180deg, rgba(220, 235, 225, 0.22), rgba(255, 253, 248, 0.84));
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 170px;
  background: linear-gradient(0deg, var(--paper), rgba(255, 253, 248, 0));
}

.hero-content {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.7rem, 5.5vw, 5.25rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin: 28px 0 0;
  color: #40554f;
  font-size: clamp(1rem, 1.5vw, 1.22rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button.primary {
  color: white;
  background: #245f58;
  box-shadow: 0 14px 28px rgba(36, 95, 88, 0.22);
}

.button.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.68);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
  margin: 48px 0 0;
}

.trust-strip div {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.72);
  box-shadow: 0 14px 42px rgba(31, 51, 46, 0.08);
  backdrop-filter: blur(12px);
}

.trust-strip dt {
  font-size: 1.28rem;
  font-weight: 800;
}

.trust-strip dd {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: 92px 24px;
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.intro-section {
  padding-top: 42px;
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.5fr 1fr;
  gap: 34px;
  align-items: start;
}

.intro-grid h2,
.section-heading h2,
.about-grid h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.intro-grid p:last-child,
.section-heading p,
.about-grid p,
.contact-copy p {
  margin: 0;
  color: var(--muted);
}

.services-section,
.contact-section {
  background: linear-gradient(180deg, var(--mint), #fffdf8);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.72fr 1.34fr 1fr;
  gap: 28px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading.compact {
  grid-template-columns: 0.7fr 1.6fr;
  align-items: start;
}

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

.service-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 18px 52px rgba(31, 51, 46, 0.08);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.service-card {
  min-height: 270px;
  padding: 22px;
}

.service-icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: #245f58;
  background: var(--sky);
  font-size: 0.84rem;
  font-weight: 800;
}

.service-card:nth-child(2) .service-icon {
  background: var(--sage);
}

.service-card:nth-child(3) .service-icon {
  background: #fae8bf;
}

.service-card:nth-child(4) .service-icon {
  background: #f8ddd8;
}

.service-card h3 {
  margin: 42px 0 10px;
  font-size: 1.2rem;
}

.service-card p,
.process-panel p {
  color: var(--muted);
  font-size: 0.94rem;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
}

.about-copy {
  max-width: 620px;
}

.about-copy > p:not(.section-kicker) {
  margin-top: 18px;
}

.process-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.process-step {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--cream);
  transition:
    transform 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.process-step > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--teal);
  font-weight: 800;
}

.process-step > div {
  min-width: 0;
}

.process-step strong {
  display: block;
  line-height: 1.35;
}

.process-step p {
  margin: 5px 0 0;
  line-height: 1.55;
}

.contact-copy {
  align-self: start;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 680px);
}

.contact-copy p {
  margin-top: 18px;
}

.contact-detail {
  display: grid;
  gap: 4px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.contact-detail > span {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

@media (hover: hover) {
  .service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(45, 122, 114, 0.25);
    background: #f1f8f3;
    box-shadow: 0 24px 58px rgba(31, 51, 46, 0.13);
  }

  .process-step:hover {
    transform: translateX(4px);
    background: #eaf4ed;
    box-shadow: 0 10px 26px rgba(31, 51, 46, 0.08);
  }

}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 24px;
  color: #53665f;
  background: var(--ink);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #fff8e8;
  font-weight: 800;
}

@media (max-width: 900px) {
  .site-header {
    inset: 12px 14px auto;
    border-radius: 24px;
  }

  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 18px;
    background: rgba(255, 253, 248, 0.96);
    box-shadow: 0 18px 44px rgba(31, 51, 46, 0.16);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .hero {
    min-height: 720px;
    padding-top: 128px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(255, 253, 248, 0.98), rgba(255, 253, 248, 0.74)),
      linear-gradient(180deg, rgba(255, 253, 248, 0.28), rgba(255, 253, 248, 0.9));
  }

  .intro-grid,
  .section-heading,
  .section-heading.compact,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    gap: 34px;
  }

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

@media (max-width: 620px) {
  .brand-copy small {
    display: none;
  }

  .hero {
    min-height: 700px;
    padding-inline: 18px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.7rem);
  }

  .trust-strip,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 70px 18px;
  }

  .site-footer {
    flex-direction: column;
  }
}
