/* ==========================================================================
   MBH — sectors.css
   Idea: each sector is a full-bleed panel, image running off alternating
   edges of the screen, with an oversized sector numeral behind the copy.
   ========================================================================== */

.sector-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}

@media (min-width: 940px) {
  .sector-row { grid-template-columns: 1fr 1fr; align-items: stretch; }
  /* Even rows flip so the image bleeds off the opposite edge */
  .sector-row:nth-child(even) .sector-row__media { order: 2; }
}

.sector-row__media {
  position: relative;
  overflow: hidden;
  min-height: clamp(280px, 46vw, 420px);
  background: var(--green-900);
}

@media (min-width: 940px) { .sector-row__media { min-height: 100%; } }

.sector-row__media img {
  position: absolute;
  top: -7%;
  left: 0;
  width: 100%;
  height: 114%;
  object-fit: cover;
}

.sector-row__body {
  position: relative;
  padding: clamp(40px, 5vw, 76px) var(--gutter);
}

@media (min-width: 940px) {
  .sector-row:nth-child(odd) .sector-row__body {
    padding-right: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
    padding-left: clamp(40px, 5vw, 76px);
  }
  .sector-row:nth-child(even) .sector-row__body {
    padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
    padding-right: clamp(40px, 5vw, 76px);
  }
}

/* Oversized numeral sitting behind the copy */
.sector-row__ghost {
  position: absolute;
  top: clamp(14px, 2vw, 28px);
  right: clamp(20px, 4vw, 60px);
  color: var(--green-900);
  opacity: 0.055;
  font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.sector-row__label {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.sector-row__title {
  position: relative;
  margin-bottom: 14px;
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  letter-spacing: -0.03em;
}

.sector-row__text { position: relative; max-width: 44ch; font-size: var(--fs-body); }

.sector-row__points { position: relative; margin-top: 26px; border-top: 1px solid var(--line); }

.sector-row__points li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-small);
}

.sector-row__points li::before {
  content: "";
  width: 10px;
  height: 2px;
  margin-top: 9px;
  background: var(--accent);
  transform: skewX(-19deg);
}

.sector-row__link { margin-top: 26px; }

/* Residential remains part of the offer without carrying the visual weight of
   MBH's core energy, roadside and infrastructure sectors. */
.sector-row--secondary .sector-row__media {
  min-height: clamp(210px, 32vw, 280px);
}

.sector-row--secondary .sector-row__body {
  padding-top: clamp(32px, 4vw, 52px);
  padding-bottom: clamp(32px, 4vw, 52px);
}

.sector-row--secondary .sector-row__ghost { opacity: 0.035; }
.sector-row--secondary .sector-row__title { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }

@media (min-width: 940px) {
  .sector-row--secondary {
    grid-template-columns: 1fr 1fr;
  }

  .sector-row--secondary .sector-row__media { min-height: 100%; }
}

/* --------------------------------------------------------- projects by sector */
.sector-projects {
  border-top: 1px solid var(--line);
}

.sector-projects__intro .lead {
  max-width: 44ch;
  margin-bottom: 18px;
}

.sector-projects__filters {
  margin-bottom: clamp(32px, 4vw, 52px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 900px) {
  .sector-projects__intro {
    justify-self: end;
    width: 100%;
    max-width: 520px;
  }
}
