/* Flávio Tavares Advocacia — landing page de Direito Digital
   Fontes hospedadas no próprio site (Inter e Lora, licença OFL). */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/inter-Regular.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/inter-Medium.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/inter-SemiBold.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/inter-Bold.woff") format("woff"); }
@font-face { font-family: "Lora"; font-weight: 400 700; font-style: normal; font-display: swap; src: url("../fonts/lora-var.woff") format("woff"); }

:root {
  --bg: #0e0f11;
  --bg-alt: #131518;
  --surface: #181b1f;
  --line: rgba(201, 166, 107, 0.28);
  --line-soft: rgba(238, 237, 232, 0.10);
  --text: #eeede8;
  --muted: #a9a8a1;
  --gold: #c9a66b;
  --gold-strong: #d9b97f;
  --green: #245a3e;
  --green-hover: #2b6c4b;
  --radius: 14px;
  --sans: "Inter", "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: #101010; padding: 10px 16px; border-radius: 8px; font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.gold { color: var(--gold); }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 15, 17, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  font-family: var(--serif); font-weight: 600; font-size: 1.35rem; letter-spacing: .02em;
  color: var(--gold); border: 1px solid var(--gold); border-radius: 6px;
  width: 42px; height: 42px; display: grid; place-items: center; line-height: 1;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
.brand-text span { font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }

.menu-btn {
  display: none; align-items: center; gap: 10px;
  background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 14px; font: inherit; font-size: .85rem; cursor: pointer;
}
.menu-btn-bars, .menu-btn-bars::before, .menu-btn-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
}
.menu-btn-bars::before, .menu-btn-bars::after { content: ""; position: absolute; left: 0; }
.menu-btn-bars::before { top: -6px; }
.menu-btn-bars::after { top: 6px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { list-style: none; display: flex; gap: 22px; }
.nav a { text-decoration: none; font-size: .88rem; color: var(--muted); transition: color .15s; }
.nav a:hover { color: var(--text); }
.nav-extra { display: flex; align-items: center; gap: 14px; padding-left: 22px; border-left: 1px solid var(--line-soft); }
.nav-extra .nav-other { font-size: .78rem; color: var(--gold); }
.icon-link { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line-soft); border-radius: 50%; color: var(--text); }
.icon-link:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-wa { background: var(--green); color: #fff; }
.btn-wa:hover { background: var(--green-hover); }
.btn-line { border-color: var(--line); color: var(--gold-strong); padding: 10px 18px; font-size: .85rem; }
.btn-line:hover { border-color: var(--gold); background: rgba(201, 166, 107, 0.08); }
.btn-lg { padding: 17px 32px; font-size: 1.02rem; }
.link-arrow { color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem; border-bottom: 1px solid var(--line); padding: 4px 0; }
.link-arrow:hover { color: var(--gold-strong); border-color: var(--gold); }

/* ---------- Tipografia de seção ---------- */
.eyebrow { font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 14px; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.12; font-weight: 700; letter-spacing: -.015em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.2; font-weight: 700; letter-spacing: -.01em; margin-bottom: 36px; }
h3 { font-size: 1.12rem; line-height: 1.35; font-weight: 600; }
.h3-lg { font-size: 1.5rem; margin-bottom: 8px; }
p { color: var(--muted); }

.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 64px 0 80px; overflow: hidden; }
.hero-scale { position: absolute; left: -40px; top: 40px; width: 420px; color: var(--gold); opacity: .06; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.ident { font-size: .85rem; color: var(--muted); margin-bottom: 22px; }
.ident span { color: var(--gold); margin: 0 6px; }
.ident .nw { color: inherit; margin: 0; white-space: nowrap; }
.credential { display: inline-block; margin-bottom: 20px; padding: 7px 18px; border: 1px solid var(--gold); border-radius: 999px; color: var(--gold-strong); background: rgba(201, 166, 107, 0.08); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { margin-bottom: 22px; }
.lead { font-size: 1.1rem; max-width: 56ch; margin-bottom: 32px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-bottom: 36px; }
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: .8rem; color: var(--muted); }
.badges li { position: relative; padding-left: 18px; }
.badges li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1px; background: var(--gold); }
.hero-photo { margin: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #0b1424; max-width: 440px; justify-self: end; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.hero-photo img { width: 100%; }

/* ---------- Grades e cartões ---------- */
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-areas { grid-template-columns: repeat(2, 1fr); }

.card { background: var(--surface); border: 1px solid var(--line-soft); border-top: 2px solid var(--gold); border-radius: var(--radius); padding: 26px 24px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .94rem; }

.front { padding: 8px 0 8px 22px; border-left: 1px solid var(--line); }
.front .num, .steps .num { display: block; font-family: var(--serif); font-size: 2.4rem; color: var(--gold); line-height: 1; margin-bottom: 14px; }
.front h3 { font-size: 1.3rem; margin-bottom: 10px; }

.area { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 26px 26px 24px; display: flex; flex-direction: column; gap: 14px; }
.area ul { list-style: none; display: grid; gap: 8px; flex: 1; align-content: start; }
.area li { position: relative; padding-left: 18px; font-size: .93rem; color: var(--muted); }
.area li::before { content: ""; position: absolute; left: 0; top: .8em; width: 9px; height: 1px; background: var(--gold); }
.area .btn { align-self: flex-start; }
.note { margin-top: 28px; font-size: .88rem; color: var(--muted); }

/* ---------- Primeiros cuidados ---------- */
.panel { border: 1px solid var(--line); border-radius: 18px; padding: 38px 36px; background: var(--bg); }
.panel h2 { margin-bottom: 24px; }
.checks { list-style: none; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 30px; color: var(--text); }
.checks li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 9px; height: 5px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }

/* ---------- Atendimento ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 26px 22px; }
.steps h3 { margin-bottom: 8px; }
.steps p { font-size: .92rem; }
.steps .num { font-size: 2rem; margin-bottom: 10px; }

.where { margin-top: 56px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; border-top: 1px solid var(--line-soft); padding-top: 48px; }
.contacts { list-style: none; display: grid; gap: 12px; }
.contacts a { display: flex; align-items: center; gap: 16px; text-decoration: none; padding: 16px 20px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--surface); word-break: break-word; }
.contacts a:hover { border-color: var(--gold); }
.contacts svg { color: var(--gold); flex: none; }
.contacts small { display: block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* ---------- Sobre ---------- */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.about h2 { margin-bottom: 20px; }
.facts { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.facts dt { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); padding-top: 3px; }
.facts dd { margin: 0; color: var(--text); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line-soft); border-radius: 12px; background: var(--surface); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 1.4rem; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] { border-color: var(--line); }
.faq details p { padding: 0 22px 20px; }

/* ---------- CTA final ---------- */
.cta { padding: 96px 0; background: linear-gradient(180deg, var(--bg-alt), var(--bg)); border-top: 1px solid var(--line-soft); }
.cta h2 { margin-bottom: 16px; }
.cta p { margin-bottom: 32px; font-size: 1.05rem; }

/* ---------- Rodapé ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 52px 0 28px; background: #0a0b0d; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.2fr .8fr; gap: 40px; }
.footer-id { margin-top: 16px; font-size: .86rem; }
.footer-links { list-style: none; display: grid; gap: 10px; align-content: start; font-size: .9rem; }
.footer-links a { color: var(--muted); text-decoration: none; word-break: break-word; }
.footer-links a:hover { color: var(--gold-strong); }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .8rem; }

/* ---------- Botão flutuante (somente celular) ---------- */
.wa-float {
  display: none; position: fixed; right: 16px; bottom: 16px; z-index: 40;
  width: 54px; height: 54px; border-radius: 50%; background: var(--green); color: #fff;
  place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.12);
  transition: opacity .2s, transform .2s;
}
.wa-float.is-hidden { opacity: 0; pointer-events: none; transform: translateY(10px); }

/* ---------- Páginas legais ---------- */
.legal { padding: 56px 0 90px; }
.legal h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: 8px; }
.legal .updated { font-size: .85rem; margin-bottom: 36px; }
.legal h2 { font-size: 1.25rem; margin: 36px 0 12px; }
.legal p, .legal li { color: #c9c8c2; margin-bottom: 12px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--gold-strong); }
.legal .back { display: inline-block; margin-bottom: 28px; font-size: .9rem; color: var(--gold-strong); text-decoration: none; }
.revisar { background: rgba(201, 166, 107, .18); color: var(--gold-strong); padding: 1px 6px; border-radius: 4px; font-weight: 600; font-size: .85em; }

.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound h1 { margin-bottom: 14px; }
.notfound p { margin-bottom: 28px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .nav { gap: 18px; }
  .nav ul { gap: 14px; }
}

@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line-soft); font-size: 1rem; }
  .nav-extra { padding: 16px 0 0; border: 0; justify-content: space-between; }
  .no-js .menu-btn { display: none; }
  .no-js .nav { display: flex; position: static; flex-direction: column; border: 0; padding: 0 0 12px; }
  .no-js .header-row { flex-wrap: wrap; }

  .hero { padding: 40px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-photo { justify-self: center; width: min(100%, 420px); }
  .hero-scale { width: 300px; left: -80px; }
  .grid-3 { grid-template-columns: 1fr; gap: 24px; }
  .grid-areas { grid-template-columns: 1fr; }
  .where, .about { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 64px 0; }
  .wa-float { display: grid; }
}

@media (max-width: 560px) {
  .grid-4, .steps { grid-template-columns: 1fr; }
  .brand-text strong { font-size: .72rem; }
  .actions { flex-direction: column; align-items: stretch; gap: 16px; }
  .actions .btn { width: 100%; }
  .actions .link-arrow { align-self: flex-start; }
  .panel { padding: 28px 22px; }
  .facts div { grid-template-columns: 1fr; gap: 4px; }
}
