/* Escala tipográfica ajustada: fontes de até 16px ampliadas em 2px;
   fontes a partir de 25px reduzidas em 2px, inclusive no celular. */

/* Base e padrões globais */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f8f6f2;
  color: #292426;
  font-family: Arial,sans-serif;
  font-size: 18px;
  line-height: 1.65;
}

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

button {
  font: inherit;
}

/* Cabeçalho e navegação */
header {
  /* Fundo original #f8f6f2 escurecido em 20%. */
  background: #c6c5c2;
  max-width: 1440px;
  margin: auto;
  height: 112px;
  padding: 0 5.5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ded8d2;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 17px;
  letter-spacing: 2px;
}

.brand small {
  display: block;
  font-size: 13px;
  letter-spacing: 1.9px;
  margin-top: 4px;
}

.monogram {
  font: 46px Georgia;
  letter-spacing: -5px;
  padding-right: 6px;
  color: #591d2d;
}

.monogram span {
  color: #a96472;
}

nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 17px;
}

nav a:hover,nav a[aria-current] {
  color: #7c2940;
}

.navcontact {
  border: 1px solid #cbbfc0;
  padding: 12px 18px;
}

.navcontact span {
  margin-left: 22px;
}

.menu {
  display: none;
}

/* Destaque inicial: leão e texto de apresentação */
.hero {
  max-width: 1440px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  padding: 65px 5.5% 0;
  gap: 35px;
  min-height: 650px;
}

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #733246;
}

.hero h1 {
  font: clamp(42px, 4.5vw, 67px)/1.08 Georgia,serif;
  letter-spacing: -2px;
  margin: 27px 0;
}

h1 em {
  font-weight: normal;
  color: #783449;
}

p {
  color: #696064;
}

.herocopy>p {
  font-size: 17px;
  max-width: 470px;
  margin: 25px 0 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  background: #591d2d;
  color: #fff;
  padding: 16px 24px;
  font-size: 16px;
  letter-spacing: .25px;
  transition: background .2s;
}

.button:hover {
  background: #783449;
}

.herofoot {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid #ded8d2;
  margin-top: 45px;
  padding: 20px 0;
  font-size: 13px;
  letter-spacing: 1.6px;
  color: #706567;
}

.brandart {
  background: white;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 30px;
  border: 1px solid #eee8e3;
}

.brandart img {
  width: 100%;
  height: auto;
  display: block;
}

.artcaption {
  text-align: center;
  font-size: 12px;
  letter-spacing: 1.8px;
  padding: 15px;
  color: #735e65;
}

/* Introdução e áreas de atuação */
.intro {
  max-width: 820px;
  text-align: center;
  margin: 85px auto 70px;
  padding: 0 25px;
}

h2 {
  font: 38px/1.22 Georgia;
  letter-spacing: -.8px;
  font-weight: normal;
}

.intro p {
  font-size: 17px;
  max-width: 650px;
  margin: auto;
}

.areaswrap {
  max-width: 1280px;
  margin: 0 auto 85px;
  padding: 0 35px;
}

.sectiontitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #bdb1b1;
  padding-bottom: 20px;
}

.sectiontitle h2 {
  margin: 0;
}

.sectiontitle>span {
  font-size: 13px;
  letter-spacing: 1.7px;
  color: #6d6064;
}

.area {
  display: grid;
  grid-template-columns: 65px 1fr 30px;
  gap: 20px;
  padding: 29px 12px;
  border-bottom: 1px solid #dcd4d1;
  transition: background .2s;
}

.area:hover {
  background: #eee8e3;
}

.area .number {
  color: #8f6874;
  font-size: 16px;
  padding-top: 8px;
}

.area h3 {
  font: 27px Georgia;
  margin: 0 0 10px;
}

.area p {
  margin: 0;
  max-width: 800px;
  font-size: 18px;
}

.area>span:last-child {
  font-size: 25px;
  color: #6b2a3d;
}

/* Apresentação e chamada para atendimento */
.approach {
  background: #eee8e3;
  padding: 65px max(7%,calc((100vw - 1200px)/2));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}

.approach h2 {
  font-size: 46px;
}

.approach h3 {
  font: 29px/1.35 Georgia;
}

.approach p {
  font-size: 17px;
}

.dot {
  color: #8d3d53;
}

.textlink {
  display: inline-flex;
  gap: 40px;
  border-bottom: 1px solid #a7868e;
  padding: 10px 0;
  font-size: 17px;
}

.cta {
  background: #591d2d;
  color: #fff;
  padding: 55px max(7%,calc((100vw - 1200px)/2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta .eyebrow {
  color: #dec1c9;
}

.cta h2 {
  margin: 18px 0;
}

.light {
  background: #f8f6f2;
  color: #591d2d;
  white-space: nowrap;
}

.light:hover {
  background: #e4d5d8;
}

/* Rodapé */
footer {
  padding: 55px 7% 25px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.footerbrand {
  font: 23px Georgia;
}

.footerbrand small {
  display: block;
  font: 13px Arial;
  letter-spacing: 2px;
  margin-top: 15px;
}

footer>div:nth-child(2) {
  display: flex;
  gap: 25px;
  justify-content: flex-end;
  font-size: 16px;
}

footer p {
  font-size: 15px;
  max-width: 650px;
}

footer>small {
  font-size: 14px;
  text-align: right;
  color: #74666b;
}

/* Páginas internas e conteúdo detalhado */
.pagehero {
  max-width: 1250px;
  margin: auto;
  padding: 55px 40px 60px;
}

.breadcrumb {
  font-size: 15px;
  color: #786970;
  margin-bottom: 40px;
}

.pagehero h1 {
  font: clamp(38px, 4.5vw, 64px)/1.12 Georgia;
  max-width: 920px;
  letter-spacing: -1.5px;
  margin: 22px 0;
}

.pagehero>p {
  font-size: 20px;
  max-width: 800px;
}

.content {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 40px 75px;
}

.lede {
  font-size: 20px;
  max-width: 890px;
  border-left: 2px solid #793347;
  padding: 12px 0 12px 25px;
}

.servicegrid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 35px;
  margin: 50px 0 70px;
}

.service {
  border-top: 2px solid #96717c;
  padding-top: 25px;
}

.service h3 {
  font: 25px Georgia;
  line-height: 1.25;
}

.service p {
  font-size: 18px;
}

.documentbox {
  background: #eee8e3;
  padding: 38px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  margin-bottom: 65px;
}

.documentbox h2 {
  margin-top: 0;
  font-size: 32px;
}

.documentbox li {
  padding: 7px;
  color: #62575d;
  font-size: 18px;
}

details {
  border-bottom: 1px solid #d9cdd0;
  padding: 21px 0;
}

summary {
  cursor: pointer;
  font-size: 18px;
  color: #542233;
}

details p {
  max-width: 850px;
  font-size: 17px;
}

.related {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 45px;
}

.related a {
  font-size: 16px;
  border: 1px solid #d6c6cb;
  padding: 10px 15px;
}

.steps {
  counter-reset: steps;
}

.step {
  display: grid;
  grid-template-columns: 60px 1fr;
  border-top: 1px solid #d4c5c9;
  padding: 25px 0;
  gap: 20px;
}

.step:before {
  counter-increment: steps;
  content: '0' counter(steps);
  color: #81485b;
  font: 28px Georgia;
}

.step h3 {
  margin: 0;
  font: 25px Georgia;
}

.step p {
  margin-bottom: 0;
}

.notice {
  border: 1px solid #cbb8bf;
  padding: 25px;
  margin: 30px 0;
  font-size: 18px;
}

/* Acessibilidade: navegação por teclado */
.skip {
  position: absolute;
  top: -100px;
  background: #fff;
  padding: 15px;
  z-index: 9;
}

.skip:focus {
  top: 0;
}

:focus-visible {
  outline: 3px solid #ad6680;
  outline-offset: 5px;
}

/* Adaptação para telas de até 800px */
@media(max-width:800px) {
  header {
    height: 88px;
    padding: 0 6%;
    position: relative;
  }

  .brand {
    font-size: 14px;
    gap: 13px;
  }

  .brand small {
    font-size: 11px;
  }

  .monogram {
    font-size: 38px;
  }

  .menu {
    display: flex;
    gap: 12px;
    background: none;
    border: 0;
    color: #591d2d;
  }

  nav {
    display: none;
    position: absolute;
    top: 87px;
    left: 0;
    width: 100%;
    background: #f8f6f2;
    padding: 25px 6%;
    z-index: 5;
    border-bottom: 1px solid #d6c5cb;
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
  }

  nav.open {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 40px 6% 0;
    gap: 20px;
  }

  .hero h1 {
    font-size: 48px;
    letter-spacing: -1.5px;
  }

  .herofoot {
    margin-top: 30px;
  }

  .brandart {
    max-width: 470px;
    width: 100%;
    margin: 0 auto;
  }

  .intro {
    margin: 55px auto;
  }

  h2 {
    font-size: 31px;
  }

  .areaswrap {
    padding: 0 6%;
    margin-bottom: 55px;
  }

  .sectiontitle {
    align-items: flex-start;
    gap: 20px;
    flex-direction: column;
  }

  .area {
    grid-template-columns: 25px 1fr 20px;
    gap: 12px;
    padding: 24px 0;
  }

  .area h3 {
    font-size: 23px;
  }

  .area p {
    font-size: 17px;
  }

  .approach {
    grid-template-columns: 1fr;
    padding: 45px 6%;
    gap: 10px;
  }

  .approach h2 {
    font-size: 39px;
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 6%;
    gap: 20px;
  }

  footer {
    grid-template-columns: 1fr;
    padding: 40px 6%;
    gap: 20px;
  }

  footer>div:nth-child(2) {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  footer>small {
    text-align: left;
  }

  .pagehero {
    padding: 35px 6%;
  }

  .pagehero h1 {
    font-size: 41px;
  }

  .pagehero>p {
    font-size: 18px;
  }

  .content {
    padding: 0 6% 50px;
  }

  .servicegrid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 35px 0;
  }

  .documentbox {
    grid-template-columns: 1fr;
    padding: 25px;
    gap: 10px;
    margin-bottom: 40px;
  }

  .documentbox ul {
    padding-left: 18px;
  }

  .herofoot {
    font-size: 12px;
  }

  .eyebrow {
    font-size: 13px;
  }

}

/* Preferência por movimento reduzido */
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none!important;
  }

}

/* Exibe somente o leão, sem repetir o nome e a OAB da imagem. */
.markcropped {
  width: 100%;
  aspect-ratio: 1 / 0.76;
  overflow: hidden;
}

.markcropped img {
  width: 100%;
  height: auto;
  display: block;
}

/* Espaço para o nome completo no cabeçalho e no menu móvel. */
header {
  gap: 24px;
}

.brand {
  min-width: 0;
  line-height: 1.4;
}

@media (max-width: 800px) {
  .brand {
    flex: 1;
  }

  .menu {
    flex-shrink: 0;
  }

  #nav {
    background: #c6c5c2;
  }
}

/* Apresentação profissional: retrato em sua proporção original. */
.professional-profile {
  display: grid;
  grid-template-columns: 191px minmax(0, 1fr);
  align-items: start;
  gap: 40px;
  margin-bottom: 50px;
}

.professional-profile__photo {
  display: block;
  width: 191px;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.professional-profile__text h2 {
  margin-top: 0;
}

.professional-profile__text p {
  margin: 0 0 20px;
}

/* Informação disponível a leitores de tela sem afetar a composição. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 800px) {
  .professional-profile {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

/* Formulário de atendimento e conferência da mensagem do WhatsApp. */
.appointment {
  padding: 32px;
  margin-bottom: 50px;
  background: #eee8e3;
}

.appointment h2 {
  margin-top: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.form-field--wide {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 16px;
  font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid #99818a;
  border-radius: 3px;
  background: #fff;
  color: #292426;
  font: 16px/1.5 Arial, sans-serif;
}

.form-field textarea {
  resize: vertical;
}

.form-help,
.form-field small {
  font-size: 15px;
}

.appointment button {
  border: 0;
  cursor: pointer;
}

.message-preview {
  margin-top: 30px;
  padding: 24px;
  background: #fff;
  border-left: 3px solid #591d2d;
}

.message-preview pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
}

@media (max-width: 800px) {
  .appointment {
    padding: 22px 16px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .message-preview {
    padding: 18px;
  }
}

/* Endereço no rodapé */
.footerbrand address {
  font: normal 15px/1.7 Arial, sans-serif;
  color: #696064;
  margin-top: 18px;
}

.footerbrand address a {
  border-bottom: 1px solid #a7868e;
}

/* Normas e entendimentos de referência nas páginas de área */
.references {
  border-top: 2px solid #96717c;
  margin-top: 55px;
  padding-top: 10px;
}

.references h2 {
  font-size: 30px;
}

.references li {
  padding: 5px 0;
  color: #62575d;
  font-size: 17px;
}

.references p {
  font-size: 16px;
}

.references .refdate {
  font-size: 15px;
  color: #786970;
}

/* Leituras relacionadas */
.readmore {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #eee8e3;
  padding: 28px 32px;
  margin-top: 40px;
}

.readmore a {
  font: 22px/1.35 Georgia, serif;
  color: #542233;
}

.readmore a:hover {
  color: #7c2940;
}

/* Localização na página de atendimento */
.location {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px 45px;
  border-top: 2px solid #96717c;
  padding-top: 15px;
  margin-bottom: 55px;
}

.location h2 {
  font-size: 30px;
  margin-top: 15px;
}

.location address {
  font-style: normal;
  font-size: 18px;
  line-height: 1.8;
  color: #4a4045;
  padding-top: 20px;
}

.location address a {
  border-bottom: 1px solid #a7868e;
}

.location p {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 17px;
}

/* Artigos */
.byline {
  font-size: 15px !important;
  letter-spacing: .3px;
  color: #786970;
}

.article {
  max-width: 780px;
}

.article h2 {
  font-size: 30px;
  margin: 45px 0 10px;
}

.article p,
.article li {
  font-size: 18px;
  color: #4f464a;
}

.article li {
  padding: 4px 0;
}

.article strong {
  color: #3d3437;
}

.summarybox {
  background: #eee8e3;
  border-left: 3px solid #591d2d;
  padding: 26px 30px;
  margin: 45px 0 10px;
}

.summarybox p {
  margin-bottom: 0;
}

@media (max-width: 1100px) and (min-width: 801px) {
  nav {
    gap: 22px;
    font-size: 16px;
  }
}

@media (max-width: 800px) {
  .location {
    grid-template-columns: 1fr;
  }

  .location address {
    padding-top: 0;
  }

  .readmore {
    padding: 22px 18px;
  }

  .readmore a {
    font-size: 19px;
  }

  .article h2,
  .references h2 {
    font-size: 26px;
  }

  .summarybox {
    padding: 20px;
  }
}

/* Apresentação: públicos atendidos */
.audience {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 10px 0 60px;
}

.audience article {
  background: #eee8e3;
  padding: 32px;
}

.audience h2 {
  font-size: 28px;
  margin: 14px 0 10px;
}

.audience p {
  font-size: 18px;
}

@media (max-width: 800px) {
  .audience {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 40px;
  }

  .audience article {
    padding: 22px 18px;
  }

  .audience h2 {
    font-size: 25px;
  }
}

/* Atendimento: espaço entre as perguntas frequentes e o formulário */
details + .appointment {
  margin-top: 50px;
  margin-bottom: 0;
}
