/*
Theme Name: Pereira & Sá Institucional
Description: Tema institucional do Pereira & Sá Advogados Associados.
Author: Pereira & Sá Advogados Associados
Version: 1.4.3
Text Domain: pereira-sa
*/

@font-face {
  font-family: Raleway;
  src: url("assets/raleway.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

.ps-biblioteca { max-width: 64rem; padding-block: clamp(2.5rem, 5vw, 5rem); }
.ps-biblioteca h1 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.1; letter-spacing: -.035em; }
.ps-biblioteca header > p { margin: .8rem 0 1rem; }
.ps-biblioteca .journal-search { max-width: 32rem; }
.ps-biblioteca .ps-assuntos { display: flex; flex-wrap: wrap; gap: .45rem 1.25rem; padding: 1.2rem 0; border-block: 1px solid #d5cbb8; margin: 1.75rem 0 2rem; }
.ps-assuntos a, .ps-mais-artigos { font-weight: 650; color: #76531e; text-decoration: underline; text-underline-offset: .18em; }
.ps-biblioteca section { scroll-margin-top: 1rem; margin: 2.2rem 0; }
.ps-biblioteca section h2 { margin-bottom: .65rem; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.2; }
.ps-linha-artigo { display: grid; gap: .25rem; padding: .85rem 0; border-bottom: 1px solid #ddd7cb; }
.ps-linha-artigo strong { font-size: 1.08rem; }
.ps-linha-artigo span { color: var(--muted); max-width: 72ch; }
.ps-linha-artigo:hover strong { text-decoration: underline; text-underline-offset: .15em; }
.ps-mais-artigos { display: inline-block; margin-top: .7rem; }

:root {
  --paper: #f9f7f2;
  --linen: #eeeae2;
  --ink: #202428;
  --muted: #535652;
  --gold: #795b2f;
  --gold-light: #dabb8c;
  --dark: #1a1c1e;
  --gutter: clamp(1.25rem, 5.3vw, 5rem);
  --section-space: clamp(3.5rem, 7vw, 6.75rem);
  font-family: Raleway, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; line-height: 1.55; }
main, section, figure, picture, img { display: block; }
h1, h2, h3, p, figure, nav, summary { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
a, summary { touch-action: manipulation; }
:focus-visible { outline: 3px solid #a97937; outline-offset: 4px; }
.practice :focus-visible, footer :focus-visible { outline-color: #f0d09e; }
::selection { color: #181614; background: #ead3ad; }

.wrap {
  width: min(calc(100% - var(--gutter) - var(--gutter)), 75rem);
  margin-inline: auto;
}
.skip {
  position: absolute;
  z-index: 5;
  top: .75rem;
  left: var(--gutter);
  padding: .75rem 1rem;
  color: white;
  background: var(--ink);
  transform: translateY(calc(-100% - 1rem));
}
.skip:focus { transform: translateY(0); }
.site-head { background: var(--paper); }
.header-inner {
  display: flex;
  min-height: 6rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: inset 0 -1px rgb(44 44 36 / 12%);
}
.brand { display: block; flex: 0 1 13.75rem; }
.brand img { width: 100%; max-height: 4.15rem; object-fit: contain; object-position: left center; }
.header-inner nav { display: flex; align-items: center; justify-content: center; gap: clamp(1.25rem, 2.65vw, 2.75rem); }
.header-inner nav a, .header-cta, .text-link, .button { display: inline-flex; align-items: center; min-height: 2.8rem; }
.header-inner nav a { font-size: .91rem; font-weight: 600; }
.header-cta, .button { justify-content: center; gap: .65rem; border-radius: 3px; font-weight: 650; }
.header-cta {
  padding: .6rem 1.2rem;
  box-shadow: inset 0 0 0 1px #9a8b74;
  font-size: .89rem;
}
.arrow { display: inline-block; flex: none; font-family: Arial, sans-serif; font-size: 1.12em; font-weight: 400; }

.hero { background: var(--paper); }
.hero-grid, .section-grid, .about-grid, .contact-grid { display: grid; align-items: center; }
.hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  gap: clamp(2.5rem, 5.2vw, 5.75rem);
  padding-block: clamp(2.75rem, 5.4vw, 5.4rem) clamp(3.25rem, 5.5vw, 5.3rem);
}
.eyebrow {
  color: var(--gold);
  font-size: .7rem;
  font-weight: 750;
  line-height: 1.5;
  letter-spacing: .14em;
  text-transform: uppercase;
}
h1, h2 {
  font-family: Raleway, Arial, sans-serif;
  font-weight: 550;
  line-height: 1.065;
  letter-spacing: -.051em;
  overflow-wrap: break-word;
}
h1 { margin-top: 1.1rem; font-size: clamp(3rem, 4.9vw, 4.85rem); }
h1 em { color: var(--gold); font-style: normal; font-weight: 600; }
h2 { margin-top: .9rem; font-size: clamp(2.45rem, 3.7vw, 3.7rem); font-weight: 600; }
.lede, .section-intro > p:not(.eyebrow), .about-copy > p:not(.eyebrow), .contact-copy > p:not(.eyebrow) {
  max-width: 49ch;
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.65;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1.55rem; margin-top: 1.75rem; }
.button { padding: .85rem 1.35rem; font-size: .95rem; line-height: 1.3; text-align: center; }
.primary { color: #121416; background: #cfab72; }
.text-link { gap: .5rem; font-size: .91rem; font-weight: 650; text-decoration: underline; text-decoration-color: #b6a58a; text-underline-offset: .35em; }
.hero-meta { margin-top: 1.55rem; color: var(--muted); font-size: .81rem; font-weight: 550; }
.hero-photo, .archive-photo { min-width: 0; }
.hero-photo img, .archive-photo img { width: 100%; object-fit: cover; background: var(--linen); }
.hero-photo img { aspect-ratio: 5 / 4.4; object-position: center 39%; }
figcaption { padding-top: .85rem; color: var(--muted); font-size: .78rem; line-height: 1.5; }

.practice { padding-block: var(--section-space); color: #faf6ee; background: linear-gradient(112deg, #22262a, var(--dark) 75%); }
.section-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.12fr); gap: clamp(3rem, 8.4vw, 8rem); align-items: start; }
.practice .eyebrow { color: var(--gold-light); }
.practice .section-intro > p:not(.eyebrow) { color: #cccac4; }
.areas details { border-top: 1px solid rgb(240 229 207 / 24%); }
.areas details:last-child { border-bottom: 1px solid rgb(240 229 207 / 24%); }
.areas summary { display: flex; align-items: center; justify-content: space-between; gap: 1.1rem; padding: 1.35rem .15rem; cursor: pointer; list-style: none; font-size: clamp(1.12rem, 1.65vw, 1.55rem); line-height: 1.3; font-weight: 550; }
.areas summary::-webkit-details-marker { display: none; }
.areas summary span { min-width: 0; overflow-wrap: break-word; }
.plus { display: inline-grid; flex: 0 0 1.85rem; place-items: center; color: var(--gold-light); font: 400 1.55rem/1 Arial, sans-serif; }
.plus::before { content: '+'; }
details[open] > summary .plus::before { content: '−'; }
.areas details p { max-width: 58ch; margin: -.1rem 2.25rem 1.4rem .15rem; color: #d8d5cf; font-size: .98rem; line-height: 1.65; }

.about { padding-block: var(--section-space); }
.about-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); gap: clamp(3rem, 8.4vw, 8rem); }
.archive-photo img { aspect-ratio: 1.22; object-position: center; }
.partners { display: grid; gap: .95rem; margin-top: 1.6rem; }
.partners h3 { font-size: 1.02rem; line-height: 1.4; font-weight: 700; }
.partners p { margin-top: .1rem; color: var(--muted); font-size: .83rem; font-weight: 550; letter-spacing: .015em; }
.contact { padding-block: clamp(2.9rem, 5.6vw, 5.2rem); background: var(--linen); }
.contact-grid { grid-template-columns: minmax(0, 1fr) auto; gap: 2.5rem; }
.contact-actions { display: grid; justify-items: start; gap: .7rem; }
.contact-actions small { color: var(--muted); font-size: .81rem; }
footer { background: #1a1c1e; color: #e4dfd4; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.25rem; padding-block: 1.6rem; font-size: .83rem; }
.footer-inner a { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; color: #f5e8d1; text-decoration: underline; text-underline-offset: .3em; }

@media (hover: hover) and (pointer: fine) {
  .header-inner nav a:hover, .text-link:hover { color: var(--gold); }
  .header-cta:hover { background: #ece7de; }
  .primary:hover { background: #ddba84; }
  .areas summary:hover { color: var(--gold-light); }
  .footer-inner a:hover { color: #fff; }
}
@media (max-width: 57rem) {
  .header-inner { min-height: 5rem; gap: 1.2rem; }
  .brand { flex-basis: 11.5rem; }
  .header-inner nav { gap: 1rem; }
  .hero-grid { gap: 2rem; }
  .section-grid, .about-grid { gap: 3rem; }
}
@media (max-width: 47rem) {
  :root { --gutter: clamp(1.15rem, 5vw, 2.3rem); }
  .header-inner { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .15rem .6rem; padding-block: .85rem .45rem; }
  .brand { grid-column: 1 / -1; width: 10.5rem; }
  .header-cta { padding: .4rem .7rem; font-size: .81rem; }
  .header-inner nav { flex-wrap: wrap; justify-content: flex-start; gap: 0 1.25rem; padding-block: .15rem; }
  .header-inner nav a { font-size: .85rem; }
  .hero-grid, .section-grid, .about-grid, .contact-grid { grid-template-columns: minmax(0,1fr); gap: 2rem; }
  .hero-grid { padding-top: 2.2rem; }
  h1 { max-width: 17ch; font-size: clamp(2.6rem, 7.9vw, 4rem); }
  h2 { font-size: clamp(2.25rem, 6vw, 3rem); }
  .hero-actions { margin-top: 1.25rem; }
  .hero-meta { margin-top: 1rem; }
  .hero-photo img { aspect-ratio: 5 / 4; }
  .about-copy { grid-row: 1; }
  .archive-photo img { aspect-ratio: 3 / 2; }
  .areas summary { padding-block: 1.15rem; }
  .contact-grid { gap: 1.4rem; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: .15rem; }
}
@media (max-width: 24rem) {
  .header-inner { gap: 0 .5rem; }
  .brand { width: 9.5rem; }
  .header-inner nav { column-gap: .8rem; }
  .header-inner nav a { font-size: .79rem; }
  .header-cta { padding-inline: .48rem; font-size: .77rem; }
  .hero-actions { gap: .45rem 1rem; }
}


/* Navegação e tipografia do blog */
.masthead { position:relative; z-index:5; color:#fbf8ee; background:#161819; border-top:4px solid #d2a458; }
.masthead-inner { display:flex; align-items:center; justify-content:space-between; gap:1.5rem; max-width:67.5rem; min-height:5.1rem; }
.masthead-wordmark { display:block; flex:0 0 11.65rem; }
.masthead-wordmark img { width:100%; height:auto; }
.masthead-nav,.masthead-tools { display:flex; align-items:center; }
.masthead-nav { gap:clamp(1.1rem,2.45vw,2.45rem); }
.masthead-nav a,.masthead-contact,.site-search summary,.masthead-mobile summary { display:inline-flex; align-items:center; min-height:44px; }
.masthead-nav a { font-weight:650; font-size:.95rem; }
.masthead-nav a[aria-current],.masthead-nav a:hover { color:#ebc67e; }
.masthead-tools { gap:.9rem; }
.masthead-contact { justify-content:center; padding:.55rem 1.6rem; gap:.65rem; border-radius:5px; background:#e4b268; color:#151615; font-weight:750; font-size:.95rem; }
.masthead-contact:hover { background:#edc589; }
.site-search { position:relative; }
.site-search summary,.masthead-mobile summary { justify-content:center; width:44px; cursor:pointer; list-style:none; color:#efc783; }
.site-search summary::-webkit-details-marker,.masthead-mobile summary::-webkit-details-marker { display:none; }
.site-search summary span { display:block; width:17px; height:17px; border:2px solid currentColor; border-radius:50%; position:relative; }
.site-search summary span::after { content:''; position:absolute; width:8px; height:2px; background:currentColor; transform:rotate(45deg); left:11px; top:13px; }
.site-search form { position:absolute; top:calc(100% + 4px); right:0; width:min(22rem,calc(100vw - 2rem)); background:#fffaf1; color:#24221d; padding:1rem; border:1px solid #d8c298; box-shadow:0 8px 24px #0003; }
.masthead-mobile { display:none; }
.journal-search { display:flex; align-items:end; gap:.5rem; }
.journal-search label { flex:1; min-width:0; font-size:.8rem; font-weight:700; }
.journal-search input,.journal-search button { font:inherit; min-height:44px; }
.journal-search input { display:block; width:100%; margin-top:.25rem; padding:.55rem; border:1px solid #978d7c; background:white; color:#201f1b; }
.journal-search button { background:#292822; color:white; padding:.45rem .9rem; border:0; cursor:pointer; }
.journal-entry { max-width:55rem; min-height:55vh; padding-block:clamp(3rem,6vw,6rem); }
.journal-entry h1,.journal-entry h2,.journal-feed h3 { font-family:Georgia,serif; font-weight:normal; letter-spacing:-.035em; }
.journal-entry h1 { margin:0 0 1.5rem; font-size:clamp(2.35rem,5vw,4.7rem); }
.journal-entry article,.journal-feed article { border-top:1px solid #ccc3b6; padding-block:1.4rem; }
.journal-entry h2 { font-size:clamp(1.6rem,3vw,2.25rem); margin:0 0 .45rem; }
.journal-entry a,.journal-feed h3 a:hover { text-decoration:underline; text-underline-offset:.2em; }
.journal-entry .journal-search { max-width:34rem; margin:1.2rem 0; }
.journal-prose { max-width:68ch; }
.journal-prose p { margin:1.15em 0; }
.journal-feed { padding-block:1.8rem; }
.journal-feed article { display:flex; align-items:start; gap:1.15rem; }
.journal-feed article img { width:9rem; aspect-ratio:3/2; object-fit:cover; }
.journal-feed time { font-size:.8rem; }
.journal-feed h3 { font-size:1.5rem; line-height:1.15; margin:.25rem 0; }
@media (max-width:55rem) {
 .masthead-inner { min-height:4.1rem; gap:.45rem; }
 .masthead-wordmark { flex:0 1 10.5rem; }
 .masthead-inner > .masthead-nav { display:none; }
 .masthead-mobile { display:block; }
 .masthead-mobile .hamburger,.masthead-mobile .hamburger::before,.masthead-mobile .hamburger::after { display:block; width:19px; height:2px; background:currentColor; }
 .masthead-mobile .hamburger { position:relative; }
 .masthead-mobile .hamburger::before,.masthead-mobile .hamburger::after { content:''; position:absolute; left:0; }
 .masthead-mobile .hamburger::before { top:-6px; }
 .masthead-mobile .hamburger::after { top:6px; }
 .masthead-mobile nav { position:absolute; z-index:1; top:100%; left:0; width:100%; padding:.5rem var(--gutter) 1rem; display:grid; gap:0; color:#fff; background:#161819; border-bottom:2px solid #bc9556; }
 .masthead-mobile nav a { border-top:1px solid #343433; }
 .masthead-tools { margin-left:auto; gap:.15rem; }
 .masthead-contact { padding:.4rem .7rem; font-size:.84rem; }
 .journal-feed article { flex-wrap:wrap; }
}
@media (max-width:24rem) {
 .masthead-inner { width:calc(100% - 1.25rem); gap:.15rem; }
 .masthead-wordmark { flex-basis:8rem; }
 .masthead-contact { padding-inline:.5rem; }
}
.blog-footer { max-width:69rem; display:flex; gap:1rem 2.5rem; flex-wrap:wrap; align-items:center; justify-content:space-between; padding-block:2.1rem; }
.blog-footer img { width:10.5rem; }
.blog-footer p { margin-top:.6rem; font-size:.8rem; color:#d8d4ca; }
.blog-footer nav { display:flex; flex-wrap:wrap; gap:0 1.35rem; }
.blog-footer nav a { font-weight:600; font-size:.85rem; display:inline-flex; align-items:center; min-height:44px; gap:.3em; }
.blog-footer nav a:hover { color:#f1c988; text-decoration:underline; }
