/* Rebuild-only styles: static replacements for the live site's Revolution Slider
   modules, plus the few things the WordPress plugins drew with JavaScript.
   Everything else comes from the live stylesheets in ./wp/. */

/* ---- Page banners (RevSlider, 1920x500 grid, full width) ---- */
.tag-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 500;
  max-height: 500px;
  overflow: hidden;
  container-type: inline-size;
}
.tag-banner-stage {
  --g: calc(min(100cqw, 1920px) / 1920);
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: calc(var(--g) * 1920);
  transform: translateX(-50%);
}
.tag-banner-layer {
  position: absolute;
  display: block;
  max-width: none;
}
img.tag-banner-layer { object-fit: fill; }
.tag-banner-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: calc(var(--g) * 90);
  line-height: calc(var(--g) * 70);
  letter-spacing: calc(var(--g) * -1);
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  color: #fff;
}

/* ---- Homepage slider (RevSlider, 1230x650 grid, full width) ---- */
.tag-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 1230 / 650;
  max-height: 650px;
  overflow: hidden;
  container-type: inline-size;
  background: #000;
}
.tag-slider-bg {
  position: absolute;
  inset: 0;
  filter: contrast(1.1) saturate(1.1); /* RevSlider "mayfair" filter */
}
.tag-slider-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.8), rgba(255, 200, 200, 0.6), #111 60%);
  mix-blend-mode: overlay;
  opacity: 0.4;
}
.tag-slider-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tag-slider-stage {
  --g: calc(min(100cqw, 1230px) / 1230);
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: calc(var(--g) * 1230);
  transform: translateX(-50%);
}
.tag-slider-title {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
}
.tag-slider-headline {
  display: inline-block;
  margin: 0;
  padding: 0;
  font-family: "Cabin", sans-serif;
  font-weight: 700;
  font-size: calc(var(--g) * 100);
  line-height: calc(var(--g) * 72);
  letter-spacing: calc(var(--g) * 6);
  white-space: nowrap;
  text-align: left;
  color: #fff;
  text-shadow: rgba(0, 0, 0, 0.75) 0 10px 10px;
}
.tag-slider-headline--tint {
  color: rgba(255, 206, 206, 0.79);
  text-shadow: rgba(0, 0, 0, 0.75) 5px 0 10px;
}
.tag-slider-label {
  position: absolute;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: calc(var(--g) * 36);
  line-height: calc(var(--g) * 40);
  letter-spacing: calc(var(--g) * 1);
  white-space: nowrap;
  color: #fff;
  animation: tag-label-in 0.8s ease-out both;
}
.tag-slider-label:nth-of-type(1) { animation-delay: 0.6s; }
.tag-slider-label:nth-of-type(2) { animation-delay: 0.9s; }
.tag-slider-label:nth-of-type(3) { animation-delay: 1.2s; }
@keyframes tag-label-in {
  from { opacity: 0; transform: translateY(calc(var(--g) * 50)); }
}
/* the live slider hides the labels at its mobile level and every layer below 631px */
@media (max-width: 777px) {
  .tag-slider-label { display: none; }
}
@media (max-width: 630px) {
  .tag-slider-title { display: none; }
}

/* ---- Case Studies (new pages, built from the live featured-box tiles) ---- */
/* the live tiles use 600x300 crops; case study photos vary, so crop them the same way */
.tag-feature-rows .featured-box-thumb img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

/* ---- WPBakery grids: masonry positions are set by site.ts ---- */
.vc_masonry_grid .vc_pageable-slide-wrapper,
.vc_masonry_media_grid .vc_pageable-slide-wrapper { position: relative; }

/* Owl carousel page dot under the homepage Latest News grid (one page, so one dot) */
.vc_grid-owl-dots {
  margin-top: 20px;
  text-align: center;
}
.vc_grid-owl-dot {
  display: inline-block;
}
.vc_grid-owl-dot span {
  display: block;
  width: 10px;
  height: 10px;
  margin: 5px 7px;
  background: #ebebeb;
  border: 3px solid #ebebeb;
  border-radius: 10px;
  box-sizing: border-box;
}

/* Twemoji images, styled as WordPress's emoji script styles them */
img.emoji {
  display: inline !important;
  border: none !important;
  box-shadow: none !important;
  height: 1em !important;
  width: 1em !important;
  margin: 0 0.07em !important;
  vertical-align: -0.1em !important;
  background: none !important;
  padding: 0 !important;
}

/* ---- Forms (no WordPress backend): submission feedback ---- */
.wpcf7 form .wpcf7-response-output:empty { display: none; }
/* spam honeypot field, hidden exactly as WPForms hides its own */
.wpforms-hp {
  position: absolute !important;
  overflow: hidden !important;
  display: inline !important;
  height: 1px !important;
  width: 1px !important;
  z-index: -1000 !important;
  padding: 0 !important;
}
.wpforms-hp input { visibility: hidden; }

/* Contact Us office details text style (CMS "Large & bold" text size): email links smaller */
.tag-office a[href^="mailto:"] {
  font-weight: 400 !important;
  font-size: 80% !important;
}

/* Pages without a banner: start the content below the header (which sits over the banner on other pages) */
.tag-no-hero > .row_inner_wrapper{padding-top:175px}
@media (max-width:1199px){.tag-no-hero > .row_inner_wrapper{padding-top:185px}}
