/* styles.css (COMPLETO) */

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: Arial, Helvetica, sans-serif;
  background:#f4f6f8;
  color:#111;
}

.container{
  max-width:1200px;
  margin:0 auto;
  padding:18px;
}

/* HEADER */
#main-header{
  background:linear-gradient(180deg,#0b2c4a,#071d33);
  padding:10px 0; /* altura menor */
  color:#fff;
}
.header-inner{display:flex;align-items:center;justify-content:center}
.mobile-btn{display:none}

.split-nav{
  width:100%;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:10px;
}
.menu-left{justify-self:start}
.menu-right{justify-self:end}
.menu-left a,.menu-right a{
  color:#fff;
  text-decoration:none;
  font-weight:700;
  padding:8px 10px;
  border-radius:10px;
}
.menu-left a:hover,.menu-right a:hover{background:rgba(255,255,255,.12)}

.logo-wrap{justify-self:center}
#logo{display:block}

/* BONUS */
.bonus{
  background:#ffd84d;
  border-radius:14px;
  padding:12px 14px;
  margin:18px auto;
  font-weight:800;
  display:flex;
  gap:10px;
  justify-content:space-between;
  align-items:center;
  box-shadow:0 10px 24px rgba(0,0,0,.12);
}
.bonus a{
  background:#0b2c4a;
  color:#fff;
  padding:9px 12px;
  border-radius:10px;
  text-decoration:none;
  font-weight:800;
}
.bonus a:hover{filter:brightness(1.05)}

/* HERO */
.hero{
  background:#fff;
  border-radius:16px;
  padding:18px;
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:16px;
  box-shadow:0 10px 26px rgba(0,0,0,.08);
}
.hero h1{margin:0 0 10px;font-size:28px;line-height:1.2}
.hero h1 small{display:block;font-size:14px;opacity:.7;margin-bottom:6px}
.hero p{margin:0 0 12px}
.hero-actions{display:flex;gap:10px;flex-wrap:wrap}

.hero-side{
  background:#f6f8fb;
  border:1px solid #e7edf5;
  border-radius:14px;
  padding:14px;
}
.hero-side h2{margin:0 0 10px;font-size:18px}
.hero-side ul{margin:0;padding-left:18px}

/* BOTÕES */
.btn{
  display:inline-block;
  padding:10px 14px;
  border-radius:12px;
  text-decoration:none;
  font-weight:800;
}
.btn-primary{background:#0b2c4a;color:#fff}
.btn-outline{border:2px solid #0b2c4a;color:#0b2c4a;background:transparent}

/* SEÇÃO / TEXTO */
.section{margin-top:26px}
.muted{color:#556;}

/* GRID + CARDS */
.grid{
  margin-top:16px;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:18px;
}
.card{
  background:#fff;
  border-radius:16px;
  padding:14px;
  box-shadow:0 10px 26px rgba(0,0,0,.08);
}
.card img{
  width:100%;
  height:160px;
  object-fit:contain;
  display:block;
  border-radius:12px;
  background:#fff;
}

/* ===== PILL BASE (JÁ EXISTENTE) ===== */
.pill{
  display:inline-block;
  margin-top:10px;
  padding:6px 10px;
  border-radius:999px;
  background:#eef3f8;
  font-weight:800;
  font-size:12px;
  color:#0b2c4a;
}

/* ===== ALTERAÇÃO PEDIDA (STATUS) ===== */
/* DISPONÍVEL = VERDE */
.pill.disponivel{
  background:#e7f7ee;
  color:#0f7a3d;
  border:1px solid #bfe8cf;
}

/* INDISPONÍVEL = VERMELHO */
.pill.indisponivel{
  background:#fde8e8;
  color:#b91c1c;
  border:1px solid #f5bcbc;
}
/* ===== FIM DA ALTERAÇÃO ===== */

.card h3{margin:10px 0 6px}
.card a{
  display:block;
  margin-top:12px;
  background:#0b2c4a;
  color:#fff;
  text-align:center;
  padding:10px;
  border-radius:12px;
  text-decoration:none;
  font-weight:900;
}

/* FOOTER (base antiga mantida) */
.footer{
  text-align:center;
  padding:18px 0;
  color:#667;
  margin-top:24px;
}

/* MOBILE */
@media (max-width:768px){
  .hero{grid-template-columns:1fr}
  .split-nav{grid-template-columns:1fr;justify-items:center}
  .menu-left,.menu-right{justify-self:center}
}

/* ================================================= */
/* ===== FOOTER ELEGANTE (ADICIONADO) =============== */
/* ================================================= */

.footer{
  margin-top: 40px;
  background: #071d33;
  color:#fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}

.footer-top{
  padding: 34px 26px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 26px;
  align-items: start;
  background: linear-gradient(180deg, rgba(15,59,102,.35), rgba(7,29,51,0));
}

.footer-col h3{
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: .2px;
}
.footer-col h4{
  margin: 0 0 10px;
  font-size: 15px;
  opacity: .95;
}

.footer-col p{
  margin: 0;
  color: rgba(255,255,255,.82);
  line-height: 1.6;
  font-size: 14px;
}

.footer-badges{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 14px;
}

.f-badge{
  background: rgba(255,216,77,.14);
  border: 1px solid rgba(255,216,77,.22);
  color: #ffd84d;
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
}

.footer-contact{
  margin-bottom: 12px;
}

.footer-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 11px 14px;
  border-radius: 12px;
  background: #ffd84d;
  color:#071d33;
  font-weight: 900;
  text-decoration: none;
  transition: .2s ease;
}

.footer-btn:hover{
  transform: translateY(-1px);
  filter: brightness(.98);
}

.footer-bottom{
  padding: 14px 18px;
  border-top: 1px solid rgba(255,255,255,.14);
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
  color: rgba(255,255,255,.7);
  font-size: 13px;
  background: rgba(0,0,0,.08);
}

.footer-dot{ opacity: .5; }

@media (max-width: 900px){
  .footer-top{
    grid-template-columns: 1fr;
    padding: 26px 18px;
  }
  .footer{
    border-radius: 14px;
  }
}

/* AUMENTA A ALTURA DO OVERLAY EM 200% */
.css-g5y9jx.r-kemksi.r-1p0dtai.r-1d2f490.r-6pziz6.r-u8s1d.r-zchlnj.r-ipm5af {
  height: 200% !important;
}

/* (OBRIGATÓRIO) - HTML dentro do CSS quebra no celular -> comentado, não removido */
/* <div class="pill disponivel">São Paulo • Disponível</div> */
/* <div class="pill indisponivel">Paraná • Indisponível</div> */

/* ===== ALTERAÇÃO PEDIDA (STATUS) ===== */
/* DISPONÍVEL = VERDE */
.pill.disponivel{
  background:#e7f7ee;
  color:#0f7a3d;
  border:1px solid #bfe8cf;
}

/* INDISPONÍVEL = VERMELHO */
.pill.indisponivel{
  background:#fde8e8;
  color:#b91c1c;
  border:1px solid #f5bcbc;
}

/* ===== FIM FOOTER ELEGANTE ===== */

/* ===================================================== */
/* ===== CORREÇÃO RESPONSIVA (ADICIONADO) ============== */
/* ===================================================== */

@media (max-width: 768px){

  /* evita “deformar” por estouro lateral */
  html, body{
    width: 100%;
    overflow-x: hidden;
  }

  /* container mais adequado no celular */
  .container{
    padding: 14px;
  }

  /* HEADER: organiza menu + logo no mobile */
  .split-nav{
    grid-template-columns: 1fr;
    gap: 8px;
    justify-items: center;
  }

  .menu-left, .menu-right{
    justify-self: center; /* mantém seu padrão */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }

  .menu-left a, .menu-right a{
    font-size: 14px;
    padding: 8px 10px;
  }

  #logo{
    width: 150px;
    height: auto;
  }

  /* BONUS: quebra certinho no celular */
  .bonus{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .bonus a{
    width: 100%;
    text-align: center;
  }

  /* HERO: evita “esticado” e encaixa texto/botões */
  .hero{
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .hero h1{
    font-size: 24px;
    line-height: 1.2;
  }

  .hero p{
    font-size: 15px;
    line-height: 1.5;
  }

  .hero-actions{
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .hero-actions .btn{
    width: 100%;
    text-align: center;
  }

  /* GRID: 1 coluna no celular */
  .grid{
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* imagens não ficam “amassadas” */
  .card img{
    height: 190px;
    object-fit: contain;
  }

  /* footer elegante já tem 900px, reforça no 768px */
  .footer-top{
    grid-template-columns: 1fr;
  }
}

/* telas bem pequenas (iPhone SE / Android pequeno) */
@media (max-width: 380px){
  .hero h1{font-size: 22px;}
  #logo{width: 140px;}
  .menu-left a, .menu-right a{font-size: 13px; padding: 7px 9px;}
}

/* ===================================================== */
/* ===== FIX DEFINITIVO (MOBILE): SEM “PUXAR PRO LADO” == */
/* ===== E BOTÕES WHATS 100% DENTRO DO AZUL ============ */
/* ===================================================== */

@media (max-width: 768px){

  /* corta qualquer overflow horizontal real */
  html, body{
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  /* o footer do index.html é inline (sem classes) -> força por seletor também */
  footer{
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  /* grid do footer (primeira div do footer) vira 1 coluna */
  footer > div{
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* o container grid do topo do footer */
  footer > div[style*="display:grid"]{
    grid-template-columns: 1fr !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    overflow: hidden !important;
  }

  /* evita colunas empurrarem a largura */
  footer > div[style*="display:grid"] > div{
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* e-mail nunca estoura */
  footer a[href^="mailto:"],
  footer a,
  footer p{
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    max-width: 100% !important;
  }

  /* botões do Whats do footer (links wa.me) sempre dentro */
  footer a[href^="https://wa.me/"]{
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
  }

  /* botão flutuante (pode causar overflow) */
  .wptwa-toggle{
    max-width: calc(100% - 24px) !important;
  }

  /* texto do flutuante não pode empurrar */
  .wptwa-text{
    max-width: calc(100vw - 110px) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
}
/* ===================================================== */
/* ===== FIX FINAL: FOOTER 1 COLUNA NO MOBILE ========== */
/* ===== E WHATS 100% DENTRO DO AZUL =================== */
/* ===================================================== */

.footer-top{
  grid-template-columns: 1.2fr 1fr 1fr; /* desktop */
}

/* MOBILE */
@media (max-width: 768px){
  .footer-top{
    grid-template-columns: 1fr !important; /* força 1 coluna */
  }

  .footer-col{
    min-width: 0 !important;
    max-width: 100% !important;
  }

  /* e-mail e textos longos não estouram */
  .footer a, .footer p{
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    max-width: 100% !important;
  }

  /* botões whatsapp dentro do azul */
  .footer-btn{
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
  }
}

