/* Service and location pages (/residential, /commercial, /projects, /locations/*).
   Loaded after styles.css: reuses its tokens, type, buttons, package and portfolio
   cards (.pk, .pj, .pj-feature), logo walls and footer. Generated by .claude/gen-pages.js.
   No scripts and no entrance motion: everything renders in its final state. */

/* ---------- top bar ---------- */
.pg-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 20px; padding-bottom: 20px;
}
.pg-logo img { height: 40px; width: auto; }
.pg-top .btn { height: 42px; }

/* ---------- hero ---------- */
.pg-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding-top: clamp(20px, 4vw, 48px);
}
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.crumbs a:hover { color: var(--ink); }
.pg-hero .kicker { margin-top: 24px; display: flex; align-items: center; gap: 10px; }
.pg-title {
  margin-top: 12px;
  font-size: clamp(34px, 2.8vw + 16px, 56px);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.015em;
}
.pg-hero .lede { margin-top: 20px; max-width: 580px; }
.pg-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.pg-hero-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-panel);
  overflow: hidden;
}

/* ---------- figures ---------- */
.pg-stats {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}
.pg-stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 20px 22px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
}
.pg-stat strong {
  font-size: clamp(36px, 1.8vw + 22px, 52px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.pg-stat small { margin-left: 4px; font-size: 22px; font-weight: 400; letter-spacing: 0; color: var(--accent-text); }
.pg-stat span { font-size: 14px; line-height: 1.6; color: var(--ink-soft); }

/* ---------- sections ---------- */
.pg-section { margin-top: clamp(72px, 9vw, 128px); scroll-margin-top: 24px; }
.pg-head { max-width: 720px; margin-bottom: 32px; }
.pg-head .h2 { margin-top: 10px; }
.pg-head .lede { margin-top: 16px; }
.pg-sub { margin: 48px 0 20px; font-size: clamp(20px, .8vw + 14px, 26px); font-weight: 400; line-height: 1.35; }
.pg-sub small { margin-left: 8px; font-size: 14px; color: var(--muted); }

/* package cards use an h3 here (an h4 on the homepage); same look */
.pk .pk-name { font-size: 18px; font-weight: 500; line-height: 1.4; }

/* packages: four cards across on wide screens */
.pk-grid--4 { grid-template-columns: repeat(4, 1fr); }
/* the spare cell beside two packages points to the calculator */
.pg-pk-cta {
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
  padding: 24px;
  border-radius: var(--r-card);
  background: var(--surface);
}
.pg-pk-cta h3 { font-size: 20px; font-weight: 400; line-height: 1.4; }
.pg-pk-cta p { margin-top: 10px; font-size: 15px; line-height: 1.7; color: var(--muted); }
.pg-pk-cta .btn { align-self: flex-start; }

/* portfolio: four across on the full-width pages */
.pj-grid--wide { grid-template-columns: repeat(4, 1fr); }

/* cards with a title and a paragraph (benefits, return on investment) */
.pg-cards {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.pg-card {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--card);
}
.pg-card h3 { font-size: clamp(18px, .5vw + 14px, 21px); font-weight: 400; line-height: 1.4; }
.pg-card p { margin-top: 10px; font-size: 15px; line-height: 1.7; color: var(--muted); }

/* how we work: orange numerals */
.pg-steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.pg-steps li {
  counter-increment: step;
  padding: 22px 24px 24px;
  border-top: 2px solid var(--orange);
  background: var(--card);
  border-radius: 0 0 var(--r-card) var(--r-card);
}
.pg-steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 34px; font-weight: 300; line-height: 1;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}
.pg-steps h3 { margin-top: 16px; font-size: 18px; font-weight: 500; line-height: 1.4; }
.pg-steps p { margin-top: 8px; font-size: 15px; line-height: 1.7; color: var(--muted); }

.pg-note { margin-top: 20px; max-width: 760px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.pg-note a, .pg-inline a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }

/* in-page jump links (projects) */
.pg-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.pg-jump a {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  font-size: 14px;
  transition: background-color .2s, border-color .2s;
}
.pg-jump a:hover { background: var(--surface); border-color: var(--surface); }
.pg-jump small { color: var(--muted); font-size: 14px; }

/* headquarters and contact (location page) */
.pg-hq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.pg-hq-card {
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: var(--card);
}
.pg-hq-card h3 { font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.pg-hq-card address { margin-top: 12px; font-style: normal; font-size: 17px; line-height: 1.8; }
.pg-hq-card dl { margin-top: 18px; border-top: 1px solid var(--line); }
.pg-hq-card dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.pg-hq-card dt { color: var(--muted); white-space: nowrap; }
.pg-hq-card dd { text-align: right; }
.pg-contact { list-style: none; margin-top: 12px; display: grid; gap: 8px; }
.pg-contact a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 52px; padding: 0 8px 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 15px;
  transition: background-color .2s, border-color .2s;
}
.pg-contact a:hover { background: var(--surface); border-color: var(--surface); }
.pg-contact span:first-child { flex: none; width: 52px; color: var(--muted); font-size: 14px; }
.pg-contact strong { font-weight: 500; margin-right: auto; overflow-wrap: anywhere; }
.pg-contact .btn-ico { background: var(--cta); color: var(--white); }

.pg-directions { margin-top: 20px; }
/* Google Maps listing of the HQ, under the address and contact cards */
.pg-map {
  position: relative;
  margin-top: 12px;
  height: clamp(300px, 36vw, 440px);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  overflow: hidden;
}
.pg-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.pg-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.pg-chips li {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: 15px;
}
.pg-chips li.is-home { background: var(--cta); color: var(--white); }

/* related pages */
.pg-links {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.pg-links a {
  display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
  height: 100%;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--card);
  transition: border-color .25s;
}
.pg-links a:hover { border-color: var(--orange); }
.pg-links strong { font-size: 18px; font-weight: 500; line-height: 1.4; }
.pg-links span { font-size: 14px; line-height: 1.6; color: var(--muted); }
.pg-links .btn-ico { background: var(--surface); color: var(--ink); align-self: flex-end; }

/* ---------- 404 (404.html) ----------
   One frosted-glass card on the lit drafting stage used by the EPC flow. Only the
   decorative "404" numerals move; the message and buttons render in place. */
.nf {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px var(--gutter);
  background:
    radial-gradient(55% 45% at 12% 0%, rgb(var(--orange-rgb) / .24), transparent 70%),
    radial-gradient(45% 45% at 100% 100%, rgb(var(--orange-rgb) / .14), transparent 70%);
}
.nf-stage { width: min(100%, 640px); display: grid; justify-items: center; gap: 28px; text-align: center; }
.nf-logo { display: block; border-radius: var(--r-card); transition: transform .35s var(--ease); }
.nf-logo:hover { transform: translateY(-2px); }
.nf-logo img { display: block; height: 56px; width: auto; }
.nf-card {
  width: 100%;
  padding: clamp(32px, 5vw, 56px) clamp(22px, 5vw, 56px);
  border: 1px solid var(--glass-line);
  border-radius: calc(var(--r-panel) + 8px);
  background: var(--glass);
  box-shadow: var(--glass-shadow), 0 40px 80px -48px rgb(var(--orange-rgb) / .55);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}
.nf-code {
  font-size: clamp(96px, 18vw, 168px);
  font-weight: 300;
  line-height: .9;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--orange) 10%, rgb(var(--orange-rgb) / .2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rise-in .9s var(--ease) .1s backwards;
}
.nf-title { margin-top: 16px; font-size: clamp(26px, 1.6vw + 18px, 36px); font-weight: 400; line-height: 1.3; text-wrap: balance; }
.nf-text { margin: 14px auto 0; max-width: 460px; font-size: 16px; line-height: 1.75; color: var(--muted); }
.nf-actions { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.nf-ghost { border: 1px solid var(--line-strong); color: var(--ink); transition: background-color .2s, border-color .2s; }
.nf-ghost:hover { background: var(--hover); border-color: var(--ink-soft); }
.nf-links {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px;
}
.nf-links a {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 14px;
  border-radius: var(--r-pill);
  font-size: 14px;
  color: var(--ink-soft);
  transition: background-color .2s, color .2s;
}
.nf-links a:hover { background: var(--hover); color: var(--ink); }
.nf-foot { font-size: 14px; color: var(--muted); }
@media (max-width: 639px) {
  .nf-actions .btn { width: 100%; justify-content: center; }
  .nf-actions .btn--orange { justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .nf-code { animation-name: fade-in; }
  .nf-logo, .nf-logo:hover { transition: none; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .pk-grid--4 { grid-template-columns: 1fr 1fr; gap: 36px 16px; }
  .pj-grid--wide { grid-template-columns: repeat(3, 1fr); }
  .pg-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
  .pg-hero { grid-template-columns: 1fr; }
  .pj-grid--wide { grid-template-columns: 1fr 1fr; }
  .pg-cards { grid-template-columns: 1fr; }
  .pg-hq { grid-template-columns: 1fr; }
}
@media (max-width: 639px) {
  .pg-logo img { height: 34px; }
  .pg-top .btn { padding: 0 6px 0 16px; }
  .pg-cta .btn { width: 100%; justify-content: space-between; }
  .pk-grid--4 { grid-template-columns: 1fr; gap: 40px; }
  .pj-grid--wide { grid-template-columns: 1fr; gap: 36px; }
  .pg-steps { grid-template-columns: 1fr; }
  .pg-stats { grid-template-columns: 1fr 1fr; }
  .pg-stat { padding: 16px 18px; }
  .pg-hq-card { padding: 22px 20px; }
  .pg-hq-card dl div { flex-direction: column; gap: 2px; }
  .pg-hq-card dd { text-align: left; }
}
