/* CZO Advogados — folha de estilo única. Sem dependências externas. */

@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/bodoni-moda-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/bodoni-moda-latin-wght-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy-950: #0d1226;
  --navy-900: #121831;
  --navy-800: #1b2341;
  --navy-700: #283258;
  --ink: #1b2341;
  --text: #2a3150;
  --slate: #566079;
  --line: #d9dde8;
  --mist: #f1f3f8;
  --paper: #ffffff;
  --gold: #c4a46b;
  --wa: #167a43;
  --wa-dark: #0f6334;
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: clamp(20px, 4.5vw, 44px);
  --maxw: 1180px;
  --focus: var(--navy-700);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font: 400 1.0625rem/1.65 var(--sans);
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 4px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Tipografia ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ink); margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 1.25rem + 2.7vw, 3.15rem); line-height: 1.1; letter-spacing: -0.01em; margin-bottom: 0.5em; }
h3 { font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.65rem); line-height: 1.2; margin-bottom: 0.4em; }

.on-dark { --focus: var(--gold); color: #fff; }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7rem;
  padding: 0.9rem 1.5rem; border-radius: 6px; border: 1px solid transparent;
  font: 600 1.02rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn svg { width: 1.35em; height: 1.35em; flex: none; fill: currentColor; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-dark); }
.btn--sm { padding: 0.62rem 1.05rem; font-size: 0.97rem; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--mist); }

.link-quiet { color: inherit; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.link-quiet:hover { text-decoration-thickness: 2px; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy-900); color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  --focus: var(--gold);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.brand { display: block; line-height: 0; }
.brand img { height: 54px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: rgba(255, 255, 255, 0.88); text-decoration: none; font-weight: 500; font-size: 0.99rem; padding: 6px 0; }
.nav a:not(.btn):hover { color: #fff; text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 1px; }

.menu-toggle {
  display: none; width: 46px; height: 46px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px; background: transparent; cursor: pointer; position: relative;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  content: ""; position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; border-radius: 2px;
}
.menu-toggle span { top: 22px; }
.menu-toggle span::before { left: 0; right: 0; top: -7px; }
.menu-toggle span::after { left: 0; right: 0; top: 7px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 939px) {
  .menu-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-900); padding: 8px var(--gutter) 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 15px 0; font-size: 1.12rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .nav .btn { margin-top: 18px; padding: 1rem 1.3rem; }
}

/* ---------- Herói (início) ---------- */
.hero { background: var(--navy-900); position: relative; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1fr; }
.hero__copy { padding-block: clamp(44px, 8vw, 104px) clamp(28px, 4vw, 64px); position: relative; z-index: 2; align-self: center; }
.hero h1 {
  font-size: clamp(2.7rem, 1.3rem + 5vw, 5.1rem);
  line-height: 1.02; letter-spacing: -0.018em; margin-bottom: 0.42em; max-width: 12ch;
}
.hero__lead { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem); color: rgba(255, 255, 255, 0.86); max-width: 34em; margin-bottom: 0; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 2rem; }
.hero__id { margin: 2.4rem 0 0; color: var(--gold); font-size: 1rem; line-height: 1.5; }

.hero__photo { position: relative; align-self: end; min-height: 380px; margin-inline: calc(-1 * var(--gutter)); }
.hero__photo img { width: 100%; height: 100%; max-height: min(118vw, 620px); object-fit: cover; object-position: 50% 4%; }
.hero__photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, var(--navy-900) 0%, rgba(18, 24, 49, 0) 26%),
    linear-gradient(0deg, var(--navy-900) 0%, rgba(18, 24, 49, 0) 10%);
}
@media (min-width: 940px) {
  .hero__inner { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); min-height: min(88vh, 780px); }
  .hero__copy { padding-block: 96px; padding-right: 24px; }
  .hero__photo { min-height: 0; align-self: stretch; margin-inline: 0 calc((min(100vw - 2 * var(--gutter), var(--maxw)) - 100vw) / 2); }
  .hero__photo img { max-height: none; }
  .hero__photo img { position: absolute; inset: 0; object-position: 50% 0; }
  .hero__photo::before {
    background:
      linear-gradient(90deg, var(--navy-900) 0%, rgba(18, 24, 49, 0) 34%),
      linear-gradient(0deg, var(--navy-900) 0%, rgba(18, 24, 49, 0) 8%);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .hero__photo img { animation: photo-in 1.2s ease-out both; }
  @keyframes photo-in { from { opacity: 0; } to { opacity: 1; } }
}

/* ---------- Seções ---------- */
.section { padding-block: clamp(56px, 8vw, 112px); }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy-800); }
.section--deep { background: var(--navy-950); }
.section [id], section[id] { scroll-margin-top: 84px; }

.lead { font-size: 1.15rem; color: var(--slate); max-width: 38em; }
.on-dark .lead { color: rgba(255, 255, 255, 0.8); }

/* Índice de áreas */
.areas { display: grid; gap: clamp(28px, 5vw, 72px); grid-template-columns: 1fr; }
@media (min-width: 960px) {
  .areas { grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.5fr); }
  .areas__intro { position: sticky; top: 108px; align-self: start; }
}
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.index li { border-bottom: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 1fr; gap: 6px 28px; align-items: center;
  padding: 24px 6px; text-decoration: none; color: inherit; transition: background-color 0.15s ease;
}
.row:hover { background: var(--mist); }
.row__title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.55rem, 1.1rem + 1.3vw, 2.15rem); line-height: 1.15; color: var(--ink); }
.row__desc { color: var(--slate); max-width: 46ch; margin: 0; }
.row__go { font-weight: 600; color: var(--ink); font-size: 0.97rem; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; white-space: nowrap; }
@media (min-width: 700px) {
  .row { grid-template-columns: minmax(0, 1fr) auto; }
  .row__title, .row__desc { grid-column: 1; }
  .row__go { grid-column: 2; grid-row: 1 / span 2; }
}

/* Etapas (sequência real) */
.steps { display: grid; grid-template-columns: 1fr; gap: 36px; margin-top: 2.4rem; list-style: none; padding: 0; counter-reset: etapa; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; } }
.step { border-top: 1px solid var(--ink); padding-top: 18px; counter-increment: etapa; }
.step::before { content: counter(etapa); display: block; font-family: var(--serif); font-size: 3.6rem; line-height: 1; color: var(--navy-700); margin-bottom: 0.25em; }
.step p { color: var(--slate); margin: 0; }
.note { margin-top: 2.6rem; padding: 20px 24px; border-left: 3px solid var(--ink); background: #fff; max-width: 70ch; color: var(--text); }
.note p:last-child { margin-bottom: 0; }

/* Quem atende */
.about { display: grid; gap: clamp(28px, 5vw, 80px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }
.about__photo { max-width: 460px; width: 100%; }
.about__photo img { border-radius: 4px; width: 100%; aspect-ratio: 700 / 888; object-fit: cover; }
.about__role { color: var(--gold); margin: -0.2em 0 1.4rem; font-size: 1.05rem; }
.about p { max-width: 38em; color: rgba(255, 255, 255, 0.88); }
.creds { margin: 2rem 0 0; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.creds div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.creds dt { color: var(--gold); font-size: 0.97rem; }
.creds dd { margin: 0; color: #fff; }
@media (max-width: 520px) { .creds div { grid-template-columns: 1fr; gap: 2px; } }

/* Perguntas */
.faq { max-width: 820px; margin-top: 2rem; border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 22px 48px 22px 0; font-weight: 600; font-size: 1.12rem; line-height: 1.4; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 400 1.9rem/1 var(--serif); color: var(--navy-700); }
.faq details[open] summary::after { content: "\2212"; }
.faq__a { padding: 0 48px 24px 0; color: var(--slate); max-width: 68ch; }
.faq__a p:last-child { margin-bottom: 0; }

/* Contato */
.contact { display: grid; gap: clamp(32px, 5vw, 80px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.contact__list { margin: 0; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.contact__list div { display: grid; grid-template-columns: 8rem 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.contact__list dt { color: var(--gold); }
.contact__list dd { margin: 0; color: #fff; overflow-wrap: anywhere; }
.contact__list a { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
@media (max-width: 520px) { .contact__list div { grid-template-columns: 1fr; gap: 2px; } }
.contact__side { display: grid; gap: 24px; }
.contact__map { border-radius: 6px; overflow: hidden; background: var(--navy-800); border: 1px solid rgba(255, 255, 255, 0.14); }
.contact__map iframe { display: block; width: 100%; height: clamp(240px, 26vw, 300px); border: 0; }
.contact__hint { margin: 1rem 0 0; font-size: 0.97rem; color: rgba(255, 255, 255, 0.72); max-width: 34em; }

/* ---------- Páginas de área ---------- */
.page-hero { background: var(--navy-900); padding-block: clamp(40px, 6vw, 84px) clamp(40px, 6vw, 80px); }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 1.8rem; padding: 0; font-size: 0.97rem; color: rgba(255, 255, 255, 0.72); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: rgba(255, 255, 255, 0.4); }
.crumbs a { text-underline-offset: 4px; }
.page-hero h1 { font-size: clamp(2.2rem, 1.2rem + 3.8vw, 4rem); line-height: 1.06; letter-spacing: -0.015em; max-width: 20ch; margin-bottom: 0.45em; }
.page-hero__lead { font-size: clamp(1.08rem, 1rem + 0.4vw, 1.25rem); color: rgba(255, 255, 255, 0.86); max-width: 38em; margin-bottom: 0; }
.page-hero .hero__actions { margin-top: 1.9rem; }
.page-hero__hint { margin: 1.1rem 0 0; font-size: 0.97rem; color: rgba(255, 255, 255, 0.72); }

.page-layout { display: grid; gap: 56px; grid-template-columns: 1fr; padding-block: clamp(48px, 7vw, 96px); }
@media (min-width: 1000px) {
  .page-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 80px; align-items: start; }
  .aside { position: sticky; top: 100px; }
}
.prose > section + section { margin-top: clamp(40px, 6vw, 72px); }
.prose h2 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.45rem); }
.prose p { max-width: 62ch; }
.ruled { list-style: none; margin: 1.2rem 0 0; padding: 0; border-top: 1px solid var(--ink); }
.ruled li { padding: 15px 0; border-bottom: 1px solid var(--line); }
.know { display: grid; gap: 30px; margin-top: 1.4rem; }
.know h3 { margin-bottom: 0.3em; }
.know p { margin: 0; color: var(--slate); }
.callout { background: var(--navy-800); border-left: 4px solid var(--gold); padding: clamp(22px, 4vw, 34px); border-radius: 0 4px 4px 0; }
.callout h2, .callout h3 { color: #fff; }
.callout p { color: rgba(255, 255, 255, 0.88); max-width: 60ch; }
.callout p:last-child { margin-bottom: 0; }
.callout a { text-underline-offset: 4px; }

.aside-card { border: 1px solid var(--line); border-radius: 6px; padding: 24px; background: #fff; }
.aside-card img { border-radius: 4px; width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: 18px; }
.aside-card h2 { font-size: 1.6rem; margin-bottom: 0.1em; }
.aside-card__oab { color: var(--slate); margin: 0 0 1.2rem; font-size: 0.99rem; }
.aside-card .btn { width: 100%; }
.aside-card__mail { margin: 1rem 0 0; font-size: 0.99rem; overflow-wrap: anywhere; }
.aside-card__mail a { text-underline-offset: 4px; }

.cta-band { background: var(--navy-800); padding-block: clamp(48px, 7vw, 88px); }
.cta-band .container { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) { .cta-band .container { grid-template-columns: minmax(0, 1fr) auto; } }
.cta-band h2 { margin: 0 0 0.3em; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); }
.cta-band p { margin: 0; color: rgba(255, 255, 255, 0.82); max-width: 40em; }

/* ---------- Texto jurídico (privacidade) ---------- */
.legal { max-width: 760px; padding-block: clamp(40px, 6vw, 80px); }
.legal h2 { font-size: clamp(1.45rem, 1.1rem + 1.1vw, 1.9rem); margin: 2.2em 0 0.5em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 0.4em; }
.legal a { text-underline-offset: 4px; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, 0.76); padding-block: 52px 40px; font-size: 0.97rem; --focus: var(--gold); }
.site-footer .container { display: grid; gap: 32px 56px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .site-footer .container { grid-template-columns: auto minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; } }
.site-footer img { height: 96px; width: auto; }
.site-footer p { margin: 0 0 0.7em; max-width: 52ch; }
.site-footer strong { color: #fff; font-weight: 600; }
.site-footer a { text-underline-offset: 4px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-legal { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 24px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.62); }
.footer-legal p { max-width: 90ch; margin: 0 0 0.6em; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; z-index: 60;
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  transition: background-color 0.15s ease; --focus: #fff;
}
.wa-float:hover { background: var(--wa-dark); }
.wa-float:focus-visible { outline: 3px solid #fff; box-shadow: 0 0 0 6px var(--navy-700); }
.wa-float svg { width: 32px; height: 32px; fill: currentColor; }

/* ---------- 404 ---------- */
.nf { padding-block: clamp(72px, 12vw, 160px); }
.nf p { max-width: 36em; color: rgba(255, 255, 255, 0.84); }
