/* ============================================================
   COELHO & RIBEIRO ADVOCACIA — LP Inventário
   Design system: Clássico-institucional
   ============================================================ */

:root {
  /* Cores — defaults sobrescritos por Tweaks */
  --c-ink:        oklch(0.22 0.035 260);   /* azul-marinho profundo (primário) */
  --c-ink-deep:   oklch(0.16 0.030 260);   /* mais escuro para hero */
  --c-paper:      oklch(0.975 0.006 85);   /* off-white quente */
  --c-paper-2:    oklch(0.955 0.008 85);   /* off-white levemente mais escuro */
  --c-rule:       oklch(0.85 0.010 85);    /* hairline */
  --c-text:       oklch(0.28 0.020 260);   /* corpo */
  --c-text-soft:  oklch(0.45 0.015 260);   /* secundário */
  --c-text-faint: oklch(0.62 0.012 260);   /* terciário */
  --c-accent:     oklch(0.62 0.095 75);    /* dourado discreto */
  --c-accent-deep:oklch(0.50 0.090 70);

  /* Tipografia */
  --f-serif: "Cormorant Garamond", "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --f-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --f-mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Espaçamento */
  --maxw: 1200px;
  --gutter: clamp(20px, 4vw, 64px);
  --section-pad: clamp(72px, 10vw, 128px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--c-paper);
  color: var(--c-text);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--c-ink); color: var(--c-paper); }

/* ============================================================
   Tipografia
   ============================================================ */
.serif { font-family: var(--f-serif); font-weight: 500; letter-spacing: -0.005em; }
.mono  { font-family: var(--f-mono);  font-weight: 400; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-text-faint);
  font-weight: 500;
}

.eyebrow .dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--c-accent);
  margin-right: 10px;
  vertical-align: middle;
  border-radius: 50%;
}

h1, h2, h3, h4 {
  font-family: var(--f-serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--c-ink);
  text-wrap: balance;
}

p { text-wrap: pretty; }

/* ============================================================
   Layout helpers
   ============================================================ */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-pad) 0;
}

.rule {
  height: 1px;
  background: var(--c-rule);
  border: 0;
  margin: 0;
}

/* ============================================================
   Top Bar
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--c-paper) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-rule);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand__mark {
  width: 38px;
  height: 38px;
  border: 1px solid var(--c-ink);
  display: grid;
  place-items: center;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 20px;
  font-weight: 500;
  color: var(--c-ink);
  letter-spacing: -0.04em;
}

.brand__name {
  font-family: var(--f-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--c-ink);
  letter-spacing: 0.005em;
  line-height: 1.1;
}

.brand__sub {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-text-faint);
  margin-top: 2px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.topnav a {
  font-size: 14px;
  color: var(--c-text-soft);
  transition: color 0.15s;
}

.topnav a:hover { color: var(--c-ink); }

.topbar__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--c-ink);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--c-ink);
  background: transparent;
  transition: all 0.2s;
}

.topbar__cta:hover {
  background: var(--c-ink);
  color: var(--c-paper);
}

@media (max-width: 880px) {
  .topnav { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background: var(--c-paper);
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(72px, 10vw, 128px);
  position: relative;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.hero__crumb {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--c-rule);
}

.hero__crumb .pipe {
  width: 1px;
  height: 12px;
  background: var(--c-rule);
}

.hero__title {
  font-size: clamp(44px, 5.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.022em;
  margin: 0 0 32px;
  color: var(--c-ink);
}

.hero__title em {
  font-style: italic;
  color: var(--c-accent-deep);
  font-weight: 400;
}

.hero__lede {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--c-text);
  max-width: 56ch;
  margin: 0 0 40px;
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--c-rule);
}

.hero__meta-item .label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text-faint);
  margin-bottom: 8px;
}

.hero__meta-item .value {
  font-family: var(--f-serif);
  font-size: 22px;
  color: var(--c-ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.hero__meta-item .sub {
  font-size: 12px;
  color: var(--c-text-soft);
  margin-top: 4px;
}

@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__meta { grid-template-columns: 1fr 1fr; gap: 20px; }
}

/* ============================================================
   Form Card
   ============================================================ */
.formcard {
  background: var(--c-paper-2);
  border: 1px solid var(--c-rule);
  padding: clamp(28px, 3vw, 40px);
  position: sticky;
  top: 96px;
}

.formcard__head {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--c-rule);
  margin-bottom: 28px;
}

.formcard__title {
  font-family: var(--f-serif);
  font-size: 26px;
  color: var(--c-ink);
  line-height: 1.15;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.formcard__sub {
  font-size: 13px;
  color: var(--c-text-soft);
  line-height: 1.5;
}

.field { display: block; margin-bottom: 18px; }

.field__label {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text-faint);
  margin-bottom: 8px;
}

.field__input,
.field__select,
.field__textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--c-paper);
  border: 1px solid var(--c-rule);
  font-family: var(--f-sans);
  font-size: 14px;
  color: var(--c-ink);
  transition: border-color 0.15s;
  border-radius: 0;
}

.field__input:focus,
.field__select:focus,
.field__textarea:focus {
  outline: none;
  border-color: var(--c-ink);
}

.field__textarea { resize: vertical; min-height: 80px; }

.field__hint {
  font-size: 11px;
  color: var(--c-text-faint);
  margin-top: 6px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 22px;
  background: var(--c-ink);
  color: var(--c-paper);
  border: 1px solid var(--c-ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.1s;
  border-radius: 0;
}

.btn-primary:hover { background: var(--c-ink-deep); }
.btn-primary:active { transform: translateY(1px); }

.btn-primary .arrow {
  display: inline-block;
  transition: transform 0.2s;
}
.btn-primary:hover .arrow { transform: translateX(3px); }

.formcard__alt {
  text-align: center;
  margin-top: 18px;
  font-size: 12px;
  color: var(--c-text-soft);
}

.formcard__alt a {
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-rule);
  padding-bottom: 1px;
  transition: border-color 0.15s;
}

.formcard__alt a:hover { border-bottom-color: var(--c-ink); }

.formcard__legal {
  font-size: 11px;
  color: var(--c-text-faint);
  line-height: 1.5;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--c-rule);
}

/* Success state */
.formcard.is-sent .formcard__form { display: none; }
.formcard__success {
  display: none;
  text-align: center;
  padding: 20px 0 8px;
}
.formcard.is-sent .formcard__success { display: block; }
.formcard__success .check {
  width: 44px;
  height: 44px;
  border: 1px solid var(--c-accent);
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  color: var(--c-accent-deep);
}
.formcard__success h4 {
  font-family: var(--f-serif);
  font-size: 22px;
  margin: 0 0 8px;
  color: var(--c-ink);
}
.formcard__success p {
  font-size: 13px;
  color: var(--c-text-soft);
  margin: 0;
}

/* ============================================================
   Sections gerais
   ============================================================ */
.section--dark {
  background: var(--c-ink-deep);
  color: oklch(0.92 0.008 85);
}

.section--dark h2 { color: var(--c-paper); }
.section--dark .eyebrow { color: oklch(0.72 0.020 85); }
.section--dark .rule { background: oklch(1 0 0 / 0.10); }

.section__head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(32px, 5vw, 80px);
  margin-bottom: clamp(48px, 6vw, 80px);
  align-items: end;
}

.section__head--center {
  grid-template-columns: 1fr;
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section__title {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.018em;
  margin: 14px 0 0;
}

.section__lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--c-text);
  max-width: 60ch;
  margin: 0;
}

.section--dark .section__lede { color: oklch(0.84 0.010 85); }

@media (max-width: 760px) {
  .section__head { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================================
   Pain points (numbered list)
   ============================================================ */
.pains {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--c-rule);
}

.pain {
  padding: 36px 32px 36px 0;
  border-bottom: 1px solid var(--c-rule);
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
}

.pain:nth-child(odd) { border-right: 1px solid var(--c-rule); padding-right: 36px; }
.pain:nth-child(even) { padding-left: 36px; }

.pain__num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--c-accent-deep);
  padding-top: 6px;
}

.pain__title {
  font-family: var(--f-serif);
  font-size: 22px;
  line-height: 1.15;
  color: var(--c-ink);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.pain__body {
  font-size: 14.5px;
  color: var(--c-text);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 760px) {
  .pains { grid-template-columns: 1fr; }
  .pain:nth-child(odd) { border-right: 0; padding-right: 0; }
  .pain:nth-child(even) { padding-left: 0; }
}

/* ============================================================
   Comparativo (extrajudicial vs judicial)
   ============================================================ */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid oklch(1 0 0 / 0.12);
}

.compare__col {
  padding: clamp(32px, 4vw, 48px);
}

.compare__col + .compare__col {
  border-left: 1px solid oklch(1 0 0 / 0.12);
}

.compare__tag {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: oklch(0.72 0.06 75);
  margin-bottom: 16px;
}

.compare__name {
  font-family: var(--f-serif);
  font-size: 32px;
  color: var(--c-paper);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
}

.compare__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.compare__list li {
  padding: 16px 0;
  border-bottom: 1px solid oklch(1 0 0 / 0.10);
  font-size: 14.5px;
  line-height: 1.55;
  color: oklch(0.86 0.010 85);
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
}

.compare__list li:last-child { border-bottom: 0; }

.compare__list li .k {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: oklch(0.65 0.012 85);
  padding-top: 3px;
}

@media (max-width: 760px) {
  .compare { grid-template-columns: 1fr; }
  .compare__col + .compare__col { border-left: 0; border-top: 1px solid oklch(1 0 0 / 0.12); }
}

/* ============================================================
   Process (numbered steps)
   ============================================================ */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--c-rule);
  border-bottom: 1px solid var(--c-rule);
}

.step {
  padding: 40px 28px;
  border-right: 1px solid var(--c-rule);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.step:last-child { border-right: 0; }

.step__num {
  font-family: var(--f-serif);
  font-size: 56px;
  font-style: italic;
  color: var(--c-accent-deep);
  line-height: 1;
  font-weight: 400;
}

.step__title {
  font-family: var(--f-serif);
  font-size: 20px;
  line-height: 1.15;
  color: var(--c-ink);
  margin: 0;
  letter-spacing: -0.005em;
}

.step__body {
  font-size: 13.5px;
  color: var(--c-text-soft);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 880px) {
  .process { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(1), .step:nth-child(2) { border-bottom: 1px solid var(--c-rule); }
}
@media (max-width: 520px) {
  .process { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--c-rule); }
  .step:last-child { border-bottom: 0; }
}

/* ============================================================
   About / Team
   ============================================================ */
.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
}

.member {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.member__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  background:
    repeating-linear-gradient(
      135deg,
      oklch(0.90 0.008 85) 0 8px,
      oklch(0.93 0.008 85) 8px 16px
    );
  border: 1px solid var(--c-rule);
  display: grid;
  place-items: center;
  position: relative;
}

.member__photo::after {
  content: attr(data-label);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text-faint);
}

.member__name {
  font-family: var(--f-serif);
  font-size: 24px;
  color: var(--c-ink);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.005em;
}

.member__oab {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-faint);
  margin-top: 4px;
}

.member__role {
  font-size: 14px;
  color: var(--c-text);
  margin: 4px 0 0;
}

.member__bio {
  font-size: 13.5px;
  color: var(--c-text-soft);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 880px) {
  .team { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { border-top: 1px solid var(--c-rule); }

.faq__item {
  border-bottom: 1px solid var(--c-rule);
}

.faq__q {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 28px 0;
  display: grid;
  grid-template-columns: 40px 1fr 32px;
  gap: 20px;
  align-items: start;
  text-align: left;
  cursor: pointer;
  color: var(--c-ink);
}

.faq__num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--c-text-faint);
  padding-top: 6px;
}

.faq__qtext {
  font-family: var(--f-serif);
  font-size: 21px;
  line-height: 1.25;
  color: var(--c-ink);
  letter-spacing: -0.005em;
}

.faq__icon {
  width: 24px;
  height: 24px;
  position: relative;
  margin-top: 4px;
  justify-self: end;
}

.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--c-ink);
  transition: transform 0.25s;
}
.faq__icon::before { width: 14px; height: 1px; }
.faq__icon::after  { width: 1px; height: 14px; }

.faq__item.is-open .faq__icon::after { transform: translate(-50%, -50%) scaleY(0); }

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq__a-inner {
  padding: 0 0 28px 60px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--c-text);
  max-width: 70ch;
}

.faq__item.is-open .faq__a { max-height: 600px; }

/* ============================================================
   CTA Final
   ============================================================ */
.cta-final {
  text-align: center;
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--c-ink-deep);
  color: var(--c-paper);
}

.cta-final h2 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  margin: 14px 0 28px;
  color: var(--c-paper);
  letter-spacing: -0.018em;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-final p {
  max-width: 56ch;
  margin: 0 auto 40px;
  color: oklch(0.86 0.010 85);
  font-size: 17px;
  line-height: 1.6;
}

.cta-final__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-on-dark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: var(--c-paper);
  color: var(--c-ink);
  border: 1px solid var(--c-paper);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.2s;
}

.btn-on-dark:hover { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-ink-deep); }

.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: transparent;
  color: var(--c-paper);
  border: 1px solid oklch(1 0 0 / 0.4);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.2s;
}

.btn-ghost-light:hover { border-color: var(--c-paper); }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: oklch(0.10 0.020 260);
  color: oklch(0.78 0.010 85);
  padding: 64px 0 32px;
  font-size: 13px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  margin-bottom: 56px;
}

.footer__brand .brand__mark { border-color: var(--c-paper); color: var(--c-paper); }
.footer__brand .brand__name { color: var(--c-paper); }
.footer__brand p {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.6;
  color: oklch(0.72 0.010 85);
  max-width: 38ch;
}

.footer__col h5 {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: oklch(0.65 0.012 85);
  margin: 0 0 16px;
  font-weight: 500;
}

.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin-bottom: 10px; line-height: 1.5; }
.footer__col a:hover { color: var(--c-paper); }

.footer__bottom {
  border-top: 1px solid oklch(1 0 0 / 0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__legal {
  font-size: 11px;
  color: oklch(0.60 0.010 85);
  line-height: 1.6;
  max-width: 80ch;
}

.footer__oab {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: oklch(0.60 0.010 85);
}

@media (max-width: 760px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* ============================================================
   Floating WhatsApp
   ============================================================ */
.wa-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px 14px 16px;
  background: var(--c-ink);
  color: var(--c-paper);
  border: 1px solid var(--c-ink);
  font-size: 13px;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 32px -16px oklch(0 0 0 / 0.4);
  transition: transform 0.2s, background 0.2s;
}

.wa-fab:hover { transform: translateY(-2px); background: var(--c-ink-deep); }
.wa-fab svg { width: 18px; height: 18px; }

/* ============================================================
   Mini-utilities
   ============================================================ */
.kbd {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.divider-label {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-text-faint);
  margin: 16px 0;
}

.divider-label::before, .divider-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--c-rule);
}
