/* ============================= */
/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ============================= */
/* BODY */
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color:  #f5f5f5;
  background-image: url('../img/fundo.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #222;
}

/* ============================= */
/* HEADER ULTRA-COMPACTO */
header {
  display: flex;
  justify-content: flex-start; /* logo e menu juntos */
  align-items: center;
  padding: 8px 2%;
  background: linear-gradient(90deg, #b71c1c, #d50000);
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

header img { 
  width: 130px;
  display: block;
}

nav {
  margin-left: 10px; /* logo próxima do menu */
}

nav ul {
  list-style: none;
  display: flex;
  gap: 6px; /* itens do menu bem próximos */
}

nav a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
  position: relative;
  transition: 0.3s ease;
}

nav a::after {
  content: "";
  width: 0%;
  height: 2px;
  background: #fff;
  position: absolute;
  bottom: -2px;
  left: 0;
  transition: 0.3s;
}

nav a:hover::after {
  width: 100%;
}

/* ============================= */
/* TÍTULOS */
h1, h2, h3 {
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

/* ============================= */
/* RASTREAMENTO */
.rastreamento {
  margin: 15px auto;
  width: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  background: #fff;
  padding: 15px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.rastreamento-imagem img {
  width: 200px;
  animation: dirigir 1.5s ease-out forwards;
}

.rastreamento-info { 
  max-width: 300px;
  color: #b71c1c;
}

.rastreamento-info p {
  margin-top: 5px;
  color: #555;
  line-height: 1.4;
  font-size: 13px;
}

/* ============================= */
/* DOWNLOAD */
.download-section {
  margin: 15px auto;
  width: 90%;
  background: linear-gradient(135deg, #b71c1c, #d50000);
  color: #fff;
  padding: 25px 15px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.download-section h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.btn-download {
  margin-top: 8px;
  background: #fff;
  color: #d50000;
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.aviso {
  font-size: 12px;
  margin-top: 5px;
  opacity: 0.9;
}

/* ============================= */
/* SUPORTE */
.suporte-section {
  margin: 15px auto;
  width: 90%;
  background: #fff;
  color: #b71c1c;
  padding: 15px;
  text-align: center;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.btn {
  background: linear-gradient(90deg, #b71c1c, #d50000);
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

.btn:hover { 
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

/* ============================= */
/* FOOTER */
footer {
  margin-top: 15px;
  text-align: center;
  padding: 10px;
  background: linear-gradient(90deg, #b71c1c, #d50000);
  color: #fff;
  font-size: 13px;
}

.rodape-mensagem {
  margin-top: 3px;
  opacity: 0.9;
}

/* ============================= */
/* ANIMAÇÃO VAN */
@keyframes dirigir {
  from { transform: translateX(-300px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ============================= */
/* TEXTO ANIMADO */
.texto-animado {
  overflow: hidden;
  border-right: 0.15em solid #d50000;
  white-space: nowrap;
  width: 0;
  margin: 15px auto;
  text-align: center;
  animation: digitar 3s steps(30, end) forwards, piscarCursor 0.7s step-end infinite;
}

@keyframes digitar {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes piscarCursor {
  50% { border-color: transparent; }
}

/* ============================= */
/* RESPONSIVO */
@media (max-width: 768px) {

  header {
    flex-direction: column;
    gap: 6px;
    padding: 8px 3%;
  }

  nav {
    margin-left: 0;
  }

  nav ul {
    flex-direction: column;
    gap: 5px;
    align-items: center;
  }

  .rastreamento {
    flex-direction: column;
    padding: 10px;
  }

  .rastreamento-imagem img {
    width: 160px;
  }

  .download-section,
  .suporte-section {
    width: 95%;
    padding: 15px 8px;
  }
}
