/* =========================================================
   SHAPE CONTENT MEDIA
========================================================= */

.scm {
  position: relative;

  width: 100%;

  overflow: hidden;

  isolation: isolate;

  background-color: #ffffff;

  background-repeat: no-repeat;

  background-position: right center;

  background-size: auto 100%;

  box-sizing: border-box;

  padding: 112px 72px;
}


.scm,
.scm *,
.scm *::before,
.scm *::after {
  box-sizing: border-box;
}


/* =========================================================
   BACKGROUND SHAPES
========================================================= */

.scm--blue {
  background-image:
    url("/wp-content/themes/semarchy2024/assets/images/shape_blue_media.png");
}


.scm--green {
  background-image:
    url("/wp-content/themes/semarchy2024/assets/images/shape_green_media.png");
}


/* =========================================================
   INNER
========================================================= */

.scm__inner {
  position: relative;

  z-index: 1;

  width: 100%;

  max-width: 1440px;

  margin-left: auto;

  margin-right: auto;
}


/* =========================================================
   GRID
========================================================= */

.scm__grid {
  display: grid;

  grid-template-columns:
    minmax(0, 0.92fr)
    minmax(0, 1.08fr);

  align-items: center;

  gap: 72px;

  width: 100%;
}


/* =========================================================
   COPY
========================================================= */

.scm__copy {
  position: relative;

  z-index: 2;

  width: 100%;

  min-width: 0;

  max-width: 660px;
}


/* =========================================================
   HEADING
========================================================= */

.scm__heading {
  margin: 0;

  max-width: 610px;

  color: #003b72;

  line-height: 1.1;

  text-wrap: balance;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.scm__description {
  width: 100%;

  max-width: 620px;

  color: #001d39;

  line-height: 1.45;
}


.scm__description p {
  margin-top: 0;
}


.scm__description p:last-child {
  margin-bottom: 0;
}


/* =========================================================
   BUTTONS
========================================================= */

.scm__buttons {
  position: relative;

  z-index: 2;

  display: flex;

  align-items: center;

  justify-content: flex-start;

  flex-wrap: wrap;

  gap: 16px;

  width: 100%;

  margin-top: 24px;
}


.scm__primary-button,
.scm__secondary-button,
.scm__salesforce-button {
  flex-shrink: 0;
}


/* =========================================================
   MEDIA COLUMN
========================================================= */

.scm__media-column {
  position: relative;

  z-index: 1;

  display: flex;

  align-items: center;

  justify-content: center;

  width: 100%;

  min-width: 0;
}


/* =========================================================
   MEDIA
========================================================= */

.scm__media {
  position: relative;

  width: 100%;

  max-width: 640px;

  margin-left: auto;

  margin-right: auto;
}


.scm__media--items {
  max-width: 590px;
}


/* =========================================================
   6 ITEM GRID
========================================================= */

.scm__items {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );

  align-items: start;

  column-gap: 56px;

  row-gap: 20px;

  width: 100%;

  max-width: 540px;

  margin: 0 auto;

  padding: 0;

  list-style: none;
}


/* =========================================================
   ITEM
========================================================= */

.scm__item {
  display: flex;

  align-items: flex-start;

  justify-content: center;

  width: 100%;

  min-width: 0;

  margin: 0;

  padding: 0;

  list-style: none;
}


/* =========================================================
   ITEM LINK
========================================================= */

.scm__item-link {
  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: flex-start;

  width: 100%;

  min-width: 0;

  color: #003b72;

  text-align: center;

  text-decoration: none;
}


.scm__item-link:hover,
.scm__item-link:focus {
  color: rgb(0 29 57 / var(--tw-bg-opacity, 1));

  text-decoration: none;
}


.scm__item-link--static {
  cursor: default;
}


/* =========================================================
   ITEM ICON
========================================================= */

.scm__item-icon {
  position: relative;

  display: flex;

  align-items: center;

  justify-content: center;

  width: 110px;

  height: 110px;

  overflow: hidden;

  flex-shrink: 0;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}


/* =========================================================
   ITEM IMAGES
========================================================= */

.scm__item-image {
  position: absolute;

  top: 50%;

  left: 50%;

  display: block;

  width: 110px;

  height: 110px;

  max-width: 100%;

  max-height: 100%;

  margin: 0;

  object-fit: contain;

  object-position: center;

  transform:
    translate(-50%, -50%)
    scale(1);

  transition:
    opacity 0.35s ease,
    transform 0.35s ease;

  will-change:
    opacity,
    transform;
}


/* =========================================================
   DEFAULT IMAGE
========================================================= */

.scm__item-image--default {
  z-index: 1;

  opacity: 1;
}


/* =========================================================
   HOVER IMAGE
========================================================= */

.scm__item-image--hover {
  z-index: 2;

  opacity: 0;

  pointer-events: none;

  transform:
    translate(-50%, -50%)
    scale(0.98);
}


/* =========================================================
   ITEM LABEL
========================================================= */

.scm__item-label {
  position: relative;

  display: inline-block;

  margin-top: 8px;

  color: #003b72;

  font-size: 15px;

  font-weight: 500;

  line-height: 1.25;

  text-align: center;
}


/* =========================================================
   ANIMATED UNDERLINE
========================================================= */

.scm__item-label::after {
  content: "";

  position: absolute;

  left: 0;

  bottom: -2px;

  width: 100%;

  height: 1px;

  background-color: currentColor;

  transform: scaleX(0);

  transform-origin: left center;

  transition:
    transform 0.25s ease;
}


/* =========================================================
   ITEM HOVER
========================================================= */

.scm__item-link:hover .scm__item-icon,
.scm__item-link:focus-visible .scm__item-icon {
  transform: translateY(-3px);
}


/* DEFAULT IMAGE OUT */

.scm__item-link:hover
.scm__item-image--default,
.scm__item-link:focus-visible
.scm__item-image--default {
  opacity: 0;

  transform:
    translate(-50%, -50%)
    scale(1.02);
}


/* HOVER IMAGE IN */

.scm__item-link:hover
.scm__item-image--hover,
.scm__item-link:focus-visible
.scm__item-image--hover {
  opacity: 1;

  transform:
    translate(-50%, -50%)
    scale(1);
}


/* LABEL */

.scm__item-link:hover .scm__item-label,
.scm__item-link:focus-visible .scm__item-label {
  color: rgb(0 29 57 / var(--tw-bg-opacity, 1));
}


/* UNDERLINE */

.scm__item-link:hover .scm__item-label::after,
.scm__item-link:focus-visible .scm__item-label::after {
  transform: scaleX(1);
}


/* =========================================================
   IMAGE
========================================================= */

.scm__image-wrap {
  position: relative;

  display: flex;

  align-items: center;

  justify-content: center;

  width: 100%;
}


.scm__image {
  position: relative;

  z-index: 1;

  display: block;

  width: 100%;

  height: auto;

  max-width: 640px;

  margin: 0 auto;

  object-fit: contain;

  object-position: center;

  border: 0;
}


/* =========================================================
   VIDEO
========================================================= */

.scm__video {
  position: relative;

  width: 100%;

  aspect-ratio: 16 / 9;

  overflow: hidden;

  background: #001d39;

  border-radius: 16px;

  box-shadow:
    0 12px 32px
    rgba(
      0,
      29,
      57,
      0.18
    );
}


.scm__video iframe {
  position: absolute;

  inset: 0;

  display: block;

  width: 100%;

  height: 100%;

  margin: 0;

  padding: 0;

  border: 0;

  background: transparent;
}


/* =========================================================
   SALESFORCE MODAL
========================================================= */

.scm-modal {
  z-index: 9999;

  padding: 5%;

  background:
    rgba(
      0,
      0,
      0,
      0.5
    );
}


.scm-modal__inner {
  max-width: 1000px;

  max-height: 90vh;

  overflow: auto;
}


.scm-modal__close {
  z-index: 5;

  top: 16px;

  right: 20px;

  padding: 0;

  border: 0;

  background: transparent;

  cursor: pointer;
}


#scm-salesforce-container {
  width: 100%;
}


.scm-salesforce-scroll {
  width: 100%;

  overflow: auto;
}


/* =========================================================
   LAPTOP
========================================================= */

@media screen and (max-width: 1199px) {

  .scm {
    padding:
      88px
      48px;
  }


  .scm__grid {
    gap: 52px;
  }


  .scm__items {
    column-gap: 56px;
  }

}


/* =========================================================
   TABLET
========================================================= */

@media screen and (max-width: 1023px) {

  .scm {
    padding:
      72px
      32px;

    background-position:
      right center;

    background-size:
      auto 100%;
  }


  .scm__grid {
    grid-template-columns:
      minmax(0, 0.95fr)
      minmax(0, 1.05fr);

    gap: 40px;
  }


  .scm__media {
    max-width: 560px;
  }


  .scm__items {
    max-width: 460px;

    column-gap: 40px;

    row-gap: 32px;
  }


  .scm__item-icon {
    width: 82px;

    height: 82px;

    padding: 11px;

    border-radius: 16px;
  }


  .scm__item-image {
    width: 100%;

    height: 100%;

    max-width: 100%;

    max-height: 100%;
  }


  .scm__item-label {
    margin-top: 10px;

    font-size: 14px;
  }


  .scm__image {
    max-width: 560px;
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media screen and (max-width: 767px) {

  .scm {
    padding:
      56px
      24px;

    background-image: none;
  }


  .scm--blue {
    background-color: #cae6fd;
  }


  .scm--green {
    background-color: #f5fbec;
  }


  .scm__grid {
    grid-template-columns:
      minmax(0, 1fr);

    gap: 48px;
  }


  .scm__copy {
    max-width: none;
  }


  .scm__heading {
    max-width: none;

    text-align: center;
  }


  .scm__description {
    max-width: none;

    text-align: center;
  }


  .scm__buttons {
    gap: 12px;
  }


  .scm__primary-button,
  .scm__secondary-button,
  .scm__salesforce-button {
    flex-shrink: 0;

    margin: auto;
  }


  .scm__media-column {
    width: 100%;
  }


  .scm__media {
    max-width: 100%;
  }


  .scm__media--items {
    max-width: 100%;
  }


  .scm__items {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );

    column-gap: 24px;

    row-gap: 30px;

    max-width: 420px;
  }


  .scm__item-icon {
    width: 82px;

    height: 82px;

    padding: 11px;

    border-radius: 16px;
  }


  .scm__item-image {
    width: 100%;

    height: 100%;

    max-width: 100%;

    max-height: 100%;
  }


  .scm__item-label {
    margin-top: 9px;

    font-size: 14px;
  }


  .scm__image {
    width: 100%;

    max-width: 100%;
  }


  .scm__video {
    width: 100%;

    border-radius: 14px;

    box-shadow:
      0 8px 24px
      rgba(
        0,
        29,
        57,
        0.16
      );
  }


  .scm-modal {
    padding: 24px;
  }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media screen and (max-width: 480px) {

  .scm {
    padding:
      48px
      20px;
  }


  .scm__items {
    column-gap: 16px;

    row-gap: 26px;
  }


  .scm__item-icon {
    width: 76px;

    height: 76px;

    padding: 10px;

    border-radius: 14px;
  }


  .scm__item-image {
    width: 100%;

    height: 100%;

    max-width: 100%;

    max-height: 100%;
  }


  .scm__item-label {
    font-size: 13px;
  }


  .scm__buttons {
    align-items: flex-start;
  }


  .scm-modal {
    padding: 16px;
  }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (
  prefers-reduced-motion: reduce
) {

  .scm *,
  .scm *::before,
  .scm *::after {
    scroll-behavior: auto !important;

    transition: none !important;
  }

}