/* ============================================================
   AQUI EM CAMPINAS — style.css
   Mobile-first + breakpoints: 768px (tablet/desktop), 1200px (wide)
   Paleta: navy #0A0F24 / #16224C | amarelo #F7C600 | rosa-red #E8456B
           cinza-claro #F4F5FA | WhatsApp #25D366 | Poppins
   ============================================================ */

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  margin: 0; padding: 0;
  background: #F4F5FA;
  color: #1A1A2E;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }
button { cursor: pointer; font-family: 'Poppins', sans-serif; }

/* ── UTILITÁRIOS ──────────────────────────────────────────── */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── NAVBAR ───────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 200;
  background: #0A0F24;
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.navbar-logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.logo-pin {
  width: 30px; height: 30px;
  background: #E8456B; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #fff; font-weight: 900; flex-shrink: 0;
  line-height: 1;
}
.logo-txt {
  color: #fff; font-size: 13px; font-weight: 400; line-height: 1.2; white-space: nowrap;
}
.logo-txt strong { color: #F7C600; font-weight: 700; }
.navbar-actions { display: flex; gap: 8px; align-items: center; }
.btn-login {
  color: #D0D4E8; font-size: 12px; font-weight: 500;
  padding: 6px 10px; border: 1px solid rgba(255,255,255,.2); border-radius: 8px;
}
.btn-login:hover { background: rgba(255,255,255,.08); }
.btn-cad {
  background: #E8456B; color: #fff; font-size: 12px; font-weight: 600;
  padding: 6px 12px; border-radius: 8px; white-space: nowrap;
}
.btn-cad:hover { background: #d03a5e; }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, #16224C 0%, #0A0F24 100%);
  padding: 36px 16px 32px;
  text-align: center;
}
.hero h1 {
  color: #fff; font-size: 22px; font-weight: 700;
  line-height: 1.3; margin: 0 0 6px;
}
.hero h1 em { color: #F7C600; font-style: normal; }
.hero-sub { color: #A0AEC0; font-size: 13px; margin: 0 0 22px; line-height: 1.5; }

/* Search */
.search-wrap {
  display: flex; align-items: stretch;
  background: #fff; border-radius: 12px; overflow: hidden;
  border: 2px solid #F7C600; width: 100%;
}
.search-wrap input {
  flex: 1; border: none; outline: none;
  padding: 12px 14px; font-size: 14px;
  font-family: 'Poppins', sans-serif; color: #1A1A2E; min-width: 0;
}
.search-wrap input::placeholder { color: #9CA3AF; }
.search-wrap button {
  background: #F7C600; border: none;
  padding: 12px 18px; font-size: 18px; flex-shrink: 0;
  transition: background .2s;
}
.search-wrap button:hover { background: #e6b800; }

/* ── STATS BAR ────────────────────────────────────────────── */
.stats-bar {
  background: #0A0F24;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; text-align: center;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.stat-item {
  padding: 12px 8px;
  border-right: 1px solid rgba(255,255,255,.06);
}
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 18px; font-weight: 700; color: #F7C600; line-height: 1.2; }
.stat-lbl { font-size: 9px; color: #A0AEC0; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }

/* ── CATEGORIAS ───────────────────────────────────────────── */
.cats-section {
  background: #fff;
  padding: 14px 12px 10px;
  border-bottom: 1px solid #E2E5F0;
}
.section-label {
  font-size: 10px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: #6B7280; margin-bottom: 10px;
}
.cats-row {
  display: flex; gap: 8px; overflow-x: auto;
  padding-bottom: 4px; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cats-row::-webkit-scrollbar { display: none; }
.cat-chip {
  flex-shrink: 0; background: #F4F5FA;
  border: 1px solid #E2E5F0; border-radius: 20px;
  padding: 6px 14px; font-size: 12px; font-weight: 500; color: #16224C;
  white-space: nowrap; transition: all .15s;
}
.cat-chip:hover, .cat-chip.active {
  background: #16224C; color: #F7C600; border-color: #16224C;
}

/* ── FILTROS / ORDENAÇÃO ──────────────────────────────────── */
.filter-bar {
  background: #fff;
  display: flex; gap: 8px; overflow-x: auto;
  padding: 10px 12px; border-bottom: 1px solid #E2E5F0;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  align-items: center;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-bar-label { font-size: 11px; color: #6B7280; flex-shrink: 0; font-weight: 500; }
.filter-chip {
  flex-shrink: 0; background: #F4F5FA;
  border: 1px solid #E2E5F0; border-radius: 20px;
  padding: 5px 12px; font-size: 12px; font-weight: 500; color: #16224C;
  white-space: nowrap; transition: all .15s;
}
.filter-chip:hover, .filter-chip.active {
  background: #16224C; color: #F7C600; border-color: #16224C;
}

/* ── SEÇÃO HEADER ─────────────────────────────────────────── */
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.section-title { font-size: 15px; font-weight: 700; color: #0A0F24; margin: 0; }
.ver-mais { font-size: 12px; color: #E8456B; font-weight: 600; }
.ver-mais:hover { color: #c03358; }

/* ── BANNER CAROUSEL ──────────────────────────────────────── */
.banner-section { background: #fff; overflow: hidden; position: relative; }
.banner-track { display: flex; transition: transform .4s ease; }
.banner-slide {
  flex-shrink: 0; width: 100%;
  height: 160px; object-fit: cover;
  background: #16224C;
}
.banner-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.banner-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.5); border: none; padding: 0;
  transition: background .2s;
}
.banner-dot.active { background: #F7C600; }

/* ── DESTAQUES (scroll horizontal) ───────────────────────── */
.highlights-section { padding: 16px 12px; }
.cards-scroll {
  display: flex; gap: 12px; overflow-x: auto;
  padding-bottom: 8px; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cards-scroll::-webkit-scrollbar { display: none; }

.biz-card {
  flex-shrink: 0; width: 195px;
  background: #fff; border-radius: 12px; overflow: hidden;
  border: 1px solid #E2E5F0; transition: box-shadow .2s;
}
.biz-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.10); }
.biz-card-img {
  width: 100%; height: 110px; object-fit: cover;
  background: #E2E5F0; position: relative;
  display: flex; align-items: center; justify-content: center; font-size: 32px;
}
.badge-dest {
  position: absolute; top: 6px; left: 6px;
  background: #F7C600; color: #1A1A2E;
  font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 10px;
}
.badge-benef {
  position: absolute; top: 6px; right: 6px;
  background: #E8456B; color: #fff;
  font-size: 9px; font-weight: 700;
  padding: 3px 7px; border-radius: 10px;
}
.biz-card-body { padding: 10px 10px 12px; }
.biz-card-name { font-size: 13px; font-weight: 600; color: #0A0F24; margin-bottom: 2px; }
.biz-card-cat { font-size: 11px; color: #6B7280; }
.biz-card-stars { font-size: 11px; color: #F7C600; margin-top: 4px; }
.biz-card-stars span { color: #9CA3AF; }

/* ── BAIRROS ──────────────────────────────────────────────── */
.bairros-section {
  background: #16224C;
  padding: 18px 12px 20px;
}
.bairros-section .section-title { color: #F7C600; }
.bairros-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 8px; margin-top: 12px;
}
.bairro-btn {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14); border-radius: 10px;
  padding: 10px 12px; color: #D0D4E8; font-size: 12px; font-weight: 500;
  display: flex; justify-content: space-between; align-items: center;
  transition: all .15s; text-align: left;
}
.bairro-btn:hover {
  background: rgba(247,198,0,.12); border-color: rgba(247,198,0,.3);
  color: #F7C600;
}
.bairro-count { color: #F7C600; font-size: 11px; font-weight: 600; }

/* ── LISTAGEM DE NEGÓCIOS ─────────────────────────────────── */
.listings-section { padding: 16px 12px; }
.listings-grid { display: flex; flex-direction: column; gap: 10px; }

.listing-item {
  background: #fff; border-radius: 12px;
  padding: 12px; display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid #E2E5F0; transition: box-shadow .2s;
}
.listing-item:hover { box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.listing-thumb {
  width: 56px; height: 56px; border-radius: 10px;
  background: #E2E5F0; flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.listing-thumb img { width: 100%; height: 100%; object-fit: cover; }
.listing-info { flex: 1; min-width: 0; }
.listing-name {
  font-size: 13px; font-weight: 600; color: #0A0F24;
  margin-bottom: 2px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.badge-sm {
  font-size: 9px; border-radius: 6px; padding: 2px 6px; font-weight: 600; white-space: nowrap;
}
.badge-sm.dest { background: #FFF8E1; border: 1px solid #F7C600; color: #7A5600; }
.badge-sm.benef { background: #FDE8EE; border: 1px solid #E8456B; color: #A0103A; }
.listing-cat { font-size: 11px; color: #6B7280; margin-bottom: 2px; }
.listing-loc {
  font-size: 11px; color: #6B7280;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.listing-stars { font-size: 11px; color: #F7C600; margin-top: 3px; }

/* Load more / spinner */
.load-more-wrap { text-align: center; padding: 16px 0; }
.btn-load-more {
  background: #fff; border: 1px solid #E2E5F0;
  color: #16224C; font-size: 13px; font-weight: 600;
  padding: 10px 24px; border-radius: 10px; transition: all .15s;
}
.btn-load-more:hover { background: #F4F5FA; }
.spinner { display: none; justify-content: center; padding: 20px; }
.spinner-ring {
  width: 28px; height: 28px; border: 3px solid #E2E5F0;
  border-top-color: #E8456B; border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty-msg { text-align: center; padding: 32px 16px; color: #6B7280; font-size: 13px; }

/* ── BANNER CTA ───────────────────────────────────────────── */
.cta-section {
  background: #E8456B; padding: 28px 16px; text-align: center;
}
.cta-section h2 {
  color: #fff; font-size: 18px; font-weight: 700;
  margin: 0 0 8px; line-height: 1.3;
}
.cta-section p {
  color: rgba(255,255,255,.88); font-size: 13px;
  margin: 0 0 18px; line-height: 1.5;
}
.btn-cta {
  display: inline-block; background: #F7C600; color: #1A1A2E;
  font-weight: 700; font-size: 13px;
  padding: 13px 24px; border-radius: 12px;
  font-family: 'Poppins', sans-serif; border: none;
  transition: background .2s;
}
.btn-cta:hover { background: #e6b800; }

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer {
  background: #0A0F24; padding: 24px 16px; text-align: center;
}
.footer-logo { color: #fff; font-size: 13px; margin-bottom: 12px; }
.footer-logo strong { color: #F7C600; font-weight: 700; }
.footer-tagline { font-size: 10px; color: #4A5568; display: block; margin-top: 2px; }
.footer-links {
  display: flex; gap: 16px; justify-content: center;
  margin-bottom: 12px; flex-wrap: wrap;
}
.footer-links a { color: #A0AEC0; font-size: 12px; font-weight: 500; }
.footer-links a:hover { color: #F7C600; }
.footer-copy { font-size: 10px; color: #4A5568; }

/* ── MODAL ORDENAÇÃO ──────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 500;
  align-items: flex-end; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-sheet {
  background: #fff; width: 100%; border-radius: 20px 20px 0 0;
  padding: 20px 16px 32px; max-width: 600px;
}
.modal-handle {
  width: 36px; height: 4px; background: #E2E5F0;
  border-radius: 2px; margin: 0 auto 16px;
}
.modal-title { font-size: 15px; font-weight: 700; color: #0A0F24; margin-bottom: 14px; }
.order-option {
  width: 100%; background: none; border: 1px solid #E2E5F0;
  border-radius: 10px; padding: 12px 16px; margin-bottom: 8px;
  font-size: 13px; font-weight: 500; color: #16224C; text-align: left;
  transition: all .15s;
}
.order-option:hover, .order-option.active {
  background: #16224C; color: #F7C600; border-color: #16224C;
}

/* ═══════════════════════════════════════════
   TABLET / DESKTOP — 768px+
═══════════════════════════════════════════ */
@media (min-width: 768px) {
  .navbar { height: 64px; padding: 0 40px; }
  .logo-pin { width: 34px; height: 34px; font-size: 18px; }
  .logo-txt { font-size: 15px; }
  .btn-login { font-size: 13px; padding: 7px 16px; }
  .btn-cad { font-size: 13px; padding: 8px 18px; border-radius: 10px; }
  .navbar-actions { gap: 12px; }

  .hero { padding: 60px 40px 52px; display: flex; flex-direction: column; align-items: center; }
  .hero h1 { font-size: 36px; max-width: 560px; }
  .hero-sub { font-size: 15px; margin-bottom: 28px; }
  .search-wrap { max-width: 580px; border-radius: 14px; }
  .search-wrap input { font-size: 15px; padding: 14px 18px; }
  .search-wrap button { padding: 14px 20px; font-size: 20px; }

  .stats-bar { padding: 0 40px; grid-template-columns: repeat(3, auto); justify-content: center; gap: 0; }
  .stat-item { padding: 18px 60px; border-right: 1px solid rgba(255,255,255,.06); }
  .stat-num { font-size: 26px; }
  .stat-lbl { font-size: 10px; }

  .cats-section { padding: 18px 40px 14px; }
  .cats-row { flex-wrap: wrap; overflow-x: visible; gap: 10px; }
  .cat-chip { font-size: 13px; padding: 7px 18px; }

  .filter-bar { padding: 12px 40px; flex-wrap: wrap; overflow-x: visible; gap: 10px; }

  .banner-slide { height: 240px; }

  .highlights-section { padding: 24px 40px; }
  .section-title { font-size: 17px; }
  .biz-card { width: 220px; }
  .biz-card-img { height: 130px; }

  .bairros-section { padding: 24px 40px 28px; }
  .bairros-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }

  .listings-section { padding: 24px 40px; }
  .listings-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; flex-direction: unset; }
  .listing-thumb { width: 64px; height: 64px; }
  .listing-name { font-size: 14px; }

  .cta-section { padding: 52px 40px; }
  .cta-section h2 { font-size: 26px; }
  .cta-section p { font-size: 14px; max-width: 500px; margin: 0 auto 22px; }
  .btn-cta { font-size: 15px; padding: 14px 32px; border-radius: 14px; }

  .site-footer {
    padding: 28px 40px;
    display: flex; align-items: center; justify-content: space-between; text-align: left;
  }
  .footer-logo { margin-bottom: 0; }
  .footer-links { margin-bottom: 0; gap: 20px; }

  .modal-overlay { align-items: center; }
  .modal-sheet { border-radius: 16px; max-width: 480px; width: calc(100% - 40px); }
}

/* ═══════════════════════════════════════════
   WIDE — 1200px+
═══════════════════════════════════════════ */
@media (min-width: 1200px) {
  .navbar, .site-footer { padding-left: 80px; padding-right: 80px; }
  .hero { padding-left: 80px; padding-right: 80px; }
  .hero h1 { font-size: 46px; max-width: 680px; }
  .cats-section, .filter-bar, .highlights-section,
  .bairros-section, .listings-section, .cta-section { padding-left: 80px; padding-right: 80px; }
  .bairros-grid { grid-template-columns: repeat(6, 1fr); }
  .listings-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-item { padding: 18px 80px; }
}
