/**
 * Final Action Section.
 *
 * Seção final com cards de ação, orçamento, contato e links relacionados.
 *
 * @package NexoBase
 */

.nexo-final-action-section {
  box-sizing: border-box;
  width: 100%;
  max-width: 1180px;
  margin-right: auto !important;
  margin-left: auto !important;
  padding-right: 24px;
  padding-left: 24px;
}

.nexo-final-action-section *,
.nexo-final-action-section *::before,
.nexo-final-action-section *::after {
  box-sizing: border-box;
}

/* ==========================================================================
   Cards superiores
   ========================================================================== */

.nexo-final-action-section__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.nexo-final-action-card {
  display: flex;
  min-height: 352px;
  border-radius: 8px;
  background: #d9d9d9;
  color: #25292a;
  overflow: hidden;
}

.nexo-final-action-card__inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 52px 44px 46px;
}

.nexo-final-action-card__title {
  margin: 0 0 28px;
  color: #25292a;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.13;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.nexo-final-action-card__text {
  max-width: 330px;
  margin: 0 0 28px;
  color: #25292a;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.34;
}

.nexo-final-action-card__button {
  width: 100%;
  margin-top: auto;
}

.nexo-final-action-card__button .nexo-cta-button-wrap {
  width: 100%;
  margin: 0;
}

.nexo-final-action-card__button .nexo-cta-button {
  width: 100%;
  min-height: 52px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
}

/* ==========================================================================
   Botões da seção
   ========================================================================== */

.nexo-final-action-button {
  letter-spacing: 0;
}

.nexo-final-action-button--gray {
  background: #6f7272 !important;
  color: #ffffff !important;
  border-color: #6f7272 !important;
  box-shadow: none !important;
}

.nexo-final-action-button--gray:hover,
.nexo-final-action-button--gray:focus {
  background: #5f6262 !important;
  color: #ffffff !important;
  border-color: #5f6262 !important;
}

.nexo-final-action-button--black {
  background: #171d1b !important;
  color: #ffffff !important;
  border-color: #171d1b !important;
  box-shadow: none !important;
}

.nexo-final-action-button--black:hover,
.nexo-final-action-button--black:focus {
  background: #050707 !important;
  color: #ffffff !important;
  border-color: #050707 !important;
}

.nexo-final-action-button--arrow::after {
  content: "↗";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-1px);
}

/* ==========================================================================
   Home hardcoded: CTAs WhatsApp verdes
   ========================================================================== */

body.home .nexo-hero-copy__cta .nexo-cta-button,
body.home #pg-64-3 .nexo-budget-card .nexo-cta-button,
body.home #pg-64-6 .nexo-information-card-slot .nexo-cta-button,
body.home #pg-64-8 .nexo-payment-shipping-section__cta .nexo-cta-button,
body.home #pg-64-10 .nexo-final-action-card--quote .nexo-cta-button {
  background: #058846 !important;
  background-color: #058846 !important;
  color: #ffffff !important;
  border-color: #058846 !important;
  --nexo-cta-button-hover-background: #81d742;
  --nexo-cta-button-hover-text-color: #ffffff;
  --nexo-cta-button-hover-border-color: #81d742;
}

body.home .nexo-hero-copy__cta .nexo-cta-button:hover,
body.home .nexo-hero-copy__cta .nexo-cta-button:focus,
body.home #pg-64-3 .nexo-budget-card .nexo-cta-button:hover,
body.home #pg-64-3 .nexo-budget-card .nexo-cta-button:focus,
body.home #pg-64-6 .nexo-information-card-slot .nexo-cta-button:hover,
body.home #pg-64-6 .nexo-information-card-slot .nexo-cta-button:focus,
body.home #pg-64-8 .nexo-payment-shipping-section__cta .nexo-cta-button:hover,
body.home #pg-64-8 .nexo-payment-shipping-section__cta .nexo-cta-button:focus,
body.home #pg-64-10 .nexo-final-action-card--quote .nexo-cta-button:hover,
body.home #pg-64-10 .nexo-final-action-card--quote .nexo-cta-button:focus {
  background: #81d742 !important;
  background-color: #81d742 !important;
  color: #ffffff !important;
  border-color: #81d742 !important;
}

/* ==========================================================================
   Home hardcoded: último CTA preto com hover invertido
   ========================================================================== */

body.home #pg-64-10 .nexo-final-action-button--black:hover,
body.home #pg-64-10 .nexo-final-action-button--black:focus,
body.home #pg-64-10 .nexo-final-action-button--black:focus-visible {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #f75c00 !important;
  border-color: #ffffff !important;
}

/* ==========================================================================
   Bloco inferior relacionado
   ========================================================================== */

.nexo-final-action-section__related {
  width: 100%;
  max-width: 720px;
  margin: 78px auto 0;
  text-align: center;
}

.nexo-final-action-section__related-title {
  margin: 0 0 24px;
  color: #25292a;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.nexo-final-action-section__related-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 44px;
  width: 100%;
}

.nexo-final-action-section__related-buttons p {
  display: contents;
  margin: 0;
}

.nexo-final-action-section__related-buttons .nexo-cta-button-wrap {
  flex: 0 1 auto;
  width: auto !important;
  margin: 0 !important;
}

.nexo-final-action-section__related-buttons .nexo-cta-button {
  min-width: 260px;
  min-height: 52px;
  padding-right: 28px;
  padding-left: 28px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.nexo-final-action-section__related-buttons
  .nexo-final-action-button:first-child {
  min-width: 314px;
}

/* ==========================================================================
   Responsivo
   ========================================================================== */

@media (max-width: 1024px) {
  .nexo-final-action-section__cards {
    max-width: 860px;
  }

  .nexo-final-action-card__inner {
    padding: 44px 36px 40px;
  }

  .nexo-final-action-card__title {
    font-size: 30px;
  }

  .nexo-final-action-section__related {
    margin-top: 64px;
  }
}

@media (max-width: 767px) {
  .nexo-final-action-section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .nexo-final-action-section__cards {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .nexo-final-action-card {
    min-height: auto;
  }

  .nexo-final-action-card__inner {
    padding: 36px 28px 32px;
  }

  .nexo-final-action-card__title {
    margin-bottom: 22px;
    font-size: 28px;
  }

  .nexo-final-action-card__title br {
    display: none;
  }

  .nexo-final-action-card__text {
    max-width: none;
    margin-bottom: 26px;
    font-size: 13px;
  }

  .nexo-final-action-section__related {
    max-width: 100%;
    margin-top: 48px;
  }

  .nexo-final-action-section__related-title {
    font-size: 18px;
  }

  .nexo-final-action-section__related-buttons {
    flex-direction: column;
    gap: 14px;
  }

  .nexo-final-action-section__related-buttons .nexo-cta-button-wrap,
  .nexo-final-action-section__related-buttons .nexo-cta-button {
    width: 100%;
  }

  .nexo-final-action-section__related-buttons .nexo-cta-button,
  .nexo-final-action-section__related-buttons
    .nexo-final-action-button:first-child {
    min-width: 0;
  }

  .nexo-final-action-button--arrow::after {
    font-size: 28px;
  }
}

/* ==========================================================================
   Home hardcoded: card final único centralizado
   ========================================================================== */

body.home #pg-64-10 .nexo-final-action-section__cards {
  display: grid !important;
  grid-template-columns: minmax(0, 440px) !important;
  justify-content: center !important;
  max-width: 100% !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

body.home #pg-64-10 .nexo-final-action-card {
  width: 100% !important;
  max-width: 440px !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

body.home #pg-64-10 .nexo-final-action-section__related {
  margin-top: 64px;
  text-align: center;
}

body.home #pg-64-10 .nexo-final-action-section__related-buttons {
  justify-content: center !important;
}
