/* =========================================================
   DONELSON CONSTRUCTION HOMEPAGE
   File: css/index.css
========================================================= */

/* =========================================================
   HOMEPAGE VARIABLES
========================================================= */

:root {
  --home-green: var(--site-color-01);
  --home-green-dark: var(--site-color-01-hover);
  --home-maroon: var(--site-color-02);
  --home-maroon-dark: var(--site-color-02-hover);
  --home-cream: var(--site-color-03);
  --home-cream-dark: var(--site-color-03-hover);

  --home-bg-dark: #151515;
  --home-bg-dark-soft: #202020;
  --home-bg-medium: #2b2b2b;
  --home-bg-light: #f3f3f0;
  --home-bg-white: #ffffff;

  --home-text-dark: #1d1d1d;
  --home-text-medium: #555555;
  --home-text-light: #f7f7f7;

  --home-border-light: rgba(255, 255, 255, 0.15);
  --home-border-dark: rgba(0, 0, 0, 0.12);

  --home-shadow-small: 0 8px 24px rgba(0, 0, 0, 0.14);
  --home-shadow-large: 0 20px 55px rgba(0, 0, 0, 0.24);

  --home-radius-small: 8px;
  --home-radius-medium: 16px;
  --home-radius-large: 24px;

  --home-section-padding: 10rem;
}

/* =========================================================
   GENERAL HOMEPAGE STYLES
========================================================= */

body {
  overflow-x: hidden;
}

main {
  width: 100%;
}

.home-section {
  position: relative;
  width: 100%;
  padding: var(--home-section-padding) 0;
}

.home-section img {
  display: block;
  max-width: 100%;
  height: auto;
}

.home-section p {
  max-width: none;
}

.section-heading {
  max-width: 850px;
  margin: 0 auto 6rem;
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 2rem;
  color: var(--home-text-dark);
  font-size: clamp(3.4rem, 5vw, 5.5rem);
  line-height: 1.08;
  text-transform: none;
}

.section-heading > p:last-child {
  color: var(--home-text-medium);
  font-size: 1.9rem;
  line-height: 1.7;
}

.section-heading-light h2,
.section-heading-light > p:last-child {
  color: var(--home-text-light);
}

.section-eyebrow,
.home-eyebrow {
  margin-bottom: 1.5rem;
  color: var(--home-green);
  font-family: Roboto, Arial, sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.16rem;
  text-transform: uppercase;
}

.section-heading-light .section-eyebrow {
  color: #9fd798;
}

.section-action {
  display: flex;
  justify-content: center;
  margin-top: 5rem;
}

/* =========================================================
   BUTTONS AND LEARN MORE LINKS
========================================================= */

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  margin: 0;
  padding: 1.3rem 2.4rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: Roboto, Arial, sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background-color: var(--home-green);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(10, 119, 0, 0.28);
}

.button-primary:hover {
  background-color: var(--home-green-dark);
  color: #ffffff;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.65);
  background-color: rgba(0, 0, 0, 0.2);
  color: #ffffff;
  backdrop-filter: blur(5px);
}

.button-secondary:hover {
  border-color: #ffffff;
  background-color: #ffffff;
  color: var(--home-text-dark);
}

.button-outline {
  border-color: var(--home-green);
  background-color: transparent;
  color: var(--home-green-dark);
}

.button-outline:hover {
  background-color: var(--home-green);
  color: #ffffff;
}

.learn-more-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 2.4rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--home-green);
  background-color: transparent;
  color: var(--home-green-dark);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.4;
  transition:
    color 160ms ease,
    border-color 160ms ease;
}

.learn-more-link span {
  margin-left: 0.8rem;
  font-size: 2rem;
  transition: transform 160ms ease;
}

.learn-more-link:hover {
  border-color: var(--home-maroon);
  background-color: transparent;
  color: var(--home-maroon);
}

.learn-more-link:hover span {
  transform: translateX(5px);
}

/* =========================================================
   HERO
========================================================= */

.home-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #111111;
}

.home-hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

.home-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(5, 5, 5, 0.9) 0%,
      rgba(5, 5, 5, 0.7) 48%,
      rgba(5, 5, 5, 0.22) 100%
    ),
    linear-gradient(0deg, rgba(5, 5, 5, 0.72) 0%, rgba(5, 5, 5, 0.08) 45%);
}

.home-hero-content {
  position: relative;
  z-index: 2;
  padding-top: 14rem;
  padding-bottom: 8rem;
}

.home-hero-content > * {
  max-width: 760px;
}

.home-hero .home-eyebrow {
  color: #b1e4ab;
}

.home-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(4.6rem, 7vw, 8rem);
  font-weight: 800;
  line-height: 0.98;
  text-align: left;
  text-transform: none;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.4);
}

.home-hero h1 span {
  display: block;
  margin-top: 1rem;
  color: var(--home-cream);
}

.home-hero-summary {
  margin-top: 2.8rem;
  color: #ffffff;
  font-size: clamp(1.9rem, 2.2vw, 2.35rem);
  line-height: 1.55;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 3.5rem;
}

.home-hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(760px, 100%);
  margin-top: 5.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.home-hero-highlights li {
  padding: 0 2rem;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.home-hero-highlights li:first-child {
  padding-left: 0;
}

.home-hero-highlights li:last-child {
  border-right: none;
}

.home-hero-highlights strong,
.home-hero-highlights span {
  display: block;
}

.home-hero-highlights strong {
  color: #ffffff;
  font-family: Roboto, Arial, sans-serif;
  font-size: clamp(2.2rem, 3vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
}

.home-hero-highlights span {
  margin-top: 0.7rem;
  color: rgba(255, 255, 255, 0.8);
  font-family: Roboto, Arial, sans-serif;
  font-size: 1.35rem;
  line-height: 1.4;
}

/* =========================================================
   ONE MACHINE / THREE FUNCTIONS / ONE PASS
========================================================= */

.home-one-pass {
  background-color: var(--home-bg-light);
}

.one-pass-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
  gap: 7rem;
  align-items: center;
}

.one-pass-machine {
  position: relative;
  margin: 0;
}

.one-pass-machine img {
  width: 100%;
  min-height: 480px;
  object-fit: cover;
  border-radius: var(--home-radius-large);
  box-shadow: var(--home-shadow-large);
}

.one-pass-machine figcaption {
  margin-top: 1.4rem;
  color: var(--home-text-medium);
  font-size: 1.45rem;
  font-style: normal;
  line-height: 1.5;
  text-align: left;
}

.one-pass-steps {
  display: grid;
  gap: 1.6rem;
}

.process-step {
  display: grid;
  grid-template-columns: 75px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  padding: 2.5rem;
  border: 1px solid var(--home-border-dark);
  border-radius: var(--home-radius-medium);
  background-color: #ffffff;
  box-shadow: var(--home-shadow-small);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.process-step:hover {
  transform: translateX(6px);
  border-color: rgba(10, 119, 0, 0.45);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.process-number {
  color: var(--home-green);
  font-family: Roboto, Arial, sans-serif;
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1;
}

.process-step-content h3 {
  margin-bottom: 0.8rem;
  color: var(--home-text-dark);
  font-size: 2.2rem;
  line-height: 1.3;
  text-transform: none;
}

.process-step-content p {
  color: var(--home-text-medium);
  font-size: 1.65rem;
  line-height: 1.65;
}

/* =========================================================
   INTERACTIVE PRESSUREPAVE® MACHINE PINGS
========================================================= */

.machine-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--home-radius-large);
  box-shadow: var(--home-shadow-large);
}

.machine-image-wrap img {
  display: block;
  width: 100%;
  min-height: 480px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

/* Numbered hotspot shown at all times */
.machine-ping {
  position: absolute;
  z-index: 3;

  width: 34px;
  height: 34px;

  display: flex;
  justify-content: center;
  align-items: center;

  border: 3px solid #ffffff;
  border-radius: 50%;

  background-color: rgba(10, 119, 0, 0.88);
  color: #ffffff;

  font-family: Roboto, Arial, sans-serif;
  font-weight: 800;

  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.42);

  opacity: 0.82;
  transform: translate(-50%, -50%) scale(0.92);

  cursor: pointer;

  transition:
    opacity 180ms ease,
    transform 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.ping-number {
  font-size: 1.2rem;
  line-height: 1;
}

/* Text label appears when the matching card or hotspot is active */
.ping-label {
  position: absolute;
  top: 50%;
  left: calc(100% + 12px);

  width: max-content;
  max-width: 220px;

  padding: 0.8rem 1.1rem;

  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 7px;

  background-color: rgba(15, 15, 15, 0.92);
  color: #ffffff;

  font-family: Roboto, Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;

  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.35);

  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) translateX(-6px);

  pointer-events: none;

  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease;
}

.machine-ping.is-active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.12);
  background-color: var(--home-green);
  animation: machine-pulse 1.4s infinite;
}

.machine-ping.is-active .ping-label {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/*
  Ping locations on 3-step-pressurepave.jpg
  These values match the locations you selected.
*/

.ping-01 {
  left: 22%;
  top: 80%;
}

.ping-02 {
  left: 40%;
  top: 62%;
}

.ping-03 {
  left: 75%;
  top: 17%;
}

/* Marker 2 label opens upward */
.ping-02 .ping-label {
  top: auto;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
}

.ping-02.is-active .ping-label {
  transform: translateX(-50%) translateY(0);
}

/* Marker 3 label opens left so it stays inside the image */
.ping-03 .ping-label {
  right: calc(100% + 12px);
  left: auto;
}

@keyframes machine-pulse {
  0% {
    box-shadow:
      0 0 0 0 rgba(10, 119, 0, 0.7),
      0 4px 14px rgba(0, 0, 0, 0.4);
  }

  70% {
    box-shadow:
      0 0 0 20px rgba(10, 119, 0, 0),
      0 4px 14px rgba(0, 0, 0, 0.4);
  }

  100% {
    box-shadow:
      0 0 0 0 rgba(10, 119, 0, 0),
      0 4px 14px rgba(0, 0, 0, 0.4);
  }
}

/* Card interaction state controlled by process-pings.js */
.process-step {
  cursor: pointer;
}

.process-step.is-active {
  transform: translateX(6px);
  border-color: rgba(10, 119, 0, 0.72);
  box-shadow: 0 14px 34px rgba(10, 119, 0, 0.18);
}

.process-step:focus-visible,
.machine-ping:focus-visible {
  outline: 3px solid var(--home-green);
  outline-offset: 4px;
}

/* =========================================================
   SHARED SPLIT SECTIONS
========================================================= */

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 8rem;
  align-items: center;
}

.split-section-content h2 {
  margin-bottom: 2.4rem;
  color: var(--home-text-light);
  font-size: clamp(3.5rem, 5vw, 5.4rem);
  line-height: 1.1;
  text-transform: none;
}

.split-section-content > p:not(.section-eyebrow) {
  margin-bottom: 1.8rem;
  color: rgba(255, 255, 255, 0.83);
  font-size: 1.8rem;
  line-height: 1.75;
}

.split-section-media {
  margin: 0;
}

.split-section-media img {
  width: 100%;
  min-height: 480px;
  object-fit: cover;
  border-radius: var(--home-radius-large);
  box-shadow: var(--home-shadow-large);
}

.split-section-media figcaption {
  margin-top: 1.4rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 1.4rem;
  font-style: normal;
  line-height: 1.5;
  text-align: left;
}

.split-section .learn-more-link {
  color: #a9e0a2;
}

.split-section .learn-more-link:hover {
  border-color: #ffffff;
  color: #ffffff;
}

/* =========================================================
   ROAD-SURFACE MAGNIFIER COMPARISON
========================================================= */

.surface-comparison {
  background-color: var(--home-bg-light);
}

.magnify-instruction {
  margin-top: 1.4rem;
  color: var(--home-green-dark) !important;
  font-size: 1.45rem !important;
  font-weight: 700;
}

.surface-comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
}

.surface-example {
  position: relative;
  overflow: visible;
  border: 1px solid var(--home-border-dark);
  border-radius: var(--home-radius-medium);
  background-color: #ffffff;
  box-shadow: var(--home-shadow-small);
}

.surface-example:hover {
  z-index: 10;
}

.magnify-image {
  position: relative;
  z-index: 2;
  overflow: visible;
  aspect-ratio: 16 / 9;
  background-color: #d8d8d8;
  cursor: crosshair;
}

.magnify-image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--home-radius-medium) var(--home-radius-medium) 0 0;
}

.magnify-lens {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;

  width: 190px;
  height: 190px;

  border: 4px solid #ffffff;
  border-radius: 50%;

  background-color: #ffffff;
  background-repeat: no-repeat;

  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.28),
    0 10px 28px rgba(0, 0, 0, 0.38);

  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%) scale(0.85);

  pointer-events: none;

  transition:
    opacity 140ms ease,
    visibility 140ms ease,
    transform 140ms ease;
}

.magnify-image.is-magnifying .magnify-lens {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.surface-example-content {
  padding: 2.8rem;
  border-radius: 0 0 var(--home-radius-medium) var(--home-radius-medium);
  background-color: #ffffff;
}

.surface-category {
  margin-bottom: 1rem;
  color: var(--home-green);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
}

.surface-example h3 {
  margin-bottom: 1.4rem;
  color: var(--home-text-dark);
  font-size: 2.4rem;
  line-height: 1.25;
  text-transform: none;
}

.surface-example-content > p:last-child {
  color: var(--home-text-medium);
  font-size: 1.65rem;
  line-height: 1.7;
}

@media only screen and (max-width: 900px) {
  .surface-comparison-grid {
    grid-template-columns: 1fr;
  }
}

/* Disable cursor magnification on touch-oriented devices */
@media (hover: none), (pointer: coarse) {
  .magnify-instruction {
    display: none;
  }

  .magnify-image {
    cursor: default;
  }

  .magnify-lens {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .magnify-lens {
    transition: none;
  }
}

/* =========================================================
   EXISTING CRACKS SECTION
========================================================= */

.home-road-problem {
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, rgba(99, 0, 43, 0.22), transparent 42%),
    linear-gradient(140deg, #151515 0%, #242424 100%);
}

.home-road-problem::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 100%;
  background-color: var(--home-maroon);
}

/* =========================================================
   REFLECTIVE CRACKING DARK-SECTION TEXT FIXES
========================================================= */

.reflective-intro {
  max-width: 1120px;
  margin: 0 auto 5rem;
}

.reflective-intro h2 {
  margin-bottom: 1.8rem;
  color: #ffffff;
  font-size: clamp(3.4rem, 5vw, 5.4rem);
  line-height: 1.08;
  text-transform: none;
}

.reflective-intro-copy > p {
  margin-bottom: 1.6rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.75rem;
  line-height: 1.7;
}

/* Important honesty statement */
.reflective-honesty-note {
  margin-top: 3rem;
  padding: 2.2rem 2.5rem;
  border-left: 5px solid #9fd798;
  border-radius: 0 var(--home-radius-small) var(--home-radius-small) 0;
  background-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.reflective-honesty-note strong {
  display: block;
  margin-bottom: 0.8rem;

  font-family: Roboto, Arial, sans-serif;
  font-size: 1.95rem;
  font-weight: 700;
  line-height: 1.35;

  color: #ffffff;
}

.reflective-honesty-note p {
  margin: 0;

  font-family: Roboto, Arial, sans-serif;
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1.7;

  color: rgba(255, 255, 255, 0.82);
}

/* Comparison heading */
.reflective-comparison-heading {
  margin-bottom: 3.5rem;
  text-align: center;
}

.reflective-comparison-heading h3 {
  margin-bottom: 1.2rem;
  color: #ffffff;
  font-size: clamp(2.8rem, 4vw, 4rem);
  line-height: 1.15;
  text-transform: none;
}

.reflective-comparison-heading > p:not(.section-eyebrow) {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.7rem;
  line-height: 1.6;
}

.reflective-comparison-heading .magnify-instruction {
  color: #a9e0a2 !important;
}

/* Final Learn More link on dark background */
.home-road-problem .section-action .learn-more-link {
  color: #b7e7b1;
  border-bottom-color: #8fd487;
}

.home-road-problem .section-action .learn-more-link:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

/* =========================================================
   LONGEVITY SECTION
========================================================= */

.home-longevity {
  background:
    linear-gradient(135deg, rgba(10, 119, 0, 0.16), transparent 42%),
    var(--home-bg-dark);
}

.longevity-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 7rem;
  align-items: center;
}

.longevity-feature-image {
  position: relative;
  margin: 0;
}

.longevity-feature-image img {
  width: 100%;
  min-height: 540px;
  object-fit: cover;
  border-radius: var(--home-radius-large);
  box-shadow: var(--home-shadow-large);
}

.image-label {
  position: absolute;
  bottom: 2.2rem;
  left: 2.2rem;
  display: flex;
  flex-direction: column;
  padding: 1.6rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--home-radius-small);
  background-color: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(8px);
}

.image-label strong {
  color: #ffffff;
  font-family: Roboto, Arial, sans-serif;
  font-size: 2.4rem;
  line-height: 1.2;
}

.image-label span {
  margin-top: 0.4rem;
  color: rgba(255, 255, 255, 0.78);
  font-family: Roboto, Arial, sans-serif;
  font-size: 1.4rem;
}

.longevity-feature-content {
  padding: 3rem 0;
}

.feature-stat {
  margin-bottom: 0.5rem;
  color: #9ad892;
  font-family: Roboto, Arial, sans-serif;
  font-size: clamp(7rem, 10vw, 12rem);
  font-weight: 900;
  line-height: 0.85;
}

.longevity-feature-content h3 {
  margin-bottom: 2.4rem;
  color: #ffffff;
  font-size: clamp(2.8rem, 4vw, 4rem);
  line-height: 1.12;
  text-transform: none;
}

.longevity-feature-content > p:not(.feature-stat) {
  margin-bottom: 1.8rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.75rem;
  line-height: 1.72;
}

.longevity-feature-content .learn-more-link {
  color: #a9e0a2;
}

.longevity-feature-content .learn-more-link:hover {
  border-color: #ffffff;
  color: #ffffff;
}

/* =========================================================
   NATIONAL REACH / MAP
========================================================= */

.home-national-reach {
  background-color: var(--home-bg-white);
}

.national-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(330px, 0.6fr);
  gap: 6rem;
  align-items: center;
}

.service-map {
  margin: 0;
}

.service-map img {
  width: 100%;
  height: auto;
  border: 1px solid var(--home-border-dark);
  border-radius: var(--home-radius-large);
  background-color: #ffffff;
  box-shadow: var(--home-shadow-large);
}

.service-map figcaption {
  margin-top: 1.4rem;
  color: var(--home-text-medium);
  font-size: 1.45rem;
  font-style: normal;
  line-height: 1.5;
  text-align: left;
}

.service-map-details {
  padding: 3.5rem;
  border-left: 5px solid var(--home-green);
  border-radius: 0 var(--home-radius-medium) var(--home-radius-medium) 0;
  background-color: var(--home-bg-light);
}

.service-map-details h3 {
  margin-bottom: 1.8rem;
  color: var(--home-text-dark);
  font-size: 2.8rem;
  line-height: 1.2;
  text-transform: none;
}

.service-map-details > p {
  margin-bottom: 1.6rem;
  color: var(--home-text-medium);
  font-size: 1.7rem;
  line-height: 1.7;
}

.map-legend {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

.map-legend li {
  display: flex;
  align-items: center;
  color: var(--home-text-dark);
  font-family: Roboto, Arial, sans-serif;
  font-size: 1.55rem;
  line-height: 1.4;
}

.legend-marker {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-right: 1.2rem;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 50%;
}

.legend-headquarters {
  background-color: maroon;
}

.legend-project {
  background-color: #42ae79;
}

.legend-interest {
  background-color: #ffe99e;
}

/* =========================================================
   BEYOND THE PAVEMENT
========================================================= */

.home-beyond-pavement {
  overflow: hidden;
  background-color: var(--home-bg-white);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.home-beyond-pavement .section-heading {
  max-width: 900px;
}

.home-beyond-pavement .section-heading h2 {
  color: var(--home-text-dark);
}

.home-beyond-pavement .section-heading > p:last-child {
  color: var(--home-text-medium);
}

.beyond-pavement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.4rem;
  align-items: stretch;
}

/* =========================================================
   BEYOND THE PAVEMENT CARDS
========================================================= */

.beyond-pavement-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--home-radius-large);
  background: linear-gradient(180deg, #2b2b2f 0%, #1e1e22 100%);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.25),
    0 8px 20px rgba(0, 0, 0, 0.15);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.beyond-pavement-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: inherit;
  pointer-events: none;
}

.beyond-pavement-card:first-child {
  border-top: 4px solid var(--home-green);
}

.beyond-pavement-card:nth-child(2) {
  border-top: 4px solid #168beb;
}

.beyond-crewcast-card .beyond-pavement-label {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.beyond-pavement-card:hover {
  transform: translateY(-10px);
}

.beyond-pavement-card:first-child:hover {
  border-color: rgba(10, 119, 0, 0.45);
  box-shadow:
    0 32px 70px rgba(10, 119, 0, 0.18),
    0 14px 28px rgba(0, 0, 0, 0.28);
}

.beyond-pavement-card:nth-child(2):hover {
  border-color: rgba(22, 139, 235, 0.58);
  box-shadow:
    0 32px 70px rgba(22, 139, 235, 0.22),
    0 14px 28px rgba(0, 0, 0, 0.28);
}

/* =========================================================
   BEYOND THE PAVEMENT IMAGE
========================================================= */

.beyond-pavement-image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: #1e1e22;
}

.beyond-pavement-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 45%,
    rgba(30, 30, 34, 0.92) 100%
  );
  pointer-events: none;
}

.beyond-pavement-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.25);
  transition:
    transform 420ms ease,
    filter 420ms ease;
}

/* Keep the upper portion of the equipment blueprint in view, even at 125% zoom. */
.beyond-innovation-card .beyond-pavement-image img {
  object-position: center top;
  transform-origin: center top;
}

.beyond-pavement-card:hover .beyond-pavement-image img {
  transform: scale(1);
  filter: contrast(1.05) saturate(1.05);
}

.beyond-pavement-label {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  left: 2rem;
  z-index: 2;
  color: #ffffff;
  font-family: Roboto, Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.11rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  text-transform: uppercase;
}

/* =========================================================
   BEYOND THE PAVEMENT CONTENT
========================================================= */

.beyond-pavement-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 3rem;
}

.beyond-pavement-category {
  margin-bottom: 1rem;
  color: #9fd798;
  font-family: Roboto, Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
}

.beyond-pavement-card:nth-child(2) .beyond-pavement-category {
  color: #f58a24;
}

.beyond-pavement-content h3 {
  margin: 1rem 0 1.5rem;
  color: #ffffff;
  font-size: clamp(2.5rem, 3vw, 3.2rem);
  line-height: 1.15;
  text-transform: none;
}

.beyond-pavement-content > p:not(.beyond-pavement-category) {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.65rem;
  line-height: 1.75;
}

.beyond-pavement-content .learn-more-link {
  margin-top: auto;
  padding-top: 2.5rem;
}

.beyond-pavement-card:first-child .learn-more-link {
  color: #9fd798;
  border-bottom-color: #9fd798;
}

.beyond-pavement-card:nth-child(2) .learn-more-link {
  color: #67baff;
  border-bottom-color: #f58a24;
}

.beyond-pavement-card .learn-more-link:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

/* =========================================================
   BEYOND THE PAVEMENT SUMMARY
========================================================= */

.beyond-pavement-summary {
  max-width: 930px;
  margin: 5rem auto 0;
  padding: 2.5rem 3rem;
  border-left: 5px solid var(--home-maroon);
  border-radius: 0 var(--home-radius-medium) var(--home-radius-medium) 0;
  background-color: var(--home-bg-light);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
}

.beyond-pavement-summary p {
  margin: 0;
  color: var(--home-text-dark);
  font-family: Roboto, Arial, sans-serif;
  font-size: 1.7rem;
  line-height: 1.7;
}

/* =========================================================
   BEYOND THE PAVEMENT ACCESSIBILITY
========================================================= */

.beyond-pavement-image:focus-visible {
  outline: 3px solid var(--home-maroon);
  outline-offset: 4px;
}

/* =========================================================
   BEYOND THE PAVEMENT RESPONSIVE
========================================================= */

@media only screen and (max-width: 900px) {
  .beyond-pavement-grid {
    grid-template-columns: 1fr;
    gap: 3.8rem;
  }

  .beyond-pavement-card {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
  }

  .beyond-pavement-image {
    aspect-ratio: 16 / 8.5;
  }
}

@media only screen and (max-width: 600px) {
  .home-beyond-pavement .section-heading {
    text-align: left;
  }

  .beyond-pavement-grid {
    gap: 3rem;
  }

  .beyond-pavement-card {
    box-shadow:
      0 14px 32px rgba(0, 0, 0, 0.18),
      0 4px 12px rgba(0, 0, 0, 0.12);
  }

  .beyond-pavement-image {
    aspect-ratio: 4 / 3;
  }

  .beyond-pavement-content {
    padding: 2.4rem 2.1rem 2.6rem;
  }

  .beyond-pavement-content h3 {
    font-size: 2.45rem;
  }

  .beyond-pavement-content > p:not(.beyond-pavement-category) {
    font-size: 1.55rem;
  }

  .beyond-pavement-label {
    right: 1.5rem;
    bottom: 1.4rem;
    left: 1.5rem;
    font-size: 1.15rem;
  }

  .beyond-pavement-summary {
    margin-top: 3.8rem;
    padding: 2.1rem;
  }

  .beyond-pavement-summary p {
    font-size: 1.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .beyond-pavement-card,
  .beyond-pavement-image img {
    transition: none;
  }

  .beyond-pavement-card:hover,
  .beyond-pavement-card:hover .beyond-pavement-image img {
    transform: none;
  }
}

/* =========================================================
   FEATURED VIDEO
========================================================= */

.home-featured-video {
  background:
    radial-gradient(circle at 10% 30%, rgba(10, 119, 0, 0.18), transparent 35%),
    linear-gradient(145deg, #1a1a1a, #2d2d2d);
}

.responsive-video {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--home-radius-large);
  box-shadow: var(--home-shadow-large);
}

.responsive-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* =========================================================
   LEARNING PATHS
========================================================= */

.home-learning-paths {
  background-color: #191919;
}

.learning-path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.2rem;
}

.learning-card {
  position: relative;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 3.2rem;
  overflow: hidden;
  border: 1px solid var(--home-border-light);
  border-radius: var(--home-radius-medium);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.07),
    rgba(255, 255, 255, 0.025)
  );
  color: #ffffff;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.learning-card::after {
  content: "";
  position: absolute;
  right: -45px;
  bottom: -55px;
  width: 135px;
  height: 135px;
  border: 22px solid rgba(10, 119, 0, 0.13);
  border-radius: 50%;
  transition: transform 240ms ease;
}

.learning-card:hover {
  transform: translateY(-7px);
  border-color: rgba(159, 215, 152, 0.55);
  background-color: rgba(255, 255, 255, 0.08);
}

.learning-card:hover::after {
  transform: scale(1.16);
}

.learning-card-number {
  margin-bottom: 3.5rem;
  color: #8dd185;
  font-family: Roboto, Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.12rem;
}

.learning-card h3 {
  margin-bottom: 1.6rem;
  color: #ffffff;
  font-size: 2.5rem;
  line-height: 1.2;
  text-transform: none;
}

.learning-card p {
  margin-bottom: 3rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.62rem;
  line-height: 1.65;
}

.learning-card-link {
  margin-top: auto;
  color: #a9e0a2;
  font-family: Roboto, Arial, sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
}

/* =========================================================
   FEATURED RESOURCES
========================================================= */

.home-resources {
  background-color: var(--home-bg-light);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}

.resource-card {
  overflow: hidden;
  border: 1px solid var(--home-border-dark);
  border-radius: var(--home-radius-medium);
  background-color: #ffffff;
  box-shadow: var(--home-shadow-small);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.resource-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--home-shadow-large);
}

.resource-card-image {
  display: block;
  margin: 0;
  overflow: hidden;
  background-color: #dddddd;
}

.resource-card-image img {
  width: 100%;
  height: 245px;
  object-fit: cover;
  transition: transform 350ms ease;
}

.resource-card:hover .resource-card-image img {
  transform: scale(1.04);
}

.resource-card-content {
  padding: 2.8rem;
}

.resource-category {
  margin-bottom: 1.1rem;
  color: var(--home-green);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
}

.resource-card h3 {
  min-height: 72px;
  color: var(--home-text-dark);
  font-size: 2.2rem;
  line-height: 1.35;
  text-transform: none;
}

/* =========================================================
   FINAL CTA
========================================================= */

.home-final-cta {
  overflow: hidden;
  background:
    linear-gradient(100deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.56)),
    url("/img/created/compressed_img/truck_at_night_2.jpg") center / cover
      no-repeat;
}

.final-cta-content {
  max-width: 840px;
  text-align: center;
}

.final-cta-content .section-eyebrow {
  color: #a9e0a2;
}

.final-cta-content h2 {
  margin-bottom: 2.2rem;
  color: #ffffff;
  font-size: clamp(3.8rem, 6vw, 6rem);
  line-height: 1.08;
  text-transform: none;
}

.final-cta-content > p:not(.section-eyebrow) {
  color: rgba(255, 255, 255, 0.83);
  font-size: 1.9rem;
  line-height: 1.7;
}

.final-cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 3.5rem;
}

/* =========================================================
   ACCESSIBILITY
========================================================= */

.button:focus-visible,
.learn-more-link:focus-visible,
.learning-card:focus-visible,
.resource-card-image:focus-visible {
  outline: 3px solid var(--home-cream);
  outline-offset: 4px;
}

/* =========================================================
   LARGE TABLET / SMALL DESKTOP
========================================================= */

@media only screen and (max-width: 1200px) {
  :root {
    --home-section-padding: 8rem;
  }

  .home-hero-content {
    padding-right: 2rem;
    padding-left: 2rem;
  }

  .one-pass-layout,
  .longevity-feature,
  .national-map-layout,
  .split-section {
    gap: 4rem;
  }

  .learning-path-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================================
   TABLET
========================================================= */

@media only screen and (max-width: 900px) {
  .home-hero {
    min-height: 900px;
  }

  .home-hero-overlay {
    background:
      linear-gradient(90deg, rgba(5, 5, 5, 0.85), rgba(5, 5, 5, 0.55)),
      linear-gradient(0deg, rgba(5, 5, 5, 0.8), rgba(5, 5, 5, 0.1));
  }

  .one-pass-layout,
  .longevity-feature,
  .national-map-layout,
  .split-section {
    grid-template-columns: 1fr;
  }

  .split-section-content {
    order: 1;
  }

  .split-section-media,
  .responsive-video {
    order: 2;
  }

  .one-pass-machine img,
  .split-section-media img,
  .longevity-feature-image img {
    min-height: auto;
  }

  .machine-image-wrap img {
    min-height: auto;
  }

  .national-map-layout {
    align-items: stretch;
  }

  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resource-card:last-child {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media only screen and (max-width: 600px) {
  :root {
    --home-section-padding: 6.5rem;
  }

  .section-heading {
    margin-bottom: 4rem;
    text-align: left;
  }

  .section-heading h2 {
    font-size: 3.4rem;
  }

  .section-heading > p:last-child {
    font-size: 1.7rem;
  }

  .home-hero {
    min-height: 820px;
    background:
      linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.82)),
      url("/img/created/compressed_img/banner-video-img.jpg") center / cover
        no-repeat;
  }

  .home-hero-video {
    display: none;
  }

  .home-hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(5, 5, 5, 0.5),
      rgba(5, 5, 5, 0.92)
    );
  }

  .home-hero-content {
    padding-top: 14rem;
    padding-bottom: 5rem;
  }

  .home-hero h1 {
    font-size: clamp(4.3rem, 14vw, 6rem);
  }

  .home-hero-summary {
    font-size: 1.8rem;
  }

  .home-hero-actions,
  .final-cta-actions {
    flex-direction: column;
  }

  .home-hero-actions .button,
  .final-cta-actions .button {
    width: 100%;
  }

  .home-hero-highlights {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 4rem;
  }

  .home-hero-highlights li {
    padding: 1.5rem 0;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .home-hero-highlights li:first-child {
    padding-top: 0;
  }

  .home-hero-highlights li:last-child {
    border-bottom: none;
  }

  .one-pass-layout,
  .longevity-feature,
  .national-map-layout,
  .split-section {
    gap: 3.5rem;
  }

  .one-pass-machine figcaption,
  .split-section-media figcaption,
  .service-map figcaption {
    font-size: 1.3rem;
  }

  .process-step {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 1.4rem;
    padding: 2.1rem;
  }

  .process-number {
    font-size: 2.6rem;
  }

  .process-step-content h3 {
    font-size: 2rem;
  }

  .process-step-content p {
    font-size: 1.55rem;
  }

  .machine-ping {
    width: 30px;
    height: 30px;
    border-width: 2px;
  }

  .ping-number {
    font-size: 1.05rem;
  }

  .ping-label {
    max-width: 160px;
    padding: 0.7rem 0.9rem;
    font-size: 1.15rem;
  }

  .split-section-content h2 {
    font-size: 3.4rem;
  }

  .split-section-content > p:not(.section-eyebrow) {
    font-size: 1.65rem;
  }

  .longevity-feature-image img {
    min-height: 330px;
  }

  .image-label {
    right: 1.5rem;
    bottom: 1.5rem;
    left: 1.5rem;
  }

  .feature-stat {
    font-size: 8rem;
  }

  .service-map-details {
    padding: 2.6rem;
    border-top: 5px solid var(--home-green);
    border-left: none;
    border-radius: 0 0 var(--home-radius-medium) var(--home-radius-medium);
  }

  .learning-path-grid,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .learning-card {
    min-height: 285px;
  }

  .resource-card:last-child {
    grid-column: auto;
    max-width: none;
  }

  .resource-card h3 {
    min-height: auto;
  }

  .final-cta-content {
    text-align: left;
  }

  .final-cta-content h2 {
    font-size: 3.8rem;
  }

  .final-cta-content > p:not(.section-eyebrow) {
    font-size: 1.7rem;
  }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .button,
  .learn-more-link,
  .learn-more-link span,
  .process-step,
  .learning-card,
  .learning-card::after,
  .resource-card,
  .resource-card-image img {
    transition: none;
  }

  .button:hover,
  .process-step:hover,
  .learning-card:hover,
  .resource-card:hover {
    transform: none;
  }

  .machine-ping.is-active {
    animation: none;
  }

  .home-hero-video {
    display: none;
  }

  .home-hero {
    background:
      linear-gradient(rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.84)),
      url("/img/created/compressed_img/banner-video-img.jpg") center / cover
        no-repeat;
  }
}

.reflective-honesty-note {
  padding: 1.8rem 2rem;
}

.reflective-honesty-note strong {
  font-size: 1.75rem;
}

.reflective-honesty-note p {
  font-size: 1.5rem;
}

.reflective-comparison-heading {
  text-align: left;
}

/* =========================================================
   LONGEVITY: VIDEO IN ORIGINAL IMAGE POSITION
========================================================= */
.longevity-feature-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--home-radius-large);
  background: #090909;
  box-shadow: var(--home-shadow-large);
}

.longevity-feature-video iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.longevity-feature-content .section-eyebrow {
  margin-bottom: 1.5rem;
  color: #a9e0a2;
}

.longevity-feature-content .longevity-system-note {
  padding-left: 1.5rem;
  border-left: 3px solid #9ad892;
  font-size: 1.45rem;
}

@media (max-width: 900px) {
  .longevity-feature {
    gap: 3rem;
  }
}
