:root {
  --primary-blue: #09203F;
  --secondary-blue: #537895;
  --primary-red: #D32F2F; /* Cor vermelha oficial Seld */
  --primary-green: #28a745; /* CTA Green */
  --hover-green: #218838;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #111111;
  --font-main: 'Montserrat', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-main);
}

html, body {
  background-color: var(--text-light);
  color: var(--text-dark);
  overflow-x: hidden;
  max-width: 100vw;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center { text-align: center; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 50px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 50px; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 8px; /* Mais moderno que arredondado demais */
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
}

.btn-primary {
  background-color: var(--primary-red);
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}

.btn-primary:hover {
  background-color: #b71c1c;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(211, 47, 47, 0.6);
}

.btn-red {
  background-color: var(--primary-red);
  color: var(--text-light);
}

.btn-red:hover {
  background-color: #b71c1c;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(211, 47, 47, 0.4);
}

.btn-white {
  background-color: var(--text-light);
  color: var(--primary-red);
}

.btn-white:hover {
  background-color: #f1f1f1;
  transform: translateY(-2px);
}

/* --- MAPA ANIMADO BRASIL --- */
#brazil-map-svg path {
  fill: #233a54 !important;
  stroke: #ffffff !important;
  stroke-width: 1px !important;
  stroke-dasharray: 4 4 !important;
  transition: fill 0.3s ease;
}

.map-pin {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: #c42b21;
  border: 2px solid #fff;
  border-radius: 50% 50% 50% 0;
  box-shadow: -2px 2px 5px rgba(0,0,0,0.4);
  transform: translate(-50%, -100%) rotate(-45deg) scale(0);
  opacity: 0;
  transition: transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.8s ease;
  z-index: 10;
}
.map-pin::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 50px; height: 50px;
  background-color: transparent;
  border-radius: 50%;
  cursor: pointer;
}
.map-pin::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 6px; height: 6px;
  background-color: #fff;
  border-radius: 50%;
}
.map-pin.pop-in {
  opacity: 1;
  transform: translate(-50%, -100%) rotate(-45deg) scale(1);
}

/* ==========================================================================
   FLOATING WHATSAPP
   ========================================================================== */
.floating-wpp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 35px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: all 0.3s ease;
  text-decoration: none;
}

.floating-wpp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 14px rgba(0,0,0,0.4);
}

/* ==========================================================================
   HERO SECTION (Replica)
   ========================================================================== */
.hero {
  /* Fundo da imagem hero.webp com escurecimento de 60% para ver bem a loja, 
     e um pouco mais escuro na direita para o texto branco dar leitura */
  background: linear-gradient(to right, rgba(4, 15, 30, 0.4) 0%, rgba(4, 15, 30, 0.85) 100%), url('../images/hero.webp') center/cover no-repeat;
  color: #ffffff;
  padding: 30px 0 140px 0; /* Padding inferior aumentado para os cards sobreporem */
  position: relative;
  overflow: hidden; 
  display: flex;
  align-items: flex-start;
  min-height: auto;
}

.hero-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* --- Hero Top Bar --- */
.hero-top {
  display: flex;
  justify-content: center; /* Centraliza a barra do topo */
  align-items: center;
  margin-bottom: 120px; /* Aumentado em 3x (era 40px) */
  width: 100%;
}

.hero-logo img {
  max-width: 180px;
}

.hero-top-features {
  display: flex;
  justify-content: center;
  gap: 40px; /* Mais espaço entre os itens se tiver espaço */
}

.top-feature {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-feature i {
  font-size: 24px;
  color: rgba(255, 255, 255, 0.8);
}

.top-feature span {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.9);
}

/* --- Hero Split Layout --- */
.hero-content-split {
  display: flex;
  flex-direction: row-reverse; /* Inverte: Form na esquerda, Info na direita */
  justify-content: space-between;
  align-items: stretch;
  width: 100%;
  gap: 60px;
}

/* --- Left Side (Info Block now on Right) --- */
.hero-left-new {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centraliza verticalmente se o form for maior */
  align-items: center; /* Centraliza horizontalmente todo o texto */
  text-align: center;
  padding-left: 5%; /* Mais para a direita */
}

.hero-title-new {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 25px;
  letter-spacing: -1px;
}

.text-yellow {
  color: #facc15;
}

.hero-price-badge {
  background-color: #d32f2f;
  color: white;
  border-radius: 8px;
  padding: 12px 25px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 25px;
}

.badge-small {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.badge-value {
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.badge-value .big-number {
  font-size: 3.5rem;
  line-height: 1;
}

.badge-finance-info {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 5px;
  font-weight: 500;
  text-align: center;
}

.hero-desc-new {
  font-size: 1.15rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 40px;
}

.hero-floating-benefits {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  border-radius: 12px;
  padding: 15px 10px; /* Menos alto */
  display: flex;
  gap: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 30px; /* Afasta do texto descritivo */
  width: 105%; /* Mais largo */
}

.benefit-item {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.benefit-item i {
  font-size: 26px; /* Ícones um pouquinho menores */
  color: white;
}

.benefit-item p {
  font-size: 0.8rem; /* Texto um pouquinho menor para caber melhor */
  line-height: 1.3;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* --- Right Side (Form) --- */
.hero-right-new {
  flex: 0 0 460px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lead-form-dark {
  background: #06111f;
  border: 2px solid #d32f2f;
  border-radius: 12px;
  padding: 35px 30px;
}

.form-header-dark {
  margin-bottom: 25px;
}

.title-white {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  color: white;
  letter-spacing: 1px;
}

.title-red {
  font-size: 2.2rem;
  font-weight: 800;
  color: #d32f2f;
  margin: 0 0 15px 0;
  line-height: 1;
}

.form-divider {
  border-color: rgba(255,255,255,0.1);
  margin: 15px auto;
  width: 40px;
  border-width: 2px;
}

.form-subtitle {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.4;
  margin-bottom: 0;
}

.form-group-simple {
  margin-bottom: 15px;
}

.form-control-simple {
  width: 100%;
  height: 52px;
  background: #f8fafc;
  border: none;
  border-radius: 8px;
  padding: 0 15px;
  font-size: 1rem;
  color: #333;
}

.form-control-simple:focus {
  outline: none;
  box-shadow: 0 0 0 2px #d32f2f;
}

.btn-red-submit {
  width: 100%;
  background: #d32f2f;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 18px 20px;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 5px;
}

.btn-red-submit:hover {
  background: #b71c1c;
}

.submit-icon {
  font-size: 1.4rem;
}

.form-security-footer {
  margin-top: 15px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hero-trust-badges {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-text {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.3;
}

/* ==========================================================================
   FINANCEIRO SECTION
   ========================================================================== */
.finance-section {
  padding: 40px 0 60px 0;
  background-color: #ffffff;
  text-align: center;
}

.finance-cards-container {
  width: 100%;
  max-width: 900px;
  margin: -110px auto 0 auto;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 10;
}

.finance-card {
  flex: 1;
  min-width: 250px;
  background: white;
  padding: 30px 15px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  text-align: center;
}

/* ==========================================================================
   MAPA SECTION
   ========================================================================== */
.map-section {
  padding: 80px 0;
  background-color: #ffffff;
}
.map-container-inner {
  display: flex;
  align-items: center;
  gap: 40px;
}
.map-text {
  flex: 1;
}
.map-visual {
  flex: 1;
}

/* ==========================================================================
   ESTRUTURA FORTE / MARCAS
   ========================================================================== */
.estrutura-section {
  padding: 60px 0; /* Reduzido de 100px para tirar altura desnecessária */
  background-color: #0b1521;
  color: #fff;
}
.estrutura-section h2 {
  font-size: 3.5rem;
  margin-bottom: 5px;
  line-height: 1.1;
  color: #ffffff;
}
.estrutura-subtitle {
  font-size: 1.3rem;
  color: #ccc;
  margin-bottom: 50px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px; /* Reduzido de 20px */
  max-width: 800px;
  margin: 0 auto 30px; /* Reduzido de 50px */
}

.partner-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 10px 20px; /* Reduzido de 15px 30px para achatar os cards */
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
  cursor: pointer;
}
.partner-card:hover {
  transform: scale(1.02);
}
.partner-text {
  font-size: 2.5rem;
  color: #0b1521;
  font-weight: 800;
  letter-spacing: -1px;
}

.tags-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.tag-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background-color: rgba(255,255,255,0.05);
  border: 1px solid rgba(224, 60, 49, 0.3);
  padding: 15px 30px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
}
.tag-item svg {
  width: 24px; height: 24px;
}

.estrutura-footer-text {
  font-size: 1.1rem;
  color: #ccc;
}

/* Machine Hover Displays */
.machine-display {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 350px;
  height: 500px;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.machine-left { left: 0; }
.machine-right { right: 0; }

.machine-img {
  position: absolute;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.8) translateY(30px);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.machine-img.active {
  opacity: 1;
  transform: scale(1) translateY(0);
}

@media (max-width: 1300px) {
  .machine-display {
    display: none;
  }
  .finance-card {
    width: 100%;
    max-width: 320px;
  }
  
  /* FOOTER NO MOBILE - CENTRALIZADO */
  .footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-list li {
    justify-content: center;
  }
  
  .footer-social-links {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .partners-grid {
    grid-template-columns: 1fr;
  }
  .tags-container {
    flex-direction: column;
    align-items: center;
  }
  /* MAPA INVERTIDO NO MOBILE (MAPA EM CIMA, TEXTO EMBAIXO) */
  .map-container-inner {
    flex-direction: column-reverse;
  }
  
  /* MARCAS PARCEIRAS NO MOBILE */
  .partners-grid {
    grid-template-columns: 1fr 1fr; /* 2 por linha */
    gap: 10px;
  }
  
  .partner-card {
    padding: 15px 10px; /* Reduz bastante o padding interno para caberem 2 por linha */
  }
  
  /* LOGOS BRADESCO NO MOBILE */
  .b-logo-seld { height: 90px !important; }
  .b-logo-hand { height: 40px !important; }
  .b-logo-brad { height: 100px !important; }
  .bradesco-logos { gap: 15px !important; }
}

/* ==========================================================================
   VÍDEO SECTION
   ========================================================================== */
.video-section {
  padding: 80px 0;
  background: linear-gradient(rgba(10, 37, 64, 0.95), rgba(10, 37, 64, 0.95)), url('../images/bglojafranquia.webp') center/cover fixed no-repeat;
  color: white;
  text-align: center;
}
.video-wrapper {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 991px) {
  .hero {
    padding: 20px 0 110px 0; /* Espaço inferior para o card sobrepor um pouco */
  }
  
  .hero-top {
    display: none !important; /* Esconde o header interno no mobile conforme solicitado */
  }
  
  .hero-content-split {
    flex-direction: column;
    gap: 30px;
  }
  
  .hero-left-new {
    align-items: center;
    text-align: center;
    padding-left: 0; /* Remove o recuo do desktop */
  }
  
  .hero-title-new {
    font-size: 2.1rem;
    margin-bottom: 20px;
  }

  .badge-value .big-number {
    font-size: 2.8rem; /* Ajuste suave do numero gigante */
  }

  .hero-desc-new {
    font-size: 1.05rem;
    margin-bottom: 25px;
    br { display: none; } /* Quebra natural no mobile */
  }
  
  /* GRID inteligente em vez de coluna gigante */
  .hero-floating-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 15px;
    margin-top: 15px;
    padding: 15px;
  }
  
  .hero-right-new {
    flex: 1;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .lead-form-dark {
    padding: 25px 20px; /* Maximiza o espaço para os inputs */
  }

  .title-red {
    font-size: 1.8rem;
  }
  
  .finance-cards-container {
    margin-top: -70px; /* Sobreposição otimizada para mobile */
    flex-direction: column;
    align-items: center;
  }

  .finance-card {
    width: 100%;
    max-width: 320px;
  }
}

/* ==========================================================================
   YOUTUBE IFRAME OVERRIDES (Requested by User)
   ========================================================================== */
.fullscreen-action-menu,
button-view-model.ytSpecButtonViewModelHost.watch-on-youtube-button {
    display: none !important;
}

/* ==========================================================================
   TOOLTIP DO MAPA
   ========================================================================== */
.map-tooltip {
  position: absolute;
  width: 220px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -120%) scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 100;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
}

.map-tooltip.active {
  opacity: 1;
  transform: translate(-50%, -100%) scale(1);
  pointer-events: auto;
}

.map-tooltip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.95);
  border-right: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.tooltip-img-wrapper {
  width: 100%;
  height: 100px;
  overflow: hidden;
}

#tooltip-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tooltip-info {
  padding: 12px;
  text-align: center;
}

#tooltip-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 5px;
  line-height: 1.2;
}

#tooltip-city {
  font-size: 0.75rem;
  color: #666;
  font-weight: 500;
  margin: 0;
}
#tooltip-city i {
  color: var(--primary-red);
  margin-right: 4px;
}
