/* =========================================================
   FS ORÇAMENTOS - index.css
   Estilos específicos da página inicial
   ========================================================= */

:root {
  --fs-marrom: #3e2723;
  --fs-marrom-2: #2c1b17;
  --fs-creme: #f4ece1;
  --fs-creme-2: #fffaf0;
  --fs-amarelo: #ffc400;
  --fs-verde: #25d366;
  --fs-borda: #e0d6c8;
  --fs-texto: #3e2723;
  --fs-texto-suave: #6d5b52;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: linear-gradient(180deg, #fff4cf 0%, #ffffff 100%);
  color: var(--fs-texto);
  overflow-x: hidden;
  font-family: Arial, Helvetica, sans-serif;
}

body #btn-flutuante-gerador-global { display: none !important; }

#splash-screen {
  position: fixed;
  inset: 0;
  background: #2c1b17;
  color: #fffaf0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30000;
  transition: opacity .35s ease, visibility .35s ease;
}

#splash-screen.hide-splash {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-content { text-align: center; padding: 20px; }

.splash-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 24px;
  font-weight: 900;
}

.fs-box {
  background: var(--fs-amarelo);
  color: var(--fs-marrom);
  border-radius: 12px;
  padding: 8px 11px;
  display: inline-block;
}

.fs-text { color: #fffaf0; }

.loader-bar {
  width: 220px;
  height: 6px;
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
  overflow: hidden;
  margin: 0 auto 12px;
  position: relative;
}

.loader-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 45%;
  background: var(--fs-amarelo);
  border-radius: 999px;
  animation: carregarBarra 1s ease-in-out infinite alternate;
}

@keyframes carregarBarra {
  from { transform: translateX(-20%); }
  to { transform: translateX(160%); }
}

.home-publica {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 14px 52px;
  box-sizing: border-box;
}

.home-visao-plano { display: none; }
.home-visao-plano.ativo { display: block; }

.home-plano-hero,
.home-story-section,
.home-basico-dashboard,
.teste-premium-inline-card {
  background: linear-gradient(135deg, #ffffff 0%, #fffaf0 100%);
  border-radius: 28px;
  border-top: 7px solid var(--fs-amarelo);
  padding: 34px 24px;
  box-shadow: 0 16px 40px rgba(62,39,35,.14);
  color: var(--fs-marrom);
  margin: 0 auto 24px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.home-plano-hero::after,
.home-story-section::after,
.home-basico-dashboard::after {
  content: '';
  position: absolute;
  width: 240px;
  height: 240px;
  right: -105px;
  top: -105px;
  background: rgba(255,196,0,.18);
  border-radius: 999px;
  pointer-events: none;
}

.home-plano-hero > *,
.home-story-section > *,
.home-basico-dashboard > * { position: relative; z-index: 1; }

.home-plano-tag,
.home-section-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--fs-marrom);
  color: var(--fs-amarelo) !important;
  border: 1px solid var(--fs-amarelo);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.home-plano-hero h1,
.home-story-section h2,
.home-basico-dashboard h1,
.home-basico-dashboard h2 {
  margin: 0 0 12px;
  color: var(--fs-marrom) !important;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.1;
  font-weight: 950;
}

.home-plano-hero p,
.home-story-section p,
.home-basico-dashboard p {
  max-width: 850px;
  margin: 0;
  color: var(--fs-texto-suave) !important;
  font-size: clamp(16px, 3.4vw, 20px);
  line-height: 1.5;
  font-weight: 750;
}

.home-plano-acoes,
.home-basico-acoes {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-home-grande,
.btn-home-medio,
.btn-home-atalho,
.btn-home-planos-forte,
.btn-home-planos-secundario,
.btn-teste-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  border: 2px solid var(--fs-amarelo);
}

.btn-home-grande,
.btn-home-medio,
.btn-home-planos-forte {
  background: var(--fs-marrom) !important;
  color: var(--fs-amarelo) !important;
}

.btn-home-atalho,
.btn-home-planos-secundario {
  background: #ffffff !important;
  color: var(--fs-marrom) !important;
  border-color: #d8c9b8 !important;
}

.index-aviso-login {
  display: none;
  max-width: 820px;
  margin: 18px auto 0;
  background: #fff3cd;
  color: #5d4037;
  border-left: 6px solid #ffc400;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.bloco-anuncio.fs-adsense-zone {
  display: none;
  max-width: 970px;
  min-height: 110px;
  margin: 22px auto;
  padding: 14px;
  background: #fffaf0;
  border: 1px dashed rgba(62,39,35,.28);
  border-radius: 14px;
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
}

.bloco-anuncio.fs-adsense-zone .adsense-label {
  display: block;
  margin-bottom: 8px;
  color: #8d6e63;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.home-passos-grid,
.home-basico-metricas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.home-passo-card,
.home-basico-card {
  background: #ffffff;
  color: var(--fs-marrom);
  border-radius: 20px;
  padding: 18px;
  border: 1px solid #e8dccb;
  border-left: 7px solid var(--fs-amarelo);
  box-shadow: 0 10px 26px rgba(62,39,35,.11);
  min-width: 0;
}

.home-passo-card strong,
.home-basico-card strong {
  display: block;
  color: var(--fs-marrom) !important;
  font-size: 24px;
  font-weight: 950;
  margin-bottom: 7px;
}

.home-passo-card h3,
.home-basico-card span {
  display: block;
  color: var(--fs-marrom) !important;
  margin: 0 0 6px;
  font-weight: 950;
  line-height: 1.2;
}

.home-passo-card p,
.home-basico-card small {
  color: var(--fs-texto-suave) !important;
  font-weight: 750;
  line-height: 1.45;
  margin: 0;
}

.teste-premium-inline-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  background: linear-gradient(135deg, var(--fs-marrom), var(--fs-marrom-2));
  border: 2px solid rgba(255,196,0,.55);
  color: #fffaf0;
}

.teste-premium-inline-card h3 {
  color: var(--fs-amarelo) !important;
  margin: 0 0 8px;
  font-size: 24px;
}

.teste-premium-inline-card p,
.teste-premium-inline-card small {
  color: #fffaf0 !important;
  opacity: .96;
  font-weight: 750;
  line-height: 1.45;
}

.btn-teste-premium {
  background: var(--fs-amarelo) !important;
  color: var(--fs-marrom) !important;
  border-color: #fffaf0 !important;
  min-width: 220px;
}

.modal-login-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(44,27,23,.72);
  align-items: center;
  justify-content: center;
  padding: 18px;
  box-sizing: border-box;
}

.modal-login-overlay.ativo,
.modal-login-overlay.active { display: flex; }

.modal-login-box {
  width: min(460px, 100%);
  background: #fffaf0;
  border-radius: 22px;
  padding: 18px;
  border-top: 7px solid var(--fs-amarelo);
  box-shadow: 0 20px 60px rgba(0,0,0,.32);
  position: relative;
}

.btn-fechar-login {
  position: absolute;
  right: 12px;
  top: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: var(--fs-marrom);
  color: var(--fs-amarelo);
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
}

.auth-logo-box { text-align: center; padding: 10px 8px 14px; color: var(--fs-marrom); }
.auth-logo-text { display: inline-flex; align-items: center; gap: 7px; font-size: 22px; font-weight: 950; }
.auth-logo-text strong { background: var(--fs-amarelo); color: var(--fs-marrom); border-radius: 10px; padding: 6px 9px; }
.auth-logo-box p { margin: 8px 0 0; color: var(--fs-texto-suave); font-weight: 750; }

.auth-area-index { display: block; }

.auth-container-index {
  padding: 22px;
  border: 1px solid #e0d6c8;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

.auth-container-index .auth-titulo-index {
  margin-top: 0;
  text-align: center;
  color: var(--fs-marrom);
}

.auth-campo-index {
  margin-bottom: 15px;
}

.auth-campo-index.oculto {
  display: none;
}

.auth-campo-index label {
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
  color: var(--fs-marrom);
}

.auth-campo-index input {
  width: 100%;
  padding: 9px;
  box-sizing: border-box;
  border: 1px solid #cccccc;
  border-radius: 6px;
}

.auth-campo-confirmar-index {
  margin-bottom: 20px;
}

.btn-principal-index {
  width: 100%;
  padding: 12px;
  background-color: var(--fs-marrom);
  color: var(--fs-amarelo);
  border: 2px solid var(--fs-amarelo);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 950;
  font-size: 16px;
}

.auth-alternar-index {
  text-align: center;
  margin-top: 15px;
}

.auth-alternar-index a {
  font-size: 13px;
  color: var(--fs-marrom);
  text-decoration: none;
  font-weight: 850;
}

footer.fs-footer-index {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px 12px !important;
  text-align: center !important;
  padding: 28px 14px !important;
  background: var(--fs-marrom) !important;
  color: #fffaf0 !important;
  font-weight: 850 !important;
  opacity: 1 !important;
}

footer.fs-footer-index span,
footer.fs-footer-index .footer-separador {
  color: #fffaf0 !important;
  opacity: 1 !important;
}

footer.fs-footer-index a {
  color: var(--fs-amarelo) !important;
  text-decoration: none !important;
  font-weight: 950 !important;
  opacity: 1 !important;
}

footer.fs-footer-index a:hover { text-decoration: underline !important; }

body:not(.gerando-pdf) #box-teste-premium-index.teste-premium-inline-card,
body:not(.gerando-pdf) .teste-premium-inline-card.teste-premium-topo {
  background: linear-gradient(135deg, #3e2723, #2c1b17) !important;
  color: #fffaf0 !important;
  border: 2px solid #ffc400 !important;
  border-top: 7px solid #ffc400 !important;
}

body:not(.gerando-pdf) #box-teste-premium-index h1,
body:not(.gerando-pdf) #box-teste-premium-index h2,
body:not(.gerando-pdf) #box-teste-premium-index h3,
body:not(.gerando-pdf) #box-teste-premium-index strong,
body:not(.gerando-pdf) .teste-premium-inline-card.teste-premium-topo h1,
body:not(.gerando-pdf) .teste-premium-inline-card.teste-premium-topo h2,
body:not(.gerando-pdf) .teste-premium-inline-card.teste-premium-topo h3,
body:not(.gerando-pdf) .teste-premium-inline-card.teste-premium-topo strong {
  color: #ffc400 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

body:not(.gerando-pdf) #box-teste-premium-index p,
body:not(.gerando-pdf) #box-teste-premium-index small,
body:not(.gerando-pdf) #box-teste-premium-index span,
body:not(.gerando-pdf) .teste-premium-inline-card.teste-premium-topo p,
body:not(.gerando-pdf) .teste-premium-inline-card.teste-premium-topo small,
body:not(.gerando-pdf) .teste-premium-inline-card.teste-premium-topo span {
  color: #fffaf0 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

body:not(.gerando-pdf) #box-teste-premium-index #texto-status-teste-premium,
body:not(.gerando-pdf) .teste-premium-inline-card.teste-premium-topo small {
  color: #ffe58a !important;
  opacity: 1 !important;
}

body:not(.gerando-pdf) #box-teste-premium-index .btn-teste-premium,
body:not(.gerando-pdf) .teste-premium-inline-card.teste-premium-topo .btn-teste-premium {
  background: #ffc400 !important;
  color: #3e2723 !important;
  border: 2px solid #fffaf0 !important;
  opacity: 1 !important;
}

@media (max-width: 760px) {
  .home-publica { padding: 18px 10px 44px; }
  .home-plano-hero,
  .home-story-section,
  .home-basico-dashboard,
  .teste-premium-inline-card { border-radius: 22px; padding: 26px 18px; }
  .home-passos-grid,
  .home-basico-metricas { grid-template-columns: 1fr; }
  .home-plano-acoes,
  .home-basico-acoes { display: grid; }
  .btn-home-grande,
  .btn-home-medio,
  .btn-home-atalho,
  .btn-home-planos-forte,
  .btn-home-planos-secundario { width: 100%; }
  .teste-premium-inline-card { grid-template-columns: 1fr; text-align: center; }
  .btn-teste-premium { width: 100%; }
  footer.fs-footer-index { padding: 24px 12px !important; font-size: 14px !important; }
}
