/* =========================================================================
   Allan Lessa Advocacia — protótipo de prospecção (Ryan Schmidt)
   Identidade pública do escritório: azul-marinho profundo + dourado champagne,
   wordmark em serifa de alto contraste. Tema escuro assumido (o Instagram do
   escritório é todo escuro/dourado), então as cores vivem no :root e NÃO são
   trocadas por prefers-color-scheme: o prospect vê exatamente o que foi aprovado.
   ========================================================================= */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- tokens ---------- */
:root {
  --navy-950: #0B1526;
  --navy-900: #0E1A31;
  --navy-850: #0B1730;
  --navy-800: #13223F;
  --navy-750: #182B4C;
  --navy-700: #1E2C4F;
  --navy-600: #2B3C63;

  --gold: #C6A15B;
  --gold-bright: #DEC08A;
  --gold-deep: #A9853F;

  --ink-050: #F6F3EC;
  --ink-100: #EDEAE2;
  --ink-300: #C4CBDA;
  --ink-400: #9AA3B7;
  --ink-500: #7C8299;
  --ink-muted: #6C7793;

  --line: rgba(198, 161, 91, .20);
  --line-soft: rgba(255, 255, 255, .08);

  --serif: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --sans: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1140px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --radius: 14px;
}

/* ---------- base ---------- */
body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-300);
  background: var(--navy-900);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  color: var(--ink-050);
  letter-spacing: .003em;
  text-wrap: balance;
}

h2 { font-size: clamp(1.95rem, 1.4rem + 2.4vw, 2.9rem); }
h3 { font-size: 1.32rem; }

p { text-wrap: pretty; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 0.6rem + 2.7vw, 2.5rem);
}

.section { padding-block: clamp(3.75rem, 2.6rem + 5.5vw, 6.75rem); border-top: 1px solid var(--line); }
.section--tight { padding-block: clamp(3rem, 2.2rem + 3.5vw, 4.75rem); }

.eyebrow {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}

.lede {
  font-size: clamp(1.05rem, 1rem + .35vw, 1.22rem);
  color: var(--ink-300);
  max-width: 60ch;
}

/* ---------- demo bar ---------- */
.demo-bar {
  background: var(--navy-950);
  color: var(--ink-400);
  font-size: .77rem;
  line-height: 1.45;
  text-align: center;
  padding: 9px 1.4rem;
  border-bottom: 1px solid var(--line);
}
.demo-bar strong { color: var(--gold-bright); font-weight: 600; }

/* ---------- skip link ---------- */
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--navy-950);
  padding: .6rem 1rem;
  font-weight: 600;
  z-index: 200;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 26, 49, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: padding .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.nav.is-scrolled {
  background: rgba(11, 21, 38, .94);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .7);
}
.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.05rem;
  transition: padding-block .25s var(--ease);
}
.nav.is-scrolled .nav-in { padding-block: .68rem; }

.nav-logo {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-mono { width: 34px; height: auto; filter: drop-shadow(0 1px 4px rgba(0,0,0,.35)); }
.nav-wm { display: flex; flex-direction: column; line-height: 1.05; }
.nav-wm-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-050);
}
.nav-wm-sub {
  font-size: .58rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 3px;
}

.nav-links {
  display: flex;
  gap: 1.9rem;
  margin-left: auto;
}
.nav-links a {
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-300);
  position: relative;
  padding-block: .3rem;
  transition: color .18s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .24s var(--ease);
}
.nav-links a:hover { color: var(--ink-050); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta { flex-shrink: 0; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  padding: .95rem 1.7rem;
  border-radius: 9px;
  text-decoration: none;
  transition: transform .18s var(--ease), box-shadow .22s var(--ease), background .2s var(--ease);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn--gold {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: var(--navy-950);
  box-shadow: 0 14px 34px -14px rgba(198, 161, 91, .6);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -14px rgba(198, 161, 91, .7); }

.btn--ghost {
  border: 1px solid var(--line);
  color: var(--ink-100);
  background: rgba(255, 255, 255, .02);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--ink-050); transform: translateY(-2px); }

.btn--sm { padding: .6rem 1.1rem; font-size: .85rem; }
.btn--block { width: 100%; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(198, 161, 91, .16), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
  padding-block: clamp(3.5rem, 2.4rem + 6vw, 6.5rem) clamp(4.5rem, 3rem + 8vw, 8rem);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(700px 380px at 20% 30%, #000, transparent 75%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 1rem + 5vw, 4.5rem);
  align-items: center;
}
.hero-copy > * + * { margin-top: 1.4rem; }
.hero h1 {
  font-size: clamp(2.4rem, 1.5rem + 4.3vw, 4.05rem);
  font-weight: 600;
}
.hero h1 .accent { color: var(--gold-bright); font-style: italic; }
.hero .lede { margin-top: 1.5rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 1.9rem;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 2.3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-soft);
}
.trust-strip li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  color: var(--ink-400);
}
.trust-strip svg { width: 15px; height: 15px; color: var(--gold); flex-shrink: 0; }

/* retrato do hero */
.hero-photo { position: relative; margin: 0; }
.hero-photo-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-750);
  box-shadow: 0 44px 90px -44px rgba(0, 0, 0, .85);
}
.hero-photo-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(222, 192, 138, .4);
  border-radius: 8px;
  z-index: 2;
  pointer-events: none;
}
.hero-photo-frame img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  object-position: center 12%;
  filter: saturate(.92) contrast(1.02);
}
.hero-photo-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  padding: 2.4rem 1.4rem 1.15rem;
  background: linear-gradient(180deg, transparent, rgba(11, 21, 38, .92) 78%);
  display: flex;
  flex-direction: column;
}
.hpc-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--ink-050);
  line-height: 1.1;
}
.hpc-role {
  font-size: .64rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: .4rem;
}
.hero-photo-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--ink-300);
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-soft);
}

/* ---------- por que começar ---------- */
.porque { background: var(--navy-850); border-bottom: 1px solid var(--line); }
.section-head { max-width: 60ch; }
.section-head .eyebrow { display: block; margin-bottom: .9rem; }
.section-head p { margin-top: 1rem; color: var(--ink-400); }

.porque-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  margin-top: 3rem;
}
.porque-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--navy-750);
  padding: 1.7rem 1.4rem;
  display: flex;
  flex-direction: column;
  transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.porque-card:hover { transform: translateY(-4px); border-color: var(--gold); background: var(--navy-700); }
.porque-card .ico {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(198, 161, 91, .12);
  border: 1px solid var(--line);
  margin-bottom: 1.1rem;
}
.porque-card .ico svg { width: 20px; height: 20px; color: var(--gold-bright); }
.porque-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.porque-card p { font-size: .92rem; color: var(--ink-400); line-height: 1.6; }

/* ---------- como funciona (fluxo numerado, sem caixa) ---------- */
.passos-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  margin-top: 3.25rem;
  counter-reset: passo;
}
.passo {
  position: relative;
  padding-top: 2.6rem;
}
.passo::before {
  counter-increment: passo;
  content: counter(passo);
  position: absolute;
  top: 0; left: 0;
  font-family: var(--serif);
  font-size: 3.4rem;
  font-weight: 600;
  color: var(--gold);
  line-height: .8;
}
.passo::after {
  content: "";
  position: absolute;
  top: 1.35rem; left: 3.2rem; right: -1.6rem;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.passo:last-child::after { display: none; }
.passo h3 { margin-bottom: .5rem; font-size: 1.24rem; }
.passo p { font-size: .93rem; color: var(--ink-400); }

/* ---------- áreas (lista com fio dourado, 2 colunas) ---------- */
.areas { background: var(--navy-850); border-block: 1px solid var(--line); }
.areas-list {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  border-top: 1px solid var(--line);
}
.area {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: .9rem;
  padding: 1.5rem .25rem;
  border-bottom: 1px solid var(--line);
  transition: padding-left .2s var(--ease);
}
.area:hover { padding-left: .6rem; }
.area svg { width: 22px; height: 22px; color: var(--gold-bright); margin-top: 3px; }
.area h3 { font-size: 1.14rem; margin-bottom: .3rem; }
.area p { font-size: .88rem; color: var(--ink-400); line-height: 1.55; }

.area--wide {
  grid-column: 1 / -1;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding-block: 1.9rem;
  border-bottom: 0;
}
.area--wide svg { margin-top: 0; }
.area--wide .btn { flex-shrink: 0; }
@media (max-width: 720px) {
  .area--wide { grid-template-columns: 26px 1fr; }
  .area--wide .btn { grid-column: 2; margin-top: .4rem; }
}

/* ---------- prova ---------- */
.prova {
  background:
    radial-gradient(900px 400px at 15% 0%, rgba(198, 161, 91, .1), transparent 62%),
    var(--navy-950);
  border-bottom: 1px solid var(--line);
}
.prova-note {
  font-size: .78rem;
  color: var(--ink-muted);
  margin-top: 1rem;
  max-width: 62ch;
  font-style: italic;
}
.prova-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 1rem + 2vw, 2.6rem);
  margin-top: 2.8rem;
}
.caso { display: flex; flex-direction: column; }
.caso .caso-tag {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: .8rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.caso dt {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: .3rem;
}
.caso dd { margin: 0 0 1.1rem; font-size: .96rem; color: var(--ink-300); line-height: 1.55; }
.caso dd:last-child { margin-bottom: 0; color: var(--ink-100); }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 780px; margin-top: 2.8rem; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--navy-800);
  margin-bottom: .8rem;
  overflow: hidden;
  transition: border-color .2s var(--ease);
}
.faq__item.is-open { border-color: var(--gold); }
.faq__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  text-align: left;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink-050);
}
.faq__toggle .chev {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--gold);
  transition: transform .3s var(--ease);
}
.faq__item.is-open .faq__toggle .chev { transform: rotate(180deg); }
.faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s var(--ease);
}
.faq__item.is-open .faq__panel { grid-template-rows: 1fr; }
.faq__panel-inner { overflow: hidden; }
.faq__panel-inner p {
  padding: 0 1.4rem 1.3rem;
  font-size: .94rem;
  color: var(--ink-400);
  line-height: 1.65;
}

/* ---------- CTA final ---------- */
.cta-final {
  margin: clamp(3.5rem, 2.5rem + 4vw, 6rem) auto clamp(4rem, 3rem + 4vw, 6.5rem);
  max-width: var(--wrap);
}
.cta-final-inner {
  position: relative;
  border: 1px solid var(--gold);
  border-radius: 20px;
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(198, 161, 91, .18), transparent 65%),
    linear-gradient(180deg, var(--navy-750), var(--navy-900));
  padding: clamp(2.75rem, 2rem + 4vw, 4.5rem) clamp(1.5rem, 1rem + 3vw, 3.5rem);
  text-align: center;
  margin-inline: clamp(1.15rem, 0.6rem + 2.7vw, 2.5rem);
  box-shadow: 0 50px 100px -50px rgba(0, 0, 0, .8);
}
.cta-final-inner h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); }
.cta-final-inner p { margin: 1.1rem auto 2rem; max-width: 52ch; color: var(--ink-300); }
.cta-final-inner .btn { font-size: 1rem; padding: 1.05rem 2rem; }

/* ---------- footer ---------- */
.footer {
  background: var(--navy-950);
  border-top: 1px solid var(--line);
  padding-block: clamp(2.75rem, 2rem + 3vw, 4rem);
  font-size: .88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.footer-brand img { width: 36px; }
.footer-brand .fb-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-050);
}
.footer-brand .fb-sub {
  font-size: .56rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 3px;
}
.footer p { color: var(--ink-400); max-width: 42ch; }
.footer h4 {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: .55rem; color: var(--ink-400); }
.footer a { text-decoration: none; transition: color .18s var(--ease); }
.footer a:hover { color: var(--gold-bright); }
.footer-legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  justify-content: space-between;
  align-items: baseline;
}
.footer-legal small { color: var(--ink-muted); font-size: .78rem; }
.footer__note {
  border-top: 1px solid var(--line-soft);
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  font-size: .74rem;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 70ch;
}

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: var(--navy-950);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 120;
  box-shadow: 0 16px 40px -12px rgba(198, 161, 91, .6);
  transition: transform .2s var(--ease);
  animation: wa-pulse 2.6s var(--ease) infinite;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 38px; height: 38px; }
@keyframes wa-pulse {
  0% { box-shadow: 0 16px 40px -12px rgba(198, 161, 91, .6), 0 0 0 0 rgba(198, 161, 91, .5); }
  70% { box-shadow: 0 16px 40px -12px rgba(198, 161, 91, .6), 0 0 0 22px rgba(198, 161, 91, 0); }
  100% { box-shadow: 0 16px 40px -12px rgba(198, 161, 91, .6), 0 0 0 0 rgba(198, 161, 91, 0); }
}

/* ---------- responsivo ---------- */
@media (max-width: 1000px) {
  .porque-grid { grid-template-columns: repeat(2, 1fr); }
  .prova-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 400px; }
  .passos-flow { grid-template-columns: 1fr; gap: 1.5rem; }
  .passo { padding-top: 0; padding-left: 3.4rem; }
  .passo::before { font-size: 2.7rem; }
  .passo::after { display: none; }
  .areas-list { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .porque-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .nav-wm-sub { display: none; }
  .wa-float { width: 68px; height: 68px; right: 16px; bottom: 16px; }
  .wa-float svg { width: 32px; height: 32px; }
  .trust-strip { gap: .9rem 1.2rem; }
}
