/* ------------------------------------------------------------
   Páginas internas: casos, caso, advogados, grupo.
   Depende dos tokens de styles.css.
   ------------------------------------------------------------ */

body.inner { padding-top: 5.5rem; }
body.inner main > .wrap:last-child { padding-bottom: clamp(3rem, 8vh, 5rem); }
.cases { margin-bottom: 1rem; }
body.inner .topbar { background: rgba(255, 247, 225, .88); backdrop-filter: blur(10px); color: var(--canopy); box-shadow: 0 1px 0 rgba(23, 61, 46, .08); }
.menu a[aria-current="page"]:not(.menu-cta) { text-decoration: underline; text-underline-offset: .35em; text-decoration-thickness: 2px; text-decoration-color: var(--leaf); }
.menu-cta[aria-current="page"] { background: #1a9b4a; color: #fff; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter); }
.page-head { display: grid; gap: .6rem; padding: clamp(2rem, 6vh, 4rem) 0 2rem; }
.page-head h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-variation-settings: "SOFT" 90, "opsz" 144; max-width: 16ch; }
.page-head p { max-width: var(--measure); font-size: 1.1rem; }

/* ---------- grid de casos ---------- */
.cases { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.case-card {
  display: grid; grid-template-rows: auto 1fr; gap: .6rem;
  aspect-ratio: 1; padding: 1.4rem;
  border-radius: 2rem; background: var(--c); color: var(--ink);
  text-decoration: none; position: relative; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.case-card:hover, .case-card:focus-visible { transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 22px 40px -22px rgba(23,61,46,.5); }
.case-card svg { width: clamp(96px, 46%, 150px); height: auto; justify-self: end; }
.case-card .t { align-self: end; display: grid; gap: .2rem; }
.case-card h2, .case-card h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.1; max-width: 12ch; }
.case-card p { font-size: .95rem; opacity: .85; max-width: 24ch; }

/* ---------- página do caso ---------- */
.case-hero {
  background: var(--c); color: var(--ink);
  border-radius: 0 0 3rem 3rem;
  margin: -5.5rem 0 0; padding: 7.5rem var(--gutter) 2.5rem;
}
.case-hero .wrap { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 1.5rem; }
.case-hero .back { font-size: .95rem; font-weight: 600; text-decoration: none; display: inline-block; margin-bottom: 1rem; opacity: .85; }
.case-hero .back:hover { opacity: 1; text-decoration: underline; text-underline-offset: .3em; }
.case-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-variation-settings: "SOFT" 90, "opsz" 144; max-width: 14ch; }
.case-hero p { margin-top: .5rem; font-size: 1.1rem; opacity: .9; max-width: var(--measure); }
.case-hero svg { width: clamp(120px, 18vw, 200px); height: auto; }
@media (max-width: 40rem) { .case-hero .wrap { grid-template-columns: 1fr; } .case-hero svg { justify-self: end; } }

.steps { display: grid; gap: 1.25rem; margin: 2rem 0 0; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.step {
  background: #fff; border-radius: 1.75rem; padding: 1.5rem;
  box-shadow: 0 1px 0 rgba(23,61,46,.06), 0 16px 40px -28px rgba(23,61,46,.35);
  display: grid; gap: 1rem; align-content: start;
}
.step h2 { display: flex; align-items: center; gap: .6rem; font-size: 1.5rem; }
.step h2 .dot { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--c); flex: none; box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px var(--c); }
.step ol, .step ul { margin: 0; padding: 0 0 0 1.2rem; display: grid; gap: .6rem; }
.step ol li::marker { font-family: var(--font-display); font-weight: 600; }

/* checklist com memória */
.check { list-style: none; padding: 0; }
.check li { display: flex; gap: .7rem; align-items: flex-start; }
.check input { flex: none; width: 1.3rem; height: 1.3rem; margin-top: .15rem; accent-color: var(--leaf); cursor: pointer; }
.check label { cursor: pointer; }
.check input:checked + label { text-decoration: line-through; opacity: .55; }
.check-foot { font-size: .85rem; opacity: .7; }

/* canais */
.channels { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.channel {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .3rem 1rem;
  padding: .9rem 1.1rem; border-radius: 1.1rem;
  background: var(--dawn); text-decoration: none; color: var(--canopy);
  box-shadow: inset 0 0 0 2px rgba(23,61,46,.12);
  transition: box-shadow .15s ease, background-color .15s ease;
}
.channel:hover, .channel:focus-visible { background: #fff; box-shadow: inset 0 0 0 2px var(--canopy); }
.channel strong { font-weight: 600; }
.channel small { grid-column: 1; font-size: .85rem; opacity: .75; }
.channel .go { grid-row: span 2; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--c); color: var(--ink); display: grid; place-items: center; font-weight: 700; }
.channel.tel .go { background: var(--sun); color: var(--canopy); }

.nota { margin: 1.5rem 0 0; padding: 1.1rem 1.3rem; border-radius: 1.25rem; background: #fff3d2; font-size: .98rem; border-left: .5rem solid var(--sun); }

.case-lawyers { margin-top: 3rem; }
.case-lawyers h2 { font-size: 1.75rem; }
.case-lawyers p { margin-top: .4rem; }

/* ---------- advogados ---------- */
.filter { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 0; }
.filter button {
  font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer;
  padding: .5rem 1rem; border-radius: 999px; border: 2px solid var(--canopy);
  background: transparent; color: var(--canopy);
}
.filter button[aria-pressed="true"] { background: var(--canopy); color: var(--dawn); }
.filter button .sw { display: inline-block; width: .7em; height: .7em; border-radius: 50%; margin-right: .45em; background: var(--c); vertical-align: -.02em; }

.lawyers { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.lawyer {
  display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; align-items: start;
  padding: 1.25rem; border-radius: 1.6rem; background: #fff;
  box-shadow: 0 1px 0 rgba(23,61,46,.06), 0 16px 40px -28px rgba(23,61,46,.35);
}
.lawyer .avatar {
  grid-row: span 3; width: 3.4rem; height: 3.4rem; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-display); font-size: 1.3rem; font-weight: 500;
  background: var(--c); color: var(--ink);
}
.lawyer h3 { font-size: 1.2rem; }
.lawyer .meta { font-size: .9rem; opacity: .75; }
.lawyer .tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .3rem; }
.lawyer .tag { font-size: .78rem; font-weight: 600; padding: .15rem .6rem; border-radius: 999px; background: var(--c); color: var(--ink); }
.lawyer .tags .status { font-size: .78rem; font-weight: 600; padding: .15rem .6rem; border-radius: 999px; }
.status-oferta { background: var(--canopy); color: var(--dawn); }
.status-contatar { background: #fff3d2; color: var(--canopy); box-shadow: inset 0 0 0 1.5px var(--sun); }
.status-gratis { background: #25d366; color: #0b3b22; }
.lawyer-note { grid-column: 1 / -1; font-size: .92rem; margin-top: .7rem; opacity: .9; }
.lawyer .fonte { grid-column: 1 / -1; font-size: .82rem; margin-top: .6rem; opacity: .7; }
.lawyer .contact { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.lawyer .contact a { flex: 1 1 9rem; }
.lawyer .contact a.ig { background: #fdf0f5; color: #7a1f4a; box-shadow: inset 0 0 0 2px rgba(122,31,74,.25); }
.redes { margin-top: 3.5rem; padding-bottom: 3rem; }
.redes h2 { font-size: 1.75rem; margin-bottom: 1rem; max-width: 20ch; }
.lawyer .contact a {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .65rem .8rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .92rem;
  background: var(--dawn); color: var(--canopy); box-shadow: inset 0 0 0 2px rgba(23,61,46,.12);
}
.lawyer .contact a.wa { background: #25d366; color: #0b3b22; box-shadow: none; }
.lawyer .contact a:hover { filter: brightness(1.04); box-shadow: inset 0 0 0 2px var(--canopy); }
.lawyer .contact a.wa:hover { box-shadow: none; }
.lawyer .contact svg { width: 1.1em; height: 1.1em; fill: currentColor; }
.empty { padding: 2rem; text-align: center; opacity: .7; }

.mock-banner {
  margin-top: 1.25rem; padding: .8rem 1.1rem; border-radius: 1rem;
  background: #fff3d2; border-left: .5rem solid var(--sun); font-size: .95rem;
}

/* ---------- formulário do grupo ---------- */
.form-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 3rem; align-items: start; padding-bottom: 4rem; }
@media (max-width: 52rem) { .form-page { grid-template-columns: 1fr; } }
.form-side h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-variation-settings: "SOFT" 90, "opsz" 144; }
.form-side p { margin-top: 1rem; max-width: 34ch; font-size: 1.1rem; }
.form-side .wa-badge { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.5rem; padding: .5rem 1rem .5rem .6rem; border-radius: 999px; background: #25d366; color: #0b3b22; font-weight: 600; }
.form-side .wa-badge svg { width: 1.4rem; height: 1.4rem; fill: currentColor; }

.form {
  display: grid; gap: 1rem; padding: 1.75rem; border-radius: 2rem; background: #fff;
  box-shadow: 0 1px 0 rgba(23,61,46,.06), 0 16px 40px -28px rgba(23,61,46,.35);
}
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field select {
  font: inherit; padding: .8rem 1rem; border-radius: 1rem; border: 2px solid rgba(23,61,46,.18);
  background: var(--dawn); color: var(--canopy); min-width: 0; width: 100%;
}
.field input:focus-visible, .field select:focus-visible { outline: none; border-color: var(--sun); box-shadow: 0 0 0 4px rgba(246,196,83,.35); }
.field .hint { font-size: .82rem; opacity: .7; }
.combo { position: relative; }
.combo-list {
  position: absolute; left: 0; right: 0; top: calc(100% + .35rem); z-index: 20;
  list-style: none; margin: 0; padding: .4rem; max-height: 16rem; overflow: auto;
  background: #fff; border-radius: 1rem; box-shadow: 0 1px 0 rgba(23,61,46,.08), 0 18px 40px -20px rgba(23,61,46,.45);
}
.combo-list li { padding: .6rem .8rem; border-radius: .7rem; cursor: pointer; display: flex; justify-content: space-between; gap: .5rem; }
.combo-list li:hover, .combo-list li[aria-selected="true"] { background: #fff3d2; }
.combo-list small { font-size: .75rem; font-weight: 600; color: var(--leaf); }
.field.invalid input, .field.invalid select { border-color: #e4572e; }
.field .err { font-size: .85rem; color: #b3401c; min-height: 1.2em; }
.form .btn { justify-self: start; margin-top: .25rem; }
.form-note { font-size: .85rem; opacity: .7; }
.form-done { display: grid; gap: .5rem; padding: 1.75rem; border-radius: 2rem; background: #e8f5ec; border: 2px solid var(--leaf); }
.form-done[hidden] { display: none; }
.form-done h2 { font-size: 1.6rem; }

/* ---------- landing: blocos novos ---------- */
.cases-home { padding: clamp(3rem, 8vh, 5rem) var(--gutter); max-width: 72rem; margin: 0 auto; }
.cases-home .more { display: inline-block; margin-top: 1.5rem; font-weight: 600; }
.two-up { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter) clamp(4rem, 10vh, 7rem); }
@media (max-width: 48rem) { .two-up { grid-template-columns: 1fr; } }
.tile { display: grid; gap: .5rem; align-content: end; padding: 2rem; border-radius: 2rem; min-height: 16rem; text-decoration: none; position: relative; overflow: hidden; }
.tile h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); max-width: 14ch; display: flex; align-items: center; gap: .5rem; }
.tile h2 .wa-mark { width: 1em; height: 1em; fill: currentColor; flex: none; }
.tile p { max-width: 30ch; opacity: .9; }
.tile svg { position: absolute; right: 1.5rem; top: 1.5rem; width: 120px; height: 120px; }
.tile-law { background: var(--canopy); color: var(--dawn); }
.tile-group { background: #25d366; color: #0b3b22; }
.tile:hover h2 { text-decoration: underline; text-underline-offset: .3em; }
