/* =========================================
   PÁGINA EMPRESA (MOBILE) - FINAL COMPLETO
   Arquivo: /assets/css/mobile/empresa.css
   ========================================= */

@media (max-width: 1024px) {
  /* --- 1. RESET GERAL E SIDEBAR --- */
  html,
  body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    /* IMPORTANTE: Remove o espaço da sidebar do PC no mobile */
    padding-left: 0 !important;
  }

  .empresa-container-principal {
    padding: 40px 20px 60px;
    overflow: hidden;
    background: var(--cor-branco);
  }

  /* --- 2. IMAGEM DE TOPO --- */
  .empresa-topo-img {
    margin-bottom: 40px;
    box-shadow: none;
    height: 250px; /* Altura fixa controlada */
    border-radius: 16px;
    overflow: hidden;
    position: relative;
  }
  .empresa-topo-img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }

  /* --- 3. TEXTOS (JUSTIFICADO) --- */
  .empresa-texto-bloco {
    margin-bottom: 60px;
  }

  .titulo-quem-somos {
    font-size: 32px;
    margin-bottom: 30px;
    text-align: left;
    color: var(--cor-quase-preto);
    font-weight: 900;
    letter-spacing: -1px;
  }

  .titulo-quem-somos::after {
    left: 0;
    transform: none;
    width: 60px;
    height: 4px;
    border-radius: 2px;
  }

  .texto-corrido {
    font-size: 16px;
    line-height: 1.65;
    color: var(--cor-texto-medio);
    text-align: justify;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
  }

  .texto-corrido strong {
    color: var(--cor-principal);
    font-weight: 800;
  }
  .texto-corrido em {
    color: var(--cor-preto);
    font-style: italic;
    font-weight: 600;
  }

  /* --- 4. SLIDER E CARDS --- */
  .empresa-slider-section {
    margin-top: 40px;
    padding: 60px 0;
    width: 100vw;
    margin-left: -20px;
    margin-right: -20px;
    background: #f4f6f9;
    position: relative;
  }

  .subtitulo-cards {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--cor-texto-forte);
    text-align: center;
    font-weight: 800;
  }

  .slider-wrapper-empresa {
    padding: 0;
  }
  .slider-arrow {
    display: none !important;
  }

  .cards-track {
    display: flex;
    gap: 15px;
    padding: 0 25px 40px 25px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .cards-track::-webkit-scrollbar {
    display: none;
  }

  /* Card Mobile */
  .card-zao {
    flex: 0 0 85%;
    scroll-snap-align: center;
    min-height: auto;
    padding: 35px 25px;
    border-radius: 20px;
    background: var(--cor-branco);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .card-zao:hover {
    transform: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
  }

  .icon-box-large {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
  }
  .icon-box-large img {
    width: 50px;
    height: 50px;
    object-fit: contain;
  }

  .card-zao h4 {
    font-size: 22px;
    color: var(--cor-principal);
    font-weight: 800;
    margin-bottom: 10px;
  }
  .card-zao p {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .btn-ver-mais {
    width: 100%;
    padding: 16px;
    font-size: 13px;
    margin-top: auto;
    background: var(--cor-principal);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
  }

  /* --- 5. CERTIFICADOS (AJUSTE DE ESCALA E GRADE 3 COLUNAS) --- */
  .section-certificados-fixa {
    padding: 60px 0;
    text-align: center;
    background: var(--cor-branco);
  }

  .img-certificados-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 10px;
    padding: 0 15px;
    margin-top: 20px;
    justify-items: center;
    align-items: center;
  }

  .img-certificados-wrapper img {
    /* Controle de escala base para mobile */
    width: 100%;
    max-width: 90px;
    height: auto;

    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.3s ease;
    object-fit: contain;
  }

  /* Feedback visual ao toque no mobile */
  .img-certificados-wrapper img:active {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
  }

  /* --- 6. MODAIS (VISUAL PREMIUM - CORRIGIDO) --- */
  .modal-overlay-info {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .modal-overlay-info.active {
    opacity: 1;
    visibility: visible;
  }

  .modal-box {
    background: #fff;
    width: 100%;
    max-width: 100%;
    max-height: 85vh;
    border-radius: 24px;
    padding: 50px 25px 30px 25px;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(100px) scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }

  .modal-overlay-info.active .modal-box {
    transform: translateY(0) scale(1);
  }

  /* Botão Fechar */
  .modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: #f0f2f5;
    color: #333;
    font-size: 28px; /* Aumentei para o X ficar centralizado */
    line-height: 1;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }
  .modal-close-btn:active {
    background: var(--cor-principal);
    color: white;
  }

  /* Títulos e Textos */
  .modal-box h3 {
    font-size: 24px;
    font-weight: 900;
    color: var(--cor-principal); /* Azul Cardan */
    margin-top: 0;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 5px solid var(--cor-principal);
    line-height: 1.1;
  }

  .modal-box p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
  }

  /* --- LISTA ACROSTICO (CARDAN) --- */
  .lista-modal {
    list-style: none;
    padding: 0;
    margin-top: 25px;
  }

  .lista-modal li {
    margin-bottom: 15px;
    font-size: 16px; /* Texto um pouco maior para leitura mobile */
    color: #444;
    padding-left: 15px;
    border-left: 4px solid rgba(0, 103, 171, 0.2); /* Linha azul clara à esquerda */
    line-height: 1.5;
    
    /* Flexbox para garantir alinhamento caso quebre linha */
    display: flex;
    align-items: baseline; 
    flex-wrap: wrap;
  }

  /* A Letra Destacada (C, A, R, D, A, N) */
  .lista-modal strong {
    color: var(--cor-principal); /* Azul */
    font-weight: 900;
    font-size: 20px; /* Letra maior que o resto do texto */
    display: inline; /* IMPORTANTE: Garante que fique na mesma linha */
    margin-right: 1px; /* Espacinho mínimo para colar na palavra */
  }
}
