/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Murecho', sans-serif; background: #fff; color: #000; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ============================================================
   VARIABLES
   Design baseline: 1920px wide
   ============================================================ */
:root {
  --green:        #085132;
  --dark:         #242425;
  --footer-dark:  #171717;
  --muted:        #bebebe;
  --border:       #bebebe;
  --radius-card:  10px;
  --shadow-card:  4px 4px 30px rgba(0, 0, 0, 1);
  --px:           clamp(20px, 4.0625vw, 78px);
}

/* ============================================================
   CONTAINER
   ============================================================ */
.wrap {
  max-width: 1920px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--px);
  padding-right: var(--px);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: clamp(44px, 3.385vw, 65px);
  padding: 0 clamp(18px, 2.083vw, 40px);
  border-radius: 100px;
  font-family: inherit;
  font-weight: 500;
  font-size: clamp(14px, 1.458vw, 28px);
  letter-spacing: 0.03em;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}
.btn:hover { opacity: 0.85; }
.btn-primary { background: var(--green); color: #fff; }
.btn-outline  { background: transparent; color: #fff; border: 3px solid #fff; }
.btn-header   { background: var(--green); color: #fff; }

/* ============================================================
   SECTION HEADING SHARED
   ============================================================ */
.section-heading {
  font-size: clamp(24px, 3.125vw, 60px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #000;
}
.section-sub {
  font-size: clamp(14px, 2.083vw, 40px);
  font-weight: 500;
  color: rgba(0, 0, 0, 0.6);
  letter-spacing: 0.02em;
  text-align: center;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  height: clamp(60px, 5.208vw, 100px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 2.083vw, 40px);
}
.brand {
  display: flex;
  align-items: center;
  gap: clamp(6px, 0.573vw, 11px);
}
.brand-mark {
  height: clamp(25px, 2.616vw, 50px);
  width: auto;
}
.brand-word {
  height: clamp(18px, 1.979vw, 38px);
  width: auto;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3.385vw, 65px);
}
.nav a {
  font-size: clamp(13px, 1.458vw, 28px);
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #000;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav a:hover { color: var(--green); }

/* Offset anchor targets so sticky header doesn't cover content */
#solutions, #why, #path, #contact {
  scroll-margin-top: clamp(60px, 5.208vw, 100px);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: clamp(360px, 49.01vw, 941px);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    270deg,
    rgba(16, 16, 16, 0)    1.70%,
    rgba(16, 16, 16, 0.30) 55.14%,
    rgba(11, 10, 10, 0.80) 75.86%,
    rgba(11, 10, 10, 0.77) 92.85%
  );
}
.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.hero-title {
  font-size: clamp(32px, 5vw, 96px);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
  line-height: 1.2;
  margin-top: clamp(80px, 10.05vw, 193px);
}
.hero-sub1 {
  font-size: clamp(13px, 1.823vw, 35px);
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.03em;
  max-width: clamp(300px, 71.1vw, 1365px);
  margin-top: clamp(16px, 3.125vw, 60px);
}
.hero-ctas {
  display: flex;
  gap: clamp(10px, 1.563vw, 30px);
  margin-top: clamp(20px, 3.125vw, 60px);
}
.hero-sub2 {
  font-size: clamp(13px, 1.823vw, 35px);
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.03em;
  margin-top: clamp(8px, 1.042vw, 20px);
}

/* ============================================================
   SOLUTIONS
   ============================================================ */
.solutions {
  padding: clamp(32px, 3.646vw, 70px) 0 clamp(40px, 4.167vw, 80px);
}
.solutions-heading {
  text-align: center;
  margin-bottom: clamp(10px, 0.833vw, 16px);
}
.solutions .section-sub {
  margin-bottom: clamp(24px, 3.385vw, 65px);
}
.sol-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 3.281vw, 63px);
}
.sol-card {
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  aspect-ratio: 850 / 422;
}
.sol-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Right-column cards (even): dark on left, content on left */
.sol-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    270deg,
    rgba(16, 16, 16, 0)    1.70%,
    rgba(16, 16, 16, 0.30) 55.14%,
    rgba(11, 10, 10, 0.80) 75.86%,
    rgba(11, 10, 10, 0.77) 92.85%
  );
}
/* Left-column cards (odd): dark on right, content on right */
.sol-card:nth-child(odd) .sol-overlay {
  background: linear-gradient(
    90deg,
    rgba(16, 16, 16, 0)    1.70%,
    rgba(16, 16, 16, 0.30) 55.14%,
    rgba(11, 10, 10, 0.80) 75.86%,
    rgba(11, 10, 10, 0.77) 92.85%
  );
}
.sol-body {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: clamp(14px, 2.083vw, 40px) clamp(16px, 2.604vw, 50px);
}
.sol-card:nth-child(odd) .sol-body {
  align-items: flex-end;
  text-align: right;
}
.sol-body h3 {
  font-size: clamp(16px, 2.344vw, 45px);
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.02em;
  margin-bottom: clamp(6px, 0.729vw, 14px);
}
.sol-body p {
  font-size: clamp(12px, 1.563vw, 30px);
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.02em;
  max-width: clamp(180px, 28.64vw, 550px);
  margin-bottom: clamp(10px, 1.563vw, 30px);
  line-height: 1.4;
}

/* ============================================================
   DARK BAND DIVIDER
   ============================================================ */
.band-dark {
  height: clamp(50px, 10.417vw, 200px);
  background: var(--dark);
}

/* ============================================================
   WHY HIGREEN
   ============================================================ */
.why-intro {
  padding-top: clamp(24px, 3.125vw, 60px);
  padding-bottom: clamp(16px, 2.083vw, 40px);
  text-align: center;
}
.why-sub {
  margin-top: clamp(8px, 0.729vw, 14px);
  white-space: nowrap;
}
.why-bento { }
.why-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.why-cell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 960 / 500;
  display: flex;
  align-items: center;
}
.why-dark  { background: var(--dark); }
.why-light { background: #fff; }
.why-text {
  position: relative;
  z-index: 1;
  padding: clamp(16px, 2.083vw, 40px) clamp(16px, 2.604vw, 50px);
  max-width: 52%;
}
.why-text h3 {
  font-size: clamp(16px, 2.083vw, 40px);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: clamp(8px, 0.729vw, 14px);
  line-height: 1.3;
}
.why-dark  .why-text h3 { color: #fff; }
.why-light .why-text h3 { color: #000; }
.why-text p {
  font-size: clamp(12px, 1.563vw, 30px);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.5;
}
.why-dark  .why-text p { color: var(--muted); }
.why-light .why-text p { color: rgba(0, 0, 0, 0.6); }
.why-photo {
  position: absolute;
  right: 0;
  top: 0;
  width: 52%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* ============================================================
   PATH – A SIMPLE PATH TO BETTER ENERGY
   ============================================================ */
.path {
  padding: clamp(28px, 2.604vw, 50px) 0 clamp(40px, 4.167vw, 80px);
}
.path-heading {
  text-align: center;
  margin-bottom: clamp(8px, 0.76vw, 14.6px);
}
.path .section-sub {
  margin-bottom: clamp(24px, 3.385vw, 65px);
}
.path-panel {
  display: grid;
  grid-template-columns: clamp(160px, 28.33vw, 544px) 1fr;
  gap: clamp(24px, 3.177vw, 61px);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: clamp(24px, 4.27vw, 82px) clamp(24px, 3.646vw, 70px);
  margin-bottom: clamp(20px, 2.604vw, 50px);
  background: #fff;
}
.path-visual {
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 544 / 785;
}
.path-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.path-steps {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.604vw, 50px);
}

/* Row: step | arrow | step | arrow | step  (5 columns) */
.path-row {
  display: grid;
  grid-template-columns:
    1fr
    clamp(16px, 4.427vw, 85px)
    1fr
    clamp(16px, 4.427vw, 85px)
    1fr;
  align-items: start;
  column-gap: 0;
}

/* Bottom row: step | arrow | step | (gap) | btn */
.path-row-b {
  grid-template-columns:
    1fr
    clamp(16px, 4.427vw, 85px)
    1fr
    clamp(16px, 4.427vw, 85px)
    1fr;
}
.path-cta {
  grid-column: 5;
  align-self: center;
  justify-self: start;
  min-width: clamp(80px, 13.542vw, 260px);
}

.path-step {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 2.604vw, 50px);
}
.step-label {
  font-size: clamp(13px, 2.083vw, 40px);
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: #000;
}
.step-thumb {
  width: 100%;
  aspect-ratio: 1;
  border-radius: clamp(6px, 1.563vw, 30px);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}
.step-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.step-arrow {
  height: calc(clamp(13px, 2.083vw, 40px) * 1.6);
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-arrow img {
  width: clamp(14px, 3.125vw, 60px);
  height: auto;
}

/* ============================================================
   CTA SECTION
   深色背景用 ::before 伪元素固定高度，卡片内容可延伸到深色区域以下
   ============================================================ */
.cta-section {
  position: relative;
  padding-bottom: clamp(30px, 4.167vw, 80px);
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(320px, 51.406vw, 987px);
  background: var(--dark);
  z-index: 0;
}
.cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr clamp(300px, 49.43vw, 949px);
  gap: clamp(24px, 2.083vw, 40px);
  align-items: start;
  padding-top: clamp(40px, 6.51vw, 125px);
}
.cta-left {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 1.823vw, 35px);
}
.cta-heading {
  font-size: clamp(22px, 3.125vw, 60px);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.3;
  max-width: clamp(280px, 35.57vw, 683px);
}
.cta-body {
  font-size: clamp(14px, 2.083vw, 40px);
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.02em;
  max-width: clamp(280px, 41.15vw, 790px);
  line-height: 1.5;
}
.cta-btns {
  display: flex;
  gap: clamp(10px, 1.563vw, 30px);
  flex-wrap: wrap;
}
.cta-right {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.083vw, 40px);
}
.cta-photo {
  width: 100%;
  aspect-ratio: 949 / 592;
  object-fit: cover;
  border-radius: clamp(10px, 1.563vw, 30px);
}
.cta-bullets {
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 0.417vw, 8px);
}
.cta-bullets p {
  font-size: clamp(14px, 2.083vw, 40px);
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.02em;
  line-height: 1.6;
}
.cta-lower-card {
  position: relative;
  border-radius: clamp(10px, 1.563vw, 30px);
  overflow: hidden;
  aspect-ratio: 732 / 527;
  background: #fff;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}
.cta-lower-card img {
  position: absolute;
  left: 6.56%;
  top: 10%;
  width: 86.75%;
  height: 60.34%;
  object-fit: cover;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--footer-dark);
}
.footer-inner,
.footer-grid {
  padding-top: clamp(40px, 3.125vw, 60px);
  padding-bottom: clamp(24px, 1.563vw, 30px);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: clamp(24px, 2.083vw, 40px);
  align-items: start;
}
.footer-brand p,
.footer-tagline {
  font-size: clamp(12px, 1.458vw, 28px);
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.03em;
  margin-top: clamp(12px, 0.833vw, 16px);
  max-width: clamp(200px, 18.75vw, 360px);
  line-height: 1.55;
}
.footer-brand .brand {
  margin-bottom: 4px;
}
.footer-col h4,
.footer-heading {
  font-size: clamp(16px, 2.188vw, 42px);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  margin-bottom: clamp(12px, 0.833vw, 16px);
}
.footer-col ul,
.footer-list {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 0.625vw, 12px);
}
.footer-col ul li::before,
.footer-list li::before {
  content: "•";
  color: var(--muted);
  margin-right: 0.6em;
  font-size: 0.7em;
  vertical-align: middle;
}
.footer-col ul a,
.footer-col ul li,
.footer-list a,
.footer-list li {
  font-size: clamp(12px, 1.823vw, 35px);
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.02em;
}
.footer-col ul a:hover,
.footer-list a:hover { color: var(--green); }
.footer-col p,
.footer-area {
  font-size: clamp(12px, 1.458vw, 28px);
  color: var(--muted);
  letter-spacing: 0.02em;
  line-height: 1.55;
}
.footer-contact-line,
.footer-line {
  display: flex;
  gap: 0.4em;
  flex-wrap: wrap;
  margin-bottom: clamp(4px, 0.417vw, 8px);
  font-size: clamp(12px, 1.458vw, 28px);
  color: var(--muted);
  letter-spacing: 0.02em;
}
.footer-contact-line a,
.footer-line a {
  font-weight: 700;
  color: var(--green);
  text-decoration: underline;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: clamp(12px, 1.042vw, 20px) 0;
}
.footer-bottom.wrap,
.footer-bottom > .wrap,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p,
.footer-copy {
  font-size: clamp(12px, 1.458vw, 28px);
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.footer-legal {
  display: flex;
  gap: clamp(12px, 1.042vw, 20px);
}
.footer-legal a {
  font-size: clamp(12px, 1.458vw, 28px);
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.footer-legal a:hover { color: #fff; }

/* ============================================================
   SUBPAGE – for-homes / for-businesses shared header support
   (btn-header alias already covered by .btn-primary styling)
   ============================================================ */
.page-for-homes .site-header,
.page-for-businesses .site-header {
  height: clamp(60px, 5.208vw, 100px);
}

/* ============================================================
   MOBILE BREAKPOINT  ≤ 768px
   ============================================================ */
@media (max-width: 768px) {
  :root { --px: 20px; }

  /* Header */
  .nav { display: none; }
  .site-header { height: 60px; }
  .header-inner { grid-template-columns: auto 1fr; }

  /* Hero */
  .hero { height: auto; min-height: 400px; }
  .hero-content { padding-bottom: 40px; }
  .hero-title { margin-top: 60px; }
  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(11, 10, 10, 0.5) 0%,
      rgba(11, 10, 10, 0.8) 100%
    );
  }

  /* Solutions */
  .sol-grid { grid-template-columns: 1fr; }
  .sol-card { aspect-ratio: 4 / 3; }

  /* Why */
  .why-sub { white-space: normal; }
  .why-row { grid-template-columns: 1fr; }
  .why-cell { aspect-ratio: auto; min-height: 260px; }
  .why-text { max-width: 60%; }

  /* Path */
  .path-panel {
    grid-template-columns: 1fr;
  }
  .path-visual { aspect-ratio: 16 / 9; }
  .path-row,
  .path-row-b {
    grid-template-columns: 1fr auto 1fr;
    row-gap: 16px;
  }
  .path-step:nth-child(5),
  .path-row > .step-arrow:nth-child(4) {
    display: none;
  }
  .path-row-b .path-step:first-child,
  .path-row-b .step-arrow,
  .path-row-b .path-step:nth-child(3) { }
  .path-cta {
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: 12px;
    align-self: auto;
  }

  /* CTA */
  .cta-dark-inner { grid-template-columns: 1fr; }
  .cta-lower-inner { grid-template-columns: 1fr; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   TABLET BREAKPOINT  769px – 1100px
   ============================================================ */
@media (min-width: 769px) and (max-width: 1100px) {
  /* Solutions */
  .sol-card { aspect-ratio: 3 / 2; }

  /* Path */
  .path-panel {
    grid-template-columns: clamp(140px, 22vw, 320px) 1fr;
  }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
