/* SR Advocacia — estilos do site.
   Design original da landing page, sem os cartões e efeitos genéricos.
   Sem estilos inline: a política de segurança (CSP) só aceita este arquivo. */

@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope.woff2") format("woff2");
  font-weight: 400 800; font-style: normal; font-display: swap;
}

:root {
  --navy: #0a1730;
  --navy-deep: #08142a;
  --ink: #0c1a2e;
  --text: #3d4757;
  --muted: #4a5669;
  --soft: #5b6678;
  --blue: #1a4fc4;
  --blue-dark: #123e9e;
  --sky: #8db4ff;
  --mist: #f4f6f9;
  --line: #dfe4ec;
  --on-dark: #f2f5fa;
  --on-dark-2: #c3ccda;
  --on-dark-3: #aeb9cc;
  --wa: #2e4d3e;
  --wa-hover: #3a6150;
  --red: #e0464f;

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(64px, 8vw, 112px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: #fff; color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--sky); }

.serif { font-family: var(--serif); font-weight: 400; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: #fff; color: var(--ink); padding: 12px 18px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.ico { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 1px solid transparent; border-radius: 999px;
  font: 700 16px/1.2 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn img { flex: none; }
.btn-wa { background: var(--wa); color: #fff; border-color: rgba(255, 255, 255, .16); }
.btn-wa:hover { background: var(--wa-hover); color: #fff; }
.btn-ghost-dark { background: transparent; color: var(--on-dark); border-color: rgba(255, 255, 255, .3); }
.btn-ghost-dark:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-outline { background: #fff; color: var(--blue); border-color: #c9d4e4; }
.btn-outline:hover { background: #eef3fc; border-color: var(--blue); color: var(--blue-dark); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }

/* ---------- Rótulo de seção ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.on-dark .eyebrow { color: var(--sky); }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 23, 48, .94);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; color: var(--on-dark); text-decoration: none; margin-right: auto; }
.brand img { width: 44px; height: 44px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name strong { font-size: 16px; font-weight: 800; letter-spacing: .02em; color: var(--on-dark); }
.brand-name span { font-size: 12.5px; font-weight: 500; color: var(--on-dark-3); }
.brand:hover { color: #fff; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: #c9d3e3; text-decoration: none; font-weight: 600; font-size: 15px; padding: 12px 2px; }
.nav a:hover { color: #fff; }
.menu-btn { display: none; }

@media (max-width: 1100px) {
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 999px; cursor: pointer;
    background: transparent; color: var(--on-dark); border: 1px solid rgba(255, 255, 255, .3);
  }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); border-bottom: 1px solid rgba(255, 255, 255, .08);
    padding: 4px var(--gutter) 16px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
}
@media (max-width: 900px) {
  .header-cta .label-long { display: none; }
}
@media (min-width: 901px) {
  .header-cta .label-short { display: none; }
}
@media (max-width: 560px) {
  .header-row { gap: 10px; }
  .brand-name span { display: none; }
  .brand-name strong { white-space: nowrap; }
  .header-cta .label-short { display: none; }
  .header-cta { width: 44px; padding: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--on-dark);
  background: radial-gradient(70% 60% at 25% 40%, rgba(26, 79, 196, .24) 0%, rgba(10, 23, 48, 0) 70%), var(--navy);
}
.hero-inner { position: relative; padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 5vw, 64px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 4vw, 56px); }
.hero-text { order: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero-text h1 { font-size: clamp(40px, 4.2vw, 60px); line-height: 1.04; letter-spacing: -.015em; color: var(--on-dark); }
.hero-text h1 em { font-style: italic; color: var(--sky); }
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04);
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #c9d3e3;
}
.hero-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.hero-lead { max-width: 600px; font-size: clamp(17px, 1.3vw, 19px); color: var(--on-dark-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; width: 100%; }

.hero-photo { order: 1; position: relative; height: clamp(460px, 50vw, 700px); }
.hero-photo::before {
  content: ""; position: absolute; left: 50%; top: 4%; width: 96%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(26, 79, 196, .55) 0%, rgba(26, 79, 196, .16) 45%, rgba(10, 23, 48, 0) 70%);
}
.hero-photo::after {
  content: ""; position: absolute; left: 50%; top: 9%; width: 78%; aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .1);
}
.hero-photo img {
  position: absolute; z-index: 1; bottom: 0; left: 50%; transform: translateX(-50%);
  height: 100%; width: auto; max-width: none;
}
.badge {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; border-radius: 16px;
  background: rgba(15, 31, 61, .82); border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6);
}
.badge-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(141, 180, 255, .14); color: var(--sky); }
.badge strong { display: block; font-size: 15px; font-weight: 800; line-height: 1.3; color: var(--on-dark); }
.badge span.badge-sub { display: block; font-size: 13px; line-height: 1.3; color: var(--on-dark-3); }
.badge-oab { left: 0; bottom: 12%; }
.badge-place { right: 0; top: 38%; }

.legal { margin-top: clamp(40px, 6vw, 72px); padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, .1); }
.legal-title { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
.legal-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 24px 36px;
  margin: 20px 0 0; padding: 0; list-style: none;
}
.legal-list li { display: flex; gap: 14px; align-items: flex-start; }
.legal-list li::before { content: "§"; font-family: var(--serif); font-size: 32px; line-height: 1; color: var(--sky); }
.legal-list strong { display: block; font-size: 15px; font-weight: 800; color: var(--on-dark); }
.legal-list span { display: block; margin-top: 4px; font-size: 15px; line-height: 1.55; color: var(--on-dark-3); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-text { order: 1; }
  .hero-photo { order: 2; height: clamp(420px, 110vw, 560px); }
}
@media (max-width: 560px) {
  .badge-place { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Seções ---------- */
.section { padding: var(--section) 0; }
.section-mist { background: var(--mist); }
.section-head { max-width: 760px; }
.section-head h2 { margin-top: 16px; font-size: clamp(34px, 3.6vw, 52px); line-height: 1.08; letter-spacing: -.01em; color: var(--ink); }
.section-head p { margin-top: 20px; font-size: clamp(16px, 1.2vw, 18px); color: var(--muted); }

/* Como a assessoria atua: sequência de 4 etapas, sem cartões */
.steps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px;
  margin: 56px 0 0; padding: 0; list-style: none; counter-reset: step;
}
.steps li { counter-increment: step; padding-top: 24px; border-top: 2px solid var(--line); }
.steps li::before { content: "0" counter(step); display: block; font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--blue); }
.steps h3 { margin-top: 16px; font-size: 19px; line-height: 1.3; font-weight: 800; color: var(--ink); }
.steps p { margin-top: 8px; font-size: 15.5px; color: var(--muted); }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; gap: 32px; } }

/* Serviços: lista em colunas, sem cartões */
.services {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 48px;
  margin: 48px 0 0; padding: 0; list-style: none;
}
.service { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 4px 16px; padding: 28px 0; border-top: 1px solid #d3dae5; }
.service .ico { grid-row: span 2; width: 26px; height: 26px; margin-top: 2px; color: var(--blue); }
.service h3 { font-size: 19px; line-height: 1.3; font-weight: 800; color: var(--ink); }
.service p { font-size: 15.5px; color: var(--muted); }
@media (max-width: 980px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .services { grid-template-columns: 1fr; } }

/* Sobre */
.about { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(36px, 6vw, 80px); }
.about-photo { position: relative; flex: 0 1 460px; width: 100%; max-width: 480px; margin: 0 auto; height: clamp(440px, 44vw, 600px); }
.about-photo::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80%; border-radius: 28px; background: #e1e8f2; }
.about-photo::after { content: ""; position: absolute; left: 50%; top: 2%; width: 72%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; border: 1px solid #c9d4e4; }
.about-photo img { position: absolute; z-index: 1; bottom: 0; left: 50%; transform: translateX(-50%); height: 100%; width: auto; max-width: none; }
.years {
  position: absolute; z-index: 2; right: 16px; bottom: 20px; display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 20px 40px -24px rgba(12, 26, 46, .45);
}
.years strong { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1; color: var(--blue); }
.years span { font-size: 14px; line-height: 1.3; font-weight: 700; color: var(--ink); max-width: 6em; }
.about-body { flex: 1 1 520px; min-width: 0; }
.about-body h2 { margin-top: 16px; font-size: clamp(34px, 3.6vw, 52px); line-height: 1.08; letter-spacing: -.01em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.chips li { padding: 6px 12px; border-radius: 999px; background: var(--mist); border: 1px solid var(--line); font-size: 13.5px; font-weight: 700; color: var(--text); }
.about-bio { margin-top: 24px; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.65; color: var(--text); }
.points { margin: 32px 0 0; padding: 0; list-style: none; display: grid; gap: 20px; }
.points li { display: flex; gap: 16px; align-items: flex-start; }
.point-icon { flex: 0 0 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #eaf0fc; color: var(--blue); }
.points strong { display: block; font-size: 17px; font-weight: 800; color: var(--ink); }
.points span.point-text { display: block; margin-top: 2px; font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.about-actions { margin-top: 36px; }

/* Empresa parceira */
.partner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px;
  padding: clamp(24px, 3vw, 36px) clamp(24px, 4vw, 48px); border-radius: 24px; background: #fff; border: 1px solid var(--line);
}
.partner h2 { margin-top: 6px; font-size: clamp(32px, 3vw, 44px); line-height: 1.1; }
.partner .eyebrow::before { display: none; }
.section-partner { padding: clamp(40px, 5vw, 64px) 0; }

/* Dúvidas */
.faq { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 80px); }
.faq .section-head { flex: 1 1 300px; min-width: 0; }
.faq-list { flex: 2 1 560px; min-width: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 64px; padding: 18px 0; cursor: pointer; list-style: none;
  font-size: 18px; line-height: 1.4; font-weight: 700; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq-plus {
  flex: 0 0 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); color: var(--blue); transition: transform .25s ease;
}
.faq details[open] .faq-plus { transform: rotate(45deg); }
.faq details p { max-width: 680px; padding: 0 0 24px; font-size: 16px; line-height: 1.65; color: var(--muted); }

/* Contato */
.contact { position: relative; overflow: hidden; background: var(--navy); color: var(--on-dark); }
.contact::before {
  content: ""; position: absolute; left: -160px; bottom: -200px; width: 520px; height: 520px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .07);
}
.contact-grid { position: relative; display: flex; flex-wrap: wrap; align-items: flex-start; gap: clamp(36px, 6vw, 80px); }
.contact-intro { flex: 1 1 420px; min-width: 0; }
.contact-intro h2 { margin-top: 16px; font-size: clamp(34px, 3.8vw, 54px); line-height: 1.08; letter-spacing: -.01em; color: var(--on-dark); }
.contact-intro > p { margin-top: 20px; max-width: 520px; font-size: clamp(16px, 1.2vw, 18px); color: var(--on-dark-2); }
.contact-direct { margin: 32px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.contact-direct a {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px;
  color: #e4e9f2; font-size: 17px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere;
}
.contact-direct a:hover { color: #fff; text-decoration: underline; }
.contact-icon { flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--wa); }
.contact-icon-mail { background: rgba(141, 180, 255, .14); color: var(--sky); }

.form {
  flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 18px;
  padding: clamp(24px, 3vw, 36px); border-radius: 24px; background: #fff; color: var(--ink);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 800; color: var(--ink); }
.field .optional { font-weight: 500; color: var(--soft); }
.input {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid #8592a6; background: #fff; color: var(--ink);
  font: 400 16px/1.45 var(--sans); transition: border-color .2s ease, box-shadow .2s ease;
}
.input::placeholder { color: #7a8597; }
.input:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.input[aria-invalid="true"] { border-color: #c4313a; }
textarea.input { min-height: 112px; resize: vertical; }
.select-wrap { position: relative; }
.select-wrap .ico { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
select.input { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.field-error { font-size: 14px; color: #c4313a; }
.field-error:empty { display: none; }
.char-count { align-self: flex-end; font-size: 13px; color: var(--soft); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.form-actions .btn-wa { flex: 1 1 220px; }
.form-actions .btn-outline { flex: 1 1 180px; }
.form-note { font-size: 13px; line-height: 1.55; color: var(--soft); }

/* Rodapé */
.site-footer { background: var(--navy-deep); color: var(--on-dark-3); padding: clamp(56px, 7vw, 88px) 0 32px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.footer-about { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 56px; height: 56px; }
.footer-brand strong { display: block; font-size: 18px; font-weight: 800; color: var(--on-dark); }
.footer-brand span { display: block; font-size: 14px; line-height: 1.3; }
.footer-about p { max-width: 380px; font-size: 15px; }
.footer-cols { flex: 2 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 28px 40px; }
.footer-cols h2 { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
.foot-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #e4e9f2; font-size: 16px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.foot-link:hover { color: #fff; text-decoration: underline; }
.site-footer address { display: flex; gap: 8px; align-items: flex-start; padding-top: 10px; font-style: normal; font-size: 15px; line-height: 1.55; color: #e4e9f2; }
.site-footer address .ico { margin-top: 3px; }
.footer-legal {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: 13px; line-height: 1.6; color: #93a0b6;
}
.footer-legal p:first-child { flex: 1 1 520px; min-width: 0; }

/* Páginas de texto (privacidade, 404) */
.doc { max-width: 720px; margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gutter); }
.doc h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4vw, 52px); line-height: 1.08; }
.doc h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin-top: 40px; }
.doc p, .doc li { color: var(--text); }
.doc p { margin-top: 14px; }
.doc ul { padding-left: 22px; }
.doc .updated { margin-top: 12px; font-size: 15px; color: var(--soft); }

/* ---------- Animações de rolagem (leves) ----------
   O JavaScript marca com .is-pending só o que ainda está abaixo da tela;
   ao chegar perto, o elemento aparece com um leve deslize. */
@media (prefers-reduced-motion: no-preference) {
  .reveal { transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .7s cubic-bezier(.22, .61, .36, 1); }
  .reveal.is-pending { opacity: 0; transform: translateY(16px); }
  .steps > .reveal:nth-child(2), .services > .reveal:nth-child(3n+2) { transition-delay: .08s; }
  .steps > .reveal:nth-child(3), .services > .reveal:nth-child(3n+3) { transition-delay: .16s; }
  .steps > .reveal:nth-child(4) { transition-delay: .24s; }
}

@media print {
  .site-header, .hero-photo, .form, .menu-btn { display: none !important; }
  .hero, .contact, .site-footer { background: #fff !important; color: #000 !important; }
}
