/* =========================================================================
   Divad — Home page
   Built from Figma node 229:83 (1280px design width)
   ========================================================================= */

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.home-hero {
  position: relative;
  isolation: isolate;
  min-height: 720px;
  display: grid;
  align-content: center;
  padding-top: 0;
  overflow: hidden;
  color: #ffffff;
  background: var(--brand-dark);
}

.home-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.home-hero__bg-img,
.home-hero__bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 13, 27, 0.78) 0%, rgba(6, 13, 27, 0.54) 44%, rgba(6, 13, 27, 0.2) 100%);
  z-index: -1;
}

.home-hero__inner {
  padding-block: clamp(5rem, 8vw, 7rem) 0;
}

.home-hero__content {
  max-width: 980px;
  display: grid;
  gap: 1.35rem;
}

.home-hero__content::before {
  content: "";
  width: 75px;
  height: 8px;
  background: linear-gradient(90deg, var(--accent-tint) 0 50%, var(--brand) 50% 100%);
}

.home-hero__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(3rem, 5.15vw, 5.625rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: #ffffff;
}

.home-hero__lead {
  margin: 0;
  max-width: 38rem;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.home-hero__actions .btn-layout {
  position: relative;
  min-width: 184px;
  min-height: 58px;
  padding: 1rem 1.75rem;
  border-radius: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1.8px;
  line-height: 1;
  text-transform: uppercase;
  overflow: hidden;
}

.home-hero__btn-primary {
  border-bottom-color: var(--accent-pink) !important;
  box-shadow: inset 0 -4px 0 var(--accent-pink);
}

.home-hero__btn-primary .cnm-icon {
  width: 0.9rem;
  height: 0.9rem;
  background-color: currentColor;
}

.home-hero__btn-hollow {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.88) !important;
  background: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: none;
}

.home-hero__btn-hollow:hover,
.home-hero__btn-hollow:focus-visible {
  background: rgba(255, 255, 255, 0.95) !important;
  color: var(--brand-dark) !important;
  border-color: #ffffff !important;
}

.mobile-only {
  display: none;
}

/* -------------------------------------------------------------------------
   Shared — uppercase section titles per Figma (Futura heavy display)
   ------------------------------------------------------------------------- */
.section-title,
.home-cta__title,
.fleet__division-title,
.service-card__title,
.fleet-card__name {
  text-transform: uppercase;
  letter-spacing: 0;
}

.site-main--home .section-eyebrow {
  font-weight: 800;
}

.site-main--home .section-title {
  font-weight: 800;
}

/* -------------------------------------------------------------------------
   Success Story (media-content)
   ------------------------------------------------------------------------- */
.home-success {
  background: #ffffff;
  padding-block: clamp(3.75rem, 5vw, 5rem);
}

.home-success__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(3rem, 5vw, 5rem);
  align-items: center;
}

.home-success__media {
  position: relative;
  aspect-ratio: 570 / 522;
  border-radius: var(--radius);
  overflow: hidden;
}

.home-success__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-success__body {
  display: grid;
  gap: 1.05rem;
}

.home-success .section-eyebrow {
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.43;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.home-success .section-title {
  max-width: 27.5rem;
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 3.75vw, 3rem);
  font-weight: 800;
  line-height: 1.125;
  color: var(--ink);
}

.home-success__copy {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink-light);
}

.home-success__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.home-success__stats li {
  display: grid;
  gap: 0.25rem;
}

.home-success__stat-value {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.12;
}

.home-success__stat-label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: #5c5c5c;
  letter-spacing: 0.1em;
  line-height: 1.43;
  text-transform: uppercase;
}

.home-success__note {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.45;
  color: var(--ink-light);
  font-style: italic;
}

.home-success__note::before {
  content: "* ";
}

.home-success__cta {
  justify-self: start;
  margin-top: 0.5rem;
  min-width: 160px;
  min-height: 56px;
  padding: 1rem 1.45rem;
  border-radius: 0;
  border-bottom-color: var(--accent-pink);
  box-shadow: inset 0 -4px 0 var(--accent-pink);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.125;
  letter-spacing: 0.1125em;
  text-transform: uppercase;
}

/* -------------------------------------------------------------------------
   Core Services
   ------------------------------------------------------------------------- */
.home-services {
  position: relative;
  isolation: isolate;
  background: var(--bg-section);
  padding-block: clamp(3.75rem, 5vw, 5rem) clamp(4.25rem, 7vw, 6.5rem);
  overflow: hidden;
}

.home-services__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2.75rem, 4vw, 4rem);
}

.watermark--services {
  top: clamp(24rem, 44vw, 35rem);
  right: clamp(-3rem, -1vw, 0rem);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: clamp(12rem, 20vw, 19rem);
  color: rgba(30, 94, 170, 0.055);
  letter-spacing: 0;
}

.home-services__intro {
  display: grid;
  gap: 0.5rem;
  text-align: left;
  justify-items: start;
}

.home-services__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.service-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: #ffffff;
  border-radius: 0;
  overflow: hidden;
  min-height: 296px;
}

.service-card__media {
  position: relative;
  aspect-ratio: auto;
  min-height: 296px;
  overflow: hidden;
  border-radius: 0;
  background: var(--service-img) center / cover no-repeat;
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card__body {
  display: grid;
  gap: 0.75rem;
  align-content: center;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.service-card__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
}

.service-card__copy {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400 !important;
  line-height: 1.55;
  color: var(--ink-light);
}

.service-card__link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--accent-pink);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.service-card__link:hover {
  color: var(--accent-pink);
  text-decoration: underline;
}

.service-card__link .cnm-icon {
  width: 0.9rem;
  height: 0.9rem;
}

/* Fleet sub-section */
.fleet {
  display: grid;
  gap: 1.5rem;
}

.fleet__head {
  display: grid;
  gap: 0.5rem;
  text-align: left;
  justify-items: start;
}

.fleet__head .section-eyebrow,
.home-services__intro .section-eyebrow {
  color: var(--accent);
}

.fleet__division {
  display: grid;
  gap: 1.6rem;
}

.fleet__division-title {
  margin: 0;
  margin-top: 0.8rem;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 2.4vw, 2.15rem);
  font-weight: 800;
  color: var(--ink);
  text-align: center;
  border: 0;
}

.fleet__division-title::before,
.fleet__division-title::after {
  content: none;
  display: none;
}

.fleet__division {
  gap: clamp(1.65rem, 2.25vw, 2.15rem);
}

.fleet__division .fleet__division-title {
  text-align: left;
}

.fleet__division:nth-of-type(3) .fleet__division-title {
  margin-top: clamp(2.25rem, 4vw, 3.5rem);
}

.fleet__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.35rem, 2vw, 1.75rem);
}

.fleet__division:nth-of-type(3) .fleet__row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fleet-card {
  position: relative;
  display: grid;
  align-content: end;
  gap: 0.35rem;
  padding: 0;
  background:
    linear-gradient(180deg, rgba(7, 12, 23, 0.04) 30%, rgba(7, 12, 23, 0.9) 100%),
    var(--fleet-img) center / cover no-repeat,
    var(--brand-dark);
  border: 0;
  text-align: left;
  color: #ffffff;
  min-height: 400px;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

.fleet-card__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  aspect-ratio: auto;
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 0;
  background: var(--fleet-img) center / cover no-repeat;
}

.fleet-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 12, 23, 0.06) 30%, rgba(7, 12, 23, 0.9) 100%);
  pointer-events: none;
}

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

.fleet-card__count {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #ffffff;
  border-radius: 0;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  z-index: 1;
}

.fleet__division:nth-of-type(3) .fleet-card__count {
  top: auto;
  bottom: 5.7rem;
  left: 1.35rem;
  padding: 0.45rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fleet-card__name {
  position: relative;
  z-index: 1;
  margin: 0;
  padding-inline: 1.5rem;
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 1.9vw, 1.85rem);
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.fleet-card__spec {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0 1.5rem 1.5rem;
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1vw, 1.05rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.35;
  text-transform: uppercase;
}

.fleet__division:nth-of-type(3) .fleet-card__name {
  font-size: clamp(1.25rem, 1.65vw, 1.65rem);
  padding-inline: 1.35rem;
  margin-bottom: 1.75rem;
}

.fleet__division:nth-of-type(3) .fleet-card__spec {
  display: none;
}

/* -------------------------------------------------------------------------
   Projects & Proof + Ready-to-Start CTA
   Base + desktop CSS now lives in shared.css (reused on service-detail via
   template-parts/projects-proof.php and template-parts/ready-cta.php).
   Only the homepage-only @media refinements remain below, in the responsive
   section — they duplicate shared.css values and are harmless on the homepage.
   ------------------------------------------------------------------------- */

/* -------------------------------------------------------------------------
   Careers
   ------------------------------------------------------------------------- */
.home-careers {
  background: #ffffff;
  padding-block: clamp(4.5rem, 7vw, 6.5rem);
}

.home-careers__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  padding-left: clamp(1.5rem, 3vw, 2.75rem);
  padding-right: 0;
  background: #ffffff;
  box-shadow: 0 34px 70px rgba(15, 23, 42, 0.18);
}

/* Per Figma: image on the right, content on the left.
   Keep semantic HTML order (image first); CSS reorders visually. */
.home-careers__media {
  order: 2;
  width: 100%;
  aspect-ratio: 600 / 544;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.home-careers__body {
  order: 1;
  padding: clamp(3.25rem, 6vw, 5rem) clamp(3rem, 6vw, 5rem);
  background: #ffffff;
  box-shadow: none;
  min-height: 544px;
  align-content: center;
  position: relative;
  z-index: 1;
}

.home-careers__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-careers__body {
  display: grid;
  gap: 1.35rem;
}

.home-careers__copy {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-light);
}

.home-careers__perks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-careers__perks li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
}

.home-careers__perks .cnm-icon {
  width: 0.9rem;
  height: 0.9rem;
  background-color: var(--brand);
}

/* Projects & Ready-CTA base/desktop CSS now lives in shared.css. */


/* =========================================================================
   Responsive breakpoints (Bootstrap 5 tiers)
   ========================================================================= */

@media (max-width: 1399px) {
  /* Fine-tuning between Figma 1280 and laptop */
}

@media (max-width: 991px) {
  .home-success__inner,
  .home-careers__inner {
    grid-template-columns: 1fr;
  }

  /* Mobile: image on top, content below — reset desktop order swap */
  .home-careers__media,
  .home-careers__body {
    order: 0;
  }

  .home-cta__card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .home-cta__actions {
    justify-self: center;
    justify-content: center;
  }

  .home-projects__gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 200px;
  }

  .project-card--feature {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 767px) {
  .home-hero {
    min-height: 560px;
  }

  .home-services__grid {
    grid-template-columns: 1fr;
  }

  .home-success__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }
}

@media (max-width: 575px) {
  .home-hero {
    min-height: 480px;
  }

  .home-projects__gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .project-card--feature {
    grid-column: auto;
  }

  .home-success__stats {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .fleet-card {
    padding: 0.875rem;
  }
}

/* -------------------------------------------------------------------------
   Round 2 Figma alignment overrides
   ------------------------------------------------------------------------- */

.site-main--home .btn-layout.default,
.home-hero__btn-primary {
  border-color: transparent !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-top: 0 !important;
}

.site-main--home .btn-layout.default {
  border-bottom: 0 !important;
  box-shadow: inset 0 -4px 0 var(--accent-pink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.site-main--home .btn-layout .cnm-icon {
  width: 0.9rem;
  height: 0.9rem;
  background-color: currentColor;
}

.home-hero {
  min-height: clamp(720px, calc(100svh - 80px), 920px);
}

@media (min-width: 1600px) {
  .home-hero {
    min-height: clamp(760px, calc(100svh - 80px), 980px);
  }

  .home-hero__content {
    max-width: min(58vw, 1080px);
  }

  .home-hero__title {
    font-size: clamp(4.25rem, 4.75vw, 6.25rem);
  }
}

@media (max-width: 1100px) {
  .home-hero__content {
    max-width: min(100%, 48rem);
  }

  .home-hero__title {
    font-size: clamp(2.625rem, 7vw, 4.5rem);
  }
}

.fleet-card {
  min-height: 620px;
}

.fleet__division:nth-of-type(3) .fleet-card {
  min-height: 510px;
}

.home-projects {
  padding-block: clamp(4rem, 6vw, 5.75rem);
}

.watermark--projects {
  top: clamp(3.5rem, 7vw, 6rem);
  left: clamp(1rem, 2.5vw, 2.5rem);
  right: auto;
  font-size: clamp(12rem, 20vw, 19rem);
  color: rgba(30, 94, 170, 0.055);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: none;
  letter-spacing: 0;
}

.home-projects__head {
  max-width: none;
  justify-self: end;
  gap: 0.5rem;
  margin-bottom: -0.5rem;
}

.home-projects__head .section-eyebrow {
  justify-self: end;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.home-projects__head .section-title {
  white-space: nowrap;
}

.home-projects__gallery {
  grid-template-columns: 2.05fr 1fr 1fr 2.05fr;
  grid-template-rows: 185px 185px 185px;
  gap: 12px;
  min-height: 579px;
}

.project-card {
  border-radius: 0;
}

.project-card--feature {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.project-card:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.project-card:nth-child(3) {
  grid-column: 3;
  grid-row: 1;
}

.project-card:nth-child(4) {
  grid-column: 2;
  grid-row: 2 / span 2;
}

.project-card:nth-child(5) {
  grid-column: 3;
  grid-row: 2;
}

.project-card:nth-child(6) {
  grid-column: 4;
  grid-row: 1;
}

.project-card:nth-child(7) {
  grid-column: 3;
  grid-row: 3;
}

.project-card:nth-child(8) {
  grid-column: 4;
  grid-row: 2 / span 2;
}

.project-card:nth-child(6),
.project-card:nth-child(8) {
  background-position: center;
}

/* Mosaic is designed for 8 tiles. With only 7, column 4 rows 2-3 would sit
   empty, so the 6th tile takes the full column height. Self-disables as soon
   as an 8th tile exists (:nth-last-child(2) no longer matches). */
.project-card:nth-child(6):nth-last-child(2) {
  grid-row: 1 / span 3;
}

.home-projects__gallery::after {
  content: "";
  grid-column: 1;
  grid-row: 3;
  background: url("../img/municipal-works-fd357d.png") center / cover no-repeat;
}

.project-card__title {
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.home-projects__cta,
.home-careers__cta {
  justify-self: start;
  min-height: 56px;
  border-color: transparent;
  box-shadow: inset 0 -4px 0 var(--accent-pink);
}

.home-projects__cta {
  justify-self: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.home-careers .section-eyebrow {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.home-careers .section-title {
  max-width: 31rem;
  font-size: clamp(3rem, 4.6vw, 4rem);
  line-height: 1.12;
}

.home-careers__copy {
  max-width: 31rem;
  font-family: var(--font-body);
  font-size: clamp(1.125rem, 1.45vw, 1.35rem);
  line-height: 1.55;
}

.home-careers__perks {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 36rem;
  gap: 1rem 2.25rem;
}

.home-careers__perks li {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink);
}

.home-careers__perks .cnm-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
}

.home-careers__cta {
  min-width: 19.75rem;
  justify-content: center;
}

.home-cta__card {
  min-height: 500px;
  padding-block: clamp(4rem, 7vw, 6rem);
}

.home-cta__copy {
  max-width: 36rem;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.55;
}

.home-cta__actions .btn-layout {
  min-width: 0;
  min-height: 52px;
  padding: 1rem 2.5rem;
  border-radius: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.home-cta .btn-layout.default {
  border-color: transparent !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-top: 0 !important;
  box-shadow: inset 0 -4px 0 var(--accent-pink);
}

.home-cta__phone {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.service-card:nth-child(1) {
  --service-img: url("../img/asphalt-paving.webp");
}

.service-card:nth-child(2) {
  --service-img: url("../img/site-work-grading.webp");
}

.fleet__division:nth-of-type(2) .fleet-card:nth-child(1) {
  --fleet-img: url("../img/asphalt-paver.png");
}

.fleet__division:nth-of-type(2) .fleet-card:nth-child(2) {
  --fleet-img: url("../img/double-drum-roller.png");
}

.fleet__division:nth-of-type(2) .fleet-card:nth-child(3) {
  --fleet-img: url("../img/dump-truck.png");
}

.fleet__division:nth-of-type(3) .fleet-card:nth-child(1) {
  --fleet-img: url("../img/excavator.webp");
}

.fleet__division:nth-of-type(3) .fleet-card:nth-child(2) {
  --fleet-img: url("../img/gps-dozer.webp");
}

.fleet__division:nth-of-type(3) .fleet-card:nth-child(3) {
  --fleet-img: url("../img/industrial-prep.webp");
}

/* -------------------------------------------------------------------------
   Latest News (template-parts/latest-news.php)
   White band between the tinted Projects section and the CTA, keeping the
   page's alternating background rhythm. Cards + grid come from shared.css.
   ------------------------------------------------------------------------- */
.home-news {
  background: #ffffff;
  padding-block: clamp(3.75rem, 5vw, 5rem);
}

.home-news__inner {
  display: grid;
  gap: clamp(1.75rem, 3vw, 2.5rem);
}

.home-news__head {
  display: grid;
  gap: 0.5rem;
  justify-items: center;
  text-align: center;
}

.home-news__head .section-eyebrow {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.home-news__cta {
  justify-self: center;
  min-height: 56px;
  border-color: transparent;
  box-shadow: inset 0 -4px 0 var(--accent-pink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Centre the cards when there are fewer than 3 posts instead of leaving them
   hugging the left of a 3-track row. The tracks are a fixed third of the row
   (same width the 1fr tracks resolve to), so `auto-fit` collapses the unused
   ones to 0 and `justify-content` centres whatever is left — the cards keep
   their normal size, they just move. With 3 posts this is identical to the
   shared 3-column rule. Overrides the shared breakpoints too, since this
   selector out-specifies them. */
.home-news .news-feed__grid {
  grid-template-columns: repeat(auto-fit, calc((100% - 2 * var(--news-grid-gap)) / 3));
  justify-content: center;
}

.fleet__division:nth-of-type(3) .fleet-card:nth-child(4) {
  --fleet-img: url("../img/industrial-prep-d839fb.png");
}

/* -------------------------------------------------------------------------
   Mobile final pass
   ------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .site-main--home,
  .site-main--home * {
    min-width: 0;
  }

  .site-main--home {
    overflow-x: hidden;
  }

  .home-hero {
    min-height: 640px;
    align-content: end;
  }

  .home-hero__inner {
    padding-block: 8rem 4rem;
  }

  .home-hero__content {
    max-width: 100%;
    gap: 1rem;
  }

  .home-hero__content,
  .home-success__body,
  .home-services__intro,
  .home-projects__head,
  .home-careers__body,
  .home-cta__body {
    width: 100%;
    max-width: calc(100vw - 48px);
  }

  .home-hero__content::before {
    width: 54px;
    height: 5px;
  }

  .home-hero__title {
    max-width: 100%;
    font-size: clamp(2rem, 8.4vw, 2.55rem);
    line-height: 1.04;
    overflow-wrap: normal;
  }

  .home-hero__title .mobile-only {
    display: block;
  }

  .home-hero__lead {
    max-width: 32rem;
    font-size: 0.98rem;
    line-height: 1.5;
    overflow-wrap: break-word;
  }

  .home-hero__actions {
    gap: 0.75rem;
  }

  .home-hero__actions .btn-layout {
    min-width: 0;
    min-height: 52px;
    padding: 0.95rem 1.25rem;
  }

  .home-success,
  .home-services,
  .home-projects,
  .home-careers,
  .home-cta {
    padding-block: clamp(3rem, 10vw, 4.25rem);
  }

  .home-success__inner,
  .home-cta__card {
    gap: 2rem;
  }

  .home-success .section-title,
  .section-title,
  .home-careers .section-title,
  .home-cta__title {
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 1.08;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .home-success__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-success__copy,
  .home-careers__copy,
  .home-cta__copy,
  .service-card__copy {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .home-services__grid,
  .service-card,
  .fleet__row,
  .fleet__division:nth-of-type(3) .fleet__row,
  .home-projects__gallery,
  .home-careers__perks {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
  }

  .service-card__media {
    min-height: 240px;
  }

  .service-card__body {
    padding: 1.5rem;
  }

  .fleet {
    gap: 2.25rem;
  }

  .fleet__division {
    gap: 1.15rem;
  }

  .fleet__division-title {
    font-size: clamp(1.4rem, 7vw, 2rem);
  }

  .fleet-card,
  .fleet__division:nth-of-type(3) .fleet-card {
    min-height: 430px;
  }

  .fleet-card__count,
  .fleet__division:nth-of-type(3) .fleet-card__count {
    top: auto;
    bottom: 4.95rem;
    left: 1.25rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
  }

  .fleet-card__name,
  .fleet__division:nth-of-type(3) .fleet-card__name {
    padding-inline: 1.25rem;
    margin-bottom: 1.45rem;
    font-size: clamp(1.35rem, 7vw, 1.8rem);
  }

  .fleet-card__spec {
    padding-inline: 1.25rem;
    padding-bottom: 1.4rem;
  }

  .watermark--services,
  .watermark--projects {
    display: none;
  }

  .home-projects__head {
    justify-self: start;
    margin-bottom: 0;
  }

  .home-projects__head .section-eyebrow {
    justify-self: start;
  }

  .home-projects__head .section-title {
    white-space: normal;
    font-size: clamp(1.9rem, 8vw, 2.55rem);
    overflow-wrap: anywhere;
  }

  .home-projects__gallery {
    grid-template-rows: none;
    grid-auto-rows: 230px;
    gap: 10px;
    min-height: 0;
  }

  .project-card,
  .project-card--feature,
  .project-card:nth-child(2),
  .project-card:nth-child(3),
  .project-card:nth-child(4),
  .project-card:nth-child(5),
  .project-card:nth-child(6),
  .project-card:nth-child(6):nth-last-child(2),
  .project-card:nth-child(7),
  .project-card:nth-child(8) {
    grid-column: auto;
    grid-row: auto;
  }

  .home-projects__gallery::after {
    display: none;
  }

  /* 2-up tier — same centring, half-width tracks (see the base rule above). */
  .home-news .news-feed__grid {
    grid-template-columns: repeat(auto-fit, calc((100% - var(--news-grid-gap)) / 2));
  }

  .home-careers__inner {
    display: grid;
    padding: 0;
  }

  .home-careers__media {
    min-height: 360px;
  }

  .home-careers__body {
    padding: clamp(2rem, 8vw, 3rem);
    min-height: 0;
  }

  .home-careers__copy {
    font-size: 1rem;
  }

  .home-careers__perks {
    gap: 0.85rem;
  }

  .home-careers__cta {
    min-width: 0;
    width: 100%;
  }

  .home-cta__card {
    min-height: 0;
    padding: clamp(3rem, 10vw, 4rem) 1.5rem;
  }

  .home-cta__actions {
    display: grid;
    width: 100%;
    gap: 1rem;
  }

  .home-cta__actions .btn-layout {
    width: 100%;
    min-height: 52px;
    padding: 1rem 1.25rem;
  }
}

@media (max-width: 575px) {
  .home-hero__content,
  .home-success__body,
  .home-services__intro,
  .home-projects__head,
  .home-careers__body,
  .home-cta__body,
  .service-card__body {
    max-width: 342px;
    max-width: min(342px, calc(100vw - 48px));
  }

  /* 1-up tier — nothing to centre, cards take the full width. */
  .home-news .news-feed__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-hero {
    min-height: 610px;
  }

  .home-hero__inner {
    padding-block: 7rem 3.5rem;
  }

  .home-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 260px;
  }

  .home-success__stats {
    grid-template-columns: 1fr;
  }

  .fleet-card,
  .fleet__division:nth-of-type(3) .fleet-card {
    min-height: 390px;
  }

  .home-projects__gallery {
    grid-auto-rows: 240px;
  }
}
