/* Natural scrolling section layout */

:root {
  --screen-h: 100vh;
  --screen-h: 100dvh;
}

/* Prevent full-bleed sections from causing horizontal scroll */
.section--split,
.screen-split,
.hero {
  max-width: 100%;
  overflow-x: hidden;
}

.hero {
  min-height: var(--screen-h);
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-sizing: border-box;
}

.section--screen {
  min-height: 0;
  display: block;
  box-sizing: border-box;
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.trust-strip {
  min-height: 0;
  height: auto;
  display: block;
  box-sizing: border-box;
  padding-block: clamp(3rem, 7vw, 5rem);
  background: #ffffff;
  color: var(--ink);
}

.trust-intro {
  margin-bottom: 1.75rem;
}

.trust-strip .trust-num {
  color: var(--navy);
}

.trust-strip .trust-label {
  color: var(--ink-muted);
}

/* Edge-to-edge half / half split */
.section--split {
  padding: 0;
  justify-content: stretch;
}

.section--split > .container {
  display: none;
}

.screen-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  min-height: var(--screen-h);
  flex: 1;
}

.screen-split--reverse .screen-media {
  order: 2;
}

.screen-media {
  position: relative;
  min-height: var(--screen-h);
  overflow: hidden;
  background: var(--ice);
}

.screen-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.screen-copy {
  display: flex;
  align-items: center;
  min-height: var(--screen-h);
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  background: var(--white);
}

.section--ice .screen-copy,
.screen-copy--ice {
  background: var(--ice);
}

.screen-copy-inner {
  max-width: 560px;
  width: 100%;
  margin-inline: auto;
}

.screen-copy-inner .compare-table {
  font-size: 0.85rem;
}

.screen-copy-inner .benefit-list {
  margin-top: 1.25rem;
}

.screen-copy-inner p {
  font-size: 0.95rem;
}

/* Full-bleed image background sections */
.section--bg {
  position: relative;
  padding: 0;
  color: var(--white);
  justify-content: center;
  overflow: hidden;
}

.section--bg .screen-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.section--bg .screen-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(7, 29, 51, 0.88) 0%,
    rgba(11, 42, 74, 0.72) 45%,
    rgba(11, 42, 74, 0.45) 100%
  );
}

.section--bg .screen-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: clamp(3rem, 8vh, 6rem);
}

.section--bg h2,
.section--bg .eyebrow,
.section--bg p,
.section--bg .trust-num,
.section--bg .trust-label {
  color: var(--white);
}

.section--bg .eyebrow {
  opacity: 0.8;
}

.section--bg .btn-secondary {
  color: var(--white);
  border-color: var(--white);
  box-shadow: none;
}

.section--bg .btn-secondary:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
  box-shadow: none;
}

.section--bg .btn-primary {
  background: #C8102E;
  color: var(--white);
  border-color: #C8102E;
  box-shadow: none;
}

.section--bg .btn-primary:hover {
  background: #A50D25;
  color: var(--white);
  border-color: #A50D25;
  box-shadow: none;
}

/* Centered content screens (no image split) */
.section--screen:not(.section--split):not(.section--bg):not(.section--panels) {
  padding-block: clamp(2.5rem, 6vh, 5rem);
}

.section--screen > .container {
  width: 100%;
  display: block;
}

/* Trust strip */
.trust-strip,
.trust-strip--white {
  position: relative;
  border: none;
  overflow: visible;
  background: var(--white);
  border-bottom: 1px solid var(--hairline);
}

.trust-strip > .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.trust-strip .trust-num {
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3rem);
}

.trust-strip .trust-label {
  color: var(--ink-muted);
}

.trust-strip .trust-item {
  border-right-color: var(--hairline);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.trust-danfoss {
  height: 36px;
  width: auto;
  object-fit: contain;
  margin-bottom: 0.15rem;
  border-radius: 3px;
}

.section-danfoss-logo {
  display: block;
  height: 42px;
  width: auto;
  object-fit: contain;
  margin-inline: auto;
  margin-bottom: 1.25rem;
  border-radius: 3px;
}

.process-steps--light .process-step h3,
.process-steps--light .process-step p {
  color: rgba(255, 255, 255, 0.9);
}

.process-steps--light .step-num {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.combo-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  object-position: left;
  margin-bottom: 1.25rem;
  border-radius: 3px;
}

/* Dual full-height panels (Where We Install) */
.section--panels {
  padding: 0;
  justify-content: stretch;
}

.screen-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  min-height: var(--screen-h);
  flex: 1;
}

.screen-panel {
  position: relative;
  min-height: var(--screen-h);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: var(--white);
}

.screen-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screen-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 29, 51, 0.88) 0%, rgba(11, 42, 74, 0.2) 55%, transparent 100%);
  z-index: 1;
}

.screen-panel-copy {
  position: relative;
  z-index: 2;
  padding: clamp(2rem, 5vw, 3.5rem);
  max-width: 420px;
}

.screen-panel-copy h3 {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.65rem;
}

.screen-panel-copy p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

/* Projects / tech / combo fill the screen with larger imagery */
.section--screen .projects-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  flex: 1;
}

.section--screen .project-card .img-frame {
  aspect-ratio: auto;
  height: clamp(140px, 22vh, 240px);
}

.section--screen .tech-strip {
  gap: 0.85rem;
  flex: 1;
  align-items: stretch;
}

.section--screen .tech-card {
  flex: 1 1 0;
  min-width: 200px;
}

.section--screen .tech-card .img-frame {
  aspect-ratio: auto;
  height: clamp(200px, 42vh, 420px);
}

.section--screen .combo-grid,
.section--screen .pillars,
.section--screen .process-steps,
.section--screen .contact-grid {
  flex: 1;
  align-content: center;
}

.section--screen .auth-block {
  min-height: calc(var(--screen-h) - 8rem);
  align-items: stretch;
}

.section--screen .auth-block .img-frame {
  min-height: 50vh;
  height: 100%;
}

.section--screen .auth-block .img-frame img {
  height: 100%;
  object-fit: cover;
}

.section--screen .map-embed,
.section--screen .map-embed iframe {
  min-height: 50vh;
  height: 100%;
}

.section--screen .faq-list {
  max-height: 62vh;
  overflow-y: auto;
  padding-right: 0.35rem;
}

.section--screen .section-intro {
  margin-bottom: 1.75rem;
  flex-shrink: 0;
}

.cta-band.section--bg .screen-content {
  text-align: center;
}

.cta-band.section--bg .btn-group {
  justify-content: center;
}

/* Pillars on full-bleed photo backgrounds */
.section--bg .pillar {
  border-top-color: rgba(255, 255, 255, 0.55);
}

.section--bg .pillar h3 {
  color: var(--white);
}

.section--bg .pillar p {
  color: rgba(255, 255, 255, 0.78);
}

.section--bg .pillar svg {
  stroke: rgba(255, 255, 255, 0.85);
}

.section.section--screen:not(.section--split):not(.section--bg):not(.section--panels) {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.section.section--screen.section--bg {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

/* Mobile: stack splits/panels, keep full-screen min-height */
@media (max-width: 900px) {
  .screen-split,
  .screen-panels {
    grid-template-columns: 1fr;
  }

  .screen-split--reverse .screen-media {
    order: 0;
  }

  .screen-media {
    min-height: 42vh;
    height: 42vh;
  }

  .screen-copy {
    min-height: auto;
    padding: 2.25rem 1.35rem 3rem;
  }

  .section--split,
  .section--panels,
  .screen-panels {
    min-height: 0;
  }

  .screen-split {
    min-height: auto;
  }

  .screen-panel {
    min-height: auto;
  }

  .section--screen .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section--screen .project-card .img-frame {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .section--screen .auth-block {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .section--screen .faq-list {
    max-height: none;
  }

  .section--bg .screen-bg-overlay {
    background: linear-gradient(
      to top,
      rgba(7, 29, 51, 0.92) 0%,
      rgba(11, 42, 74, 0.78) 55%,
      rgba(11, 42, 74, 0.55) 100%
    );
  }

  .section--bg .screen-content {
    padding-block: 3rem;
  }

  .section--screen .process-steps,
  .section--screen .contact-grid,
  .section--screen .pillars {
    margin-top: 0.5rem;
  }
}

@media (max-width: 540px) {
  .section--screen .projects-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .section--screen .project-card figcaption {
    font-size: 0.75rem;
  }

  .section--screen .project-card figcaption strong {
    font-size: 0.8rem;
  }
}
