
:root {
  --primary: #1e3c72;
  --primary-light: #2a5298;
  --accent: #00d4aa;
  --accent-hover: #00b894;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden !important; /* Evita qualquer rolagem lateral */
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  min-height: 100vh;
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 20px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(30,60,114,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  z-index: 1000;
  transition: all .4s;
}

header.scrolled {
  padding: 15px 5vw;
  background: rgba(20,40,90,0.98);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.logo img {
  height: 48px;
  border-radius: 8px;
}

.menu-desktop {
  display: flex;
  gap: clamp(20px, 4vw, 40px);
}

.menu-desktop a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  transition: color .3s;
}

.menu-desktop a:hover {
  color: var(--accent);
}

.button-cta {
  padding: 12px 28px;
  background: var(--accent);
  color: white;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all .3s;
}

.button-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
}

.button-cta.large {
  padding: 16px 40px;
  font-size: 1.2rem;
}

.desktop-cta {
  display: block;
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: white;
  margin: 3px auto;
  border-radius: 2px;
  transition: .4s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* MENU MOBILE */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  font-size: 2rem;
  font-weight: 600;
  transform: translateY(-100%);
  transition: transform .5s;
  z-index: 999;
}

.mobile-menu.active {
  transform: translateY(0);
}

.mobile-menu a {
  color: white;
  text-decoration: none;
  opacity: 0;
  animation: fadeUp .6s forwards;
}

.mobile-menu .button-cta {
  padding: 18px 50px;
  font-size: 1.6rem;
  animation-delay: .7s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVO HEADER */
@media (max-width: 968px) {
  .menu-desktop, .desktop-cta { display: none; }
  .hamburger { display: flex; }
  header { padding: 16px 20px; }
}

/* HERO */
.hero {
  min-height: 100svh;
  background: linear-gradient(135deg, rgba(30,60,114,0.85), rgba(42,82,152,0.75)),
              url('Inicio.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 120px 20px 60px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0,212,170,0.08), transparent 70%);
  animation: zoomIn 20s ease-in-out infinite alternate;
}

.hero-content {
  max-width: 960px;
  padding: 20px;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 800;
  margin-bottom: 24px;
  background: linear-gradient(to right, #fff, #00d4aa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  opacity: .95;
  line-height: 1.7;
}

@keyframes zoomIn {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

/* SEÇÕES */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.container > h2,
.subtitle,
.hero-content,
.section-servicos .container > h2,
.section-clientes .container > h2,
.clientes-cta {
  text-align: center;
}

.subtitle {
  font-size: 1.4rem;
  opacity: .95;
  max-width: 700px;
  margin: 0 auto 80px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

/* SERVIÇOS */
.section-servicos {
  padding: 120px 20px 140px;
  position: relative;
  overflow: hidden;
}

.section-servicos::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0d47a1, #1976d2 50%, #42a5f5);
  opacity: .96;
}

.section-servicos::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?ixlib=rb-4.0.3&auto=format&fit=crop&q=80') center/cover no-repeat;
  opacity: .07;
}

.card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 50px 30px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: all .4s;
}

.card:hover {
  transform: translateY(-20px);
  background: rgba(255,255,255,0.22);
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.icon-circle {
  width: 110px;
  height: 110px;
  margin: 0 auto 30px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,212,170,0.3);
}

.card h3 {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.card p {
  font-size: 1.1rem;
  opacity: .9;
  line-height: 1.7;
}

/* SOBRE */
.section-sobre {
  padding: 120px 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.grid-about {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* Permite encolhimento total e evita overflow */
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: center; /* Centraliza o grid inteiro */
}

.about-text h2 {
  font-size: 3.6rem;
  font-weight: 800;
  background: linear-gradient(to right, #fff, #00d4aa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 28px;
}

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-check {
  width: 56px;
  height: 56px;
  background: var(--accent);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* VÍDEO - REGRAS INFALÍVEIS CONTRA OVERFLOW */
.about-image {
  width: 100%;
  overflow: hidden;
  border-radius: 24px;
  contain: content;
}

.about-image video {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-width: 0 !important;
  display: block;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
  border: 4px solid rgba(0,212,170,0.3);
  object-fit: contain; /* contain = mostra inteiro; use cover se quiser crop */
  background: #000;
}

/* CLIENTES */
.section-clientes {
  padding: 120px 20px;
  position: relative;
  overflow: hidden;
}

.section-clientes::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30,60,114,0.4), rgba(42,82,152,0.3));
}

.grid-clientes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.cliente-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 30px 20px;
  transition: all .4s;
}

.cliente-card:hover {
  transform: translateY(-12px);
  background: rgba(255,255,255,0.18);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.cliente-card h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--accent);
}

.clientes-cta {
  margin-top: 80px;
}

/* CONTATO */
.section-contato {
  padding: 100px 20px;
}

.grid-contato {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.contato-info h2 {
  font-size: 3.2rem;
  font-weight: 800;
  background: linear-gradient(to right, #fff, #00d4aa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
}

.contato-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.mapa {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

/* WHATSAPP */
.whatsapp-float {
  position: fixed;
  width: 64px;
  height: 64px;
  bottom: 28px;
  right: 28px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,0.5);
  z-index: 998;
  animation: float 6s ease-in-out infinite;
  transition: all .3s;
}

.whatsapp-float:hover {
  transform: translateY(-8px) scale(1.15);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (max-width: 640px) {
  .whatsapp-float {
    width: 56px;
    height: 56px;
    bottom: 20px;
    right: 20px;
  }
}

/* ANIMAÇÕES */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}

h2, .subtitle, .card, .feature, .cliente-card, .contato-item, .button-cta {
  animation: fadeInUp 1s ease-out both;
}

.card:nth-child(2) { animation-delay: .2s; }
.card:nth-child(3) { animation-delay: .4s; }

/* RESPONSIVO GERAL */
section { scroll-margin-top: 100px; }

/* PREVENÇÃO GERAL DE OVERFLOW */
img, iframe, video {
  max-width: 100%;
  display: block;
}

/* MOBILE - FIXES IMPORTANTES */
@media (max-width: 768px) {
  .grid-about,
  .grid-contato {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .grid-about > *,
  .grid-contato > * {
    min-width: 0;
    max-width: 100%;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .about-text h2,
  .contato-info h2 {
    font-size: 2.4rem;
  }

  .section-sobre,
  .section-servicos,
  .section-clientes,
  .section-contato {
    padding: 80px 20px;
  }

  .mapa iframe {
    height: 300px;
    width: 100% !important;
  }

  .cliente-card {
    padding: 24px 16px;
  }

  .hero {
    padding-top: 160px;
  }

  /* REFORÇO ABSOLUTO NO VÍDEO MOBILE */
  .about-image {
    overflow: hidden;
  }

  .about-image video {
    width: 100% !important;
    height: auto !important;
    min-width: 0 !important;
    object-fit: contain !important;
  }
}
/* FORÇA TOTAL NO VÍDEO - SOLUÇÃO NUCLEAR */
.about-image {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* Proporção 16:9 (424 / 752 ≈ 0.564) */
  height: 0;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
  border: 4px solid rgba(0,212,170,0.3);
}

.about-image video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important; /* ou cover se quiser preencher cortando laterais */
  background: #000;
}

