/* =========================================================
   Mapa Empresarial de Blumenau — Blumenau Hub
   Estilo mobile-first. Paleta laranja + roxo (identidade visual).
   ========================================================= */

/* ---------- Variáveis (fácil ajuste de tema) ---------- */
:root {
  --roxo-escuro: #4A154B;
  --roxo-medio:  #6B2D6E;
  --laranja:     #F58220;
  --laranja-esc: #D96D0F;
  --branco:      #FFFFFF;
  --cinza-claro: #F5F7FA;
  --cinza-borda: #E5E7EB;
  --texto:       #1F2937;
  --texto-suave: #6B7280;
  --verde-wpp:   #25D366;

  --sombra-suave: 0 4px 16px rgba(74, 21, 75, 0.08);
  --sombra-media: 0 8px 28px rgba(74, 21, 75, 0.16);
  --raio: 14px;
  --raio-pill: 999px;

  --header-altura: 64px;
}

/* ---------- Reset básico ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--texto);
  background: var(--branco);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: var(--raio-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { padding: 14px 28px; font-size: 1rem; }

.btn--primary { background: var(--laranja); color: var(--branco); }
.btn--primary:hover { background: var(--laranja-esc); box-shadow: var(--sombra-media); }

.btn--ghost {
  background: transparent;
  color: var(--branco);
  border-color: rgba(255, 255, 255, 0.6);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }

.btn--outline {
  background: transparent;
  color: var(--roxo-escuro);
  border-color: var(--cinza-borda);
}
.btn--outline:hover { border-color: var(--roxo-escuro); }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--roxo-escuro);
  color: var(--branco);
  box-shadow: var(--sombra-suave);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-altura);
}

.logo { display: inline-flex; align-items: center; gap: 8px; font-size: 1.25rem; }
.logo__mark { color: var(--laranja); font-size: 1.4rem; line-height: 1; }
.logo__text { font-weight: 800; color: var(--branco); letter-spacing: -0.5px; }
.logo__accent { color: var(--laranja); }

.nav { display: flex; align-items: center; gap: 22px; }
.nav__list { display: flex; align-items: center; gap: 20px; }
.nav__list a {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  padding: 6px 0;
  transition: color .15s ease;
}
.nav__list a:hover { color: var(--branco); }
.nav__list a.is-active { color: var(--laranja); font-weight: 700; }

/* Botão hambúrguer (escondido no desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--branco);
  border-radius: 2px;
  transition: .2s;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  background: linear-gradient(135deg, var(--roxo-escuro) 0%, var(--roxo-medio) 100%);
  color: var(--branco);
  padding: 56px 0;
  text-align: center;
}
.hero__title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
}
.hero__subtitle {
  max-width: 620px;
  margin: 16px auto 0;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 28px;
}

/* =========================================================
   BANNER ROTATIVO — Empresas Destaque ("Empresa Parceira")
   ========================================================= */
.banner-destaque {
  background: var(--cinza-claro);
  padding: 22px 0;
  border-bottom: 1px solid var(--cinza-borda);
}
.banner-destaque[hidden] { display: none; }
.banner-destaque__titulo {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--texto-suave);
  margin-bottom: 10px;
}
.banner-carrossel {
  display: flex;
  align-items: center;
  gap: 8px;
}
.banner-viewport {
  flex: 1;
  overflow: hidden;
  border-radius: var(--raio);
  box-shadow: var(--sombra-suave);
}
.banner-slides {
  display: flex;
  transition: transform .4s ease;
}
.banner-slide {
  position: relative;
  flex: 0 0 100%;
  height: 220px;
  cursor: pointer;
}
.banner-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner-slide__info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 20px;
  background: linear-gradient(to top, rgba(11, 4, 15, 0.85), transparent);
  color: var(--branco);
}
.banner-slide__info h3 { font-size: 1.25rem; font-weight: 800; margin: 6px 0 2px; }
.banner-slide__info p { font-size: 0.88rem; opacity: 0.9; }
.banner-seta {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--cinza-borda);
  background: var(--branco);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  color: var(--roxo-escuro);
}
.banner-seta:hover { background: var(--branco); border-color: var(--roxo-escuro); }
.banner-seta[hidden] { display: none; }
.banner-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.banner-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--cinza-borda);
  cursor: pointer;
  padding: 0;
  transition: .2s;
}
.banner-dot.is-ativo { background: var(--laranja); width: 20px; border-radius: var(--raio-pill); }

/* =========================================================
   FILTROS
   ========================================================= */
.filtros {
  background: var(--cinza-claro);
  padding: 28px 0;
  border-bottom: 1px solid var(--cinza-borda);
}
.filtros__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--texto-suave);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.campo input,
.campo select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--cinza-borda);
  border-radius: 10px;
  font-size: 0.95rem;
  background: var(--branco);
  color: var(--texto);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.campo input:focus,
.campo select:focus {
  outline: none;
  border-color: var(--laranja);
  box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.15);
}

.filtros__extras {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
}
.checkboxes { display: flex; flex-wrap: wrap; gap: 18px; }
.check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.92rem;
  cursor: pointer;
  color: var(--texto);
}
.check input { accent-color: var(--laranja); width: 16px; height: 16px; cursor: pointer; }

.contador {
  margin-top: 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--roxo-escuro);
}

/* =========================================================
   LAYOUT PRINCIPAL (lista + mapa)
   ========================================================= */
.layout-wrap { padding: 28px 0 40px; }

.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* No mobile o mapa vem primeiro (order menor) */
.coluna-mapa { order: 1; }
.coluna-lista { order: 2; }

#mapa {
  width: 100%;
  height: 340px;
  border-radius: var(--raio);
  box-shadow: var(--sombra-suave);
  z-index: 1; /* fica abaixo do header sticky */
}

.lista-empresas {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.sem-resultados {
  padding: 40px 20px;
  text-align: center;
  color: var(--texto-suave);
  font-size: 1.05rem;
  background: var(--cinza-claro);
  border-radius: var(--raio);
}

/* =========================================================
   CARDS DE EMPRESA
   ========================================================= */
.card {
  background: var(--branco);
  border: 1px solid var(--cinza-borda);
  border-radius: var(--raio);
  overflow: hidden;
  box-shadow: var(--sombra-suave);
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sombra-media); }

/* Card em destaque: visual mais chamativo */
.card--destaque {
  border: 2px solid var(--laranja);
  box-shadow: 0 8px 28px rgba(245, 130, 32, 0.22);
}

.card__img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: var(--cinza-claro);
}

.card__body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.card__selos { display: flex; flex-wrap: wrap; gap: 6px; }
.selo {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--raio-pill);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.selo--parceira { background: linear-gradient(45deg, var(--roxo-escuro), var(--laranja)); color: var(--branco); }
.selo--novo     { background: #E6F7EC; color: #157347; }

.card__nome { font-size: 1.12rem; font-weight: 700; color: var(--roxo-escuro); }
.card__meta { font-size: 0.85rem; color: var(--texto-suave); }
.card__meta strong { color: var(--texto); font-weight: 600; }
.card__telefone { font-size: 0.88rem; color: var(--texto); }
.card__telefone strong { color: var(--roxo-escuro); }

/* Card do plano Gratuito não tem foto — corpo ocupa o card inteiro */
.card--sem-foto .card__body { padding-top: 18px; }
.card__desc { font-size: 0.9rem; color: var(--texto); }

.card__acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}
.btn-acao {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--cinza-borda);
  background: var(--branco);
  color: var(--texto);
  cursor: pointer;
  transition: .15s;
}
.btn-acao:hover { border-color: var(--roxo-escuro); }
.btn-acao svg { width: 15px; height: 15px; }
.btn-acao--wpp { background: var(--verde-wpp); color: #fff; border-color: var(--verde-wpp); }
.btn-acao--wpp:hover { filter: brightness(0.95); }
.btn-acao--insta {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff; border: none;
}
.btn-acao--insta:hover { filter: brightness(1.05); }

/* =========================================================
   POPUP DO MAPA (Leaflet)
   ========================================================= */
.popup-nome { font-weight: 700; color: var(--roxo-escuro); font-size: 1rem; }
.popup-meta { font-size: 0.82rem; color: var(--texto-suave); margin: 2px 0 8px; }
.popup-acoes { display: flex; gap: 6px; }
.popup-acoes a {
  font-size: 0.78rem; font-weight: 600;
  padding: 5px 10px; border-radius: 8px; color: #fff;
}
.popup-acoes .p-wpp { background: var(--verde-wpp); }
.popup-acoes .p-insta { background: #cc2366; }
.popup-acoes .p-tel { font-size: 0.78rem; font-weight: 600; color: var(--texto-suave); padding: 5px 0; }

/* Pin diferenciado (laranja) das empresas do plano Destaque */
.pin-destaque { background: transparent; border: none; }
.pin-destaque__ponto {
  display: block;
  width: 26px; height: 26px;
  background: var(--laranja);
  border: 3px solid var(--branco);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* =========================================================
   CTA FINAL
   ========================================================= */
.cta-final {
  background: linear-gradient(135deg, var(--laranja) 0%, var(--laranja-esc) 100%);
  color: var(--branco);
  text-align: center;
  padding: 56px 0;
}
.cta-final__inner { max-width: 680px; }
.cta-final h2 { font-size: 1.6rem; font-weight: 800; line-height: 1.2; }
.cta-final p { margin: 14px 0 26px; font-size: 1.05rem; color: rgba(255, 255, 255, 0.92); }
.cta-final .btn--primary { background: var(--roxo-escuro); }
.cta-final .btn--primary:hover { background: #360f37; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--roxo-escuro);
  color: rgba(255, 255, 255, 0.85);
  padding: 40px 0;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.footer__brand { display: inline-flex; align-items: center; gap: 8px; font-size: 1.2rem; }
.footer__tagline { max-width: 520px; font-size: 0.95rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__links a { font-size: 0.92rem; transition: color .15s; }
.footer__links a:hover { color: var(--laranja); }

/* =========================================================
   MODAL DE DETALHES
   ========================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(31, 41, 55, 0.6);
  backdrop-filter: blur(2px);
}
.modal__painel {
  position: relative;
  background: var(--branco);
  border-radius: var(--raio);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--sombra-media);
  animation: modalIn .2s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.modal__fechar {
  position: absolute;
  top: 10px; right: 12px;
  z-index: 2;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--texto);
  cursor: pointer;
}
.modal__fechar:hover { background: var(--cinza-claro); }

.modal__img { width: 100%; height: 220px; object-fit: cover; background: var(--cinza-claro); }
.modal__galeria {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 8px 22px 0;
}
.modal__galeria img { width: 100%; height: 90px; object-fit: cover; border-radius: 8px; }
.modal__pad { padding: 22px; }
.modal__nome { font-size: 1.4rem; font-weight: 800; color: var(--roxo-escuro); }
.modal__selos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.modal__desc { margin: 14px 0; font-size: 0.98rem; }
.modal__info { display: grid; gap: 8px; margin: 14px 0; }
.modal__info div { font-size: 0.92rem; }
.modal__info strong { color: var(--roxo-escuro); }
.modal__acoes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* =========================================================
   RESPONSIVO — Tablet e Desktop
   ========================================================= */
@media (min-width: 600px) {
  .filtros__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .lista-empresas { grid-template-columns: 1fr 1fr; }
  .hero__title { font-size: 2.5rem; }
  .banner-slide { height: 300px; }
}

@media (min-width: 1024px) {
  /* Layout de duas colunas: cards à esquerda, mapa à direita */
  .layout { grid-template-columns: 1.15fr 1fr; align-items: start; }
  .coluna-lista { order: 1; }
  .coluna-mapa { order: 2; }
  .coluna-mapa { position: sticky; top: calc(var(--header-altura) + 16px); }
  #mapa { height: calc(100vh - var(--header-altura) - 60px); min-height: 500px; }
  .lista-empresas { grid-template-columns: 1fr 1fr; }
  .hero__title { font-size: 2.8rem; }
}

/* =========================================================
   RESPONSIVO — Menu mobile
   ========================================================= */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: var(--header-altura);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--roxo-escuro);
    padding: 12px 20px 20px;
    box-shadow: var(--sombra-media);
    transform: translateY(-120%);
    transition: transform .25s ease;
    max-height: calc(100vh - var(--header-altura));
    overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .nav__list a { display: block; padding: 14px 0; }
}
