/* ===== Header / Navigation ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 140px;
  transition: background 0.4s ease;
}
/* Subtle dark gradient behind the white logo when the header is transparent (over hero) */
.header::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 100%);
  opacity: 1;
  transition: opacity 0.4s ease;
  z-index: -1;
}
.header--scrolled::before {
  opacity: 0;
}
.header--scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}
.header--scrolled .header__hamburger span,
.header--scrolled .header__search-btn {
  color: var(--color-text);
}
.header--scrolled .header__hamburger span {
  background: var(--color-text);
}
.header__logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  z-index: 1010;
  line-height: 1;
  gap: 4px;
  position: relative;
}
.header__logo-imgs { position: relative; line-height: 0; display: block; }
.header__logo img {
  height: 112px; /* restored to pre-2026-07-22 size per client Aug-10 email */
  width: auto;
  display: block;
  transition: opacity 0.3s ease;
}
.header__logo-color { opacity: 0; position: absolute; top: 0; left: 0; }
.header--scrolled .header__logo-color { opacity: 1; }
.header--scrolled .header__logo-white { opacity: 0; }
.header__logo-tag {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  transition: color 0.3s ease;
}
.header--scrolled .header__logo-tag { color: var(--color-text); }
@media (max-width: 768px) {
  .header { height: 112px; }
  .header__logo img { height: 84px; }
  .header__logo-tag { font-size: 9px; letter-spacing: 1px; }
}
@media (max-width: 480px) {
  .header__logo img { height: 68px; }
  .header__logo-tag { font-size: 8px; }
}
.header__right {
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 1010;
}
.header__search-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  transition: color 0.4s, opacity 0.2s;
}
.header__search-btn:hover { opacity: 0.7; }
.header__hamburger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
  z-index: 1010;
}
.header__hamburger span {
  width: 28px;
  height: 2px;
  background: #fff;
  display: block;
  transition: transform 0.3s, opacity 0.3s, background 0.4s;
}
.header__hamburger--active span:nth-child(1) {
  transform: rotate(45deg) translate(5.5px, 5.5px);
  background: var(--color-text) !important;
}
.header__hamburger--active span:nth-child(2) { opacity: 0; }
.header__hamburger--active span:nth-child(3) {
  transform: rotate(-45deg) translate(5.5px, -5.5px);
  background: var(--color-text) !important;
}

/* ===== Full-screen Nav Overlay ===== */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  overflow-y: auto;
}
.nav-overlay--open {
  opacity: 1;
  visibility: visible;
}
.nav-overlay__wrapper {
  display: flex;
  width: 100%;
  max-width: 1700px;
  padding: 120px 60px 60px;
  gap: 60px;
  align-items: center;
  margin: 0 auto;
}
.nav-overlay__menu {
  flex: 0 0 35%;
  min-width: 0;
}
.nav-overlay__images {
  flex: 1;
  position: relative;
  height: 85vh;
  max-height: 1500px;
  border-radius: 8px;
  overflow: hidden;
  min-width: 0;
}
.nav-overlay__image-set {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.nav-overlay__image-set--active {
  opacity: 1;
  pointer-events: auto;
}
.nav-overlay__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.nav-overlay__img--active {
  opacity: 1;
}
.nav-overlay__item-group {
  margin-bottom: 8px;
}
.nav-overlay__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: inherit;
  font-size: 48px;
  font-weight: 300;
  color: var(--color-text);
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px 0;
  text-decoration: none;
  transition: color 0.3s;
  width: 100%;
  text-align: left;
}
.nav-overlay__item:hover {
  color: var(--color-body);
}
.nav-overlay__item--active {
  color: var(--color-accent);
}
.nav-overlay__chevron {
  color: var(--color-accent);
  font-size: 36px;
  transition: transform 0.3s;
  display: inline-block;
}
.nav-overlay__item--active .nav-overlay__chevron {
  transform: rotate(90deg);
}
.nav-overlay__submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
  padding-left: 8px;
}
.nav-overlay__submenu--open {
  max-height: 300px;
  opacity: 1;
}
.nav-overlay__sublink {
  display: block;
  padding: 10px 0 10px 20px;
  font-size: 18px;
  color: var(--color-text);
  font-weight: 400;
  transition: color 0.2s, padding-left 0.2s;
  border-left: 2px solid var(--color-gray-bg);
}
.nav-overlay__sublink:hover {
  color: var(--color-accent);
  padding-left: 28px;
  border-left-color: var(--color-accent);
}

/* ===== Content Sections ===== */
.section {
  padding: var(--section-padding) 40px;
  max-width: var(--content-max-width);
  margin: 0 auto;
}
.section--full {
  max-width: 100%;
  padding: 0;
}
.section--gray {
  background: var(--color-gray-bg);
}
.section--gray > .section__inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: var(--section-padding) 40px;
}
/* Lead intro paragraph sitting directly under a page hero: trim the oversized
   top/bottom padding so a single short paragraph doesn't leave a large dead band. */
.section--lead {
  padding-top: 56px;
  padding-bottom: 24px;
}
/* Pull a following gray section up toward a --lead intro (tightens the seam). */
.section--flush-top.section--gray > .section__inner {
  padding-top: 56px;
}
.section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.section__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-secondary);
  margin-bottom: 16px;
  font-weight: 600;
}
.section__heading {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.section__text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-body);
  margin-bottom: 28px;
}
.section__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-accent);
  font-weight: 500;
  transition: gap 0.3s;
}
.section__link:hover { gap: 14px; }
.section__link::after { content: '\2192'; }
.section__image {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

/* ===== Page Hero (for inner pages) ===== */
.page-hero {
  position: relative;
  height: 400px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 60px 40px;
}
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.55) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 60px 40px;
  color: #fff;
}
.page-hero__overlay > * {
  position: relative;
  z-index: 1;
}
.page-hero__content {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: var(--content-max-width);
  margin: 0 auto;
  width: 100%;
}
.page-hero__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 12px;
  opacity: 0.8;
  font-weight: 500;
}
.page-hero__title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

/* ===== CTA Banner ===== */
.cta-banner {
  background: var(--color-text);
  padding: 90px 40px;
  text-align: center;
}
.cta-banner__heading {
  font-size: 44px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 36px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.cta-banner__button {
  display: inline-block;
  padding: 14px 44px;
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 9999px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
  font-family: inherit;
  transition: background 0.3s, color 0.3s;
  cursor: pointer;
}
.cta-banner__button:hover {
  background: #fff;
  color: var(--color-text);
}

/* ===== Employment Banner ===== */
.employment {
  position: relative;
  height: 500px;
  overflow: hidden;
}
.employment__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.employment__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 40px;
}
.employment__heading {
  font-size: 44px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}
.employment__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  padding-bottom: 4px;
  transition: border-color 0.3s, gap 0.3s;
}
.employment__link:hover {
  border-color: #fff;
  gap: 14px;
}

/* ===== Footer ===== */
.footer {
  background: var(--color-dark-bg);
  color: var(--color-footer-text);
  padding: 64px 40px 30px;
}
.footer__inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
}
.footer__logo {
  margin-bottom: 12px;
  line-height: 0;
}
.footer__logo img {
  height: 68px;
  width: auto;
  display: block;
}
.footer__tagline {
  font-size: 13px;
  color: #828282; /* H2/Q16: was #777 (3.88:1 on #1a1a1a) -> 4.53:1 WCAG AA */
  margin-bottom: 12px;
  line-height: 1.5;
}
.footer__address {
  font-style: normal;
  font-size: 13px;
  color: #828282; /* H2/Q16: was #777 (3.88:1 on #1a1a1a) -> 4.53:1 WCAG AA */
  line-height: 1.6;
  margin-bottom: 20px;
}
.footer__heading {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #828282; /* H2/Q16: was #777 (3.88:1 on #1a1a1a) -> 4.53:1 WCAG AA */
  margin-bottom: 16px;
  font-weight: 600;
}
.footer__link {
  display: block;
  padding: 4px 0;
  font-size: 14px;
  color: #aaa;
  transition: color 0.2s;
}
.footer__link:hover { color: #fff; }
.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #444;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 14px;
  transition: border-color 0.3s, color 0.3s;
}
.footer__social a:hover {
  border-color: #fff;
  color: #fff;
}
.footer__newsletter-input {
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid #444;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 12px;
  outline: none;
  transition: border-color 0.3s;
}
.footer__newsletter-input:focus {
  border-color: var(--color-accent);
}
.footer__newsletter-input::placeholder {
  color: #666;
}
.footer__newsletter-btn {
  padding: 10px 24px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.3s;
}
.footer__newsletter-btn:hover { background: var(--color-accent-hover); }
.footer__bottom {
  max-width: var(--content-max-width);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #828282; /* H2/Q16: was #666 (3.03:1 on #1a1a1a) -> 4.53:1 WCAG AA */
}
.footer__legal {
  display: flex;
  gap: 24px;
}
.footer__legal a {
  color: #828282; /* H2/Q16: was #666 (3.03:1 on #1a1a1a) -> 4.53:1 WCAG AA */
  transition: color 0.2s;
}
.footer__legal a:hover { color: #fff; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .nav-overlay__item { font-size: 40px; }
  .section__grid { gap: 40px; }
  .section__heading { font-size: 32px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .page-hero__title { font-size: 38px; }
}

@media (max-width: 768px) {
  .header { padding: 0 24px; }
  .nav-overlay__wrapper { padding: 100px 24px 40px; flex-direction: column; gap: 30px; }
  .nav-overlay__menu { flex: none; width: 100%; }
  .nav-overlay__images { display: none; }
  .nav-overlay__item { font-size: 32px; padding: 10px 0; }
  .nav-overlay__chevron { font-size: 28px; }
  .nav-overlay__sublink { font-size: 16px; }
  .section { padding: 60px 24px; }
  .section--gray > .section__inner { padding: 60px 24px; }
  .section__grid { grid-template-columns: 1fr; }
  .section__image { height: 320px; }
  .cta-banner { padding: 60px 24px; }
  .cta-banner__heading { font-size: 28px; }
  .employment { height: 400px; }
  .employment__heading { font-size: 28px; }
  .footer { padding: 48px 24px 24px; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
  .page-hero { height: 300px; padding: 40px 24px; }
  .page-hero__title { font-size: 32px; }
}

@media (max-width: 480px) {
  .section__heading { font-size: 26px; }
  .cta-banner__heading { font-size: 24px; }
  .employment__heading { font-size: 24px; }
  .page-hero__title { font-size: 28px; }
}

/* d03-t01: full-bleed immersive careers hero (In the Field crew + excavator) */
.page-hero--full { height: 72vh; min-height: 520px; align-items: flex-end; }
@media (max-width: 768px) { .page-hero--full { height: 60vh; min-height: 380px; } }
