/* CTA components by design pattern */
:root {
  --cta-arrow-mask: url(../../assets/images/global/icons/icon-arrow-right.svg);
}

.cta-capsule {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  border: 2px solid transparent;
  border-radius: 30px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 500;
  transition: background-color 180ms ease-in-out, color 180ms ease-in-out, border-color 180ms ease-in-out;
}

.cta-capsule--outline {
  background-color: transparent;
}

.cta-capsule--theme-light.cta-capsule--outline {
  border-color: #fff;
  color: #fff;
}

.cta-capsule--theme-light.cta-capsule--solid {
  background-color: #fff;
  color: #111;
}

.cta-capsule--theme-muted.cta-capsule--outline {
  border-color: #6b6b6b;
  color: #6b6b6b;
}

.cta-capsule--theme-muted.cta-capsule--solid {
  background-color: #6b6b6b;
  color: #fff;
}

@media (hover: hover) {
  .cta-capsule--theme-light.cta-capsule--outline:hover {
    background-color: #fff;
    color: #111;
    border-color: #fff;
  }

  .cta-capsule--theme-light.cta-capsule--solid:hover {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
  }

  .cta-capsule--theme-muted.cta-capsule--outline:hover {
    background-color: #6b6b6b;
    color: #fff;
    border-color: #6b6b6b;
  }

  .cta-capsule--theme-muted.cta-capsule--solid:hover {
    background-color: transparent;
    color: #6b6b6b;
    border-color: #6b6b6b;
  }
}

.cta-pill-tail {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  gap: 6px;
  border: none;
  border-radius: 999px;
  padding: 13.5px 20px 13.5px 24px;
  background: #fff;
  color: #111;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
}

.cta-pill-tail--soft {
  background: var(--alabaster, #efeeea);
  color: #111;
}

.cta-pill-tail--overlay {
  padding: 13.5px 40px 13.5px 24px;
}

.cta-pill-tail--overlay .cta-pill-tail__icon {
  position: absolute;
  right: 14px;
  top: calc(50% - 8px);
}

.cta-pill-tail__icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  position: relative;
  flex: 0 0 auto;
}

.cta-pill-tail__icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: currentColor;
  -webkit-mask: var(--cta-arrow-mask) no-repeat center / contain;
  mask: var(--cta-arrow-mask) no-repeat center / contain;
  transform: none;
  transform-origin: center;
}

@media (hover: hover) {
  .cta-pill-tail:hover .cta-pill-tail__icon::before {
    transform: rotate(-22deg);
  }

  .cta-pill-tail--overlay:hover .cta-pill-tail__icon::before,
  .cta-pill-tail--no-rotate:hover .cta-pill-tail__icon::before {
    transform: none;
  }
}

.cta-pill-swap {
  --cta-swap-bg: #fff;
  --cta-swap-fg: #111;
  --cta-swap-circle-left-bg: #efeeea;
  --cta-swap-circle-right-bg: #beb4ad;
  --cta-swap-right-arrow-color: #fff;
  --cta-swap-arrow-w: 18px;
  --cta-swap-arrow-h: 18px;
  --cta-swap-pad-top: 16px;
  --cta-swap-pad-right: 28px;
  --cta-swap-pad-bottom: 16px;
  --cta-swap-pad-left: 64px;
  position: relative;
  border: none;
  border-radius: 999px;
  background: var(--cta-swap-bg);
  width: fit-content;
  max-width: 100%;
  padding: var(--cta-swap-pad-top) var(--cta-swap-pad-right) var(--cta-swap-pad-bottom) var(--cta-swap-pad-left);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 500;
  color: var(--cta-swap-fg);
  cursor: pointer;
  text-decoration: none;
  transition: padding 0.3s ease;
}

.cta-pill-swap--soft {
  --cta-swap-bg: #efeeea;
  --cta-swap-circle-left-bg: #fff;
  --cta-swap-arrow-h: 12px;
}

.cta-pill-swap--inverse {
  --cta-swap-bg: var(--alabaster, #efeeea);
  --cta-swap-circle-left-bg: #fff;
  --cta-swap-circle-right-bg: #fff;
  --cta-swap-right-arrow-color: #111;
}

.cta-pill-swap__icon {
  position: absolute;
  left: 2px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: left center;
}

.cta-pill-swap__circle {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cta-swap-circle-left-bg);
}

.cta-pill-swap__arrow {
  position: relative;
  width: var(--cta-swap-arrow-w);
  height: var(--cta-swap-arrow-h);
  background-color: currentColor;
  -webkit-mask: var(--cta-arrow-mask) no-repeat center / contain;
  mask: var(--cta-arrow-mask) no-repeat center / contain;
  transform: none;
}

.cta-pill-swap__text {
  transition: transform 0.3s ease;
}

.cta-pill-swap__icon-right {
  left: auto;
  right: 2px;
  opacity: 0;
  transform: translate(-6px) scale(0.6);
  transform-origin: right center;
}

.cta-pill-swap__icon-right .cta-pill-swap__circle {
  background: var(--cta-swap-circle-right-bg);
}

.cta-pill-swap__icon-right .cta-pill-swap__arrow {
  color: var(--cta-swap-right-arrow-color);
}

@media (hover: hover) {
  .cta-pill-swap:hover {
    padding-left: 28px;
    padding-right: 64px;
  }

  .cta-pill-swap:hover .cta-pill-swap__icon {
    transform: translate(-6px) scale(0);
    opacity: 0;
  }

  .cta-pill-swap:hover .cta-pill-swap__icon-right {
    opacity: 1;
    transform: translate(0) scale(1);
  }

  .cta-pill-swap:hover .cta-pill-swap__text {
    transform: translate(-6px);
  }
}

.cta-pill-leading {
  position: relative;
  border: 0;
  border-radius: 999px;
  background: var(--alabaster, #efeeea);
  color: var(--black, #111);
  width: fit-content;
  max-width: 100%;
  padding: 16px 28px 16px 64px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 500;
  text-decoration: none;
}

.cta-pill-leading::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  transform: translateY(-50%);
}

.cta-pill-leading::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 50%;
  width: 18px;
  height: 12px;
  transform: translateY(-50%);
  background-color: currentColor;
  -webkit-mask: var(--cta-arrow-mask) no-repeat center / contain;
  mask: var(--cta-arrow-mask) no-repeat center / contain;
}

.cta-card {
  background: #726e66;
  color: #fff;
  border: none;
  border-radius: 12px;
  min-height: clamp(160px, 12vw, 176px);
  padding: clamp(20px, 1.6vw, 24px);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(10px, 1vw, 12px);
  text-align: left;
  cursor: pointer;
  transition: background-color 180ms ease-in-out, color 180ms ease-in-out;
}

.cta-card__text {
  font-size: clamp(18px, 1.25vw, 20px);
  line-height: 1.4;
}

.cta-card__link {
  text-decoration: underline;
}

@media (min-width: 1280px) {
  .contacta .cta-card__text {
    font-size: 24px;
  }
}

.cta-card__arrow {
  position: relative;
  flex: 0 0 auto;
  width: clamp(28px, 2.1vw, 32px);
  height: clamp(28px, 2.1vw, 32px);
  align-self: flex-start;
  overflow: hidden;
}

.cta-card__arrow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(21px, 1.6vw, 24px);
  height: clamp(17px, 1.3vw, 20px);
  transform: translate(-50%, -50%);
  background-color: currentColor;
  -webkit-mask: var(--cta-arrow-mask) no-repeat center / contain;
  mask: var(--cta-arrow-mask) no-repeat center / contain;
  transition: transform 180ms ease-in-out;
}

@media (hover: hover) {
  .cta-card:hover {
    background: #504d47;
  }

  .cta-card:hover .cta-card__arrow::before {
    transform: translate(calc(-50% + 2px), -50%);
  }
}

.cta-card:focus-visible,
.cta-pill-swap:focus-visible,
.cta-capsule:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}
