/* ============================================================
   Arantes de Pádua — Landing Page (Recuperação de Crédito)
   Design System aplicado: esmeralda + platina.
   Tokens e componentes extraídos do Design System oficial.
   ============================================================ */

/* ---------- COLOR TOKENS ---------- */
:root {
  /* Emerald scale */
  --emerald-950: #051712;
  --emerald-900: #07211b;
  --emerald-800: #0b2c24;
  --emerald-700: #0e332a; /* brand base — fundo da logo */
  --emerald-600: #134b3c;
  --emerald-500: #1a6450;
  --emerald-400: #2e826a;
  --emerald-300: #57a48d;
  --emerald-200: #95c6b6;
  --emerald-100: #cde4dc;
  --emerald-50:  #ecf4f0;

  /* Platinum / silver scale */
  --platinum-800: #565a53;
  --platinum-700: #6e726b;
  --platinum-600: #888c84;
  --platinum-500: #a5a8a0;
  --platinum-400: #bcbfb7;
  --platinum-300: #d2d4cd;
  --platinum-200: #e3e4df;
  --platinum-100: #f0f1ec;

  /* Warm neutrals */
  --paper:    #ffffff;
  --ivory:    #faf9f4;
  --sand-100: #f2efe7;
  --sand-200: #e7e2d6;
  --sand-300: #d8d1c1;

  /* Cream (CTA) */
  --cream:        #efe3c4;
  --cream-hover:  #e6d6ab;
  --cream-active: #dcc995;

  /* Ink (green-tinted charcoals) */
  --ink-900: #13201c;
  --ink-800: #1d2c27;
  --ink-700: #2d3a35;
  --ink-600: #44514b;
  --ink-500: #5d6862;
  --ink-400: #828b85;
  --ink-300: #a7aea9;

  /* Metallic gradients */
  --metal-grad: linear-gradient(135deg, #6e726b 0%, #d2d4cd 28%, #f0f1ec 50%, #b2b6ae 72%, #6e726b 100%);
  --metal-grad-soft: linear-gradient(90deg, rgba(210,212,205,0) 0%, var(--platinum-400) 50%, rgba(210,212,205,0) 100%);

  /* Semantic surfaces */
  --surface-deep:   var(--emerald-900);
  --surface-brand:  var(--emerald-700);
  --surface-raised: #112e26;
  --surface-light:  var(--ivory);
  --surface-paper:  var(--paper);
  --surface-sand:   var(--sand-100);

  /* Text on dark */
  --text-on-dark:        var(--platinum-100);
  --text-on-dark-strong: #ffffff;
  --text-on-dark-muted:  var(--emerald-200);
  --text-on-dark-faint:  var(--platinum-600);

  /* Text on light */
  --text-strong: var(--ink-900);
  --text-body:   var(--ink-700);
  --text-muted:  var(--ink-500);
  --text-faint:  var(--ink-400);

  /* Accents */
  --accent:        var(--emerald-700);
  --accent-hover:  var(--emerald-600);
  --accent-active: var(--emerald-800);
  --metal:         var(--platinum-500);
  --metal-bright:  var(--platinum-300);

  /* Borders & hairlines */
  --hairline-on-light:  rgba(19, 32, 28, 0.12);
  --hairline-on-light-strong: rgba(19, 32, 28, 0.22);
  --hairline-on-dark:   rgba(240, 241, 236, 0.14);
  --hairline-on-dark-strong: rgba(240, 241, 236, 0.28);

  /* Focus */
  --focus-ring: 0 0 0 2px var(--ivory), 0 0 0 4px var(--emerald-500);
  --focus-ring-dark: 0 0 0 2px var(--emerald-900), 0 0 0 4px var(--platinum-400);

  /* WhatsApp / status */
  --whatsapp: #1f8a5b;
  --whatsapp-hover: #17744c;
  --danger:  #a8443a;

  /* ---------- TYPOGRAPHY ---------- */
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans:    "Jost", "Century Gothic", system-ui, sans-serif;
  --font-body:    "Mulish", system-ui, -apple-system, sans-serif;

  --fw-light: 300; --fw-regular: 400; --fw-medium: 500;
  --fw-semibold: 600; --fw-bold: 700; --fw-black: 800;

  --fs-display: clamp(3rem, 5.6vw, 5rem);
  --fs-h1: clamp(2.5rem, 4.6vw, 4rem);
  --fs-h2: clamp(2rem, 3.2vw, 2.9rem);
  --fs-h3: clamp(1.5rem, 2.2vw, 2rem);
  --fs-h4: clamp(1.25rem, 1.6vw, 1.45rem);

  --fs-lead: 1.3125rem;
  --fs-body: 1.0625rem;
  --fs-sm:   0.9375rem;
  --fs-xs:   0.8125rem;
  --fs-eyebrow: 0.78rem;

  --lh-display: 1.04;
  --lh-heading: 1.12;
  --lh-snug:    1.35;
  --lh-body:    1.7;

  --tr-display: -0.015em;
  --tr-tight:   -0.01em;
  --tr-wide:    0.08em;
  --tr-eyebrow: 0.22em;

  /* ---------- SPACING / RADII / SHADOW / MOTION ---------- */
  --section-pad-y: clamp(72px, 10vw, 144px);
  --container-max: 1240px;
  --container-narrow: 760px;
  --container-pad-x: clamp(20px, 5vw, 56px);

  --r-xs: 2px; --r-sm: 4px; --r-md: 8px; --r-lg: 12px; --r-xl: 18px; --r-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(19, 32, 28, 0.06);
  --shadow-sm: 0 2px 8px rgba(19, 32, 28, 0.07);
  --shadow-md: 0 10px 28px rgba(19, 32, 28, 0.10);
  --shadow-lg: 0 24px 60px rgba(19, 32, 28, 0.16);
  --shadow-deep: 0 30px 80px rgba(5, 23, 18, 0.45);
  --shadow-card-dark: 0 18px 48px rgba(5, 23, 18, 0.50);

  --dur-fast: 140ms; --dur-base: 240ms; --dur-slow: 460ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- RESET / BASE ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-body);
  background: var(--surface-light);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-heading);
  letter-spacing: var(--tr-tight);
  color: var(--text-strong);
  margin: 0;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--emerald-600); color: var(--ivory); }

/* ---------- UTILITIES ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad-x);
}
.section { padding-top: var(--section-pad-y); padding-bottom: var(--section-pad-y); }
/* offset para âncoras não ficarem sob a nav fixa */
section[id], main[id] { scroll-margin-top: 84px; }
.section--light { background: var(--surface-light); }
.section--sand  { background: var(--surface-sand); }
.section--brand { background: var(--surface-brand); }
.section--deep  { background: var(--surface-deep); }

.eyebrow {
  font-family: var(--font-sans);
  font-weight: var(--fw-medium);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--emerald-600);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 32px; height: 1px;
  background: var(--metal-grad-soft);
  flex: none;
}
.on-dark .eyebrow { color: var(--metal); }

.lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-snug);
  color: var(--text-muted);
  font-weight: var(--fw-regular);
}
.on-dark .lead { color: var(--text-on-dark-muted); }

.metal-rule { height: 1px; border: 0; background: var(--metal-grad-soft); width: 100%; }

.serif-accent { font-style: italic; font-weight: var(--fw-medium); color: var(--emerald-600); }
.on-dark .serif-accent { color: var(--metal-bright); }

.section-head { max-width: var(--container-narrow); }
.section-head h2 {
  font-size: var(--fs-h2);
  margin-top: 22px;
  letter-spacing: -0.01em;
}
.on-dark h2, .on-dark h3 { color: var(--text-on-dark-strong); }
.section-head .lead { margin-top: 22px; max-width: 44em; }

/* ---------- BUTTONS ---------- */
.btn {
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  font-size: 13px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  transition: background var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.btn--lg { padding: 18px 36px; font-size: 13.5px; }

.btn--primary { background: var(--cream); color: var(--emerald-900); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--cream-hover); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn--primary:active { background: var(--cream-active); }

.btn--metal { background: var(--cream); color: var(--emerald-900); box-shadow: var(--shadow-sm); }
.btn--metal:hover { background: var(--cream-hover); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn--metal:active { background: var(--cream-active); }

.btn--outline { background: transparent; color: var(--emerald-700); border-color: var(--hairline-on-light-strong); }
.btn--outline:hover { border-color: var(--emerald-700); background: rgba(14,51,42,.04); }
.on-dark .btn--outline { color: var(--platinum-100); border-color: var(--hairline-on-dark-strong); }
.on-dark .btn--outline:hover { border-color: var(--platinum-300); background: rgba(240,241,236,.06); }

.btn--whatsapp { background: var(--whatsapp); color: #fff; box-shadow: var(--shadow-sm); }
.btn--whatsapp:hover { background: var(--whatsapp-hover); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn--block { width: 100%; }

.on-dark .btn:focus-visible { box-shadow: var(--focus-ring-dark); }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 78px;
  display: flex; align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), backdrop-filter var(--dur-base) var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(7,33,27,0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline-on-dark);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { width: 40px; height: 40px; border-radius: 4px; }
.brand__mark { width: auto; height: 40px; border-radius: 0; }
.footer .brand__mark { height: 44px; }
.brand__name { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name b {
  font-family: var(--font-sans); font-weight: 400; font-size: 15px;
  letter-spacing: 0.24em; color: var(--platinum-100); text-transform: uppercase;
}
.brand__name span {
  font-family: var(--font-sans); font-weight: 300; font-size: 9.5px;
  letter-spacing: 0.4em; color: var(--metal); text-transform: uppercase; margin-top: 3px;
}
.nav__links { display: flex; align-items: center; gap: 36px; }
.nav__links a:not(.btn) {
  font-family: var(--font-sans); font-weight: 400; font-size: 14.5px;
  letter-spacing: 0.03em; color: var(--platinum-200);
  transition: color var(--dur-base) var(--ease-out);
}
.nav__links a:not(.btn):hover { color: var(--platinum-100); }
.nav__toggle { display: none; background: none; border: none; color: var(--platinum-100); cursor: pointer; padding: 6px; }
.nav__mobile { display: none; }

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--surface-brand);
  padding-top: 140px; padding-bottom: 96px;
}
.hero__glow {
  position: absolute; top: -10%; left: -5%; width: 60%; height: 80%;
  background: radial-gradient(circle, rgba(149,198,182,.10), transparent 65%);
  pointer-events: none;
}
.hero__grid {
  position: relative; display: grid;
  grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center;
}
.hero h1 {
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: var(--tr-display);
  color: var(--text-on-dark-strong);
  font-weight: var(--fw-semibold);
  margin-top: 26px;
}
.hero h1 em { font-style: italic; font-weight: 500; color: var(--metal-bright); }
.hero__sub {
  font-family: var(--font-body); font-size: var(--fs-lead); line-height: 1.55;
  color: var(--text-on-dark-muted); margin-top: 28px; max-width: 32em;
}
.hero__cta { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; }
.hero__trust {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
  margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--hairline-on-dark);
  font-family: var(--font-sans); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--platinum-300);
}
.hero__trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--metal); }

.hero__photo { position: relative; }
.hero__photo .frame {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-deep); aspect-ratio: 4 / 3.4;
}
.hero__photo .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo .frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5,23,18,.55) 100%);
}

/* ---------- PROBLEMA → SOLUÇÃO ---------- */
.problema__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.problema p + p { margin-top: 20px; }
.problema .bridge {
  border-left: 2px solid var(--emerald-300); padding-left: 24px; margin-top: 28px;
  font-size: var(--fs-body); color: var(--text-body);
}
.problema .bridge strong { color: var(--text-strong); font-weight: var(--fw-bold); }
.problema__cta { margin-top: 32px; }
.problema__aside { display: grid; gap: 16px; }
.impact-card {
  background: var(--surface-paper); border: 1px solid var(--hairline-on-light);
  border-radius: var(--r-md); padding: 26px 28px; box-shadow: var(--shadow-xs);
  display: flex; gap: 16px; align-items: flex-start;
}
.impact-card .ico { color: var(--emerald-600); flex: none; margin-top: 2px; }
.impact-card svg { width: 26px; height: 26px; }
.impact-card h3 { font-family: var(--font-sans); font-size: 15px; font-weight: 700; letter-spacing: 0.01em; color: var(--text-strong); }
.impact-card p { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.55; margin-top: 5px; }

/* ---------- SERVIÇOS ---------- */
.practice-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 56px; }
.area-card {
  position: relative; background: var(--surface-paper); border: 1px solid var(--hairline-on-light);
  border-radius: var(--r-md); padding: 34px 30px 30px;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
  box-shadow: var(--shadow-xs);
}
.area-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--hairline-on-light-strong); }
.area-card .num {
  position: absolute; top: 26px; right: 28px;
  font-family: var(--font-display); font-size: 20px; color: var(--platinum-400);
}
.area-card .ico { color: var(--emerald-600); margin-bottom: 20px; display: flex; }
.area-card .ico svg { width: 30px; height: 30px; }
.area-card h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h4); color: var(--text-strong); margin-bottom: 10px; line-height: 1.15; }
.area-card p { font-family: var(--font-body); font-size: var(--fs-sm); line-height: 1.65; color: var(--text-muted); }

/* ---------- COMO FUNCIONA ---------- */
.process-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 28px; margin-top: 56px; }
.process-step { border-top: 1px solid var(--hairline-on-dark-strong); padding-top: 24px; }
.process-step .n { font-family: var(--font-display); font-weight: 600; font-size: 2rem; color: var(--metal); line-height: 1; }
.process-step h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: var(--text-on-dark-strong); margin: 14px 0 8px; }
.process-step p { font-family: var(--font-body); font-size: var(--fs-sm); line-height: 1.6; color: var(--text-on-dark-muted); }
.process__cta { margin-top: 56px; display: flex; }

/* ---------- SÓCIOS / ADVOGADOS ---------- */
.lawyers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 56px; }
.lawyer-card {
  display: grid; grid-template-columns: 0.82fr 1fr; align-items: stretch;
  background: var(--surface-paper); border: 1px solid var(--hairline-on-light);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.lawyer-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--hairline-on-light-strong); }
.lawyer-card__photo { position: relative; min-height: 100%; background: var(--emerald-800); }
.lawyer-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.lawyer-card__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(5,23,18,.28) 100%);
}
.lawyer-card__body { padding: 34px 32px; display: flex; flex-direction: column; }
.lawyer-card__role {
  font-family: var(--font-sans); font-weight: var(--fw-medium); font-size: var(--fs-eyebrow);
  letter-spacing: var(--tr-eyebrow); text-transform: uppercase; color: var(--emerald-600);
}
.lawyer-card h3 {
  font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--fs-h4);
  color: var(--text-strong); line-height: 1.15; margin: 12px 0 14px;
}
.lawyer-card__oab {
  align-self: flex-start;
  font-family: var(--font-sans); font-weight: var(--fw-medium); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-900);
  background: var(--metal-grad); border-radius: var(--r-pill);
  padding: 6px 14px; box-shadow: var(--shadow-xs);
}
.lawyer-card__creds {
  margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--hairline-on-light);
  display: flex; flex-direction: column; gap: 12px;
}
.lawyer-card__creds li {
  display: flex; gap: 11px; align-items: flex-start;
  font-family: var(--font-body); font-size: var(--fs-sm); line-height: 1.5; color: var(--text-body);
}
.lawyer-card__creds svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--emerald-500); }

/* ---------- FAIXA DE CTA (dobras de seção) ---------- */
.section-cta {
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}
.section-cta p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--fw-medium);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.3;
  color: var(--text-strong);
  max-width: 22em;
}
.on-dark .section-cta p { color: var(--text-on-dark-strong); }
.section-cta .actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.section-cta .metal-rule { max-width: 80px; margin-bottom: 8px; opacity: .8; }

/* ---------- DIFERENCIAIS ---------- */
.values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 56px; }
.value {
  display: flex; gap: 16px; padding: 28px 28px; background: var(--surface-paper);
  border: 1px solid var(--hairline-on-light); border-radius: var(--r-md); box-shadow: var(--shadow-xs);
}
.value .ico { color: var(--emerald-600); flex: none; margin-top: 2px; }
.value .ico svg { width: 26px; height: 26px; }
.value h3 { font-family: var(--font-sans); font-weight: 700; font-size: 15px; letter-spacing: 0.01em; color: var(--text-strong); }
.value p { font-family: var(--font-body); font-size: var(--fs-sm); line-height: 1.55; color: var(--text-muted); margin-top: 6px; }

/* ---------- FAQ ---------- */
.faq { max-width: 880px; margin: 56px auto 0; }
.faq__item { border-bottom: 1px solid var(--hairline-on-light); }
.faq__q {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 0; font-family: var(--font-display); font-weight: 600;
  font-size: var(--fs-h4); color: var(--text-strong); line-height: 1.3;
}
.faq__q:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--r-sm); }
.faq__q .chev { flex: none; color: var(--emerald-600); transition: transform var(--dur-base) var(--ease-out); }
.faq__q .chev svg { width: 22px; height: 22px; display: block; }
.faq__item.is-open .faq__q .chev { transform: rotate(180deg); }
.faq__a { overflow: hidden; max-height: 0; transition: max-height var(--dur-slow) var(--ease-out); }
.faq__a-inner { padding: 0 0 26px; font-size: var(--fs-body); line-height: 1.7; color: var(--text-body); max-width: 64em; }

/* ---------- FORMULÁRIO / CONTATO ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.contact__info .lead { color: var(--text-on-dark-muted); margin-top: 24px; max-width: 26em; }
.contact__lines { margin-top: 36px; display: flex; flex-direction: column; gap: 18px; }
.contact__lines a, .contact__lines div { display: flex; align-items: center; gap: 14px; color: var(--platinum-200); font-family: var(--font-body); font-size: var(--fs-sm); }
.contact__lines .ico { color: var(--metal); display: flex; flex: none; }
.contact__lines .ico svg { width: 18px; height: 18px; }
.contact__lines a:hover { color: var(--platinum-100); }

.form-card {
  background: var(--surface-raised); border: 1px solid var(--hairline-on-dark);
  border-radius: var(--r-lg); padding: 38px 36px; box-shadow: var(--shadow-deep);
}
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label {
  font-family: var(--font-sans); font-weight: 500; font-size: 11.5px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--platinum-300);
}
.field label .req { color: var(--metal); }
.input, .textarea {
  width: 100%; font-family: var(--font-body); font-size: var(--fs-body); color: var(--platinum-100);
  background: rgba(7,33,27,0.5); border: 1px solid var(--hairline-on-dark-strong);
  border-radius: var(--r-sm); padding: 13px 15px; outline: none;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.input::placeholder, .textarea::placeholder { color: var(--text-on-dark-faint); }
.input:focus, .textarea:focus { border-color: var(--platinum-400); box-shadow: 0 0 0 3px rgba(240,241,236,.08); }
.textarea { resize: vertical; min-height: 120px; }
.field.has-error .input, .field.has-error .textarea { border-color: var(--danger); }
.field__error { display: none; font-family: var(--font-body); font-size: var(--fs-xs); color: #e0897f; margin-top: 2px; }
.field.has-error .field__error { display: block; }

.consent { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 22px; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--emerald-400); cursor: pointer; }
.consent span { font-family: var(--font-body); font-size: var(--fs-sm); line-height: 1.5; color: var(--platinum-300); }
.consent a { color: var(--metal-bright); text-decoration: underline; text-underline-offset: 2px; }
.consent.has-error span { color: #e0897f; }
.form__micro { font-family: var(--font-body); font-size: var(--fs-xs); color: var(--text-on-dark-faint); text-align: center; margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.form__micro svg { width: 14px; height: 14px; }

/* ---------- FOOTER ---------- */
.footer { background: #040f0c; border-top: 1px solid var(--hairline-on-dark); padding-top: 64px; padding-bottom: 40px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 48px; align-items: start; }
.footer__brand p { font-family: var(--font-body); font-size: var(--fs-sm); line-height: 1.65; color: var(--text-on-dark-faint); margin-top: 22px; max-width: 30em; }
.footer__col h4 { font-family: var(--font-sans); font-weight: 500; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--metal); margin-bottom: 18px; }
.footer__col ul { display: flex; flex-direction: column; gap: 12px; }
.footer__col a, .footer__col li { font-family: var(--font-body); font-size: var(--fs-sm); color: var(--platinum-300); line-height: 1.5; }
.footer__col a:hover { color: var(--platinum-100); }
.footer__oab { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.footer__oab b { font-family: var(--font-body); color: var(--platinum-200); font-weight: 600; font-size: var(--fs-sm); }
.footer__oab span { font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--metal); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; align-items: center; }
.footer__notice { font-family: var(--font-body); font-size: var(--fs-xs); color: var(--text-on-dark-faint); max-width: 52em; line-height: 1.6; }
.footer__copy { font-family: var(--font-body); font-size: var(--fs-xs); color: var(--text-on-dark-faint); }
.footer__totop { font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--platinum-300); display: inline-flex; align-items: center; gap: 8px; }
.footer__totop:hover { color: var(--platinum-100); }
.footer__totop svg { width: 14px; height: 14px; }

/* ---------- WHATSAPP FLOAT ---------- */
.wa-float {
  position: fixed;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 60;
  width: 60px; height: 60px; border-radius: var(--r-pill);
  background: var(--whatsapp); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(5,23,18,.40);
  transition: transform var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.wa-float:hover { background: var(--whatsapp-hover); transform: translateY(-2px) scale(1.04); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(31,138,91,.5); animation: wa-pulse 2.6s var(--ease-out) infinite;
}
@keyframes wa-pulse { 0% { box-shadow: 0 0 0 0 rgba(31,138,91,.45); } 70% { box-shadow: 0 0 0 16px rgba(31,138,91,0); } 100% { box-shadow: 0 0 0 0 rgba(31,138,91,0); } }

/* skip link */
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--emerald-700); color: #fff; padding: 12px 18px; border-radius: var(--r-sm);
  font-family: var(--font-sans); font-size: 13px;
}
.skip-link:focus { left: 16px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .hero__photo { order: -1; max-width: 520px; margin-inline: auto; width: 100%; }
  .problema__grid { grid-template-columns: 1fr; gap: 44px; }
  .practice-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .lawyers-grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer__brand { grid-column: 1 / -1; }

  .nav__mobile.is-open {
    display: block; position: absolute; top: 78px; left: 0; right: 0;
    background: rgba(7,33,27,0.97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--hairline-on-dark); padding: 16px 0 24px;
  }
  .nav__mobile.is-open .container { display: flex; flex-direction: column; gap: 2px; }
  .nav__mobile a:not(.btn) { font-family: var(--font-sans); font-size: 16px; letter-spacing: 0.04em; color: var(--platinum-100); padding: 13px 0; border-bottom: 1px solid var(--hairline-on-dark); }
  .nav__mobile .btn { margin-top: 16px; }
  .nav.is-scrolled { background: rgba(7,33,27,0.92); }
  .nav:has(.nav__mobile.is-open) { background: rgba(7,33,27,0.97); backdrop-filter: blur(14px); border-bottom-color: transparent; }
}

@media (max-width: 680px) {
  .practice-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; gap: 4px; }
  .process-step { border-top: none; border-left: 1px solid var(--hairline-on-dark-strong); padding: 4px 0 24px 22px; }
  .values-grid { grid-template-columns: 1fr; }
  .lawyer-card { grid-template-columns: 1fr; }
  .lawyer-card__photo { aspect-ratio: 4 / 3; min-height: 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .hero { padding-top: 120px; }
  .contact__grid { gap: 40px; }
}

/* ============================================================
   ANIMAÇÕES — entrada do hero, máquina de escrever e scroll reveal
   100% CSS/JS nativo, sem bibliotecas. Anima só opacity/transform
   (compositadas pela GPU) para não impactar o carregamento.
   ============================================================ */

/* ---------- Máquina de escrever (título do hero) ----------
   .js esconde o título antes do paint (anti-flash). Se o JS não
   rodar, o seletor abaixo nunca se aplica e o texto fica visível. */
.js #hero-title { visibility: hidden; }
/* Revela ao iniciar a digitação. Usa o ID para vencer a
   especificidade de `.js #hero-title` (regra acima). */
.js #hero-title.tw,
#hero-title.tw { visibility: visible; }
/* Cursor piscante exibido somente enquanto digita */
.hero h1.tw::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 0.92em;
  margin-left: 0.06em;
  vertical-align: -0.08em;
  background: var(--metal-bright);
  animation: tw-caret 0.9s steps(1) infinite;
}

@keyframes tw-caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* ---------- Entrada do hero (CSS puro, sem flash) ---------- */
.js .hero .eyebrow,
.js .hero__sub,
.js .hero__cta,
.js .hero__trust {
  opacity: 0;
  transform: translateY(18px);
  animation: hero-in 0.8s var(--ease-out) forwards;
}
.js .hero .eyebrow { animation-delay: 0.05s; }
.js .hero__sub    { animation-delay: 0.18s; }
.js .hero__cta    { animation-delay: 0.34s; }
.js .hero__trust  { animation-delay: 0.5s; }

.js .hero__photo {
  opacity: 0;
  transform: translateY(20px) scale(0.985);
  animation: hero-in 1s var(--ease-out) 0.22s forwards;
}
@keyframes hero-in   { to { opacity: 1; transform: none; } }

/* ---------- Reveal ao rolar (classe .reveal adicionada via JS) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Acessibilidade: respeita "reduzir movimento" ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto; }
  .js #hero-title { visibility: visible; }
  .hero h1.tw::after { display: none; }
  .reveal { opacity: 1; transform: none; }
}
