/* =============== */
/* VARIÁVEIS       */
/* =============== */
:root {
  --bg-body: #050505;
  --bg-soft: #0b0b0c;
  --bg-section-soft: #0f1012;
  --bg-card: #111214;
  --bg-card-soft: #15161a;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --text-soft: #6b7280;
  --border-subtle: #1f2933;
  
  /* ALTERAÇÃO: Azul para Dourado Premium */
  --accent: #D4AF37; 
  --accent-soft: rgba(212, 175, 55, 0.1);
  --accent-pill: rgba(249, 250, 251, 0.06);
  
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.55);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --nav-height: 76px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============== */
/* RESET           */
/* =============== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

/* =============== */
/* LAYOUT GERAL    */
/* =============== */
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.section { padding: 96px 0; }
.section-soft { background: var(--bg-section-soft); }

.section-header {
  max-width: 640px;
  margin: 0 auto 50px;
  text-align: center;
}
.section-header h2 { font-size: 2.2rem; font-weight: 500; margin-bottom: 12px; letter-spacing: -0.02em; }
.section-header p { color: var(--text-muted); }

/* =============== */
/* HEADER          */
/* =============== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  backdrop-filter: blur(18px);
  background: rgba(5, 5, 5, 0.8);
  border-bottom: 1px solid var(--border-subtle);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo-img { height: 85px; width: auto; }

.nav-menu { display: flex; align-items: center; gap: 24px; }
.nav-link {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-soft);
  transition: var(--transition);
}
.nav-link:hover { color: var(--accent); }
.nav-cta {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: var(--text-main);
  color: var(--bg-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: var(--transition);
}
.nav-cta:hover { transform: scale(1.05); box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3); }

.hamburger { display: none; background: none; border: none; color: var(--text-main); font-size: 1.5rem; }

/* =============== */
/* HERO            */
/* =============== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  background: linear-gradient(rgba(5, 5, 5, 0.92), rgba(5, 5, 5, 0.7)), url('https://images.unsplash.com/photo-1581094288338-2314dddb7903?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center;
}
.hero-content-wrapper { 
    position: relative; 
    z-index: 10; 
    display: grid; 
    grid-template-columns: 1.4fr 1fr; 
    gap: 50px; 
    width: 100%;
}
.hero-pill {
  display: inline-flex;
  padding: 6px 14px;
  background: var(--accent-pill);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-content h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; font-weight: 500; }
.hero-content p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 35px; max-width: 500px; }

.hero-actions { display: flex; gap: 15px; }

.btn {
  padding: 16px 30px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-primary { background: var(--accent); color: var(--bg-body); border: none; }
.btn-outline { border: 1px solid var(--border-subtle); color: var(--text-main); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3); }

.hero-card {
  background: var(--bg-card);
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}
.hero-card-label { font-size: 0.75rem; color: var(--text-soft); text-transform: uppercase; margin-bottom: 15px; }
.hero-card-list li { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; font-size: 0.9rem; }
.hero-card-list i { color: var(--accent); width: 18px; }

/* =============== */
/* CARROSSEL       */
/* =============== */
.logos-carousel { padding: 40px 0; background: var(--bg-soft); overflow: hidden; border-top: 1px solid var(--border-subtle); }
.carousel-track { display: flex; width: calc(250px * 12); animation: scroll 40s linear infinite; }
.slide { width: 250px; display: flex; justify-content: center; filter: grayscale(1); opacity: 0.4; transition: 0.3s; }
.slide:hover { opacity: 1; filter: grayscale(0); }
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-250px * 6)); }
}

/* =============== */
/* CARDS SERVIÇOS  */
/* =============== */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; }
.card {
  background: var(--bg-card);
  padding: 35px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
}
.card:hover { border-color: var(--accent); transform: translateY(-5px); }
.card-icon { width: 50px; height: 50px; background: var(--accent-soft); color: var(--accent); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.card h3 { font-size: 1.2rem; font-weight: 500; margin-bottom: 10px; }
.card p { font-size: 0.9rem; color: var(--text-muted); }

/* =============== */
/* LICITAÇÕES      */
/* =============== */
.compliance-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.trust-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.trust-tags span { background: var(--bg-card); border: 1px solid var(--border-subtle); padding: 8px 16px; border-radius: var(--radius-pill); font-size: 0.8rem; }
.brand-logo { border-radius: var(--radius-lg); width: 100%; filter: grayscale(0.5); border: 1px solid var(--border-subtle); }

/* =============== */
/* CONTATO         */
/* =============== */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-form { background: var(--bg-card); padding: 40px; border-radius: var(--radius-lg); border: 1px solid var(--border-subtle); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; }
.form-control { width: 100%; background: var(--bg-body); border: 1px solid var(--border-subtle); padding: 12px 15px; border-radius: var(--radius-md); color: white; font-family: inherit; }
.form-control:focus { outline: none; border-color: var(--accent); }
.btn-full { width: 100%; justify-content: center; }

/* =============== */
/* FOOTER          */
/* =============== */
.footer { padding: 80px 0 40px; text-align: center; border-top: 1px solid var(--border-subtle); background: var(--bg-soft); }
.footer-logo-img { height: 60px; margin: 0 auto 20px; opacity: 0.7; }
.footer-tagline { display: block; margin-top: 10px; color: var(--text-soft); font-size: 0.8rem; }

/* =============== */
/* WHATSAPP        */
/* =============== */
.floating-wa { position: fixed; bottom: 30px; right: 30px; background: #25d366; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; box-shadow: 0 10px 20px rgba(0,0,0,0.3); z-index: 1000; transition: 0.3s; }
.floating-wa:hover { transform: scale(1.1); }

/* =============== */
/* ANIMAÇÕES       */
/* =============== */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .hero-content-wrapper, .compliance-layout, .contact-layout { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 2.2rem; }
  .nav-menu { display: none; }
  .hamburger { display: block; }
}
/* =============== */
/* CARROSSEL FIX   */
/* =============== */
.logos-carousel { 
  padding: 50px 0; 
  background: var(--bg-soft); 
  overflow: hidden; 
  border-top: 1px solid var(--border-subtle); 
  border-bottom: 1px solid var(--border-subtle);
}

.carousel-track { 
  display: flex; 
  /* Largura total: (largura do slide + gap) * número total de slides (incluindo duplicados) */
  width: calc(250px * 12); 
  animation: scroll 35s linear infinite;
  gap: 0; /* O espaçamento será controlado pelo padding do slide */
}

.slide { 
  width: 250px; 
  height: 80px; /* Altura fixa para alinhar todos os logos horizontalmente */
  display: flex; 
  align-items: center; 
  justify-content: center; 
  flex-shrink: 0; /* Impede que o flexbox comprima o slide */
  padding: 0 30px; /* Espaçamento entre os logos */
}

.slide img { 
  max-width: 100%; 
  max-height: 100%; 
  width: auto; /* Garante que a largura se ajuste à altura proporcionalmente */
  height: auto; 
  object-fit: contain; /* O SEGREDO: mantém a dimensão sem distorcer */
  filter: grayscale(1) brightness(2); 
  opacity: 0.5; 
  transition: var(--transition);
}

.slide img:hover { 
  opacity: 1; 
  filter: grayscale(0) brightness(1); 
}

/* Ajuste da animação para garantir fluidez no loop */
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-250px * 6)); } /* Move exatamente metade do track (os originais) */
}

/* Ajuste para telas menores */
@media (max-width: 600px) {
  .slide { width: 180px; height: 60px; padding: 0 20px; }
  .carousel-track { width: calc(180px * 12); }
  @keyframes scroll {
    100% { transform: translateX(calc(-180px * 6)); }
  }
}
/* =============== */
/* CONFIGURAÇÃO HERO */
/* =============== */
.hero {
  position: relative;
  /* Garante 100% da altura da tela em qualquer navegador (estático e dinâmico) */
  min-height: 100vh; 
  min-height: 100dvh; 
  width: 100vw;
  
  display: flex;
  align-items: center; /* Centraliza verticalmente */
  justify-content: center; /* Centraliza horizontalmente */
  
  /* IMAGEM DE FUNDO */
  background-image: url('repairman-doing-air-conditioner-service.jpg'); 
  background-size: cover; /* Faz a imagem cobrir todo o espaço sem sobrar */
  background-position: center center; /* Mantém o foco no meio da foto */
  background-repeat: no-repeat;
  background-attachment: fixed; /* Efeito Parallax suave no desktop */
  
  overflow: hidden;
}

/* Camada escura para o texto não sumir na foto */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right, 
    rgba(5, 5, 5, 0.95) 30%, 
    rgba(5, 5, 5, 0.4) 100%
  );
  z-index: 1;
}

.hero-content-wrapper {
  position: relative;
  z-index: 2; /* Fica acima do overlay */
  width: 100%;
}

.hero-content {
  max-width: 700px;
}

.gold-text {
  color: #D4AF37; /* Dourado */
  font-weight: 800;
}

/* Ajuste Mobile */
@media (max-width: 768px) {
  .hero {
    background-attachment: scroll; /* Remove o fixed no mobile para melhor performance */
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .hero-overlay {
    background: rgba(0, 0, 0, 0.75); /* Overlay mais escuro no mobile */
  }
}

/* =============== */
/* BLOCO LICITAÇÕES */
/* =============== */
.compliance-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.compliance-feature-box {
  background: var(--bg-card); /* #111214 */
  padding: 40px;
  border-radius: var(--radius-lg); /* 24px */
  border: 1px solid var(--accent); /* Dourado #D4AF37 */
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

/* Detalhe de luz dourada no fundo do box */
.compliance-feature-box::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.compliance-feature-box h3 {
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.feature-list {
  display: grid;
  gap: 25px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.05rem;
  color: var(--text-main);
}

.feature-list i {
  color: var(--accent);
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

/* Responsividade */
@media (max-width: 960px) {
  .compliance-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .feature-list li {
    justify-content: center;
    text-align: left;
  }
}
/* =============== */
/* SEÇÃO POR QUE NÓS */
/* =============== */

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.benefit-card {
    background: var(--bg-card); /* #111214 */
    padding: 40px;
    border-radius: var(--radius-lg); /* 24px */
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Efeito de brilho dourado ao passar o mouse */
.benefit-card:hover {
    border-color: var(--accent); /* #D4AF37 */
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.benefit-icon i {
    width: 28px;
    height: 28px;
}

.benefit-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.benefit-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Responsividade para tablets/mobile */
@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .benefit-card {
        padding: 30px;
        text-align: center;
    }
    
    .benefit-icon {
        margin: 0 auto 20px;
    }
}
/* =============== */
/* CARDS MINIMALISTAS */
/* =============== */

.minimal-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.m-card {
    background: var(--bg-card); /* #111214 */
    padding: 45px 35px;
    border-radius: 24px; /* Bordas suaves */
    border: 1px solid rgba(255, 255, 255, 0.05); /* Borda quase invisível */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.m-card:hover {
    border-color: var(--accent); /* Dourado no hover */
    background: var(--bg-card-soft); /* #15161a */
    transform: translateY(-8px);
}

.m-card-icon {
    color: var(--accent);
    margin-bottom: 24px;
    transition: transform 0.3s ease;
}

.m-card-icon i {
    width: 32px;
    height: 32px;
    stroke-width: 1.5px; /* Ícones mais finos e minimalistas */
}

.m-card h3 {
  font-size: 1.15rem;
  font-weight: 500; /* Menos negrito para ser minimalista */
  color: var(--text-main);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.m-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* Ajuste para dispositivos móveis */
@media (max-width: 768px) {
    .minimal-cards-grid {
        grid-template-columns: 1fr;
    }
    .m-card {
        padding: 35px 25px;
    }
}
/* =============== */
/* CARROSSEL INFINITO */
/* =============== */

.logos-carousel {
  padding: 50px 0;
  background: var(--bg-soft); /* #0b0b0c */
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden; /* Esconde os logos que saem da tela */
  position: relative;
  width: 100%;
}

.carousel-track {
  display: flex;
  /* O segredo: A largura total é o dobro da soma dos slides */
  width: calc(250px * 12); 
  animation: scroll-infinite 30s linear infinite;
}

.slide {
  width: 250px; /* Largura fixa para precisão matemática */
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0; /* Impede que o navegador comprima as imagens */
  padding: 0 40px;
}

.slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: none !important; /* Mantém cores originais */
  opacity: 1 !important;   /* Nitidez total */
  pointer-events: none;    /* Evita que o usuário arraste a imagem */
}

/* Pausa suave ao passar o mouse (Opcional, passa profissionalismo) */
.logos-carousel:hover .carousel-track {
  animation-play-state: paused;
}

/* A MÁGICA DO LOOP: Move apenas 50% (o primeiro grupo) e reseta */
@keyframes scroll-infinite {
  0% {
    transform: translateX(0);
  }
  100% {
    /* Move exatamente a largura total dos primeiros 6 logos */
    transform: translateX(calc(-250px * 6));
  }
}

/* Ajuste para Mobile */
@media (max-width: 768px) {
  .slide {
    width: 180px;
    padding: 0 25px;
  }
  .carousel-track {
    width: calc(180px * 12);
  }
  @keyframes scroll-infinite {
    100% {
      transform: translateX(calc(-180px * 6));
    }
  }
}
@media (max-width: 900px) {
    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: -100%; /* Escondido à esquerda */
        width: 100%;
        height: 100vh;
        background: var(--bg-body);
        transition: 0.4s ease;
        display: flex; /* Garante que os itens apareçam */
        flex-direction: column;
    }

    /* ESTA É A REGRA QUE O JS ATIVA */
    .nav-menu.active {
        left: 0; /* Desliza para dentro da tela */
    }
}