/* ==========================================================================
   RESET E VARIÁVEIS BASE
   ========================================================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --preto: #1F1F1F;
  --cinza-escuro: #6B7280;
  --cinza-claro: #9CA3AF;
  --cinza-bg: #F3F4F6;
  --branco: #FFFFFF;
  --vermelho: #DC2626;
  --vermelho-hover: #B91C1C;
  --font-primary: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  font-family: var(--font-primary);
  color: var(--preto);
  background: var(--branco);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 100px; /* Compensação para o menu fixo */
}

img {
  max-width: 100%;
  display: block;
}

section {
  padding: 5rem 0;
  position: relative;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--preto);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--vermelho);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--cinza-escuro);
  margin-bottom: 3rem;
  max-width: 700px;
}

/* ==========================================================================
   COMPONENTES GLOBAIS (Botoes, Navbar, Footer, Float)
   ========================================================================== */
/* Botoes */
.btn-cta-nav {
  background: var(--vermelho);
  color: var(--branco);
  padding: 0.625rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-cta-nav:hover {
  background: var(--vermelho-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
  color: var(--branco);
}

.btn-cta-primary {
  background: var(--vermelho);
  color: var(--branco);
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
  text-decoration: none;
}

.btn-cta-primary:hover {
  background: var(--vermelho-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.4);
  color: var(--branco);
}

.btn-cta-secondary {
  background: transparent;
  color: var(--branco);
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  border: 2px solid var(--branco);
  border-radius: 8px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.btn-cta-secondary:hover {
  background: var(--branco);
  color: var(--preto);
  transform: translateY(-3px);
}

/* Navbar */
.navbar {
  background: var(--branco);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.navbar-brand {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--preto);
  letter-spacing: -0.5px;
}

.navbar-brand span {
  color: var(--vermelho);
}

.nav-link {
  color: var(--cinza-escuro);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--vermelho);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--vermelho);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

/* Footer */
footer {
  background: var(--preto);
  color: #D1D5DB;
  padding: 3rem 0 1.5rem;
}

.footer-desc {
  color: #9CA3AF;
  margin-bottom: 1.5rem;
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--branco);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #9CA3AF;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--vermelho);
}

.footer-bottom {
  border-top: 1px solid #374151;
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  color: #9CA3AF;
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-link {
  width: 45px;
  height: 45px;
  background: var(--cinza-bg);
  color: var(--cinza-escuro);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  background: var(--vermelho);
  color: var(--branco);
  transform: translateY(-3px);
}

/* Flutuantes (WhatsApp e Topo) */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: var(--branco);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
  color: var(--branco);
}

.scroll-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--vermelho);
  color: var(--branco);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
  z-index: 999;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.scroll-top.show {
  display: flex;
}

.scroll-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
}

/* ==========================================================================
   PÁGINAS ESPECÍFICAS
   ========================================================================== */
/* Home - Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  /*background: linear-gradient(135deg, rgba(31, 31, 31, 0.92) 0%, rgba(31, 31, 31, 0.85) 100%), url("https://agi-prod-file-upload-public-main-use1.s3.amazonaws.com/1d8f8db4-cd8e-4e32-9af0-67c71c2478a2") center/cover no-repeat;*/
  background: linear-gradient(135deg, rgba(31, 31, 31, 0.92) 0%, rgba(31, 31, 31, 0.85) 100%), url("../img/hero-bg.jpg") center/cover no-repeat;
  color: var(--branco);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(220, 38, 38, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: #E5E7EB;
  margin-bottom: 2.5rem;
  max-width: 700px;
  font-weight: 400;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.hero-stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--vermelho);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.95rem;
  color: #D1D5DB;
  margin-top: 0.5rem;
}

/* Home - Secoes */
#home-produtos, #home-proof, #produtos, #sobre-hero, #cases, #contato {
  background: var(--cinza-bg);
}

#home-sobre, #blog {
  background: var(--branco);
}

/* Produtos */
.produto-card {
  background: var(--branco);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid #E5E7EB;
  cursor: pointer;
}

.produto-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border-color: var(--vermelho);
}

.produto-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.produto-card:hover .produto-img {
  transform: scale(1.08);
}

.produto-body {
  padding: 1.75rem;
}

.produto-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--preto);
  margin-bottom: 0.75rem;
}

.produto-desc {
  color: var(--cinza-escuro);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.btn-produto {
  background: var(--vermelho);
  color: var(--branco);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  width: 100%;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-produto:hover {
  background: var(--vermelho-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
  color: var(--branco);
}

.produtos-cta, .cases-cta {
  margin-top: 4rem;
  text-align: center;
}

/* Sobre */
.sobre-intro {
  max-width: 720px;
  margin-inline: auto;
}

.sobre-texto {
  color: var(--cinza-escuro);
  line-height: 1.8;
}

.sobre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.valor-card {
  background: var(--branco);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  border: 2px solid var(--cinza-bg);
  transition: all 0.3s ease;
}

.valor-card:hover {
  border-color: var(--vermelho);
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.15);
}

.valor-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--vermelho) 0%, #EF4444 100%);
  color: var(--branco);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
}

.valor-title {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--preto);
}

.valor-desc {
  color: var(--cinza-escuro);
  font-size: 0.95rem;
}

.equipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.equipe-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.25rem;
  border: 4px solid var(--vermelho);
}

.equipe-nome {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--preto);
  margin-bottom: 0.25rem;
}

.equipe-cargo {
  color: var(--vermelho);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.equipe-desc {
  color: var(--cinza-escuro);
  font-size: 0.9rem;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.blog-card {
  background: var(--branco);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #E5E7EB;
  transition: all 0.3s ease;
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border-color: var(--vermelho);
}

.blog-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-img {
  transform: scale(1.05);
}

.blog-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--cinza-claro);
  align-items: center;
  flex-wrap: wrap;
}

.blog-categoria {
  background: var(--vermelho);
  color: var(--branco);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.8rem;
}

.blog-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--preto);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.blog-excerpt {
  color: var(--cinza-escuro);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  flex: 1;
}

.btn-blog {
  color: var(--vermelho);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}

.btn-blog:hover {
  gap: 0.75rem;
}

.blog-categorias-title {
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.blog-categorias {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.blog-categorias a {
  background: var(--cinza-bg);
  color: var(--cinza-escuro);
  padding: 0.625rem 1.25rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.blog-categorias a:hover {
  background: var(--vermelho);
  color: var(--branco);
  transform: translateY(-2px);
}

/* Cases */
.logo-parceiro {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.logo-parceiro img {
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
  max-height: 80px;
  width: auto;
}

.logo-parceiro:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
  border: 2px solid var(--vermelho);
  border-radius: 8px;
  padding: 0.5rem;
}

/* Contato e Orçamento */
.contato-info {
  background: var(--branco);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  height: 100%;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.info-icon {
  width: 50px;
  height: 50px;
  background: var(--vermelho);
  color: var(--branco);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
}

.info-content h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--preto);
  margin-bottom: 0.25rem;
}

.info-content p {
  color: var(--cinza-escuro);
  margin: 0;
  font-size: 0.95rem;
}

.mapa-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  height: 100%;
  min-height: 400px;
}

.mapa-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

#orcamento {
  background: linear-gradient(135deg, #1F1F1F 0%, #374151 100%);
  color: var(--branco);
}

#orcamento .section-title,
#orcamento .section-subtitle {
  color: var(--branco);
}

.orcamento-beneficios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.beneficio-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.25rem;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.beneficio-icon {
  font-size: 2rem;
  color: var(--vermelho);
  margin-bottom: 0.75rem;
}

.beneficio-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}

.beneficio-card p {
  font-size: 0.9rem;
  color: #E5E7EB;
}

.form-orcamento {
  background: var(--branco);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  color: var(--preto);
}

.form-orcamento .form-label {
  color: var(--preto);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-orcamento .form-control,
.form-orcamento .form-select {
  padding: 0.875rem;
  border: 2px solid #E5E7EB;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.form-orcamento .form-control:focus,
.form-orcamento .form-select:focus {
  border-color: var(--vermelho);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
  outline: none;
}

.form-orcamento textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-enviar-orcamento {
  background: var(--vermelho);
  color: var(--branco);
  padding: 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  width: 100%;
  transition: all 0.3s ease;
}

.btn-enviar-orcamento:hover {
  background: var(--vermelho-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
}

/* ==========================================================================
   ACESSibilidade E RESPONSIVO
   ========================================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

:focus-visible {
  outline: 3px solid var(--vermelho);
  outline-offset: 2px;
}

@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--branco);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }
  .hero-stats {
    gap: 2rem;
  }
  .hero-stat-number {
    font-size: 2.5rem;
  }
  section {
    padding: 3rem 0;
  }
}

@media (max-width: 767px) {
  .hero {
    min-height: 90vh;
    text-align: center;
  }
  .hero p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-stats {
    justify-content: center;
    gap: 1.5rem;
  }
  .btn-cta-primary,
  .btn-cta-secondary {
    width: 100%;
    justify-content: center;
  }
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
  }
  .scroll-top {
    bottom: 90px;
    right: 20px;
  }
  .orcamento-beneficios {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    max-width: 100%;
  }
  .beneficio-card {
    padding: 0.75rem 0.5rem;
  }
  .beneficio-icon {
    font-size: 1.5rem;
    margin-bottom: 0.375rem;
  }
  .beneficio-title {
    font-size: 0.875rem;
  }
  .beneficio-card p {
    font-size: 0.75rem;
  }
}