/* Paleta oficial */
 :root {
   --primary: #CF8F53; /* ocre */
   --secondary: #061C29; /* azul escuro */
   --bg: #F0F0F0; /* background claro */
   --support: #000000;
   --light-ocre: #F7E8D4;
   --hero-bg-pos-y: 18%; /* posição vertical ajustada para equilibrar topo/cabeças */
 }

/* Tipografia com fallbacks */
html { font-size: 16px; }
body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; /* texto: Acumin Pro fallback */
  color: var(--secondary);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3 { font-family: "Lora", Georgia, serif; /* títulos: Amerigo fallback */ }
h1 { font-weight: 600; }
h2 { font-weight: 600; margin: 0 0 1rem; }
h3 { font-weight: 600; }

/* Utilidades */
.separator {
    width: 50px;
    height: 2px;
    background-color: #ddd;
    margin: 0 auto;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.section { padding: 4.5rem 0; position: relative; }
.section h2 { text-align: center; }
.section-subtitle { text-align: center; color: var(--primary); margin-bottom: 1.25rem; }
.section-secondary-subtitle { text-align: center; color: var(--secondary); margin-bottom: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }

/* Fade-in on scroll */
.fade { opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .6s ease; }
.fade.visible { opacity: 1; transform: translateY(0); }

/* Header fixo e limpo */
/* Header transparente sobreposto ao hero */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  border-bottom: none;
}
.header-inner { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 1.5rem 2rem; /* Mais espaçamento lateral */
  width: 100%; /* Ocupa toda a largura */
  max-width: 100%; /* Garante que não limita */
  box-sizing: border-box;
}
.brand-logo { font-family: "Lora", Georgia, serif; font-weight: 700; color: #fff; }
.site-header .logo-img { filter: brightness(0) invert(1); height: 64px;} /* Logo branco */
.site-nav a { color: #fff; text-decoration: none; margin-left: 1rem; font-weight: 500; text-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.site-nav a:hover { color: var(--primary); }
.site-nav a.nav-btn {
  background: var(--primary);
  color: #fff !important; /* Força branco */
  padding: .5rem 1.25rem;
  border-radius: .5rem;
  transition: background .3s ease;
  margin-left: 1.5rem; /* Espaço extra antes do botão */
  display: inline-flex; /* Garante alinhamento do ícone */
  align-items: center;
  font-weight: 600;
  text-transform: uppercase; /* Caixa alta */
  font-size: 0.9rem;
}
.site-nav a.nav-btn:hover {
  background: #bb7d46;
  color: #fff !important;
}

/* Menu responsivo mantém comportamento */
.nav-toggle { display: none; }
.nav-list { 
  display: flex; 
  list-style: none; 
  margin: 0; 
  padding: 0; 
  align-items: center; /* Alinha itens verticalmente */
}
.nav-list li { display: flex; align-items: center; } /* Garante alinhamento nos LIs */
.nav-list a { padding: .5rem .75rem; border-radius: .375rem; display: inline-block; } /* Padding igual para todos ajuda no alinhamento */
.nav-list a:hover { background: rgba(255,255,255,0.1); } /* Hover sutil branco translúcido */

/* Tablet tweaks: reduzir fonte para caber na linha */
@media (max-width: 920px) {
  .site-nav a { font-size: 0.85rem; margin-left: 0.25rem; }
  .site-nav a.nav-btn { padding: .4rem .85rem; margin-left: 0.5rem; font-size: 0.85rem; }
  .header-inner { padding: 1.5rem 1rem; } /* Reduz padding lateral em tablets */
}

@media (max-width: 640px) {
  .header-inner { padding: 1rem; } /* Menos padding no mobile */
  .nav-toggle { display: inline-flex; background: transparent; border: 0; padding: .35rem; color: #fff; align-items: center; justify-content: center; }
  .nav-toggle svg { width: 26px; height: 26px; }
  .site-nav { padding-right: .75rem; }
  .nav-list { display: none; position: absolute; top: 100%; right: 1rem; background: #fff; border: 1px solid rgba(6,28,41,0.15); border-radius: .5rem; padding: .5rem; flex-direction: column; gap: .25rem; }
  .nav-list a { color: var(--secondary); text-shadow: none; } /* Links escuros no mobile */
  .nav-list.open { display: flex; }
}

/* Regras duplicadas removidas daqui */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7SUc.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* Generic Hero */
.hero { 
  position: relative; 
  min-height: 68vh; 
  display: grid; 
  place-items: center; 
  text-align: center; 
}

/* Specific Home Hero */
#inicio.hero { 
  position: relative; 
  min-height: 75vh; 
  display: flex; 
  align-items: flex-end; 
  padding-bottom: 2rem; 
  justify-content: flex-start; 
  text-align: left; 
  background: url(utils/DSC00311.jpg) center var(--hero-bg-pos-y) / cover no-repeat; 
}

/* Overlay specific for Home Hero */
#inicio.hero::before { 
  content: ""; 
  position: absolute; 
  inset: 0; 
  background: linear-gradient(90deg, rgba(6, 28, 41, 0.85) 0%, rgba(6, 28, 41, 0.5) 50%, rgba(6, 28, 41, 0.1) 100%); 
 
}

.hero-content { 
    position: relative;
    z-index: 1;
    max-width: 650px;
    margin-left: 5%;
    padding-right: 2rem;
    top: 0;
}

#inicio h1 { 
  color: #fff; 
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
  margin-bottom: 1rem;
  font-size: 2.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  color: #fff;
  font-size: 1.125rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  max-width: 700px;
  margin-bottom: 2rem;
}

.hero-actions { 
  margin-top: 1.25rem; 
  display: flex;
  justify-content: flex-start; /* Botão na esquerda */
}

/* Ajustes Responsivos para o Banner */
@media (max-width: 920px) {
  #inicio.hero {
    min-height: 60vh;
    background-position: 70% center; /* Ajusta foco da imagem */
    align-items: center; /* Centraliza verticalmente em tablets */
  }
  .hero-content {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  #inicio.hero {
    min-height: auto; /* Remove altura de tela cheia */
    aspect-ratio: 10 / 7; /* Altura aprox 70% da largura */
    background-position: center 20%;
    align-items: flex-end;
    padding-bottom: 0;
    text-align: left;
  }
  
  #inicio.hero::before {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%); /* Gradiente vertical para mobile */
  }

  .hero h1 {
    font-size: 2rem;
  }
}

/* Botões */
.btn { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  gap: .5rem; 
  padding: .75rem 1.25rem; 
  border-radius: .5rem; 
  border: 1px solid transparent; 
  cursor: pointer; 
  text-decoration: none; 
  text-transform: uppercase; /* Força caixa alta em todos os botões por padrão */
  font-weight: 600; /* Negrito */
  font-size: 0.9rem;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #bb7d46; }
.btn-outline { color: var(--secondary); border-color: var(--secondary); background: transparent; }
.btn-outline:hover { background: rgba(6,28,41,0.06); }
.btn-icon { background: #fff; color: var(--secondary); border: 1px solid rgba(6,28,41,0.2); border-radius: .5rem; padding: .5rem .75rem; }

.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { background: #bb7d46; }

.banner-text-hero {
  background: linear-gradient(135deg, #f8ede2 0%, #fff 100%); /* imagem/tons bege suaves */
}
.banner-text-hero::before {
  content: ""; position: absolute; inset: 0; background: rgba(255,255,255,0.6); /* overlay branco translúcido */
  pointer-events: none;
}
.banner-text-content { position: relative; z-index: 1; max-width: 800px; text-align: center; }

/* Quem Somos hero sobreposto */
.quem-somos-hero {
  background: linear-gradient(135deg, #f8ede2 0%, #fff 100%); /* imagem/tons bege suaves */
}
.quem-somos-hero::before {
  content: ""; position: absolute; inset: 0; background: rgba(255,255,255,0.6); /* overlay branco translúcido */
  pointer-events: none;
}
.quem-somos-content { position: relative; z-index: 1; max-width: 800px; text-align: center; }


/* Cards de serviços (estilo olive com ícones) */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.service-card { background: #6f7a71; color: #061C29; border: none; border-radius: .75rem; box-shadow: 0 6px 18px rgba(6,28,41,0.06); padding: 2rem 1.5rem; text-align: center; display: flex; flex-direction: column; height: 100%; }
.service-card .btn { margin-top: auto; align-self: center; }
.service-icon { color: var(--primary); margin: 0 auto .75rem; width: 48px; height: 48px; }
.service-title { margin: .25rem 0 .75rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.service-desc { opacity: .95; margin: 0 0 1rem; }
.service-link { display: inline-block; color: #061C29; font-weight: 600; text-decoration: none; position: relative; }
.service-link::after { content: "\2192"; margin-left: .5rem; }
.service-link:hover { opacity: .9; }
@media (max-width: 920px) { 
  .service-card { 
    padding: 1.5rem 1.25rem; 
    height: auto; /* Garante altura natural */
  } 
  .cards { 
    display: flex; /* Muda para Flexbox para empilhamento mais seguro */
    flex-direction: column;
    max-width: 500px; 
    margin: 0 auto; 
    gap: 3rem; /* Espaçamento generoso */
  }
  
  /* Ajuste para equipe em tablets: 1 coluna e imagens corrigidas */
  .team {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
    gap: 3rem;
  }
  .team-card img {
    height: 550px !important;
  }
  /* Ajuste de foco para telas menores (tablet/mobile) onde a imagem é mais vertical */
  .team-img-andreia { object-position: center 60% !important; }
  .team-img-sarah { object-position: center 25% !important; }
}
.card { background: #fff; border: 1px solid rgba(207,143,83,0.35); border-radius: .75rem; box-shadow: 0 6px 18px rgba(6,28,41,0.06); padding: 1.5rem; }
.card-header h3 { margin: 0 0 .5rem; }
.card .subtitle { color: var(--secondary); opacity: .8; }
.card:hover { box-shadow: 0 10px 24px rgba(6,28,41,0.12); transform: translateY(-2px); transition: box-shadow .25s ease, transform .25s ease; }
.accordion-toggle { margin-top: .75rem; }
.accordion-content { padding-top: .5rem; }
.subitems { padding-left: 1.2rem; }

/* Classes específicas para ajuste de imagem da equipe (Desktop padrão) */
.team-img-andreia { object-position: center 50%; }
.team-img-sarah { object-position: center 18%; }

/* Equipe: reduzir imagens e manter dois cards */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: stretch; }
.team-card { background: #fff; border: 1px solid rgba(207,143,83,0.35); border-radius: .75rem; box-shadow: 0 6px 18px rgba(6,28,41,0.06); overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.team-card img { width: 100%; height: 550px; object-fit: cover;}
.team-info { padding: 1rem 1.25rem; flex: 1; display: flex; flex-direction: column; }
.team-info h3 { font-family: "Lora", Georgia, serif; }
.oab { font-weight: 600; opacity: .85; }
.bio { margin: .5rem 0; }
.quote { font-style: italic; opacity: .85; margin-top: auto; padding-top: 1.5rem; }
.team-note { text-align: center; opacity: .75; margin-top: 1rem; }

/* Depoimentos: carrossel de cards de avaliações (multi-itens) */
#depoimentos .carousel { position: relative; overflow: hidden; }
#depoimentos .carousel-track { --gap: 1rem; --visible-count: 5; display: flex; gap: var(--gap); will-change: transform; transition: transform .35s ease; padding: .5rem 0; }
#depoimentos .review-card { flex: 0 0 calc((100% - (var(--gap) * (var(--visible-count) - 1))) / var(--visible-count)); background: #fff; border: 1px solid rgba(6,28,41,0.12); border-radius: .75rem; box-shadow: 0 3px 12px rgba(6,28,41,0.08); padding: .75rem; display: flex; flex-direction: column; }
#depoimentos .stars { display: flex; gap: .25rem; margin-bottom: .5rem; color: #F5C33B; }
#depoimentos .stars svg { width: 18px; height: 18px; fill: currentColor; }
#depoimentos .review-text { color: #061C29; opacity: .9; font-size: .95rem; line-height: 1.35; margin: 0 0 .75rem; min-height: 48px; }
#depoimentos .reviewer { margin-top: auto; display: flex; align-items: center; gap: .5rem; }
#depoimentos .avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
#depoimentos .who { display: flex; flex-direction: column; line-height: 1.1; }
#depoimentos .who strong { font-size: .9rem; }
#depoimentos .who small { opacity: .6; }
#depoimentos .g-badge { width: 18px; height: 18px; margin-left: auto; opacity: .85; }

#depoimentos .reviews { display: flex; flex-direction: column; }
#depoimentos .carousel-track { order: 1; }
#depoimentos .carousel-controls { position: static; order: 2; display: flex; align-items: center; justify-content: center; gap: .75rem; padding-top: .75rem; }
#depoimentos .prev, #depoimentos .next { pointer-events: auto; width: 34px; height: 34px; border-radius: 999px; background: #3a3a3a; color: #fff; border: 1px solid rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease; }
#depoimentos .prev:hover, #depoimentos .next:hover { background: var(--primary); color: var(--secondary); border-color: rgba(207,143,83,0.6); box-shadow: 0 6px 18px rgba(207,143,83,0.35); }
#depoimentos .prev:focus-visible, #depoimentos .next:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(207,143,83,0.35); background: var(--primary); color: var(--secondary); }
#depoimentos .prev { margin-left: .25rem; }
#depoimentos .next { margin-right: .25rem; }

@media (max-width: 1200px) { #depoimentos .carousel-track { --visible-count: 4; } }
@media (max-width: 920px) { #depoimentos .carousel-track { --visible-count: 3; } }
@media (max-width: 700px) { #depoimentos .carousel-track { --visible-count: 2; } }
@media (max-width: 480px) { #depoimentos .carousel-track { --visible-count: 1; } }
@media (max-width: 640px) {
  #depoimentos .carousel { overflow: hidden; }
  #depoimentos .carousel-track { --visible-count: 1; gap: 0; padding: 0; }
  #depoimentos .review-card { flex: 0 0 100%; min-width: 100%; }
}

/* Conteúdo: imagem e texto alinhados */
.content-image img { width: 100%; height: 320px; object-fit: cover; border-radius: .75rem; }

/* Contato */
.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 2rem; align-items: start; }
.contact-list { list-style: none; padding: 0; }
.map-wrap iframe { width: 100%; height: 260px; border: 0; border-radius: .75rem; }
.contact-form form { display: grid; gap: .75rem; }
.contact-form input, .contact-form textarea { padding: .6rem .75rem; border: 1px solid rgba(6,28,41,0.2); border-radius: .5rem; background: #fff; }

/* Footer centralizado */
.site-footer { background: var(--secondary); color: #fff; }
.site-footer .container { text-align: center; padding: 2rem 1rem; }
.site-footer a { color: #fff; }

/* Chat flutuante com avatar */
.chat-widget {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  transition: transform 0.3s ease;
}

.chat-widget:hover {
  transform: translateY(-3px);
}

.chat-avatar-container {
  position: relative;
  width: 56px;
  height: 56px;
  order: 1; /* Avatar à esquerda */
}

.chat-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.chat-status {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background: #25D366; /* Verde WhatsApp */
  border: 2px solid #fff;
  border-radius: 50%;
}

.chat-message {
  order: 0; /* Texto à direita do avatar (na verdade esquerda visualmente, mas flex order troca) - Espera, order 0 vem antes de order 1 */
  /* Correção visual: queremos Texto [Esquerda] -> Avatar [Direita] */
  /* Se container é flex row (default), order 0 vem primeiro (esquerda), order 1 vem depois (direita). */
  /* O CSS anterior tinha order: 1 no avatar, então avatar fica na direita. Texto sem order fica na esquerda. */
  background: #fff;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    border-bottom-right-radius: 0; /* Balãozinho saindo do avatar */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    max-width: 200px;
    animation: fadeIn 0.5s ease-out;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  /* =========================================
     BLOG STYLES (Restored)
     ========================================= */
  
  /* Blog Grid System */
  .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
  }
  
  /* Blog Card Styles */
  .blog-card {
    background: #fff;
    border: 1px solid rgba(6, 28, 41, 0.1);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Garante altura igual */
  }
  
  .blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(6, 28, 41, 0.1);
  }
  
  .blog-thumb {
    position: relative;
    overflow: hidden;
    height: 200px;
    width: 100%;
  }
  
  .blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }
  
  .blog-card:hover .blog-thumb img {
    transform: scale(1.05);
  }
  
  .blog-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  
  .blog-content h3 {
    font-family: "Lora", serif;
    font-size: 1.25rem;
    margin: 0 0 0.5rem;
    line-height: 1.3;
    color: var(--secondary);
  }
  
  .blog-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .blog-excerpt {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex: 1; /* Empurra o footer para baixo */
  }
  
  .blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 1rem;
    margin-top: auto;
  }

  .blog-header {
    text-align: center;
    margin-bottom: 3rem;
  }

  .blog-header h2 {
    font-size: 2.25rem;
    color: var(--secondary);
    margin-bottom: 1rem;
  }

.section h2 {
    text-align: center;
}
  
  .read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: color 0.2s ease;
  }
  
  .read-more:hover {
    color: var(--secondary);
  }
  
  .comments {
    color: #aaa;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
  }


.banner-text {
  display: none;
}

@media (max-width: 768px) {
  .hero-content {
    display: none !important;
  }
  .banner-text {
    display: block;
  }
  .team {
    grid-template-columns: 1fr;
  }
  .team-card img {
    height: auto !important;
    aspect-ratio: 10 / 7;
    object-position: center 20%;
  }
  .team-img-andreia { object-position: center 26% !important; }
  .team-img-sarah { object-position: center 20% !important; }
}
