:root {
  --ink: #10151c;
  --charcoal: #1b222b;
  --stone: #6f746f;
  --ivory: #f7f2e8;
  --paper: #fffaf0;
  --gold: #c9973b;
  --gold-soft: #e4c371;
  --copper: #a45e37;
  --teal: #1d6f6b;
  --blue: #1d5c96;
  --line: rgba(16, 21, 28, .14);
  --shadow: 0 24px 70px rgba(16, 21, 28, .18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 118px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.section-pad {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 18px 20px auto;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 12px 14px;
  color: #fff;
  background: rgba(16, 21, 28, .76);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .2);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  background: rgba(16, 21, 28, .94);
}

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

.brand-logo {
  display: block;
  height: 68px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  padding: 6px 14px;
  background: rgba(255, 255, 255, .96);
  border-radius: 8px;
}

.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 24px;
  color: rgba(255, 255, 255, .8);
  font-size: 14px;
  font-weight: 700;
}

.main-nav a:hover {
  color: #fff;
}

.header-cta {
  padding: 10px 14px;
  color: var(--ink);
  background: var(--gold-soft);
  border-radius: 6px;
  font-weight: 800;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: transparent;
  border-radius: 6px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #fff;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  color: #fff;
  background: var(--ink);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 21, 28, .94) 0%, rgba(16, 21, 28, .78) 47%, rgba(16, 21, 28, .34) 100%),
    url("../images/sge-hero-bg.jpg") center/cover;
  transform: scale(1.05);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
  gap: 52px;
  align-items: center;
  min-height: 100vh;
  padding-top: 120px;
  padding-bottom: 64px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.02;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(48px, 7vw, 96px);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4.5vw, 62px);
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.2;
}

.hero-lede {
  max-width: 620px;
  color: rgba(255, 255, 255, .82);
  font-size: 19px;
}

.hero-actions,
.solar-links,
.contact-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
}

.btn.primary {
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  box-shadow: 0 12px 28px rgba(201, 151, 59, .26);
}

.btn.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .08);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-row span {
  padding: 7px 10px;
  color: rgba(255, 255, 255, .8);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-visual {
  perspective: 1100px;
}

.photo-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .45);
  transform: rotateY(-8deg) rotateX(4deg);
}

.photo-frame img {
  height: 590px;
  object-fit: cover;
}

.floating-card {
  position: absolute;
  display: grid;
  gap: 2px;
  min-width: 138px;
  padding: 14px;
  color: #fff;
  background: rgba(16, 21, 28, .82);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  backdrop-filter: blur(14px);
}

.floating-card strong {
  color: var(--gold-soft);
  font-size: 26px;
  line-height: 1;
}

.floating-card span {
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
}

.card-one {
  left: 18px;
  bottom: 20px;
}

.card-two {
  right: 18px;
  top: 20px;
}

.stats-band {
  color: #fff;
  background: var(--charcoal);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding-top: 26px;
  padding-bottom: 26px;
}

.stats-grid div {
  min-height: 110px;
  padding: 22px;
  background: rgba(255, 255, 255, .045);
}

.stats-grid strong,
.stats-grid span {
  display: block;
}

.stats-grid strong {
  color: var(--gold-soft);
  font-size: 22px;
}

.stats-grid span {
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
}

.intro,
.services,
.projects,
.process,
.contact {
  padding-top: 96px;
  padding-bottom: 96px;
}

.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: end;
}

.intro-copy {
  color: var(--stone);
  font-size: 18px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

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

.service-card {
  display: block;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(16, 21, 28, .06);
  color: var(--ink);
  transition: transform .25s ease, box-shadow .25s ease;
}

.service-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}

.service-card p,
.service-card li {
  color: var(--stone);
}

.service-card ul {
  padding-left: 18px;
  margin: 18px 0 0;
}

.icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 24px;
  border-radius: 8px;
  background: var(--charcoal);
}

.icon svg {
  width: 30px;
  height: 30px;
}

.transport-detail {
  padding-top: 0;
  padding-bottom: 96px;
}

.transport-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.transport-card {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(16, 21, 28, .06);
}

.transport-card strong {
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 28px;
  line-height: 1;
}

.transport-card p {
  color: var(--stone);
}

.solar-section {
  color: #fff;
  background: linear-gradient(135deg, #111821 0%, #153d4c 55%, #172620 100%);
  overflow: hidden;
}

.solar-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 54px;
  align-items: center;
  padding-top: 104px;
  padding-bottom: 46px;
}

.solar-copy p {
  color: rgba(255, 255, 255, .78);
  font-size: 17px;
}

.solar-links {
  align-items: center;
}

.solar-links-label {
  width: 100%;
  margin: 0 0 4px;
  color: rgba(255, 255, 255, .55);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.solar-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 10px 22px rgba(201, 151, 59, .3);
  transition: transform .18s ease, box-shadow .18s ease;
}

.solar-links a::after {
  content: "\2197";
  font-size: 14px;
}

.solar-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(201, 151, 59, .42);
}

.benefit-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.benefit-list span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px dashed rgba(255, 255, 255, .22);
  background: transparent;
  border-radius: 6px;
  color: rgba(255, 255, 255, .82);
  font-weight: 600;
  font-size: 13px;
}

.benefit-list span::before {
  content: "\2713";
  color: var(--gold-soft);
  font-weight: 900;
}

.solar-visual {
  position: relative;
  height: 430px;
}

.sun-core {
  position: absolute;
  top: 32px;
  left: 42px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff4a8 0%, #f5b942 52%, #d27d2f 100%);
  box-shadow: 0 0 60px rgba(245, 185, 66, .55);
  animation: pulse 2.6s infinite ease-in-out;
}

.energy-line {
  position: absolute;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #f7d066, transparent);
  animation: flow 1.8s infinite linear;
}

.line-one {
  top: 172px;
  left: 96px;
  width: 220px;
  transform: rotate(25deg);
}

.line-two {
  right: 58px;
  bottom: 132px;
  width: 190px;
  transform: rotate(-18deg);
}

.panel-array {
  position: absolute;
  left: 118px;
  top: 184px;
  display: grid;
  grid-template-columns: repeat(4, 54px);
  gap: 8px;
  padding: 14px;
  background: #0c2538;
  border: 3px solid rgba(255, 255, 255, .78);
  border-radius: 8px;
  transform: rotateX(58deg) rotateZ(-16deg);
  box-shadow: 0 30px 45px rgba(0, 0, 0, .32);
}

.panel-array span {
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .35);
  background: linear-gradient(135deg, #1f6fac, #0f3e64);
}

.mini-home {
  position: absolute;
  right: 54px;
  bottom: 38px;
  width: 128px;
  height: 118px;
}

.mini-home .roof {
  position: absolute;
  left: 5px;
  top: 0;
  width: 118px;
  height: 70px;
  background: var(--gold);
  clip-path: polygon(50% 0, 100% 58%, 86% 58%, 86% 100%, 14% 100%, 14% 58%, 0 58%);
}

.mini-home .body {
  position: absolute;
  left: 24px;
  bottom: 0;
  width: 80px;
  height: 70px;
  background: #f8f1e4;
}

.mini-home .door {
  position: absolute;
  left: 56px;
  bottom: 0;
  width: 22px;
  height: 42px;
  background: var(--teal);
}

.solar-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding-bottom: 96px;
}

.solar-steps article {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .07);
}

.solar-steps strong {
  display: block;
  color: var(--gold-soft);
  font-size: 26px;
}

.scheme-box {
  margin-top: -48px;
  padding-bottom: 96px;
}

.scheme-box h3,
.scheme-box p {
  max-width: 900px;
}

.scheme-box p {
  color: rgba(255, 255, 255, .74);
}

.project-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.project-controls button {
  padding: 10px 14px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.project-controls button.active {
  color: #fff;
  background: var(--charcoal);
}

.gallery-link {
  margin-left: auto;
  padding: 10px 14px;
  border-radius: 6px;
  color: #fff;
  background: var(--charcoal);
  font-weight: 800;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.project-card {
  position: relative;
  overflow: hidden;
  min-height: 310px;
  border-radius: 8px;
  background: var(--charcoal);
  box-shadow: 0 18px 50px rgba(16, 21, 28, .1);
}

.project-card[hidden] {
  display: none;
}

.project-card img {
  height: 100%;
  min-height: 310px;
  object-fit: cover;
  transition: transform .45s ease;
}

.project-card:hover img {
  transform: scale(1.06);
}

.project-card div {
  position: absolute;
  inset: auto 16px 16px;
  padding: 16px;
  color: #fff;
  background: rgba(16, 21, 28, .78);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  backdrop-filter: blur(14px);
}

.project-card span {
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 4px 0 0;
}

.process {
  background: #fff;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.timeline-item {
  min-height: 260px;
  padding: 24px;
  background: #fff;
}

.timeline-item span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 30px;
  color: var(--ink);
  background: var(--gold-soft);
  border-radius: 6px;
  font-weight: 900;
}

.timeline-item p {
  color: var(--stone);
  font-size: 14px;
}

.contact {
  color: #fff;
  background: var(--ink);
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 42px;
  align-items: start;
  padding: 44px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)),
    url("../images/choose_bg.jpg") center/cover;
}

.contact-panel p {
  color: rgba(255, 255, 255, .78);
}

.contact-methods {
  margin-top: 24px;
}

.contact-methods a {
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 6px;
  background: rgba(255, 255, 255, .08);
  font-weight: 800;
}

.quote-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  background: rgba(255, 250, 240, .96);
  border-radius: 8px;
  color: var(--ink);
}

.quote-form label {
  display: grid;
  gap: 6px;
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 800;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: #fff;
  color: var(--ink);
}

.form-note {
  min-height: 20px;
  margin: 0;
  color: var(--stone);
  font-size: 13px;
}

.site-footer {
  color: rgba(255, 255, 255, .74);
  background: #080b10;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 40px;
}

.footer-brand strong {
  display: block;
  margin-bottom: 10px;
  color: #fff;
  font-family: "Playfair Display", serif;
  font-size: 20px;
  font-weight: 800;
}

.footer-brand p {
  max-width: 280px;
  margin: 0;
  color: rgba(255, 255, 255, .6);
  font-size: 14px;
}

.footer-col span {
  display: block;
  margin-bottom: 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.footer-col a {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, .68);
  font-size: 14px;
  line-height: 1.5;
  transition: color .15s ease;
}

.footer-col a:first-of-type {
  margin-top: 0;
}

.footer-col a:hover {
  color: var(--gold-soft);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .45);
  font-size: 12.5px;
}

.page-hero {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(16, 21, 28, .92), rgba(16, 21, 28, .68)),
    url("../images/sge-hero-bg.jpg") center/cover;
  padding: 160px 0 86px;
}

.page-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(42px, 6vw, 78px);
}

.page-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, .78);
  font-size: 18px;
}

.content-section {
  padding-top: 90px;
  padding-bottom: 90px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
}

.text-block p {
  color: var(--stone);
  font-size: 17px;
}

.value-grid,
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.value-card,
.contact-info-card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(16, 21, 28, .05);
}

.value-card p,
.contact-info-card p {
  color: var(--stone);
}

.image-panel {
  overflow: hidden;
  height: 440px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.image-panel img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  transition: transform .45s ease;
}

.image-panel:hover img {
  transform: scale(1.05);
}

.map-embed {
  overflow: hidden;
  height: 380px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.gallery-slot {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: zoom-in;
}

.gallery-slot img {
  height: 260px;
  object-fit: cover;
  transition: transform .4s ease;
}

.gallery-slot:hover img {
  transform: scale(1.06);
}

.gallery-slot span {
  position: absolute;
  inset: auto 12px 12px;
  padding: 9px 10px;
  color: #fff;
  background: rgba(16, 21, 28, .78);
  border-radius: 6px;
  font-weight: 800;
  font-size: 13px;
}

.gallery-slot.placeholder {
  display: grid;
  place-items: center;
  color: var(--stone);
  border-style: dashed;
}

.gallery-slot.placeholder span {
  position: static;
  color: var(--stone);
  background: transparent;
}

.office-map {
  display: grid;
  align-content: end;
  min-height: 340px;
  padding: 30px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(16, 21, 28, .92), rgba(29, 111, 107, .72)),
    url("../images/choose_bg.jpg") center/cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.office-map p {
  max-width: 420px;
  color: rgba(255, 255, 255, .78);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes flow {
  from { background-position: 0 0; }
  to { background-position: 220px 0; }
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .main-nav {
    grid-column: 1 / -1;
    display: none;
    justify-self: stretch;
    padding: 14px 0 4px;
    border-top: 1px solid rgba(255, 255, 255, .14);
  }

  .main-nav.is-open {
    display: grid;
    gap: 10px;
  }

  .header-cta {
    display: none;
  }

  .hero-grid,
  .intro,
  .solar-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .stats-grid,
  .solar-steps,
  .transport-grid,
  .value-grid,
  .contact-info-grid,
  .gallery-page-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline,
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-visual {
    max-width: 560px;
  }
}

@media (max-width: 700px) {
  .section-pad {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    inset: 10px 10px auto;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px 58px 10px 10px;
  }

  .nav-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    height: 52px;
    width: auto;
    max-width: 190px;
    padding: 5px 10px;
  }

  .hero-grid {
    gap: 30px;
    padding-top: 112px;
    overflow: hidden;
  }

  .hero-copy,
  .hero-copy * {
    max-width: 100%;
  }

  .hero-copy .eyebrow {
    max-width: 28ch;
    line-height: 1.45;
  }

  h1 {
    font-size: clamp(36px, 11.4vw, 44px);
    max-width: 11ch;
  }

  .hero-lede {
    max-width: 31ch;
    font-size: 17px;
  }

  .trust-row {
    gap: 8px;
  }

  .trust-row span {
    padding: 6px 8px;
    font-size: 11px;
  }

  .hero-visual {
    width: 100%;
    max-width: 100%;
  }

  .photo-frame {
    transform: none;
  }

  .photo-frame img {
    height: 430px;
  }

  .service-grid,
  .stats-grid,
  .solar-steps,
  .timeline,
  .project-grid,
  .footer-grid,
  .transport-grid,
  .value-grid,
  .contact-info-grid,
  .gallery-page-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .gallery-link {
    margin-left: 0;
  }

  .page-hero {
    padding-top: 132px;
  }

  .solar-visual {
    height: 340px;
    transform: scale(.82);
    transform-origin: top left;
  }

  .contact-panel {
    padding: 22px;
  }

  .quote-form {
    padding: 16px;
  }
}

/* ---- Services teaser (homepage condensed cards) ---- */
.services-teaser-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 34px;
}

.teaser-card {
  padding: 26px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(16, 21, 28, .05);
  transition: transform .18s ease, box-shadow .18s ease;
}

.teaser-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(16, 21, 28, .1);
}

.teaser-card p {
  margin: 8px 0 14px;
  color: var(--stone);
  font-size: 14px;
}

.teaser-link {
  display: inline-block;
  margin-top: 4px;
  color: var(--blue);
  font-weight: 800;
  font-size: 13px;
}

.teaser-link::after {
  content: "\2192";
  margin-left: 6px;
}

.services-cta {
  text-align: center;
}

/* ---- Services page detail sections ---- */
.service-detail {
  padding-top: 70px;
  padding-bottom: 70px;
}

.service-detail:nth-child(even) {
  background: #fff;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.service-detail-grid.reverse .service-detail-media {
  order: 2;
}

.service-detail-media {
  overflow: hidden;
  height: 380px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.service-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.service-detail-media:hover img {
  transform: scale(1.05);
}

.service-detail-copy .eyebrow {
  margin-bottom: 10px;
}

.service-detail-copy p {
  color: var(--stone);
  font-size: 16px;
}

.service-detail-copy ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.service-detail-copy ul li {
  padding-left: 26px;
  position: relative;
  color: var(--charcoal);
  font-weight: 600;
  font-size: 14.5px;
}

.service-detail-copy ul li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 900;
}

.service-nav-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 26px 0;
}

.service-nav-strip a {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--charcoal);
  font-weight: 800;
  font-size: 13px;
}

.service-nav-strip a:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.cta-banner {
  color: #fff;
  text-align: center;
  padding: 70px 0;
  background: linear-gradient(135deg, #111821 0%, #17324a 100%);
}

.cta-banner h2 {
  margin-bottom: 10px;
}

.cta-banner p {
  margin: 0 auto 26px;
  max-width: 560px;
  color: rgba(255, 255, 255, .78);
}

@media (max-width: 900px) {
  .services-teaser-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-detail-grid {
    grid-template-columns: 1fr;
  }

  .service-detail-grid.reverse .service-detail-media {
    order: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .image-panel,
  .map-embed,
  .service-detail-media {
    height: 300px;
  }
}

@media (max-width: 620px) {
  .services-teaser-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.contact-quick-note {
  margin-top: 16px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, .55);
}

.solar-photo-strip {
  overflow: hidden;
  height: 320px;
  margin-top: 46px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.solar-photo-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .solar-photo-strip {
    height: 220px;
  }
}

/* ---- Gallery lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(8, 11, 16, .92);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-inner {
  position: relative;
  max-width: min(1100px, 100%);
  max-height: 100%;
}

.lightbox-inner img {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}

.lightbox-caption {
  margin-top: 14px;
  color: rgba(255, 255, 255, .85);
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  transition: background .15s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, .24);
}

.lightbox-close {
  top: -56px;
  right: 0;
}

.lightbox-prev {
  top: 50%;
  left: -60px;
  transform: translateY(-50%);
}

.lightbox-next {
  top: 50%;
  right: -60px;
  transform: translateY(-50%);
}

@media (max-width: 900px) {
  .lightbox {
    padding: 20px;
  }

  .lightbox-prev {
    left: 4px;
  }

  .lightbox-next {
    right: 4px;
  }

  .lightbox-close {
    top: -46px;
    right: 4px;
  }
}
