:root {
  --legacy-blue: #035fc2;
  --legacy-deep: #00415a;
  --legacy-cyan: #00d0f5;
  --legacy-light: #f1f7fe;
  --legacy-border: #d4e9ff;
  --legacy-text: #2e2e2e;
}

.legacy-site {
  color: var(--legacy-text);
}

.legacy-section {
  padding: 55px 0;
}

.legacy-section.legacy-soft {
  background: var(--legacy-light);
}

.legacy-heading {
  margin-bottom: 30px;
}

.legacy-heading h2,
.legacy-heading h3 {
  color: var(--legacy-deep);
  margin-bottom: 10px;
}

.legacy-heading p {
  max-width: 850px;
  margin-bottom: 0;
}

.legacy-kicker {
  display: inline-block;
  color: var(--legacy-blue);
  font-weight: 700;
  margin-bottom: 8px;
}

.legacy-btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 4px;
  background: var(--legacy-blue);
  color: #fff !important;
  font-weight: 600;
  border: 1px solid var(--legacy-blue);
  transition: .3s ease;
}

.legacy-btn:hover {
  background: var(--legacy-deep);
  border-color: var(--legacy-deep);
}

.legacy-btn.legacy-btn-outline {
  background: transparent;
  border-color: #fff;
  color: #fff !important;
}

.legacy-btn.legacy-btn-outline:hover {
  background: #fff;
  color: var(--legacy-blue) !important;
}

.legacy-hero .carousel-item {
  position: relative;
  min-height: 540px;
  background-size: cover;
  background-position: center;
}

.legacy-hero .carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 36, 72, .38);
}

.legacy-hero .container {
  position: relative;
  z-index: 2;
}

.legacy-hero-content {
  max-width: 800px;
  padding: 105px 0 90px;
  color: #fff;
}

.legacy-hero-content h1 {
  color: #fff;
  font-size: 44px;
  line-height: 1.18;
  margin-bottom: 14px;
}

.legacy-hero-content h2 {
  color: #fff;
  font-size: 25px;
  margin-bottom: 18px;
}

.legacy-hero-content p {
  color: #fff;
  max-width: 760px;
  font-size: 17px;
}

.legacy-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.legacy-stat-card,
.legacy-card,
.legacy-service-card,
.legacy-project-card,
.legacy-contact-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--legacy-border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 8px 18px rgba(0, 65, 90, .07);
}

.legacy-stat-card {
  background: var(--legacy-light);
  border-top: 4px solid var(--legacy-blue);
}

.legacy-stat-card i,
.legacy-service-card i,
.legacy-card .legacy-icon {
  color: var(--legacy-blue);
  font-size: 27px;
  margin-bottom: 14px;
}

.legacy-stat-card h4,
.legacy-card h4,
.legacy-service-card h4,
.legacy-project-card h4,
.legacy-contact-card h4 {
  color: var(--legacy-deep);
  font-size: 20px;
  margin-bottom: 10px;
}

.legacy-image-frame {
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 15px 6px rgba(0, 0, 0, .08);
}

.legacy-image-frame img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 333px;
    max-height: 328px;
    object-fit: cover;
}

.legacy-image-frame.legacy-image-420 {
  height: 420px;
}

.legacy-image-frame.legacy-image-340 {
  height: 340px;
}

.legacy-vertical-card {
  height: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--legacy-border);
  box-shadow: 0 8px 18px rgba(0, 65, 90, .07);
}

.legacy-vertical-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: #fff;
  padding: 12px;
}

.legacy-vertical-card .legacy-card-body {
  padding: 22px;
}

.legacy-vertical-card h4 {
  color: var(--legacy-deep);
  margin-bottom: 10px;
}

.legacy-capability-image {
  height: 170px;
  border-radius: 10px;
  overflow: hidden;
  margin: -24px -24px 18px;
  background: #fff;
}

.legacy-capability-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.legacy-blue-band {
  background: var(--legacy-blue);
  color: #fff;
  padding: 50px 0;
}

.legacy-blue-band h2,
.legacy-blue-band h3,
.legacy-blue-band h4,
.legacy-blue-band p,
.legacy-blue-band li {
  color: #fff;
}

.legacy-check-list {
  list-style: none;
  padding-left: 0;
}

.legacy-check-list li {
  position: relative;
  padding-left: 27px;
  margin-bottom: 10px;
}

.legacy-check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--legacy-cyan);
  font-weight: 700;
}

.legacy-page-title {
  padding: 34px 0;
  background: var(--legacy-light);
  border-bottom: 1px solid var(--legacy-border);
}

.legacy-page-title h1 {
  color: var(--legacy-deep);
  font-size: 34px;
  margin-bottom: 7px;
}

.legacy-page-title p {
  margin-bottom: 0;
  max-width: 850px;
}

.legacy-strength {
  height: 100%;
  padding: 24px;
  border-radius: 14px;
  background: var(--legacy-light);
  border-left: 4px solid var(--legacy-blue);
}

.legacy-strength h4 {
  color: var(--legacy-deep);
  margin-bottom: 10px;
}

.legacy-products-block {
  padding: 30px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--legacy-border);
  box-shadow: 0 8px 18px rgba(0, 65, 90, .06);
}

.legacy-products-block + .legacy-products-block {
  margin-top: 30px;
}

.legacy-products-block h3 {
  color: var(--legacy-deep);
}

.legacy-spec-card {
  height: 100%;
  padding: 18px;
  border-radius: 12px;
  background: var(--legacy-light);
  border: 1px solid var(--legacy-border);
}

.legacy-spec-card h5 {
  color: var(--legacy-blue);
  margin-bottom: 12px;
}

.legacy-spec-card ul {
  margin-bottom: 0;
}

.legacy-map-card {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--legacy-border);
  box-shadow: 0 10px 15px rgba(0, 0, 0, .08);
}

.legacy-map-card img {
  width: 100%;
  min-height: 380px;
  object-fit: cover;
}

.legacy-contact-form {
  background: var(--legacy-light);
  border-radius: 16px;
  padding: 25px;
  border: 1px solid var(--legacy-border);
}

.legacy-contact-form .form-control,
.legacy-contact-form .form-select {
  min-height: 48px;
  border-color: var(--legacy-border);
  border-radius: 6px;
}

.legacy-contact-form textarea.form-control {
  min-height: 140px;
}

.legacy-contact-form .form-label {
  font-weight: 600;
  color: var(--legacy-deep);
}

.legacy-contact-row {
  padding: 9px 0;
  border-bottom: 1px solid var(--legacy-border);
}

.legacy-contact-row:last-child {
  border-bottom: 0;
}

.legacy-product-photo img,
.page-atrax-products .container img,
.page-cargo-weighing .container img,
.page-high-precision-scales .container img,
.page-retail .container img,
.page-bench-platform .container img,
.page-heavy-duty-platform .container img,
.page-industrial .container img,
.page-crane-scale .container img,
.page-weighbridge .container img,
.page-intelligent-terminal .container img,
.page-platform .container img,
.page-indicators .container img,
.page-others .container img,
.page-ccn .container img,
.page-weighbridge-loadcells .container img {
  border-radius: 10px;
  box-shadow: 0 7px 16px rgba(0, 65, 90, .10);
  transition: transform .3s ease, box-shadow .3s ease;
}

.page-atrax-products .container img:hover,
.page-cargo-weighing .container img:hover,
.page-high-precision-scales .container img:hover,
.page-retail .container img:hover,
.page-bench-platform .container img:hover,
.page-heavy-duty-platform .container img:hover,
.page-industrial .container img:hover,
.page-crane-scale .container img:hover,
.page-weighbridge .container img:hover,
.page-intelligent-terminal .container img:hover,
.page-platform .container img:hover,
.page-indicators .container img:hover,
.page-others .container img:hover,
.page-ccn .container img:hover,
.page-weighbridge-loadcells .container img:hover {
  transform: scale(1.025);
  box-shadow: 0 12px 22px rgba(0, 65, 90, .16);
}

@media (max-width: 991px) {
  .legacy-hero .carousel-item {
    min-height: 470px;
  }

  .legacy-hero-content {
    padding: 80px 0 70px;
  }

  .legacy-hero-content h1 {
    font-size: 36px;
  }

  .legacy-image-frame.legacy-image-420,
  .legacy-image-frame.legacy-image-340 {
    height: 330px;
  }
}

@media (max-width: 767px) {
  .legacy-section {
    padding: 40px 0;
  }

  .legacy-page-title {
    padding: 28px 0;
  }

  .legacy-page-title h1 {
    font-size: 28px;
  }

  .legacy-hero .carousel-item {
    min-height: 500px;
    background-position: center;
  }

  .legacy-hero-content {
    padding: 70px 0 60px;
  }

  .legacy-hero-content h1 {
    font-size: 31px;
  }

  .legacy-hero-content h2 {
    font-size: 21px;
  }

  .legacy-hero-content p {
    font-size: 15px;
  }

  .legacy-btn {
    width: 100%;
    text-align: center;
  }

  .legacy-products-block {
    padding: 20px;
  }

  .legacy-map-card img {
    min-height: 280px;
  }
}

/* =========================================================
   Desktop Products Dropdown Stability Fix - 2026-09-22
   Keeps the dropdown connected to the Products nav item and
   prevents hero content from visually showing through it.
   ========================================================= */
@media (min-width: 992px) {
  .d-none.d-lg-block .navbar-section,
  .d-none.d-lg-block .main-nav,
  .d-none.d-lg-block .main-nav .navbar,
  .d-none.d-lg-block .main-nav .navbar-collapse,
  .d-none.d-lg-block .main-nav .navbar-nav {
    overflow: visible !important;
  }

  .d-none.d-lg-block .navbar-section {
    position: relative;
    z-index: 1000;
  }

  .d-none.d-lg-block .main-nav {
    z-index: 1001;
  }

  .d-none.d-lg-block .main-nav .navbar .navbar-nav > .nav-item {
    position: relative;
  }

  .d-none.d-lg-block .main-nav .navbar .navbar-nav > .nav-item > .dropdown-menu {
    top: calc(100% - 1px) !important;
    left: 0;
    width: 285px;
    max-height: calc(100vh - 125px);
    margin-top: 0 !important;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    background: #ffffff !important;
    border: 1px solid rgba(0, 65, 90, .08);
    border-radius: 0 0 6px 6px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .16);
    z-index: 10000 !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
  }

  .d-none.d-lg-block .main-nav .navbar .navbar-nav > .nav-item:hover > .dropdown-menu,
  .d-none.d-lg-block .main-nav .navbar .navbar-nav > .nav-item:focus-within > .dropdown-menu {
    top: calc(100% - 1px) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
    transform: translateY(0);
  }

  .d-none.d-lg-block .main-nav .navbar .navbar-nav > .nav-item > .dropdown-menu::before {
    content: "";
    position: absolute;
    left: 0;
    top: -6px;
    width: 100%;
    height: 6px;
    background: transparent;
  }

  .d-none.d-lg-block .main-nav .navbar .navbar-nav > .nav-item > .dropdown-menu > .nav-item,
  .d-none.d-lg-block .main-nav .navbar .navbar-nav > .nav-item > .dropdown-menu > .nav-item > .nav-link {
    background-color: #ffffff !important;
  }

  .d-none.d-lg-block .main-nav .navbar .navbar-nav > .nav-item > .dropdown-menu > .nav-item:nth-child(odd) > .nav-link {
    background-color: #f9f9f9 !important;
  }

  .d-none.d-lg-block .main-nav .navbar .navbar-nav > .nav-item > .dropdown-menu > .nav-item > .nav-link {
    display: block;
    min-height: 44px;
    padding: 12px 15px;
    line-height: 1.25;
    white-space: normal;
  }

  .d-none.d-lg-block .main-nav .navbar .navbar-nav > .nav-item > .dropdown-menu::-webkit-scrollbar {
    width: 6px;
  }

  .d-none.d-lg-block .main-nav .navbar .navbar-nav > .nav-item > .dropdown-menu::-webkit-scrollbar-thumb {
    background: #009bd6;
    border-radius: 10px;
  }
}

/* =========================================================
   Mobile Products Submenu Fix - 2026-09-22
   Ensures the Products submenu opens/closes reliably on tap
   and remains easy to read on small screens.
   ========================================================= */
@media (max-width: 991px) {
  .d-lg-none .mobile-menu.mean-container {
    position: relative;
    z-index: 1100;
  }

  .d-lg-none .mobile-menu.mean-container .mean-bar,
  .d-lg-none .mobile-menu.mean-container .mean-nav {
    z-index: 1101;
  }

  .d-lg-none .mobile-menu.mean-container .mean-nav > ul > li > a {
    position: relative;
    z-index: 1;
  }

  .d-lg-none .mobile-menu.mean-container .mean-nav ul li a.mean-expand {
    z-index: 3;
    box-sizing: border-box !important;
    width: 48px !important;
    min-width: 48px;
    height: 45px !important;
    min-height: 45px;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 18px !important;
    line-height: 1;
    color: #2e2e2e !important;
  }

  .d-lg-none .mobile-menu.mean-container .mean-nav ul li > ul {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #f7fbff !important;
    border-top: 1px solid #e1edf8 !important;
    max-height: 56vh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .d-lg-none .mobile-menu.mean-container .mean-nav ul li > ul > li > a {
    width: 100% !important;
    padding: 11px 42px 11px 24px !important;
    background: #f7fbff !important;
    border-top: 1px solid #e8f0f7 !important;
    color: #2e2e2e !important;
    line-height: 1.35;
    white-space: normal;
  }

  .d-lg-none .mobile-menu.mean-container .mean-nav ul li > ul > li:nth-child(even) > a {
    background: #ffffff !important;
  }

  .d-lg-none .mobile-menu.mean-container .mean-nav ul li > ul > li > a:active,
  .d-lg-none .mobile-menu.mean-container .mean-nav ul li > ul > li > a:focus {
    color: #009bd6 !important;
  }

  .d-lg-none .mobile-menu.mean-container .mean-nav ul li > ul::-webkit-scrollbar {
    width: 5px;
  }

  .d-lg-none .mobile-menu.mean-container .mean-nav ul li > ul::-webkit-scrollbar-thumb {
    background: #009bd6;
    border-radius: 8px;
  }
}

/* =========================================================
   Mobile Header Accordion Rebuild - 2026-09-22
   Uses an in-flow mobile panel so the hero/content is pushed
   down while navigation is open. Products expands inline.
   ========================================================= */
@media (max-width: 991px) {
  .d-lg-none .eskay-mobile-nav {
    position: relative;
    z-index: 1200;
    display: block;
    width: 100%;
    background: #bdf6fe;
  }

  .d-lg-none .eskay-mobile-nav .container {
    max-width: 100%;
  }

  .d-lg-none .eskay-mobile-shell {
    position: relative;
    width: 100%;
    background: #bdf6fe;
  }

  .d-lg-none .eskay-mobile-shell .eskay-mobile-head {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 74px;
    padding: 5px 0;
    background: #bdf6fe;
  }

  .d-lg-none .eskay-mobile-shell .logo {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    max-width: none !important;
    margin: 0;
  }

  .d-lg-none .eskay-mobile-shell .logo a {
    display: inline-flex;
    align-items: center;
  }

  .d-lg-none .eskay-mobile-shell .logo img {
    display: block;
    width: auto !important;
    max-width: min(270px, calc(100vw - 105px));
    max-height: 64px;
    padding: 4px 0 !important;
    object-fit: contain;
  }

  .d-lg-none .eskay-mobile-toggle {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 10px 8px;
    margin: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    align-items: stretch;
  }

  .d-lg-none .eskay-mobile-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    margin: 0;
    border-radius: 2px;
    background: #a70000;
    transition: transform .2s ease, opacity .2s ease;
  }

  .d-lg-none .eskay-mobile-toggle.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .d-lg-none .eskay-mobile-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .d-lg-none .eskay-mobile-toggle.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .d-lg-none .eskay-mobile-panel {
    position: relative;
    z-index: 1;
    display: none;
    width: 100%;
    max-height: calc(100vh - 115px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #ffffff;
    border-top: 1px solid #e7e7e7;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .08);
  }

  .d-lg-none .eskay-mobile-list,
  .d-lg-none .eskay-mobile-submenu {
    list-style: none;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .d-lg-none .eskay-mobile-list > li,
  .d-lg-none .eskay-mobile-submenu > li {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .d-lg-none .eskay-mobile-list > li > a,
  .d-lg-none .eskay-mobile-products-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 11px 16px;
    border: 0;
    border-bottom: 1px solid #ececec;
    background: #ffffff;
    color: #2e2e2e;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
  }

  .d-lg-none .eskay-mobile-list > li > a.active {
    color: #ff7b7b;
  }

  .d-lg-none .eskay-mobile-products-toggle.is-open {
    color: #009bd6;
    background: #f8fcff;
  }

  .d-lg-none .eskay-mobile-plus {
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    margin: -5px -6px -5px 12px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    color: #2e2e2e;
  }

  .d-lg-none .eskay-mobile-products-toggle.is-open .eskay-mobile-plus {
    color: #009bd6;
  }

  .d-lg-none .eskay-mobile-submenu {
    display: none;
    background: #f7fbff;
    border-bottom: 1px solid #dcebf5;
  }

  .d-lg-none .eskay-mobile-submenu > li > a {
    display: block;
    width: 100%;
    min-height: 43px;
    padding: 10px 18px 10px 30px;
    border-bottom: 1px solid #e6eef4;
    background: #f7fbff;
    color: #2e2e2e;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    text-decoration: none;
    white-space: normal;
  }

  .d-lg-none .eskay-mobile-submenu > li:nth-child(even) > a {
    background: #ffffff;
  }

  .d-lg-none .eskay-mobile-submenu > li > a:hover,
  .d-lg-none .eskay-mobile-submenu > li > a:focus,
  .d-lg-none .eskay-mobile-submenu > li > a:active {
    color: #009bd6;
  }

  .d-lg-none .eskay-mobile-panel::-webkit-scrollbar {
    width: 5px;
  }

  .d-lg-none .eskay-mobile-panel::-webkit-scrollbar-thumb {
    background: #009bd6;
    border-radius: 8px;
  }

  /* MeanMenu is intentionally not used by the rebuilt mobile header. */
  .d-lg-none .eskay-mobile-shell .mean-bar,
  .d-lg-none .eskay-mobile-shell .mean-nav,
  .d-lg-none .eskay-mobile-shell .mean-push {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .d-lg-none .eskay-mobile-shell .eskay-mobile-head {
    min-height: 68px;
  }

  .d-lg-none .eskay-mobile-shell .logo img {
    max-width: min(235px, calc(100vw - 100px));
    max-height: 58px;
  }

  .d-lg-none .eskay-mobile-list > li > a,
  .d-lg-none .eskay-mobile-products-toggle {
    min-height: 45px;
    padding-left: 14px;
    padding-right: 14px;
  }
}


/* =========================================================
   Mobile Navigation Hardening - 2026-09-22 v3
   - No absolute/fixed menu layer on mobile
   - Open navigation participates in document flow
   - Products is a true inline accordion controlled by one button
   ========================================================= */
@media (max-width: 991px) {
  .d-lg-none .eskay-mobile-nav,
  .d-lg-none .eskay-mobile-shell,
  .d-lg-none .eskay-mobile-panel {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
  }

  .d-lg-none .eskay-mobile-nav {
    z-index: 20;
    overflow: visible !important;
  }

  .d-lg-none .eskay-mobile-shell {
    z-index: 1;
    overflow: visible !important;
  }

  .d-lg-none .eskay-mobile-panel[hidden],
  .d-lg-none .eskay-mobile-submenu[hidden] {
    display: none !important;
  }

  .d-lg-none .eskay-mobile-panel.is-open {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    float: none !important;
    clear: both;
    margin: 0 !important;
  }

  .d-lg-none .eskay-mobile-products-toggle {
    position: relative;
    flex-wrap: nowrap;
    gap: 12px;
  }

  .d-lg-none .eskay-mobile-products-toggle > span:first-child {
    flex: 1 1 auto;
    min-width: 0;
  }

  .d-lg-none .eskay-mobile-plus {
    position: static !important;
    float: none !important;
    margin: 0 !important;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    min-height: 34px;
    border-left: 0 !important;
  }

  .d-lg-none .eskay-mobile-submenu.is-open {
    display: block !important;
    position: static !important;
    width: 100% !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    float: none !important;
    clear: both;
    margin: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  /* Do not allow the old template mobile/MeanMenu layer to sit over the hero. */
  .d-lg-none .for-mobile-menu,
  .d-lg-none .mean-container,
  .d-lg-none .mean-bar,
  .d-lg-none .mean-nav,
  .d-lg-none .mean-push {
    display: none !important;
  }

  /* The next page section must remain below the expanded mobile navigation. */
  .d-lg-none.d-block {
    position: relative;
    z-index: 20;
  }

  .legacy-hero,
  .banner-section,
  .page-banner-area {
    position: relative;
    z-index: 1;
  }
}


/* =========================================================
   Reach / Impact Sections - 2026-09-23
   ========================================================= */
.legacy-impact-section {
  position: relative;
  overflow: hidden;
}

.legacy-impact-section::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -180px;
  top: -190px;
  border-radius: 50%;
  background: rgba(0, 208, 245, .08);
  pointer-events: none;
}

.legacy-impact-heading {
  position: relative;
  z-index: 1;
}

.legacy-impact-heading h2 {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.legacy-impact-grid {
  position: relative;
  z-index: 1;
}

.legacy-impact-card {
  position: relative;
  display: flex;
  gap: 20px;
  height: 100%;
  padding: 28px;
  border: 1px solid var(--legacy-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 65, 90, .07);
  overflow: hidden;
}

.legacy-impact-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--legacy-blue), var(--legacy-cyan));
}

.legacy-impact-card h3 {
  color: var(--legacy-deep);
  font-size: 22px;
  margin: 1px 0 10px;
}

.legacy-impact-card p {
  margin: 0;
  line-height: 1.75;
  text-align: justify;
}

.legacy-impact-icon {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--legacy-light);
  border: 1px solid var(--legacy-border);
  color: var(--legacy-blue);
  font-size: 24px;
}

.legacy-impact-card-cargo {
  background: linear-gradient(135deg, #ffffff 0%, #f3f9ff 100%);
}

.legacy-impact-card-cargo .legacy-impact-icon {
  background: var(--legacy-blue);
  border-color: var(--legacy-blue);
  color: #fff;
}

.legacy-aviation-impact {
  border-top: 1px solid var(--legacy-border);
  border-bottom: 1px solid var(--legacy-border);
}

.legacy-cargo-impact {
  border-bottom: 1px solid var(--legacy-border);
}

.legacy-cargo-feature {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 32px;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--legacy-border);
  box-shadow: 0 12px 28px rgba(0, 65, 90, .08);
}

.legacy-cargo-feature::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  right: -85px;
  bottom: -115px;
  background: rgba(0, 208, 245, .09);
  pointer-events: none;
}

.legacy-cargo-feature .legacy-impact-icon {
  flex-basis: 60px;
  width: 60px;
  height: 60px;
  background: var(--legacy-blue);
  border-color: var(--legacy-blue);
  color: #fff;
  font-size: 27px;
}

.legacy-cargo-feature-copy {
  position: relative;
  z-index: 1;
  max-width: 1080px;
}

.legacy-cargo-feature h1 {
  color: var(--legacy-deep);
  font-size: 34px;
  margin-bottom: 12px;
}

.legacy-cargo-feature p {
  margin-bottom: 0;
  line-height: 1.8;
  text-align: justify;
}

@media (max-width: 767px) {
  .legacy-impact-card,
  .legacy-cargo-feature {
    gap: 14px;
    padding: 22px;
  }

  .legacy-impact-card {
    flex-direction: column;
  }

  .legacy-impact-card h3 {
    font-size: 20px;
  }

  .legacy-impact-card p,
  .legacy-cargo-feature p {
    text-align: left;
  }

  .legacy-cargo-feature {
    flex-direction: column;
  }

  .legacy-cargo-feature h1 {
    font-size: 28px;
  }
}


/* Atrax supplied solutions overview image */
.atrax-solutions-overview {
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0, 65, 90, .10);
}

.atrax-solutions-overview img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 767.98px) {
  .atrax-solutions-overview {
    border-radius: 12px;
  }
}


/* Clients logo grid */
.legacy-clients-grid {
  --clients-cols: 6;
  --clients-gap: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--clients-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.legacy-client-logo {
  flex: 0 0 calc((100% - (var(--clients-cols) - 1) * var(--clients-gap)) / var(--clients-cols));
  display: flex;
  align-items: center;
  justify-content: center;
  height: 104px;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--legacy-border);
  border-radius: 12px;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.legacy-client-logo img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /*filter: grayscale(100%) contrast(1.05);*/
  opacity: .8;
  transition: filter .3s ease, opacity .3s ease;
}

.legacy-client-logo:hover {
  border-color: var(--legacy-blue);
  box-shadow: 0 12px 26px rgba(0, 65, 90, .10);
  transform: translateY(-3px);
}

.legacy-client-logo:hover img {
  filter: none;
  opacity: 1;
}

@media (hover: none) {
  .legacy-client-logo img {
    opacity: .8;
  }
}

@media (max-width: 991.98px) {
  .legacy-clients-grid {
    --clients-cols: 3;
  }
}

@media (max-width: 575.98px) {
  .legacy-clients-grid {
    --clients-cols: 2;
    --clients-gap: 12px;
  }

  .legacy-client-logo {
    height: 84px;
    padding: 14px 16px;
  }
}

/* Core strengths with icons */
.legacy-strength.legacy-strength-icon {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--legacy-border);
  border-left: 4px solid var(--legacy-blue);
  transition: box-shadow .25s ease, transform .25s ease;
}

.legacy-strength.legacy-strength-icon:hover {
  box-shadow: 0 14px 30px rgba(0, 65, 90, .10);
  transform: translateY(-3px);
}

.legacy-strength-badge {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--legacy-blue);
  color: #fff;
  font-size: 25px;
  box-shadow: 0 10px 20px rgba(3, 95, 194, .22);
}

.legacy-strength-num {
  display: block;
  margin-bottom: 4px;
  color: var(--legacy-blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
}

@media (max-width: 575.98px) {
  .legacy-strength.legacy-strength-icon {
    gap: 14px;
    padding: 20px;
  }

  .legacy-strength-badge {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
    border-radius: 13px;
    font-size: 21px;
  }
}

/* Action-focused CTA band */
.legacy-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
}

.legacy-btn.legacy-btn-white {
  background: #fff;
  border-color: #fff;
  color: var(--legacy-blue) !important;
}

.legacy-btn.legacy-btn-white:hover {
  background: var(--legacy-deep);
  border-color: var(--legacy-deep);
  color: #fff !important;
}

.legacy-cta-actions .legacy-btn i {
  margin-right: 8px;
}

/* Keep wide-gutter rows inside the container on phones (prevents sideways scroll) */
@media (max-width: 575.98px) {
  .row.g-5 {
    --bs-gutter-x: 1.5rem;
  }
}

/* Product cut-out images (transparent PNG renders) */
.legacy-image-frame.legacy-image-product {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: linear-gradient(180deg, #fff 0%, var(--legacy-light) 100%);
  border: 1px solid var(--legacy-border);
}

.legacy-image-frame.legacy-image-product img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Atrax CCN-8 product shot: frame matches the photo's studio background */
.legacy-image-frame.legacy-image-ccn {
  background: #dfedf8;
}

.legacy-image-frame.legacy-image-ccn img {
  object-fit: contain;
}

/* Cargo segment card with installation photo */
.legacy-impact-card-media {
  align-items: flex-start;
}

.legacy-impact-copy {
  flex: 1 1 auto;
}

.legacy-impact-photo {
  position: relative;
  flex: 0 0 38%;
  align-self: stretch;
  min-height: 300px;
  margin: -28px -28px -28px 0;
  overflow: hidden;
}

.legacy-impact-photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 36%;
}

@media (max-width: 991.98px) {
  .legacy-impact-card-media {
    flex-wrap: wrap;
  }

  .legacy-impact-copy {
    flex-basis: calc(100% - 72px);
  }

  .legacy-impact-photo {
    flex-basis: calc(100% + 56px);
    min-height: 0;
    height: 300px;
    margin: 6px -28px -28px;
  }
}

@media (max-width: 767px) {
  .legacy-impact-copy {
    flex: 0 0 auto;
  }

  .legacy-impact-photo {
    flex: 0 0 auto;
    align-self: stretch;
    height: 260px;
    margin: 4px -22px -22px;
  }
}

/* Clickable system diagram */
.legacy-image-frame.legacy-image-diagram {
  position: relative;
  display: block;
  padding: 12px;
  border: 1px solid var(--legacy-border);
}

.legacy-image-frame.legacy-image-diagram img {
  height: auto;
  object-fit: contain;
}

.legacy-image-zoom-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: 20px;
  background: var(--legacy-blue);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(3, 95, 194, .25);
  transition: background .25s ease;
}

.legacy-image-zoom:hover .legacy-image-zoom-hint {
  background: var(--legacy-deep);
}
