/* ========================================
   TEMA STANLEY - Cores e Estilos
   ======================================== */

/* Cores principais Stanley */
:root {
  --stanley-yellow: #fcd305;
  --stanley-yellow-bg: #fbd505;
  --stanley-yellow-strong: #fbd400;
  --stanley-yellow-modal: #ffd420;
  --stanley-black: #000000;
  --stanley-ink: #231f20;
  --stanley-dark-gray: #222222;
  --stanley-light-gray: #d9d9d9;
  --stanley-white: #ffffff;
  --stanley-container-internas: #020202;
  --stanley-indigo: #174A6F;
}

/* Header Stanley */
.bg-stanley-header {
  background-color: var(--stanley-black);
}

/* Amarelo Stanley */
.bg-yellow-stanley {
  background-color: var(--stanley-yellow);
}

/* Background sections */
.bg-stanley-section {
  background-color: var(--stanley-yellow);
}

/* Footer Stanley */
.bg-stanley-footer {
    background: var(--stanley-dark-gray);
}

/* Textos */
.text-yellow-stanley {
  color: var(--stanley-yellow);
}

.text-stanley-black {
  color: var(--stanley-black);
}

.text-stanley-white {
  color: var(--stanley-white);
}

.text-faq-resposta,
.text-faq-resposta .MsoNormal,
.text-faq-resposta .MsoNormal * {
  color: var(--stanley-indigo) !important;
  font-weight: 600 !important;
}

/* Botões Stanley */
.btn-stanley-primary {
  background-color: var(--stanley-black);
  color: var(--stanley-yellow);
  border: none;
  font-weight: 800;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border-radius: 50px;
  padding: 15px 40px;
  font-size: 1.2rem;
}

.btn-stanley-primary:hover {
  background-color: var(--stanley-yellow);
  color: var(--stanley-black);
}

/* Cí­rculos dos í­cones "Como Participar" */
.stanley-icon-circle {
  width: 166px;
  height: 166px;
  border-radius: 50%;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Separadores */
.stanley-separator {
  width: 196px;
  height: 4.5px;
  background-color: #000;
  margin: 4rem auto 0;
  position: absolute;
  bottom: 0;
  left: 3.5rem;
}

/* Header menu items */
.navbar-stanley .nav-link {
  color: var(--stanley-white);
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.navbar-stanley .navbar-nav > li > a:not(.bg-yellow-stanley) {
  border-bottom: 3px solid transparent;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
}

/* Hover top-level: mesmo padrão pill do Regulamentos */
.navbar-stanley .navbar-nav > li > a:not(.bg-yellow-stanley):hover {
  background: var(--stanley-yellow) !important;
  color: var(--stanley-black) !important;
  padding: 0.5rem 2rem 0.4rem;
  border-radius: 100rem;
}

/* Active: linha amarela inferior, texto branco (como na referência) */
.navbar-stanley .navbar-nav > li.active > a:not(.bg-yellow-stanley) {
  border-bottom-color: var(--stanley-yellow) !important;
  color: var(--stanley-white) !important;
  background: transparent !important;
}

.navbar-stanley .navbar-nav > li.active > a:not(.bg-yellow-stanley):hover {
  background: var(--stanley-yellow) !important;
  color: var(--stanley-black) !important;
  padding: 0.5rem 2rem 0.4rem;
  border-radius: 100rem;
}

a.hover:hover,
.menu-item.active {
  border-color: var(--stanley-yellow) !important;
  color: var(--stanley-yellow) !important;
}

.regulamentos:hover > a {
  background: var(--stanley-yellow) !important;
  color: var(--stanley-black) !important;
  padding: 0.5rem 2rem 0.4rem;
  border-radius: 100rem;
}

.navbar-nav .perfil-usuario ul li a,
.navbar-nav .regulamentos ul li a,
.navbar-nav .perfil-usuario ul li button {
  background: var(--stanley-dark-gray) !important;
  color: var(--stanley-white) !important;
}

.navbar-nav .perfil-usuario ul li a:hover,
.navbar-nav .regulamentos ul li a:hover,
.navbar-nav .perfil-usuario ul li button:hover {
  background: var(--stanley-yellow) !important;
  color: var(--stanley-black) !important;
}

.bg-690606 {
  background-color: var(--stanley-dark-gray) !important;
  color: var(--stanley-white) !important;
}

/* FAQ Stanley style */
.faq-stanley {
  background-color: var(--stanley-white);
}

/* Botões das perguntas (accordion) */
.faq-stanley .accordion-header button {
  background-color: var(--stanley-white) !important;
  color: var(--stanley-black) !important;
  border: 1px solid var(--stanley-light-gray) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.faq-stanley .accordion-header button:not(.collapsed) {
  background-color: var(--stanley-yellow) !important;
  color: var(--stanley-black) !important;
}

/* Seta gira quando aberto */
.faq-stanley .accordion-header button:not(.collapsed) svg {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

.faq-stanley .accordion-header button svg {
  transition: transform 0.3s ease;
}

/* Respostas */
.faq-stanley .accordion-collapse {
  border: none;
  color: var(--stanley-black);
}

/* Footer links */
.footer-stanley a {
  color: var(--stanley-white);
  text-decoration: none;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.footer-stanley a:hover {
  color: var(--stanley-yellow);
}

.footer-stanley .footer-social a {
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1.15rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--stanley-white);
  color: var(--stanley-dark-gray);
  border-radius: 50%;
}

.footer-stanley .footer-social a:hover {
  background-color: var(--stanley-yellow);
  color: var(--stanley-dark-gray);
}

.footer-nucleo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-nucleo__logo-link {
  display: inline-flex;
  align-items: center;
  opacity: 0.9;
  transition: opacity 0.15s ease;
}

.footer-nucleo__logo-link:hover {
  opacity: 1;
}

.footer-nucleo__logo {
  display: block;
  width: auto;
  height: 28px;
  max-width: 140px;
  object-fit: contain;
}

.footer-nucleo__copyright {
  margin: 0;
  color: var(--stanley-light-gray);
  font-size: 0.75rem;
  font-weight: 400;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-nucleo {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Banner hero Stanley */
.hero-stanley {
  background: var(--stanley-black);
  position: relative;
  width: 100%;
  aspect-ratio: 2000 / 607;
  overflow: hidden;
}

.hero-stanley-stage {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  aspect-ratio: 2000 / 607;
  transform: translateX(-50%);
}

.hero-stanley-stage > picture {
  display: contents;
}

.hero-stanley-layer {
  position: absolute;
  display: block;
  max-width: none;
  pointer-events: none;
  user-select: none;
}

.hero-stanley-background {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-stanley-hand {
  top: 6.59%;
  left: 22.75%;
  width: 26.7%;
  height: 93.41%;
}

.hero-stanley-box {
  top: -0.16%;
  left: 47%;
  width: 24.75%;
  height: 100.66%;
}

.hero-stanley-seal {
  top: 4.94%;
  left: 50.45%;
  width: 17.6%;
  height: 45.14%;
}

.hero-stanley-mechanics {
  top: 56.18%;
  left: 46.8%;
  width: 24.75%;
  height: 29.49%;
}

.hero-stanley-signature {
  top: 87.15%;
  left: 49.25%;
  width: 19.6%;
  height: 10.71%;
}

@media (max-width: 767.98px) {
  .hero-stanley {
    aspect-ratio: 393 / 224;
  }
}

/* Cards "Como Participar" */
.card-como-participar-stanley {
  background-color: transparent;
  text-align: center;
  padding: 2rem 1rem;
  position: relative;
  min-height: 29rem;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
}

.card-como-participar-stanley .title {
  color: #000000;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.card-como-participar-stanley .description {
  color: #000000;
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* Botí£o "PARTICIPE Jí" (preto com texto amarelo) */
.btn-participe-stanley {
  display: inline-block;
  background-color: #090909;
  color: var(--stanley-yellow);
  border: none;
  border-radius: 10px;
  padding: 0.6rem 3rem;
  font-size: 2rem;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-participe-stanley:hover {
  background-color: var(--stanley-yellow);
  color: #090909;
}

/* Botí£o "VER PRODUTOS PARTICIPANTES" (contorno preto) */
.btn-ver-produtos-stanley {
  display: inline-block;
  background-color: transparent;
  color: var(--stanley-black);
  border: 2px solid var(--stanley-ink);
  border-radius: 11px;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-ver-produtos-stanley:hover {
  background-color: var(--stanley-ink);
  color: var(--stanley-yellow);
}

/* Botí£o flutuante "PARTICIPE Jí" (branco) sobre o footer */
.btn-participe-float-stanley {
  display: inline-block;
  background-color: var(--stanley-white);
  color: var(--stanley-ink);
  border: none;
  border-radius: 11px;
  padding: 0.9rem 2rem;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-participe-float-stanley:hover {
  background-color: var(--stanley-yellow);
  color: var(--stanley-ink);
}

.footer-participe-float {
  position: absolute;
  right: 5%;
  top: -30px;
  z-index: 3;
}

@media (max-width: 767.98px) {
  .footer-participe-float {
    position: static;
    display: block;
    text-align: center;
    margin: 0 auto 1.5rem;
    width: fit-content;
  }
}

/* Botí£o "MAIS PERGUNTAS" (contorno amarelo) */
.btn-mais-perguntas-stanley {
  display: inline-block;
  background-color: transparent;
  color: var(--stanley-yellow);
  border: 2px solid var(--stanley-yellow);
  border-radius: 11px;
  padding: 0.7rem 1.75rem;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-mais-perguntas-stanley:hover {
  background-color: var(--stanley-yellow);
  color: var(--stanley-black);
}

/* Seí§í£o "Como Participar" */
.section-como-participar-stanley {
  background-color: var(--stanley-yellow);
  padding: 4rem 0 6rem;
  position: relative;
}

.section-como-participar-stanley h2 {
  color: var(--stanley-black);
  text-transform: uppercase;
}

/* Responsividade */
@media (max-width: 768px) {
  .stanley-icon-circle {
    width: 132px;
    height: 132px;
  }

  .card-como-participar-stanley .title {
    font-size: 1.2rem;
  }
}

/* ==========================================================================
     OVERRIDE GLOBAL Ã¢â‚¬â€ Brejeiro -> Stanley (amarelo + preto / bg preto)
     Sobrescreve as cores antigas do general.css em todo o site.
     ========================================================================== */

/* Base: fundo preto padrao */
body {
  background-color: var(--stanley-black);
  color: var(--stanley-white);
}

/* --- Amarelos Brejeiro -> Amarelo Stanley --- */
.bg-primary_bs,
.bg-yellow,
.bg-internas_bs,
.page-template {
  background-color: var(--stanley-yellow) !important;
}

.bg-internas_color {
  background-color: var(--stanley-container-internas) !important;
}

.text-primary_bs,
.text-yellow {
  color: var(--stanley-yellow) !important;
}

.border-terciary_bs,
.border-primary_bs {
  border-color: var(--stanley-yellow) !important;
}

/* --- Vermelhos / Azuis Brejeiro -> Preto (bg preto) --- */
.bg-terciary_bs,
.bg-secundary,
.bg-menu_header,
.bg-red,
.bg-red-vignette,
.bg-internas {
  background: var(--stanley-yellow) !important;
}

/* Navbar / header antigo */
header .navbar.bg-terciary_bs,
.navbar.bg-terciary_bs {
  background: var(--stanley-black) !important;
}

/* --- Textos de destaque --- */
/* Azul (usado em botoes/inputs sobre fundo branco) -> preto para legibilidade */
.text-secundary,
.text-internas {
  color: var(--stanley-black) !important;
}

.text-stanley-indigo {
  color: var(--stanley-indigo) !important;
}

/* Vermelho (acentos, geralmente sobre fundo escuro) -> amarelo Stanley */
.text-terciary,
.text-ranger {
  color: var(--stanley-yellow) !important;
}

/* Botao "Entrar" e afins que usavam vermelho */
.bg-menu_header {
  color: var(--stanley-black) !important;
}

/* Menu ativo da area logada: azul legado (#023f80) -> preto Stanley */
#page-cadastro-cupom .menu-active li:first-child a,
#page-update .menu-active li:last-child a,
#page-numeros-sorte .menu-active li:nth-child(2) a {
  background: var(--stanley-black) !important;
  color: var(--stanley-yellow) !important;
  border-color: var(--stanley-black) !important;
}

/* --- Paginas internas (login, senha, etc.) --- */
/* Layout em container: bloco promocional (lockup COMPRE GANHE) de um lado e
   formulario do outro. A mao vem do background (.bg-internas_img). */
.section-internas-stanley {
  display: flex;
  align-items: center;
}

@media (min-width: 992px) {
  .section-internas-stanley {
    min-height: 40rem;
  }
}

/* Lockup COMPRE GANHE (logo / potencia / compre ganhe / selo) */
.promo-internas__stack {
  width: 100%;
  max-width: 37rem;
  /* margin-inline: auto; */
  gap: 0.25rem;
  float: right;
  display: flex;
  align-items: flex-end;
  padding-right: 3rem;
}

.promo-internas__stack figure {
  margin: 0;
  width: 100%;
}

.promo-internas__stack figure img {
  height: auto;
  max-width: 100%;
}

/* Proporcoes do lockup (relativas a largura do bloco) */
.promo-internas__stack figure:nth-of-type(1) img { width: 70%; }  /* logo */
.promo-internas__stack figure:nth-of-type(2) img { width: 97%; }  /* potencia */
.promo-internas__stack figure:nth-of-type(3) img { width: 100%; } /* compre ganhe */
.promo-internas__stack figure:nth-of-type(4) img { width: 46%; }  /* selo */

/* Fora do desktop o bloco encolhe para nao dominar a tela */
@media (max-width: 991.98px) {
  .promo-internas__stack {
    max-width: 380px;
  }
}

/* No mobile a mao (background) some para nao atrapalhar o formulario */
@media (max-width: 767.98px) {
  .section-internas-stanley.bg-internas_img {
    background-image: none !important;
  }

  .promo-internas__stack {
    max-width: 320px;
  }
}

/* --- Produtos participantes --- */
.pag-produtos-participantes {
  color: var(--stanley-black);
}

.pag-produtos-participantes .produtos-participantes-card {
  background: var(--stanley-white);
  color: var(--stanley-black);
  border-radius: 1rem;
  overflow: hidden;
}

.pag-produtos-participantes .produtos-participantes-card .card-header {
  background: var(--stanley-white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1rem 1.25rem;
}

.pag-produtos-participantes .produtos-participantes-table {
  color: var(--stanley-black);
  --bs-table-color: var(--stanley-black);
  --bs-table-bg: var(--stanley-white);
  --bs-table-striped-color: var(--stanley-black);
  --bs-table-striped-bg: rgba(0, 0, 0, 0.04);
  --bs-table-hover-color: var(--stanley-black);
  --bs-table-hover-bg: rgba(252, 211, 5, 0.25);
}

.pag-produtos-participantes .produtos-participantes-table thead th {
  background: var(--stanley-black);
  color: var(--stanley-yellow);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.85rem;
  white-space: nowrap;
  border: 0;
  padding: 0.85rem 1rem;
}

.pag-produtos-participantes .produtos-participantes-table td {
  vertical-align: middle;
  padding: 0.75rem 1rem;
}

.pag-produtos-participantes .produtos-participantes-pager .page-link {
  color: var(--stanley-black);
  border-color: rgba(0, 0, 0, 0.2);
}

.pag-produtos-participantes .produtos-participantes-pager .page-item.active .page-link {
  background-color: var(--stanley-black);
  border-color: var(--stanley-black);
  color: var(--stanley-yellow);
}

.pag-produtos-participantes .btn-stanley-primary {
  padding: 0.55rem 1.5rem;
  font-size: 1rem;
  border-radius: 0.5rem;
}

/* --- Modais Stanley (Figma 56629:110) --- */
.modal-stanley .modal-dialog {
  width: min(100%, 416px);
  max-width: 416px;
}

.modal-stanley .modal-dialog.modal-lg,
.modal-stanley.modal-stanley-wide .modal-dialog {
  width: min(100%, 800px);
  max-width: 800px;
}

.modal-stanley .modal-content {
  position: relative;
  overflow: visible;
  color: #030303;
  background-color: var(--stanley-white);
  border: 0;
  border-radius: 26px;
  padding: 2rem 1.75rem 1.75rem;
}

.modal-stanley .modal-header,
.modal-stanley .modal-body,
.modal-stanley .modal-footer {
  width: 100%;
  border: 0;
}

.modal-stanley .modal-header {
  display: block;
  padding: 0;
}

.modal-stanley .modal-title {
  width: 100%;
  margin: 0;
  color: var(--stanley-yellow-strong);
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.modal-stanley .modal-body {
  padding: 1.25rem 0 1.5rem;
  font-family: "Montserrat", sans-serif;
  font-size: 0.9375rem;
  line-height: 1.35;
  text-align: center;
}

.modal-stanley .modal-body p {
  margin-bottom: 0.75rem;
  color: #030303;
}

.modal-stanley .modal-body > :last-child {
  margin-bottom: 0;
}

.modal-stanley .modal-footer {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  padding: 0;
}

.modal-stanley .bt-fechar {
  right: -1rem;
  top: -1rem;
  background: var(--stanley-yellow-modal);
}

.btn-modal-stanley {
  display: inline-flex;
  min-width: 210px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 10px 23px;
  color: #030303;
  background-color: var(--stanley-yellow-modal);
  border: 2px solid var(--stanley-yellow-modal);
  border-radius: 100rem;
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.btn-modal-stanley:hover,
.btn-modal-stanley:focus {
  color: var(--stanley-yellow-modal);
  background-color: #030303;
}

.btn-modal-stanley-secondary {
  color: #030303;
  background-color: transparent;
  border-color: #030303;
}

.btn-modal-stanley-secondary:hover,
.btn-modal-stanley-secondary:focus {
  color: var(--stanley-yellow-modal);
  background-color: #030303;
}

.modal-stanley-signup .modal-body .t-blue,
.modal-stanley-signup .modal-body h4 {
  display: none;
}

@media (max-width: 575.98px) {
  .modal-stanley .modal-dialog,
  .modal-stanley .modal-dialog.modal-lg,
  .modal-stanley.modal-stanley-wide .modal-dialog {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 1rem;
  }

  .modal-stanley .modal-content {
    padding: 1.75rem 1.25rem;
  }

  .modal-stanley .modal-title {
    font-size: 2rem;
  }

  .modal-stanley .modal-footer {
    flex-direction: column;
  }

  .btn-modal-stanley {
    width: 100%;
  }
}
