:root {
  --hbc-red: #9e3223;
  --hbc-red-dark: #7f281c;
  --charcoal: #151515;
  --text: #2a2a2a;
  --muted: #6f6f76;
  --line: rgba(21, 21, 21, 0.08);
  --soft: #f5f3f1;
  --market-bg: #f2f2f0;
  --icon-blue: #9e3223;
  --icon-green: #9e3223;
  --hover-blue: #9e3223;
  --white: #ffffff;
  --location-blue: #f2f2f0;
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.06);
  --radius: 24px;
  --container: 1260px;
  --transition: 240ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Aptos, Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: #fff;
  overflow-x: hidden;
}

body.mobile-menu-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

/* ---- Accessibility: focus-visible outlines ---- */
:focus-visible {
  outline: 2px solid var(--hbc-red);
  outline-offset: 2px;
}

/* ---- Accessibility: skip-to-main link ---- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 12px 20px;
  background: var(--hbc-red);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.section-pad {
  padding: 96px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--hbc-red);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.eyebrow.light {
  color: rgba(255, 255, 255, 0.88);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading.no-margin {
  margin-bottom: 0;
}

.markets-heading {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.section-heading h2,
.intro-grid h2,
.split-copy h2,
.cta-inner h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 3vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--charcoal);
}

.section-heading p,
.intro-grid p,
.split-copy p,
.cta-inner p,
.hero-text {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.site-header-home {
  --home-header-progress: 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, calc(0.94 * var(--home-header-progress)));
  backdrop-filter: blur(calc(14px * var(--home-header-progress)));
  border-bottom-color: rgba(21, 21, 21, calc(0.08 * var(--home-header-progress)));
  box-shadow: 0 8px 24px rgba(0, 0, 0, calc(0.04 * var(--home-header-progress)));
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo-stack {
  display: grid;
}

.brand-logo-stack .brand-logo {
  grid-area: 1 / 1;
  transition: opacity 260ms ease;
}

.brand-logo {
  width: auto;
  height: 54px;
  object-fit: contain;
  display: block;
}

.site-header-home .brand-logo-light {
  opacity: calc(1 - var(--home-header-progress));
}

.site-header-home .brand-logo-dark {
  opacity: var(--home-header-progress);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.desktop-nav > a,
.nav-button {
  color: var(--charcoal);
  font-weight: 600;
  font-size: 0.96rem;
}

.nav-cta {
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.site-header-home .desktop-nav > a,
.site-header-home .nav-button {
  color: #fff;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.28);
}

.site-header-home .nav-cta {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.08);
  text-shadow: none;
}

.site-header-home .mobile-toggle {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.42);
}

.site-header-home .mobile-toggle span {
  background: #fff;
}

.site-header-home.scrolled .desktop-nav > a,
.site-header-home.scrolled .nav-button {
  color: var(--charcoal);
  text-shadow: none;
}

.site-header-home.scrolled .nav-cta {
  color: var(--charcoal);
  border-color: var(--line);
  background: transparent;
}

.site-header-home.scrolled .mobile-toggle {
  background: #fff;
  border-color: var(--line);
}

.site-header-home.scrolled .mobile-toggle span {
  background: var(--charcoal);
}

.nav-item {
  position: relative;
}

.nav-button {
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
}

.mega-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 82vw);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  transition-delay: 0.35s;
}

.mega-menu::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  width: 100%;
  height: 14px;
}

.has-mega:hover .mega-menu,
.has-mega:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 20px;
}

.mega-column {
  display: grid;
  gap: 10px;
}

.mega-column a {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}

.mega-column a:hover,
.mega-cta:hover {
  color: var(--hbc-red);
}

.mega-eyebrow {
  margin: 0 0 8px;
  color: var(--hbc-red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mega-feature {
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, #faf5f3, #f2ece8);
  border: 1px solid var(--line);
}

.mega-feature-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
}

.mega-feature h4 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  line-height: 1.2;
}

.mega-feature p {
  margin: 0 0 16px;
  color: var(--muted);
}

.mega-cta {
  font-weight: 700;
  color: var(--hbc-red);
}

.mobile-toggle {
  display: none;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--charcoal);
  margin: 4px auto;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1001;
  padding: 0 20px 20px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
  max-height: calc(100vh - 76px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}

.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #111;
}

.hero-media {
  position: absolute;
  inset: -40px 0 0 0;
  overflow: hidden;
  transform: scale(1.06);
  will-change: transform;
  background:
    radial-gradient(circle at top left, rgba(158, 50, 35, 0.3), transparent 34%),
    linear-gradient(180deg, #1a1a1a, #0d0d0d);
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 280ms ease;
}

.hero-video.is-ready {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(158, 50, 35, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.38), rgba(10, 10, 10, 0.84));
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(120px, 14vh, 168px) 0 clamp(56px, 7vh, 88px);
  color: #fff;
  max-width: min(1200px, 100% - 32px);
}

.hero-content .eyebrow {
  margin-bottom: 22px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.1rem, 1vw, 1.25rem);
  max-width: 640px;
  padding-left: 22px;
  border-left: 12px solid var(--hbc-red);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--hbc-red);
  color: #fff;
}

.btn-primary:hover {
  background: var(--hbc-red-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn-careers {
  background: var(--hbc-red);
  color: #fff;
  min-height: 80px;
  padding: 0 60px;
  font-size: 1.55rem;
}

.btn-careers:hover {
  background: var(--hbc-red-dark);
  transform: translateY(-2px);
}

.btn-outline-neutral {
  background: #fff;
  color: var(--charcoal);
  border: 1px solid var(--line);
}

.btn-outline-neutral:hover {
  background: #f6f4f2;
}

.hero-awards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 260px));
  gap: 18px;
  margin-top: 36px;
}

.hero-award {
  display: block;
  width: 100%;
  height: auto;
  max-width: 260px;
  max-height: 260px;
  object-fit: contain;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 10px;
  max-width: 560px;
  margin-top: 16px;
}

.hero-stat {
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.hero-stat strong {
  display: block;
  font-size: 1.45rem;
  color: var(--charcoal);
}

.hero-stat span {
  color: rgba(0, 0, 0, 0.6);
  font-size: 0.92rem;
}

.intro-band {
  padding: 38px 0;
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.services-mosaic {
  background: #fff;
}

.mosaic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.mosaic-card {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  transition: transform 260ms ease;
}

.mosaic-card.large {
  min-height: 390px;
}

.mosaic-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: transform 500ms ease;
  z-index: 0;
}

.mosaic-card > * {
  position: relative;
  z-index: 1;
}

/* Desktop-only hover — scoped to real pointer devices so Chrome/Android
   doesn't trigger these on tap and get stuck in a hover state */
@media (hover: hover) {
  .mosaic-card:hover::before {
    transform: scale(1.06);
  }

  .mosaic-card:hover .mosaic-overlay {
    background: linear-gradient(180deg, rgba(158, 50, 35, 0.24), rgba(158, 50, 35, 0.52));
  }

  .mosaic-card:hover .mosaic-content a {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .mosaic-content a:hover {
    background: rgba(255, 255, 255, 0.14);
  }
}

/* Mobile tap animation — .is-clicking added by JS on "Read More" press */
.mosaic-card.is-clicking::before {
  transform: scale(1.06);
}

.mosaic-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(19, 19, 19, 0.18), rgba(19, 19, 19, 0.54));
  transition: background 260ms ease;
}

.mosaic-card.is-clicking .mosaic-overlay {
  background: linear-gradient(180deg, rgba(158, 50, 35, 0.24), rgba(158, 50, 35, 0.52));
}

.mosaic-content {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 28px;
  z-index: 2;
  color: #fff;
}

.mosaic-content h3 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 2vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
}

.mosaic-content p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.94);
  max-width: 90%;
  font-size: 1rem;
}

.mosaic-content a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease, background 220ms ease;
}

.mosaic-card.is-clicking .mosaic-content a {
  opacity: 1;
  transform: translateY(0);
}

.service-highway::before {
  background: url("assets/images/services/transportation.jpg") center center / cover no-repeat;
}

.service-transport::before {
  background: url("assets/images/services/transportation.jpg") center center / cover no-repeat;
}

.service-structural::before {
  background: url("assets/images/services/structures.jpg") center center / cover no-repeat;
}

.service-cei::before {
  background: url("assets/images/services/construction.jpg") center center / cover no-repeat;
}

.service-water::before {
  background: url("assets/images/services/water.jpg") center center / cover no-repeat;
}

.service-public::before {
  background: url("assets/images/services/general.jpg") center center / cover no-repeat;
}

.markets-icons {
  background: var(--market-bg);
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 52px 34px;
  align-items: start;
}

.icon-market {
  text-align: center;
}

.icon-circle {
  width: min(260px, 100%);
  aspect-ratio: 1 / 1;
  margin: 0 auto 20px;
  border: 4px solid rgba(158, 50, 35, 0.22);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: transparent;
}

.icon-circle i {
  font-size: clamp(3.8rem, 5vw, 5.4rem);
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  background-clip: initial;
  color: var(--hbc-red);
}

.red-icon .icon-circle,
.gradient-icon .icon-circle {
  border-color: rgba(158, 50, 35, 0.24);
}

.red-icon .icon-circle i,
.gradient-icon .icon-circle i {
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  background-clip: initial;
  color: var(--hbc-red);
}

.icon-market h3 {
  margin: 0;
  color: #273140;
  font-size: clamp(1.1rem, 1.5vw, 1.65rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.projects {
  background: linear-gradient(180deg, #fbf9f8 0%, #ffffff 100%);
}

.client-strip {
  margin: 0 0 30px;
  padding: 22px 0 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.client-strip-head {
  margin-bottom: 14px;
}

.client-logo-rail {
  --client-gap: 28px;
  position: relative;
  overflow: hidden;
  padding: 10px 0;
}

.client-logo-rail::before,
.client-logo-rail::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  z-index: 1;
  pointer-events: none;
}

.client-logo-rail::before {
  left: 0;
  background: linear-gradient(90deg, #fbf9f8 0%, rgba(251, 249, 248, 0) 100%);
}

.client-logo-rail::after {
  right: 0;
  background: linear-gradient(270deg, #fbf9f8 0%, rgba(251, 249, 248, 0) 100%);
}

.client-logo-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: var(--client-gap);
  animation: client-logo-scroll 34s linear infinite;
  will-change: transform;
}

.client-logo-track img {
  width: auto;
  max-width: 132px;
  height: 54px;
  flex: 0 0 auto;
  object-fit: contain;
  opacity: 0.86;
}

@keyframes client-logo-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - (var(--client-gap) / 2)));
  }
}

.projects-head {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
  margin-bottom: 22px;
}

.slider-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.slider-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
}

.slider-btn:hover {
  background: var(--hbc-red);
  color: #fff;
  border-color: var(--hbc-red);
}

.project-slider {
  overflow: hidden;
  border-radius: 28px;
}

.project-track {
  display: flex;
  width: 100%;
  transition: transform 450ms ease;
}

.project-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  max-height: 420px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.project-image-link {
  display: block;
  height: 100%;
}

.project-image {
  height: 100%;
}

.project-image img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

.project-copy {
  padding: 34px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-type {
  margin: 0 0 10px;
  color: var(--hbc-red) !important;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-copy h3 {
  margin: 0 0 12px;
  color: var(--charcoal);
}

.project-copy p {
  margin: 0 0 18px;
  color: var(--muted);
}

.project-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0;
  margin: 10px 0 0;
  list-style: none;
}

.project-tags li {
  padding: 8px 14px;
  border-radius: 999px;
  background: #f3efed;
  font-size: 0.92rem;
  font-weight: 600;
}

.project-cta {
  width: fit-content;
  margin-top: 22px;
  color: var(--hbc-red);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.82rem;
}

.project-cta::after {
  content: " →";
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.slider-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 0;
  background: rgba(21, 21, 21, 0.18);
  cursor: pointer;
}

.slider-dot.active {
  width: 34px;
  background: var(--hbc-red);
}

#about {
  scroll-margin-top: 76px;
}

#services {
  scroll-margin-top: 28px;
}

#locations {
  scroll-margin-top: 76px;
}

.feature-split {
  background: linear-gradient(180deg, #fff 0%, #faf8f6 100%);
}

/* Footer services dropdown spacing and indentation */
.site-footer .footer-column h4 {
  margin-bottom: 10px;
}
.site-footer .footer-services {
  margin-top: 6px;
}
.site-footer .footer-services summary {
  list-style: none;
  cursor: pointer;
  padding: 6px 0;
  margin-left: 6px; /* small indent from the heading */
  color: var(--charcoal);
  font-weight: 600;
}
.site-footer .footer-services[open] summary {
  color: var(--hbc-red);
}
.site-footer .footer-services ul {
  margin: 8px 0 0 18px; /* indent the list items */
  padding: 0;
}
.site-footer .footer-services li {
  margin: 6px 0;
}

/* Responsive header and mega-menu for mobile/tablet */
@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .mega-menu {
    position: static;
    transform: none;
    width: 100%;
    max-width: none;
    margin: 12px 0 0 0;
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow-soft);
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  /* keep the mega-menu scrollable on small devices instead of scrolling the page */
  .mega-menu {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
  }

  .mega-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .mega-column.mega-feature {
    grid-column: 1 / -1;
  }

  .mega-column a {
    padding: 8px 0;
    border-bottom: none;
    font-weight: 600;
  }
}

@media (max-width: 520px) {
  .mega-grid {
    grid-template-columns: 1fr;
  }

  .mega-menu {
    padding: 12px;
  }

  .mosaic-content {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }
}

/* Mobile menu services details styling */
.mobile-menu details.mobile-services {
  padding: 8px 0;
}
.mobile-menu details.mobile-services summary {
  cursor: pointer;
  font-weight: 700;
  padding: 8px 0;
}
.mobile-menu details.mobile-services a {
  display: block;
  padding-left: 14px;
  padding-top: 6px;
  padding-bottom: 6px;
}

/* Placement photos for services mosaic cards */
.service-aviation::before {
  background: url("assets/images/services/airport.jpg") center center / cover no-repeat;
}
.service-civil::before {
  background: url("assets/images/services/civil-site.jpg") center center / cover no-repeat;
}
.service-coastal::before {
  background: url("assets/images/services/coastal.jpg") center center / cover no-repeat;
}
.service-designbuild::before {
  background: url("assets/images/services/construction.jpg") center center / cover no-repeat;
}
.service-electrical::before {
  background: url("assets/images/services/electrical.jpg") center center / cover no-repeat;
}
.service-general::before {
  background: url("assets/images/services/general.jpg") center center / cover no-repeat;
}
.service-planning::before {
  background: url("assets/images/services/planning.jpg") center center / cover no-repeat;
}
.service-controls::before {
  background: url("assets/images/services/project-controls.jpg") center center / cover no-repeat;
}
.service-seaport::before {
  background: url("assets/images/services/seaport.jpg") center center / cover no-repeat;
}
.service-stormwater::before {
  background: url("assets/images/services/stormwater.jpg") center center / cover no-repeat;
}
.service-structures::before {
  background: url("assets/images/services/structures.jpg") center center / cover no-repeat;
}
.service-technology::before {
  background: url("assets/images/services/technology.jpg") center center / cover no-repeat;
}
.service-traffic::before {
  background: url("assets/images/services/traffic.jpg") center center / cover no-repeat;
}
.service-transport::before {
  background:
    url("assets/images/services/transportation.jpg") center center / cover no-repeat;
}
.service-water::before {
  background: url("assets/images/services/water.jpg") center center / cover no-repeat;
}

.split-grid {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 36px;
  align-items: stretch;
}

.image-card {
  min-height: 520px;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.08), rgba(10, 10, 10, 0.58)),
    url("assets/images/branding/main-office.jpeg")
    calc(50% - 96px) center / cover no-repeat;
}

.image-overlay-card {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  padding: 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
}

.image-overlay-card h3 {
  margin: 0;
  color: var(--charcoal);
}

.split-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-brief-grid {
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  align-items: center;
}

.about-brief-grid .split-copy {
  max-width: 620px;
}

.about-stats {
  width: 100%;
  max-width: 660px;
  justify-self: end;
}

.about-stats .hero-stat {
  text-align: right;
}

.bullet-list {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}

.bullet-list > div {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 14px;
}

.bullet-list span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--hbc-red);
  margin-top: 8px;
}

.bullet-list p {
  margin: 0;
}

.about-inline-cta {
  width: fit-content;
  margin-top: 28px;
}

.locations-band {
  padding-top: 0;
  padding-bottom: 0;
  background: var(--location-blue);
}

.locations-band .container {
  position: relative;
  z-index: 2;
}

.locations-panel {
  background: var(--location-blue);
  padding: 56px 0 10px;
}

.locations-top {
  margin-bottom: 32px;
}

.locations-top h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 3vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.locations-carousel-wrap {
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  gap: 12px;
  align-items: center;
  padding-bottom: 18px;
}

.location-arrow {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(21, 21, 21, 0.18);
  background: transparent;
  color: rgba(21, 21, 21, 0.7);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  justify-self: center;
  transition: 220ms ease;
}

.location-arrow:hover {
  background: rgba(158, 50, 35, 0.08);
  color: var(--hbc-red);
}

.locations-carousel {
  display: grid;
  grid-template-columns: repeat(6, minmax(200px, 1fr));
  gap: 26px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 2px 10px;
}

.locations-carousel::-webkit-scrollbar {
  display: none;
}

.location-slide {
  min-height: 190px;
  padding: 28px 26px;
  background: transparent;
  border: 1px solid rgba(21, 21, 21, 0.08);
  color: rgba(21, 21, 21, 0.82);
  transition: 220ms ease;
  cursor: pointer;
  border-radius: 0;
  scroll-snap-align: start;
}

.location-slide.active {
  background: var(--hbc-red);
  border-color: var(--hbc-red);
  color: #ffffff;
}

.location-slide h3 {
  margin: 0 0 18px;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  color: rgba(21, 21, 21, 0.9);
}

.location-slide.active h3 {
  color: #ffffff;
}

.location-slide p {
  margin: 0 0 14px;
  color: rgba(21, 21, 21, 0.72);
}

.location-slide.active p {
  color: rgba(255, 255, 255, 0.92);
}

.location-slide a {
  color: rgba(21, 21, 21, 0.82);
  font-weight: 500;
}

.location-slide.active a {
  color: #ffffff;
}

.locations-map-wrap {
  width: 100%;
  height: 420px;
  background: #c9d8e4;
}

.locations-map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: saturate(0.9) contrast(0.96);
}

.cta-band {
  padding: 88px 0;
  background:
    radial-gradient(circle at left top, rgba(158, 50, 35, 0.08), transparent 30%),
    linear-gradient(120deg, #ffffff, #f8f6f4);
  color: var(--charcoal);
  border-top: 1px solid var(--line);
}

.cta-inner {
  display: grid;
  grid-template-columns: 1.1fr auto;
  gap: 30px;
  align-items: center;
}

.cta-inner h2 {
  color: var(--charcoal);
}

.cta-inner p {
  color: var(--muted);
}

.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---- Careers CTA Band ---- */
.careers-band {
  position: relative;
  padding: 104px 0;
  background:
    linear-gradient(to right, rgba(21, 21, 21, 0.92), rgba(21, 21, 21, 0.7)),
    url("assets/images/branding/hbc-group-photo.jpg") center / cover no-repeat fixed;
  color: #fff;
  overflow: hidden;
}

/* Mobile: use a fixed pseudo-element clipped to the section for the parallax effect,
   since background-attachment:fixed doesn't work on iOS/Android */
@media (max-width: 920px) {
  .careers-band {
    background: none;
    -webkit-clip-path: inset(0);
    clip-path: inset(0);
  }

  .careers-band::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    background: url("assets/images/branding/hbc-group-photo.jpg") center / cover no-repeat;
  }

  .careers-band::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(to right, rgba(21, 21, 21, 0.92), rgba(21, 21, 21, 0.7));
    pointer-events: none;
  }
}

.careers-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr auto;
  gap: 30px;
  align-items: center;
}

.careers-inner h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 3vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
}

.careers-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.05rem;
  max-width: 540px;
  line-height: 1.6;
}

/* Rotating text animation */
.rotating-text {
  display: inline-block;
  position: relative;
  width: 3.2em;
  text-align: center;
  color: #fff;
}

.rotating-word {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  padding-bottom: 0.15em;
}

.rotating-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  animation: charIn 0.4s ease forwards;
}

.rotating-char.out {
  animation: charOut 0.3s ease forwards;
}

@keyframes charIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes charOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-100%);
  }
}

.careers-band .btn-secondary {
  background: #fff;
  color: var(--charcoal);
  font-weight: 700;
  transition: background var(--transition), transform var(--transition);
}

.careers-band .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.88);
  transform: translateY(-2px);
}

.site-footer {
  background: #ffffff;
  color: var(--text);
  padding: 56px 0 22px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) max-content max-content;
  column-gap: 72px;
  row-gap: 24px;
  align-items: stretch;
}

.footer-brand {
  max-width: 360px;
}

.footer-logo-image {
  width: auto;
  height: 52px;
  object-fit: contain;
  margin-bottom: 14px;
}

.footer-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.65;
}

.footer-column h4 {
  color: var(--charcoal);
  margin: 0 0 14px;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin-bottom: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.footer-grid > .footer-column {
  justify-self: end;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}

.site-footer a {
  color: var(--muted);
  transition: color 180ms ease;
}

.site-footer a:hover {
  color: var(--hbc-red);
}

.footer-contact li:last-child {
  margin-bottom: 0;
}

.footer-bottom {
  padding-top: 18px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--muted);
}

.footer-bottom p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .projects-head,
  .intro-grid,
  .split-grid,
  .cta-inner,
  .careers-inner,
  .footer-grid,
  .project-slide {
    grid-template-columns: 1fr;
    display: grid;
  }

  .project-slide {
    max-height: none;
  }

  .icon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mosaic-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mosaic-card.large,
  .mosaic-card.featured {
    min-height: 360px;
  }
}

@media (max-width: 980px) {
  .locations-carousel-wrap {
    grid-template-columns: 52px 1fr 52px;
  }

  .locations-carousel {
    grid-template-columns: repeat(6, 220px);
    gap: 18px;
  }

  .locations-panel {
    padding: 44px 0 8px;
  }

  .locations-map-wrap {
    height: 360px;
  }
}

@media (max-width: 920px) {
  .desktop-nav {
    display: none;
  }

  .mobile-toggle {
    display: inline-block;
  }

  .section-pad {
    padding: 76px 0;
  }

  .hero {
    min-height: 68vh;
  }

  .hero-content {
    padding: clamp(104px, 13vh, 132px) 0 clamp(48px, 6vh, 72px);
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    max-width: 320px;
    gap: 8px;
  }

  .hero-stat {
    padding: 10px 12px;
    border-radius: 14px;
    text-align: center;
  }

  .hero-stat strong {
    font-size: 1.15rem;
  }

  .hero-stat span {
    font-size: 0.8rem;
  }

  .brand-logo {
    height: 46px;
  }

  .mosaic-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
    border-radius: 16px;
  }

  .mosaic-grid::-webkit-scrollbar {
    display: none;
  }

  .mosaic-card {
    flex: 0 0 78%;
    min-height: 260px;
    scroll-snap-align: start;
  }

  .mosaic-card.large,
  .mosaic-card.featured {
    min-height: 260px;
  }

  .mosaic-content a {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .icon-grid {
    grid-template-columns: 1fr;
  }

  .project-image img {
    min-height: 300px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
  }

  .footer-brand {
    max-width: none;
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .btn-outline-neutral {
    width: 100%;
  }

  .header-inner {
    min-height: 76px;
  }

  .mobile-menu {
    max-height: calc(100vh - 76px);
  }

  .project-copy {
    padding: 28px 22px;
  }

  .image-card {
    min-height: 380px;
  }

  .locations-carousel-wrap {
    grid-template-columns: 44px 1fr 44px;
    gap: 8px;
  }

  .location-arrow {
    width: 42px;
    height: 42px;
    font-size: 1.6rem;
  }

  .locations-carousel {
    grid-template-columns: repeat(6, 86%);
  }

  .location-slide {
    min-height: 176px;
    padding: 22px 20px;
  }

  .locations-map-wrap {
    height: 300px;
  }

  .brand-logo {
    height: 38px;
  }

  .site-footer {
    padding: 42px 0 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
    align-items: start;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }

  .footer-logo-image {
    height: 44px;
    margin-bottom: 12px;
  }

  .footer-brand p {
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .footer-column h4 {
    margin-bottom: 10px;
    font-size: 0.88rem;
  }

  .footer-grid > .footer-column {
    justify-self: start;
    align-items: flex-start;
  }

  .site-footer li {
    margin-bottom: 7px;
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .footer-bottom {
    margin-top: 20px;
    padding-top: 14px;
    font-size: 0.86rem;
  }

  .icon-circle {
    width: 220px;
  }

  .icon-circle i {
    font-size: 4rem;
  }

  .mosaic-content {
    left: 24px;
    right: 24px;
    bottom: 22px;
  }

  .mosaic-card {
    flex: 0 0 84%;
  }

  .mosaic-content h3 {
    font-size: 1.3rem;
  }

  .mosaic-content p {
    font-size: 0.88rem;
    margin-bottom: 14px;
  }

  .mosaic-content a {
    min-height: 40px;
    padding: 0 20px;
    font-size: 0.82rem;
  }
}

/* ── Contact Split / Form ──────────────────────────────── */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 580px;
}

.contact-split-left {
  position: relative;
  display: flex;
  align-items: center;
  padding: 72px 56px;
  background:
    linear-gradient(150deg, rgba(10,10,10,0.72), rgba(158,50,35,0.45)),
    url("assets/images/services/transportation.jpg") center / cover no-repeat;
  color: #fff;
}

.contact-split-left h2 {
  margin: 0 0 20px;
  font-size: clamp(1.7rem, 2.6vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
}

.contact-split-left p {
  margin: 0;
  color: rgba(255,255,255,0.78);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 380px;
}

.contact-split-right {
  background: #fff;
  padding: 72px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-split-right h3 {
  margin: 0 0 6px;
  font-size: 1.4rem;
  color: var(--charcoal);
}

.contact-split-right > p {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.97rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: 0.01em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 0.96rem;
  color: var(--text);
  background: #f9f8f7;
  transition: border-color 200ms ease, background 200ms ease;
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--hbc-red);
  background: #fff;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236f6f76' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-color: #f9f8f7;
  padding-right: 38px;
  cursor: pointer;
}

.form-group select:focus {
  background-color: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.55;
}

.form-hidden {
  display: none !important;
}

.form-submit-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.form-note {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.4;
}

@media (max-width: 920px) {
  .contact-split {
    grid-template-columns: 1fr;
  }

  .contact-split-left {
    min-height: 280px;
    padding: 52px 32px;
  }

  .contact-split-right {
    padding: 52px 32px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .contact-split-left,
  .contact-split-right {
    padding: 44px 20px;
  }
}

/* ── Anniversary Confetti ── */
.confetti-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.confetti-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  animation: confetti-fall 1.6s ease-out forwards;
}

@keyframes confetti-fall {
  0% {
    opacity: 1;
    transform: translateY(0) translateX(0) rotate(0deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(120px) translateX(var(--drift, 20px)) rotate(360deg) scale(0.3);
  }
}

.confetti-dot:nth-child(3n) {
  height: 5px;
  width: 10px;
  border-radius: 2px;
}
.confetti-dot:nth-child(5n) {
  width: 5px;
  height: 12px;
  border-radius: 2px;
}
