/* ===== Will Transportes Brasil - style.css ===== */

:root {
  --azul: #296DBA;
  --azul-claro: #71B5E6;
  --azul-escuro: #1a3a5c;
  --texto: #5e5e5e;
  --vermelho: #ff0000;
  --branco: #ffffff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--texto);
  margin: 0;
  padding: 0;
  background: var(--branco);
  line-height: 1.7;
  padding-top: 84px; /* espaço para header fixo */
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; color: #333; }
a { text-decoration: none; }
img { max-width: 100%; height: auto; }

.txt-azul { color: var(--azul); }
.txt-azul-claro { color: var(--azul-claro); }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--branco);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  z-index: 1030;
  height: 84px;
  display: flex;
  align-items: center;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.site-header .logo img { height: 60px; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  align-items: center;
}
.main-nav a {
  color: var(--texto);
  font-weight: 600;
  font-size: 15px;
  transition: color .2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--azul); }

.btn-cotacao {
  background: var(--vermelho);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 4px;
  font-weight: 700;
  transition: background .2s, transform .2s;
  display: inline-block;
}
.btn-cotacao:hover { background: #cc0000; transform: translateY(-2px); color:#fff; }

.header-right { display: flex; align-items: center; gap: 24px; }

/* Hamburguer */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: var(--azul);
  cursor: pointer;
}

/* ===== Botões ===== */
.btn-vermelho {
  background: var(--vermelho);
  color: #fff;
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 700;
  display: inline-block;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn-vermelho:hover { background: #cc0000; color:#fff; transform: translateY(-2px); }

.btn-azul {
  background: var(--azul);
  color: #fff;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 700;
  display: inline-block;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn-azul:hover { background: #1f5591; color:#fff; transform: translateY(-2px); }

/* ===== Seções ===== */
section { padding: 80px 0; }
.section-title { font-size: 34px; margin-bottom: 16px; }

/* ===== Hero banner (home) ===== */
.hero-banner {
  height: 550px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--azul);
  padding: 0;
}

/* ===== Hero interno (páginas internas) ===== */
.hero-interno {
  background: var(--azul);
  color: #fff;
  text-align: center;
  padding: 90px 0;
  min-height: 300px;
  display: flex;
  align-items: center;
}
.hero-interno h1 { color: #fff; font-size: 40px; }
.hero-interno .icone-hero { max-width: 70px; margin-bottom: 20px; }
.hero-interno .logo-branco { max-width: 220px; margin: 24px auto 0; display:block; }

/* ===== Seção apresentação ===== */
.apresentacao .icone-rota { max-width: 60px; margin-bottom: 16px; }
.apresentacao img.foto { border-radius: 8px; }

/* ===== Estatísticas ===== */
.stats-section { padding: 0; }
.stat-box {
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 80px 40px;
  text-align: center;
  position: relative;
  background-color: var(--azul);
}
.stat-box::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(41,109,186,0.75);
}
.stat-box .stat-inner { position: relative; z-index: 1; }
.stat-box .stat-num { font-size: 48px; font-weight: 700; color:#fff; margin: 0; }
.stat-box .stat-label { font-size: 20px; color:#fff; }

/* ===== Cards serviços ===== */
.servico-card {
  background: #fff;
  border: 1px solid #eee;
  border-bottom: 3px solid transparent;
  border-radius: 8px;
  padding: 36px 24px;
  text-align: center;
  height: 100%;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.servico-card:hover {
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
  transform: translateY(-5px);
  border-bottom-color: var(--azul);
}
.servico-card .icone { font-size: 44px; color: var(--azul); margin-bottom: 16px; }
.servico-card h4 { margin-bottom: 12px; }

/* ===== Frota ===== */
.frota-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px 14px;
  text-align: center;
  height: 100%;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  transition: box-shadow .25s, transform .25s;
}
.frota-card:hover { box-shadow: 0 10px 24px rgba(0,0,0,0.15); transform: translateY(-5px); }
.frota-card img { height: 90px; object-fit: contain; margin-bottom: 12px; }
.frota-card .veiculo-nome { font-weight: 700; color:#333; display:block; }
.frota-card .veiculo-cap { color: var(--azul); font-weight: 600; }

/* ===== Seção azul ===== */
.bg-azul { background: var(--azul); color: #fff; }
.bg-azul h1, .bg-azul h2, .bg-azul h3, .bg-azul h4 { color: #fff; }
.bg-azul-escuro { background: var(--azul-escuro); color: #fff; }
.bg-azul-escuro h1, .bg-azul-escuro h2, .bg-azul-escuro h3 { color:#fff; }

/* ===== Serviços split ===== */
.servico-split {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.servico-split::before {
  content:"";
  position:absolute; inset:0;
  background: rgba(26,58,92,0.85);
}
.servico-split .container { position: relative; z-index: 1; }
.lista-check { list-style: none; padding: 0; }
.lista-check li { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.lista-check li img { width: 22px; height: 22px; }

/* ===== Depoimentos ===== */
.depoimento-card {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  height: 100%;
}
.depoimento-card .aspas { font-size: 50px; color: var(--azul-claro); line-height: 1; font-weight:700; }
.depoimento-card .autor { font-weight: 700; color: var(--azul); margin-top: 16px; }
.depoimento-card .cargo { font-size: 14px; color: var(--texto); }

/* ===== Parceria boxes ===== */
.parceria-box {
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 60px 40px;
  text-align: center;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--azul);
}
.parceria-box::before { content:""; position:absolute; inset:0; background: rgba(41,109,186,0.8); }
.parceria-box .inner { position: relative; z-index: 1; }
.parceria-box img.icone { max-width: 70px; margin-bottom: 20px; }

/* ===== Contato ===== */
.contato-banner {
  background-size: cover;
  background-position: center;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #fff;
}
.contato-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,20,45,0.75) 0%, rgba(4,20,45,0.55) 50%, rgba(4,20,45,0.75) 100%);
}
.contato-banner h1 {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 44px;
  font-weight: 700;
  padding: 10px 32px;
  border-bottom: 3px solid #e30613;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.info-contato .item { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.info-contato .item img { width: 40px; height: 40px; }
.info-contato .item a { color: #fff; }

.form-box {
  background: #fff;
  padding: 36px;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
}
.form-box label { font-weight: 600; color: #333; margin-bottom: 6px; display: block; }
.form-control, .form-select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
  margin-bottom: 18px;
  font-size: 15px;
}
.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--azul);
  box-shadow: 0 0 0 3px rgba(41,109,186,0.15);
}
textarea.form-control { resize: vertical; min-height: 120px; }

/* ===== Alertas de formulário ===== */
.alerta { padding: 14px 18px; border-radius: 6px; margin-bottom: 20px; font-weight: 600; }
.alerta-sucesso { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alerta-erro { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ===== Mapa ===== */
.mapa-embed iframe { width: 100%; height: 400px; border: 0; display: block; }

/* ===== Footer ===== */
.site-footer { background: var(--azul); color: #fff; padding: 60px 0 24px; }
.site-footer h5 { color: #fff; margin-bottom: 18px; font-size: 18px; }
.site-footer a { color: #dbeafe; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer .logo-footer { max-width: 200px; margin-bottom: 16px; }
.site-footer .redes img { margin-right: 8px; transition: transform .2s; }

.site-footer .redes img:hover { transform: translateY(-3px); }
.footer-copy {
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: 14px;
  color: #dbeafe;
}

/* ===== Responsivo ===== */
@media (max-width: 991px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: 84px; right: -100%;
    width: 260px;
    height: calc(100vh - 84px);
    background: #fff;
    box-shadow: -4px 0 16px rgba(0,0,0,0.1);
    transition: right .3s;
    padding: 24px;
    overflow-y: auto;
  }
  .main-nav.open { right: 0; }
  .main-nav ul { flex-direction: column; gap: 20px; align-items: flex-start; }
  .section-title { font-size: 28px; }
  .hero-banner { height: 320px; }
  .stat-box { padding: 60px 24px; }
}

@media (max-width: 575px) {
  body { padding-top: 74px; }
  .site-header { height: 74px; }
  .site-header .logo img { height: 48px; }
  .main-nav { top: 74px; height: calc(100vh - 74px); }
  section { padding: 56px 0; }
  .hero-interno h1 { font-size: 30px; }
  .stat-box .stat-num { font-size: 38px; }
}


/* ===== Botão flutuante do WhatsApp ===== */
.whatsapp-flutuante {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #25D366;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  z-index: 1025;
  transition: transform .2s, box-shadow .2s;
}
.whatsapp-flutuante img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.whatsapp-flutuante:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
}
.whatsapp-flutuante:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #25D366;
}

@media (max-width: 575px) {
  .whatsapp-flutuante {
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
  }
}
