/* ==========================================================================
   Fabiano Barbosa — Advocacia e Assessoria Jurídica
   Estilos complementares ao Tailwind
   ========================================================================== */

:root {
  --bg: #0a0a0a;
  --silver-100: #e5e7eb;
  --silver-400: #9ca3af;
  --cta: #22c55e;
}

html { -webkit-text-size-adjust: 100%; }
body { background-color: var(--bg); overflow-x: hidden; }
body.menu-aberto { overflow: hidden; }

.text-balance { text-wrap: balance; }

/* Barra de rolagem ------------------------------------------------------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #262626; border-radius: 99px; border: 2px solid #0a0a0a; }
::-webkit-scrollbar-thumb:hover { background: #3f3f46; }

/* Tipografia de destaque ------------------------------------------------- */
.text-silver-gradient {
  background: linear-gradient(120deg, #ffffff 0%, var(--silver-100) 35%, var(--silver-400) 70%, #d4d4d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--silver-400);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.section-eyebrow::after {
  content: '';
  height: 1px;
  width: 44px;
  background: linear-gradient(90deg, rgba(156, 163, 175, 0.6), transparent);
}
.text-center .section-eyebrow { justify-content: center; }
.text-center .section-eyebrow::before {
  content: '';
  height: 1px;
  width: 44px;
  background: linear-gradient(270deg, rgba(156, 163, 175, 0.6), transparent);
}

/* Header ----------------------------------------------------------------- */
#header.is-scrolled {
  background-color: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.nav-link { position: relative; transition: color 0.25s ease; }
.nav-link:hover { color: var(--silver-100); }
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 1px;
  width: 0;
  background: var(--silver-400);
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }
.nav-link.is-active { color: var(--silver-100); }
.nav-link.is-active::after { width: 100%; }

/* Menu mobile ------------------------------------------------------------ */
#menu-mobile.is-open {
  max-height: 24rem;
  border-top-color: rgba(255, 255, 255, 0.07);
  background-color: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.menu-mobile-link {
  padding: 0.95rem 0.15rem;
  font-size: 15px;
  color: #a3a3a3;
  transition: color 0.25s ease, padding-left 0.25s ease;
}
.menu-mobile-link:active,
.menu-mobile-link:hover { color: #fff; padding-left: 0.5rem; }

.burger { position: relative; display: block; width: 18px; height: 12px; }
.burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.burger span:nth-child(3) { bottom: 0; }
#menu-toggle[aria-expanded='true'] .burger span:nth-child(1) { transform: translateY(5.25px) rotate(45deg); }
#menu-toggle[aria-expanded='true'] .burger span:nth-child(2) { opacity: 0; }
#menu-toggle[aria-expanded='true'] .burger span:nth-child(3) { transform: translateY(-5.25px) rotate(-45deg); }

/* Barra de progresso de leitura ------------------------------------------ */
#progresso { transition: width 0.12s linear; opacity: 0; }
#header.is-scrolled #progresso { opacity: 1; }

/* Grade sutil de fundo --------------------------------------------------- */
.hairline-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 100%);
}

/* Botão WhatsApp --------------------------------------------------------- */
.btn-whatsapp {
  box-shadow: 0 10px 30px -10px rgba(34, 197, 94, 0.5);
}
.btn-whatsapp:hover {
  box-shadow: 0 14px 40px -10px rgba(34, 197, 94, 0.65);
  transform: translateY(-2px);
}
.btn-whatsapp:active { transform: translateY(0); }

/* Cards de serviços ------------------------------------------------------ */
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  padding: 1.75rem;
  transition: border-color 0.35s ease, transform 0.35s ease, background 0.35s ease;
}
.service-card:hover {
  border-color: rgba(229, 231, 235, 0.22);
  transform: translateY(-4px);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.012));
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  width: 3rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--silver-100);
  margin-bottom: 1.35rem;
}
.service-icon svg { height: 1.5rem; width: 1.5rem; }

.service-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0.7rem;
}
.service-text {
  font-size: 14px;
  line-height: 1.7;
  font-weight: 300;
  color: #a3a3a3;
}

/* Brilho sutil que acompanha o cursor no card */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(180px circle at var(--mx, 50%) var(--my, 0%), rgba(229, 231, 235, 0.07), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.service-card:hover::before { opacity: 1; }

/* Público-alvo ----------------------------------------------------------- */
.audience-card {
  display: flex;
  gap: 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
  padding: 1.5rem;
  transition: border-color 0.35s ease, background 0.35s ease;
}
.audience-card:hover {
  border-color: rgba(229, 231, 235, 0.2);
  background: rgba(255, 255, 255, 0.035);
}
.audience-num {
  flex-shrink: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  color: var(--silver-400);
  padding-top: 0.1rem;
  min-width: 2rem;
}
.audience-title {
  font-size: 16px;
  font-weight: 500;
  color: #f5f5f5;
  margin-bottom: 0.5rem;
}
.audience-text {
  font-size: 14px;
  line-height: 1.7;
  font-weight: 300;
  color: #a3a3a3;
}

/* Etapas ----------------------------------------------------------------- */
.step-card { position: relative; }
.step-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3.25rem;
  width: 3.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0a0a0a;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  color: var(--silver-100);
  margin-bottom: 1.35rem;
  position: relative;
  z-index: 1;
}
.step-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.6rem;
}
.step-text {
  font-size: 14px;
  line-height: 1.7;
  font-weight: 300;
  color: #a3a3a3;
}

/* Credenciais ------------------------------------------------------------ */
.cred-card {
  display: flex;
  gap: 0.9rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
  padding: 1.1rem 1.15rem;
}
.cred-icon { height: 1.4rem; width: 1.4rem; color: var(--silver-100); flex-shrink: 0; margin-top: 0.15rem; }
.cred-title { font-size: 14px; font-weight: 500; color: #f5f5f5; }
.cred-text { font-size: 12.5px; color: #8a8a8a; margin-top: 0.2rem; font-weight: 300; line-height: 1.5; }

/* FAQ -------------------------------------------------------------------- */
.faq-item { padding: 0; }
.faq-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  cursor: pointer;
  list-style: none;
  padding: 1.5rem 0.25rem;
  font-size: 16px;
  font-weight: 400;
  color: #e5e5e5;
  transition: color 0.25s ease;
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-summary:hover { color: #fff; }

.faq-icon {
  position: relative;
  flex-shrink: 0;
  height: 1.25rem;
  width: 1.25rem;
  margin-top: 0.15rem;
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--silver-400);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.faq-icon::before { top: 50%; left: 0; width: 100%; height: 1px; transform: translateY(-50%); }
.faq-icon::after { left: 50%; top: 0; height: 100%; width: 1px; transform: translateX(-50%); }
.faq-item[open] .faq-icon::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-item[open] .faq-summary { color: #fff; }

.faq-content {
  padding: 0 2.75rem 1.75rem 0.25rem;
  font-size: 15px;
  line-height: 1.75;
  font-weight: 300;
  color: #a3a3a3;
  animation: faq-open 0.35s ease;
}
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Footer ----------------------------------------------------------------- */
.footer-title {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--silver-100);
}

/* Animação de entrada ---------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(6px);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Escala suave nas imagens ao entrarem em cena --------------------------- */
.img-zoom img {
  transform: scale(1.08);
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.reveal.is-visible .img-zoom img,
.img-zoom.is-visible img { transform: scale(1); }

/* Camadas com parallax --------------------------------------------------- */
[data-parallax] { will-change: transform; }

/* Título com linha que se desenha ao aparecer ---------------------------- */
.section-eyebrow::after,
.section-eyebrow::before { transition: width 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s; }
.reveal:not(.is-visible) .section-eyebrow::after,
.reveal:not(.is-visible) .section-eyebrow::before { width: 0; }

/* Botão flutuante -------------------------------------------------------- */
#fab-whatsapp {
  transform: translateY(12px) scale(0.85);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease;
}
#fab-whatsapp.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }

/* Acessibilidade --------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--silver-100);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Ajustes para telas pequenas -------------------------------------------- */
@media (max-width: 639px) {
  .section-eyebrow { font-size: 10px; letter-spacing: 0.26em; }
  .section-eyebrow::after, .section-eyebrow::before { width: 30px; }

  .service-card { padding: 1.4rem 1.35rem; }
  .service-icon { height: 2.6rem; width: 2.6rem; margin-bottom: 1.1rem; border-radius: 0.65rem; }
  .service-icon svg { height: 1.3rem; width: 1.3rem; }
  .service-title { font-size: 1.2rem; }

  .audience-card { padding: 1.25rem 1.2rem; gap: 0.9rem; }
  .audience-num { font-size: 1rem; min-width: 1.6rem; }
  .audience-title { font-size: 15px; }

  .step-badge { height: 2.9rem; width: 2.9rem; font-size: 1.05rem; margin-bottom: 1.1rem; }
  .step-title { font-size: 1.12rem; }

  .cred-card { padding: 1rem; }

  .faq-summary { font-size: 15px; gap: 1rem; padding: 1.25rem 0; }
  .faq-content { padding: 0 2rem 1.4rem 0; font-size: 14.5px; }

  /* alvos de toque confortáveis */
  .btn-whatsapp { min-height: 46px; }
}

/* Em telas de toque, os efeitos de hover não se aplicam ------------------ */
@media (hover: none) {
  .service-card:hover { transform: none; }
  .btn-whatsapp:hover { transform: none; }
  .service-card::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; filter: none; }
  .img-zoom img { transform: none; }
  [data-parallax] { transform: none !important; }
}
