.site-cta-wrap {
  --site-cta-overlap: 140px;
  --site-cta-bg: #f7f7f8;
  position: relative;
  z-index: 3;
  margin-bottom: calc(var(--site-cta-overlap) * -1);
  overflow: visible;
  background: var(--site-cta-bg);
}

.site-cta {
  width: 100vw;
  max-width: none;
  height: 300px;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  border-radius: 0;
  position: relative;
  z-index: 4;
  transform: translateY(var(--site-cta-overlap));
  transform-origin: center top;
  background: #050505;
  will-change: width, border-radius;
}

.site-cta .product-cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 1;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.site-cta .site-cta-content {
  height: 100%;
  width: min(1280px, calc(100% - 96px));
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  will-change: transform;
  position: relative;
  z-index: 1;
}

.site-cta .cta-heading {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.18;
  font-weight: 760;
  letter-spacing: .04em;
}

.site-cta .product-cta-text {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, .76);
  font-size: 16px;
  line-height: 1.85;
}

.site-cta .product-cta-btn {
  margin-top: 28px;
}

.site-cta-wrap--light .site-cta {
  background: #eef2f6;
}

.site-cta-wrap--light .site-cta:after {
  background: linear-gradient(90deg, rgba(255, 255, 255, .76), rgba(255, 255, 255, .22));
}

.site-cta-wrap--light .site-cta .cta-heading {
  color: #1f2328;
}

.site-cta-wrap--light .site-cta .product-cta-text {
  color: rgba(31, 35, 40, .68);
}

@media (max-width: 768px) {
  .site-cta-wrap {
    display: none !important;
  }

  .site-cta {
    width: calc(100% - 32px);
    height: 240px;
    border-radius: 12px;
    transform: none;
  }

  .site-cta .site-cta-content {
    width: calc(100% - 48px);
    align-items: center;
    text-align: center;
  }

  .site-cta .cta-heading {
    font-size: 28px;
  }

  .site-cta .product-cta-text {
    font-size: 14px;
  }
}

.footer-divider {
    margin-bottom: clamp(18px, 2.2vh, 28px);
}
.footer-social-link--qr {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.footer-social-qr {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    width: 132px;
    height: 132px;
    padding: 8px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 8px;
    background: rgba(8,8,8,0.96);
    box-shadow: 0 18px 48px rgba(0,0,0,0.32);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 20;
    pointer-events: none;
}
.footer-social-qr img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}
.footer-social-link--qr:hover .footer-social-qr,
.footer-social-link--qr:focus-visible .footer-social-qr {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}
.footer-copyright {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
    text-align: center;
}
.footer-record-link {
    color: rgba(255,255,255,0.22);
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-record-link:hover {
    color: #FF6600;
}


/* Phase 3.5 footer link correction overrides */
#section-footer .section-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
#section-footer .footer-layout-shell {
    position: relative;
    z-index: 1;
}
#section-footer .footer-divider {
    margin-top: clamp(20px, 3vh, 34px);
    margin-bottom: clamp(16px, 2vh, 24px);
}
#section-footer .footer-bottom {
    width: min(1280px, 100%);
    margin-left: auto;
    margin-right: auto;
}
#section-footer .footer-copyright {
    margin: 0 auto;
    width: min(1280px, 100%);
}
.dropdown-product-card {
    color: inherit;
    text-decoration: none;
}
.dropdown-product-card:hover .dropdown-product-card-name {
    color: #FF6600;
}


/* Emergency fix: keep linked dropdown cards block-level and footer bottom visible */
.dropdown-product-card,
a.dropdown-product-card {
    display: block;
    color: inherit;
    text-decoration: none;
}
.dropdown-product-grid > a.dropdown-product-card {
    min-width: 0;
}
#section-footer .footer-bottom,
#section-footer .footer-copyright {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}
#section-footer.fullscreen-section {
    overflow: visible !important;
}
#section-footer .footer-layout-shell {
    overflow: visible !important;
}
body:not(.home-intro-active) #section-footer .footer-bottom,
body:not(.home-intro-active) #section-footer .footer-copyright {
    display: flex !important;
}

.series-product-img > picture {
    display: contents;
}

.allinone-medical-image > picture,
.allinone-microwave-image > picture {
    display: contents;
}

.about-results-main > picture,
.about-results-card > picture,
.equipment-image > picture {
    display: contents;
}

/* Shared mobile-only utilities. Desktop rendering remains unchanged. */
@media (max-width: 768px) {
    .mobile-hidden {
        display: none !important;
    }

    .mobile-bg-swap {
        background-image: var(--mobile-bg) !important;
    }
}

/* Related-equipment detail pages: mobile product-series carousels. */
@media (max-width: 768px) {
    .relate-marking-page #product-glovebox .series-header,
    .relate-marking-page #product-vacuum .series-header,
    .relate-marking-page #product-automation .series-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .relate-marking-page.relate-marking-page #product-glovebox .series-title,
    .relate-marking-page.relate-marking-page #product-vacuum .series-title,
    .relate-marking-page.relate-marking-page #product-automation .series-title {
        flex: 1 1 auto;
        min-width: 0;
        margin: 0 !important;
        font-size: 20px !important;
        line-height: 1.2 !important;
        white-space: nowrap;
    }

    .relate-marking-page #product-glovebox .series-carousel-controls,
    .relate-marking-page #product-vacuum .series-carousel-controls,
    .relate-marking-page #product-automation .series-carousel-controls {
        display: inline-flex !important;
        flex: 0 0 auto;
        align-self: center;
        gap: 6px;
        margin-left: auto;
    }

    .relate-marking-page #product-glovebox .series-carousel-btn,
    .relate-marking-page #product-vacuum .series-carousel-btn,
    .relate-marking-page #product-automation .series-carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .relate-marking-page #product-glovebox .series-carousel-btn.is-disabled,
    .relate-marking-page #product-vacuum .series-carousel-btn.is-disabled,
    .relate-marking-page #product-automation .series-carousel-btn.is-disabled {
        opacity: 1;
        cursor: pointer;
        pointer-events: auto;
    }

    .relate-marking-page #product-glovebox .series-carousel-viewport,
    .relate-marking-page #product-vacuum .series-carousel-viewport,
    .relate-marking-page #product-automation .series-carousel-viewport {
        width: 100% !important;
        max-width: 100%;
        margin-left: 0 !important;
    }

    .relate-marking-page #product-glovebox .device-carousel-track,
    .relate-marking-page #product-vacuum .device-carousel-track,
    .relate-marking-page #product-automation .device-carousel-track {
        gap: 0 !important;
        padding-left: 0 !important;
    }

    .relate-marking-page #product-glovebox .device-carousel-track > .series-product-card,
    .relate-marking-page #product-vacuum .device-carousel-track > .series-product-card,
    .relate-marking-page #product-automation .device-carousel-track > .series-product-card {
        flex: 0 0 100% !important;
        min-width: 100% !important;
        max-width: 100%;
    }
}
