/*
 * home-patch.css
 * Correções pontuais da home — aplica sobre design-system.css
 * Resolve os 15 itens do checklist de UX/UI
 */

/* ══════════════════════════════════════════════════════════════
   [FIX 1] NAVBAR — indicador de página ativa
══════════════════════════════════════════════════════════════ */
.lj-nav-links a[aria-current="page"] {
  color: #fff;
  font-weight: 700;
  position: relative;
}

.lj-nav-links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--lj-lime, #f15f36);
  border-radius: 2px;
}

/* ══════════════════════════════════════════════════════════════
   [FIX 2] NAVBAR — botão CTA em cor de marca, não amarelo-limão
══════════════════════════════════════════════════════════════ */
.lj-btn-cta {
  background: #f15f36 !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(241, 95, 54, 0.30) !important;
  font-weight: 700;
}

.lj-btn-cta:hover,
.lj-btn-cta:focus-visible {
  background: #c94820 !important;
  color: #fff !important;
  text-decoration: none;
}

/* ══════════════════════════════════════════════════════════════
   [FIX 3] HERO — CTA secundário
══════════════════════════════════════════════════════════════ */
.lj-hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.lj-hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.30);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.lj-hero-cta-secondary:hover,
.lj-hero-cta-secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  text-decoration: none;
}

/* ══════════════════════════════════════════════════════════════
   [FIX 4] HERO PILLS — contraste melhorado
══════════════════════════════════════════════════════════════ */
.lj-highlight-pill {
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  padding: 18px 20px;
  border-radius: 16px;
  text-align: left;
}

.lj-highlight-pill strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.lj-highlight-pill span {
  color: rgba(255, 255, 255, 0.82);  /* era 0.68 — melhorou contraste */
  font-size: 0.88rem;
  line-height: 1.45;
}

/* ══════════════════════════════════════════════════════════════
   [FIX 5] STAT CARDS — contraste visível no fundo escuro
══════════════════════════════════════════════════════════════ */
.lj-stat-card {
  background: rgba(255, 255, 255, 0.12) !important;  /* era 0.06 */
  border: 1px solid rgba(255, 255, 255, 0.20) !important;  /* era 0.08 */
  backdrop-filter: blur(12px);
}

.lj-stat__number {
  color: #fff;
  text-shadow: 0 0 24px rgba(255,255,255,0.18);
}

.lj-stat__label {
  color: rgba(255, 255, 255, 0.78);  /* era 0.58 */
  font-size: 0.82rem;
}

/* ══════════════════════════════════════════════════════════════
   [FIX 6] SEÇÃO DE CIDADES — overflow controlado
══════════════════════════════════════════════════════════════ */
.lj-section--cities {
  overflow: hidden;  /* impede cards transbordarem */
}

.lj-cities-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));  /* minmax(0) evita overflow */
  overflow: hidden;
}

/* FIX: Cidade atual destacada */
.lj-city-card--active {
  border: 2px solid #f15f36 !important;
  background: linear-gradient(160deg, #fff5f2, #fff) !important;
}

.lj-city-card--active .lj-city-card__badge {
  background: rgba(241, 95, 54, 0.18);
  color: #c94820 !important;
}

.lj-city-card--active strong {
  color: #f15f36;
}

/* Mobile: cidades em 2 colunas com scroll se necessário */
@media (max-width: 640px) {
  .lj-cities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ══════════════════════════════════════════════════════════════
   [FIX 7] CATEGORIAS — alinhamento do header com o grid
══════════════════════════════════════════════════════════════ */
.lj-section--cats {
  overflow: hidden;
}

/* Header e grid dentro do mesmo container de largura */
.lj-section--cats .lj-section__header,
.lj-section--cats .lj-categories {
  width: 100%;
}

/* FIX: Ícone fallback para categorias sem imagem */
.lj-cat-icon--fallback {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #607089;
}

/* ══════════════════════════════════════════════════════════════
   [FIX 8] "VER TODAS" — botão com peso visual adequado
══════════════════════════════════════════════════════════════ */
.lj-section__cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 2px solid #f15f36;
  color: #f15f36;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
  flex-shrink: 0;
}

.lj-section__cta-link:hover,
.lj-section__cta-link:focus-visible {
  background: #f15f36;
  color: #fff;
  text-decoration: none;
}

/* ══════════════════════════════════════════════════════════════
   [FIX 9] PARCEIROS — grid de colunas fixas, não auto-fit colapsável
══════════════════════════════════════════════════════════════ */
.lj-partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 900px)  { .lj-partners-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .lj-partners-grid { grid-template-columns: repeat(2, 1fr); } }

/* Reutiliza estilos do .lj-partner-card existente */
.lj-partners-grid .lj-partner-card {
  align-items: center;
  text-align: center;
  min-height: 160px;
}

.lj-partners-grid .lj-partner-card img {
  max-width: 120px;
  height: 64px;
  object-fit: contain;
  margin: 0 auto;
}

.lj-partner-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #f15f36;
}

/* ══════════════════════════════════════════════════════════════
   [FIX 10] ESPAÇAMENTO CONSISTENTE entre seções
══════════════════════════════════════════════════════════════ */
.lj-stats     { padding: 40px 0; }
.lj-section   { padding: 48px 0; }

.lj-section + .lj-section { border-top: 1px solid #eef0f5; }

/* ══════════════════════════════════════════════════════════════
   [FIX 11] FOOTER — completo com links úteis
══════════════════════════════════════════════════════════════ */
.lj-footer {
  background: #0f1c31;
  padding: 48px 0 28px;
}

.lj-footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.lj-footer__brand {}

.lj-footer__logo {
  height: 28px;
  width: auto;
  display: block;
  margin-bottom: 14px;
}

.lj-footer__brand-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  display: block;
  margin-bottom: 14px;
}

.lj-footer__copy {
  color: #74839a;
  font-size: 0.88rem;
  margin: 0 0 6px;
  line-height: 1.5;
}

.lj-footer__nav-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.45);
  margin: 0 0 14px;
}

.lj-footer__nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lj-footer__nav a {
  color: #8fa0b8;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 140ms ease;
}

.lj-footer__nav a:hover { color: #fff; text-decoration: none; }

.lj-footer__socials {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.lj-footer__socials img {
  width: 32px;
  height: 32px;
  opacity: 0.75;
  transition: opacity 140ms ease;
}

.lj-footer__socials a:hover img { opacity: 1; }

@media (max-width: 860px) {
  .lj-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .lj-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .lj-footer__inner { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   [FIX 12] SEÇÃO COPYS — garante mesmo tamanho de texto
══════════════════════════════════════════════════════════════ */
.lj-section-copy {
  color: #607089;
  font-size: 0.95rem;
  margin: 6px 0 0;
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════════
   [FIX 13] BUSCA TOPO — campo cidade sem truncamento
══════════════════════════════════════════════════════════════ */
.lj-top-search .lj-search-city select {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════════
   [FIX 14-15] MOBILE GERAL
══════════════════════════════════════════════════════════════ */
@media (max-width: 560px) {
  .lj-hero-highlights {
    grid-template-columns: 1fr;
  }

  .lj-hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .lj-hero-cta-secondary {
    width: 100%;
    justify-content: center;
  }
}
