/* style.css - FLUXO NATURAL (SIMPLE & CLEAN) */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; display: flex; flex-direction: column; }
body { font-family: Arial, sans-serif; text-align: center; color: #333; overflow-x: hidden; }
img { border: 0; outline: none; box-shadow: none; display: block; max-width: 100%; height: auto; }

/* Fundo */
body::before {
  content: ""; position: fixed; inset: 0; background-color: #f0f0f0; 
  z-index: -1; pointer-events: none;
}

/* --- CABEÇALHO (Desktop e Geral) --- */
header {
  /* ... mantenha as cores e transparências que já fizemos ... */
  background: var(--cor-principal, #FFAB00);
  background: rgba(var(--cor-rgb), 0.95);
  
  color: #fff; 
  padding: 10px 20px;
  display: flex; align-items: center; 
  
  /* AQUI ESTÁ A MUDANÇA: */
  position: relative; 
  z-index: 9999; /* Número máximo para ficar ACIMA do modal */
  
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  min-height: 90px;
}
header img.logo { max-width: 100px; max-height: 50px; width: auto; height: auto; }
header .titulo { text-align: left; margin-left: 20px; flex: 1; }
header .titulo h1 { margin: 0; font-size: 1.4em; font-weight: bold; }
header .titulo p { margin: 2px 0 0 0; font-size: 0.85em; opacity: 0.9; }

/* Menu Desktop */
nav { margin-left: auto; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 15px; }
nav ul li button {
  background: transparent; border: none; color: #fff; font-weight: bold;
  padding: 8px 12px; cursor: pointer; font-size: 15px; text-transform: uppercase;
}
.menu-toggle { display: none; background: none; border: none; font-size: 28px; color: #fff; cursor: pointer; margin-left: auto; }

/* ENCARTE */
main.encarte {
  flex: 1; margin: 10px auto; max-width: 900px; 
  background: transparent; position: relative;
  width: 100%; z-index: 10;
  padding-bottom: 0; /* Sem padding extra, pois os botões agora ficam abaixo */
}
.slider-viewport { width: 100%; overflow: hidden; position: relative; }
.slider-track { 
    display: flex; 
    width: 100%; 
    /* AQUI: 0.7s é o tempo. ease-in-out começa devagar, acelera e termina devagar */
    transition: transform 1.1s ease-in-out; 
}
.slider-track img { flex: 0 0 100%; width: 100%; height: auto; object-fit: contain; }

/* --- CONTROLES DESKTOP (FIXOS) --- */
.prev, .next {
  cursor: pointer; position: fixed; top: 50%; transform: translateY(-50%);
  width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 24px; background: rgba(0,0,0,0.5); border-radius: 50%;
  z-index: 100; border: none;
}
.prev { left: 20px; } .next { right: 20px; }

/* CORREÇÃO ZOOM DESKTOP: Display Flex por padrão */
.zoom-controls-desktop { 
    position: fixed; bottom: 20px; right: 20px; 
    display: flex; gap: 10px; z-index: 2000; /* Z-index alto */
}
.zoom-btn, .zoom-out-btn {
  width: 45px; height: 45px; background: rgba(0,0,0,0.6); color: #fff;
  border: none; border-radius: 50%; font-size: 20px; cursor: pointer;
}

/* --- CONTROLES MOBILE (Oculto no Desktop) --- */
.nav-mobile { display: none; }

/* --- COMPARTILHAR --- */
.share-container { 
    background: rgba(255,255,255,0.9); 
    padding: 30px; /* aumenta o espaço interno */
    border-radius: 12px; 
    
    margin: 80px auto; /* mesmo espaço em cima e embaixo */
    
    max-width: 500px; 
    width: 95%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.share-icons { 
    display: flex; 
    justify-content: center; 
    gap: 15px; 
} 

.share-icons img { 
    width: 28px; 
}


/* Footer */
footer { background: rgba(0,0,0,0.8); color: #fff; padding: 15px; font-size: 12px; z-index: 20; margin-top: 20px; }

/* =========================================
   ESTILO DOS MODAIS (DESIGN ORIGINAL RESTAURADO)
   ========================================= */

/* Fundo Escuro com Desfoque */
.modal { 
    display: none; 
    position: fixed; 
    
    /* AQUI ESTÁ A MUDANÇA: */
    z-index: 9000; /* Alto, mas menor que o Header (9999) */
    
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.7); 
    backdrop-filter: blur(4px); 
    justify-content: center; 
    align-items: center; 
    padding: 20px;
}

/* Caixa Branca */
.modal-content { 
    background: #fff; 
    padding: 30px; 
    width: 100%;
    max-width: 550px; /* Largura ideal */
    border-radius: 15px; /* Bordas bem arredondadas */
    text-align: left; 
    position: relative; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
    animation: zoomInModal 0.3s ease;
}

@keyframes zoomInModal { 
    from { transform: scale(0.9); opacity: 0; } 
    to { transform: scale(1); opacity: 1; } 
}

/* Títulos e Textos */
.modal-content h2 { 
    margin-top: 0; 
    margin-bottom: 10px;
    font-size: 1.5rem; 
    color: #333;
}

.modal-content p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
}

.modal-content hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 20px 0;
}

/* Botão de Fechar (X) */
.close { 
    position: absolute; 
    top: 15px; 
    right: 20px; 
    font-size: 30px; 
    font-weight: bold; 
    color: #ccc; 
    cursor: pointer; 
    transition: color 0.2s;
}
.close:hover { color: #333; }

/* --- BOTÃO PRINCIPAL (Estilo "Como Chegar" / "Acessar Canal") --- */
.btn-modal {
    display: block;
    width: 100%;
    padding: 16px;
    background-color: var(--cor-principal, #FFAB00); /* Dinâmico */
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-weight: 800; /* Bem negrito */
    font-size: 1.1rem;
    border-radius: 8px;
    text-transform: uppercase;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    filter: brightness(1.1); /* Clareia um pouco */
}

/* --- GRID DE CONTATO (OS CARDS) --- */
.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-card {
    display: flex;
    align-items: center;
    background-color: #fcfcfc; /* Quase branco */
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Efeito Hover no Card */
.contact-card:hover {
    background-color: #fff;
    border-color: var(--cor-principal, #FFAB00);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transform: translateX(5px);
}

/* Ícone (Bola Colorida Clara) */
.contact-card .icon-box {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    
    /* AQUI A MÁGICA: Cor principal com 15% de opacidade */
    background-color: rgba(var(--cor-rgb), 0.15); 
    
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0; /* Impede o ícone de esmagar no mobile */
}

/* A Imagem do Ícone (.svg) */
.contact-card .icon-box img {
    width: 24px;
    height: 24px;
    /* Opcional: Se quiser que o ícone preto fique da cor da marca, descomente a linha abaixo */
    /* filter: sepia(1) hue-rotate(10deg) saturate(5); */ 
}

/* Textos do Card */
.contact-card .info-box {
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Protege layout */
}

.contact-card .label {
    font-size: 0.75rem;
    color: #999;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.contact-card .value {
    font-size: 1rem;
    color: #333;
    font-weight: 700;
    
    /* PROTEÇÃO PARA MOBILE (Não quebrar layout) */
    white-space: normal;
    word-break: break-word; 
    line-height: 1.3;
}

    /* =========================================
       PÁGINA SEM ENCARTE (CORRIGIDA)
       ========================================= */
    .no-encarte-page {
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      
      /* 1. DEGRADÊ DINÂMICO (SaaS) */
      /* Começa com a cor da marca no topo e desce escurecendo até quase preto */
      background: var(--cor-principal); /* Fallback */
      background: linear-gradient(to bottom, var(--cor-principal) 0%, #111 100%);
      
      /* 2. COBRIR O CABEÇALHO */
      z-index: 10000; /* Maior que 9999 do Header */
      
      display: flex; 
      flex-direction: column; 
      justify-content: center; 
      align-items: center;
      color: #fff;
      text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
      padding: 20px;
      
      /* Controle de Visibilidade */
      visibility: hidden;
      opacity: 0;
      transition: opacity 0.5s ease, visibility 0.5s ease;
      pointer-events: none;
    }
    
    .no-encarte-page.active {
      opacity: 1;
      visibility: visible;
      pointer-events: auto; /* Permite clicar nos links de contato */
    }
    
    /* O resto do estilo interno (ícone, textos) pode manter igual ao anterior */
    .no-encarte-content-custom {
      max-width: 500px;
      text-align: center;
      margin: 0 auto;
      animation: fadeInCustom 0.8s ease-out forwards;
    }
    
    .pause-icon {
      width: 120px; height: 120px;
      margin-bottom: 20px;
      color: #fff;
      background-color: rgba(255,255,255,0.1); /* Ficou mais bonito no degradê */
      border-radius: 50%;
      padding: 20px;
      box-shadow: 0 5px 15px rgba(0,0,0,0.3);
      animation: bounceIn 1s ease-out;
    }
    
    /* Links de contato na tela de pausa */
    .no-encarte-contact-custom a {
        color: #fff !important; /* Força branco */
        text-decoration: underline;
        font-weight: bold;
    }

/* =========================================
   RESPONSIVO MOBILE (FINAL - MENU CORRIGIDO)
   ========================================= */
@media (max-width: 768px) {
  
  /* --- 1. CABEÇALHO --- */
  header {
      padding: 10px 15px; 
      height: auto; 
      min-height: 85px; /* Barra larga */
      
      display: flex; 
      align-items: center; 
      justify-content: space-between; /* Espalha Logo e Menu */
      position: relative; 
  }

  /* Logo */
  header img.logo { 
      max-width: 80px; 
      position: relative; 
      z-index: 10; 
      margin-right: auto; /* Garante que fique na esquerda */
  }
  
  /* Botão Menu (Hambúrguer) - A CORREÇÃO ESTÁ AQUI */
  .menu-toggle { 
      display: block; 
      margin-left: auto; /* <--- ISSO EMPURRA ELE PARA A DIREITA */
      position: relative; 
      z-index: 10; 
      padding-left: 15px; /* Área de toque melhor */
  }

  /* Título Centralizado (Absoluto) */
  header .titulo { 
      position: absolute; 
      left: 50%; 
      top: 50%; 
      transform: translate(-50%, -50%); 
      
      width: 60%; 
      margin: 0; 
      text-align: center; 
      z-index: 1; 
  }
  
  header .titulo h1 { font-size: 1.1rem; margin: 0; line-height: 1.2; }
  header .titulo p { display: block; font-size: 0.75rem; margin: 2px 0 0 0; }

  /* --- 2. RESTANTE DO LAYOUT --- */
  nav { margin: 0; position: static; }
  nav ul { 
      display: none; 
      position: absolute; top: 100%; left: 0; width: 100%; 
      
      /* MESMO TRUQUE AQUI: Fundo do menu também fica 95% transparente */
      background: rgba(var(--cor-rgb), 0.95);
      
      flex-direction: column; padding: 20px; gap: 15px;
      box-shadow: 0 4px 6px rgba(0,0,0,0.2);
      z-index: 9998;
  }
  nav ul.show { display: flex; }
  nav ul li button { width: 100%; border: 1px solid rgba(255,255,255,0.4); border-radius: 5px; }

  .prev, .next, .zoom-controls-desktop { display: none !important; }

  /* Barra de Botões */
  .nav-mobile {
      display: flex;
      position: relative; 
      width: 95%; max-width: 450px;
      margin: 15px auto; 
      background: rgba(0, 0, 0, 0.8); 
      padding: 10px 20px;
      border-radius: 50px;
      justify-content: space-between; align-items: center;
      z-index: 100;
      box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  }

  .nav-mobile button.btn-nav-mob {
      background: transparent; border: none; color: #fff; font-size: 26px;
      width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
  }
  
  .zoom-controls { display: flex; gap: 15px; }
  .zoom-controls button {
      width: 38px; height: 38px; background: #fff; color: #000; 
      border-radius: 50%; border: none; font-weight: bold; font-size: 20px;
      display: flex; align-items: center; justify-content: center;
  }
  
  /* Espaçamento */
  .share-container { margin-top: 20vh; width: 95%; }
  footer { margin-top: 20px; padding-bottom: 20px; }
}

/* --- AVISO IOS --- */
.ios-prompt {
    display: none; /* Escondido por padrão */
    position: fixed;
    bottom: 0; 
    left: 0; 
    width: 100%;
    background-color: #333;
    color: #fff;
    z-index: 9999; /* Acima de tudo */
    padding: 15px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    font-size: 14px;
    text-align: center;
}

.ios-content {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    padding-right: 20px; /* Espaço para o X */
}

.ios-content img {
    display: inline-block;
    width: 20px;
    vertical-align: middle;
    filter: invert(1); /* Deixa o ícone branco */
}

.ios-close {
    position: absolute;
    top: -10px;
    right: 0;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

/* --- VERSÃO DO APP (RODAPÉ) --- */
.version-text {
    font-size: 0.7rem;           /* Pequeno e discreto */
    color: rgba(255, 255, 255, 0.4); /* Bem transparente */
    margin-top: 5px;
    font-family: monospace;      /* Fonte técnica */
}

.version-text a {
    color: inherit;              /* Usa a mesma cor transparente */
    text-decoration: none;       /* Sem sublinhado */
    transition: color 0.3s;
}