/* ==========================================================================
   IDEIA — padrão de card interativo
   Vale para qualquer elemento que use a mesma classe de card (.lawco-card):
   realce ao passar o mouse e abertura de um pop-up com CTA de contato.
   O pop-up é montado pelo cards-interativos.js a partir dos atributos
   data-titulo / data-detalhe / data-itens do próprio card.
   ========================================================================== */

/* ---------- 1. card clicável ---------- */
.lawco-card[data-card-modal] {
  cursor: pointer;
  transition: transform .28s cubic-bezier(.22, .61, .36, 1), box-shadow .28s ease,
              border-color .28s ease, background-color .28s ease;
}

/* régua âmbar que cresce na lateral esquerda */
.lawco-card[data-card-modal]::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  z-index: 2;
  transform: scaleY(0);
  transform-origin: top;
  background: linear-gradient(180deg, #ffe9a3, #ffc000 45%, #c98f00);
  transition: transform .34s cubic-bezier(.22, .61, .36, 1);
}

/* O sistema de revelação da página aplica "transform: none !important" em
   elementos .lawco-reveal já visíveis. Por isso o movimento do card usa
   !important e "html body" na frente: sem isso o card não levanta no hover. */
html body .lawco-card[data-card-modal]:hover,
html body .lawco-card[data-card-modal]:focus-visible {
  transform: translateY(-6px) !important;
  border-color: #ffc0008c;
  background: #fff;
  box-shadow: 0 22px 52px #0f172a24, 0 8px 22px #ffc0002e;
  outline: none;
}

html body .lawco-card[data-card-modal]:hover::after,
html body .lawco-card[data-card-modal]:focus-visible::after { transform: scaleY(1); }

/* ícone acende junto com o card */
.lawco-card[data-card-modal] .lawco-icon {
  transition: background-color .28s ease, border-color .28s ease, color .28s ease, transform .28s ease;
}
.lawco-card[data-card-modal]:hover .lawco-icon,
.lawco-card[data-card-modal]:focus-visible .lawco-icon {
  color: #1a1206;
  border-color: #ffc000;
  transform: translateY(-1px) scale(1.04);
  background: linear-gradient(135deg, #ffe9a3 0%, #ffc000 42%, #e8ad00 72%, #c98f00 100%);
}

/* convite para abrir */
.lawco-card-abrir {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  color: #a16207;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.lawco-card-abrir span { transition: transform .28s cubic-bezier(.22, .61, .36, 1); }
.lawco-card[data-card-modal]:hover .lawco-card-abrir span { transform: translateX(4px); }
.lawco-card[data-card-modal]:hover .lawco-card-abrir { color: #7c4a02; }

@media (prefers-reduced-motion: reduce) {
  .lawco-card[data-card-modal],
  .lawco-card[data-card-modal]::after,
  .lawco-card[data-card-modal] .lawco-icon,
  .lawco-card-abrir span { transition: none; }
  html body .lawco-card[data-card-modal]:hover,
  html body .lawco-card[data-card-modal]:focus-visible { transform: none !important; }
}

/* ---------- 2. pop-up ---------- */
.idc-backdrop {
  position: fixed;
  inset: 0;
  /* acima do cabeçalho do site, que usa 2147483000 */
  z-index: 2147483600;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #0b1220c9;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .26s ease;
}
.idc-backdrop.idc-aberto { opacity: 1; }

.idc-painel {
  position: relative;
  width: min(660px, 100%);
  max-height: min(86vh, 780px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: linear-gradient(#fff 0%, #fbfcfe 100%);
  border: 1px solid #0f172a14;
  border-radius: 28px;
  box-shadow: 0 40px 90px #050b16a6;
  padding: 34px 34px 28px;
  transform: translateY(16px) scale(.985);
  opacity: 0;
  transition: transform .3s cubic-bezier(.22, .61, .36, 1), opacity .3s ease;
}
.idc-backdrop.idc-aberto .idc-painel { transform: none; opacity: 1; }

/* O X fica acima do título, na faixa do cabeçalho: o recuo à direita vai para o
   cabeçalho, e não para o título. Assim título, texto e lista terminam no mesmo
   ponto e o bloco de leitura fica alinhado dos dois lados. */
.idc-topo { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 6px; padding-right: 54px; }
.idc-icone {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #1a1206;
  background: linear-gradient(135deg, #ffe9a3 0%, #ffc000 42%, #e8ad00 72%, #c98f00 100%);
  box-shadow: 0 10px 24px #ffc0002e;
}
.idc-num { font-size: 17px; font-weight: 900; letter-spacing: -.02em; }
.idc-icone svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9px; stroke-linecap: round; stroke-linejoin: round; }

.idc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #a16207;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.idc-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #ffc000, #c98f00);
}

.idc-fechar {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid #0f172a14;
  border-radius: 13px;
  background: #fff;
  color: #475569;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.idc-fechar:hover { background: #0f172a; color: #fff; border-color: #0f172a; transform: rotate(90deg); }

.idc-titulo {
  color: #0f172a;
  font-size: clamp(21px, 2.3vw, 26px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -.026em;
  margin: 0 0 14px;
  text-wrap: balance;
}
.idc-texto { color: #475569; font-size: 15.5px; line-height: 1.68; margin: 0 0 20px; }

.idc-lista { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 11px; }
.idc-lista li {
  position: relative;
  padding-left: 30px;
  color: #334155;
  font-size: 14.5px;
  line-height: 1.55;
}
.idc-lista li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #ffc0002e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a16207' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E") center/12px no-repeat;
}

.idc-acoes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid #0f172a0f;
}
.idc-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 24px;
  border-radius: 999px;
  color: #1a1206;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.01em;
  text-decoration: none;
  background: linear-gradient(135deg, #ffe9a3 0%, #ffc000 42%, #e8ad00 72%, #c98f00 100%);
  box-shadow: 0 12px 30px #ffc0003d;
  transition: transform .24s cubic-bezier(.22, .61, .36, 1), box-shadow .24s ease;
}
.idc-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 40px #ffc00059; }
.idc-cta span { transition: transform .24s ease; }
.idc-cta:hover span { transform: translateX(3px); }

.idc-secundario {
  background: none;
  border: 0;
  padding: 12px 6px;
  color: #64748b;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.idc-secundario:hover { color: #0f172a; }

body.idc-sem-rolagem { overflow: hidden; }

@media (max-width: 640px) {
  .idc-backdrop { padding: 14px; align-items: flex-end; }
  .idc-painel { padding: 26px 22px 22px; border-radius: 24px; max-height: 90vh; }
  .idc-titulo { margin-right: 40px; }
  .idc-acoes { flex-direction: column; align-items: stretch; }
  .idc-cta { justify-content: center; }
}
