/*!---------- NEWDESIGN2: split hero + refreshed type + nav (scoped to this page only) ----------*/

/* ---- Type system ----
   IBM Plex Sans (bold) carries every heading; Archivo (medium) carries
   body copy. Base paragraph size is raised to 18px (16px on mobile) and
   set to a near-black color, since the stock theme ships 13px body text
   in a mid-grey that reads too small and too light for this much
   on-page copy. `.image-bg`/`.split-hero-text` rules elsewhere already
   force white text on dark photo sections at higher specificity, so
   this stays readable over the hero and the two parallax sections
   without any extra overrides. */

body {
  font-family: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 30px;
  color: #1a1a1a;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: #111111;
}

p, li, span {
  font-family: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 30px;
  color: #1a1a1a;
}

p.lead {
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
}

.menu, .btn, .nav-cta {
  font-family: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0;
}

.lead.uppercase {
  font-family: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 2px;
}

@media all and (max-width: 767px) {
  body, p, li, span { font-size: 16px; line-height: 26px; }
  p.lead { font-size: 18px; line-height: 28px; }
}

/*!---------- FIXED BACKGROUND (replaces parallax.js on image sections) ----------

   parallax.js drives its scroll effect by snapshotting each .parallax
   section's offsetTop/outerHeight once (on window.load, plus one built-in
   500ms retry) and reusing those cached numbers on every scroll frame to
   translate .background-image-holder via transform. Anything that reflows
   page height after that snapshot - webfonts swapping in, the flexslider
   project carousel measuring itself, images finishing below the fold -
   leaves the cached offset stale, so the image translates to the wrong
   position on scroll and the plain #292929 fallback color behind it shows
   through as a grey gap.

   A native `background-attachment: fixed` background sidesteps this
   entirely: the browser pins the image to the viewport itself, with no
   JS measurement to go stale. The theme's own JS still writes the photo
   in as an inline `background: url(...)` shorthand (see scripts.js),
   which silently resets background-attachment to its default - so this
   has to carry !important to win over that inline declaration. */
.fixed-bg .background-image-holder {
  background-attachment: scroll !important;
}

@media all and (max-width: 767px) {
  /* iOS Safari doesn't support fixed backgrounds reliably (the stock
     theme disables .parallax on mobile for the same reason), so fall
     back to a normal scrolling background there. */
  .fixed-bg .background-image-holder {
    background-attachment: scroll !important;
  }
}

/*!---------- NAVIGATION ENHANCEMENTS ----------*/

/* theme.css sets `body { overflow-x: hidden; }` for the whole site. Having
   any overflow value on <body> (even just on one axis) makes browsers treat
   body itself as the scrolling box instead of the viewport, which silently
   breaks `position: sticky` on anything inside it - the nav never sticks.
   Move that clipping to <html> for this page so the sticky nav below works,
   without touching the shared theme.css that every other page relies on. */
html {
  overflow-x: hidden;
}

body.scroll-assist {
  overflow-x: visible;
}

/* The sticky box has to be `.nav-container`, not `<nav>` itself. A sticky
   element can only travel inside its own containing block, and `.nav-container`
   is exactly as tall as the nav it wraps - so a sticky <nav> has nowhere to
   travel and scrolls straight off the screen with the rest of the page.
   `.nav-container` is a direct child of <body>, whose box spans the whole
   document, so pinning the container keeps the bar up for the entire page. */
.nav-container {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container nav {
  transition: box-shadow 0.35s ease;
}

.nav-container nav.scrolled {
  box-shadow: 0 10px 30px rgba(20, 20, 20, 0.1);
}

/* scripts.js actively hides this nav while you scroll the first section: it
   adds `.fixed` (visibility:hidden; opacity:0) and `.outOfSight`
   (translate3d(0,-200px,0)), and only restores the bar once you are past the
   full height of the hero. newdesign2.html detaches that scroll handler, but
   these rules keep the nav visible even if it ever runs again. theme.css sets
   the <990px version with !important, so these have to match it. */
.nav-container nav.fixed,
.nav-container nav.absolute {
  position: relative !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.nav-container nav.outOfSight {
  transform: none !important;
  -webkit-transform: none !important;
}

.menu li a {
  font-weight: 600;
  letter-spacing: 1.2px;
}

.menu > li > a {
  position: relative;
}

.menu > li > a:before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -21px;
  width: 100%;
  height: 2px;
  background: #c8232c;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.menu > li > a:hover:before {
  transform: scaleX(1);
}

.nav-cta.btn {
  background: #c8232c;
  border-color: #c8232c;
  color: #fff !important;
  padding: 0 26px;
  height: 40px;
  line-height: 38px;
  margin-top: -3px;
  border-radius: 2px;
  font-size: 14px;
}

.nav-cta.btn:hover {
  background: #a91d25;
  border-color: #a91d25;
  color: #fff !important;
}

/*!---------- SPLIT HERO ----------*/

.split-hero {
  min-height: 92vh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  overflow: hidden;
  padding-top: 60px;
  padding-bottom: 60px;
}

.split-hero .background-image-holder {
  background-color: #17181a;
}

.split-hero .background-image-holder img {
  opacity: 0.55;
}

.split-hero-scrim {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    rgba(12, 13, 14, 0.92) 0%,
    rgba(12, 13, 14, 0.82) 32%,
    rgba(12, 13, 14, 0.45) 58%,
    rgba(12, 13, 14, 0.12) 78%,
    rgba(12, 13, 14, 0) 100%
  );
}

.split-hero .container {
  position: relative;
  z-index: 2;
}

.split-hero-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.split-hero-text {
  color: #fff;
}

.split-hero-text .lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.split-hero-tag {
  display: inline-flex;
  align-items: center;
  color: #fff;
  opacity: 1;
}

.split-hero-tag:before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background: #c8232c;
  margin-right: 12px;
  position: relative;
  top: -2px;
}

.split-hero-video {
  position: relative;
}

.hero-video-frame {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
  border: 6px solid rgba(255, 255, 255, 0.92);
  background: #000;
}

.hero-video-ratio {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
}

.hero-video-ratio iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.hero-video-badge {
  position: absolute;
  background: #c8232c;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 8px 16px;
  border-radius: 2px;
  z-index: 3;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.hero-video-caption {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  letter-spacing: 0.5px;
}

.hero-video-caption i {
  color: #c8232c;
}

@media (max-width: 991px) {
  .split-hero {
    min-height: 0;
    padding-top: 100px;
  }
  .split-hero-video {
    margin-top: 48px;
  }
  .hero-video-badge {
    top: -10px;
    left: -10px;
  }
}

/*!---------- EQUIPMENT GALLERY ----------*/

.equipment-gallery-row {
  margin-top: 48px;
}

.equipment-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.equipment-gallery-item img {
  width: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.equipment-gallery-item:hover img {
  transform: scale(1.06);
}

@media (max-width: 767px) {
  .equipment-gallery-item img {
    height: 140px;
  }
}

/*!---------- SPLIT CONTENT (image + text) ----------*/

.split-content-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.split-content-image img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18);
  height: 738px;
  object-fit: cover;
}

.split-content-text {
  padding-left: 48px;
}

@media (max-width: 991px) {
  .split-content-image {
    margin-bottom: 40px;
  }
  .split-content-text {
    padding-left: 15px;
  }
}

/*!---------- PROJECT SLIDER ----------*/

.project-slider-head {
  margin-bottom: 48px;
}

/* Undo the stock FlexSlider chrome (white border, radius, drop shadow and a
   60px bottom margin) so the cards sit flush in the section. */
.project-slider.flexslider {
  /* The bottom margin keeps the paging dots (absolutely positioned below the
     track) clear of the "View All Projects" button underneath. */
  margin: 0 0 80px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Lay the track out with flexbox so every card in view is the same height,
   however long its title or blurb runs. FlexSlider sets each slide's width
   inline, so the items must not be allowed to grow or shrink off that. */
.project-slider .slides {
  display: flex;
  align-items: stretch;
}

/* FlexSlider only uses its `itemMargin` option for width arithmetic - it never
   applies the gutter itself, so the value below has to match itemMargin in
   newdesign2.html or the cards butt together and a stray card peeks in. */
.project-slider .slides > li {
  float: none !important;
  flex: 0 0 auto;
  display: block;
  margin-right: 30px;
}

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.14);
}

.project-card-image {
  position: relative;
  overflow: hidden;
  /* Keeps every thumbnail the same shape regardless of the source file. */
  padding-bottom: 62%;
}

.project-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-card-image img {
  transform: scale(1.06);
}

.project-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 28px 26px 26px;
}

.project-card-location {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #c8232c;
  margin-bottom: 10px;
}

.project-card-location i {
  margin-right: 5px;
}

.project-card h5 {
  margin-bottom: 12px;
  line-height: 1.35;
}

.project-card p {
  margin-bottom: 20px;
  font-size: 16px;
}

/* `auto` top margin pins the link to the bottom of every card, so the links
   line up across the row even when the blurbs differ in length. */
.project-card-link {
  margin-top: auto;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #c8232c;
}

.project-card-link i {
  margin-left: 6px;
  font-size: 10px;
  transition: transform 0.25s ease;
  display: inline-block;
}

.project-card-link:hover i {
  transform: translateX(4px);
}

/* theme.css styles the arrows white for full-bleed image sliders. On this
   light section they need to be dark pills instead. */
.project-slider .flex-direction-nav a {
  width: 44px;
  height: 44px;
  margin: -22px 0 0;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  opacity: 1;
  text-align: center;
  line-height: 42px;
}

.project-slider .flex-direction-nav a:before {
  color: #292929;
  font-size: 16px;
  line-height: 42px;
}

.project-slider .flex-direction-nav a:hover {
  background: #c8232c;
  border-color: #c8232c;
}

.project-slider .flex-direction-nav a:hover:before {
  color: #fff;
}

.project-slider .flex-direction-nav a.flex-prev {
  left: -22px;
}

.project-slider .flex-direction-nav a.flex-next {
  right: -22px;
}

.project-slider .flex-control-nav {
  bottom: -48px;
}

.project-slider .flex-control-nav li a {
  border-color: #b5b5b5;
}

.project-slider .flex-control-nav li a.flex-active {
  background: #c8232c;
  border-color: #c8232c;
}

/* theme.css hides slider arrows under 768px. The cards are one-up at that
   width, so bring them back inside the frame rather than hanging off it. */
@media all and (max-width: 768px) {
  .project-slider .flex-direction-nav {
    display: block;
  }
  /* One card fills the width here, so the arrows sit inside it. Pin them over
     the image instead of the card's vertical centre, where they would land on
     top of the location line and the heading. */
  .project-slider .flex-direction-nav a {
    top: 100px;
    margin-top: 0;
  }
  .project-slider .flex-direction-nav a.flex-prev {
    left: 10px;
  }
  .project-slider .flex-direction-nav a.flex-next {
    right: 10px;
  }
}
