* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Importei as cores pré definidas (que estava presente somente no CSS principal) para agilizar o desenvolvimento do menu hamburguer */
:root {
  --laranja: #ff6f00;
  --laranja-claro: #ff8f45;
  --laranja-escuro: #e66100;
  --cinza-claro: #f8f9fa;
  --cinza-texto: #495057;
  --branco: #ffffff;
  --preto-suave: #212529;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
  /* Empurra todo o conteúdo para baixo do header fixo */
  padding-top: 80px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background-color: rgba(184, 184, 184, 0.582);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  position: fixed;
  top: 0;
  width: 100%;
  height: 90px;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}

.logo {
  display: inline-block;
  line-height: 0;
}

.logo img {
  margin-top: 10px;
  height: 40px;
  max-width: 50%;
  object-fit: contain;
  transform: scale(4);
  transform-origin: left center;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--preto-suave);
  font-weight: 600;
  font-size: 1.05rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--laranja);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--laranja);
}

.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 4px;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: #212529;
  margin: 3px 0;
  transition: 0.3s;
}

section {
  padding: 90px 0;
  scroll-margin-top: 100px;
}

h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.3rem;
  color: var(--preto-suave);
  position: relative;
  display: inline-block;
  font-weight: 700;
  letter-spacing: -0.5px;
}

h2::before {
  content: "";
  position: absolute;
  left: -50px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 36px;
  background: linear-gradient(to bottom, var(--laranja), #ff8c33);
  border-radius: 3px;
}

/* Estilização do compo Contato */
.contato-section {
  background-color: white;
  padding: 60px 0;
}

.contato-container {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.contato-info {
  flex: 1;
  min-width: 300px;
}

.contato-info h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #333;
}

.contato-info p {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.contato-info h4 {
  margin-top: 30px;
  margin-bottom: 15px;
  color: #333;
  font-size: 1.2rem;
}

.contato-info .contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  color: #666;
}

.contato-info .contact-item i {
  color: #ff6f00;
  margin-right: 10px;
  font-size: 1.1rem;
}

.contato-form {
  flex: 1;
  min-width: 300px;
  background: #f9f9f9;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.form-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.form-field {
  flex: 1;
  min-width: 250px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #ff6f00;
  outline: none;
}

.form-field textarea {
  min-height: 100px;
}

.btn-enviar {
  width: 100%;
  margin-top: 10px;
  padding: 15px;
  background-color: #6c757d;
  color: white;
  border: none;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-enviar:hover {
  background-color: #ff6f00;
}

.form-footer {
  margin-top: 20px;
  font-size: 0.9rem;
  color: #888;
  text-align: center;
}

/* Newsletter & Redes Sociais */
/* Inspirado diretamente do site antigo da Starbrax e no e-commerce da AutotraX */
.footer-newsletter {
  background-color: #111;
  color: white;
  padding: 50px 0;
}

.newsletter-container {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  align-items: center;
}

.newsletter-info {
  flex: 1;
  min-width: 300px;
}

.newsletter-info h2 {
  color: white;
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
}

.newsletter-info h2::before {
  content: "";
  position: absolute;
  left: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 30px;
  background-color: #ff6f00;
}

.newsletter-info p {
  color: #ccc;
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: 12px;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  background: white;
}

.newsletter-form button {
  padding: 12px 25px;
  background-color: #6c757d;
  color: white;
  border: none;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  min-width: 120px;
}

.newsletter-form button:hover {
  background-color: #ff6f00;
}

.social-media {
  flex: 1;
  min-width: 250px;
}

.social-media h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.social-media a {
  display: flex;
  align-items: center;
  color: #ccc;
  text-decoration: none;
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

.social-media a:hover {
  color: #ff6f00;
}

.social-media i {
  margin-right: 10px;
  font-size: 1.2rem;
}

/* Footer */
footer {
  background-color: #222;
  color: #fff;
  padding: 40px 0 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer-section h3 {
  color: #ff6f00;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.footer-section p,
.footer-section a {
  color: #ccc;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.8;
}

.footer-section a:hover {
  color: #ff6f00;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #444;
  color: #aaa;
  font-size: 0.95rem;
}

.footer-section.links-rapidos a {
  display: block;
  margin-bottom: 8px;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-section.links-rapidos a:hover {
  color: #fff;
  padding-left: 5px;
}

/* Ícones opcionais (caso deseje marcar os links) */
/* Pré definição, na seção de links rápidos estão presentes "›" para deixar intuitivo e organizado */
.footer-section.links-rapidos a::before {
  content: "›";
  margin-right: 6px;
  color: #aaa;
  transition: color 0.3s ease;
}

.footer-section.links-rapidos a:hover::before {
  color: #fff;
}

/* Responsividade */
/* Quando a tela atingir 768px ou menos, ativará essa configuração de responsividade para mobile */
@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }

  nav {
    padding: 12px 0;
  }

  .nav-links {
    gap: 15px;
    font-size: 0.95rem;
  }

  .contato-container {
    flex-direction: column;
  }

  .form-group {
    flex-direction: column;
  }

  .newsletter-container {
    flex-direction: column;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
  }

  /* Configuração do menu hamburguer */
  /* Simbolo do menu */
  .hamburger {
    display: flex;
    align-items: center;
    margin-top: 12px; /* Ajuste fino para alinhar verticalmente */
  }

  /* Menu de navegação */
  .nav-links {
    position: fixed;
    top: 90px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 90px);
    background-color: var(--laranja-claro);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 2rem;
    transition: left 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1001; /* Certifique-se de que o menu fique acima do conteúdo */
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links a {
    font-size: 1.3rem;
    padding: 12px 0;
    margin: 10px 0;
    color: var(--preto-suave);
    text-decoration: none;
  }

  .nav-links a::after {
    display: none;
  }

  .bar {
    background-color: var(--preto-suave);
  }
}
