/* =====================================================
   GLOBAL.CSS — Millenium PDR
   Usado por: todas as páginas
   ===================================================== */

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

html, body {
  overflow-x: hidden;
  color: #333;
}

/* ===================== HEADER ===================== */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #000;
  transition: 0.3s ease;
}

header.scrolled {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(6px);
}

.topbar {
  background: transparent;
  padding: 20px 40px;
}

nav {
  background: transparent;
  padding: 10px 40px;
  display: flex;
  gap: 25px;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: white;
  text-decoration: none;
}

.logo span {
  color: #c40000;
}

nav a {
  color: #ccc;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

nav a:hover {
  color: white;
}

nav .active {
  color: #c40000;
  border-bottom: 2px solid #c40000;
  padding-bottom: 4px;
}

@media (max-width: 768px) {
  .topbar { padding: 15px 20px; }
  nav {
    padding: 10px 20px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
}

/* ===================== BOTÃO ===================== */

.btn {
  display: inline-block;
  background: linear-gradient(135deg, #c40000, #e60000);
  color: white;
  padding: 14px 32px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(196, 0, 0, 0.25);
  border: none;
  outline: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(196, 0, 0, 0.4);
  background: linear-gradient(135deg, #b30000, #ff1a1a);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 5px 15px rgba(196, 0, 0, 0.3);
}

/* ===================== CONTAINER ===================== */

.container {
  max-width: 1100px;
  margin: 60px auto;
  padding: 20px;
}

/* ===================== TAG ===================== */

.tag {
  display: inline-block;
  background: #c40000;
  color: white;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 12px;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

/* ===================== HERO (páginas internas) ===================== */

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 20px;
}

.hero h1 { font-size: 38px; margin-bottom: 15px; }
.hero p  { font-size: 18px; margin-bottom: 20px; }

/* ===================== TITLE BOX ===================== */

.title-box {
  text-align: center;
  margin-bottom: 40px;
}

.title-box h1 {
  font-size: 32px;
}

/* ===================== SERVICES GRID / CARD ===================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  justify-items: center;
}

.service-card {
  background: #fdfdfd;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  width: 100%;
  padding: 45px;
  transition: 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

.service-card h3 {
  color: #c40000;
  margin-bottom: 15px;
}

.service-card p {
  color: #555;
  line-height: 1.6;
}

/* ===================== VIDEOS GRID ===================== */

.videos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.video-item iframe {
  width: 100%;
  height: 300px;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .videos-grid { grid-template-columns: 1fr; }
  .video-item iframe { height: 220px; }
}

/* ===================== SOBRE HOME ===================== */

.sobre-home {
  padding: 120px 20px;
  text-align: center;
  background: #f9f9f9;
}

.sobre-home h2 { font-size: 32px; margin-bottom: 25px; }
.sobre-home p  { max-width: 750px; margin: 0 auto 15px; color: #555; line-height: 1.7; }

/* ===================== CONTATO ===================== */

.contato-hero {
  background: linear-gradient(to right, #f4f6f8, #ffffff);
  padding: 160px 20px 100px;
  text-align: center;
}

.contato-hero h1 { font-size: 40px; margin-bottom: 15px; }
.contato-hero p  { color: #666; max-width: 600px; margin: 0 auto; }

.contato-section {
  padding: 100px 20px;
  background: #f9f9f9;
}

.contato-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 80px;
  flex-wrap: wrap;
}

.contato-info { flex: 1; min-width: 300px; }
.contato-info h2 { margin-bottom: 30px; color: #c40000; }

.info-item { margin-bottom: 15px; color: #333; }
.info-item a { color: #c40000; text-decoration: none; }
.info-item a:hover { text-decoration: underline; }

.redes-contato {
  margin-top: 30px;
  display: flex;
  gap: 15px;
}

.redes-contato a {
  width: 45px;
  height: 45px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c40000;
  font-size: 18px;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.redes-contato a:hover {
  background: #c40000;
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(196, 0, 0, 0.3);
}

.contato-form {
  flex: 1;
  min-width: 300px;
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

.contato-form h2 { margin-bottom: 25px; }

.contato-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contato-form input,
.contato-form textarea {
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #ddd;
}

.contato-form input:focus,
.contato-form textarea:focus {
  outline: none;
  border-color: #c40000;
}

/* ===================== FOOTER MAPA ===================== */

.footer-mapa-only iframe {
  width: 100%;
  height: 380px;
  border: none;
  display: block;
}

/* ===================== FOOTER MODERNO ===================== */

.footer-moderno {
  background: #f4f6f8;
  padding-top: 70px;
  margin-top: 60px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  padding: 0 20px 60px;
}

.footer-col { flex: 1; min-width: 250px; }

.footer-logo { font-size: 22px; font-weight: bold; margin-bottom: 15px; }
.footer-logo span { color: #c40000; }

.footer-col h4 { margin-bottom: 20px; color: #c40000; }

.footer-col p,
.footer-col li { margin-bottom: 10px; color: #555; list-style: none; }

.footer-col ul { padding: 0; }

.footer-col a { text-decoration: none; color: #555; transition: 0.3s; }
.footer-col a:hover { color: #c40000; }

.footer-redes { margin-top: 15px; display: flex; gap: 15px; }

.footer-redes a {
  width: 38px;
  height: 38px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c40000;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
}

.footer-redes a:hover {
  background: #c40000;
  color: white;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding: 20px;
  background: #eaeaea;
  font-size: 14px;
}

@media (max-width: 768px) {
  .footer-container { flex-direction: column; }
}

/* ===================== EMPRESA INSTITUCIONAL ===================== */

.empresa-institucional {
  padding: 130px 20px;
  background: #f4f4f4;
}

.empresa-bloco {
  display: flex;
  align-items: center;
  gap: 70px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.empresa-texto { flex: 1; }
.empresa-texto h2 { font-size: 32px; margin-bottom: 20px; }
.empresa-texto p  { margin-bottom: 15px; line-height: 1.7; color: #555; }

.empresa-imagem { flex: 1; }

.empresa-imagem img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  transition: 0.4s;
}

.empresa-imagem img:hover { transform: scale(1.03); }

@media (max-width: 768px) {
  .empresa-imagem { display: none; }
}

/* ===================== PRODUTOS SECTION ===================== */

.produtos-section {
  position: relative;
  padding: 140px 20px;
  background: url('../media/Detonação.png') center/cover no-repeat;
  overflow: hidden;
}

.produtos-overlay {
  position: absolute;
  inset: 0;
  background: rgba(85, 0, 0, 0.85);
}

.produtos-container {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
  text-align: center;
  color: white;
}

.produtos-container h2 {
  font-size: 42px;
  letter-spacing: 2px;
  margin-bottom: 80px;
}

.produtos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 55px 35px;
}

.produto-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  cursor: pointer;
  transition: 0.3s ease;
}

.produto-item span { font-weight: 600; font-size: 14px; letter-spacing: 1px; }

.produto-icone {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(45deg);
  border: 3px solid white;
  transition: 0.3s ease;
  overflow: hidden;
}

.produto-icone::before {
  content: "";
  position: absolute;
  inset: 0;
  background: white;
  transform: scale(0);
  transition: 0.3s ease;
  z-index: 0;
}

.produto-icone i {
  position: relative;
  font-size: 40px;
  color: white;
  transform: rotate(-45deg);
  transition: 0.3s ease;
  z-index: 1;
}

.produto-item:hover .produto-icone::before { transform: scale(1); }
.produto-item:hover .produto-icone i { color: #ff0000; }
.produto-item:hover span { transform: translateY(-5px); }

@media (max-width: 768px) {
  .produtos-container h2 { font-size: 28px; }
}

/* ===================== DIFERENCIAIS (Serviços corporativo v2) ===================== */

.servicos-corporativo-v2 {
  background: linear-gradient(to right, #0a0a0a, #141414);
  padding: 140px 20px;
  color: white;
  position: relative;
  overflow: hidden;
}

.servicos-corporativo-v2::before {
  content: "M";
  position: absolute;
  font-size: 400px;
  font-weight: bold;
  color: rgba(255, 0, 0, 0.03);
  left: -50px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
}

.servicos-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.servicos-left { flex: 1; }
.servicos-left h2 { font-size: 38px; line-height: 1.2; margin-bottom: 30px; }

.btn-servicos {
  display: inline-block;
  background: #c40000;
  color: white;
  padding: 14px 28px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  transition: 0.3s;
}

.btn-servicos:hover { background: #990000; }

.servicos-right {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.servico-card-v2 {
  background: #1a1a1a;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.3s;
}

.servico-card-v2:hover {
  transform: translateY(-6px);
  border-color: #c40000;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.servico-card-v2 h3 { color: #ff1a1a; margin-bottom: 10px; font-size: 16px; }
.servico-card-v2 p  { color: #bbb; font-size: 14px; line-height: 1.6; }

@media (max-width: 900px) {
  .servicos-wrapper { flex-direction: column; text-align: center; }
  .servicos-right { grid-template-columns: 1fr; }
  .servicos-left h2 { font-size: 28px; }
}

/* ===================== CARROSSEL CLIENTES ===================== */

.clientes {
  padding: 80px 0 0 0;
  background: #f5f5f5;
  text-align: center;
}

.clientes h2 { font-size: 28px; font-weight: 700; margin-bottom: 40px; color: #222; }

.clientes-faixa {
  background: #e2e2e2;
  padding: 30px 0;
  overflow: hidden;
}

.carousel {
  overflow: hidden;
  cursor: grab;
  position: relative;
}

.carousel, .carousel * {
  user-select: none;
  -webkit-user-drag: none;
}

.carousel-track {
  display: flex;
  gap: 100px;
  width: max-content;
  will-change: transform;
}

.carousel-track img {
  height: 130px;
  object-fit: contain;
  opacity: 0.9;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.carousel-track img:hover { transform: scale(1.4); opacity: 1; }

/* ===================== POPUP PRODUTOS ===================== */

.produto-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 3000;
}

.produto-modal.active { opacity: 1; pointer-events: auto; }

.produto-modal-content {
  background: white;
  width: 1200px;
  max-width: 95%;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  animation: modalUp 0.35s ease;
}

.modal-grid { display: grid; grid-template-columns: 65% 35%; }

.modal-img img { width: 100%; height: 100%; object-fit: cover; }

.modal-texto { padding: 40px; }
.modal-texto h3 { font-size: 38px; margin-bottom: 15px; color: #c40000; }
.modal-texto p  { line-height: 1.7; color: #555; margin-bottom: 25px; }

.modal-btn {
  display: inline-block;
  background: #c40000;
  color: white;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: 0.3s;
}

.modal-btn:hover { background: #900000; }

.produto-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  background: rgba(136, 136, 136, 0.7);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: 0.25s;
}

.produto-close:hover { background: #c40000; }

@keyframes modalUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@media (max-width: 768px) {
  .modal-grid { grid-template-columns: 1fr; }
  .modal-img  { height: 400px; }
}
