/* MARK: Homepage store banner */

/* MARK: Section spacing */

.home-v2-store-banner {
  padding: var(--calabash-section-gap) 0;
  background: var(--calabash-white);
}

.home-v2-store-banner + .home-v2-sectors {
  padding-top: 0;
}

/* MARK: Card */

.home-v2-store-banner__card {
  --store-banner-gutter: max(0px, calc((100% - 1500px) / 2));
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(65% 110% at 86% 62%, rgba(69, 190, 225, 0.36) 0%, rgba(69, 190, 225, 0) 64%),
    linear-gradient(115deg, var(--calabash-navy-dark) 0%, var(--calabash-navy) 58%, #0b3d68 100%);
  box-shadow: 0 24px 56px rgba(6, 44, 79, 0.26);
  color: var(--calabash-white);
  transition:
    box-shadow var(--calabash-transition),
    transform var(--calabash-transition);
}

.home-v2-store-banner__link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* MARK: Floating brand-mark accents */

.home-v2-store-banner__decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.home-v2-store-banner__decor-leaf {
  position: absolute;
  top: var(--leaf-top);
  left: var(--leaf-left);
  width: var(--leaf-size);
  aspect-ratio: 33.8 / 56;
  background-color: var(--calabash-company-turquoise);
  opacity: var(--leaf-opacity);
  -webkit-mask: url("../images/footer/calabash-icon-only.svg") center / contain no-repeat;
  mask: url("../images/footer/calabash-icon-only.svg") center / contain no-repeat;
  transform: rotate(var(--leaf-rotate));
}

.home-v2-store-banner__decor-leaf--1 {
  --leaf-top: 14%;
  --leaf-left: 48%;
  --leaf-size: 22px;
  --leaf-opacity: 0.4;
  --leaf-rotate: -24deg;
  --leaf-duration: 9s;
}

.home-v2-store-banner__decor-leaf--2 {
  --leaf-top: 60%;
  --leaf-left: 52%;
  --leaf-size: 34px;
  --leaf-opacity: 0.22;
  --leaf-rotate: 32deg;
  --leaf-duration: 13s;
}

.home-v2-store-banner__decor-leaf--3 {
  --leaf-top: 16%;
  --leaf-left: 94%;
  --leaf-size: 26px;
  --leaf-opacity: 0.3;
  --leaf-rotate: 14deg;
  --leaf-duration: 11s;
}

@media (prefers-reduced-motion: no-preference) {
  .home-v2-store-banner__decor-leaf {
    animation: home-v2-store-banner-float var(--leaf-duration) ease-in-out infinite;
  }
}

@keyframes home-v2-store-banner-float {
  0%,
  100% {
    transform: translate(0, 0) rotate(var(--leaf-rotate));
  }

  50% {
    transform: translate(12px, -16px) rotate(calc(var(--leaf-rotate) + 12deg));
  }
}

/* MARK: Copy + artwork */

.home-v2-store-banner__main {
  position: relative;
  z-index: 2;
  min-height: 300px;
  padding-inline: var(--store-banner-gutter);
  pointer-events: none;
}

.home-v2-store-banner__copy {
  position: relative;
  z-index: 1;
  width: min(100%, 660px);
  padding: 44px 32px 40px 56px;
}

.home-v2-store-banner__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--calabash-company-turquoise);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-v2-store-banner__eyebrow::before {
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--calabash-company-orange-a11y-on-dark);
  content: "";
}

.home-v2-store-banner h2 {
  margin: 0;
  color: var(--calabash-white);
  font-size: clamp(1.85rem, 3vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.06;
}

.home-v2-store-banner__description {
  max-width: 48ch;
  margin: 14px 0 24px;
  color: var(--calabash-white-88);
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  line-height: 1.55;
}

.home-v2-store-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.home-v2-store-banner__actions .calabash-ora-solid-button {
  min-height: 56px;
  padding: 15px 34px;
  background: var(--calabash-company-orange-a11y-on-dark);
  box-shadow: none;
  color: var(--calabash-navy);
  font-size: 1.05rem;
  font-weight: 800;
  pointer-events: auto;
}

.home-v2-store-banner__actions .calabash-ora-solid-button:hover,
.home-v2-store-banner__actions .calabash-ora-solid-button:focus-visible {
  background: #f58a3c;
  box-shadow: none;
  color: var(--calabash-navy);
}

.home-v2-store-banner__actions .calabash-ora-solid-button [aria-hidden="true"] {
  display: inline-block;
  transition: transform var(--calabash-transition);
}

.home-v2-store-banner__actions .calabash-ora-solid-button:focus-visible {
  outline: 3px solid var(--calabash-white);
  outline-offset: 3px;
}

.home-v2-store-banner__art {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.home-v2-store-banner .home-v2-store-banner__art img {
  --art-shift: 0px;
  --art-scale: 1;
  position: absolute;
  right: calc(var(--store-banner-gutter) + 4%);
  bottom: 0;
  width: auto;
  max-width: none;
  height: 118%;
  filter: drop-shadow(0 18px 36px rgba(2, 20, 40, 0.35));
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 20%, #000 50%);
  mask-image: linear-gradient(to bottom, transparent 0%, transparent 20%, #000 50%);
  transform: translateX(var(--art-shift)) scale(var(--art-scale));
  transform-origin: 50% 100%;
  transition: transform 400ms ease;
}

/* MARK: Perks strip */

.home-v2-store-banner__perks {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0 var(--store-banner-gutter);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(3, 36, 63, 0.6);
  list-style: none;
  pointer-events: none;
}

.home-v2-store-banner__perk {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0;
  padding: 17px 20px;
}

.home-v2-store-banner__perk + .home-v2-store-banner__perk {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.home-v2-store-banner__perk-icon {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1.5px solid rgba(69, 190, 225, 0.45);
  border-radius: 50%;
  background: rgba(69, 190, 225, 0.14);
}

.home-v2-store-banner__perk-icon img {
  display: block;
  width: 24px;
  height: 24px;
}

.home-v2-store-banner__perk-title,
.home-v2-store-banner__perk-description {
  display: block;
}

.home-v2-store-banner__perk-title {
  color: var(--calabash-white);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
}

.home-v2-store-banner__perk-description {
  color: var(--calabash-white-82);
  font-size: 0.84rem;
  line-height: 1.35;
}

/* MARK: Hover (pointer devices only) */

@media (hover: hover) {
  .home-v2-store-banner__card:hover {
    box-shadow: 0 30px 66px rgba(6, 44, 79, 0.36);
    transform: translateY(-3px);
  }

  .home-v2-store-banner__card:hover .home-v2-store-banner__art img {
    --art-scale: 1.04;
  }

  .home-v2-store-banner__card:hover .calabash-ora-solid-button {
    background: #f58a3c;
    box-shadow: none;
    transform: translateY(-2px);
  }

  .home-v2-store-banner__card:hover .calabash-ora-solid-button [aria-hidden="true"] {
    transform: translateX(5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-v2-store-banner__card,
  .home-v2-store-banner .home-v2-store-banner__art img,
  .home-v2-store-banner__actions .calabash-ora-solid-button,
  .home-v2-store-banner__actions .calabash-ora-solid-button [aria-hidden="true"] {
    transition: none;
  }

  .home-v2-store-banner__card:hover,
  .home-v2-store-banner__card:hover .calabash-ora-solid-button {
    transform: none;
  }
}

/* MARK: Tablet */

@media (max-width: 1100px) {
  .home-v2-store-banner__copy {
    width: min(100%, 620px);
    padding: 44px 24px 40px 40px;
  }

  .home-v2-store-banner .home-v2-store-banner__art img {
    right: -3%;
    height: 112%;
  }

  .home-v2-store-banner__perk {
    flex-direction: column;
    gap: 10px;
    padding: 18px 12px;
    text-align: center;
  }
}

/* MARK: Mobile */

@media (max-width: 820px) {
  .home-v2-store-banner__card {
    background:
      radial-gradient(90% 55% at 50% 20%, rgba(69, 190, 225, 0.36) 0%, rgba(69, 190, 225, 0) 68%),
      linear-gradient(160deg, var(--calabash-navy-dark) 0%, var(--calabash-navy) 60%, #0b3d68 100%);
  }

  .home-v2-store-banner__main {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .home-v2-store-banner__art {
    position: relative;
    inset: auto;
    order: -1;
    height: 190px;
  }

  .home-v2-store-banner .home-v2-store-banner__art img {
    --art-shift: -50%;
    right: auto;
    left: 50%;
    height: 155%;
  }

  .home-v2-store-banner__copy {
    width: 100%;
    padding: 26px 26px 32px;
  }

  .home-v2-store-banner__perks {
    grid-template-columns: 1fr;
  }

  .home-v2-store-banner__perk {
    flex-direction: row;
    justify-content: flex-start;
    gap: 14px;
    padding: 16px 26px;
    text-align: left;
  }

  .home-v2-store-banner__perk + .home-v2-store-banner__perk {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 0;
  }
}

@media (max-width: 590px) {
  .home-v2-store-banner__card {
    border-radius: 16px;
  }

  .home-v2-store-banner h2 {
    font-size: clamp(1.4rem, 6.4vw, 1.7rem);
  }

  .home-v2-store-banner__copy {
    padding: 24px 20px 28px;
  }

  .home-v2-store-banner__perk {
    padding-inline: 20px;
  }

  .home-v2-store-banner__actions .calabash-ora-solid-button {
    width: 100%;
  }
}
