/* =========================================================
   Afonso Paciléo — camada de melhorias (18/11/2026)
   Traz para o site estático o que o cliente aprovou na versão WordPress
   (wp-design/smart-design/afonso.css): cabeçalho fixo, menu, botões,
   rodapé em 3 colunas, foto do "Sobre", faixa compacta, Missão/Visão/Valores,
   formulários em cartão, WhatsApp flutuante e voltar ao topo com progresso.
   Não muda tipografia, cores da marca nem textos.
   Carregado DEPOIS do site.css (montar.ps1), por isso sobrescreve sem !important.
   ========================================================= */
:root {
  --ouro: #FCB961;
  --ouro2: #E7A854;
  --ease-suave: cubic-bezier(.22, .61, .36, 1);
}

/* O cabeçalho fixo cobre o topo da tela: âncoras (#formulario...) param abaixo dele */
html { scroll-padding-top: 100px; }

/* ---------- Barra de leitura ---------- */
.barra-leitura {
  position: fixed; top: 0; left: 0; z-index: 100; width: 100%; height: 3px;
  background: var(--laranja); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none;
}

/* ---------- Cabeçalho fixo ao rolar ----------
   O melhorias.js põe .topo--fixavel (fixo, sobe junto com a barra superior até ela sair)
   e .topo--fixo depois de alguns pixels (fundo grafite translúcido).
   O fundo fica num ::before: filtro/transform no próprio .topo prenderiam o menu do celular (position: fixed). */
.topo.topo--fixavel { position: fixed; top: calc(-1 * var(--topo-y, 0px)); }
.topo::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(41, 41, 41, .95); box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .55);
  opacity: 0; transition: opacity .4s var(--ease-suave);
}
.topo.topo--fixo::before { opacity: 1; }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .topo::before { background: rgba(41, 41, 41, .9); -webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px); }
}
.topo__barra { transition: opacity .3s; }
.topo--fixo .topo__barra { opacity: 0; }
.topo__linha { padding-bottom: 6px; }
/* Barra superior: só o ícone gira (o texto já sublinha no hover) */
.topo__contato:hover .topo__ic img { transform: scale(1.12) rotate(-8deg); }

/* ---------- Menu principal (computador) ---------- */
/* Sublinhado dourado nasce do centro */
.menu a::after { transform-origin: 50% 50%; transition: transform .35s var(--ease-suave); }
.menu a:focus-visible::after { transform: scaleX(1); }
.menu__cta { display: none; }

@media (min-width: 1240px) {
  /* Submenu "Serviços" em cartão */
  .menu .menu__sub {
    display: flex; top: calc(100% + 6px); left: -20px; min-width: 220px; padding: 8px 0;
    border-top: 3px solid var(--laranja); box-shadow: 0 22px 44px -18px rgba(0, 0, 0, .55);
    opacity: 0; visibility: hidden; translate: 0 8px;
    transition: opacity .25s, translate .3s var(--ease-suave), visibility .25s;
  }
  /* Ponte invisível: o mouse atravessa o vão sem fechar o submenu */
  .menu .menu__sub::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 14px; }
  .menu__grupo:hover .menu__sub, .menu__grupo:focus-within .menu__sub { opacity: 1; visibility: visible; translate: 0 0; }
  .menu .menu__sub a { display: block; padding: 10px 20px; transition: padding-left .3s var(--ease-suave), background-color .3s; }
  .menu .menu__sub a::after { display: none; }
  .menu .menu__sub a::before {
    content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 3px; background: var(--laranja);
    transform: scaleY(0); transition: transform .3s var(--ease-suave);
  }
  .menu .menu__sub a:hover, .menu .menu__sub a:focus-visible { padding-left: 26px; background: rgba(255, 255, 255, .05); }
  .menu .menu__sub a:hover::before, .menu .menu__sub a:focus-visible::before, .menu .menu__sub a[aria-current]::before { transform: scaleY(1); }
}

/* ---------- Menu do celular em painel ---------- */
@media (max-width: 1239px) {
  .menu { box-shadow: inset 0 3px 0 var(--laranja), -12px 0 32px rgba(0, 0, 0, .35); padding-left: 20px; padding-right: 20px; }
  .menu a { position: relative; padding-left: 16px; padding-right: 12px; text-align: left; }
  .menu a::after { display: none; }
  .menu .menu__sub { padding-left: 0; }
  .menu .menu__sub a { padding-left: 32px; }
  .menu a[aria-current="page"]::before {
    content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; background: var(--laranja);
  }
  .menu__cta { display: block; margin-top: 22px; }
  .menu .menu__cta a {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 18px; border-bottom: 0; background: var(--laranja); color: var(--grafite);
    font-weight: 700; white-space: normal; text-align: center;
    transition: background-color .25s, transform .3s var(--ease-suave);
  }
  .menu .menu__cta a:hover { background: var(--ouro2); }
  .menu .menu__cta a:active { transform: scale(.98); }
  .menu .menu__cta svg { flex: none; }
  .js-animar .menu.aberto > ul > li:nth-child(8) { animation-delay: .35s; }
  .topo__menu-btn { transition: transform .3s var(--ease-suave), background-color .3s; }
  .topo__menu-btn:active { transform: scale(.94); }
}

/* ---------- Botões: sobem um pouco e passa um brilho ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  transition: background-size .45s var(--ease-saida), color .3s, box-shadow .3s var(--ease-suave), transform .3s var(--ease-suave);
}
.btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -75%; width: 50%; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, .45) 50%, transparent 100%);
  transform: skewX(-20deg); transition: left .7s var(--ease-suave);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 26px -12px rgba(41, 41, 41, .55); }
.btn:hover::after { left: 130%; }
.btn:active { transform: translateY(-1px); }
.btn:focus-visible { outline-offset: 4px; }

/* ---------- Botões laterais do banner: hover dourado, texto/ícone grafite ---------- */
.atalhos a { transition: background-color .3s, color .3s, transform .35s var(--ease-suave), box-shadow .35s var(--ease-suave); }
.atalhos a:hover, .atalhos a:focus-visible { background: var(--laranja); color: var(--grafite); box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .6); }
.atalhos img { transition: filter .3s, transform .35s var(--ease-suave); }
/* o ícone é branco: brightness(.16) leva o branco a #292929 */
.atalhos a:hover img, .atalhos a:focus-visible img { filter: brightness(.16); transform: translateY(-2px) scale(1.08); }

/* ---------- Títulos de cards: sublinhado dourado que cresce ---------- */
.servico-card h3 a, .servico-mini h3 a, .post h3 a, .mais-servicos__item h3 a {
  background-image: linear-gradient(var(--laranja), var(--laranja)); background-repeat: no-repeat;
  background-size: 0% 2px; background-position: 0 100%;
  transition: background-size .45s var(--ease-suave), color .3s;
}
.servico-card:hover h3 a, .servico-card:focus-within h3 a, .servico-mini:hover h3 a, .post:hover h3 a,
.mais-servicos__item:hover h3 a, .servico-mini h3 a:focus-visible, .post h3 a:focus-visible { background-size: 100% 2px; }
.servico-card h3 a:hover, .servico-mini a:hover, .post a:hover, .mais-servicos__item h3 a:hover { text-decoration: none; }
.servico-card:hover img { filter: brightness(.94); }

/* ---------- Home: foto do "Sobre" menor, colada no quadrado dourado ---------- */
@media (min-width: 900px) {
  .sobre .dividida__foto { min-height: 0; background: none; }
  .sobre .dividida__foto img.sobre__foto {
    position: relative; inset: auto; translate: none; display: block;
    width: min(540px, 88%); max-width: none; height: auto; aspect-ratio: 1024 / 1078;
    object-fit: cover; object-position: center top;
    -webkit-mask-image: none; mask-image: none;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55);
  }
  /* sem o fundo escuro da coluna, a faixa escura acima do quadrado também sai */
  .sobre__icone::before { display: none; }
}
@media (max-width: 899px) {
  .sobre .dividida__foto { aspect-ratio: auto; background: none; padding: 0 var(--gutter) 48px; }
  .sobre .dividida__foto img.sobre__foto {
    position: static; display: block; width: 100%; max-width: 420px; height: auto; aspect-ratio: 1024 / 1078;
    margin: 0 auto; object-fit: cover; object-position: center top;
    box-shadow: 0 24px 48px -26px rgba(0, 0, 0, .5);
  }
}

/* ---------- Home: faixa dourada mais compacta ---------- */
.faixa { padding: clamp(24px, 1.9vw, 30px) 0; }
.faixa__item { gap: clamp(16px, 1.6vw, 28px); }
.faixa__item img { width: clamp(46px, 3.1vw, 58px); }
@media (max-width: 899px) {
  .faixa { padding: 32px 0; }
  .faixa__grade { gap: 22px; }
  .faixa__item { align-items: flex-start; gap: 16px; }
  .faixa__item img { width: 46px; margin-top: 2px; }
}

/* ---------- Institucional: Missão / Visão / Valores ---------- */
.mvv__card {
  position: relative; overflow: hidden; min-height: 0;
  padding: 38px 34px 40px; border-radius: 18px; text-align: left;
}
.mvv__selo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 62px; height: 62px; border-radius: 16px; margin-bottom: 22px;
  background: rgba(255, 255, 255, .55);
}
.mvv__card .mvv__selo img { width: 32px; height: 32px; margin: 0; transition: transform .45s var(--ease-suave); }
.mvv__card:hover .mvv__selo img { transform: translateY(-4px) rotate(-6deg); }
.mvv__card:not(.mvv__card--laranja):not(.mvv__card--escuro) .mvv__selo { background: var(--branco); box-shadow: 0 8px 18px -12px rgba(41, 41, 41, .4); }
.mvv__card--escuro .mvv__selo { background: rgba(252, 185, 97, .12); box-shadow: inset 0 0 0 1px rgba(252, 185, 97, .35); }
.mvv__card h2 { margin-top: 0; }
.mvv__card h2::after {
  content: ""; display: block; width: 38px; height: 2px; margin-top: 14px; background: var(--laranja);
  transition: width .45s var(--ease-suave);
}
.mvv__card--laranja h2::after { background: var(--grafite); }
.mvv__card:hover h2::after { width: 64px; }
.mvv__card p { margin-top: 14px; }
/* círculo decorativo discreto no canto */
.mvv__card::after {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 150px; height: 150px; border-radius: 50%;
  border: 22px solid rgba(255, 255, 255, .18); pointer-events: none;
}
.mvv__card:not(.mvv__card--laranja):not(.mvv__card--escuro)::after { border-color: rgba(252, 185, 97, .16); }
.mvv__card--escuro::after { border-color: rgba(252, 185, 97, .08); }
.mvv__card { isolation: isolate; }
.mvv__card::after { z-index: 0; }
.mvv__card > * { position: relative; z-index: 1; }
@media (max-width: 767px) { .mvv__card { padding: 32px 26px 34px; } }

/* ---------- Formulários (Contato / Trabalhe Conosco) em cartão ---------- */
.campo-robo{position:absolute!important;left:-10000px!important;width:1px;height:1px;overflow:hidden}
.form-painel { padding: clamp(96px, 7vw, 133px) clamp(20px, 3vw, 48px) 64px; }
.formulario {
  grid-template-columns: 1fr 1fr; gap: 14px; max-width: 560px; margin-inline: auto;
  padding: 34px 32px 30px; border-radius: 18px; border-top: 3px solid var(--laranja);
  background: rgba(255, 255, 255, .93); box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.formulario > * { grid-column: 1 / -1; min-width: 0; }
.formulario > .campo--meia { grid-column: auto; }
.form-ajuda { background: none; padding: 0; color: var(--tinta-suave); }
.campo input, .campo textarea {
  min-height: 54px; padding: 22px 16px 6px;
  background: #F7F7F7; border: 1px solid #E3E3E3; border-radius: 10px;
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.campo textarea { min-height: 130px; padding-top: 26px; }
.campo label { left: 17px; top: 15px; }
.campo input:focus + label, .campo input:not(:placeholder-shown) + label,
.campo textarea:focus + label, .campo textarea:not(:placeholder-shown) + label { top: 4px; }
.campo input:hover, .campo textarea:hover { border-color: rgba(252, 185, 97, .7); }
.campo input:focus, .campo textarea:focus {
  outline: none; background: var(--branco); border-color: var(--ouro2);
  box-shadow: 0 0 0 3px rgba(252, 185, 97, .35);
}
.campo [aria-invalid="true"] { border-color: #b3261e; box-shadow: 0 0 0 3px rgba(179, 38, 30, .14); }
.erro { background: none; padding: 2px 2px 0; }
.campo--arquivo .arquivo-visual {
  min-height: 54px; padding: 8px 16px; border-radius: 10px;
  background: #F7F7F7; border: 1px dashed #CFCFCF; transition: border-color .3s, box-shadow .3s;
}
.campo--arquivo:hover .arquivo-visual { border-color: rgba(231, 168, 84, .9); }
.campo--arquivo input[type="file"]:focus-visible + .arquivo-visual { outline: none; border-color: var(--ouro2); box-shadow: 0 0 0 3px rgba(252, 185, 97, .35); }
.campo--arquivo input[aria-invalid="true"] + .arquivo-visual { border-color: #b3261e; }
.formulario .btn { justify-self: stretch; width: 100%; min-width: 0; min-height: 52px; margin-top: 4px; border-radius: 10px; }
.form-status { border-radius: 10px; background: #F7F7F7; padding: 12px 14px; }
@media (max-width: 899px) {
  .form-painel { padding: 48px var(--gutter); }
}
@media (max-width: 767px) {
  .formulario { grid-template-columns: 1fr; padding: 26px 20px 22px; border-radius: 14px; max-width: none; }
  .formulario > .campo--meia { grid-column: 1 / -1; }
}

/* Contato: endereço, telefone e e-mail clicáveis */
.contatos__link address { font: inherit; }
.contatos a { transition: color .25s; }

/* ---------- Rodapé: Marca | Endereços | Menu (sem o selo) ---------- */
.rodape__grade { grid-template-columns: 250px minmax(0, 1.25fr) max-content; gap: 40px 64px; }
.rodape__col--end .rodape__titulo:first-child { margin-left: 0; }
.rodape__marca { display: flex; flex-direction: column; align-items: flex-start; }
.rodape__logo { display: inline-block; transition: opacity .3s, transform .4s var(--ease-suave); }
.rodape__logo:hover { opacity: .88; transform: translateY(-2px); }
.rodape__logo img { width: 220px; }
.rodape__filete { display: block; width: 56px; height: 2px; margin: 26px 0 24px; background: var(--laranja); }
.rodape__marca .rodape__titulo--sem-linha { margin: 0 0 14px; }
.rodape .rodape__marca .redes { margin-top: 0; }
.rodape__menu a { transition: background-size .35s var(--ease-saida), color .3s, transform .3s var(--ease-suave); }
.rodape__menu a:hover { transform: translateX(4px); }
.redes a:hover { box-shadow: 0 12px 20px -10px rgba(0, 0, 0, .55); }
@media (max-width: 1100px) {
  .rodape__grade { grid-template-columns: 1fr 1fr; }
  .rodape__marca { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px 36px; }
  .rodape__filete { display: none; }
  .rodape__marca .rodape__titulo--sem-linha { margin: 0; }
}
@media (max-width: 767px) {
  .rodape__grade { grid-template-columns: 1fr; row-gap: 36px; }
  .rodape__marca { flex-direction: column; align-items: center; gap: 0; text-align: center; }
  .rodape__logo img { width: 200px; }
  .rodape__filete { display: block; margin: 18px auto 20px; }
  .rodape__marca .rodape__titulo--sem-linha { margin: 0 0 14px; }
  .rodape .rodape__marca .redes { justify-content: center; }
}

/* ---------- WhatsApp flutuante (computador; no celular a barra de atalhos já leva ao WhatsApp) ---------- */
.whatsapp-float {
  position: fixed; right: clamp(16px, 2vw, 38px); bottom: 24px; z-index: 44;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #1f7a45; color: #fff; box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .55);
  transition: transform .35s var(--ease-suave), box-shadow .35s, background-color .25s;
}
.whatsapp-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #1f7a45;
  animation: ap-pulso 2.4s ease-out infinite; pointer-events: none;
}
.whatsapp-float:hover { transform: scale(1.08); background: #17633a; box-shadow: 0 14px 26px -10px rgba(0, 0, 0, .5); }
.whatsapp-float:focus-visible { outline: 3px solid var(--tinta); outline-offset: 3px; box-shadow: 0 0 0 6px var(--branco); }
@keyframes ap-pulso { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(1.55); opacity: 0; } }
@media (max-width: 1239px) { .whatsapp-float { display: none; } }

/* ---------- Voltar ao topo: redondo, com anel de progresso, acima do WhatsApp ---------- */
.voltar-topo {
  right: calc(clamp(16px, 2vw, 38px) + 4px); bottom: 94px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--grafite); color: var(--laranja); box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .55);
  transition: opacity .35s, visibility .35s, transform .35s var(--ease-suave), background-color .3s;
}
.voltar-topo:hover { background: var(--tinta); color: var(--laranja); }
.voltar-topo.visivel:hover { transform: translateY(-3px); }
.voltar-topo .voltar-topo__anel, .voltar-topo:hover .voltar-topo__anel {
  position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); transition: none;
}
.voltar-topo__anel circle { fill: none; stroke-width: 2.5; }
.voltar-topo__trilho { stroke: rgba(252, 185, 97, .22); }
.voltar-topo__progresso { stroke: var(--laranja); stroke-linecap: round; stroke-dasharray: 131.95; stroke-dashoffset: 131.95; transition: stroke-dashoffset .1s linear; }
.voltar-topo__seta { position: relative; width: 18px; height: 18px; }
.voltar-topo:hover .voltar-topo__seta { transform: translateY(-2px); }
@media (max-width: 1239px) { .voltar-topo { bottom: 80px; right: 16px; } }
@media (max-width: 599px) { .voltar-topo { bottom: 88px; } }

@media (forced-colors: active) {
  .voltar-topo, .whatsapp-float, .formulario { border: 1px solid CanvasText; }
}

/* ===== Ajustes de 18/11 (tarde), iguais aos aprovados no WordPress ===== */

/* Cards de serviço (Pessoa Física, Empresas, Serviços): cartão branco moderno */
.servico-card {
  background: #FFFFFF; border: 1px solid rgba(41, 41, 41, .08); border-radius: 18px; overflow: hidden;
  box-shadow: 0 14px 30px -24px rgba(41, 41, 41, .55); display: flex; flex-direction: column; padding-bottom: 26px;
  transition: transform .45s cubic-bezier(.22,.61,.36,1), box-shadow .45s cubic-bezier(.22,.61,.36,1), border-color .3s;
}
.servico-card:hover, .servico-card:focus-within { transform: translateY(-6px); box-shadow: 0 26px 46px -26px rgba(41, 41, 41, .6); border-color: rgba(252, 185, 97, .55); }
.servico-card:focus-within { outline-offset: 4px; }
.servico-card__midia img { aspect-ratio: 16 / 10; }
.servico-card__midia::after { display: none; }
.servico-card h3, .servico-card p { padding: 0 22px; }
.servico-card h3 { margin-top: 20px; min-height: 0; }
@media (min-width: 601px) { .servico-card h3 a { display: block; min-height: 2.7em; } }
.servico-card h3::before { content: ""; display: block; width: 36px; height: 2px; background: var(--laranja, #FCB961); margin-bottom: 14px; transition: width .45s; }
.servico-card:hover h3::before { width: 60px; }
.servico-card p { margin-top: 10px; }

/* Nossa Equipe: card do Dr. Afonso */
.perfil-ceo {
  border-radius: 20px; overflow: hidden; background: #FFFFFF; border: 1px solid rgba(41, 41, 41, .07);
  box-shadow: 0 30px 60px -34px rgba(41, 41, 41, .55); max-width: 1040px; margin-left: auto; margin-right: auto;
}
.perfil-ceo__foto img { max-height: 560px; min-height: 460px; object-position: center 18%; }
.perfil-ceo__texto { align-self: center; padding: 52px 56px; }
@media (max-width: 899px) { .perfil-ceo__nome span { margin-left: auto; margin-right: auto; } }
.perfil-ceo__nome span {
  display: table; margin-top: 12px; font: 600 .78rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; background: rgba(252, 185, 97, .16); color: #B7791F;
}
.perfil-ceo__nome::after { content: ""; display: block; width: 48px; height: 2px; background: var(--laranja, #FCB961); margin-top: 18px; }
.perfil-ceo__cargo { margin-top: 18px; }
.perfil-ceo .oab { border-radius: 999px; padding: 2px 12px; font-weight: 600; }
.perfil-ceo .redes a { border-radius: 10px; }
.perfil-ceo .btn { border-radius: 10px; }
.perfil-ceo .btn::after { content: " \2192"; }
@media (max-width: 899px) {
  .perfil-ceo__foto img { min-height: 0; max-height: none; aspect-ratio: 4 / 4.2; }
  .perfil-ceo__texto { padding: 30px 26px 34px; text-align: center; }
  .perfil-ceo__nome::after { margin-left: auto; margin-right: auto; }
  .perfil-ceo .redes { justify-content: center; }
}