/* BrazilLawyer.com — design system
   Deep emerald + gold. Cinematic full-bleed. Editorial, not card-grid. */

:root {
  --ink: #0c1310;
  --ink-soft: #1a241f;
  --emerald: #0e3b2c;
  --emerald-deep: #07241a;
  --gold: #c9a227;
  --gold-soft: #e3c879;
  --paper: #f6f3eb;
  --paper-dim: #ece7da;
  --line: rgba(12, 19, 16, 0.14);
  --line-light: rgba(246, 243, 235, 0.18);
  --body: #2b342f;
  --body-light: rgba(246, 243, 235, 0.82);
  --max: 1180px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 22px;
}
.eyebrow.on-paper { color: #9a7d1e; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.35s, box-shadow 0.35s;
  padding: 20px 0;
}
.site-header.scrolled {
  background: rgba(7, 22, 16, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-light);
  padding: 12px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.logo { font-family: var(--serif); font-size: 23px; color: #fff; text-decoration: none; letter-spacing: 0.01em; }
.logo b { font-weight: 600; }
.logo .tld { color: var(--gold-soft); font-weight: 400; }
.nav { display: flex; gap: 34px; align-items: center; }
.nav a {
  color: rgba(255,255,255,0.85); text-decoration: none; font-size: 14px;
  font-weight: 500; letter-spacing: 0.04em; transition: color 0.2s;
}
.nav a:hover { color: var(--gold-soft); }
.nav .btn-nav {
  border: 1px solid var(--gold); color: var(--gold-soft);
  padding: 9px 22px; border-radius: 2px; transition: all 0.25s;
}
.nav .btn-nav:hover { background: var(--gold); color: var(--emerald-deep); }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 2px; background: #fff; margin: 6px 0; transition: 0.3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: flex-end;
  color: #fff; background-size: cover; background-position: center;
}
.hero.parallax { background-attachment: fixed; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,22,16,0.46) 0%, rgba(7,22,16,0.18) 40%, rgba(7,22,16,0.88) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 0 0 96px; width: 100%; }
.hero h1 {
  color: #fff; font-size: clamp(42px, 6.2vw, 84px); max-width: 17ch; font-weight: 480;
}
.hero .lede {
  margin-top: 26px; max-width: 56ch; font-size: 19px; color: var(--body-light); font-weight: 400;
}
.hero-ctas { margin-top: 40px; display: flex; gap: 18px; flex-wrap: wrap; }

.hero-sub {
  min-height: 62vh;
}
.hero-sub .hero-content { padding-bottom: 70px; }
.hero-sub h1 { font-size: clamp(36px, 5vw, 64px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-size: 14px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 17px 38px;
  border-radius: 2px; transition: all 0.25s; cursor: pointer; border: 1px solid transparent;
}
.btn-gold { background: var(--gold); color: var(--emerald-deep); }
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-ghost:hover { border-color: var(--gold-soft); color: var(--gold-soft); }
.btn-dark { background: var(--emerald-deep); color: var(--paper); }
.btn-dark:hover { background: var(--emerald); transform: translateY(-2px); }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-dark { background: var(--emerald-deep); color: var(--body-light); }
.section-dark h2, .section-dark h3 { color: var(--paper); }
.section-dim { background: var(--paper-dim); }
.section h2 { font-size: clamp(32px, 4vw, 52px); max-width: 24ch; }
.section .section-intro { margin-top: 24px; max-width: 62ch; font-size: 18px; }

/* ---------- Stat band ---------- */
.stat-band { background: var(--emerald-deep); color: var(--paper); padding: 64px 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.stat .num { font-family: var(--serif); font-size: 52px; color: var(--gold-soft); line-height: 1; }
.stat .lbl { margin-top: 10px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(246,243,235,0.6); }

/* ---------- Service ledger rows (no cards) ---------- */
.ledger { margin-top: 70px; border-top: 1px solid var(--line); }
.ledger-row {
  display: grid; grid-template-columns: 70px 1fr 1.3fr auto; gap: 36px; align-items: center;
  padding: 34px 10px; border-bottom: 1px solid var(--line);
  text-decoration: none; transition: background 0.25s, padding 0.25s;
}
.ledger-row:hover { background: rgba(14, 59, 44, 0.05); padding-left: 22px; }
.ledger-row .idx { font-family: var(--serif); font-size: 19px; color: var(--gold); }
.ledger-row .name { font-family: var(--serif); font-size: 26px; color: var(--ink); }
.ledger-row .desc { font-size: 15.5px; color: var(--body); }
.ledger-row .arrow { font-size: 22px; color: var(--gold); transition: transform 0.25s; }
.ledger-row:hover .arrow { transform: translateX(8px); }

.section-dark .ledger { border-color: var(--line-light); }
.section-dark .ledger-row { border-color: var(--line-light); }
.section-dark .ledger-row:hover { background: rgba(246,243,235,0.05); }
.section-dark .ledger-row .name { color: var(--paper); }
.section-dark .ledger-row .desc { color: var(--body-light); }

/* ---------- Split band (image + copy) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 78vh; }
.split-img { background-size: cover; background-position: center; min-height: 420px; }
.split-copy { display: flex; flex-direction: column; justify-content: center; padding: 90px 8%; }
.split-copy h2 { font-size: clamp(30px, 3.4vw, 46px); }
.split-copy p { margin-top: 22px; max-width: 54ch; }
.split-copy .btn { margin-top: 36px; align-self: flex-start; }

/* ---------- Difference list ---------- */
.diff-list { margin-top: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 70px; }
.diff-item { padding: 36px 0; border-top: 1px solid var(--line-light); }
.diff-item h3 { font-size: 23px; }
.diff-item p { margin-top: 12px; font-size: 15.5px; }
.diff-item .d-num { font-family: var(--serif); color: var(--gold); font-size: 16px; display: block; margin-bottom: 14px; }

/* ---------- Process timeline ---------- */
.steps { margin-top: 70px; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 120px 1fr; gap: 44px; padding: 44px 0;
  border-top: 1px solid var(--line); align-items: start;
}
.step .s-num { font-family: var(--serif); font-size: 64px; color: var(--gold); line-height: 0.9; }
.step h3 { font-size: 26px; }
.step p { margin-top: 12px; max-width: 64ch; }
.step .s-meta { margin-top: 14px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: #9a7d1e; font-weight: 600; }

/* ---------- Prose (guides) ---------- */
.prose { font-size: 18px; }
.prose h2 { font-size: 32px; margin: 56px 0 18px; }
.prose h3 { font-size: 23px; margin: 40px 0 14px; }
.prose p { margin: 18px 0; }
.prose ul, .prose ol { margin: 18px 0 18px 26px; }
.prose li { margin: 9px 0; }
.prose strong { color: var(--ink); }
.prose .callout {
  background: var(--emerald-deep); color: var(--body-light); padding: 34px 38px;
  border-left: 3px solid var(--gold); margin: 36px 0; font-size: 16.5px;
}
.prose .callout strong { color: var(--gold-soft); }
.prose table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 15.5px; }
.prose th { text-align: left; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); border-bottom: 2px solid var(--ink); padding: 10px 14px 10px 0; }
.prose td { border-bottom: 1px solid var(--line); padding: 12px 14px 12px 0; vertical-align: top; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 56px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  padding: 26px 6px; font-family: var(--serif); font-size: 21px; color: var(--ink); gap: 24px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 26px; color: var(--gold); flex-shrink: 0; transition: transform 0.25s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .faq-a { padding: 0 6px 30px; max-width: 70ch; }

/* ---------- Guide index rows ---------- */
.guide-rows { margin-top: 64px; border-top: 1px solid var(--line); }
.guide-row {
  display: grid; grid-template-columns: 240px 1fr auto; gap: 40px; align-items: center;
  padding: 30px 8px; border-bottom: 1px solid var(--line); text-decoration: none;
  transition: background 0.25s;
}
.guide-row:hover { background: rgba(14,59,44,0.05); }
.guide-row .g-tag { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: #9a7d1e; font-weight: 600; }
.guide-row .g-title { font-family: var(--serif); font-size: 24px; color: var(--ink); }
.guide-row .g-sub { font-size: 15px; margin-top: 6px; }
.guide-row .arrow { color: var(--gold); font-size: 22px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; padding: 130px 0; color: #fff;
  background-size: cover; background-position: center;
}
.cta-band.parallax { background-attachment: fixed; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: rgba(7, 29, 21, 0.82); }
.cta-band .wrap { position: relative; z-index: 2; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(32px, 4.4vw, 56px); margin: 0 auto; }
.cta-band p { margin: 22px auto 0; max-width: 56ch; color: var(--body-light); font-size: 18px; }
.cta-band .btn { margin-top: 42px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; margin-top: 70px; }
.contact-form label { display: block; font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--ink); margin: 26px 0 8px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); background: #fff;
  font-family: var(--sans); font-size: 16px; color: var(--ink); border-radius: 2px;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--gold); border-color: transparent; }
.contact-form .btn { margin-top: 34px; }
.contact-aside h3 { font-size: 24px; margin-bottom: 14px; }
.contact-aside p { margin-bottom: 26px; }
.contact-aside .big-mail { font-family: var(--serif); font-size: clamp(20px, 2.4vw, 30px); color: var(--emerald); text-decoration: none; border-bottom: 2px solid var(--gold); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(246,243,235,0.7); padding: 90px 0 44px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 56px; }
.site-footer .logo { font-size: 26px; }
.site-footer p { margin-top: 18px; max-width: 40ch; }
.site-footer h4 { color: var(--paper); font-size: 12.5px; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 20px; }
.site-footer ul { list-style: none; }
.site-footer li { margin: 10px 0; }
.site-footer a { color: rgba(246,243,235,0.7); text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-bottom {
  margin-top: 70px; padding-top: 28px; border-top: 1px solid rgba(246,243,235,0.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: 13px; color: rgba(246,243,235,0.45);
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Mobile ---------- */
@media (max-width: 920px) {
  .hero.parallax, .cta-band.parallax { background-attachment: scroll; }
  .nav { position: fixed; inset: 0; background: var(--emerald-deep); flex-direction: column; justify-content: center; gap: 30px; transform: translateX(100%); transition: transform 0.35s; }
  .nav.open { transform: none; }
  .nav a { font-size: 19px; }
  .menu-toggle { display: block; position: relative; z-index: 110; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .ledger-row { grid-template-columns: 40px 1fr auto; }
  .ledger-row .desc { display: none; }
  .split { grid-template-columns: 1fr; }
  .split-copy { padding: 70px 28px; }
  .diff-list { grid-template-columns: 1fr; }
  .step { grid-template-columns: 64px 1fr; gap: 24px; }
  .step .s-num { font-size: 42px; }
  .guide-row { grid-template-columns: 1fr auto; }
  .guide-row .g-tag-col { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .section { padding: 80px 0; }
}
