/* ==========================================================================
   Biofarma Hortolândia — site.css
   Estilos dos recursos de conversão/medição: telefone no header, badge
   "Aberto agora", banner de cookies e botão flutuante. IDV oficial:
   azul #140376, verde #114820, flat.
   ========================================================================== */

/* --- Rolagem suave para âncoras (#como-funciona, #servicos etc.) ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* --- Telefone no header --------------------------------------------------- */
.bf-tel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 600;
  margin-left: 18px;
  white-space: nowrap;
}
.bf-tel:hover { color: #fff; }
/* Com o menu completo de 8 itens, o número escrito não cabe na barra em nenhuma
   largura. Fica só o ícone, que continua clicável e tem o número no aria-label.
   O número por extenso segue visível no rodapé, na home e na página de contato. */
.bf-tel-num { display: none; }
.bf-tel { margin-left: 10px; padding: 8px; }
/* os links do menu nunca quebram linha dentro da barra */
.bf-nav-links a { white-space: nowrap; }

/* --- Badge "Aberto agora" ------------------------------------------------- */
.bf-open-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-left: 16px;
  white-space: nowrap;
}
.bf-open-badge .bf-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9aa3b5;          /* cinza = fechado */
  flex-shrink: 0;
}
.bf-open-badge.bf-open .bf-dot { background: #3CB55B; }  /* verde = aberto */
@media (max-width: 1400px) {
  .bf-open-badge { display: none; }   /* header enxuto quando não sobra espaço */
}

/* --- Banner de cookies ---------------------------------------------------- */
#bf-cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  background: #140376;
  color: #fff;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
#bf-cookie a { color: #CFDAD2; text-decoration: underline; }
#bf-cookie button {
  background: #114820;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 9px 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease-out, filter 0.2s ease-out;
}
#bf-cookie button:hover { transform: scale(1.03); filter: brightness(0.92); }
#bf-cookie button:active { transform: scale(0.98); }

/* --- Botão flutuante do WhatsApp ------------------------------------------ */
#bf-float {
  transition: opacity 0.3s ease-out, transform 0.2s ease-out, bottom 0.3s ease-out;
}
#bf-float.bf-float-hidden {
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  #bf-float, #bf-cookie button { transition: none !important; }
}

/* --- Páginas de cidade (/hortolandia, /sumare, /campinas, /paulinia, /monte-mor) --- */
.cp-body { margin: 0; font-family: "Manrope", system-ui, sans-serif; color: #1F2430; background: white; }
.cp-nav { background: #140376; padding: 0 24px; }
.cp-nav-inner { max-width: 1200px; margin: 0 auto; height: 72px; display: flex; align-items: center; gap: 18px; }
.cp-nav-links { display: flex; flex-wrap: nowrap; gap: 18px; font-size: 13px; font-weight: 500; margin-left: auto; }
.cp-nav-links a { color: rgba(255,255,255,0.85); white-space: nowrap; }
.cp-nav-links a:hover { color: #fff; }
.cp-btn { display: inline-flex; align-items: center; gap: 8px; background: #114820; color: white; font-weight: 600; font-size: 13px; padding: 10px 20px; border-radius: 999px; white-space: nowrap; }
.cp-hero { background: #140376; padding: 56px 24px 64px; }
.cp-hero-inner { max-width: 860px; margin: 0 auto; }
.cp-kicker { font-weight: 700; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #CFDAD2; margin: 0 0 14px; }
.cp-h1 { font-family: 'Exo 2', sans-serif; font-weight: 800; font-size: clamp(30px, 4.5vw, 46px); line-height: 1.12; letter-spacing: -0.02em; color: white; margin: 0 0 18px; }
.cp-hero p { font-size: 17px; line-height: 1.75; color: #D0CDE4; margin: 0; max-width: 640px; }
.cp-section { padding: 60px 24px; }
.cp-section.alt { background: #F4F6FA; }
.cp-inner { max-width: 860px; margin: 0 auto; }
.cp-h2 { font-family: 'Exo 2', sans-serif; font-weight: 700; font-size: 28px; letter-spacing: -0.02em; color: #140376; margin: 0 0 18px; }
.cp-section p, .cp-section li { font-size: 15.5px; line-height: 1.8; color: #545A6B; }
.cp-cred { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.cp-cred div { background: #F4F6FA; border-radius: 12px; padding: 20px 16px; text-align: center; }
.cp-cred b { display: block; font-family: 'Exo 2', sans-serif; font-weight: 800; font-size: 24px; color: #140376; margin-bottom: 4px; }
.cp-cred span { font-size: 12.5px; color: #545A6B; }
.cp-steps { counter-reset: passo; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 8px; }
.cp-steps div { position: relative; padding-top: 52px; }
.cp-steps div::before { counter-increment: passo; content: counter(passo); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%; background: #140376; color: white; font-family: 'Exo 2', sans-serif; font-weight: 800; font-size: 17px; display: flex; align-items: center; justify-content: center; }
.cp-steps b { display: block; font-family: 'Exo 2', sans-serif; font-size: 16px; color: #140376; margin-bottom: 6px; }
.cp-steps p { font-size: 14px; margin: 0; }
.cp-quote { background: #F4F6FA; border-left: 3px solid #114820; border-radius: 0 12px 12px 0; padding: 24px 26px; margin-top: 8px; }
.cp-quote p { font-size: 16px; font-style: italic; color: #1F2430; margin: 0 0 10px; }
.cp-quote span { font-size: 13.5px; font-weight: 600; color: #545A6B; }
.cp-faq details { border-bottom: 1px solid #DEE0E8; }
.cp-faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-family: 'Exo 2', sans-serif; font-weight: 600; font-size: 16.5px; color: #140376; }
.cp-faq summary::-webkit-details-marker { display: none; }
.cp-faq details p { margin: 0 0 18px; }
.cp-cta { background: #140376; text-align: center; padding: 64px 24px; }
.cp-cta h2 { font-family: 'Exo 2', sans-serif; font-weight: 800; font-size: 32px; color: white; margin: 0 0 12px; letter-spacing: -0.02em; }
.cp-cta p { color: #D0CDE4; font-size: 16px; margin: 0 0 28px; }
.cp-cta .cp-btn { font-size: 16px; padding: 15px 32px; }
.cp-footer { background: #0D0250; padding: 32px 24px; font-size: 12px; color: rgba(255,255,255,0.4); text-align: center; line-height: 1.8; }
.cp-footer a { color: #D0CDE4; }
/* menu hamburguer das paginas com cp-nav (cidades, como-fazemos, privacidade) */
.cp-toggle { display: none; background: none; border: none; cursor: pointer; color: white; padding: 8px; align-items: center; justify-content: center; flex-shrink: 0; margin-left: 6px; }
.cp-menu { display: none; flex-direction: column; background: rgba(13,2,80,0.98); border-top: 1px solid rgba(255,255,255,0.08); }
.cp-menu.aberto { display: flex; }
.cp-menu a { display: block; padding: 15px 24px; font-size: 15px; font-weight: 500; color: rgba(255,255,255,0.85); border-bottom: 1px solid rgba(255,255,255,0.06); }
.cp-menu a:last-child { color: #CFDAD2; font-weight: 600; border-bottom: none; }

@media (max-width: 1180px) {
  .cp-nav-links { display: none; }
  .cp-toggle { display: flex; }
}
@media (max-width: 760px) {
  .cp-cred, .cp-steps { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   AJUSTES DE CELULAR
   Corrigem tres problemas medidos em 375-412px:
   1. A barra do topo das paginas do runtime mantinha o padding de desktop
      (64px de cada lado), o que empurrava o botao de WhatsApp para fora da
      tela e deixava o hamburguer completamente inacessivel.
   2. A mesma barra nas paginas de cidade encostava o hamburguer na borda.
   3. Os tres numeros do hero ficavam em colunas de larguras diferentes,
      porque "1fr" cresce junto com o conteudo. minmax(0,1fr) iguala.
   ========================================================================== */

@media (max-width: 900px) {
  /* a barra passa a usar a mesma margem lateral do conteudo */
  [data-bf-nav] > div { padding-left: 20px !important; padding-right: 20px !important; }
  /* o CTA de texto sai da barra no celular: o botao flutuante e o item
     "Enviar receita via WhatsApp" do menu ja cobrem a acao, e sem ele o
     hamburguer volta para dentro da tela */
  [data-bf-nav] > div > a[href*="wa.me"] { display: none !important; }
  [data-bf-nav] img { height: 32px !important; }
  .bf-tel { margin-left: 4px !important; }
}

@media (max-width: 760px) {
  .cp-nav-inner > .cp-btn { display: none; }
  .cp-nav-inner img { height: 32px !important; }
  .cp-toggle { margin-left: auto; }
}

@media (max-width: 768px) {
  /* colunas de numeros realmente iguais */
  .bf-stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .bf-stats-grid > div { padding-left: 6px !important; padding-right: 6px !important; }
  .bf-stats-grid > div > div:first-child { font-size: 28px !important; }
  .bf-stats-grid > div > div:last-child { font-size: 11.5px !important; line-height: 1.4 !important; }
  /* o mesmo bloco nas paginas de cidade e no como-fazemos */
  .cp-cred b { font-size: 20px !important; }
  .cp-cred span { font-size: 11.5px !important; }
}
