/* ==========================================================================
   LEXÁRIO — site institucional
   Base cromática/tipográfica: tokens.css (--lex-*). Navy + bronze, sóbrio,
   OAB-friendly. Sem framework, sem build. Lora (marca/títulos) + Inter (UI).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--lex-font-sans);
  color: var(--lex-text);
  background: var(--lex-paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--lex-font-serif);
  color: var(--lex-ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 500;
  letter-spacing: .2px;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.28rem; font-weight: 600; }

p  { margin: 0 0 1rem; }
a  { color: var(--lex-link); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; display: block; }

:focus-visible {
  outline: 2px solid var(--lex-focus-ring);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px var(--lex-focus-halo);
  border-radius: 3px;
}

.container { width: min(1120px, 92vw); margin-inline: auto; }
.section   { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--muted { background: var(--lex-surface-muted); }
.section--ink   { background: var(--lex-ink-strong); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }
.section--ink p { color: #d7dbe2; }

.eyebrow {
  font-family: var(--lex-font-sans);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: .74rem;
  font-weight: 600;
  color: var(--lex-bronze-strong);
  margin: 0 0 1rem;
}
.section--ink .eyebrow { color: var(--lex-bronze); }

.lead { font-size: 1.18rem; color: #3d4350; max-width: 60ch; }
.section--ink .lead { color: #c8cdd6; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--lex-font-sans);
  font-weight: 600; font-size: 1rem;
  padding: .8rem 1.5rem;
  border-radius: var(--lex-radius-md);
  border: 1.5px solid transparent;
  cursor: pointer; transition: .18s ease;
  text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--lex-bronze-strong); color: #fff; box-shadow: var(--lex-shadow-sm); }
.btn--primary:hover { background: #764f2c; box-shadow: var(--lex-shadow-md); }
.btn--ink { background: var(--lex-ink); color: #fff; }
.btn--ink:hover { background: var(--lex-ink-strong); }
.btn--ghost { background: transparent; color: var(--lex-ink); border-color: var(--lex-border); }
.btn--ghost:hover { border-color: var(--lex-ink); background: rgba(22,35,58,.04); }
.section--ink .btn--ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.section--ink .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,245,240,.88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--lex-border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.nav__brand { display: inline-flex; align-items: center; }
.nav__brand img { height: 34px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  color: var(--lex-ink); font-weight: 500; font-size: .96rem;
}
.nav__links a:hover { color: var(--lex-bronze-strong); text-decoration: none; }
.nav__cta { margin-left: .4rem; }
.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; color: var(--lex-ink);
}

/* ---------- Hero ---------- */
.hero { padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }
.hero__note { margin-top: 1.3rem; font-size: .92rem; color: #5a6270; }
.hero__art {
  background: linear-gradient(160deg, var(--lex-ink) 0%, var(--lex-ink-strong) 100%);
  border-radius: var(--lex-radius-lg);
  padding: 2.5rem; box-shadow: var(--lex-shadow-md);
  display: flex; align-items: center; justify-content: center;
  min-height: 320px; position: relative; overflow: hidden;
}
.hero__art::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 80% -10%, rgba(169,124,80,.22), transparent 60%);
}
.hero__art svg, .hero__art img { width: 62%; position: relative; z-index: 1; }

/* ---------- Grid de cards ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--lex-surface);
  border: 1px solid var(--lex-border);
  border-radius: var(--lex-radius-lg);
  padding: 1.9rem;
  box-shadow: var(--lex-shadow-sm);
  transition: .2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--lex-shadow-md); border-color: var(--lex-bronze); }
.card__tag {
  font-family: var(--lex-font-serif); font-weight: 600;
  color: var(--lex-ink); font-size: 1.35rem; margin-bottom: .35rem;
}
.card__tag .lex { color: var(--lex-ink); }
.card p { color: #4a505c; font-size: .98rem; flex: 1; }
.card__link { margin-top: 1rem; font-weight: 600; font-size: .95rem; display: inline-flex; align-items: center; gap: .35rem; }

/* ícone bronze redondo */
.ico {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--lex-surface-muted);
  display: grid; place-items: center; margin-bottom: 1.1rem;
  color: var(--lex-bronze-strong);
}
.ico svg { width: 24px; height: 24px; }

/* ---------- Feature rows ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.feature + .feature { margin-top: 3.5rem; }
.feature--rev .feature__media { order: 2; }
.feature__media {
  background: var(--lex-surface); border: 1px solid var(--lex-border);
  border-radius: var(--lex-radius-lg); padding: 2rem; box-shadow: var(--lex-shadow-sm);
}
.checklist { list-style: none; margin: 1rem 0 0; padding: 0; }
.checklist li { position: relative; padding-left: 1.9rem; margin-bottom: .7rem; color: #3d4350; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .35em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--lex-bronze-strong);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3,1fr); gap: 1.6rem; }
.step { position: relative; padding-top: .5rem; }
.step__n {
  font-family: var(--lex-font-serif); font-size: 2.2rem; color: var(--lex-bronze);
  font-weight: 600; line-height: 1;
}
.step h3 { margin-top: .5rem; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .btn { margin: .4rem; }

/* ---------- Módulos / pills ---------- */
.pills { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.pill {
  background: var(--lex-surface); border: 1px solid var(--lex-border);
  border-radius: 999px; padding: .45rem 1rem; font-size: .9rem;
  font-weight: 500; color: var(--lex-ink);
}

/* ---------- Product hero (páginas internas) ---------- */
.phero { padding: clamp(3rem,7vw,5rem) 0 clamp(2rem,5vw,3.5rem); }
.phero__wm { height: 54px; width: auto; margin-bottom: 1.4rem; }
.badge {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .5px;
  background: var(--lex-surface-muted); color: var(--lex-bronze-strong);
  border: 1px solid var(--lex-border); padding: .3rem .8rem; border-radius: 999px;
  margin-bottom: 1rem;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--lex-ink-strong); color: #c8cdd6; padding: 3.5rem 0 2rem; }
.site-footer h4 { color: #fff; font-family: var(--lex-font-sans); font-size: .82rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 1rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer__grid a { color: #c8cdd6; font-size: .95rem; display: block; margin-bottom: .55rem; }
.footer__grid a:hover { color: #fff; }
.site-footer .brand img { height: 30px; margin-bottom: 1rem; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.5rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: .85rem; color: #9aa2b0;
}

.hide { display: none !important; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .hero__grid, .feature, .feature--rev .feature__media { grid-template-columns: 1fr; }
  .feature--rev .feature__media { order: 0; }
  .grid--3, .grid--2, .steps { grid-template-columns: 1fr; }
  .hero__art { min-height: 240px; order: -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav__links {
    position: fixed; inset: 70px 0 auto 0;
    background: var(--lex-paper); border-bottom: 1px solid var(--lex-border);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 1rem 6vw 1.5rem; box-shadow: var(--lex-shadow-md);
  }
  .nav__links.hide { display: none; }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding: .7rem 0; width: 100%; }
  .nav__cta { margin: .6rem 0 0; }
  .nav__toggle { display: grid; place-items: center; }
}
@media (min-width: 901px) { .nav__links { display: flex !important; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
