/*
 * GTI retained-public-pages release — 2026-09-11
 *
 * This additive layer keeps the approved reference-led system while styling
 * the reduced Home/About/Contact shell and the restored inquiry dialog.
 */

body[data-public-theme="reference-led-2026-09"] .instant-inquiry-modal {
  display: grid;
}

body[data-public-theme="reference-led-2026-09"] .site-footer .footer-trust-strip {
  display: none !important;
}

body[data-public-theme="reference-led-2026-09"] .site-footer .footer-grid {
  grid-template-columns: minmax(240px, 1.35fr) repeat(3, minmax(130px, 1fr));
  gap: clamp(22px, 4vw, 52px);
}

body[data-public-theme="reference-led-2026-09"] .site-footer .footer-logo-row {
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
}

body[data-public-theme="reference-led-2026-09"] .site-footer .footer-logo-row > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

body[data-public-theme="reference-led-2026-09"] .site-footer .footer-logo-row strong,
body[data-public-theme="reference-led-2026-09"] .site-footer .footer-logo-row > div > span {
  display: block;
  max-width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
  text-align: left;
}

body[data-public-theme="reference-led-2026-09"] .site-footer .footer-logo-row strong {
  color: #fff;
  font-size: 13px;
  letter-spacing: .045em;
  line-height: 1.2;
}

body[data-public-theme="reference-led-2026-09"] .site-footer .footer-logo-row > div > span {
  color: #c9ddea;
  font-size: 11px;
  line-height: 1.2;
}

body[data-public-theme="reference-led-2026-09"] .site-footer .footer-bottom {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

body[data-public-theme="reference-led-2026-09"] .site-footer .footer-bottom :is(p, span) {
  text-align: center;
}

body[data-public-theme="reference-led-2026-09"] .site-footer .footer-bottom .footer-rocket-top {
  margin-inline: auto;
}

/* About hero: one centered message with a real multi-image carousel. */
body[data-public-theme="reference-led-2026-09"][data-page-path="/about"] .about-hero-copy {
  max-width: 920px;
  margin-inline: auto;
  text-align: center;
}

body[data-public-theme="reference-led-2026-09"][data-page-path="/about"] .about-hero-copy :is(h1, p) {
  margin-inline: auto;
}

body[data-public-theme="reference-led-2026-09"][data-page-path="/about"] .about-hero-copy h1 {
  max-width: 22ch;
}

body[data-public-theme="reference-led-2026-09"][data-page-path="/about"] .about-photo-carousel {
  position: relative;
  min-height: clamp(320px, 44vw, 570px);
  isolation: isolate;
}

body[data-public-theme="reference-led-2026-09"][data-page-path="/about"] .about-photo-carousel .home-carousel-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 520ms ease;
}

body[data-public-theme="reference-led-2026-09"][data-page-path="/about"] .about-photo-carousel .home-carousel-slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
}

body[data-public-theme="reference-led-2026-09"][data-page-path="/about"] .about-photo-carousel .home-carousel-slide :is(picture, img) {
  display: block;
  width: 100%;
  height: 100%;
}

body[data-public-theme="reference-led-2026-09"][data-page-path="/about"] .about-photo-carousel .home-carousel-slide img {
  min-height: clamp(320px, 44vw, 570px);
  object-fit: cover;
}

/* The moved capabilities hero keeps its blue/teal visual language on Home. */
body[data-public-theme="reference-led-2026-09"][data-page-path="/"] main > .section.rl-capability-intro {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(124deg, #087dc5 0%, #086aa8 49%, #5145a6 100%);
}

body[data-public-theme="reference-led-2026-09"][data-page-path="/"] .rl-capability-intro::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -170px;
  bottom: -250px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  pointer-events: none;
}

body[data-public-theme="reference-led-2026-09"][data-page-path="/"] .rl-capability-intro-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: center;
  min-height: clamp(430px, 52vw, 640px);
}

body[data-public-theme="reference-led-2026-09"][data-page-path="/"] .rl-capability-intro-copy {
  max-width: 620px;
}

body[data-public-theme="reference-led-2026-09"][data-page-path="/"] .rl-capability-intro-copy :is(h2, p) {
  color: #fff;
}

body[data-public-theme="reference-led-2026-09"][data-page-path="/"] .rl-capability-intro-copy h2 {
  max-width: 15ch;
  margin: 14px 0 18px;
  font-size: clamp(2.8rem, 5.2vw, 5.4rem);
  line-height: .98;
}

body[data-public-theme="reference-led-2026-09"][data-page-path="/"] .rl-capability-intro-copy p {
  max-width: 56ch;
  color: rgba(255, 255, 255, .88);
  font-size: clamp(17px, 1.6vw, 21px);
}

body[data-public-theme="reference-led-2026-09"][data-page-path="/"] .rl-capability-intro-copy .rl-text-link {
  margin-top: 18px;
  color: #fff;
}

body[data-public-theme="reference-led-2026-09"][data-page-path="/"] .rl-capability-intro-visual {
  position: relative;
  min-height: clamp(300px, 36vw, 500px);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 34px;
  background: #062f4d;
  box-shadow: 0 28px 70px rgba(2, 35, 63, .35);
  transform: rotate(1.2deg);
}

body[data-public-theme="reference-led-2026-09"][data-page-path="/"] .rl-capability-intro-visual :is(picture, img) {
  display: block;
  width: 100%;
  height: 100%;
}

body[data-public-theme="reference-led-2026-09"][data-page-path="/"] .rl-capability-intro-visual img {
  min-height: clamp(300px, 36vw, 500px);
  object-fit: cover;
  filter: saturate(1.06) contrast(1.04) brightness(.84);
}

body[data-public-theme="reference-led-2026-09"][data-page-path="/"] .rl-capability-intro-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 42%, rgba(2, 26, 46, .86));
}

body[data-public-theme="reference-led-2026-09"][data-page-path="/"] .rl-capability-intro-visual figcaption {
  position: absolute;
  right: 22px;
  bottom: 20px;
  left: 22px;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body[data-public-theme="reference-led-2026-09"][data-page-path="/"] .rl-capability-intro-visual figcaption span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 6px 10px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  background: rgba(3, 37, 61, .7);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Keep the Contact promise legible without changing its form contract. */
body[data-public-theme="reference-led-2026-09"][data-page-path="/contact"] .contact-page-hero h1 {
  max-width: none;
  font-size: clamp(34px, 5.6vw, 68px);
  line-height: 1;
  white-space: nowrap;
}

body[data-public-theme="reference-led-2026-09"][data-page-path="/contact"] .contact-form--professional {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(7, 59, 92, .14);
  border-radius: 30px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 24px 64px rgba(7, 59, 92, .11);
}

body[data-public-theme="reference-led-2026-09"][data-page-path="/contact"] .contact-form--professional > h2 {
  margin-bottom: 22px;
  color: var(--rl-navy);
  font-size: clamp(25px, 3vw, 38px);
}

body[data-public-theme="reference-led-2026-09"][data-page-path="/contact"] .contact-form--professional :is(input, select, textarea) {
  border-color: rgba(7, 59, 92, .18);
  background: #fff;
}

@media (max-width: 1120px) {
  body[data-public-theme="reference-led-2026-09"] .site-footer .footer-grid {
    grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(120px, 1fr));
  }
}

@media (max-width: 860px) {
  body[data-public-theme="reference-led-2026-09"][data-gti-foundation="phase1"][data-gti-phase="phase2"][data-page-path="/contact"] .contact-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body[data-public-theme="reference-led-2026-09"] .site-footer .footer-grid {
    grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, 1fr));
  }

  body[data-public-theme="reference-led-2026-09"] .site-footer .footer-brand-panel {
    grid-column: 1 / -1;
  }

  body[data-public-theme="reference-led-2026-09"][data-page-path="/"] .rl-capability-intro-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-block: 64px;
  }

  body[data-public-theme="reference-led-2026-09"][data-page-path="/"] .rl-capability-intro-copy {
    max-width: 720px;
  }

  body[data-public-theme="reference-led-2026-09"][data-page-path="/"] .rl-capability-intro-visual {
    min-height: 330px;
    transform: none;
  }
}

@media (max-width: 560px) {
  body[data-public-theme="reference-led-2026-09"] .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  body[data-public-theme="reference-led-2026-09"] .site-footer .footer-brand-panel {
    grid-column: 1 / -1;
  }

  body[data-public-theme="reference-led-2026-09"] .site-footer .footer-logo-row {
    justify-content: center;
  }

  body[data-public-theme="reference-led-2026-09"] .site-footer .footer-logo-row strong,
  body[data-public-theme="reference-led-2026-09"] .site-footer .footer-logo-row > div > span {
    text-align: left;
  }

  body[data-public-theme="reference-led-2026-09"][data-page-path="/about"] .about-photo-carousel,
  body[data-public-theme="reference-led-2026-09"][data-page-path="/about"] .about-photo-carousel .home-carousel-slide img {
    min-height: 300px;
  }

  body[data-public-theme="reference-led-2026-09"][data-page-path="/"] .rl-capability-intro-copy h2 {
    max-width: 100%;
    font-size: clamp(2.5rem, 12vw, 3.6rem);
  }

  body[data-public-theme="reference-led-2026-09"][data-page-path="/"] .rl-capability-intro-visual {
    min-height: 270px;
  }

  body[data-public-theme="reference-led-2026-09"][data-page-path="/"] .rl-capability-intro-visual img {
    min-height: 270px;
  }

  body[data-public-theme="reference-led-2026-09"][data-page-path="/contact"] .contact-page-hero h1 {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-public-theme="reference-led-2026-09"][data-page-path="/about"] .about-photo-carousel .home-carousel-slide {
    transition: none;
  }
}
