/* =========================================================
   SMMP custom styles (home page + site-wide footer)
   Consolidated from the old sandbox files smmp-css.php + smmp-footer.php.
   Enqueued site-wide via child theme functions.php (handle: smmp-home-page).

   SELECTOR NOTE:
   - WIDGET rules use custom CSS classes (added in Elementor > Advanced > CSS Classes).
   - CONTAINER (flex ".e-con") rules stay ID-keyed: custom classes do NOT emit on
     containers while the Elementor "Optimized markup" experiment is on. If you ever
     rebuild those sections the element id changes, so update the id here too.
     * .elementor-element-b9b3f79  = Authority section card row (mobile slider)
     * .elementor-element-acc5db5  = Footer gradient top-divider
   ========================================================= */

/* --- Authority section: mobile = full-width stacked cards (CONTAINER, id-keyed) to match Figma mobile 161:420 --- */
@media (max-width: 767px) {
  .elementor-element-b9b3f79.e-con {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 16px;
  }
  .elementor-element-b9b3f79 > .e-con {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
  }
}

/* --- Case-study image carousel (WIDGET, class .smmp-cs-native) --- */
.smmp-cs-native {
  max-width: 1108px;
  margin-left: auto;
  margin-right: auto;
}
.smmp-cs-native .swiper-slide-inner {
  background: transparent;
  margin: 0;
}
.smmp-cs-native .swiper-slide-image {
  border-radius: 16px;
  display: block;
}
.smmp-cs-native .elementor-swiper-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #000;
  border: 1px solid #7c6026;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.smmp-cs-native .elementor-swiper-button:hover {
  border-color: #d9a527;
  background: #141310;
}
.smmp-cs-native .elementor-swiper-button svg {
  width: 18px;
  height: 18px;
}
.smmp-cs-native .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #252625;
  opacity: 1;
  border-radius: 50px;
  transition:
    width 0.3s,
    background 0.3s;
}
.smmp-cs-native .swiper-pagination-bullet-active {
  width: 40px;
  background: #d9a527;
}

/* --- Logo carousel (WIDGET, class .smmp-logos-native) --- */
.smmp-logos-native .swiper-slide-inner {
  background: #131313;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 12px;
  margin: 0;
}
.smmp-logos-native .swiper-slide-image {
  max-width: 80%;
  max-height: 56px;
  width: auto !important;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}
.smmp-logos-native .elementor-swiper-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #000;
  border: 1px solid #7c6026;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}
.smmp-logos-native .elementor-swiper-button:hover {
  border-color: #d9a527;
}
.smmp-logos-native .elementor-swiper-button svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 767px) {
  .smmp-cs-native .elementor-swiper-button {
    width: 44px;
    height: 44px;
  }
  .smmp-cs-native .swiper-pagination-bullet-active {
    width: 28px;
  }
}

/* --- Footer gradient top-divider + diamond (CONTAINER, id-keyed) --- */
.elementor-element-acc5db5 {
  background: linear-gradient(
    90deg,
    rgba(240, 192, 68, 0) 0%,
    rgba(240, 192, 68, 0.4) 50%,
    rgba(240, 192, 68, 0) 100%
  ) !important;
  min-height: 1px !important;
  height: 1px;
  position: relative;
  overflow: visible;
  max-width: 1440px;
}
.elementor-element-acc5db5:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  background: #f0c044;
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 11px 0 #f0c044;
}

/* --- Footer social icons (WIDGET, class .smmp-footer-social) --- */
.smmp-footer-social .elementor-social-icon {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 44px;
  height: 44px;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.smmp-footer-social .elementor-social-icon:hover {
  border-color: #d9a527;
  transform: translateY(-2px);
}
/* --- Network section: team cards MUST stack (mobile), no overlap (CONTAINER id-keyed) --- */
@media (max-width: 767px) {
  .elementor-element-a164144 {
    flex-direction: column !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
  }
  .elementor-element-a164144 > .e-con {
    width: 82% !important;
    max-width: 82% !important;
    flex: 0 0 auto !important;
    margin-bottom: 18px !important;
  }
  .elementor-element-a164144 > .e-con:last-child {
    margin-bottom: 0 !important;
  }
  .elementor-element-a164144 .elementor-widget-image {
    width: 100% !important;
  }
  .elementor-element-a164144 .elementor-widget-image img {
    width: 100% !important;
    height: auto !important;
    display: block;
  }
}

/* --- Case-study carousel: controls as bottom bar (match Figma 2054:2) --- */
.smmp-cs-native .elementor-widget-container {
  position: relative;
}
.smmp-cs-native .elementor-image-carousel-wrapper {
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 84px !important;
}
.smmp-cs-native .elementor-swiper-button-prev {
  top: auto !important;
  bottom: 14px !important;
  left: 4px !important;
  right: auto !important;
  margin: 0 !important;
  transform: none !important;
}
.smmp-cs-native .elementor-swiper-button-next {
  top: auto !important;
  bottom: 14px !important;
  right: 4px !important;
  left: auto !important;
  margin: 0 !important;
  transform: none !important;
}
.smmp-cs-native .swiper-pagination {
  position: absolute !important;
  left: 50% !important;
  right: auto !important;
  top: auto !important;
  bottom: 40px !important;
  transform: translateX(-50%) !important;
  width: auto !important;
  margin: 0 !important;
}
@media (max-width: 767px) {
  .smmp-cs-native .elementor-image-carousel-wrapper {
    padding-bottom: 62px !important;
  }
  .smmp-cs-native .elementor-swiper-button-prev {
    bottom: 10px !important;
  }
  .smmp-cs-native .elementor-swiper-button-next {
    bottom: 10px !important;
  }
  .smmp-cs-native .swiper-pagination {
    bottom: 26px !important;
  }
}
