:root {
  --primary-red: #d1121c;
  --text-dark: #1a1a1a;
  --text-light: #f5f5f5;
  --bg-dark: #000000;
  --bg-light: #ffffff;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

body {
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Header */
.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 30px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.logo {
  background: rgba(255, 255, 255, 0.9); /* Fundo esbranquiçado com 90% de opacidade */
  padding: 8px 15px;
  border-radius: 15px; /* Bordas arredondadas */
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
}

.logo h1 {
  color: var(--text-light);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -1px;
}

.logo span {
  color: var(--primary-red);
}

.nav ul {
  display: flex;
  gap: 30px;
}

.nav a {
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

.nav a:hover {
  color: var(--primary-red);
}

/* Hero Section */
.hero {
  position: relative;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover; /* Ajustado para preencher a tela */
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 0;
}

/* Carousel Arrows */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 2.5rem;
  padding: 10px 20px;
  cursor: pointer;
  z-index: 20;
  transition: background 0.3s ease;
  border-radius: 8px;
}

.carousel-btn:hover {
  background: var(--primary-red);
}

.prev-btn {
  left: 40px;
}

.next-btn {
  right: 40px;
}

.carousel-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.9));
  z-index: 1;
}

.hero-content {
  text-align: center;
  max-width: 950px;
  z-index: 10;
  margin-top: -10vh;
}

.hero-content h2 {
  color: var(--text-light);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

/* Feature Cards */
.features-wrapper {
  position: relative;
  max-width: 1200px;
  margin: -100px auto 100px;
  z-index: 20;
  padding: 0 20px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  position: relative;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  transition: var(--transition);
  cursor: pointer;
  border: 4px solid white;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 50px rgba(0,0,0,0.5);
}

.card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  transition: transform 0.8s ease;
}

.feature-card:hover .card-bg {
  transform: scale(1.1);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px 30px;
  text-align: center;
}

.card-overlay h3 {
  color: var(--text-light);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.2;
}

.card-overlay p {
  color: #dddddd;
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.feature-card:hover .card-overlay p {
  opacity: 1;
  transform: translateY(0);
}

/* Certifications Section */
.certifications {
  padding: 80px 20px;
  background-color: #fcfcfc;
  text-align: center;
}

.certifications h3 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 50px;
}

.cert-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.cert-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.cert-item img {
  height: 100px;
  object-fit: contain;
}

.cert-item p {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  border-top: 2px solid #eee;
  border-bottom: 2px solid #eee;
  padding: 15px 0;
  width: 150px;
}

.gptw {
  background-color: var(--primary-red);
  color: white;
  padding: 20px;
  width: 150px;
  text-align: left;
  border-radius: 4px;
}
.gptw h4 { font-size: 1.8rem; line-height: 1; margin-bottom: 15px; }
.gptw p { background: #0b1a58; text-align: center; padding: 10px; font-size: 0.9rem; font-weight: 700; margin: 0 -20px -20px -20px; }

/* Red Banner */
.red-banner {
  background-color: var(--primary-red);
  padding: 20px 0;
  color: white;
}

.banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.banner-text {
  display: flex;
  align-items: center;
  gap: 20px;
}

.banner-icon {
  font-size: 2rem;
  background: white;
  color: var(--primary-red);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.banner-text-inner h4 {
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.banner-text-inner p {
  font-size: 0.85rem;
}

.banner-actions {
  display: flex;
  gap: 15px;
}

.banner-btn {
  background-color: white;
  color: var(--primary-red);
  padding: 10px 25px;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 4px;
  transition: var(--transition);
  display: inline-block;
}

.banner-btn:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

/* Inner Pages Styles */
.inner-header {
  background-color: rgba(0, 0, 0, 0.9);
  position: relative;
  padding: 15px 50px;
}

.page-banner {
  height: 35vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.page-banner h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 10px;
}

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

.sobre-content {
  padding: 80px 0;
  background-color: #fff;
}

.section-title {
  font-size: 2.2rem;
  color: var(--primary-red);
  margin-bottom: 25px;
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.sobre-text p {
  color: #444;
  margin-bottom: 15px;
  font-size: 1.1rem;
  text-align: justify;
}

.estrutura-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.estrutura-card {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.estrutura-card:hover {
  transform: translateY(-5px);
}

.estrutura-card .icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.estrutura-card h4 {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.estrutura-card p {
  color: #666;
  font-size: 0.95rem;
}

/* Services Page Styles */
.services-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.servico-item {
  display: flex;
  gap: 20px;
  background: #f9f9f9;
  padding: 30px;
  border-radius: 12px;
  border-left: 5px solid var(--primary-red);
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
}

.servico-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.serv-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.serv-info h4 {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.serv-info p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
}

.eficiencia-box {
  background-color: #fcfcfc;
  padding: 50px;
  border-radius: 15px;
  border: 1px solid #eee;
}

/* Clientes Page Styles */
.clientes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.categoria-cliente {
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  transition: transform 0.3s ease;
}

.categoria-cliente:hover {
  transform: translateY(-5px);
  border-color: var(--primary-red);
}

.cat-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 15px;
}

.cat-icon {
  font-size: 2.2rem;
}

.cat-header h4 {
  font-size: 1.4rem;
  color: var(--text-dark);
}

.lista-clientes {
  list-style: none;
  padding-left: 10px;
}

.lista-clientes li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  color: #555;
  font-size: 1.05rem;
  font-weight: 600;
}

.lista-clientes li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-red);
  font-weight: bold;
}

/* Contato Page Styles */
.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}

.info-icon {
  font-size: 2rem;
  background: #fcfcfc;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--primary-red);
  border: 1px solid #eee;
}

.info-item h4 {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.info-item p {
  color: #666;
  font-size: 0.95rem;
}

.contato-form {
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  border-top: 5px solid var(--primary-red);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-red);
}

.submit-btn {
  background-color: var(--primary-red);
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: #a00d14;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float img {
  width: 35px;
  height: 35px;
}

/* Responsividade - Celulares e Tablets */
@media (max-width: 768px) {
  .header, .inner-header {
    flex-direction: column;
    padding: 15px 20px;
    gap: 15px;
    position: relative; /* Para evitar sobreposição no topo em algumas páginas */
    background-color: rgba(0, 0, 0, 0.9);
  }
  
  .nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
  
  .nav a {
    font-size: 0.8rem;
  }
  
  .hero-content {
    margin-top: 0;
    padding: 0 20px;
  }
  
  .hero-content h2 {
    font-size: 2.2rem;
  }
  
  .carousel-btn {
    padding: 10px;
    font-size: 1.5rem;
  }
  
  .prev-btn { left: 10px; }
  .next-btn { right: 10px; }
  
  .features-wrapper {
    margin: -50px auto 50px;
  }

  .features-grid {
    grid-template-columns: 1fr; /* Quebra as 3 colunas para 1 coluna */
  }
  
  .feature-card {
    height: 300px;
  }
  
  .sobre-grid,
  .estrutura-grid,
  .services-list,
  .clientes-grid,
  .contato-grid {
    grid-template-columns: 1fr; /* Transforma as grades em 1 única coluna */
    gap: 30px;
  }
  
  .banner-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .banner-text {
    flex-direction: column;
    text-align: center;
  }
  
  .page-banner {
    height: auto;
    padding: 60px 20px;
  }
  
  .page-banner h1 {
    font-size: 2.2rem;
  }
  
  .certifications h3,
  .section-title {
    font-size: 1.8rem;
  }
  
  #sobre {
    padding: 40px 20px !important;
  }
}
