/*
Theme Name: Augusto Silva Advogados Associados
Theme URI: https://augustosilva.adv.br
Author: Augusto Silva Advogados Associados
Description: Tema institucional da Augusto Silva Advogados Associados, com blog, newsletter e formulário de contato.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: augustosilva
*/

:root {
  --ink: #221F20;
  --paper: #F6F3EE;
  --sand: #ECE6DD;
  --line: #DDD6CC;
  --text: #3A3532;
  --muted: #4A443F;
  --label: #6B6259;
  --soft: #5E5852;
  --on-dark: #EDE8E1;
  --on-dark-muted: #CFC7BC;
  --on-dark-label: #B5ACA1;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, figure { margin: 0; }
a { color: var(--ink); }
a:hover { color: var(--soft); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.sec-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--on-dark); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; padding: 12px 18px; background: var(--ink); color: var(--paper); }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
@media (max-width: 640px) { .wrap { padding-left: 20px; padding-right: 20px; } }

/* Type */
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--label); }
.sec-dark .eyebrow { color: var(--on-dark-label); }
.label { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); }
.display { font-family: var(--serif); font-weight: 400; font-size: clamp(2.5rem, 5.2vw, 4rem); line-height: 1.06; letter-spacing: -.015em; text-wrap: balance; }
.page-title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 4.6vw, 3.5rem); line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; max-width: 880px; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.6vw, 2.75rem); line-height: 1.1; text-wrap: balance; }
.h2-sm { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.25rem); line-height: 1.15; }
.h3 { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; line-height: 1.25; }
.num { font-family: var(--serif); font-size: 18px; color: var(--label); }
.lead { font-size: 18px; line-height: 1.65; color: var(--muted); max-width: 700px; text-wrap: pretty; }
.body-text { font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.sec-dark .body-text { color: var(--on-dark-muted); }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; font-family: var(--sans); font-size: 15px; letter-spacing: .03em; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-dark:hover { background: #3A3532; color: var(--paper); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--on-dark); color: var(--ink); font-weight: 500; }
.btn-light:hover { background: #FFFFFF; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; font-weight: 500; text-decoration: none; }
.link-arrow svg { transition: transform .15s ease; }
.link-arrow:hover svg { transform: translateX(3px); }
.sec-dark .link-arrow { color: var(--on-dark); }

/* Sections */
.sec { padding-top: 88px; padding-bottom: 96px; }
.sec-tight { padding-top: 72px; padding-bottom: 72px; }
.bt { border-top: 1px solid var(--line); }
.sec-sand { background: var(--sand); }
.sec-dark { background: var(--ink); color: var(--on-dark); }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 48px; margin-bottom: 48px; }
.page-hero { padding-top: 88px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 640px) {
  .sec { padding-top: 64px; padding-bottom: 72px; }
  .page-hero { padding-top: 56px; padding-bottom: 48px; }
}

/* Cards */
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px 36px; }
.card-top { border-top: 1px solid var(--ink); padding-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.sec-dark .card-top { border-top-color: #6B6259; }
a.card-top { text-decoration: none; color: var(--ink); }
a.card-top:hover .card-title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.card-title { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; line-height: 1.25; }
.meta { font-size: 14px; color: var(--soft); }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-mono { height: 42px; width: auto; }
.brand-word { height: 38px; width: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 28px; }
.main-nav a { display: inline-block; padding: 12px 0; font-size: 14.5px; letter-spacing: .02em; color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; }
.main-nav a:hover { color: var(--ink); border-bottom-color: var(--line); }
.main-nav a[aria-current="page"] { color: var(--ink); font-weight: 500; border-bottom-color: var(--ink); }
.nav-toggle { display: none; min-height: 44px; min-width: 44px; padding: 0 12px; background: transparent; border: 1px solid var(--ink); color: var(--ink); font-family: var(--sans); font-size: 14px; align-items: center; gap: 8px; cursor: pointer; }
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; }
  .main-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .main-nav a[aria-current="page"] { border-bottom-color: var(--line); }
}
@media (max-width: 420px) { .brand-word { height: 32px; } .brand-mono { height: 36px; } }

/* Home hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px 72px; padding-top: 96px; padding-bottom: 104px; }
.hero-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero-mark { flex: 1 1 340px; display: flex; align-items: center; justify-content: center; background: var(--sand); padding: 64px 40px; }
.hero-mark img { width: 100%; max-width: 300px; }
@media (max-width: 640px) { .hero { padding-top: 56px; padding-bottom: 64px; } .hero-mark { padding: 40px; } }

/* Split layouts */
.split { display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: flex-start; }
.split-side { flex: 1 1 320px; display: flex; flex-direction: column; gap: 20px; }
.split-main { flex: 999 1 520px; min-width: 0; }

/* People */
.person-mini { flex: 1 1 420px; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.person-mini img { width: 168px; height: 210px; object-fit: cover; object-position: 50% 12%; }
.person-mini-body { flex: 1 1 200px; display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.person { border-top: 1px solid var(--ink); padding: 56px 0 72px; display: flex; flex-wrap: wrap; gap: 40px 64px; }
.person-photo { flex: 0 1 320px; min-width: 240px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 12%; }
.person-body { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.person-name { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.4vw, 2.5rem); line-height: 1.1; }
.person-role { font-size: 15px; letter-spacing: .04em; color: var(--label); }
.person-cols { display: flex; flex-wrap: wrap; gap: 28px 48px; }
.person-cols > div { flex: 1 1 260px; display: flex; flex-direction: column; gap: 10px; }
.person-cols ul { padding-left: 18px; font-size: 15.5px; line-height: 1.7; color: var(--text); }
@media (max-width: 560px) { .person-photo { flex-basis: 100%; min-width: 0; } }

/* Prose */
.prose { font-size: 17px; line-height: 1.7; color: var(--text); display: flex; flex-direction: column; gap: 20px; }
.article { max-width: 760px; margin: 0 auto; padding: 72px 32px 88px; display: flex; flex-direction: column; gap: 28px; }
@media (max-width: 640px) { .article { padding: 48px 20px 64px; } }
.crumbs { font-size: 14px; color: var(--soft); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--soft); }
.article-title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4.4vw, 3rem); line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; }
.article-lead { font-size: 20px; line-height: 1.6; color: var(--muted); }
.article-meta { display: flex; flex-direction: column; gap: 2px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.article-meta strong { font-size: 15px; font-weight: 500; }
.entry { font-family: var(--serif); font-size: 20px; line-height: 1.7; color: #2E2A28; }
.entry > * + * { margin-top: 22px; }
.entry h2 { font-weight: 500; font-size: 1.75rem; line-height: 1.25; color: var(--ink); margin-top: 40px; }
.entry h3 { font-weight: 500; font-size: 1.4rem; line-height: 1.3; color: var(--ink); margin-top: 32px; }
.entry ul, .entry ol { padding-left: 24px; }
.entry blockquote { margin: 28px 0; padding-left: 24px; border-left: 2px solid var(--ink); font-style: italic; }
.entry a { text-underline-offset: 3px; }
.entry img, .entry figure { margin-top: 28px; }
.entry figcaption { font-family: var(--sans); font-size: 14px; color: var(--soft); margin-top: 8px; }
.disclaimer { padding: 20px 24px; background: var(--sand); font-size: 14px; line-height: 1.6; color: var(--muted); }

/* Blog */
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 40px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 1px solid #A39A8F; color: var(--ink); text-decoration: none; font-size: 14.5px; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.featured { display: flex; flex-wrap: wrap; text-decoration: none; color: var(--ink); border-top: 1px solid var(--ink); margin-bottom: 56px; }
.featured-mark { flex: 1 1 380px; min-height: 300px; background: var(--sand); display: flex; align-items: center; justify-content: center; padding: 48px; overflow: hidden; }
.featured-mark img.mono { width: 100%; max-width: 200px; }
.featured-mark img.thumb { width: 100%; height: 100%; object-fit: cover; }
.featured-mark.has-thumb { padding: 0; }
.featured-body { flex: 999 1 460px; min-width: 0; padding: 40px 0 40px 48px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.featured-title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 3.2vw, 2.4rem); line-height: 1.12; text-wrap: balance; }
.featured:hover .featured-title { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
@media (max-width: 900px) { .featured-body { padding: 28px 0 8px; } }
.pagination { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 96px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid #A39A8F; text-decoration: none; }
.pagination .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.empty { padding: 32px 0 96px; font-size: 17px; color: var(--muted); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 500; }
.field input, .field textarea { min-height: 48px; padding: 0 14px; border: 1px solid #A39A8F; background: #FFFFFF; font-family: var(--sans); font-size: 16px; color: var(--ink); width: 100%; }
.field textarea { padding: 12px 14px; resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.55; color: var(--muted); font-weight: 400; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-card { background: #FFFFFF; border: 1px solid var(--line); padding: 40px; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 640px) { .form-card { padding: 24px; } }
.form-row { display: flex; flex-wrap: wrap; gap: 20px; }
.form-row > .field { flex: 1 1 220px; }
.notice { padding: 14px 18px; font-size: 15px; line-height: 1.5; }
.notice-ok { background: #E6EFE6; color: #1F3D22; border: 1px solid #A9C4AB; }
.notice-err { background: #F6E3E1; color: #5A1E18; border: 1px solid #D9A9A3; }

.contact-list > div { border-top: 1px solid var(--line); padding: 20px 0 22px; display: flex; flex-direction: column; gap: 6px; }
.contact-list > div:first-child { border-top-color: var(--ink); }
.contact-list > div:last-child { border-bottom: 1px solid var(--line); }
.contact-list .big { font-family: var(--serif); font-size: 1.5rem; text-decoration: none; overflow-wrap: anywhere; }
.map { height: 380px; border: 0; width: 100%; filter: grayscale(1) contrast(1.05); }

/* Areas */
.area-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.areas-sec { scroll-margin-top: 24px; }
.areas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 32px 36px; }
.areas-grid .card-top { padding-top: 18px; gap: 8px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark); }
.footer-inner { padding-top: 64px; padding-bottom: 36px; display: flex; flex-direction: column; gap: 48px; }
.footer-news { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px 64px; padding-bottom: 48px; border-bottom: 1px solid #4A443F; }
.footer-news h2 { font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1.15; color: #FFFFFF; }
.footer-news p { font-size: 15px; line-height: 1.6; color: var(--on-dark-muted); margin-top: 10px; }
.footer-news form { flex: 1 1 460px; display: flex; flex-direction: column; gap: 12px; }
.footer-news label.lbl { font-size: 13px; font-weight: 500; }
.news-row { display: flex; flex-wrap: wrap; gap: 10px; }
.news-row input { flex: 1 1 240px; min-height: 48px; padding: 0 14px; border: 1px solid #6B6259; background: #FFFFFF; color: var(--ink); font-family: var(--sans); font-size: 16px; }
.footer-news .check { color: var(--on-dark-label); font-size: 13px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px 48px; align-items: flex-start; }
.footer-cols > * { flex: 1 1 220px; display: flex; flex-direction: column; gap: 12px; }
.footer-cols .label { color: var(--on-dark-label); }
.footer-cols p, .footer-cols a { font-size: 15px; line-height: 1.7; color: var(--on-dark); }
.footer-cols nav a { text-decoration: none; line-height: 1.9; }
.footer-cols nav a:hover { text-decoration: underline; color: #FFFFFF; }
.footer-logo { width: 132px; }
.footer-legal { border-top: 1px solid #4A443F; padding-top: 24px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.6; color: var(--on-dark-label); }
.footer-legal a { color: var(--on-dark-label); }
.site-footer .notice { margin-top: 4px; }
