* {
  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;
}

.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%;
}

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;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 4px;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--preto-suave); /* Usa a cor suave do seu tema */
  margin: 3px 0;
  transition: 0.3s;
}

/* Seções principais */
/* Configuração global da seção em produtos */
section {
  padding: 100px 0 80px;
  scroll-margin-top: 80px;
}

h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.2rem;
  color: #333;
  position: relative;
  display: inline-block;
}

h2::before {
  content: "";
  position: absolute;
  left: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 30px;
  background-color: #ff6f00;
}

/* Cards de Produtos */
.produtos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.produto-card {
  background: white;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.produto-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.produto-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #333;
  font-weight: bold;
}

.produto-card p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.5;
  flex-grow: 1;
}

.btn-saiba-mais {
  display: block;
  width: 100%;
  padding: 12px;
  background-color: #6c757d;
  color: white;
  text-align: center;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
  margin-top: auto;
}

.btn-saiba-mais:hover {
  background-color: #5a6268;
}

.produtos-actions {
  margin-top: 30px;
  text-align: center;
}

.btn-pdf {
  display: inline-block;
  padding: 12px 28px;
  background: var(--laranja);
  color: #fff;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 0.18s ease,
    transform 0.12s ease;
}

.btn-pdf:hover {
  background: var(--laranja-escuro);
  transform: translateY(-2px);
}

/* Modal de Detalhes */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-content {
  background: white;
  padding: 40px;
  border-radius: 15px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
}

.modal-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.modal-header::before {
  content: "";
  position: absolute;
  left: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 30px;
  background-color: #ff6f00;
}

.modal-header h2 {
  font-size: 2rem;
  margin: 0;
  color: #333;
}

.modal-body {
  margin-bottom: 30px;
}

.modal-body p {
  margin-bottom: 20px;
  color: #555;
}

.modal-list {
  margin: 20px 0;
}

.modal-list h4 {
  margin-bottom: 10px;
  color: #333;
  font-weight: 600;
}

.modal-list ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.modal-list li {
  margin-bottom: 5px;
  color: #555;
}

.modal-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-modal {
  padding: 15px 30px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s ease;
  flex: 1;
  min-width: 200px;
}

.btn-cat {
  background-color: #6c757d;
  color: white;
}

.btn-cat:hover {
  background-color: #5a6268;
}

.btn-cotacao {
  background-color: #ff6f00;
  color: white;
}

.btn-cotacao:hover {
  background-color: #e66100;
}

/* 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) {
  .nav-links {
    gap: 15px;
    font-size: 0.95rem;
  }

  .produtos-grid {
    grid-template-columns: 1fr;
  }

  .modal-content {
    padding: 25px;
    max-width: 95%;
  }

  .modal-buttons {
    flex-direction: column;
  }

  .btn-modal {
    min-width: 100%;
  }

  /* Configuração do menu hamburguer */
  /* Simbolo do menu */
  .hamburger {
    display: flex;
    align-items: center;
    margin-top: 1px; /* 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;
  }

  /* Estilo dos links no menu mobile */
  .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); /* Usa a cor suave do tema */
  }
}
