/* Amorim Abraão Advogados — estilos
   Paleta extraída do logo: grafite (#231F20) + dourado champanhe (#E8C88B) + creme (#FCF3E1). */

:root {
  --ink: #1c1a1b;
  --ink-2: #2a2627;
  --text: #3a3536;
  --muted: #5f5859;
  --line: #e7e1d7;
  --line-dark: rgba(232, 200, 139, .22);
  --paper: #ffffff;
  --cream: #faf6ee;
  --cream-2: #f4ecdd;
  --gold: #e8c88b;        /* decorativo e texto sobre fundo escuro */
  --gold-deep: #806229;   /* texto dourado sobre fundo claro (contraste AA) */
  --wa: #1f7a4d;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1320px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(48px, 5.5vw, 84px);
  --header-h: 100px;
  --radius: 2px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--cream); text-decoration: none; }
.skip-link:focus { top: 12px; }

.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Tipografia ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .75rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section-title {
  font-family: var(--serif); font-weight: 500; color: var(--ink);
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.25rem); line-height: 1.1; letter-spacing: -.01em;
  max-width: 18ch; text-wrap: balance;
}
.section-lead { color: var(--muted); max-width: 46ch; font-size: 1.0625rem; }
.card-title { font-family: var(--serif); font-weight: 600; color: var(--ink); font-size: 1.5rem; line-height: 1.2; }
.lead { font-family: var(--serif); font-size: clamp(1.35rem, 1.1rem + .8vw, 1.7rem); line-height: 1.4; color: var(--ink); }
em { font-style: italic; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border: 1px solid transparent; border-radius: var(--radius);
  font-size: .9375rem; font-weight: 500; letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-sm { min-height: 42px; padding: 9px 18px; font-size: .875rem; }
.btn-lg { min-height: 54px; padding: 14px 28px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--ink-2); color: var(--gold); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #f1d7a4; }
.btn-ghost-light { border-color: rgba(250, 246, 238, .45); color: var(--cream); }
.btn-ghost-light:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .96); border-bottom: 1px solid transparent;
  transition: height .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255, 255, 255, .88); backdrop-filter: blur(10px); } }
.site-header.is-scrolled { height: 80px; border-color: var(--line); box-shadow: 0 6px 24px rgba(28, 26, 27, .04); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { flex: none; }
.brand-logo { width: auto; height: 84px; transition: height .3s var(--ease); }
.is-scrolled .brand-logo { height: 64px; }
.nav { margin-left: auto; }
.nav-list { display: flex; gap: 32px; }
.nav-link {
  position: relative; display: inline-block; padding: 6px 0;
  font-size: .875rem; font-weight: 500; color: var(--ink); text-decoration: none; letter-spacing: .02em;
}
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold-deep); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 24px; }
.nav-mobile-extra, .menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + clamp(40px, 5.5vw, 88px)) 0 clamp(40px, 5vw, 64px); background: var(--cream); overflow: hidden; }
.hero-lines {
  position: absolute; right: -6vw; top: 14%; width: min(46vw, 620px); aspect-ratio: 3 / 4;
  border: 1px solid var(--line-dark); border-bottom: 0; border-radius: 50% 50% 0 0 / 38% 38% 0 0;
  pointer-events: none;
}
.hero-lines::after { content: ""; position: absolute; inset: 28px 28px 0; border: 1px solid var(--line-dark); border-bottom: 0; border-radius: inherit; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: end; }
.hero-title {
  font-family: var(--serif); font-weight: 500; color: var(--ink);
  font-size: clamp(2.9rem, 1.4rem + 5.6vw, 6rem); line-height: .98; letter-spacing: -.015em;
}
.hero-title em { display: block; color: var(--gold-deep); font-weight: 500; }
.hero-lead { margin-top: 28px; max-width: 40ch; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--text); }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-panel { border-top: 1px solid var(--ink); padding-top: 8px; }
.hero-facts > div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.hero-facts dt { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); font-weight: 500; }
.hero-facts dd { margin-top: 4px; font-family: var(--serif); font-size: 1.3rem; line-height: 1.35; color: var(--ink); }
.hero-areas {
  position: relative; margin-top: clamp(40px, 5vw, 72px); padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 0;
}
.hero-areas li + li::before { content: "·"; margin: 0 14px; color: var(--gold-deep); }
.hero-areas a { font-size: .875rem; color: var(--muted); text-decoration: none; }
.hero-areas a:hover { color: var(--ink); }

/* ---------- Seções ---------- */
.section { padding: var(--section) 0; }
.section-head .section-title { max-width: 22ch; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 64px; flex-wrap: wrap; margin-bottom: clamp(36px, 4.5vw, 60px); }

/* O Escritório */
.office-head { margin-bottom: clamp(36px, 4.5vw, 60px); }
/* título em uma linha no desktop; em telas menores quebra de forma equilibrada */
.office-title { max-width: none; }
/* foto e texto lado a lado, centralizados na mesma altura */
.office-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.office-photo { margin: 0; }
.office-photo img { width: 100%; border-radius: var(--radius); }
.office-photo figcaption { margin-top: 12px; font-size: .75rem; color: var(--muted); letter-spacing: .02em; }
.office-copy { display: grid; gap: 22px; }
.office-copy > p:not(.lead) { color: var(--text); max-width: 60ch; }

/* Áreas */
.areas { background: var(--cream); }
.areas-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.area-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: clamp(28px, 3vw, 40px); background: var(--cream);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background-color .35s var(--ease);
}
.area-card:hover { background: var(--paper); }
.area-num { position: absolute; top: clamp(28px, 3vw, 40px); right: clamp(28px, 3vw, 40px); font-family: var(--serif); font-size: 1rem; color: var(--gold-deep); }
.area-icon { width: 32px; height: 32px; color: var(--gold-deep); stroke-width: 1.1; margin-bottom: 18px; }
.area-card p { color: var(--muted); font-size: .9375rem; flex: 1; }
.more { margin-top: 6px; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 0; font-size: .875rem; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--gold); }
.more .icon { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.more:hover .icon { transform: rotate(90deg); }

/* Imprensa */
.press-list { border-top: 1px solid var(--ink); }
.press-list li { border-bottom: 1px solid var(--line); }
.press-item { display: grid; grid-template-columns: 170px 110px minmax(0, 1fr) auto; align-items: baseline; gap: 8px 32px; padding: 24px 0; text-decoration: none; color: var(--ink); }
.press-source { font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.press-item time { font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.press-title { font-family: var(--serif); font-size: 1.35rem; line-height: 1.3; transition: color .2s; }
.press-more { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; color: var(--muted); white-space: nowrap; }
.press-more .icon { width: 13px; height: 13px; }
.press-item:hover .press-title { color: var(--gold-deep); }
.press-item:hover .press-more { color: var(--ink); }

/* Compromissos */
.values { background: var(--ink); color: rgba(250, 246, 238, .78); }
.values .eyebrow { color: var(--gold); }
.values .section-title, .values .card-title { color: var(--cream); }
.values-head { margin-bottom: clamp(36px, 4.5vw, 56px); }
.values-head .section-title { max-width: none; }
/* 4 compromissos em uma linha, separados por linhas finas; 2x2 no tablet; 1 coluna no celular */
.values-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); }
.values-list li { padding: 32px clamp(20px, 2.4vw, 36px) 8px; border-left: 1px solid var(--line-dark); }
.values-list li:first-child { padding-left: 0; border-left: 0; }
.value-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 22px; border: 1px solid rgba(232, 200, 139, .45); border-radius: 50%; color: var(--gold); }
.value-icon .icon { width: 22px; height: 22px; stroke-width: 1.25; }
.values-list p { margin-top: 10px; font-size: .9375rem; line-height: 1.65; }

/* Notícias dos tribunais */
.courts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 5vw, 72px); }
.court-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--ink); }
.court-title { font-family: var(--serif); font-weight: 600; font-size: 1.9rem; line-height: 1; color: var(--ink); }
.court-title span { display: block; margin-top: 8px; font-family: var(--sans); font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.court-all { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: .8125rem; color: var(--muted); text-decoration: none; white-space: nowrap; }
.court-all:hover { color: var(--ink); }
.court-all .icon { width: 13px; height: 13px; }
.court-list li { border-bottom: 1px solid var(--line); }
.court-list a { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 16px 0; text-decoration: none; color: var(--ink); transition: color .2s; }
.court-list a:hover span { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.court-list time { padding-top: 2px; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.court-list span { font-size: .9375rem; line-height: 1.5; }
.court-skel { height: 76px; background: linear-gradient(90deg, var(--cream) 0%, var(--cream-2) 50%, var(--cream) 100%) 0 0 / 200% 100%; border-bottom: 4px solid var(--paper) !important; animation: skel 1.4s linear infinite; }
@keyframes skel { to { background-position: -200% 0; } }
.court-empty { padding: 20px 0; font-size: .9375rem; color: var(--muted); }
/* o link herdava o grid das linhas de notícia (.court-list a) e quebrava em pedaços */
.court-empty a { display: inline; padding: 0; color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }
.court-source { grid-column: 1 / -1; margin-top: 16px; font-size: .75rem; color: var(--muted); }

/* Faixa CTA */
.cta-band {
  position: relative; overflow: hidden; color: var(--cream); padding: clamp(56px, 7vw, 104px) 0;
  background:
    linear-gradient(90deg, rgba(28, 26, 27, .9) 0%, rgba(28, 26, 27, .8) 28%, rgba(28, 26, 27, .38) 50%, rgba(28, 26, 27, .72) 72%, rgba(28, 26, 27, .84) 100%),
    url("../img/corcovado.webp?v=4") 50% 22% / cover no-repeat,
    var(--ink-2);
}
@supports (filter: grayscale(1)) {
  /* foto em tons neutros para manter a paleta grafite + dourado */
  .cta-band { background: var(--ink-2); }
  /* a foto nunca é ampliada além do tamanho real (1254px): fica centralizada e
     as laterais se fundem no grafite, evitando a perda de nitidez em telas largas */
  .cta-band::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: min(100%, 1254px); transform: translateX(-50%);
    background: url("../img/corcovado.webp?v=4") 50% 22% / cover no-repeat;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  }
  .cta-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(28, 26, 27, .9) 0%, rgba(28, 26, 27, .78) 28%, rgba(28, 26, 27, .34) 50%, rgba(28, 26, 27, .7) 72%, rgba(28, 26, 27, .84) 100%); }
  @media (max-width: 760px) {
    .cta-band::before { -webkit-mask-image: none; mask-image: none; }
    /* no celular o texto ocupa a faixa inteira: camada uniforme para manter a leitura */
    .cta-band::after { background: rgba(28, 26, 27, .7); }
  }
}
.cta-inner { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 32px 48px; flex-wrap: wrap; }
.cta-title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 1.2rem + 2.2vw, 2.9rem); line-height: 1.15; max-width: 20ch; }
.cta-title em { color: var(--gold); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Contato */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-list { margin-top: 4px; border-top: 1px solid var(--line); }
.contact-list li { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list .icon { width: 20px; height: 20px; margin-top: 4px; color: var(--gold-deep); }
.contact-list .label { display: block; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-list a, .contact-list address, .contact-list li > div > span:not(.label) { color: var(--ink); font-size: 1rem; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }
.g-rating { display: inline-flex; align-items: center; gap: 14px; margin-top: 32px; padding: 14px 18px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .25s; }
.g-rating:hover { border-color: var(--ink); }
.g-score { font-family: var(--serif); font-size: 2rem; font-weight: 600; line-height: 1; }
.g-body { display: grid; gap: 4px; }
.g-stars { display: flex; gap: 2px; color: #b8892e; }
.g-stars .icon { width: 14px; height: 14px; }
.g-text { font-size: .8125rem; color: var(--muted); }
.g-arrow { width: 14px; height: 14px; color: var(--muted); margin-left: 6px; }
.social { display: flex; gap: 10px; margin-top: 24px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); transition: border-color .25s, color .25s, background-color .25s; }
.social a:hover { border-color: var(--ink); background: var(--ink); color: var(--gold); }
.social .icon { width: 18px; height: 18px; }
.map { position: relative; align-self: center; height: clamp(360px, 36vw, 500px); background: var(--cream); border: 1px solid var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }
.map-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 32px; text-align: center; }
.map-placeholder > .icon { width: 36px; height: 36px; color: var(--gold-deep); stroke-width: 1.1; }
.map-placeholder p { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); }
.map-ext { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; color: var(--ink); }
.map-ext .icon { width: 14px; height: 14px; }
.map-placeholder small { font-size: .75rem; color: var(--muted); max-width: 34ch; }
.map.is-loaded .map-placeholder { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(250, 246, 238, .72); padding: clamp(56px, 6vw, 80px) 0 0; font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 48px; padding-bottom: 56px; }
/* brasão centralizado sobre o nome, como no logo */
.footer-brand { display: flex; flex-direction: column; align-items: center; width: fit-content; text-align: center; }
.footer-brand img { width: 64px; height: auto; }
.footer-name { margin-top: 18px; font-family: var(--serif); font-size: 1.6rem; letter-spacing: .06em; text-transform: uppercase; color: var(--cream); line-height: 1.1; }
.footer-name span { display: block; margin-top: 6px; margin-right: -.32em; font-family: var(--sans); font-size: .75rem; letter-spacing: .32em; color: var(--gold); }
.footer-title { font-family: var(--sans); font-size: .75rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0 0 18px; }
.site-footer ul:not(.social) { display: grid; gap: 10px; }
.site-footer a, .site-footer button { color: rgba(250, 246, 238, .72); text-decoration: none; text-align: left; transition: color .2s; }
.site-footer a:hover, .site-footer button:hover { color: var(--gold); }
.footer-contact { overflow-wrap: anywhere; }
.social--footer a { border-color: var(--line-dark); color: var(--cream); }
.social--footer a:hover { background: transparent; border-color: var(--gold); color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; padding-top: 28px; padding-bottom: 28px; border-top: 1px solid var(--line-dark); font-size: .8125rem; }
.footer-bottom ul { display: flex !important; flex-wrap: wrap; gap: 8px 24px !important; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff;
  box-shadow: 0 10px 28px rgba(28, 26, 27, .22);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float .icon { width: 28px; height: 28px; }
.wa-float:hover { background: #18643f; }

/* ---------- Banner de cookies ---------- */
.cookie {
  position: fixed; left: 20px; bottom: 20px; z-index: 60; max-width: 460px; padding: 22px 24px;
  background: var(--paper); border: 1px solid var(--line); border-top: 2px solid var(--gold);
  box-shadow: 0 18px 50px rgba(28, 26, 27, .14); font-size: .875rem; line-height: 1.6;
}
.cookie[hidden] { display: none; }
.cookie a { color: var(--gold-deep); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* ---------- Modal ---------- */
.modal {
  overflow: hidden;
  width: min(640px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-top: 2px solid var(--gold);
  background: var(--paper); color: var(--text); box-shadow: 0 30px 80px rgba(28, 26, 27, .25);
}
.modal::backdrop { background: rgba(28, 26, 27, .55); }
.modal[open] { display: flex; flex-direction: column; animation: modal-in .35s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px); } }
/* o conteúdo rola por dentro; o botão de fechar fica fixo no canto do diálogo */
.modal-inner { overflow-y: auto; overscroll-behavior: contain; padding: clamp(32px, 5vw, 52px); }
.modal-inner > p:not(.eyebrow) { font-size: .9688rem; line-height: 1.7; }
.modal-inner > p:not(.eyebrow) + p { margin-top: 14px; }
.modal-inner > .btn { margin-top: 32px; }
.modal-close { position: absolute; z-index: 1; top: 12px; right: 12px; background: var(--paper); border-radius: 50%; display: grid; place-items: center; width: 44px; height: 44px; color: var(--ink); }
.modal-close:hover { color: var(--gold-deep); }
.modal-title { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 1.5rem + 1.6vw, 2.6rem); line-height: 1.1; color: var(--ink); margin-bottom: 16px; }
.modal-list { margin: 20px 0 24px; border-top: 1px solid var(--line); }
.modal-list li { position: relative; padding: 11px 0 11px 22px; border-bottom: 1px solid var(--line); font-size: .9375rem; color: var(--ink); }
.modal-list li::before { content: ""; position: absolute; left: 0; top: 1.45em; width: 10px; height: 1px; background: var(--gold-deep); }
body.modal-open { overflow: hidden; }

/* ---------- Páginas internas ---------- */
.page-hero { padding: calc(var(--header-h) + clamp(56px, 7vw, 96px)) 0 clamp(40px, 5vw, 64px); background: var(--cream); }
.page-hero .section-title { max-width: 24ch; }
.page-hero .meta { margin-top: 16px; font-size: .875rem; color: var(--muted); }
.prose { max-width: 72ch; padding-top: clamp(48px, 6vw, 80px); padding-bottom: var(--section); }
.prose h2 { font-family: var(--serif); font-weight: 600; font-size: 1.75rem; color: var(--ink); margin: 48px 0 14px; line-height: 1.2; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1rem; color: var(--ink); margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose ol { list-style: decimal; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--gold-deep); }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px; font-size: .875rem; color: var(--muted); text-decoration: none; }
.back-link .icon { transform: rotate(180deg); }
.back-link:hover { color: var(--ink); }
.show-edit [data-edit] { outline: 2px dashed #c0392b; outline-offset: 2px; }

/* ---------- Animações de entrada (discretas) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .nav-list { gap: 22px; }
  .areas-grid { grid-template-columns: 1fr 1fr; }
  .values-list { grid-template-columns: 1fr 1fr; }
  .values-list li { padding: 32px 32px 28px 0; border-left: 0; }
  .values-list li:nth-child(even) { padding: 32px 0 28px 32px; border-left: 1px solid var(--line-dark); }
  .values-list li:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  /* tablet/notebook pequeno: marca centralizada numa linha própria, 3 colunas iguais abaixo */
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
  .footer-brand { grid-column: 1 / -1; justify-self: center; padding-bottom: 32px; border-bottom: 1px solid var(--line-dark); width: 100%; }
}

@media (max-width: 960px) {
  :root { --header-h: 76px; }
  /* backdrop-filter cria um novo bloco de contenção e prenderia o menu fixo dentro do header */
  .site-header { background: var(--paper); backdrop-filter: none; }
  .site-header.is-scrolled { height: var(--header-h); }
  .brand-logo, .is-scrolled .brand-logo { height: 60px; }
  .header-actions { display: none; }
  .menu-toggle { display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto; color: var(--ink); }
  .menu-toggle .icon { width: 26px; height: 26px; }
  .menu-toggle .icon-close, .menu-open .menu-toggle .icon-open { display: none; }
  .menu-open .menu-toggle .icon-close { display: block; }
  .nav { position: fixed; inset: var(--header-h) 0 0; background: var(--paper); padding: 24px var(--gutter) 40px; overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity .3s var(--ease), visibility .3s; }
  .menu-open .nav { visibility: visible; opacity: 1; }
  .menu-open { overflow: hidden; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-link { display: block; padding: 16px 0; font-family: var(--serif); font-size: 1.6rem; font-weight: 500; border-bottom: 1px solid var(--line); }
  .nav-link::after { display: none; }
  .nav-mobile-extra { display: grid; gap: 20px; margin-top: 32px; justify-items: center; }
  .hero-grid, .office-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { align-items: start; }
  .hero-lines { width: 80vw; right: -30vw; opacity: .7; }
  .courts { grid-template-columns: 1fr; gap: 48px; }
  .press-item { grid-template-columns: auto 1fr; }
  .press-title, .press-more { grid-column: 1 / -1; }
  .map { height: 360px; }
  /* tablet: navegação e áreas lado a lado; contato em linha inteira (o e-mail não quebra) */
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .areas-grid, .values-list { grid-template-columns: 1fr; }
  .values-list li, .values-list li:nth-child(even) { padding: 28px 0; border-left: 0; }
  .values-list li + li { border-top: 1px solid var(--line-dark); }
  /* rodapé: marca e contato em largura total; navegação e áreas lado a lado (evita um bloco escuro muito alto) */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; padding-bottom: 40px; }
  .footer-brand, .footer-grid > div:last-child { grid-column: 1 / -1; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .cta-actions { width: 100%; }
  .hero-areas li + li::before { margin: 0 10px; }
  .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .wa-float { right: 16px; bottom: 16px; }
}
