/* acf/shop-cta — "Ready to start?" shop / talk-to-us call to action. */

.shop-cta {
  --sc-ink: #16213e;
  --sc-ink-soft: #4a5568;
  --sc-purple: #5b21b6;
  --sc-purple-soft: #f1eafd;
  --sc-orange: #f9613a;
  --sc-orange-deep: #e04e28;
  --sc-card: #ffffff;
  --sc-radius: 16px;

  background: linear-gradient(180deg, #eaf5fa 0%, #ddf0f8 100%);
  padding: 72px 0;
}

/* ---------- HEAD ---------- */
.shop-cta__head {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.shop-cta .shop-cta__subtitle {
  margin: 18px 0 0;
  color: var(--sc-ink-soft);
  font-size: 17px;
  line-height: 1.6;
}

/* ---------- CARDS ---------- */
.shop-cta__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 44px;
}
.shop-cta__card {
  display: flex;
  min-height: 300px;
  background: var(--sc-card);
  border-radius: var(--sc-radius);
  box-shadow: 0 2px 12px rgba(20, 40, 80, 0.07);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.shop-cta__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(20, 40, 80, 0.12);
}
.shop-cta__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px;
  box-sizing: border-box;
}
.shop-cta__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--sc-purple-soft);
  color: #6b31c7;
}
.shop-cta__icon svg {
  width: 23px;
  height: 23px;
}
.shop-cta .shop-cta__card-title {
  margin: 26px 0 0;
  color: var(--sc-ink) !important;
  font-family: inherit;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.3;
}
.shop-cta .shop-cta__card-subtext {
  margin: 8px 0 0;
  color: var(--sc-purple);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.5;
}

/* ---------- CARDS WITH AN IMAGE ---------- */
/* The media half has no intrinsic height, so the body sets the card height and
   the image is stretched to fill whatever that turns out to be. */
.shop-cta__card--has-image {
  min-height: 340px;
}
.shop-cta__media {
  position: relative;
  flex: 0 0 46%;
  background: #dde8f1;
}
.shop-cta .shop-cta__media-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
  box-shadow: none;
}
.shop-cta__card--has-image .shop-cta__body {
  align-items: center;
  justify-content: center;
  padding: 36px 32px;
  background: linear-gradient(180deg, #ffffff 0%, #f2f8fd 100%);
  text-align: center;
}
.shop-cta__card--has-image .shop-cta__icon {
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
}
.shop-cta__card--has-image .shop-cta__icon svg {
  width: 34px;
  height: 34px;
  stroke-width: 1.6;
}
.shop-cta .shop-cta__card--has-image .shop-cta__card-title {
  margin-top: 18px;
  font-size: 23px;
}
.shop-cta .shop-cta__card--has-image .shop-cta__card-subtext {
  font-size: 15px;
}

/* ---------- BUTTONS ---------- */
.shop-cta .shop-cta__btn {
  align-self: flex-start;
  margin-top: auto;
  padding: 13px 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease,
    transform 0.2s ease;
}
.shop-cta .shop-cta__btn:hover,
.shop-cta .shop-cta__btn:focus {
  text-decoration: none;
  transform: translateY(-1px);
}
.shop-cta .shop-cta__btn--shop {
  background: var(--sc-orange);
  color: #fff !important;
}
.shop-cta .shop-cta__btn--shop:hover,
.shop-cta .shop-cta__btn--shop:focus {
  background: var(--sc-orange-deep);
}
.shop-cta .shop-cta__btn--talk {
  background: transparent;
  border: 2px solid var(--sc-orange);
  color: var(--sc-orange) !important;
}
.shop-cta .shop-cta__btn--talk:hover,
.shop-cta .shop-cta__btn--talk:focus {
  background: var(--sc-orange);
  border-color: var(--sc-orange);
  color: #fff !important;
}
/* Image cards centre their content as one group instead of pinning the button. */
.shop-cta .shop-cta__card--has-image .shop-cta__btn {
  align-self: center;
  margin-top: 28px;
}

/* Cards sit above the fold on phones, so the buttons need to be reachable. */
@media (max-width: 782px) {
  .shop-cta {
    padding: 52px 0;
  }
  .shop-cta__cards {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 32px;
  }
  .shop-cta__card {
    min-height: 0;
  }
  .shop-cta__body {
    padding: 26px;
  }
  .shop-cta .shop-cta__btn {
    margin-top: 24px;
  }
  /* Stacked, the media no longer stretches to the body, so it needs a height. */
  .shop-cta__card--has-image {
    flex-direction: column;
    min-height: 0;
  }
  .shop-cta__media {
    flex: 0 0 200px;
    height: 200px;
  }
  .shop-cta__card--has-image .shop-cta__body {
    padding: 28px 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-cta__card,
  .shop-cta .shop-cta__btn {
    transition: none;
  }
  .shop-cta__card:hover,
  .shop-cta .shop-cta__btn:hover {
    transform: none;
  }
}
