/* =========================================
   1. CONTAINER (Centraliza e limita largura)
   ========================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

/* =========================================
   2. LINHA E COLUNAS (O Sistema de Grid Genérico)
   ========================================= */
.linha,
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -10px;
  margin-right: -10px;
}

[class*="col-"] {
  padding: 10px;
  box-sizing: border-box;
}

.col-1 {
  width: 8.3333%;
}
.col-2 {
  width: 16.6666%;
}
.col-3 {
  width: 25%;
}
.col-4 {
  width: 33.3333%;
}
.col-5 {
  width: 41.6666%;
}
.col-6 {
  width: 50%;
}
.col-7 {
  width: 58.3333%;
}
.col-8 {
  width: 66.6666%;
}
.col-9 {
  width: 75%;
}
.col-10 {
  width: 83.3333%;
}
.col-11 {
  width: 91.6666%;
}
.col-12 {
  width: 100%;
}

/* =========================================
   3. RESPONSIVIDADE (Mobile - Regras do Sistema)
   ========================================= */
@media (max-width: 768px) {
  [class*="col-"] {
    width: 100%; /* No celular, cada coluna ocupa a linha inteira */
  }

  html,
  body {
    overflow-x: clip;
    max-width: 100%;
  }

  /* Correção da Seção Serviços para Mobile */
  .servicos-grid-layout {
    flex-direction: column;
    gap: 3rem;
  }

  .servicos-col-esquerda,
  .servicos-col-direita {
    min-width: 100%; /* Sobrescreve os 450px/400px originais */
    width: 100%;
  }

  /* Correção dos Benefícios da Home para Mobile */
  .hero-beneficios-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  /* Oculta as linhas verticais divisórias no celular */
  .beneficio-item:not(:last-child):after {
    display: none;
  }

  /* HEADER */
  .header-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .logo-img {
    height: 34px;
  }

  .nome-empresa {
    font-size: 20px;
  }

  /* BOTÃO HAMBÚRGUER (Visível somente no mobile) */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 9999;
  }

  /* Linhas do hambúrguer */
  .menu-toggle .bar {
    width: 100%;
    height: 2.5px;
    background-color: #ffffff;
    border-radius: 2px;
    transition:
      transform 0.3s ease,
      opacity 0.3s ease;
    transform-origin: center;
  }

  /* Animação do hambúrguer se transformando em "X" */
  .menu-toggle.ativo .bar:nth-child(1) {
    transform: translateY(8.75px) rotate(45deg);
  }

  .menu-toggle.ativo .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .menu-toggle.ativo .bar:nth-child(3) {
    transform: translateY(-8.75px) rotate(-45deg);
  }

  /* MENU DROPDOWN MOBILE */
  .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 8px);
    right: 20px;
    left: 20px;
    max-width: 360px;
    margin-left: auto;
    background-color: #0b1411;
    border: 1px solid rgba(0, 180, 138, 0.25);
    box-shadow:
      0 12px 32px rgba(0, 0, 0, 0.65),
      0 0 15px rgba(0, 180, 138, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px;
    border-radius: 12px;
    z-index: 9998;
  }

  /* Exibe o menu com fade/slide quando ativo */
  .menu.ativo {
    display: flex;
    animation: menuFadeIn 0.25s ease forwards;
  }

  @keyframes menuFadeIn {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .menu ul {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    align-items: stretch;
  }

  .menu ul li {
    width: 100%;
  }

  .menu ul li a {
    display: block;
    padding: 10px 14px;
    font-size: 15px;
    border-radius: 6px;
    color: #eeecec;
    text-decoration: none;
    transition:
      background-color 0.2s,
      color 0.2s;
  }

  .menu ul li a:hover {
    background-color: rgba(0, 180, 138, 0.12);
    color: #00b48a;
  }

  .menu ul li a.botao-especialista {
    text-align: center;
    justify-content: center;
    margin-top: 6px;
    width: 100%;
    padding: 11px;
    font-size: 14px;
    font-weight: 600;
  }

  /* SEÇÃO CONTATO MOBILE */
  .contato-container {
    padding: 4rem 1rem;
    min-height: auto;
  }

  .circulo-wrapper {
    width: 92vw;
    max-width: 440px;
  }

  .circulo-content {
    padding: 2rem 1.5rem;
  }

  .circulo-content h2 {
    font-size: 1.85rem;
    line-height: 1.25;
    margin-bottom: 1rem;
  }

  .circulo-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
  }

  .contato-botoes {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .btn-diagnostico,
  .btn-especialista {
    width: 100%;
    text-align: center;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }

  /* HOME */
  .home {
    min-height: auto;
    padding: 3rem 0;
  }

  .home-titulo {
    font-size: 2.8rem;
    line-height: 1.15;
  }

  /* SOBRE */
  .sobre-container {
    padding: 4rem 15px;
  }

  .sobre-grid-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .sobre-titulo {
    font-size: 2.5rem;
  }

  .sobre-texto-area {
    max-width: 100%;
  }

  .resultado-item {
    padding: 1.1rem 1.4rem;
    gap: 1.2rem;
  }

  /* DIFERENCIAIS */
  .diferenciais-container {
    padding: 4rem 15px;
  }

  .diferenciais-header h2 {
    font-size: 2.2rem;
  }

  .diferenciais-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .diferenciais-grid .card {
    padding: 1.8rem;
  }

  /* PROJETOS */
  .projetos-container {
    padding: 4rem 15px;
  }

  .projetos-header h2 {
    font-size: 2.2rem;
  }

  .projetos-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .projeto-card {
    padding: 1.6rem;
  }
}

/* Telas muito pequenas (smartphones compactos) */
@media (max-width: 480px) {
  .header-container {
    padding: 14px 16px;
  }

  .logo a {
    gap: 10px;
  }

  .nome-empresa {
    font-size: 18px;
  }

  .circulo-content h2 {
    font-size: 1.45rem;
  }

  .circulo-content p {
    font-size: 0.85rem;
  }

  .home-titulo {
    font-size: 2.2rem;
  }

  .sobre-titulo {
    font-size: 2rem;
  }

  .resultado-item {
    padding: 1rem 1.2rem;
    gap: 1rem;
  }

  .resultado-item p {
    font-size: 1.05rem;
  }

  .diferenciais-header h2 {
    font-size: 1.8rem;
  }

  .projetos-header h2 {
    font-size: 1.8rem;
  }

  .projeto-card {
    padding: 1.4rem;
  }
}
