/* Flavio Ebendinger Ferreira — Advocacia e consultoria jurídica
   Identidade herdada do site atual: azul #184F7B, Playfair Display + Inter, botão de WhatsApp em verde. */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("fonts/playfair-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #184f7b;
  --navy-dark: #0f3a5e;
  --blue: #1d5f95;
  --paper: #f2f5f8;
  --line: #e0e6eb;
  --ink: #17202a;
  --muted: #5b6672;
  --wa: #157f3d;
  --wa-hover: #116b33;
  --radius: 8px;
  --shadow: 0 10px 24px -12px rgba(15, 58, 94, 0.35);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--navy-dark); }
:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; border-radius: 4px; }

.container { width: min(1080px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 0; background: #fff; color: var(--navy);
  padding: 10px 16px; z-index: 100; border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; }

/* Cabeçalho */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--navy-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: #fff; }
.brand img { height: 52px; width: auto; display: block; filter: brightness(0) invert(1); }
.brand-text { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: #fff; line-height: 1.2; }
.brand-text small { display: block; font-family: var(--sans); font-weight: 400; font-size: 0.72rem; letter-spacing: 0.04em; opacity: 0.85; }

.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: #fff; text-decoration: none; font-size: 0.95rem; font-weight: 500; opacity: 0.92; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.nav-toggle {
  display: none; background: transparent; border: 1px solid rgba(255, 255, 255, 0.5); color: #fff;
  border-radius: var(--radius); padding: 8px 12px; font: inherit; font-size: 0.9rem; cursor: pointer;
}

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: 1.05rem; line-height: 1.2;
  padding: 15px 28px; border-radius: var(--radius); text-decoration: none; border: 2px solid transparent;
  cursor: pointer; transition: background 0.15s ease, transform 0.15s ease;
}
.btn-wa { background: var(--wa); color: #fff; box-shadow: var(--shadow); }
.btn-wa:hover { background: var(--wa-hover); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--paper); color: var(--navy-dark); }
.btn-sm { padding: 10px 18px; font-size: 0.95rem; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Hero */
.hero {
  color: #fff;
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(255, 255, 255, 0.09), transparent 60%),
    linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 62%, #1d6199 100%);
  padding: 72px 0 80px;
}
.hero.home { padding: 96px 0 104px; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: #cfe3f5; margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--serif); color: #fff; font-weight: 700; line-height: 1.15;
  font-size: clamp(1.95rem, 1.2rem + 3.2vw, 3.1rem); margin: 0 0 20px; max-width: 18ch;
}
.hero.home h1 { max-width: 20ch; margin-inline: auto; }
.hero .lead { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.2rem); color: rgba(255, 255, 255, 0.92); max-width: 60ch; margin: 0 0 30px; }
.hero.home .lead { margin-inline: auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero.home .hero-actions { justify-content: center; }
.hero-meta { margin-top: 26px; font-size: 0.9rem; color: #cfe3f5; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.hero.home .hero-meta { justify-content: center; }
.hero-meta span::before { content: "•"; margin-right: 8px; opacity: 0.7; }
.hero-meta span:first-child::before { content: none; margin: 0; }

/* Seções */
.section { padding: 60px 0; }
.section.alt { background: var(--paper); }
.section h2 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.1rem); margin: 0 0 18px; }
.section .kicker { color: var(--muted); max-width: 62ch; margin: 0 0 30px; }
.prose p { margin: 0 0 16px; }
.prose p:last-child { margin-bottom: 0; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.card h3 { margin: 0; font-size: 1.1rem; color: var(--navy); line-height: 1.3; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.card .more { margin-top: auto; padding-top: 6px; font-weight: 600; font-size: 0.95rem; }
a.card { text-decoration: none; color: inherit; transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease; }
a.card:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-2px); }
a.card .more { color: var(--blue); }

.law { display: grid; gap: 14px; }
.law-item { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius); padding: 16px 20px; }
.law-item strong { display: block; color: var(--navy); margin-bottom: 4px; }
.law-item span { color: var(--muted); font-size: 0.97rem; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 34px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat;
}
.two-col { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 880px) { .two-col { grid-template-columns: 1fr 1fr; } }

.paths { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: step; }
.path { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 22px 22px; position: relative; }
.path::before {
  counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 32px; height: 32px;
  border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 10px;
}
.path h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--navy); }
.path p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* FAQ */
.faq { display: grid; gap: 12px; }
details.q { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
details.q summary {
  cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; font-weight: 600; color: var(--navy); position: relative;
}
details.q summary::-webkit-details-marker { display: none; }
details.q summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--blue);
}
details.q[open] summary::after { content: "–"; }
details.q .a { padding: 0 20px 18px; color: var(--ink); }
details.q .a p { margin: 0 0 10px; }
details.q .a p:last-child { margin: 0; }

/* Faixa de contato */
.cta-band { background: var(--navy); color: #fff; padding: 56px 0; text-align: center; }
.cta-band h2 { color: #fff; margin: 0 0 12px; }
.cta-band p { margin: 0 auto 26px; max-width: 56ch; color: rgba(255, 255, 255, 0.92); }
.cta-band .hero-actions { justify-content: center; }

/* Aviso OAB */
.notice {
  border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius);
  padding: 16px 20px; color: var(--muted); font-size: 0.88rem; line-height: 1.55;
}
.notice strong { color: var(--ink); }

.related { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.related a { display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 0.92rem; background: #fff; }
.related a:hover { border-color: var(--blue); }

/* Sobre */
.about { display: grid; gap: 36px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 820px) { .about { grid-template-columns: 260px 1fr; } }
.about.no-photo { grid-template-columns: 1fr; }
.about.no-photo .prose { max-width: 720px; }
.about figure { margin: 0; justify-self: center; }
.about figure img { width: 240px; border-radius: var(--radius); box-shadow: var(--shadow); display: block; background: var(--paper); }
.facts { display: flex; flex-wrap: wrap; gap: 14px 32px; margin-top: 22px; padding: 0; list-style: none; }
.facts li { font-size: 0.95rem; color: var(--muted); }
.facts strong { display: block; font-family: var(--serif); font-size: 1.7rem; color: var(--navy); line-height: 1.1; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: baseline; }
.contact-list b { min-width: 92px; color: var(--navy); }
.contact-list a { color: var(--ink); }

/* Rodapé */
.site-footer { background: #0b1621; color: #c9d5e0; padding: 48px 0 28px; font-size: 0.92rem; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer h3 { color: #fff; font-size: 0.95rem; margin: 0 0 12px; font-family: var(--sans); }
.site-footer a { color: #c9d5e0; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer .brand img { height: 56px; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 32px; padding-top: 20px; font-size: 0.82rem; color: #9db0c2; }

/* WhatsApp flutuante */
.float-wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; gap: 10px;
  background: var(--wa); color: #fff; text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 13px 18px; border-radius: 999px; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.5);
}
.float-wa:hover { background: var(--wa-hover); color: #fff; }
.float-wa svg { width: 22px; height: 22px; }

/* Política */
.policy h2 { font-size: 1.35rem; margin: 34px 0 10px; }
.policy ul { padding-left: 20px; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy-dark);
    flex-direction: column; align-items: flex-start; padding: 16px 20px 22px; gap: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .nav.open { display: flex; }
  .header-row { position: relative; }
  .header-cta { display: none; }
  .hero { padding: 52px 0 60px; }
  .hero.home { padding: 64px 0 72px; }
  .btn { width: 100%; }
  .hero-actions .btn, .cta-band .btn { width: 100%; }
  .float-wa span { display: none; }
  .float-wa { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  .site-header, .float-wa, .cta-band { display: none; }
}
