/* ============================================================
   Taiana dos Santos — Advocacia Criminal
   Design tokens: cinza claro + dourado, minimalista, serifado sério
   ============================================================ */

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

:root {
  /* cor */
  --bg: #F5F4F1;
  --bg-alt: #ECEAE4;
  --ink: #1C1B18;
  --ink-soft: #5B584F;
  --ink-faint: #8A8778;
  --gold-1: #8A6D1E;
  --gold-2: #D8B65C;
  --gold-3: #F1E2B0;
  --line-gray: #B9B5A8;
  --white: #FFFFFF;
  --danger: #8C2F2F;

  /* tipografia */
  --font-display: 'Fraunces', 'Iowan Old Style', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* espaçamento */
  --section-pad: clamp(4rem, 8vw, 7.5rem);
  --container-w: 1180px;

  --radius: 2px;
  --shadow-soft: 0 12px 40px -16px rgba(28, 27, 24, 0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

/* O wrapper de vídeo que o CKEditor gera (figure.media) usa o truque de
   padding-bottom em % pra manter a proporção do vídeo. Esse truque só
   funciona com box-sizing content-box - o reset global (border-box) faz
   a caixa colapsar pra altura zero, escondendo o vídeo. */
figure.media,
figure.media div {
  box-sizing: content-box;
}
figure.media {
  margin: 1.5rem 0;
}
figure.media iframe {
  max-width: 100%;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; }

::selection { background: var(--gold-3); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold-1);
  outline-offset: 3px;
}

/* ---------- eyebrow / assinatura de duas linhas ---------- */

.eyebrow {
  display: inline-flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1.4rem;
}

.eyebrow__label {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.eyebrow__rule {
  position: relative;
  width: 74px;
  height: 8px;
}
.eyebrow__rule::before,
.eyebrow__rule::after {
  content: '';
  position: absolute;
  left: 0;
  border-radius: 2px;
}
.eyebrow__rule::before {
  top: 0;
  width: 42px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-1), var(--gold-2) 65%, var(--gold-3));
}
.eyebrow__rule::after {
  top: 6px;
  width: 68px;
  height: 1.5px;
  background: var(--line-gray);
}

.section-divider {
  position: relative;
  height: 10px;
  margin: 0 auto;
  width: 100%;
  max-width: var(--container-w);
}
.section-divider::before,
.section-divider::after {
  content: '';
  position: absolute;
  left: 1.5rem;
  border-radius: 2px;
}
.section-divider::before {
  top: 0;
  width: 96px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-1), var(--gold-2) 70%, var(--gold-3));
}
.section-divider::after {
  top: 7px;
  width: 160px;
  height: 1.5px;
  background: var(--line-gray);
}

/* ---------- botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.7rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn--gold {
  background: linear-gradient(120deg, var(--gold-1), var(--gold-2) 60%, var(--gold-1));
  background-size: 200% 100%;
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.btn--gold:hover { background-position: 100% 0; }

.btn--ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--bg); }

.btn--sm { padding: .7rem 1.3rem; font-size: .85rem; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 244, 241, 0.9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(28,27,24,0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.brand-group { display: flex; align-items: center; gap: .6rem; }
.brand-logo { width: 70px; height: 70px; object-fit: contain; }
.brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.brand span { color: var(--gold-1); }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a.nav-link {
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.site-nav a.nav-link:hover { color: var(--ink); }
.nav-links { display: flex; gap: 1.8rem; }

.nav-blog-mobile {
  display: none;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--line-gray);
  border-radius: var(--radius);
  padding: .5rem .8rem;
}
.nav-blog-mobile:hover { border-color: var(--gold-1); color: var(--gold-1); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-blog-mobile { display: inline-flex; }
  .site-header .container { flex-wrap: wrap; row-gap: .6rem; }
  .brand-logo { width: 44px; height: 44px; }
  .site-nav { gap: .8rem; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 320px; margin: 0 auto; }
}

.hero-headline {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  letter-spacing: -.01em;
  min-height: 1.2em;
}
.hero-headline .cursor {
  display: inline-block;
  width: 3px;
  height: .85em;
  background: var(--gold-1);
  margin-left: 2px;
  vertical-align: -0.08em;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-sub {
  margin-top: 1.6rem;
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 46ch;
  opacity: 0;
}

.hero-ctas {
  margin-top: 2.4rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
}

.hero-badge {
  margin-top: 2.2rem;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .82rem;
  color: var(--ink-soft);
  opacity: 0;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold-2);
  box-shadow: 0 0 0 4px rgba(216,182,92,.25);
}

.hero-photo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-photo-glow {
  position: absolute;
  width: 82%;
  aspect-ratio: 1;
  right: 6%;
  top: 4%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-3), transparent 68%);
  filter: blur(2px);
  z-index: 0;
}
.hero-photo-ring {
  position: absolute;
  inset: 4% 10% auto auto;
  width: 88%;
  aspect-ratio: 1;
  border: 1.5px solid var(--gold-2);
  border-radius: 50%;
  z-index: 0;
  opacity: .55;
}
.hero-photo {
  position: relative;
  z-index: 1;
  max-width: 380px;
  width: 100%;
}

/* ---------- sobre ---------- */

.sobre { padding: var(--section-pad) 0; }
.sobre .container {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
@media (max-width: 860px) {
  .sobre .container { grid-template-columns: 1fr; }
}
.sobre-title { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.sobre-text {
  margin-top: 1.4rem;
  color: var(--ink-soft);
  font-size: 1.04rem;
  max-width: 56ch;
}
.sobre-quote {
  margin-top: 1.8rem;
  padding-left: 1.2rem;
  border-left: 2px solid var(--gold-2);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
}
.sobre-figure {
  position: relative;
  background: var(--bg-alt);
  border-radius: var(--radius);
}
.sobre-figure::before {
  content: '';
  position: absolute;
  inset: -10px auto auto -10px;
  width: 60%;
  height: 60%;
  border: 1.5px solid var(--gold-2);
  z-index: 0;
}
.sobre-figure img { position: relative; z-index: 1; }
.sobre-tag {
  display: inline-block;
  margin-top: 1.6rem;
  font-size: .82rem;
  letter-spacing: .06em;
  color: var(--ink-faint);
}

/* ---------- áreas de atuação ---------- */

.areas { padding: var(--section-pad) 0; background: var(--bg-alt); }
.areas-head { max-width: 62ch; }
.areas-title { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.areas-sub { margin-top: 1rem; color: var(--ink-soft); font-size: 1.02rem; }

.areas-groups {
  margin-top: 3rem;
  display: grid;
  gap: 2.6rem;
}
.areas-group__label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-1);
  margin-bottom: 1rem;
  display: block;
}
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: rgba(28,27,24,0.09);
  border: 1px solid rgba(28,27,24,0.09);
}
.area-card {
  background: var(--bg-alt);
  padding: 1.5rem 1.4rem;
  transition: background .25s ease;
}
.area-card:hover { background: var(--white); }
.area-card h4 {
  font-size: 1.02rem;
  font-family: var(--font-body);
  font-weight: 600;
}
.area-card p {
  margin-top: .5rem;
  font-size: .9rem;
  color: var(--ink-soft);
}

/* ---------- depoimentos ---------- */

.depoimentos { padding: var(--section-pad) 0; }
.depo-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}
.depo-card {
  background: var(--white);
  border: 1px solid rgba(28,27,24,0.08);
  padding: 2rem 1.7rem;
  border-radius: var(--radius);
  position: relative;
}
.depo-card::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gold-2);
  line-height: 1;
  display: block;
  margin-bottom: .4rem;
}
.depo-card--print::before { display: none; }
.depo-text { color: var(--ink-soft); font-size: .98rem; }
.depo-print {
  width: 100%;
  border-radius: 6px;
  border: 1px solid rgba(28,27,24,0.1);
}
.depo-author {
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  gap: .65rem;
}
.depo-avatar-wrap {
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--gold-2);
  display: block;
}
.depo-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.depo-author-nome {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: .96rem;
  color: var(--ink-soft);
  letter-spacing: .01em;
}

@media (max-width: 600px) {
  .depo-avatar-wrap { flex-basis: 24px; width: 24px; height: 24px; }
  .depo-author-nome { font-size: .9rem; }
}
.depo-author {
  margin-top: 1.2rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- faq ---------- */

.faq { padding: var(--section-pad) 0; background: var(--bg-alt); }
.faq-list { margin-top: 2.6rem; max-width: 900px; }
.faq-item {
  border-bottom: 1px solid rgba(28,27,24,0.12);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.4rem 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}
.faq-q .plus {
  flex-shrink: 0;
  width: 22px; height: 22px;
  position: relative;
}
.faq-q .plus::before, .faq-q .plus::after {
  content: '';
  position: absolute;
  background: var(--gold-1);
  border-radius: 2px;
  transition: transform .25s ease;
}
.faq-q .plus::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.faq-q .plus::after { left: 50%; top: 0; width: 2px; height: 100%; transform: translateX(-50%); }
.faq-item.open .plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
  color: var(--ink-soft);
  font-size: .96rem;
}
.faq-a-inner { padding-bottom: 1.5rem; max-width: 70ch; }

/* ---------- contato conversacional ---------- */

.contato { padding: var(--section-pad) 0; }
.contato .container {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (max-width: 900px) {
  .contato .container { grid-template-columns: 1fr; }
}
.contato-info-title { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.contato-info-text { margin-top: 1.2rem; color: var(--ink-soft); max-width: 42ch; }
.contato-detail {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  font-size: .95rem;
}
.contato-detail div { display: flex; gap: .6rem; align-items: baseline; }
.contato-detail strong { color: var(--ink); font-weight: 600; min-width: 92px; display: inline-block; }
.contato-detail span { color: var(--ink-soft); }

.chat-card {
  background: var(--white);
  border: 1px solid rgba(28,27,24,0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  min-height: 420px;
}
.chat-log {
  flex: 1;
  padding: 1.8rem 1.8rem .6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  max-height: 420px;
}
.chat-bubble {
  max-width: 82%;
  padding: .8rem 1.05rem;
  border-radius: var(--radius);
  font-size: .94rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(6px);
}
.chat-bubble.bot {
  align-self: flex-start;
  background: var(--bg-alt);
  color: var(--ink);
  border-top-left-radius: 0;
}
.chat-bubble.user {
  align-self: flex-end;
  background: var(--ink);
  color: var(--bg);
  border-top-right-radius: 0;
}

.chat-options {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  padding: 0 1.8rem 1rem;
}
.chat-option {
  border: 1px solid var(--line-gray);
  background: var(--white);
  padding: .6rem 1rem;
  font-size: .88rem;
  font-family: var(--font-body);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.chat-option:hover { border-color: var(--gold-1); background: var(--gold-3); }

.chat-input-row {
  display: flex;
  gap: .7rem;
  padding: 1rem 1.4rem 1.4rem;
  border-top: 1px solid rgba(28,27,24,0.08);
}
.chat-input-row input,
.chat-input-row textarea {
  flex: 1;
  border: 1px solid var(--line-gray);
  border-radius: var(--radius);
  padding: .75rem .9rem;
  font-family: var(--font-body);
  font-size: .94rem;
  background: var(--bg);
  color: var(--ink);
}
.chat-input-row input:focus,
.chat-input-row textarea:focus { border-color: var(--gold-1); outline: none; }

.chat-send {
  border: none;
  background: linear-gradient(120deg, var(--gold-1), var(--gold-2));
  color: var(--white);
  width: 44px;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-final {
  padding: 1rem 1.8rem 1.6rem;
  display: none;
}
.chat-final.show { display: block; }
.chat-final p { color: var(--ink-soft); font-size: .9rem; margin-bottom: .8rem; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--bg);
  padding: 3.5rem 0 2rem;
}
.site-footer .container {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 760px) {
  .site-footer .container { grid-template-columns: 1fr; }
}
.footer-brand-group { display: flex; align-items: center; gap: .7rem; }
.footer-logo { width: 110px; height: 110px; object-fit: contain; }
.footer-brand { font-family: var(--font-display); font-size: 1.3rem; }
.footer-brand span { color: var(--gold-2); }
.footer-desc { margin-top: 1rem; color: #B9B6AA; font-size: .9rem; max-width: 36ch; }
.footer-col h5 {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
}
.footer-col a, .footer-col p {
  display: block;
  color: #C9C6BB;
  font-size: .9rem;
  margin-bottom: .6rem;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: .8rem;
  color: #928F82;
  text-align: center;
}

/* ---------- whatsapp flutuante ---------- */

.wpp-float {
  position: fixed;
  bottom: 1.6rem;
  right: 1.6rem;
  z-index: 50;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,.4);
  animation: pulse 2.6s ease-in-out infinite;
}
.wpp-float svg { width: 26px; height: 26px; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 10px 30px -8px rgba(0,0,0,.4), 0 0 0 0 rgba(216,182,92,.5); }
  50% { box-shadow: 0 10px 30px -8px rgba(0,0,0,.4), 0 0 0 10px rgba(216,182,92,0); }
}

/* ---------- reveal utilitário (GSAP alvo) ---------- */
.reveal { opacity: 0; transform: translateY(24px); }

/* ---------- blog ---------- */

.blog-hero { padding: clamp(3rem, 6vw, 5rem) 0 2rem; }
.blog-hero .areas-sub { margin-top: 1rem; }

.blog-lista { padding: 1rem 0 var(--section-pad); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}

.blog-card {
  display: block;
  background: var(--white);
  border: 1px solid rgba(28,27,24,0.08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }

.blog-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.blog-card-img--placeholder {
  background: linear-gradient(120deg, var(--bg-alt), var(--gold-3));
}

.blog-card-body { padding: 1.4rem 1.5rem 1.6rem; }
.blog-card-date { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-1); font-weight: 600; }
.blog-card-title { margin-top: .5rem; font-size: 1.15rem; font-family: var(--font-display); font-weight: 600; }
.blog-card-resumo { margin-top: .6rem; color: var(--ink-soft); font-size: .92rem; }
.blog-card-link { display: inline-block; margin-top: 1rem; font-size: .85rem; font-weight: 600; color: var(--ink); }

.blog-paginacao { display: flex; gap: .5rem; margin-top: 3rem; justify-content: center; }
.blog-pag-item {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(28,27,24,0.15);
  border-radius: 50%;
  font-size: .88rem;
}
.blog-pag-item.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.blog-post { padding: clamp(3rem, 6vw, 5rem) 0 var(--section-pad); }
.blog-post .container { max-width: 760px; }
.blog-voltar { display: inline-block; margin-bottom: 2rem; font-size: .88rem; color: var(--ink-soft); }
.blog-voltar:hover { color: var(--ink); }
.blog-post-title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-top: .8rem; }
.blog-post-capa { width: 100%; border-radius: var(--radius); margin-top: 2rem; }
.blog-post-conteudo {
  margin-top: 2.4rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}
.blog-post-conteudo h2, .blog-post-conteudo h3 { color: var(--ink); margin-top: 2rem; margin-bottom: .8rem; }
.blog-post-conteudo p { margin-bottom: 1.1rem; }
.blog-post-conteudo a { color: var(--gold-1); text-decoration: underline; }
.blog-post-conteudo img { border-radius: var(--radius); margin: 1.5rem 0; }

.blog-post-cta {
  margin-top: 3rem;
  padding: 1.6rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.blog-post-cta p { font-weight: 600; margin: 0; }
