/* ════════════════════════════════════════════════════════════
   IDENTIDADE VISUAL MARCOS PEREIRA INFORMA
   Inspirado no site time.marcospereira.com e tarcisiosp.com.br
   ════════════════════════════════════════════════════════════ */

:root {
  --azul-primario:   #0a4c75;
  --azul-escuro:     #073b5c;
  --azul-fundo:      #051829;
  --azul-card:       rgba(7, 30, 52, 0.88);
  --amarelo:         #f5c518;
  --amarelo-hover:   #ffd738;
  --verde-wa:        #25D366;
  --verde-wa-hover:  #1ea952;
  --branco:          #ffffff;
  --texto-suave:     rgba(255, 255, 255, 0.82);
  --borda-suave:     rgba(255, 255, 255, 0.12);
  --borda-glow:      rgba(245, 197, 24, 0.35);
  
  --font-title: 'Montserrat', sans-serif;
  --font-body:  'Inter', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
}

html, body {
  min-height: 100vh;
  font-family: var(--font-body);
  background-color: var(--azul-fundo);
  color: var(--branco);
  overflow-x: hidden !important;
  width: 100%;
  position: relative;
  line-height: 1.5;
}

img, svg, video {
  max-width: 100%;
  height: auto;
}

/* ── Botão CTA Exclusivo para Mobile ── */
.mobile-cta-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--amarelo) 0%, var(--amarelo-hover) 100%);
  color: var(--azul-fundo);
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.03em;
  padding: 12px 16px;
  border-radius: 100px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(245, 197, 24, 0.4);
  transition: all 0.25s ease;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 4px;
  margin-bottom: 8px;
  text-align: center;
  word-break: break-word;
}

.mobile-cta-btn:active, .mobile-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(245, 197, 24, 0.6);
}

.cta-arrow {
  width: 16px;
  height: 16px;
  animation: bounce 1.8s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ── Faixa de Topo com Gradiente ── */
.top-stripe {
  height: 5px;
  background: linear-gradient(90deg, #0a4c75 0%, #f5c518 50%, #25D366 100%);
  width: 100%;
}

/* ── Cabeçalho Institucional ── */
.site-header {
  background: linear-gradient(180deg, var(--azul-primario) 0%, var(--azul-escuro) 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  padding: 14px 24px;
  position: relative;
  z-index: 20;
  width: 100%;
  box-sizing: border-box;
}

.header-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.brand-logo {
  display: flex;
  align-items: center;
}

.header-logo-img {
  height: 48px;
  max-width: 220px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.header-logo-img:hover {
  transform: scale(1.03);
}

.header-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--borda-suave);
  padding: 6px 14px;
  border-radius: 100px;
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: var(--verde-wa);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--verde-wa);
  animation: pulse 1.6s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ── Container Principal com Imagem e Filtro ── */
.main-wrap {
  position: relative;
  min-height: calc(100vh - 75px);
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow-x: hidden !important;
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(10, 76, 117, 0.45) 0%, rgba(5, 24, 41, 0.95) 75%);
  z-index: 1;
}

.bg-pattern {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 80px,
    rgba(255, 255, 255, 0.015) 80px,
    rgba(255, 255, 255, 0.015) 160px
  );
}

.main-content {
  position: relative;
  z-index: 5;
  flex: 1;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 36px 32px 32px 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: 44px;
  align-items: stretch;
  box-sizing: border-box;
}

/* ── Coluna Esquerda: Hero & Banner ── */
.col-hero {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 197, 24, 0.12);
  border: 1px solid var(--borda-glow);
  padding: 6px 14px;
  border-radius: 100px;
  width: fit-content;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background-color: var(--amarelo);
  border-radius: 50%;
}

.badge-text {
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--amarelo);
}

.hero-title {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(24px, 3.2vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--branco);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  word-break: break-word;
  overflow-wrap: break-word;
  width: 100%;
}

.hero-title .yellow-highlight {
  color: var(--amarelo);
  display: inline-block;
}

.hero-description {
  font-size: 15px;
  color: var(--texto-suave);
  max-width: 520px;
  width: 100%;
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: break-word;
}

.hero-description strong {
  color: var(--amarelo);
}

/* Card de Destaque com o arquivo banner.jpeg */
.banner-card {
  margin-top: 4px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  background: #000;
  max-width: 520px;
  width: 100%;
  box-sizing: border-box;
}

.banner-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.banner-card:hover .banner-img {
  transform: scale(1.02);
}

.banner-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(5, 24, 41, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid var(--borda-suave);
  padding: 8px 16px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--branco);
  max-width: calc(100% - 32px);
}

.wa-icon {
  width: 18px;
  height: 18px;
  fill: var(--verde-wa);
  flex-shrink: 0;
}

/* ── Coluna Direita: Card de Grupos ── */
.col-card {
  position: sticky;
  top: 24px;
  width: 100%;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.groups-card {
  background: var(--azul-card);
  border: 1px solid var(--borda-suave);
  border-radius: 24px;
  padding: 24px 20px;
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  max-height: 730px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.card-header {
  text-align: center;
  width: 100%;
}

.card-title {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--amarelo);
  line-height: 1.2;
  word-break: break-word;
}

.card-subtitle {
  font-size: 13px;
  color: var(--texto-suave);
  margin-top: 4px;
}

/* Caixa de Pesquisa em Tempo Real */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.search-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
}

#search-input {
  width: 100%;
  padding: 12px 38px 12px 42px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: var(--branco);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

#search-input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--amarelo);
  box-shadow: 0 0 16px rgba(245, 197, 24, 0.2);
}

#search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.clear-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 20px;
  cursor: pointer;
  display: none;
}

.clear-btn:hover {
  color: var(--branco);
}

/* Counter bar */
.counter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  padding: 0 4px;
  font-weight: 600;
  width: 100%;
}

/* Lista Scrollável de Grupos */
.groups-list {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding-right: 4px;
  width: 100%;
  box-sizing: border-box;
}

/* Custom Scrollbar */
.groups-list::-webkit-scrollbar {
  width: 6px;
}
.groups-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
}
.groups-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}
.groups-list::-webkit-scrollbar-thumb:hover {
  background: var(--amarelo);
}

/* Item de Região */
.group-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 14px;
  text-decoration: none;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.group-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(245, 197, 24, 0.4);
  transform: translateX(4px);
}

.group-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
  padding-right: 8px;
}

.region-pin {
  font-size: 16px;
  flex-shrink: 0;
}

.region-text-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.region-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--branco);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.region-cities {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

/* Badge de Confirmação da Cidade Pesquisada */
.city-match-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--amarelo);
  font-weight: 600;
  font-size: 11.5px;
  line-height: 1.2;
}

.city-match-badge strong {
  color: #ffffff;
  background: rgba(245, 197, 24, 0.25);
  border: 1px solid rgba(245, 197, 24, 0.5);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 800;
}

/* Botão WhatsApp ENTRAR */
.btn-whatsapp {
  background: var(--verde-wa);
  color: var(--branco);
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 8px 16px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

.group-item:hover .btn-whatsapp {
  background: var(--verde-wa-hover);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.5);
  transform: scale(1.05);
}

/* Sem Resultados */
.no-results {
  text-align: center;
  padding: 30px 10px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.no-results.hidden {
  display: none;
}

.reset-btn {
  background: rgba(245, 197, 24, 0.15);
  border: 1px solid var(--amarelo);
  color: var(--amarelo);
  padding: 8px 16px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reset-btn:hover {
  background: var(--amarelo);
  color: var(--azul-fundo);
}

/* ── Rodapé ── */
.site-footer {
  background: #030f1b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 24px;
  margin-top: auto;
  position: relative;
  z-index: 10;
  width: 100%;
  box-sizing: border-box;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
  width: 100%;
}

.footer-brand {
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--amarelo);
}

.footer-sep {
  color: rgba(255, 255, 255, 0.2);
}

/* ── Responsividade ── */
@media (max-width: 992px) {
  .mobile-cta-btn {
    display: flex;
  }

  .main-content {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 28px;
    padding: 24px 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .col-hero {
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hero-description {
    max-width: 100%;
    padding: 0 4px;
  }

  .banner-card {
    max-width: 100%;
    width: 100%;
  }

  .col-card {
    position: static;
    height: auto;
    width: 100%;
    max-width: 100%;
  }

  .groups-card {
    height: auto;
    max-height: none;
    width: 100%;
    max-width: 100%;
  }

  .groups-list {
    max-height: 500px;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: 10px 12px;
    width: 100%;
    box-sizing: border-box;
  }

  .header-container {
    justify-content: center;
    gap: 8px;
    flex-direction: column;
    text-align: center;
    width: 100%;
    max-width: 100%;
  }

  .header-logo-img {
    height: 34px;
    max-width: 160px;
  }

  .header-badge {
    padding: 4px 10px;
    font-size: 9px;
    max-width: 100%;
  }

  .hero-title {
    font-size: clamp(20px, 6.5vw, 28px);
    line-height: 1.05;
    width: 100%;
  }

  .hero-description {
    font-size: 13px;
    padding: 0 2px;
    width: 100%;
  }

  .mobile-cta-btn {
    font-size: 12px;
    padding: 10px 12px;
    width: 100%;
    max-width: 100%;
  }

  .banner-card {
    border-radius: 16px;
  }

  .banner-badge {
    padding: 5px 10px;
    font-size: 10.5px;
    bottom: 8px;
    left: 8px;
    max-width: calc(100% - 16px);
  }

  .groups-card {
    padding: 16px 10px;
    border-radius: 16px;
    width: 100%;
    max-width: 100%;
  }

  .card-title {
    font-size: 17px;
  }

  .card-subtitle {
    font-size: 11.5px;
  }

  .search-box #search-input {
    padding: 10px 28px 10px 32px;
    font-size: 12.5px;
    width: 100%;
  }

  .search-icon {
    left: 8px;
    width: 14px;
    height: 14px;
  }

  .group-item {
    padding: 8px 8px;
    width: 100%;
  }

  .region-name {
    font-size: 11.5px;
  }

  .btn-whatsapp {
    padding: 5px 8px;
    font-size: 10px;
  }
}
