:root {
  --gw-accent: #68c9f3;
  --gw-accent-text: #68c9f3;
}

/* CMS-controlled accent colour */
.gateway-eyebrow.light,
.gateway-topbar p i,
.business-card p,
.gallery-card span,
.footer-contact i,
.contact-detail i,
.footer-main a:hover,
.mobile-socials a:hover {
  color: var(--gw-accent-text) !important;
}

.gateway-eyebrow > span,
.gateway-hero .hero-dot.active,
.gallery-card::after {
  background-color: var(--gw-accent) !important;
}

.hero-shared {
  border-left: 0 !important;
  border-top: 3px solid var(--gw-accent) !important;
  color: #fff !important;
  font-size: clamp(24px, 2.25vw, 38px) !important;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.18 !important;
  margin-bottom: 34px !important;
  max-width: 1040px !important;
  padding: 18px 0 0 !important;
}

.section-title.light em,
.gateway-hero h1 em {
  color: var(--gw-accent-text) !important;
}

/* Clearer desktop and mobile submenu typography */
.gateway-mega > a,
.business-mega a span {
  color: #252d38 !important;
  font-size: 15px !important;
  line-height: 1.45;
}

.business-mega a small {
  color: #5d6672 !important;
  font-size: 12px !important;
}

.mobile-panel details > a {
  color: #3c4652 !important;
  font-size: 15px !important;
  line-height: 1.5;
}

.mobile-panel details span {
  font-size: 11px;
}

/* Mobile drawer brand alignment */
.mobile-panel-head {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.mobile-panel-head .mobile-brand {
  align-items: center;
  display: flex;
  min-width: 0;
}

.mobile-panel-head .mobile-brand img {
  height: auto;
  margin: 0 !important;
  max-width: 100%;
  width: 185px;
}

.mobile-panel-head .mobile-close {
  flex: 0 0 43px;
  margin: 0 0 0 auto;
}

.mobile-socials {
  border-top: 1px solid #e5e7ea;
  display: flex;
  gap: 10px;
  margin-top: 24px;
  padding-top: 22px;
}

.mobile-socials a {
  align-items: center;
  background: #111c2c;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  transition: background-color .3s ease, transform .3s ease;
  width: 42px;
}

.mobile-socials a:hover {
  background: #8e1015;
  transform: translateY(-3px);
}

.footer-logo {
  background: transparent !important;
  padding: 0 !important;
}

.footer-logo img {
  height: auto;
  max-height: 80px;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  width: 240px;
}

/* A more atmospheric pre-footer callout with the brand red as a translucent veil. */
.footer-cta {
  background:
    linear-gradient(90deg, rgba(116, 6, 12, .94), rgba(142, 16, 21, .82)),
    url('/public/uploads/hero-business.jpg') center 48% / cover no-repeat !important;
  overflow: hidden;
  position: relative;
}

.footer-cta::after {
  background: linear-gradient(110deg, transparent 0 60%, rgba(255, 255, 255, .08) 60% 61%, transparent 61%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.gateway-cta-inner {
  position: relative;
  z-index: 1;
}

/* Partner marks remain full-colour and receive more visual presence. */
.partners-strip {
  padding: 56px 0 !important;
}

.partner-scroll-shell {
  overflow: hidden;
  width: 100%;
}

.partner-logos {
  cursor: grab;
  display: flex !important;
  gap: 22px !important;
  grid-template-columns: none !important;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  padding: 8px 2px;
  scrollbar-width: none;
  touch-action: pan-y;
  user-select: none;
}

.partner-logos::-webkit-scrollbar {
  display: none;
}

.partner-logos.is-dragging {
  cursor: grabbing;
}

.partner-logos > div {
  flex: 0 0 clamp(150px, 14vw, 190px);
  filter: none !important;
  height: 105px !important;
  opacity: 1 !important;
  padding: 8px !important;
  transition: transform .35s ease !important;
}

.partner-logos > div:hover {
  filter: none !important;
  opacity: 1 !important;
  transform: translateY(-6px) scale(1.04);
}

.partner-logos img {
  max-height: 82px !important;
  max-width: 155px !important;
}

.partner-card {
  background: #fff;
  filter: none !important;
  height: 190px !important;
  opacity: 1;
  overflow: hidden;
  transition: border-color .35s ease, box-shadow .35s ease, transform .35s ease !important;
}

.partner-card:hover {
  border-color: var(--gw-accent) !important;
  filter: none !important;
  box-shadow: 0 18px 45px rgba(17, 28, 44, .12);
  transform: translateY(-7px);
}

.partner-card img {
  max-height: 125px !important;
  transition: transform .4s ease;
}

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

/* Gallery collection index and collection details. */
.gallery-collection-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-collection-card {
  color: #fff;
  min-height: 470px;
  overflow: hidden;
  position: relative;
}

.gallery-collection-card > img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  transition: transform .7s cubic-bezier(.2,.7,.3,1);
  width: 100%;
}

.gallery-collection-shade {
  background: linear-gradient(0deg, rgba(8, 17, 30, .96), rgba(8, 17, 30, .08) 75%);
  inset: 0;
  position: absolute;
  transition: background .4s ease;
}

.gallery-collection-copy {
  bottom: 0;
  left: 0;
  padding: 34px;
  position: absolute;
  right: 0;
  z-index: 1;
}

.gallery-collection-copy > span {
  color: var(--gw-accent-text);
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.gallery-collection-copy h2 {
  color: #fff;
  font-size: 31px;
  line-height: 1.12;
  margin: 0 0 12px;
}

.gallery-collection-copy p {
  color: rgba(255, 255, 255, .72);
  line-height: 1.65;
  margin: 0;
}

.gallery-collection-copy > i {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .55);
  display: flex;
  height: 46px;
  justify-content: center;
  margin-top: 22px;
  transition: background-color .35s ease, border-color .35s ease, transform .35s ease;
  width: 46px;
}

.gallery-collection-card:hover > img {
  transform: scale(1.065);
}

.gallery-collection-card:hover .gallery-collection-shade {
  background: linear-gradient(0deg, rgba(110, 8, 13, .94), rgba(142, 16, 21, .18) 78%);
}

.gallery-collection-card:hover .gallery-collection-copy > i {
  background: #fff;
  border-color: #fff;
  color: #8e1015;
  transform: translate(4px, -4px);
}

.gallery-collection-intro {
  max-width: 470px;
}

.gallery-collection-intro > p {
  color: #69717a;
  line-height: 1.75;
}

.gallery-back {
  margin-top: 48px;
}

.gallery-lightbox-trigger {
  border: 0;
  cursor: zoom-in;
  font: inherit;
  padding: 0;
  text-align: left;
  width: 100%;
}

.gallery-lightbox-trigger:focus-visible {
  outline: 3px solid var(--gw-accent);
  outline-offset: 4px;
}

.gallery-lightbox-trigger small {
  align-items: center;
  color: rgba(255, 255, 255, .82);
  display: flex;
  font-size: 10px;
  font-weight: 700;
  gap: 7px;
  letter-spacing: .1em;
  margin-top: 12px;
  text-transform: uppercase;
}

.gallery-lightbox {
  align-items: center;
  background: rgba(5, 11, 20, .95);
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 70px;
  inset: 0;
  opacity: 0;
  padding: 70px 24px 30px;
  position: fixed;
  transition: opacity .25s ease;
  z-index: 10000;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox.is-open {
  opacity: 1;
}

.gallery-lightbox figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
  margin: 0;
  min-height: 0;
}

.gallery-lightbox figure > img {
  height: 100%;
  margin: auto;
  max-height: calc(100vh - 160px);
  max-width: 100%;
  object-fit: contain;
  width: 100%;
}

.gallery-lightbox figcaption {
  align-items: center;
  color: #fff;
  display: flex;
  gap: 18px;
  justify-content: center;
  min-height: 58px;
  padding-top: 14px;
  text-align: center;
}

.gallery-lightbox figcaption span {
  color: var(--gw-accent-text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

.gallery-lightbox figcaption strong {
  font-size: 15px;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
  align-items: center;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  height: 52px;
  justify-content: center;
  transition: background-color .3s ease, transform .3s ease;
  width: 52px;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-nav:hover,
.gallery-lightbox-close:focus-visible,
.gallery-lightbox-nav:focus-visible {
  background: #8e1015;
  border-color: #8e1015;
  transform: scale(1.06);
}

.gallery-lightbox-close {
  position: absolute;
  right: 24px;
  top: 20px;
}

.gallery-lightbox-nav {
  justify-self: center;
}

/* Defense brochure card and in-page PDF preview. */
.defense-brochure-card {
  align-items: flex-start;
  background: #111c2c;
  color: #fff;
  display: flex;
  gap: 18px;
  margin-top: 42px;
  overflow: hidden;
  padding: 26px;
  position: relative;
}

.defense-brochure-card::after {
  background: var(--gw-accent);
  bottom: 0;
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  width: 100%;
}

.defense-brochure-icon {
  align-items: center;
  background: #8e1015;
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 54px;
  height: 54px;
  justify-content: center;
}

.defense-brochure-icon i {
  font-size: 24px;
}

.defense-brochure-card small {
  color: var(--gw-accent-text);
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.defense-brochure-card h2 {
  color: #fff;
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 8px;
}

.page-intro .defense-brochure-card p {
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
}

.defense-brochure-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.defense-brochure-actions button,
.defense-brochure-actions a {
  align-items: center;
  background: #fff;
  border: 1px solid #fff;
  color: #111c2c;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}

.defense-brochure-actions a {
  background: transparent;
  color: #fff;
}

.defense-brochure-actions button:hover,
.defense-brochure-actions button:focus-visible,
.defense-brochure-actions a:hover,
.defense-brochure-actions a:focus-visible {
  background: #8e1015;
  border-color: #8e1015;
  color: #fff;
}

.brochure-modal {
  align-items: center;
  background: rgba(5, 11, 20, .94);
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  padding: 24px;
  position: fixed;
  transition: opacity .25s ease;
  z-index: 10001;
}

.brochure-modal[hidden] {
  display: none;
}

.brochure-modal.is-open {
  opacity: 1;
}

.brochure-modal-panel {
  background: #fff;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: min(900px, calc(100vh - 48px));
  max-width: 1180px;
  width: 100%;
}

.brochure-modal-head {
  align-items: center;
  background: #111c2c;
  color: #fff;
  display: flex;
  justify-content: space-between;
  min-height: 70px;
  padding: 12px 16px 12px 22px;
}

.brochure-modal-head > div {
  align-items: center;
  display: flex;
  gap: 12px;
}

.brochure-modal-head span {
  color: var(--gw-accent-text);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.brochure-modal-head strong {
  font-size: 18px;
}

.brochure-modal-head a,
.brochure-modal-close {
  align-items: center;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff;
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  gap: 8px;
  height: 42px;
  justify-content: center;
  padding: 0 14px;
}

.brochure-modal-close {
  padding: 0;
  width: 42px;
}

.brochure-modal-head a:hover,
.brochure-modal-close:hover {
  background: #8e1015;
  border-color: #8e1015;
}

.brochure-modal iframe {
  border: 0;
  height: 100%;
  width: 100%;
}

/* Solvior's expanding pill, arrow-swap and rolling-text button behaviour */
.gateway-btn {
  --gw-btn-shell: #111c2c;
  align-items: center;
  background: var(--gw-btn-shell) !important;
  border: 0 !important;
  border-radius: 50px !important;
  color: #fff;
  display: inline-flex !important;
  gap: 0 !important;
  letter-spacing: 0 !important;
  min-height: 0 !important;
  overflow: hidden;
  padding: 5px !important;
  position: relative;
  text-transform: none !important;
}

.gateway-btn-light {
  --gw-btn-shell: #fff;
}

.gw-btn-inner {
  padding: 15px 22px 15px 55px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.gw-btn-inner::before {
  background: #8e1015;
  border-radius: 50px;
  content: "";
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  transition: width .35s ease;
  width: 45px;
  z-index: -1;
}

.gw-btn-icon {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  left: 0;
  min-width: 45px;
  position: absolute;
  top: 0;
  z-index: 2;
}

.gw-btn-icon > span {
  display: block;
  overflow: hidden;
  position: relative;
}

.gw-btn-icon i {
  color: #fff;
  display: block;
  transition: transform .4s ease;
}

.gw-btn-icon i:last-child {
  left: 0;
  position: absolute;
  top: 0;
  transform: translateX(-150%);
}

.gw-btn-text {
  color: #fff;
  display: inline-flex;
  font-weight: 700;
  line-height: 24px;
  overflow: hidden;
  position: relative;
  text-shadow: 0 24px 0 currentColor;
  white-space: nowrap;
}

.gateway-btn-light .gw-btn-text {
  color: #111c2c;
}

.gw-btn-text > span {
  transition: transform .5s ease;
}

.gateway-btn:hover .gw-btn-inner::before,
.gateway-btn:focus-visible .gw-btn-inner::before {
  width: 100%;
}

.gateway-btn:hover .gw-btn-icon i:first-child,
.gateway-btn:focus-visible .gw-btn-icon i:first-child {
  transform: translateX(150%);
}

.gateway-btn:hover .gw-btn-icon i:last-child,
.gateway-btn:focus-visible .gw-btn-icon i:last-child {
  transform: translateX(0);
}

.gateway-btn:hover .gw-btn-text,
.gateway-btn:focus-visible .gw-btn-text {
  color: #fff;
}

.gateway-btn:hover .gw-btn-text > span,
.gateway-btn:focus-visible .gw-btn-text > span {
  transform: translateY(-24px);
}

/* Retain the business cards' red reveal and add the template's polished lift/glint. */
.business-card {
  background:
    linear-gradient(0deg, rgba(7, 16, 29, .74) 0%, rgba(7, 16, 29, .2) 48%, rgba(7, 16, 29, 0) 76%),
    var(--card-image) center / cover no-repeat !important;
  transition: box-shadow .45s ease, transform .45s ease;
}

.business-card::after {
  background: rgba(142, 16, 21, .78) !important;
}

.business-card::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent);
  content: "";
  height: 190%;
  left: -55%;
  pointer-events: none;
  position: absolute;
  top: -45%;
  transform: rotate(15deg) translateX(-240%);
  transition: transform .75s ease;
  width: 34%;
  z-index: 2;
}

.business-card:hover {
  box-shadow: 0 24px 55px rgba(12, 28, 48, .2);
  transform: translateY(-8px);
}

.business-card:hover::before {
  transform: rotate(15deg) translateX(720%);
}

.business-card > span,
.business-card > div {
  position: relative;
  z-index: 3;
}

.business-card h3,
.business-card .card-number {
  text-shadow: 0 2px 18px rgba(0, 0, 0, .55);
}

/* Icon-led value presentation while retaining CMS-managed headings and copy. */
.values-content {
  display: grid;
  gap: 0;
}

.value-feature {
  align-items: start;
  border-bottom: 1px solid #e0e3e6;
  display: grid;
  gap: 24px;
  grid-template-columns: 72px 1fr;
  padding: 26px 18px;
  transition: background-color .35s ease, box-shadow .35s ease, transform .35s ease;
}

.value-feature:first-child {
  border-top: 1px solid #e0e3e6;
}

.value-feature:hover {
  background: #fff;
  box-shadow: 0 16px 40px rgba(17, 28, 44, .09);
  transform: translateX(8px);
}

.value-feature-icon {
  align-items: center;
  background: #111c2c;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  height: 64px;
  justify-content: center;
  position: relative;
  transition: background-color .35s ease, transform .35s ease;
  width: 64px;
}

.value-feature-icon i {
  font-size: 28px;
}

.value-feature-icon small {
  align-items: center;
  background: var(--gw-accent);
  border: 3px solid #fff;
  border-radius: 50%;
  bottom: -5px;
  color: #111c2c;
  display: flex;
  font-size: 9px;
  font-weight: 800;
  height: 25px;
  justify-content: center;
  position: absolute;
  right: -5px;
  width: 25px;
}

.value-feature:hover .value-feature-icon {
  background: #8e1015;
  transform: rotate(-5deg) scale(1.05);
}

.values-content .value-feature h3 {
  font-size: 27px;
  margin: 1px 0 7px;
}

.values-content .value-feature p {
  color: #66707b;
  line-height: 1.75;
  margin: 0;
}

/* Consistent polish for interactive content across interior pages. */
.team-card,
.article-card,
.news-card,
.gallery-card,
.project-service-card,
.contact-grid {
  transition: box-shadow .4s ease, transform .4s ease;
}

.team-card:hover,
.article-card:hover,
.news-card:hover,
.gallery-card:hover,
.project-service-card:hover {
  box-shadow: 0 20px 50px rgba(17, 28, 44, .13);
  transform: translateY(-7px);
}

.team-card,
.article-card,
.news-card,
.project-service-card {
  overflow: hidden;
}

.team-card img,
.article-card img,
.news-card img,
.project-service-card img {
  transition: transform .55s cubic-bezier(.2,.7,.3,1);
}

.team-card:hover img,
.article-card:hover img,
.news-card:hover img,
.project-service-card:hover img {
  transform: scale(1.045);
}

.gateway-text-link i,
.service-read-more i,
.related-services a i {
  transition: transform .3s ease;
}

.gateway-text-link:hover i,
.project-service-card:hover .service-read-more i,
.related-services a:hover i {
  transform: translateX(5px);
}

/* Native fallback and primary reveal system, modelled on Solvior's fadeInUp timing. */
.gw-reveal {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  transition: opacity .75s cubic-bezier(.2,.75,.3,1), transform .75s cubic-bezier(.2,.75,.3,1);
  transition-delay: var(--gw-reveal-delay, 0s);
  will-change: opacity, transform;
}

.gw-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (max-width: 480px) {
  .mobile-panel-head .mobile-brand img {
    width: 165px;
  }

  .hero-shared {
    font-size: 18px !important;
    line-height: 1.35 !important;
    padding-top: 13px !important;
  }

  .partner-logos > div {
    flex-basis: 138px;
    height: 88px !important;
  }

  .partner-logos img {
    max-height: 68px !important;
    max-width: 110px !important;
  }

  .value-feature {
    gap: 16px;
    grid-template-columns: 54px 1fr;
    padding: 23px 0;
  }

  .value-feature-icon {
    height: 50px;
    width: 50px;
  }

  .value-feature-icon i {
    font-size: 22px;
  }

  .value-feature-icon small {
    height: 22px;
    width: 22px;
  }

  .values-content .value-feature h3 {
    font-size: 22px;
  }

  .value-feature:hover {
    transform: none;
  }
}

@media (max-width: 991px) {
  .gallery-collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .gallery-collection-grid {
    grid-template-columns: 1fr;
  }

  .gallery-collection-card {
    min-height: 410px;
  }

  .gallery-lightbox {
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    padding: 72px 5px 20px;
  }

  .gallery-lightbox-close,
  .gallery-lightbox-nav {
    height: 42px;
    width: 42px;
  }

  .gallery-lightbox-close {
    right: 14px;
    top: 15px;
  }

  .gallery-lightbox figcaption {
    align-items: center;
    flex-direction: column;
    gap: 4px;
  }

  .defense-brochure-card {
    display: block;
    padding: 23px;
  }

  .defense-brochure-icon {
    margin-bottom: 17px;
  }

  .brochure-modal {
    padding: 0;
  }

  .brochure-modal-panel {
    height: 100vh;
  }

  .brochure-modal-head {
    min-height: 64px;
    padding: 10px 12px;
  }

  .brochure-modal-head > div:first-child span {
    display: none;
  }

  .brochure-modal-head strong {
    font-size: 14px;
  }

  .brochure-modal-head a {
    font-size: 0;
    padding: 0;
    width: 42px;
  }

  .brochure-modal-head a i {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gateway-btn *,
  .business-card,
  .business-card::before,
  .gw-reveal {
    animation: none !important;
    transition: none !important;
  }

  .gw-reveal {
    opacity: 1;
    transform: none;
  }
}
