/* Variáveis globais: centralizam as cores e fontes para facilitar alterações. */
:root {
  --primary: #102c3c;
  --primary-dark: #0c2230;
  --accent: #8b6b43;
  --accent-light: #d9c3a3;
  --ink: #233b49;
  --muted: #5f6e76;
  --paper: #fff;
  --soft: #f2f5f5;
  --line: #dbe2e4;
  --serif: "Libre Caslon Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

/* Configurações gerais: dimensões, rolagem, tipografia e fundo da página. */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  font: 1rem/1.75 var(--sans);
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

/* Destaca o elemento em foco para facilitar a navegação pelo teclado. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

img {
  max-width: 100%;
  display: block;
}

/* Tipografia dos títulos e parágrafos.
   clamp() ajusta o tamanho à tela, respeitando limites mínimo e máximo. */
h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.65rem, 4.7vw, 4.6rem);
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(2.1rem, 3.4vw, 3.4rem);
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}

h3 {
  font-size: 2rem;
  margin-bottom: 18px;
}

p {
  margin-bottom: 22px;
}

em {
  font-style: normal;
  color: var(--accent);
}

/* Classes reutilizáveis: largura centralizada, espaçamento das seções
   e estilos dos pequenos títulos e textos auxiliares. */
.container {
  width: min(1280px, 88%);
  margin-inline: auto;
}

.section {
  padding-block: 96px;
}

.kicker {
  display: block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent);
  line-height: 1.6;
  margin-bottom: 22px;
}

.small {
  font-size: 0.875rem;
  color: var(--muted);
}

/* O atalho para o conteúdo fica fora da tela e aparece ao receber foco. */
.skip {
  position: fixed;
  z-index: 20;
  left: 20px;
  top: -100px;
  background: var(--paper);
  padding: 14px;
}

.skip:focus {
  top: 12px;
}

/* CABEÇALHO: organiza a marca e o menu lado a lado. */
.header {
  min-height: 104px;
  padding: 22px 4%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 10;
}

/* Identidade textual da marca, incluindo iniciais e subtítulo. */
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  font:
    1.3rem/1.3 Georgia,
    serif;
  letter-spacing: 0.07em;
  flex-shrink: 0;
}

.brand-mark {
  font: 2.15rem/1 var(--serif);
  letter-spacing: -0.07em;
  color: var(--accent);
  border-right: 1px solid var(--accent);
  padding-right: 16px;
}

.brand small {
  display: block;
  font: 0.625rem/1.5 var(--sans);
  letter-spacing: 0.42em;
  margin-top: 7px;
}

/* Menu principal do cabeçalho.
   Os seletores .header nav limitam os estilos a esse menu.
   Destaca o link sob o cursor e identifica a página atual. */
.header nav {
  display: flex;
  gap: 23px;
  align-items: center;
}

.header nav a {
  font-size: 0.875rem;
  padding: 10px 0;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
}

.header nav a:hover,
.header nav a[aria-current="page"] {
  border-color: var(--accent);
  color: var(--accent);
}

/* O botão do menu aparece apenas nas larguras definidas adiante. */
.menu-toggle {
  display: none;
}

/* BOTÕES E LINKS DE AÇÃO: estilos compartilhados entre as seções. */
.button {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  padding: 15px 23px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  transition: background 0.2s;
}

.button:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.button span,
.text-link span {
  font-size: 1.15rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 25px;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid var(--accent);
}

.text-link:hover {
  color: var(--accent);
}

/* Seta fina para links e botões.
   Mantém o tamanho e acompanha a cor do texto sem virar emoji. */
svg.icon-arrow,
.button svg.icon-arrow {
  display: inline-block;
  width: 16px;
  height: 16px;
  min-width: 16px;
  flex: 0 0 16px;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Evita que outras regras preencham o desenho da seta. */
svg.icon-arrow path,
.button svg.icon-arrow path {
  fill: none;
  stroke: currentColor;
}

/* APRESENTAÇÃO INICIAL: fundo escuro com imagem e conteúdo sobreposto. */
.hero {
  background: var(--primary);
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* O gradiente sobre a fotografia melhora a leitura dos textos. */
.hero-background {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #102c3c 0%, #102c3ce8 32%, #102c3c8c 66%, #102c3c2b),
    url("/assets/office.webp") 70% center/cover;
}

.hero-inner {
  position: relative;
  padding-block: 90px 65px;
  min-height: 650px;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
}

.hero-copy h1 {
  margin-bottom: 26px;
  max-width: 760px;
}

.hero .kicker {
  color: var(--accent-light);
}

.hero h1 em {
  color: var(--accent-light);
}

.hero-copy > p {
  max-width: 625px;
  color: #d8e1e5;
  font-size: 1.05rem;
}

/* Permite que os botões quebrem de linha quando faltar espaço. */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-actions .text-link {
  color: #fff;
  border-color: #ffffff55;
}

.attendance {
  display: block;
  font-size: 0.875rem;
  color: #d8e1e5;
  margin-top: 25px;
}

/* Faixa inferior da apresentação, com mensagem e link para as áreas. */
.hero-bottom {
  position: relative;
  border-top: 1px solid #ffffff33;
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding-block: 21px;
  font-size: 0.8125rem;
  color: #e2e6e8;
}

.hero-bottom > a {
  white-space: nowrap;
}

/* Cabeçalho reutilizável das seções: título e texto complementar. */
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 42px;
}

.section-heading h2 {
  margin: 0;
}

.section-heading > p {
  max-width: 415px;
  color: var(--muted);
  margin: 0;
}

/* ÁREAS DE ATUAÇÃO: dois cartões de mesma largura.
   A classe audience-card-empresas mantém o fundo claro de Empresas,
   independentemente da posição do cartão. */
.audiences {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.audience-card {
  position: relative;
  padding: 42px;
  background: var(--primary);
  color: #fff;
}

.audience-card.audience-card-empresas {
  background: var(--soft);
  color: var(--ink);
  border: 1px solid var(--line);
}

.audience-card .kicker {
  color: var(--accent-light);
  padding-right: 40px;
}

.audience-card.audience-card-empresas .kicker {
  color: var(--accent);
}

.card-number {
  position: absolute;
  right: 32px;
  top: 30px;
  font: 2rem var(--serif);
  opacity: 0.5;
}

.audience-card h3 {
  font-size: 2.6rem;
  max-width: 360px;
}

.audience-card > p {
  color: #d2dce2;
  max-width: 470px;
  min-height: 90px;
}

.audience-card.audience-card-empresas > p {
  color: var(--muted);
}

/* Lista de serviços: substitui os marcadores padrão por travessões. */
.short-list {
  padding: 0;
  margin: 26px 0;
  list-style: none;
}

.short-list li {
  padding: 10px 0;
  border-bottom: 1px solid #ffffff24;
}

.short-list li:before {
  content: "—";
  margin-right: 15px;
  color: var(--accent-light);
}

.audience-card.audience-card-empresas li {
  border-color: var(--line);
}

.audience-card .text-link {
  width: 100%;
}

/* Bloco previdenciário: título e descrição distribuídos em duas colunas. */
.social-security {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
  padding: 48px 0 0;
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.social-security h3 {
  font-size: 2.4rem;
  max-width: 510px;
}

.social-security p {
  color: var(--muted);
}

.social-security .kicker {
  margin-bottom: 16px;
}

/* APRESENTAÇÃO DA ADVOGADA: imagem e texto lado a lado. */
.welcome {
  background: var(--soft);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8%;
  align-items: center;
}

.split p {
  color: var(--muted);
}

.split .lead {
  font-size: 1.2rem;
  color: var(--ink);
}

/* Espaço visual com iniciais, usado quando o HTML inclui um placeholder.
   O pseudo-elemento :after desenha a borda decorativa interna. */
.portrait-placeholder {
  min-height: 480px;
  background: var(--primary);
  border: 1px solid #ffffff25;
  padding: 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  color: var(--accent-light);
}

.portrait-placeholder:after {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid #d9c3a333;
  pointer-events: none;
}

.portrait-initials {
  font: 9rem/1 var(--serif);
  letter-spacing: -0.1em;
  padding: 25px 0;
  color: var(--accent-light);
  opacity: 0.4;
}

.portrait-placeholder .kicker {
  color: var(--accent-light);
  margin-bottom: 12px;
}

.portrait-placeholder p {
  color: var(--accent-light);
  font-size: 0.875rem;
  margin: 0;
}

.image-caption {
  display: block;
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--muted);
}

/* Enquadramento padrão das imagens.
   A foto .paula-home recebe uma regra específica no final do arquivo. */
.welcome-visual img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  object-position: 65%;
}

/* ASSESSORIA EMPRESARIAL: título e explicação em duas colunas. */
.enterprise {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7%;
}

.enterprise p {
  color: var(--muted);
}

/* CONTEÚDOS JURÍDICOS: grade com três cartões de artigos. */
.content-home {
  background: var(--soft);
}

/* Grade de conteúdos: três colunas em telas grandes. */
.articles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* Ajuste dos cartões apenas em tablets e computadores  */
@media (min-width: 651px) {
  .articles > .article-card {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

.article-card {
  display: flex;
  flex-direction: column;
  padding: 30px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.article-card .kicker {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

/* O título ocupa o espaço disponível para alinhar a faixa inferior dos cartões. */
.article-card h3 {
  font-size: 1.9rem;
  line-height: 1.2;
  flex: 1;
}

.article-state {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.editorial-note {
  margin: 22px 0 0;
}

/* FAIXA DE CONTATO: chamada de atendimento com botão em destaque. */
.contact-strip {
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 64px max(6%, calc((100% - 1280px) / 2));
}

.contact-strip .kicker {
  color: var(--accent-light);
}

.contact-strip h2 {
  max-width: 650px;
}

.contact-strip > div:first-child > p {
  color: #dce3e4;
  max-width: 630px;
  margin: 0;
}

.contact-strip > div:last-child {
  flex-shrink: 0;
}

.contact-strip .small {
  color: #dce3e4;
  margin: 15px 0 0;
}

/* logo pequeno ao lado do nome, com a divisória à direita.*/
.footer-mini-logo {
  width: 110px;
  height: auto;
  flex-shrink: 0;
  padding-right: 16px;
  border-right: 1px solid var(--accent);
}

/* RODAPÉ: três colunas de informações e faixa inferior de links legais. */
footer {
  padding: 66px 6% 25px;
  background: var(--primary-dark);
  color: #d0dadd;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.7fr 1fr;
  gap: 65px;
}

.footer-grid .brand {
  color: #fff;
  margin-bottom: 25px;
}

.footer-grid h3 {
  font: 500 1rem var(--sans);
  margin: 0 0 25px;
  color: #fff;
}

.footer-grid p,
.footer-grid > a {
  font-size: 0.875rem;
}

.footer-grid > div > a:not(.brand) {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 9px;
}

.footer-bottom {
  border-top: 1px solid #ffffff20;
  margin-top: 45px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.75rem;
}

.footer-bottom > div {
  display: flex;
  gap: 25px;
}

/* Contatos do rodapé: um canal por linha. */
.footer-contact-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Alinha cada ícone com seu texto. */
.footer-contact-links .contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contact-links .contact-item span {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Destaca o texto do link ao passar o mouse ou navegar pelo teclado. */
.footer-contact-links .contact-item:hover span,
.footer-contact-links .contact-item:focus-visible span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Ícones dos contatos: pequenos, sem preenchimento e na cor do texto. */
.footer-contact-links svg.icon-contact {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Atalho de contato fixo no canto inferior direito, acima do conteúdo. */
.floating-contact {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 12;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: #fff;
  background: #2d6357;
  border: 1px solid #ffffff88;
  box-shadow: 0 4px 15px #0002;
}

.floating-contact svg {
  width: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

/* PÁGINAS INTERNAS: faixa de abertura com título, resumo e caminho de navegação. */
.page-hero {
  padding: 44px 0 68px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 40px;
}

.breadcrumb span {
  margin-left: 20px;
  color: var(--accent);
}

.page-hero h1 {
  max-width: 960px;
  margin-bottom: 24px;
}

.page-hero p {
  max-width: 770px;
  font-size: 1.125rem;
  color: var(--muted);
  margin: 0;
}

/* Lista detalhada de serviços, com uma coluna de apresentação ao lado. */
.services {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 8%;
  align-items: start;
}

.services > div > p {
  max-width: 370px;
  color: var(--muted);
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.service-list li {
  display: flex;
  gap: 24px;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  font-size: 1.05rem;
}

.service-list li > span {
  color: var(--accent);
  font-size: 0.8125rem;
  min-width: 24px;
}

/* Filtros de conteúdo: aria-pressed="true" identifica o botão selecionado. */
.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.filters button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper);
  padding: 11px 22px;
  font-size: 0.875rem;
}

.filters button[aria-pressed="true"] {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Garante que elementos com o atributo hidden permaneçam ocultos. */
[hidden] {
  display: none !important;
}

/* PÁGINA DE CONTATO: informações do escritório e formulário em duas colunas. */
.contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 8%;
}

.contact-layout > div > p {
  color: var(--muted);
  max-width: 370px;
}

dl {
  margin: 35px 0;
}

dt {
  font-weight: 500;
  font-size: 0.875rem;
}

dd {
  margin: 4px 0 20px;
  color: var(--muted);
}

/* Formulário: fundo, espaçamento e organização dos campos. */
form {
  padding: 35px;
  background: var(--soft);
  border: 1px solid var(--line);
}

form h2 {
  font-size: 2.25rem;
}

.form-note {
  font-size: 0.875rem;
  color: var(--muted);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 20px;
  min-width: 0;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field label {
  font-size: 0.875rem;
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  border: 1px solid #b7c3c8;
  background: var(--paper);
  color: var(--ink);
  border-radius: 0;
  padding: 11px 12px;
  min-width: 0;
  width: 100%;
}

.field textarea {
  resize: vertical;
}

/* Caixa de seleção e texto associado, como o aceite de privacidade. */
.checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 18px 0 25px;
}

.checkbox input {
  margin-top: 5px;
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.checkbox a {
  text-decoration: underline;
}

/* Oculta visualmente o campo honeypot, usado como parte da proteção antispam.
   A detecção depende também da lógica que processa o formulário. */
.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

/* Área de mensagens do formulário; fica oculta enquanto estiver vazia. */
#form-status {
  font-size: 0.875rem;
  margin: 20px 0 0;
}

#form-status:empty {
  display: none;
}

/* Textos longos, como políticas e termos: limita a largura para facilitar a leitura. */
.prose {
  max-width: 840px;
}

.prose h2 {
  font-size: 2rem;
  margin-top: 36px;
}

.prose > p {
  color: var(--muted);
}

/* TEMA OLIVA: alternativa de cores e composição.
   Estas regras são aplicadas aos elementos dentro de .theme-oliva. */
.theme-oliva {
  --primary: #394b3f;
  --primary-dark: #2b382f;
  --accent: #736345;
  --accent-light: #dfd3bb;
  --ink: #353a34;
  --muted: #62675f;
  --paper: #fbfaf5;
  --soft: #f0eee4;
  --line: #dcded2;
}

.theme-oliva .header {
  padding-block: 28px;
  border-bottom: 0;
}

.theme-oliva .brand-mark {
  border-right: 0;
  border: 1px solid #b8ad95;
  padding: 8px 10px;
  font-size: 1.9rem;
}

/* No tema oliva, a apresentação tem fundo claro e espaço para retrato ao lado. */
.theme-oliva .hero {
  background: var(--paper);
  color: var(--ink);
}

.theme-oliva .hero-background {
  display: none;
}

.theme-oliva .hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 7%;
  padding-block: 52px 65px;
  min-height: 660px;
}

.theme-oliva .hero-copy h1 {
  font-size: clamp(2.6rem, 4.25vw, 4.3rem);
}

.theme-oliva .hero-copy > p,
.theme-oliva .attendance {
  color: var(--muted);
}

.theme-oliva .hero .kicker {
  color: var(--accent);
}

.theme-oliva .hero h1 em {
  color: var(--primary);
}

.theme-oliva .hero-actions {
  gap: 18px;
  align-items: flex-start;
}

.theme-oliva .hero-actions .text-link {
  color: var(--primary);
  border-color: var(--accent-light);
}

.theme-oliva .button {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.theme-oliva .button:hover {
  background: var(--primary-dark);
}

.theme-oliva .hero-bottom {
  color: var(--muted);
  border-color: var(--line);
}

/* Retrato decorativo com cantos superiores arredondados no tema oliva. */
.theme-oliva .portrait-placeholder {
  background: #e9e6da;
  min-height: 500px;
  color: var(--primary);
  border: 0;
  border-radius: 180px 180px 0 0;
  align-items: center;
  text-align: center;
  padding: 80px 35px 38px;
}

.theme-oliva .portrait-placeholder:after {
  border-color: #a1a89055;
  inset: 15px;
  border-radius: 180px 180px 0 0;
}

.theme-oliva .portrait-initials {
  color: var(--primary);
  font-size: 8rem;
  opacity: 0.3;
  padding-top: 45px;
}

.theme-oliva .portrait-placeholder .kicker,
.theme-oliva .portrait-placeholder p {
  color: var(--primary);
}

/* Estilos exclusivos do tema oliva.
   Nesse tema, o cartão de Empresas recebe fundo escuro,
   independentemente da posição.
   Para ativar, trocar theme-marinho por theme-oliva no body do HTML.
   O site utiliza atualmente o tema marinho. */
.theme-oliva .audience-card {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  padding-top: 35px;
  border-top: 3px solid var(--primary);
}

.theme-oliva .audience-card .kicker {
  color: var(--accent);
}

.theme-oliva .audience-card > p {
  color: var(--muted);
}

.theme-oliva .short-list li {
  border-color: var(--line);
}

.theme-oliva .short-list li:before {
  color: var(--accent);
}

.theme-oliva .audience-card.audience-card-empresas {
  background: var(--primary);
  color: #fff;
}

.theme-oliva .audience-card.audience-card-empresas p {
  color: #e0e5dc;
}

.theme-oliva .audience-card.audience-card-empresas .kicker {
  color: var(--accent-light);
}

.theme-oliva .audience-card.audience-card-empresas li {
  border-color: #ffffff25;
}

.theme-oliva .audience-card.audience-card-empresas li:before {
  color: var(--accent-light);
}

.theme-oliva .social-security {
  padding: 44px;
  margin-top: 25px;
  background: var(--soft);
  border: 0;
}

.theme-oliva .welcome-visual img {
  border-radius: 160px 160px 0 0;
  height: 470px;
}

.theme-oliva .article-card {
  border: 0;
  border-top: 1px solid #a5ab9a;
  background: transparent;
  padding-inline: 0;
}

.theme-oliva .contact-strip .button {
  background: var(--accent-light);
  color: var(--primary);
  border-color: var(--accent-light);
}

/* RESPONSIVIDADE: em telas muito largas, aumenta as margens do cabeçalho. */
@media (min-width: 1650px) {
  .header {
    padding-inline: max(4%, calc((100% - 1380px) / 2));
  }
}

/* Até 1150px: reduz espaçamentos e ajusta a distribuição do conteúdo. */
@media (max-width: 1150px) {
  .header {
    gap: 15px;
    padding-inline: 4%;
  }

  .brand {
    font-size: 1.1rem;
    gap: 12px;
  }

  .header nav {
    gap: 15px;
  }

  .header nav a {
    font-size: 0.8125rem;
  }

  .hero-inner {
    padding-top: 65px;
  }

  .hero-copy {
    max-width: 670px;
  }

  .theme-oliva .hero-inner {
    gap: 5%;
    grid-template-columns: 1.2fr 0.8fr;
  }

  .theme-oliva .portrait-placeholder {
    min-height: 470px;
  }

  .contact-strip {
    gap: 35px;
  }

  .footer-grid {
    gap: 35px;
  }
}

/* Até 950px: adapta o cabeçalho, cartões, formulário e rodapé.
   Um bloco posterior também ativa o menu compacto até 1100px. */
@media (max-width: 950px) {
  .header {
    min-height: 88px;
    padding: 20px 6%;
  }

  .theme-oliva .header {
    padding: 20px 6%;
  }

  .hero-inner {
    min-height: 610px;
  }

  .hero-copy {
    max-width: 650px;
  }

  .hero-background {
    background:
      linear-gradient(90deg, #102c3cf7, #102c3caa),
      url("/assets/office.webp") 65% center/cover;
  }

  .theme-oliva .hero-inner {
    grid-template-columns: 1fr;
  }

  .theme-oliva .hero-copy {
    max-width: 690px;
  }

  .theme-oliva .hero-inner > .portrait-placeholder {
    display: none;
  }

  .section {
    padding-block: 70px;
  }

  .section-heading {
    gap: 25px;
  }

  .audience-card {
    padding: 30px;
  }

  .audience-card h3 {
    font-size: 2.2rem;
  }

  .audience-card > p {
    min-height: 140px;
  }

  .split {
    gap: 6%;
  }

  .portrait-placeholder {
    min-height: 440px;
  }

  /* Rodapé em duas colunas, com a marca ocupando toda a primeira linha. */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > div:first-child {
    grid-column: 1/-1;
  }

  .contact-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-layout {
    gap: 5%;
    grid-template-columns: 0.75fr 1.25fr;
  }

  form {
    padding: 26px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .articles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .article-card {
    padding: 24px;
  }

  .article-card h3 {
    font-size: 1.7rem;
  }
}

/* Até 650px: apresentação e seções adaptadas para celulares. */
@media (max-width: 650px) {
  html {
    scroll-padding-top: 30px;
  }

  .container {
    width: 88%;
  }

  .brand {
    font-size: 1.05rem;
    letter-spacing: 0.03em;
  }

  .brand-mark {
    font-size: 1.9rem;
  }

  .brand small {
    font-size: 0.625rem;
  }

  .hero-inner {
    padding-block: 53px 45px;
    min-height: 0;
  }

  .hero-copy h1 {
    font-size: 2.85rem;
  }

  .hero-copy > p {
    font-size: 1rem;
    line-height: 1.8;
  }

  .hero-actions {
    gap: 15px;
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-bottom {
    font-size: 0.75rem;
    flex-direction: column;
    gap: 10px;
    padding-block: 18px;
  }

  .kicker {
    font-size: 0.75rem;
    letter-spacing: 0.09em;
  }

  .hero .kicker {
    max-width: 290px;
  }

  .section {
    padding-block: 55px;
  }

  .section-heading {
    display: block;
    margin-bottom: 32px;
  }

  .section-heading > p {
    margin-top: 20px;
  }

  .section-heading > .text-link {
    margin-top: 14px;
  }

  /* Converte as principais grades em uma única coluna. */
  .audiences,
  .split,
  .enterprise,
  .social-security,
  .services,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .audience-card {
    padding: 30px 25px;
  }

  .audience-card > p {
    min-height: 0;
  }

  .audience-card h3 {
    font-size: 2.3rem;
  }

  .short-list li {
    font-size: 1rem;
  }

  .social-security {
    padding-top: 32px;
    gap: 15px;
  }

  .social-security h3 {
    font-size: 2rem;
  }

  .portrait-placeholder {
    min-height: 350px;
    padding: 35px;
  }

  .portrait-initials {
    font-size: 7rem;
    padding: 20px 0;
  }

  .split h2 {
    margin-top: 12px;
  }

  .articles {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .article-card {
    padding: 27px;
  }

  .article-card h3 {
    font-size: 2rem;
  }

  .contact-strip {
    padding: 45px 6%;
    gap: 28px;
  }

  .contact-strip h2 {
    font-size: 2.5rem;
  }

  /* Empilha o rodapé e reserva espaço inferior para o botão flutuante. */
  footer {
    padding: 48px 6% 85px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-grid > div:first-child {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    margin-top: 30px;
  }

  .footer-bottom > div {
    flex-wrap: wrap;
    gap: 18px;
  }

  .page-hero {
    padding: 28px 0 45px;
  }

  .breadcrumb {
    margin-bottom: 28px;
  }

  .page-hero h1 {
    font-size: 2.8rem;
  }

  .page-hero p {
    font-size: 1rem;
  }

  .service-list li {
    font-size: 1rem;
    gap: 18px;
  }

  .services > div > p {
    max-width: none;
  }

  .contact-layout {
    gap: 25px;
  }

  form {
    padding: 25px 20px;
  }

  form h2 {
    font-size: 2rem;
  }

  .filters {
    gap: 9px;
  }

  .filters button {
    padding: 10px 15px;
  }

  .floating-contact {
    right: 16px;
    bottom: 16px;
  }

  /* Ajustes específicos do tema oliva em celulares.
     O placeholder da apresentação volta a aparecer nesta largura. */
  .theme-oliva .hero-inner {
    padding-block: 40px;
    gap: 35px;
  }

  .theme-oliva .hero-inner > .portrait-placeholder {
    display: flex;
    min-height: 310px;
    width: 100%;
    max-width: 340px;
    margin-inline: auto;
    padding: 40px 30px 30px;
    border-radius: 150px 150px 0 0;
  }

  .theme-oliva .hero-inner > .portrait-placeholder:after {
    border-radius: 140px 140px 0 0;
  }

  .theme-oliva .hero-inner > .portrait-placeholder .portrait-initials {
    font-size: 5rem;
    padding: 25px 0 5px;
  }

  .theme-oliva .hero-copy h1 {
    font-size: 2.8rem;
  }

  .theme-oliva .hero-actions {
    align-items: flex-start;
  }

  .theme-oliva .portrait-placeholder {
    min-height: 360px;
  }

  .theme-oliva .social-security {
    padding: 30px 25px;
  }

  .theme-oliva .welcome-visual img {
    height: 360px;
  }

  .theme-oliva .audience-card {
    padding: 30px 25px;
  }

  .theme-oliva .article-card {
    padding: 25px 0;
  }
}

/* Acessibilidade: desativa a rolagem suave e as transições quando o usuário
   configura o dispositivo para reduzir movimentos. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}

/* LOGO OFICIAL: ajustes do cabeçalho marinho e dimensões da imagem.
   height: auto mantém a proporção original da marca. */
.theme-marinho .header {
  padding-block: 10px;
  min-height: 112px;
}

.header-brand {
  display: block;
  line-height: 0;
}

.header-brand img {
  display: block;
  width: 265px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

@media (min-width: 1450px) {
  .header-brand img {
    width: 290px;
  }
}

/* Ativa o menu compacto até 1100px para acomodar o logo.
   Este bloco posterior atualiza as regras anteriores do cabeçalho e menu. */
@media (max-width: 1100px) {
  .header {
    gap: 20px;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    flex-shrink: 0;
  }

  .menu-toggle span {
    display: block;
    height: 1px;
    width: 25px;
    background: var(--ink);
  }

  .header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    padding: 15px 6% 25px;
    gap: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 18px #0001;
  }

  .header nav.open {
    display: flex;
  }

  .header nav a {
    font-size: 1rem;
    padding: 12px 0;
  }
}

/* Reduz o logo e permite que ele encolha para caber junto ao botão do menu. */
@media (max-width: 650px) {
  .theme-marinho .header {
    min-height: 94px;
    padding: 8px 6%;
    gap: 14px;
  }

  .header-brand {
    flex-shrink: 1;
    min-width: 0;
  }

  .header-brand img {
    width: 220px;
  }
}

/* FOTOGRAFIAS PROFISSIONAIS: preserva as proporções e evita cortes.
   A regra de .paula-home substitui o enquadramento padrão de .welcome-visual img. */
.welcome-visual img.paula-home {
  width: 100%;
  height: auto;
  aspect-ratio: 1600 / 1066;
  object-fit: contain;
}

.paula-about {
  width: 100%;
  height: auto;
  max-width: 470px;
  margin-inline: auto;
  aspect-ratio: 1066 / 1600;
  object-fit: contain;
}

/* SERVIÇOS NO HTML: usa o mesmo botão visual, com alternativa nativa sem JS. */
.service-list > li > div {
  min-width: 0;
}
.service-details > summary {
  list-style: none;
}
.service-details > summary::-webkit-details-marker {
  display: none;
}
.service-details > summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.service-description {
  margin-top: 16px;
  color: var(--muted);
}
.service-description p:last-child {
  margin-bottom: 0;
}
.service-description ul {
  padding-left: 22px;
}
.service-description li {
  display: list-item;
  border: 0;
  padding: 4px 0;
  font-size: inherit;
}
#service-dialog-description {
  color: var(--muted);
  overflow-wrap: anywhere;
}

/* Botão discreto abaixo do nome do serviço. */
.service-more {
  display: inline-block;
  padding: 6px 0;
  border: 0;
  border-bottom: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}

/* Janela centralizada, com rolagem interna em telas pequenas. */
.service-dialog {
  position: fixed;
  width: min(580px, 90vw);
  max-height: 85dvh;
  margin: auto;
  padding: 48px 32px 32px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 20px 60px #0003;
}

/* Escurece o restante da página enquanto a janela estiver aberta. */
.service-dialog::backdrop {
  background: rgb(12 34 48 / 65%);
}

.service-dialog h2 {
  font-size: clamp(2rem, 5vw, 2.6rem);
}

.service-dialog > p {
  color: var(--muted);
}

/* Remove os estilos gerais de formulário deste controle de fechamento. */
.service-dialog-close {
  position: absolute;
  top: 10px;
  right: 12px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.service-dialog-close button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.2rem;
  cursor: pointer;
}

/* Impede a rolagem da página atrás da janela. */
html.service-dialog-open,
html.service-dialog-open body {
  overflow: hidden;
}

/* ARTIGOS: links nos títulos e janela de leitura independente dos serviços. */
/* Organiza os links de retorno lado a lado.
   Permite quebrar a linha quando não houver espaço suficiente. */
.article-return-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.article-open {
  text-decoration: none;
  text-decoration-color: var(--accent-light);
  text-underline-offset: 5px;
}
.article-open:hover {
  color: var(--accent);
}
.article-dialog {
  width: min(820px, 94vw);
  max-height: 90vh;
  max-height: 90dvh;
  margin: auto;
  padding: 0 36px 36px;
  overflow-y: auto;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 20px 60px #0003;
}
.article-dialog::backdrop {
  background: rgb(12 34 48 / 65%);
}
.article-dialog-toolbar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-block: 14px;
  margin-bottom: 20px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.article-dialog-toolbar button {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.2rem;
}
#article-dialog-title {
  font-size: clamp(2rem, 5vw, 3rem);
}
[data-article-status]:empty {
  display: none;
}
.article-body {
  line-height: 1.85;
  margin-block: 24px;
}
.article-body h2 {
  font-size: 1.9rem;
  margin-top: 32px;
}
.article-body a {
  text-decoration: underline;
}
.article-draft {
  color: var(--muted);
  border-left: 3px solid var(--accent);
  padding-left: 14px;
}
[data-article-meta] > * + *::before {
  content: " • ";
}
html.article-dialog-open,
html.article-dialog-open body {
  overflow: hidden;
}
@media (max-width: 650px) {
  .article-dialog {
    padding-inline: 20px;
    padding-bottom: 24px;
  }
  .article-dialog-toolbar .text-link {
    font-size: 0.8rem;
  }
}

/* CARROSSEL DE CONTEÚDOS:
   mostra três cartões no computador e permite rolagem horizontal. */
.articles-carousel {
  min-width: 0;
}

.articles-carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 3);
  gap: 24px;

  overflow-x: auto;
  scroll-snap-type: x proximity;

  /* Reserva espaço para o foco do teclado e a barra de rolagem. */
  padding: 6px 6px 18px;
  scroll-padding-inline: 6px;
}

/* Indica que o visitante pode arrastar os cartões. */
.articles-carousel-track.is-draggable {
  cursor: grab;
}

.articles-carousel-track.is-dragging {
  cursor: grabbing;
  user-select: none;
  scroll-snap-type: none;
}

.articles-carousel-track.is-dragging a {
  cursor: grabbing;
}

/* Evita que títulos longos aumentem a largura dos cartões. */
.articles-carousel-track > .article-card {
  min-width: 0;
  scroll-snap-align: start;
  overflow-wrap: anywhere;
}

/* Mantém os títulos clicáveis sem sublinhado permanente. */
.articles-carousel-track .article-open {
  text-decoration: none;
}

.articles-carousel-track .article-open:hover {
  color: var(--accent);
}

.articles-carousel-track .article-open:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

/* Alinha os controles discretos do carrossel à direita */
.articles-carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 2px;
  margin-bottom: 10px;
}

/* Aparência dos controles, com área de toque de 44 pixels */
.articles-carousel-controls button,
.articles-carousel-controls .carousel-pause {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 12px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
}

/* Tamanho padrão do texto dos controles do carrossel */
.articles-carousel-controls button {
  font-size: 1.25rem;
}

/* Tamanho do texto, caso seja utilizado no botão pausa */
.articles-carousel-controls .carousel-pause {
  font-size: 0.8125rem;
}

.articles-carousel-controls button:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Realce suave ao passar o mouse. */
.articles-carousel-controls button:hover:not(:disabled) {
  background: rgb(0 0 0 / 5%);
  color: var(--primary);
}

/* Indica claramente o foco para quem navega pelo teclado. */
.articles-carousel-controls button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Símbolos pequenos, acompanhando a cor do botão. */
.articles-carousel-controls svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
}

.articles-carousel-controls .carousel-icon-pause {
  stroke-width: 3;
}

/* Alterna entre os símbolos de pausa e reprodução. */
.carousel-pause .carousel-icon-play {
  display: none;
}

.carousel-pause.is-paused .carousel-icon-pause {
  display: none;
}

.carousel-pause.is-paused .carousel-icon-play {
  display: block;
}

/* Preserva o comportamento do atributo hidden. */
.articles-carousel-controls[hidden],
.articles-carousel-controls button[hidden] {
  display: none;
}

.carousel-status {
  margin: 12px 0 0;
}

.carousel-status:empty {
  display: none;
}

/* Tablets: dois cartões por vez. */
@media (max-width: 950px) {
  .articles-carousel-track {
    grid-auto-columns: calc((100% - 24px) / 2);
  }
}

/* Celulares: um cartão por vez, com navegação por deslize. */
@media (max-width: 650px) {
  .articles-carousel-track {
    grid-auto-columns: 100%;
  }
}
