/* RESET BÁSICO */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* REMOVE SCROLL LATERAL */
html, body {
  width: 100%;
  overflow-x: hidden;
}

/* VARIÁVEIS */
:root {
  --primary: #e30613;
  --dark: #0f0f0f;
  --gray: #1a1a1a;
  --light: #ffffff;
}

/* BASE */
body {
  font-family: 'Montserrat', sans-serif;
  background-color: #000;
  color: var(--light);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* CONTAINER */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER */
.header {
  background-color: #222020;
  border-bottom: 1px solid #d4c3c3;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.95rem;
  white-space: nowrap;
}

.logo-img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-line strong {
  font-weight: 820;
  font-size: 1.2rem;
}

/* MENU */
.menu {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 1.2rem;
}

.menu a {
  position: relative;
  opacity: 0.85;
  padding-bottom: 6px;
  transition: 0.3s;
}

/* LINHA ANIMADA */
.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 3px;
  background: var(--primary);
  transition: 0.3s;
}

.menu a:hover {
  color: var(--primary);
  opacity: 1;
}

.menu a:hover::after {
  width: 100%;
}

/* BOTÃO CONTATO */
.btn-contato {
  padding: 6px 14px;
  border: 1px solid var(--primary);
  border-radius: 20px;
  color: var(--primary);
  font-weight: 600;
  transition: 0.3s;
}

.btn-contato:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 14px #e3061399;
}

/* HERO */
.hero {
  position: relative;
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
}

/* VIDEO FUNDO */
.hero video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* OVERLAY ESCURO */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: -1;
}

/* CONTEÚDO HERO */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 500px;
  margin-right: 80px;
}

/* TEXTO HERO */
.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* BOTÕES */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 30px;
  font-weight: 600;
  transition: 0.3s;
}

.btn:hover {
  background: #ff1a1a;
  transform: translateY(-2px);
}

/* CARDS */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 80px 0;
}

.card {
  background: var(--gray);
  padding: 28px;
  border-radius: 14px;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card.dark {
  background: #000;
  border: 1px solid #1f1f1f;
}

.card h3 {
  margin-bottom: 14px;
  font-weight: 700;
}

.card p,
.card li {
  font-size: 0.95rem;
  opacity: 0.9;
}

.card ul {
  padding-left: 18px;
}

/* FORM */
.card form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card input {
  padding: 12px;
  border-radius: 6px;
  border: none;
}

.card button {
  padding: 12px;
  background: var(--primary);
  border: none;
  border-radius: 6px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.card button:hover {
  background: #ff1a1a;
}

/* FOOTER */
.footer {
  background: #e30606f3;
  border-top: 1px solid #1f1f1f;
  padding: 20px 0;
  font-size: 0.95rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  opacity: 0.85;
}

/* --- RESPONSIVO CORRIGIDO (TUDO NA ESQUERDA) --- */
@media (max-width: 768px) {
  
  /* 1. Ajusta o topo para alinhar tudo no início (esquerda) */
  .nav {
    display: flex !important;
    justify-content: flex-start !important; /* Alinha os itens no começo */
    align-items: center !important;
    padding: 10px 0;
    gap: 15px; /* Espaço entre o botão e a logo */
  }

  .logo {
    font-size: 0.8rem;
    white-space: normal;
    order: 1; /* Logo após o botão */
  }

  .logo-img {
    width: 60px;
    height: 60px;
  }

  /* 2. O BOTÃO NO LADO ESQUERDO */
  .menu-toggle {
    display: flex !important;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1100; 
    order: -1; /* Força o botão a aparecer antes da logo */
    padding: 10px;
  }

  .menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: #fff;
    display: block;
    transition: 0.3s;
  }

  /* 3. Transforma o menu em uma Barra Lateral vindo da ESQUERDA */
  .menu {
    position: fixed;
    top: 0;
    left: -100%; /* Começa escondido totalmente à esquerda */
    right: auto; /* Garante que não haja conflito com a direita */
    width: 280px;
    height: 100vh;
    background-color: #1a1a1a;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.5s ease-in-out;
    z-index: 1000;
    box-shadow: 10px 0 20px rgba(0,0,0,0.5); /* Sombra projetada para a direita */
    gap: 0 !important;
  }

  /* Quando o JavaScript ativa, o menu desliza para dentro */
  .menu.active {
    left: 0;
  }

  /* Links dentro da barra lateral */
  .menu a {
    font-size: 1.1rem !important;  /* Diminuímos de 1.4 para 1.1 */
    margin: 15px 0;               /* Diminuímos um pouco o espaço entre os links */
    width: 100%;
    text-align: center;
    padding: 8px;                 /* Ajuste fino do clique */
    display: block !important;
    opacity: 1 !important;
  }

  /* Remove a linha vermelha animada no celular */
  .menu a::after {
    display: none;
  }

  /* Ajustes do Banner Principal no celular */
  .hero {
    justify-content: center;
    text-align: center;
  }

  .hero-content {
    margin-right: 0;
    padding: 20px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }
}