/*
 * Colmy — padrão global de CTAs
 * Inspirado no componente cssbuttons-io-button, com a paleta laranja/ember.
 */

:where(.brand-home, .brand-page, .brand-campaign) :is(
  a[href="#cta"],
  a[href="#"],
  a.inline-flex,
  a.link-btn,
  a.btn,
  button[type="submit"],
  .specialist-form__submit,
  .solution-features-cta,
  .solution-results-cta
) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.1rem;
  padding: 0.8em 1.5em 0.8em 1.2em;
  color: #fff !important;
  background: linear-gradient(108deg, #f4b21b 0%, #e88d0b 45%, #c93624 100%) !important;
  background-size: 160% 160%;
  background-position: 0% 50%;
  border: 1px solid rgba(255, 255, 255, 0.78) !important;
  border-radius: 20em !important;
  box-shadow: 0 0.7em 1.5em -0.5em rgba(201, 54, 36, 0.52);
  font-family: "Poppins", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-position 350ms ease;
}

.solution-cta {
  display: flex;
  width: fit-content;
  max-width: none;
  min-height: 2.65rem;
  margin-right: auto;
  margin-left: auto;
  padding: 0.65em 1.15em 0.65em 0.95em;
  font-size: 0.9rem;
  white-space: nowrap;
  flex-shrink: 0;
  text-align: center;
}

.solution-features-cta,
.solution-results-cta {
  display: flex;
  width: fit-content;
}

/* Remove o CTA legado criado via pseudo-elemento e centraliza o novo CTA. */
.page-catalogo main > div > section:nth-of-type(4) > div:first-child {
  flex-direction: column;
  align-items: center;
}

.page-catalogo main > div > section:nth-of-type(4) > div:first-child h2 {
  text-align: center;
}

.page-catalogo main > div > section:nth-of-type(4) > div:first-child h2::after {
  content: none !important;
  display: none !important;
}

.solution-features-cta {
  margin: 1.5rem auto 0;
}

.solution-results-cta {
  margin: 3rem 0 0 50% !important;
  align-self: center;
  justify-self: center;
  transform: translateX(-50%);
}

.solution-results-cta:hover {
  transform: translateX(-50%) translateY(-2px);
}

.page-catalogo .cta-single {
  padding-bottom: clamp(1rem, 2vw, 2rem) !important;
}

:where(.brand-home, .brand-page, .brand-campaign) :is(
  a[href="#cta"],
  a[href="#"],
  a.inline-flex,
  a.link-btn,
  a.btn,
  button[type="submit"],
  .specialist-form__submit,
  .solution-features-cta,
  .solution-results-cta
)::before {
  content: "";
  width: 1.35em;
  height: 1.35em;
  flex: 0 0 1.35em;
  background: no-repeat center / contain
    url("/Arquivos SVG/HTV_Eletric_Chat_Humanizado.svg");
}

:where(.brand-home, .brand-page, .brand-campaign) :is(
  a[href="#cta"],
  a[href="#"],
  a.inline-flex,
  a.link-btn,
  a.btn,
  button[type="submit"],
  .specialist-form__submit,
  .solution-features-cta,
  .solution-results-cta
):hover {
  background-position: 100% 50% !important;
  box-shadow: 0 0.5em 1.5em -0.5em rgba(201, 54, 36, 0.7);
  transform: translateY(-2px);
}

:where(.brand-home, .brand-page, .brand-campaign) :is(
  a[href="#cta"],
  a[href="#"],
  a.inline-flex,
  a.link-btn,
  a.btn,
  button[type="submit"],
  .specialist-form__submit,
  .solution-features-cta,
  .solution-results-cta
):active {
  box-shadow: 0 0.3em 1em -0.5em rgba(201, 54, 36, 0.7);
  transform: translateY(0);
}

@media (max-width: 640px) {
  :where(.brand-home, .brand-page, .brand-campaign) :is(
    a[href="#cta"],
    a[href="#"],
    a.inline-flex,
    a.link-btn,
    a.btn,
    button[type="submit"],
    .specialist-form__submit,
    .solution-features-cta,
    .solution-results-cta
  ) {
    width: 100%;
  }
}
