/* =========================================================
   CARVALHO DE BRITTO — TOKENS DE DESIGN
   Cor:    Navy profundo #0B1E3D (header/rodapé/textos de destaque)
           Navy mais escuro #081428 (fundos sólidos, overlays)
           Dourado #B79553 (acentos, linhas, hover)
           Dourado claro #D9C08C (detalhes sutis, hairlines)
           Marfim #F7F5F1 (fundo geral das seções claras)
           Grafite #23262B (texto de corpo)
   Tipo:   Display  -> "Cormorant Garamond" (serifa, itálico como acento)
           Corpo/UI -> "Source Sans 3"
   Motivo: navy transmite solidez e tradição jurídica; dourado usado
           com moderação (linhas, molduras, hover) sinaliza prestígio
           sem competir com o navy. Serifa no título remete a
           documentos/tradição jurídica; sans no corpo garante leitura
           limpa em blocos de texto longos.
   Assinatura: uma linha fina dourada com um pequeno losango central
           (eco discreto da "balança" jurídica) separando seções —
           usada com moderação, nunca decorativa em excesso.
   ========================================================= */

:root {
  --navy: #0b1e3d;
  --navy-deep: #081428;
  --gold: #b79553;
  --gold-light: #d9c08c;
  --ivory: #f7f5f1;
  --white: #ffffff;
  --graphite: #23262b;
  --graphite-soft: #565b63;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;

  --max-width: 1180px;
  --gap-section: 128px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--graphite);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  color: var(--navy);
}

.section-title {
  font-size: 2.4rem;
  position: relative;
  padding-bottom: 20px;
  margin-bottom: 40px;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 2px;
  background: var(--gold);
}

/* =========================================================
   HEADER / MENU
   ========================================================= */

.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(183, 149, 83, 0.25);
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Logomarca do cabeçalho (imagem prata/branca sobre o fundo navy).

   O arquivo do logo tem quase metade da altura em espaço transparente
   (imagem 768x512, desenho real 678x260). Por isso a imagem é ampliada
   e o excesso é cortado pelo overflow do link — assim o logo aparece
   no tamanho certo, proporcional ao menu, sem sobra em volta. */
/* O logo é montado com duas imagens, uma ao lado da outra, para
   poder dar tamanhos diferentes a cada parte.

   A conta, medida nos arquivos (os dois têm 275px de altura):
     - no arquivo do CBA, as letras "CBA" ocupam 132px
     - no arquivo do 20 anos, o "20" ocupa 88px
   Como 132 ÷ 88 = 1,5, o bloco do 20 anos é ampliado 1,5 vez em
   relação ao outro — é assim que o "20" fica do mesmo tamanho das
   letras do CBA, que era o pedido do doutor.

   O que sobra para fora da caixa é cortado pelo overflow; no bloco
   do 20 anos isso é proposital, porque a barrinha divisória dele
   vira uma linha vertical de altura inteira. */
.brand-link {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 76px;
  overflow: hidden;
}

.logo-cba {
  height: 80px;
  width: auto;
  max-width: none;
  display: block;
}

.logo-20anos {
  height: 120px;
  width: auto;
  max-width: none;
  display: block;
}

/* Classes de texto da marca — mantidas para caso o logo em imagem
   precise ser trocado de volta por texto no futuro */
.brand-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}

.brand-years {
  font-family: var(--font-body);
  font-size: 0.68rem;
  color: var(--gold-light);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 2px;
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  gap: 32px;
}

/* nowrap evita que "Processo Virtual" quebre em duas linhas quando
   o espaço aperta (foi o que aconteceu ao entrar o botão de tema) */
.nav-item a {
  display: block;
  white-space: nowrap;
  padding: 10px 6px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.02em;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-item a:hover {
  color: var(--gold-light);
}

.nav-item--active a {
  color: var(--navy);
  background: var(--white);
  padding: 10px 16px;
  border-radius: 2px;
  border-bottom-color: transparent;
}

.header-extras {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Botões redondos com ícone (redes sociais, telefone, busca).
   O desenho dentro herda a cor do texto (currentColor). Por padrão
   usam o tom navy — que funciona nos fundos claros (Equipe, Contato,
   rodapé). O cabeçalho, logo abaixo, sobrescreve para o tom claro. */
.social-icon,
.header-phone,
.search-toggle,
.tema-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(11, 30, 61, 0.3);
  border-radius: 50%;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social-icon svg,
.header-phone svg,
.search-toggle svg,
.tema-toggle svg {
  width: 16px;
  height: 16px;
  display: block;
}

.social-icon:hover,
.header-phone:hover,
.search-toggle:hover,
.tema-toggle:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* No cabeçalho (fundo navy) os ícones ficam claros */
.header-extras .social-icon,
.header-extras .header-phone,
.header-extras .search-toggle,
.header-extras .tema-toggle {
  width: 38px;
  height: 38px;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
  opacity: 0.9;
}

.header-extras .social-icon:hover,
.header-extras .header-phone:hover,
.header-extras .search-toggle:hover,
.header-extras .tema-toggle:hover {
  color: var(--gold-light);
  border-color: var(--gold);
  opacity: 1;
}

.mobile-menu-toggle {
  display: none;
}

/* =========================================================
   HERO / CARROSSEL
   ========================================================= */

.hero-carousel {
  position: relative;
  height: 88vh;
  min-height: 620px;
  overflow: hidden;
  background: var(--navy-deep);
}

.carousel-track {
  position: relative;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  /* O gradiente é só o "fundo reserva"; a foto real entra por
     style="background-image:..." no HTML de cada slide */
  background: linear-gradient(160deg, var(--navy-deep) 0%, #10294f 100%);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

/* O script.js marca o slide visível com .is-active e troca a cada 6s */
.carousel-slide.is-active {
  opacity: 1;
}

.hero-carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 20, 40, 0.15) 0%, rgba(8, 20, 40, 0.65) 100%);
  pointer-events: none;
}

/* Legenda do canto da foto, nomeando o marco retratado.
   Só as fotos de marcos têm; o prédio do escritório não. */
.carousel-legenda {
  position: absolute;
  left: 32px;
  bottom: 28px;
  z-index: 3;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  border-left: 2px solid var(--gold);
  padding-left: 12px;
  text-shadow: 0 1px 12px rgba(4, 14, 30, 0.9);
}

@media (max-width: 700px) {
  .carousel-legenda {
    left: 20px;
    bottom: 76px;
    font-size: 0.64rem;
  }
}

/* =========================================================
   QUEM SOMOS
   ========================================================= */

.about-section {
  padding: var(--gap-section) 32px;
}

.about-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 72px;
  align-items: start;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--graphite-soft);
  margin: 0 0 22px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* Negrito em navy, igual ao das páginas de área (antes ficava cinza
   igual ao texto normal e não se destacava) */
.about-text strong {
  color: var(--navy);
}

.about-image {
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, #1c2f52 0%, var(--navy-deep) 100%);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--gold-light);
  position: relative;
}

.about-image::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(183, 149, 83, 0.4);
}

/* =========================================================
   SERVIÇOS
   ========================================================= */

.services-section {
  padding: var(--gap-section) 32px;
  background: var(--white);
}

.services-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Linha pequena que fica ACIMA do título "Áreas de Atuação" */
.services-subtitle {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  color: var(--gold);
  margin: 0 0 10px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  display: block;
  position: relative;
  border: 1px solid #e4e1d9;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.service-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.service-card-image {
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, #1c2f52 0%, var(--navy-deep) 100%);
  background-size: cover;
  background-position: center;
}

.service-card-title {
  font-size: 1.1rem;
  padding: 20px 22px 24px;
  color: var(--navy);
}

.service-card--locked {
  opacity: 0.7;
}

.service-card--locked::before {
  content: "Acesso restrito";
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--navy);
  color: var(--gold-light);
  padding: 4px 10px;
  border-radius: 2px;
}

/* =========================================================
   BANNER DE TÍTULO (páginas internas: Publicações, Equipe etc.)
   ========================================================= */

/* Banner mais alto para mostrar mais da foto.
   Como a foto é esticada pela LARGURA da tela, aumentar a altura
   revela mais imagem sem deixá-la mais pixelada. */
.page-hero {
  position: relative;
  height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy-deep);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #12294c 0%, var(--navy-deep) 100%);
  background-size: cover;
  background-position: center;
  /* "fixed" prende a foto à tela: ao rolar, o banner desliza por cima
     dela e vai revelando o resto da imagem, como no site original */
  background-attachment: fixed;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 20, 40, 0.1) 0%, rgba(8, 20, 40, 0.7) 100%);
}

.page-hero-title {
  position: relative;
  z-index: 1;
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0 64px 56px;
}

/* =========================================================
   PUBLICAÇÕES
   ========================================================= */

.publications-section {
  padding: 96px 32px;
  min-height: 420px;
  border-bottom: 1px solid #e4e1d9;
}

.publications-container {
  max-width: var(--max-width);
  margin: 0 auto;
  /* Vazia por enquanto: entra grid de cards quando houver conteúdo publicado */
}

.parallax-band {
  position: relative;
  height: 480px;
  overflow: hidden;
}

.parallax-band-bg {
  position: absolute;
  inset: 0;
  /* A imagem da balança saiu (o doutor não quer temática de justiça).
     Estas regras seguem aqui caso vocês queiram usar a faixa com
     outra foto no futuro — hoje nenhuma página a utiliza. */
  background: var(--navy-deep);
  background-attachment: fixed;
  border-top: 1px solid rgba(183, 149, 83, 0.25);
  border-bottom: 1px solid rgba(183, 149, 83, 0.25);
}

/* =========================================================
   EQUIPE
   ========================================================= */

.team-section {
  padding: 96px 32px;
}

.team-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.team-partner {
  text-align: center;
  padding-bottom: 72px;
  margin-bottom: 72px;
  border-bottom: 1px solid #e4e1d9;
}

.team-partner-name {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 1px solid var(--navy);
  padding-bottom: 4px;
}

.team-partner-role {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--graphite-soft);
  margin: 14px 0;
}

.team-partner-cv {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  margin-bottom: 28px;
}

.team-partner-social {
  display: flex;
  justify-content: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 56px 24px;
}

.team-member {
  text-align: center;
}

.team-member-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 10px;
}

.team-member-role {
  font-size: 0.82rem;
  color: var(--graphite-soft);
  margin: 0 0 18px;
}

.team-member-mail {
  width: 32px;
  height: 32px;
}

/* =========================================================
   CONTATO
   ========================================================= */

.contact-section {
  padding: 96px 32px 0;
}

.contact-container {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.contact-social {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 36px;
}

.contact-intro {
  font-size: 1rem;
  color: var(--graphite-soft);
  margin: 0 0 10px;
}

.contact-phone {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--navy);
  margin: 0 0 56px;
}

.contact-form {
  text-align: left;
  margin-bottom: 56px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.form-group {
  margin-bottom: 28px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--graphite-soft);
  margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid #c9c5ba;
  background: #f0eee8;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--graphite);
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea {
  resize: vertical;
}

.contact-submit {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 16px 44px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease;
}

.contact-submit:hover {
  background: var(--gold);
  color: var(--navy-deep);
}

.contact-address {
  font-size: 0.9rem;
  color: var(--graphite-soft);
  margin-bottom: 40px;
}

.contact-map {
  height: 340px;
  margin-bottom: 0;
  background: linear-gradient(160deg, #e7e5df 0%, #d8d5cc 100%);
  /* Espaço reservado para o embed real do Google Maps */
}

.contact-section {
  padding-bottom: 64px;
}

/* =========================================================
   BANNER DE ÁREA DE ATUAÇÃO (COM PARALLAX)
   ========================================================= */

.service-hero {
  position: relative;
  height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy-deep);
}

.service-hero-bg {
  position: absolute;
  inset: 0;
  /* Fundo reserva navy; a foto da área entra por style no HTML */
  background: linear-gradient(160deg, #12294c 0%, var(--navy-deep) 100%);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.service-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 20, 40, 0.1) 0%, rgba(8, 20, 40, 0.7) 100%);
}

.service-hero-title {
  position: relative;
  z-index: 1;
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0 64px 56px;
}

/* =========================================================
   TEXTO INTRODUTÓRIO DA ÁREA
   ========================================================= */

.service-intro-section {
  padding: 96px 32px;
}

.service-intro-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}

.service-intro-image {
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #12294c 0%, var(--navy-deep) 100%);
  background-size: cover;
  background-position: center;
}

.service-intro-text p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--graphite-soft);
  margin: 0 0 22px;
}

.service-intro-text p:last-child {
  margin-bottom: 0;
}

.service-intro-text strong {
  color: var(--navy);
}

/* =========================================================
   GRID DE SERVIÇOS DA ÁREA
   ========================================================= */

.service-cards-section {
  padding: 32px 32px 96px;
  background: var(--white);
}

.service-cards-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title--center {
  margin: 0 auto 12px;
  text-align: center;
  padding-bottom: 0;
}

.section-title--center::after {
  left: 50%;
  transform: translateX(-50%);
}

.service-cards-subtitle {
  text-align: center;
  max-width: 620px;
  margin: 20px auto 56px;
  color: var(--graphite-soft);
  font-size: 0.98rem;
  line-height: 1.7;
}

.service-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card-full {
  border-top: 3px solid var(--navy);
  background: var(--ivory);
  padding: 32px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card-full:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(11, 30, 61, 0.12);
}

.service-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(11, 30, 61, 0.08);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  transition: background 0.25s ease, color 0.25s ease;
}

.service-card-icon svg {
  width: 22px;
  height: 22px;
}

/* No hover do card, o ícone inverte: fundo navy e desenho claro */
.service-card-full:hover .service-card-icon {
  background: var(--navy);
  color: var(--white);
}

.service-card-full h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.service-card-full p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--graphite-soft);
  margin: 0 0 24px;
  min-height: 66px;
}

.service-card-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 20px;
  transition: background 0.2s ease;
}

.service-card-button:hover {
  background: var(--gold);
  color: var(--navy-deep);
}

/* =========================================================
   CTA FINAL DA ÁREA (COM PARALLAX)
   ========================================================= */

.consult-cta {
  position: relative;
  padding: 120px 32px;
  overflow: hidden;
}

/* Antes tinha a textura navy/dourado com parallax. O doutor pediu
   para tirar os parallax de baixo, então virou um bloco navy liso,
   com um fio dourado no topo separando da seção anterior. */
.consult-cta-bg {
  position: absolute;
  inset: 0;
  background: var(--navy-deep);
  border-top: 1px solid rgba(183, 149, 83, 0.25);
}

.consult-cta-content {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  color: rgba(255, 255, 255, 0.88);
}

.consult-cta-content h2 {
  color: var(--white);
  font-size: 1.7rem;
  margin-bottom: 26px;
}

.consult-cta-content p {
  font-size: 0.98rem;
  line-height: 1.8;
  margin: 0 0 18px;
}

.consult-cta-content strong {
  color: var(--white);
}

.consult-cta-list {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 auto 20px;
  text-align: left;
  color: var(--gold-light);
  font-weight: 600;
  font-size: 0.92rem;
}

.consult-cta-list li {
  padding-left: 18px;
  position: relative;
}

.consult-cta-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}

.consult-cta-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  margin-top: 32px !important;
}

/* =========================================================
   TELA DE SENHA (TRABALHISTA EMPRESARIAL)
   ========================================================= */

.password-gate {
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
}

.password-box {
  width: 400px;
  border: 1px solid #d8d5cc;
  padding: 40px;
}

.password-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 32px;
}

.password-field {
  margin-bottom: 28px;
}

.password-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.password-field input {
  width: 100%;
  border: none;
  border-bottom: 1px solid #c9c5ba;
  background: #f0eee8;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--navy);
}

.password-field input:focus {
  outline: none;
  border-color: var(--gold);
}

.password-submit {
  display: block;
  margin-left: auto;
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.password-submit:hover {
  background: var(--gold);
  color: var(--navy-deep);
}

.password-error {
  margin: -14px 0 20px;
  font-size: 0.85rem;
  color: #a32d2d;
}

.password-error[hidden] {
  display: none;
}

/* Enquanto o <body> tem a classe "is-locked", mostra só a tela de
   senha. Quando a senha confere, o script remove a classe: a tela
   de senha some e o conteúdo + rodapé aparecem. */
body.is-locked .area-restrita,
body.is-locked .site-footer {
  display: none;
}

body:not(.is-locked) .password-gate {
  display: none;
}

/* =========================================================
   RODAPÉ
   ========================================================= */

.site-footer {
  background: var(--ivory);
  color: var(--graphite-soft);
  padding: 48px 32px;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
}

.footer-logo {
  width: 215px;
}

.footer-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.footer-info {
  text-align: center;
}

.footer-line {
  margin: 0 0 6px;
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-copyright {
  margin: 14px 0 0;
  font-size: 0.78rem;
  color: var(--graphite-soft);
  opacity: 0.75;
}

.footer-social {
  display: flex;
  gap: 14px;
  justify-self: end;
}

.footer-social .social-icon {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(11, 30, 61, 0.3);
  border-radius: 50%;
}

.footer-social .social-icon svg {
  width: 19px;
  height: 19px;
}

/* =========================================================
   CURRÍCULO DIGITAL (WALTER)
   ========================================================= */

.cv-hero {
  position: relative;
  height: 440px;
  overflow: hidden;
  background: linear-gradient(160deg, #12294c 0%, var(--navy-deep) 100%);
}

.cv-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.cv-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 21, 43, 0.45) 0%, rgba(6, 21, 43, 0.8) 100%);
}

.cv-section {
  padding: 72px 32px 96px;
}

.cv-container {
  max-width: 780px;
  margin: 0 auto;
}

.cv-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  color: var(--navy);
  margin: 0 0 10px;
}

.cv-role {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 28px;
}

.cv-line {
  font-size: 0.92rem;
  color: var(--graphite-soft);
  margin: 0 0 8px;
}

.cv-heading {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 40px 0 16px;
}

.cv-list {
  margin: 0;
}

.cv-list li {
  position: relative;
  padding-left: 16px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--graphite-soft);
}

.cv-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* Rodapé próprio dessa área, distinto do rodapé padrão do site */
.cv-footer {
  background: var(--ivory);
  border-top: 1px solid #e4e1d9;
  padding: 40px 32px 24px;
}

.cv-footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  text-align: center;
}

.cv-footer-col p {
  font-size: 0.85rem;
  color: var(--graphite-soft);
  margin: 0 0 8px;
}

.cv-footer-col a {
  font-size: 0.85rem;
  color: var(--navy);
  text-decoration: underline;
}

.cv-footer-copyright {
  text-align: center;
  margin: 24px 0 0;
  font-size: 0.78rem;
  color: var(--graphite-soft);
  opacity: 0.75;
}

/* =========================================================
   OVERLAY DE BUSCA
   Cobre a tela inteira quando se clica na lupa do menu.
   Fundo claro translúcido, deixando o site aparecer de leve
   por trás (mesma ideia do site original).
   ========================================================= */

/* Trava a rolagem do site enquanto a busca está aberta */
body.no-scroll {
  overflow: hidden;
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(248, 247, 244, 0.96);
  backdrop-filter: blur(3px);
  overflow-y: auto;
  padding: 120px 32px 64px;
}

.search-overlay[hidden] {
  display: none;
}

.search-close {
  position: absolute;
  top: 26px;
  right: 32px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(11, 30, 61, 0.25);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.search-close svg {
  width: 18px;
  height: 18px;
}

.search-close:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.search-overlay-inner {
  max-width: 700px;
  margin: 0 auto;
}

/* Campo de busca: linha simples com a lupa à direita */
.search-field {
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--navy);
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 44px 12px 16px;
  font-family: var(--font-body);
  font-size: 1.35rem;
  color: var(--navy);
}

.search-input::placeholder {
  color: rgba(11, 30, 61, 0.55);
}

.search-input:focus {
  outline: none;
}

/* Esconde o "x" nativo que alguns navegadores põem no type="search" */
.search-input::-webkit-search-cancel-button {
  display: none;
}

.search-field-icon,
.search-clear {
  position: absolute;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}

.search-field-icon svg,
.search-clear svg {
  width: 18px;
  height: 18px;
}

/* Com texto digitado, o "x" de limpar cobre a lupa */
.search-clear:not([hidden]) + .search-field-icon {
  display: none;
}

.search-count {
  text-align: center;
  margin: 28px 0 0;
  font-size: 0.9rem;
  color: var(--graphite-soft);
}

/* Resultados em cards, como no site original */
.search-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 40px 32px;
  margin-top: 44px;
}

.search-result {
  display: block;
  color: inherit;
}

.search-result-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, #12294c 0%, var(--navy-deep) 100%);
  background-size: cover;
  background-position: center;
  transition: opacity 0.2s ease;
}

.search-result:hover .search-result-thumb {
  opacity: 0.85;
}

.search-result-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.search-result-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  flex-shrink: 0;
}

.search-result-badge svg {
  width: 15px;
  height: 15px;
}

.search-result-origem {
  font-size: 0.85rem;
  color: var(--graphite-soft);
}

.search-result-title {
  display: block;
  margin-top: 14px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.search-result:hover .search-result-title {
  color: var(--gold);
}

@media (max-width: 700px) {
  .search-overlay {
    padding: 100px 20px 48px;
  }

  .search-input {
    font-size: 1.1rem;
  }

  .search-results {
    grid-template-columns: 1fr;
  }
}
