/* Layout / typography / mobile header overrides */

/* ---- Content spacing (avoid stuck paragraphs) ---- */
.content-text h1 {
  margin: 0 0 1.25rem;
  line-height: 1.25;
}
.content-text h2,
.content-text h2.dropdown-title {
  margin: 2rem 0 0.85rem !important;
  line-height: 1.3;
  clear: both;
}
.content-text h3 {
  margin: 1.5rem 0 0.65rem !important;
  line-height: 1.35;
}
.content-text p,
.content-text > p {
  margin: 0 0 1rem !important;
  line-height: 1.7;
}
.content-text ul,
.content-text ol {
  margin: 0 0 1.15rem !important;
  padding-left: 1.35rem;
  line-height: 1.65;
}
.content-text li {
  margin-bottom: 0.45rem;
}
.content-text li p {
  margin: 0 0 0.35rem !important;
}
.content-text .button,
.content-text button.button {
  margin: 0.35rem 0.5rem 1rem 0;
  display: inline-flex;
  vertical-align: middle;
}
.content-text table {
  margin: 0.75rem 0 1.35rem;
}
.content-text .toc_container {
  margin: 0 0 1.5rem;
}
.accord-block {
  margin-bottom: 0.65rem;
}

/* ---- Cashback countdown HH:MM:SS ---- */
.cashback-timer {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  letter-spacing: 0.04em;
  font-weight: 700;
  white-space: nowrap;
}

/* ---- Promo CTA (Dinheiro grátis) — site style ---- */
/* Single full-width hero banner */
.static-slider.static-slider--single {
  display: block;
  width: 100%;
}
.static-slider.static-slider--single .static-slider__item {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0;
  aspect-ratio: 1024 / 380;
}
.static-slider.static-slider--single .static-slider__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.2s ease;
}
.static-slider.static-slider--single .static-slider__item {
  position: relative;
}
/* Same darken-on-hover as .slot-item cards */
.static-slider.static-slider--single .static-slider__item:hover img {
  filter: brightness(0.4);
}
.static-slider.static-slider--single .hero-banner-link {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.static-slider.static-slider--single .button__promo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  z-index: 2;
}

.static-slider .button__promo,
.button.button__promo {
  color: #fff !important;
  background: linear-gradient(180deg, #ff4a2b, #ff2400) !important;
  background-color: #ff2400 !important;
  border: 1px solid #ff2400 !important;
  box-shadow: 0 8px 28px rgba(255, 36, 0, 0.45) !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  min-width: 180px;
  padding: 12px 28px !important;
  text-transform: none;
  letter-spacing: 0.01em;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
}
.static-slider .button__promo:hover,
.button.button__promo:hover {
  background: linear-gradient(180deg, #ff6a4a, #e01f00) !important;
  background-color: #e01f00 !important;
  color: #fff !important;
  mix-blend-mode: normal !important;
}

/* Header auth buttons consistency */
.header .button__red,
.header .button__signin {
  min-width: 110px;
  height: 42px;
  border-radius: 8px;
  font-weight: 700;
  justify-content: center;
}
.header .button__signin {
  background: transparent;
  border: 1px solid #ff2400;
  color: #fff;
}
.header .button__signin:hover {
  background: #ff2400;
  color: #fff;
}

@media (max-width: 768px) {
  .for-desktop {
    display: none !important;
  }
}

/* Desktop: keep original flex header */
@media (min-width: 769px) {
  .header__wrapper {
    display: flex !important;
    grid-template-columns: none !important;
  }
  .header__menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
    width: auto !important;
    flex: 1 1 auto;
  }
  .header__menu .mobile-header-menu.for-desktop {
    display: flex !important;
    margin-right: 16px;
  }
}

/* ---- Mobile header: burger | brand | CTA ---- */
@media (max-width: 768px) {
  .header.sticky {
    height: auto !important;
    min-height: 64px;
    padding: 8px 0 !important;
  }

  .header__wrapper {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 48px 1fr auto !important;
    align-items: center !important;
    justify-content: stretch !important;
    height: auto !important;
    min-height: 56px !important;
    padding: 6px 8px !important;
    flex-wrap: nowrap !important;
    gap: 4px;
  }

  .header__wrapper .header-mobile-menu-btn {
    position: static !important;
    right: auto !important;
    top: auto !important;
    grid-column: 1;
    grid-row: 1;
    width: 44px;
    height: 44px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 2;
  }

  .header__logo.brand-text {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    text-align: center;
    font-size: 0.95rem !important;
    max-width: 100%;
    padding: 0.2rem 0.15rem;
    z-index: 1;
  }

  /* Hide promo chips under burger on mobile header row */
  .header__menu .mobile-header-menu {
    display: none !important;
  }

  .header__menu {
    grid-column: 3;
    grid-row: 1;
    width: auto !important;
    flex: 0 0 auto !important;
    height: auto !important;
    gap: 0 !important;
    justify-content: flex-end;
    z-index: 2;
  }

  .header__left {
    width: auto;
  }

  .header__left .header__buttons {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
  }

  .header__left .button__red,
  .header__left .button__signin {
    min-width: 0;
    width: auto;
    height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }

  /* Keep only Cadastro as primary CTA on narrow screens */
  .header__left .button__signin {
    display: none;
  }

  /* Bonus strip below hero — not in header */
  .for-mobile > .mobile-header-menu {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0 12px;
    flex-wrap: wrap;
  }

  .for-mobile .header__buttons {
    width: 100%;
    justify-content: center;
    margin: 20px 0 24px;
    gap: 10px;
  }

  .for-mobile .button__header {
    width: calc(50% - 8px);
    max-width: 175px;
  }

  .static-slider:not(.static-slider--single) {
    flex-direction: column;
    gap: 12px;
  }

  .static-slider:not(.static-slider--single) .static-slider__item,
  .static-slider:not(.static-slider--single) .static-slider__item--min {
    width: 100% !important;
    max-width: 100% !important;
    height: 200px !important;
  }

  .static-slider.static-slider--single .button__promo {
    bottom: 12px;
    padding: 10px 22px !important;
    font-size: 14px !important;
  }
}

@media (max-width: 380px) {
  .header__logo.brand-text {
    font-size: 0.85rem !important;
  }
  .header__left .button__red {
    padding: 0 10px;
    font-size: 12px;
  }
}
