/* Custom CSS styles */
#header ul {
  list-style: none;
  display: flex; /* centraliza os itens dentro do ul */
  gap: 2.0em; /* espaçamento entre os links */
  margin: 0;
  padding: 0;
  flex-wrap: wrap;}

#header .menu {
  flex: 1; /* ocupa espaço central */
  text-align: center;
}

#header .menu ul {
  list-style: none;
  display: inline-flex; /* mantém os itens lado a lado */
  gap: 1.5em; /* espaçamento entre links */
  margin: 0;
  padding: 0;
}

@media (max-width: 768px) {
  #header .menu {
    font-size: 0.5rem;   /* reduz tamanho da fonte */
    padding: 0.5em;      /* menos espaço interno */
  }
  .header-left{
    font-size: 0.75em;
  }}

.header-left,
.header-center,
.header-right {
  display: flex;
  align-items: center;
  width: 50%;
}

.header-left {
  flex: 1;
}

.header-center {
  flex: 2;
  justify-content: center;
}

.header-right {
  flex: 1;
  justify-content: flex-end;
}

.header-right .contact li{         /* aumenta o tamanho da fonte */
  font-weight: 600;           /* deixa mais destacado */ 
}

.whatsapp-link {
  display: flex;              /* coloca ícone e número lado a lado */
  align-items: center;        /* alinha verticalmente */
  gap: 0.6em;                 /* espaço entre ícone e número */
  color: #fff;                /* cor oficial do WhatsApp */
  text-decoration: none;      /* remove sublinhado */
  font-size: 1.2rem;          /* aumenta tamanho da fonte */
  font-weight: 600;           /* deixa o número mais destacado */
  border-radius: 8px;         /* cantos arredondados */
  padding: 0 0.8em;   
  background-color: #25D366;  /* verde oficial do WhatsApp */
}

.whatsapp-link .icon {
  font-size: 2rem;          /* tamanho do ícone */
}
/* Ajuste para telas menores */
@media (max-width: 768px) {
  .whatsapp-link {
    font-size: 0.9rem;       /* reduz fonte do número */
    padding: 0 0.230em;      /* menos espaço interno */
  }

  .whatsapp-link .icon {
    font-size: 1.2rem;     /* ícone menor */
  }
}

/* Ajuste para telas bem pequenas (celulares) */
@media (max-width: 480px) {
  .whatsapp-link {
    font-size: 0.7rem;
    padding: 0 0.2em;
  }

  .whatsapp-link .icon {
    font-size: 1rem;
  }
}
.menu ul {
  list-style: none;
  display: flex;
  gap: 2em;
  margin: 0;
  padding: 0;
}

.menu ul li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  font-size: 1.2em;
}

#descricao {
  width: 100%;
  margin: 0;
  padding: 0;
}
#descricao h2, p{
  color: #0B1F3A;
}

#descricao p {
  text-align: justify;
  line-height: 1.7;
  width: 85%;
  margin: 0 0 0.5em 0;
}

.features h3 {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 800;
  color: #0B1F3A;
  margin-top: 1em;
  text-align: center;
}

.features h4 {
  letter-spacing: 0.5px;
  color: #0B1F3A;
  margin-top: 1em;
  text-align: center;
  width: 100%;
}

.features article .content p {
  font-size: 1.125em;
  line-height: 1.7;
  color: #0B1F3A;
  text-align: justify;
  width: 100%;
}
.features article {
  display: flex;
  flex-direction: column;   /* organiza conteúdo em coluna */
  justify-content: space-between; /* distribui topo e base */
  border: 3px solid #B08D57;
  border-radius: 8px;
  padding: 2em;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

/* garante que o bloco de conteúdo ocupe o espaço disponível */
.features article .content {
  flex: 1; 
  display: flex;
  flex-direction: column;
}

/* empurra o botão para o final */
.features article .actions {
  margin-top: auto;   /* força ficar no rodapé */
  text-align: center; /* centraliza o botão */
}


.actions {
  display: flex;              /* transforma em flexbox */
  justify-content: center;    /* centraliza horizontalmente */
  margin-top: 1.5em;          /* espaço acima do botão */
}

.actions li {
  list-style: none;           /* remove marcador */
}

.posts {
  background-color: #0B1F3A;
}
.posts h3{
  font-size: 1.1rem;
  color: #fff;
}

.posts h4{
  font-size: 1rem;
  color: #fff;
}

.posts p{
  font-size: 0.9rem;
  line-height: 2;
  text-align: justify;
  color: #fff;
}

/* Seção ocupa toda a largura da tela */
.team-section {
  background-color: #0B1F3A; /* ou a cor que você quiser */
  width: 100%;              /* garante que o fundo vá até as bordas */
  padding: 4em 0;           /* espaçamento vertical */
}

.team-section .posts {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  justify-content: center;
}

.team-section .posts article {
  flex: 1 1 250px; /* todos ocupam o mesmo espaço */
  max-width: 300px;
  background: #0B1F3A;
  padding: 0.9em;
  border-radius: 8px;
  text-align: center;
}


/* Seções com fundo */
.services-section {
  background-color: #F9F6F1; /* cor suave */
  padding: 2em 0;           /* espaçamento vertical */
}

/* Seção Quem Somos */
.about-section {
  background-color: #FFF; /* cor de fundo estendida */
  padding: 4em 0;           /* espaçamento vertical */
  width: 100%;              /* ocupa toda a largura da tela */
}

/* Container padrão */
.container {
  max-width: 1200px;   /* largura máxima do conteúdo */
  margin: 0 auto;      /* centraliza horizontalmente */
  padding: 0 0.5em;      /* espaçamento lateral generoso */
  box-sizing: border-box;
}

/* Container centraliza e aplica padding lateral */
#header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0.5em; /* mesmo padding das seções */
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

/* Ajuste para tablets */
@media screen and (max-width: 1024px) {
  .container {
    padding: 0 2em;    /* reduz o padding lateral */
    max-width: 100%;   /* ocupa toda a largura disponível */
  }
}

/* Ajuste para celulares */
@media screen and (max-width: 600px) {
  .container {
    padding: 0 1em;    /* padding menor para telas pequenas */
  }
}

#footer p {
  margin: 0.9em 0; /* controla o espaço entre os textos */
  font-style: italic;
}


#conteudo p {
  text-align: justify;
  line-height: 2;
  width: 80%;
  margin: 0 0 0.5em 0;
}

#conteudo h4 {
  text-align: justify;
  line-height: 2;
  font-size: 1.2em;
  padding: 0.5em 0 0 0;
}

#contact-section {
  text-align: justify;
  line-height: 2;
  margin: 1.5em 0 0 0; 
}

/* ============================================================
   Botão Outline — variante secundária ("Saiba mais")
   Mantém hierarquia visual sem reformar a paleta.
   ============================================================ */
.button.outline {
    background-color: rgba(176, 141, 87, 0.12);
    box-shadow: inset 0 0 0 2px #B08D57;
    color: #7d6340 !important;
}
.button.outline:hover {
    background-color: rgba(176, 141, 87, 0.22);
    color: #5e4a30 !important;
}
.button.outline:active {
    background-color: rgba(176, 141, 87, 0.32);
}

/* ============================================================
   Sumário (Table of Contents) em páginas de conteúdo extenso
   ============================================================ */
.toc {
    background: rgba(11, 31, 58, 0.04);
    border-left: 3px solid #0B1F3A;
    padding: 1.25em 1.5em 0.75em 1.5em;
    margin: 0 0 2em 0;
    border-radius: 0 4px 4px 0;
}
.toc-title {
    margin: 0 0 0.5em 0;
    font-size: 0.95em;
    color: #0B1F3A;
}
.toc ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}
.toc > ul > li {
    margin-bottom: 0.5em;
}
.toc ul ul {
    list-style: disc;
    padding-left: 1.5em;
    margin-top: 0.25em;
    margin-bottom: 0.5em;
}
.toc ul ul li {
    font-size: 0.92em;
    margin-bottom: 0.15em;
}
.toc a {
    color: #0B1F3A;
    text-decoration: none;
    border-bottom: none;
}
.toc a:hover {
    text-decoration: underline;
}

/* Scroll-margin para que âncoras não fiquem coladas no topo da viewport */
h3[id], h4[id] {
    scroll-margin-top: 1em;
}

/* ============================================================
   Menu mobile (hambúrguer) — controlado por site.js
   ============================================================ */
.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 8px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    box-shadow: none;
    box-sizing: content-box;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #fff;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media screen and (max-width: 736px) {
    .menu-toggle {
        display: flex;
    }
    .header-center .menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #0B1F3A;
        padding: 1em 0;
        z-index: 100;
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }
    .header-center .menu.is-open {
        display: block;
    }
    .header-center .menu ul {
        flex-direction: column;
        gap: 0;
    }
    .header-center .menu ul li {
        padding: 0.75em 1.5em;
        text-align: center;
    }
    .header-center .menu ul li a {
        color: #fff;
    }
    /* Header precisa permitir posicionamento absoluto do menu */
    #header {
        position: relative;
    }
}

/* ============================================================
   Links dentro do corpo de paginas de conteudo
   Corrige bug em que o link herdava cor do fundo (ficava invisivel)
   ============================================================ */
#conteudo a {
    color: #0B1F3A;
    border-bottom: 1px dotted rgba(11, 31, 58, 0.5);
    text-decoration: none;
}
#conteudo a:hover {
    color: #25d366;
    border-bottom-color: #25d366;
}
#conteudo a:visited {
    color: #4a3b6e;
}

/* ============================================================
   Frase final do 'Como podemos ajudar você' — CTA discreto
   ============================================================ */
.cta-frase {
    margin-top: 1.5em !important;
}
.cta-frase a {
    color: #0B1F3A;
    text-decoration: none;
    transition: color 0.2s ease;
}
.cta-frase a:hover {
    color: #25d366;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}
.cta-frase strong {
    background-color: transparent;
}

/* ============================================================
   Override: destaque <strong> em tom dourado (em vez de amarelo)
   Substitui a regra padrão do main.css do template.
   A regra .cta-frase strong { background: transparent } continua válida.
   ============================================================ */
strong, b {
    background-color: rgba(176, 141, 87, 0.18) !important;
}
.cta-frase strong {
    background-color: transparent !important;
}


/* ============================================================
   Override de cores do main.css do template
   Substitui #222D52 -> #0B1F3A e #D2B68A -> #B08D57
   nos pontos em que o template aplica essas cores diretamente.
   ============================================================ */

/* Link com strong dentro de hover (linha 117-118) */
a:hover strong {
    color: #B08D57 !important;
}

/* Header major (titulos de secao) */
header.major > :last-child {
    color: #0B1F3A;
    border-bottom: solid 3px #B08D57;
}

/* Inputs com foco */
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    border-color: #B08D57;
    box-shadow: 0 0 0 1px #B08D57;
}

/* Lista de contato (icones) */
ul.contact li:before {
    color: #0B1F3A;
}

/* Icones dos cards de servico */
.features article .icon:before {
    color: #B08D57;
}

/* Tabelas e listas com border-bottom dourado */
table thead {
    border-bottom: solid 5px #B08D57;
}

/* Override do #header background (template usa !important) */
#header {
    background-color: #0B1F3A !important;
    border-bottom-color: #B08D57 !important;
}

/* ============================================================
   Link 'Saiba mais sobre [tema]' no rodapé dos cards de serviço
   Substitui o botão outline por um link textual, mais discreto
   ============================================================ */
.card-link {
    margin: 0 0 1em 0;
    font-size: 0.95em;
    text-align: center !important;
    text-transform: uppercase;
    font-weight: 800;
}
.card-link a {
    color: #B08D57;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}
.card-link a:hover {
    color: #25d366;
    text-decoration-thickness: 1px;
}
