/* componentes.css — porte 1:1 do cabeçalho, rodapé, botões e pills dos artboards
   (design/canvas/Catalogo.dc.html, Mobile.dc.html, Mobile2.dc.html).
   Mobile-first: estilos base = celular (< 1024px vira o layout desktop do cabeçalho/rodapé). */

/* ---------- Tipografia de componente ---------- */

.titulo-display {
  margin: 0;
  font-family: 'Saira Condensed', 'Arial Narrow', sans-serif;
  font-style: italic;
  font-weight: 800;
  line-height: 1.02;
  color: var(--verde);
}

.rotulo {
  display: block;
  margin: 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ---------- Botões ---------- */

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  background: transparent;
  font-family: 'Barlow', system-ui, sans-serif;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.botao:hover { transform: translateY(-1px); }

.botao--lima {
  background: var(--lima);
  color: var(--texto-sobre-lima);
}

.botao--branco {
  height: 58px;
  padding: 0 32px;
  background: var(--branco);
  color: var(--verde);
  font-size: 17px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .22);
}

.botao--contorno {
  height: 56px;
  padding: 0 30px;
  border-color: var(--verde-vivo);
  color: var(--verde-vivo);
  font-weight: 600;
  font-size: 16px;
}
.botao--contorno.botao--sobre-escuro {
  border-color: #2F6E48;
  color: var(--branco);
}

/* ---------- Pills (filtros de catálogo) ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--borda-pill);
  background: var(--branco);
  color: var(--texto);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
}
.pill span { color: var(--texto-suave); font-variant-numeric: tabular-nums; }

.pill--ativa {
  border-color: var(--verde);
  background: var(--verde);
  color: var(--branco);
}
.pill--ativa span { color: var(--lima); }

/* ---------- Cartão ---------- */

.cartao {
  background: var(--branco);
  border: 1px solid var(--borda-suave);
  border-radius: var(--raio-card);
  box-shadow: var(--sombra);
}

/* ---------- Cabeçalho ---------- */

.cabecalho {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 68px;
  background: var(--branco);
  border-bottom: 1px solid var(--borda);
  transition: box-shadow .2s ease;
}
.cabecalho--rolou { box-shadow: 0 8px 20px rgba(6, 46, 23, .08); }

.cabecalho__barra {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cabecalho__logo { display: flex; align-items: center; }
.cabecalho__logo img { height: 46px; width: auto; }

.cabecalho__nav { display: none; }

.cabecalho__link {
  text-decoration: none;
  color: #3C4A40;
  padding-bottom: 9px;
  font-size: 15px;
  font-weight: 600;
}
.cabecalho__link--ativa {
  color: var(--verde);
  padding-bottom: 6px;
  border-bottom: 3px solid var(--lima);
}

.cabecalho__cotacao { display: none; }

.cabecalho__acoes-mobile { display: flex; align-items: center; gap: 10px; }

.cabecalho__whats {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--lima);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cabecalho__menu-botao {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--borda-suave);
  background: var(--branco);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.cabecalho__menu-barra {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--verde);
  transition: transform .2s ease, opacity .2s ease;
}
.cabecalho__menu-botao[aria-expanded="true"] .cabecalho__menu-barra:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.cabecalho__menu-botao[aria-expanded="true"] .cabecalho__menu-barra:nth-child(2) { opacity: 0; }
.cabecalho__menu-botao[aria-expanded="true"] .cabecalho__menu-barra:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.cabecalho__painel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--branco);
  border-bottom: 1px solid var(--borda);
  box-shadow: 0 16px 30px rgba(6, 46, 23, .14);
  display: flex;
  flex-direction: column;
  padding: 8px 20px 20px;
}
.cabecalho__painel[hidden] { display: none; }

.cabecalho__painel-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--borda-suave);
  text-decoration: none;
  color: var(--texto);
  font-weight: 600;
  font-size: 17px;
}
.cabecalho__painel-link:last-child { border-bottom: 0; }
.cabecalho__painel-link--ativa { color: var(--verde); }

@media (min-width: 1024px) {
  .cabecalho { height: 88px; }
  .cabecalho__logo img { height: 60px; }
  .cabecalho__nav { display: flex; align-items: center; gap: 28px; }
  .cabecalho__cotacao { display: inline-flex; }
  .cabecalho__acoes-mobile { display: none; }
  .cabecalho__painel { display: none !important; }
}

/* ---------- Rodapé ---------- */

.rodape {
  background: var(--verde-escuro);
  color: var(--rodape-texto);
  padding: 52px 0 32px;
}
.rodape a { color: var(--rodape-texto); text-decoration: none; }
.rodape a:hover { color: var(--branco); }

.rodape__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.rodape__logo img { height: 58px; width: auto; }

.rodape__descricao { margin-top: 14px; font-size: 15px; line-height: 1.6; }

.rodape__rotulo { margin: 0 0 14px; color: var(--branco); }
.rodape__rotulo--redes { display: none; }

.rodape__lista { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.rodape__lista .rodape__destaque { color: var(--branco); font-weight: 600; }

.rodape__coluna--nav { display: none; }

.rodape__sociais { display: flex; gap: 10px; margin-top: 22px; }

.rodape__social {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--rodape-borda-forte);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rodape__termos {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--branco);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.rodape__base {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--rodape-borda);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rodape__legal {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 14px;
  background: rgba(141, 198, 63, .12);
  border: 1px solid var(--rodape-borda);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--lima);
}

.rodape__copyright { font-size: 13px; line-height: 1.5; }

@media (min-width: 1024px) {
  .rodape { padding: 72px 0 36px; }
  .rodape__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px; }
  .rodape__logo img { height: 70px; }
  .rodape__rotulo--redes { display: block; }
  .rodape__coluna--nav { display: block; }
  .rodape__sociais { margin-top: 0; }
  .rodape__base {
    margin-top: 48px;
    padding-top: 24px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
  .rodape__legal { border-radius: 999px; padding: 9px 16px; font-size: 13px; }
  .rodape__copyright { text-align: right; font-size: 14px; }
}

/* ---------- Botão flutuante do WhatsApp ---------- */

@keyframes pulso-whats {
  0%, 88%, 100% { transform: scale(1); }
  94% { transform: scale(1.12); }
}

.whats-flutuante {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--lima);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sombra);
  animation: pulso-whats 4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .whats-flutuante { animation: none; }
}
