/* =========================================================
   GA CONTÁBIL - FOLHA DE ESTILOS GERAL (RESPONSIVA E SEM BANCO)
   ========================================================= */

/* --- CONFIGURAÇÕES BÁSICAS --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: #555555;
  background-color: #f7f9fb;
  line-height: 1.7;
}

/* Gabarito centralizado com margens generosas */
.container-restrito {
  width: 82%;
  max-width: 1050px;
  margin-left: auto;
  margin-right: auto;
}

/* --- TOPO E NAVEGAÇÃO DESKTOP --- */
header {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e9f0;
  width: 100%;
  position: relative;
  z-index: 990;
}

.topo-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0; /* reduz o respiro vertical para acomodar a logo maior */
}

.logo img {
  height: 90px !important;
  max-height: none !important;
  width: auto !important;
  display: block;
}

nav ul {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 1.6rem;
}

nav a {
  text-decoration: none;
  color: #5a6578;
  font-size: 0.95rem;
  font-weight: 500;
  padding-bottom: 6px;
  transition: all 0.2s ease;
}

nav a.ativo {
  color: #0b3966;
  border-bottom: 3px solid #73a9e4;
  font-weight: 600;
}

nav a:hover {
  color: #0b3966;
}

.link-area-cliente {
  color: #0b3966;
  font-weight: 600;
}

/* --- ELEMENTOS DO MENU HAMBÚRGUER (MOBILE) --- */
.btn-menu-hamburguer {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: #173865;
}

.btn-menu-hamburguer .material-symbols-outlined {
  font-size: 32px;
}

.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 998;
  backdrop-filter: blur(2px);
}

.menu-overlay.aberto {
  display: block;
}

.btn-fechar-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #173865;
  align-self: flex-end;
  padding: 10px;
}

.btn-fechar-menu .material-symbols-outlined {
  font-size: 30px;
}

/* --- BANNER PRINCIPAL DA HOME (FOTO NÍTIDA COM DEGRADÊ LEVE) --- */
.hero-home {
  position: relative;
  min-height: 480px;
  background-color: #173865;
  /* Degradê bem suave: 35% no topo/base e apenas 15% a 20% no meio */
  background-image: 
    linear-gradient(180deg, rgba(16, 42, 82, 0.40) 0%, rgba(23, 56, 101, 0.18) 50%, rgba(16, 42, 82, 0.45) 100%),
    url('../imagens/banner-topo.png');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
}

.area-cliente-topo-hero {
  position: absolute;
  top: 25px;
  right: 5%;
  text-decoration: none;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.area-cliente-topo-hero span.material-symbols-outlined {
  font-size: 30px;
}

.area-cliente-topo-hero span.texto-acesso {
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
}

/* Círculo central do emblema */
.circulo-central {
  width: 210px;
  height: 210px;
  max-width: 210px;
  max-height: 210px;
  background-color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.circulo-central img {
  width: 100%;
  max-width: 155px;
  height: auto;
  object-fit: contain;
  display: block;
}

.hero-home h2 {
  color: #ffffff;
  font-size: 1.55rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
}

.hero-home p {
  color: #ffffff;
  font-size: 1.05rem;
  letter-spacing: 2px;
  font-weight: 600;
  text-transform: uppercase;
}

/* --- BANNER DE CABEÇALHO DAS PÁGINAS INTERNAS --- */
.banner-cabecalho {
  width: 100%;
  height: 240px;
  background-image: linear-gradient(rgba(30, 58, 138, 0.45), rgba(30, 58, 138, 0.45)), url('../imagens/banner-topo.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-cabecalho h1 {
  color: #ffffff;
  font-size: 2.4rem;
  letter-spacing: 4px;
  font-weight: 700;
  text-transform: uppercase;
}

.banner-quem-somos {
  background-image: linear-gradient(rgba(30, 58, 138, 0.45), rgba(30, 58, 138, 0.45)), url('../imagens/banner-topo-ga-contabil-quem-somos.jpg');
}

/* --- FAIXAS E PARALAXE --- */
.faixa-cuidamos {
  background-color: #ffffff;
  text-align: center;
  padding: 2.5rem 1rem;
}

.faixa-cuidamos h3 {
  color: #173865;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}
/* --- FAIXA WHATSAPP (COMBINANDO COM A MESMA LUMINOSIDADE) --- */
.faixa-parallax-whats {
  background-color: #173865;
  background-image: 
    linear-gradient(135deg, rgba(16, 42, 82, 0.45) 0%, rgba(23, 56, 101, 0.20) 50%, rgba(16, 42, 82, 0.45) 100%),
    url('../imagens/banner-topo.png');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  text-align: center;
  padding: 3.5rem 1rem;
}
.faixa-parallax-whats p {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

.btn-azul-escuro {
  display: inline-block;
  background-color: #0b3966;
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.8rem 2.8rem;
  border-radius: 4px;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
}

/* Efeito de movimento ao passar o mouse */
.btn-azul-escuro:hover {
  background-color: #ffffff;
  color: #0b3966;
  border-color: #0b3966;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

/* Efeito ao clicar */
.btn-azul-escuro:active {
  transform: translateY(-1px) scale(0.99);
}

/* --- SEÇÕES INSTITUCIONAIS DA HOME (DUAS COLUNAS) --- */
.secao-bloco-branco {
  padding: 4.5rem 0;
  background-color: #ffffff;
}

.secao-bloco-cinza {
  padding: 4.5rem 0;
  background-color: #f1f5f9;
}

.grade-duas-colunas {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3.5rem;
}

.grade-duas-colunas-invertida {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3.5rem;
  flex-direction: row-reverse;
}

.col-imagem-redonda {
  flex: 0.9;
  display: flex;
  justify-content: center;
}

.col-imagem-redonda img {
  width: 100%;
  max-width: 380px;
  height: auto;
  border-radius: 50%;
  display: block;
}

.col-conteudo-texto {
  flex: 1.1;
}

.titulo-faixa-sublinhado {
  color: #173865;
  font-size: 2rem;
  letter-spacing: 2px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.titulo-faixa-sublinhado::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #215c99;
  margin-top: 8px;
}

.botoes-grade-segmentos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.btn-segmento-link {
  display: block;
  text-decoration: none;
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
  color: #173865;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  padding: 0.75rem 1rem;
  border-radius: 3px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.btn-segmento-link:hover {
  background-color: #f8fafc;
  border-color: #173865;
}

.col-conteudo-texto p {
  color: #555555;
  font-size: 0.96rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

/* --- SEÇÃO SERVIÇOS (CARDS NA HOME E PÁGINA INTERNA) --- */
.grid-servicos-home,
.grid-servicos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.card-servico-home,
.card-servico {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 2.5rem 1.8rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.icone-redondo,
.icone-circulo {
  width: 75px;
  height: 75px;
  background-color: #799fc9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  color: #173865;
}

.icone-redondo .material-symbols-outlined,
.icone-circulo .material-symbols-outlined {
  font-size: 38px;
}

.card-servico-home h3,
.card-servico h2 {
  font-size: 1.3rem;
  color: #173865;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.card-servico-home p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
}

.card-servico ul {
  list-style-type: disc;
  text-align: left;
  padding-left: 1.2rem;
  width: 100%;
}

.card-servico li {
  font-size: 0.92rem;
  color: #4b5563;
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.faixa-especialistas {
  background-color: #f1f5f9;
  text-align: center;
  padding: 3.5rem 1rem;
  border-top: 1px solid #e2e8f0;
}

.faixa-especialistas h3 {
  color: #173865;
  font-size: 1.9rem;
  margin-bottom: 0.5rem;
}

.faixa-especialistas p {
  color: #475569;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

/* --- CARDS DA PÁGINA SEGMENTOS (3 COLUNAS) --- */
.grid-segmentos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
  padding: 3rem 0;
}

.card-segmento {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 2.2rem 1.8rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.card-segmento h2 {
  font-size: 1.05rem;
  color: #0b3966;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: center;
  border: 1px solid #cbd5e1;
  padding: 0.6rem 1rem;
  border-radius: 3px;
  margin-bottom: 1.8rem;
}

.card-segmento p {
  font-size: 0.92rem;
  color: #64748b;
  margin-bottom: 1.2rem;
  text-align: left;
  line-height: 1.6;
}

/* --- QUEM SOMOS: HISTÓRIA, OBJETIVO E MISSÃO/VISÃO/VALORES --- */
.secao-historia {
  padding: 4rem 0 3rem 0;
}

.historia-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.historia-texto {
  flex: 1.2;
}

.historia-texto h2 {
  color: #0b3966;
  font-size: 1.9rem;
  margin-bottom: 1.5rem;
}

.historia-imagem {
  flex: 0.8;
  display: flex;
  justify-content: center;
}

.historia-imagem img {
  max-width: 100%;
  height: auto;
  border-radius: 50%;
}

.secao-objetivo {
  text-align: center;
  padding: 1rem 0 3.5rem 0;
  max-width: 750px;
  margin: 0 auto;
}

.secao-objetivo h3 {
  color: #0b3966;
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.secao-objetivo p {
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.7;
}

.faixa-institucional-azul {
  background-color: #bad3e9;
  padding: 4.5rem 0;
  width: 100%;
}

.grid-institucional {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.card-institucional {
  background-color: #ffffff;
  border-radius: 2px;
  padding: 0 0 2rem 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.card-institucional-topo {
  background-color: #215c99;
  color: #ffffff;
  text-align: center;
  padding: 1rem 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 1.8rem;
}

.card-institucional-corpo {
  padding: 0 1.8rem;
}

.card-institucional ul {
  list-style-type: disc;
  padding-left: 1.2rem;
}

.card-institucional li {
  color: #555555;
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 0.9rem;
}

.secao-citacao {
  text-align: center;
  padding: 4rem 0;
  background-color: #ffffff;
}

.secao-citacao blockquote {
  font-size: 1.35rem;
  color: #0b3966;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

.secao-citacao cite {
  font-size: 1.05rem;
  color: #0b3966;
  font-style: normal;
  display: block;
}

/* --- CLIENTES (MOSAICO) --- */
.secao-clientes {
  padding: 4.5rem 0;
  text-align: center;
  background-color: #ffffff;
}

.mosaico-clientes-box {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mosaico-clientes-box img {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: 4px;
}

/* --- NOTÍCIAS / BLOG --- */
.secao-noticias {
  padding: 4.5rem 0;
  background-color: #f1f5f9;
  text-align: center;
}

.grid-noticias {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
  text-align: left;
  margin-top: 2.5rem;
}

.card-noticia {
  background-color: #ffffff;
  border: 1px solid #dce3eb;
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-noticia a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.capa-post {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #e2e8f0;
  overflow: hidden;
}

.capa-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.corpo-post {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.meta-post {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 0.8rem;
}

.meta-post img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.corpo-post h3 {
  color: #1e293b;
  font-size: 1.1rem;
  line-height: 1.4;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.corpo-post p {
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.55;
}

/* --- FORMULÁRIO DE CONTATO --- */
.secao-contato {
  background-color: #ffffff;
  padding: 4.5rem 0;
  border-top: 1px solid #e2e8f0;
}

.formulario-box {
  max-width: 600px;
  margin: 0 auto;
}

.formulario-box h2 {
  color: #173865;
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 1.8rem;
}

.form-grupo {
  margin-bottom: 1.2rem;
}

.form-controle {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #71717a;
  border-radius: 2px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
}

.form-controle:focus {
  border-color: #173865;
}

textarea.form-controle {
  min-height: 170px;
  resize: vertical;
}

.form-acoes {
  display: flex;
  justify-content: flex-end;
}

.btn-enviar {
  background-color: #1b3574;
  color: #ffffff;
  border: none;
  padding: 0.75rem 2.4rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 2px;
  cursor: pointer;
}

/* --- FAIXA "PRECISA DE MAIS INFORMAÇÕES?" E MAPA --- */
.faixa-chamada {
  background-color: #ffffff;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 3rem 0;
}

.chamada-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.chamada-texto h3 {
  color: #0b3966;
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.chamada-texto p {
  color: #5a6578;
  font-size: 1rem;
}

.secao-mapa {
  width: 100%;
  line-height: 0;
}

.secao-mapa iframe {
  width: 100%;
  height: 250px;
  border: none;
}

/* --- RODAPÉ INSTITUCIONAL --- */
footer {
  background-color: #eef2f6;
  color: #475569;
  padding: 3.5rem 0 1.5rem 0;
  font-size: 0.92rem;
}

.rodape-colunas {
  display: flex;
  justify-content: space-around;
  gap: 3rem;
  margin-bottom: 3rem;
}

.coluna-rodape h4 {
  color: #0b3966;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.info-item {
  margin-bottom: 0.8rem;
  color: #334155;
}

.info-item a {
  color: #334155;
  text-decoration: none;
}

.info-item a:hover {
  color: #0b3966;
  text-decoration: underline;
}

.rodape-inferior {
  border-top: 1px solid #cbd5e1;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #64748b;
}

/* =========================================================
   REGRAS RESPONSIVAS E MENU HAMBÚRGUER (MOBILE)
   ========================================================= */
@media (max-width: 860px) {
  /* Alinhamento do topo no celular */
  .topo-flex {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 0 !important;
  }

  /* Exibe os botões de controle do menu no mobile */
  .btn-menu-hamburguer {
    display: block;
  }

  .btn-fechar-menu {
    display: block;
  }

  /* Gaveta do menu que desliza da direita */
  nav {
    position: fixed;
    top: 0;
    right: -310px; /* Escondido fora da tela */
    width: 280px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 999;
    padding: 1.5rem 1.8rem;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease-in-out;
  }

  /* Quando ativado pelo clique */
  nav.aberto {
    right: 0; /* Entra na tela */
  }

  nav ul {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1.2rem !important;
    margin-top: 1rem;
    width: 100%;
  }

  nav a {
    font-size: 1.05rem;
    width: 100%;
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
  }

  .link-area-cliente {
    color: #173865 !important;
    font-weight: 700;
  }

  /* Demais ajustes para telas pequenas */
  .grade-duas-colunas,
  .grade-duas-colunas-invertida,
  .historia-grid,
  .chamada-flex,
  .rodape-colunas {
    flex-direction: column;
    text-align: center;
  }

  .botoes-grade-segmentos,
  .grid-servicos-home,
  .grid-servicos,
  .grid-segmentos,
  .grid-institucional,
  .grid-noticias {
    grid-template-columns: 1fr;
  }

  .area-cliente-topo-hero {
  display: none !important;
}
}
/* --- Banner de Consentimento de Cookies (LGPD) --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  color: #475569;
  border-top: 1px solid #cbd5e1;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
  padding: 1rem 0;
  z-index: 1000;
  display: none; /* Ativado via JavaScript apenas se o usuário ainda não tiver aceitado */
}

.cookie-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.cookie-texto p {
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
}

.cookie-texto a {
  color: #0b3966;
  text-decoration: underline;
  font-weight: 600;
}

.btn-aceitar-cookie {
  background-color: #0b3966;
  color: #ffffff;
  border: none;
  padding: 0.6rem 1.6rem;
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.btn-aceitar-cookie:hover {
  background-color: #072544;
}

@media (max-width: 768px) {
  .cookie-flex {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
  }
}