/* Shared blocks for the Divisions section (divisions, mechanical, electrical, civil, marine, geotechnical).
   Linked by all six division pages, before each page's own stylesheet. */

/* ---------- Sticky division sub-navigation ---------- */
.div-subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: var(--white);
  border-bottom: 1px solid var(--color-border);
}
.div-subnav ul {
  display: flex;
  gap: var(--space-1);
  overflow-x: auto;
  list-style: none;
  padding: 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.div-subnav ul::-webkit-scrollbar { display: none; }
.div-subnav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.95rem 0.85rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-600);
  transition: color var(--dur);
}
.div-subnav a svg { width: 16px; height: 16px; color: var(--ink-400); transition: color var(--dur); }
.div-subnav a:hover,
.div-subnav a[aria-current="page"] { color: var(--ink-900); }
.div-subnav a:hover svg,
.div-subnav a[aria-current="page"] svg { color: var(--color-accent); }
.div-subnav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0;
  height: 3px;
  background: var(--color-accent);
  transform: skewX(var(--slant));
}

/* ---------- Chips (expertise tags) ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
}
.chips li {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--white);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-700);
}
.section--dark .chips li {
  background: transparent;
  border-color: var(--color-border-dark);
  color: var(--white);
}

/* ---------- Icon list grid (scope / expertise) ---------- */
.icon-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: var(--space-3);
  list-style: none;
  padding: 0;
}
.icon-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--ink-800);
}
.icon-list svg {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 0.1rem;
  color: var(--color-accent);
}
.icon-list small { display: block; font-weight: 400; color: var(--color-text-muted); }
.section--dark .icon-list li {
  background: var(--ink-800);
  border-color: var(--color-border-dark);
  color: var(--white);
}
.section--dark .icon-list small { color: var(--color-text-inverse-muted); }

/* ---------- Stat / spec block ---------- */
.spec-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.spec-stats > div { padding: var(--space-6) var(--space-5); background: var(--white); }
.spec-stats dt {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.spec-stats dd {
  margin-top: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 700;
  line-height: 1;
  color: var(--ink-900);
}
.spec-stats dd em { font-style: normal; font-size: 0.5em; color: var(--color-accent); margin-left: 0.1em; }
.spec-stats .spec-stats__note { margin-top: var(--space-2); font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 400; line-height: var(--lh-body); color: var(--color-text-muted); }

/* ---------- Photo mosaic ---------- */
.mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}
.mosaic .media-frame { aspect-ratio: 4 / 3; }
.mosaic .mosaic__tall { grid-row: span 2; aspect-ratio: auto; }

/* ---------- Highlight band (flagship project) ---------- */
.highlight {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.highlight__bg { position: absolute; inset: 0; z-index: -2; opacity: 0.25; }
.highlight__bg img { width: 100%; height: 100%; object-fit: cover; }
.highlight::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, var(--ink-900) 35%, rgba(23, 20, 21, 0.75));
}
.highlight .lead { color: var(--color-text-inverse-muted); }

/* ---------- Division CTA card (end of page, before cta-band) ---------- */
.related-divisions .card { gap: var(--space-2); }
.related-divisions .card h3 a::after { content: ""; position: absolute; inset: 0; }
