/* CLEWIS detail-page readability overrides.
 * Kept separate from the generated bundle so upgrades remain easy to review. */

/* Give inner-page navigation a stable surface instead of placing white text
   directly over bright photography. */
.inner-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 50;
  background: linear-gradient(90deg, rgba(3, 18, 32, .96), rgba(6, 36, 61, .90));
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 12px 34px rgba(2, 15, 28, .18);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
}

.inner-header .site-container {
  min-height: 86px;
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(440px, 1fr) minmax(150px, 190px);
  align-items: center;
  gap: 28px;
}

.inner-header .brand { justify-self: start; }
.inner-header .site-logo {
  filter: brightness(0) invert(1);
  opacity: .96;
}
.inner-header nav {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 2.3vw, 40px);
}
.inner-header nav a {
  color: rgba(255, 255, 255, .88);
  font-weight: 600;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}
.inner-header nav a:hover { color: #fff; }
.inner-header > .site-container > .btn { justify-self: end; }

/* The left-weighted overlay protects the title and copy while retaining the
   architectural detail on the right side of the image. */
.inner-hero.service-detail-hero {
  min-height: 720px;
  isolation: isolate;
  overflow: hidden;
}

.inner-hero.service-detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(2, 16, 29, .90) 0%,
      rgba(3, 22, 39, .78) 32%,
      rgba(5, 25, 43, .48) 57%,
      rgba(4, 19, 32, .20) 78%,
      rgba(4, 18, 30, .12) 100%),
    linear-gradient(180deg, rgba(3, 17, 29, .18), rgba(3, 17, 29, .30));
}

.inner-hero.service-detail-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}

.inner-hero.service-detail-hero > .site-container {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 128px));
  margin-inline: auto;
  padding-top: 178px;
  padding-bottom: 96px;
}

.inner-hero.service-detail-hero h1 {
  max-width: 720px;
  margin-top: 26px;
  text-shadow: 0 4px 28px rgba(0, 0, 0, .45);
}

.inner-hero.service-detail-hero .eyebrow,
.inner-hero.service-detail-hero .site-container > p:not(.eyebrow) {
  text-shadow: 0 2px 18px rgba(0, 0, 0, .50);
}

.inner-hero.service-detail-hero .site-container > p:not(.eyebrow) {
  max-width: 650px;
  color: rgba(255, 255, 255, .88);
  line-height: 1.9;
}

@media (max-width: 1050px) {
  .inner-header .site-container {
    grid-template-columns: minmax(170px, 220px) 1fr auto;
    gap: 18px;
  }
  .inner-header nav { gap: 18px; }
  .inner-header nav a { font-size: 13px; }
}

@media (max-width: 900px) {
  .inner-header .site-container {
    display: flex;
    min-height: 76px;
    justify-content: space-between;
  }
  .inner-header nav { display: none; }
  .inner-hero.service-detail-hero { min-height: 640px; }
  .inner-hero.service-detail-hero > .site-container {
    width: min(100% - 48px, 1180px);
    padding-top: 150px;
    padding-bottom: 72px;
  }
  .inner-hero.service-detail-hero::before {
    background: linear-gradient(90deg, rgba(2, 16, 29, .91), rgba(3, 22, 39, .72) 70%, rgba(4, 18, 30, .35));
  }
}

@media (max-width: 600px) {
  .inner-header .site-container { min-height: 70px; }
  .inner-header .site-logo { max-width: 174px; }
  .inner-header > .site-container > .btn { padding: 12px 15px; font-size: 12px; }
  .inner-hero.service-detail-hero { min-height: 590px; }
  .inner-hero.service-detail-hero > img { object-position: 58% center; }
  .inner-hero.service-detail-hero > .site-container {
    width: calc(100% - 36px);
    padding-top: 132px;
  }
}

/* Global back-to-top control. It sits above the language switcher and only
   becomes interactive after the visitor has scrolled down the page. */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 78px;
  z-index: 9998;
  width: 46px;
  height: 46px;
  padding: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(6, 30, 52, .92);
  border: 1px solid rgba(111, 180, 255, .48);
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(0, 20, 40, .28);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease, background .2s ease;
}
.back-to-top span { font: 500 25px/1 Arial, sans-serif; transform: translateY(-1px); }
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover { background: #1677ff; border-color: #68adff; }
.back-to-top:focus-visible { outline: 3px solid rgba(78, 158, 247, .42); outline-offset: 3px; }

.hero .hero-bg {
  transition: opacity .28s ease, filter .28s ease;
}
.hero .hero-bg.is-switching {
  opacity: .58;
  filter: saturate(.82);
}
.hero-switcher button { cursor: pointer; }
.hero-switcher button:focus-visible {
  outline: 2px solid #69adff;
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .back-to-top { right: 18px; bottom: 74px; width: 42px; height: 42px; }
}
