/* ===================================================================
   Estefânia Maia Advocacia — Design System
   Paleta: azul-marinho + dourado (a partir da logo)
   Público 40-50: alta legibilidade, contraste forte, fontes maiores
   =================================================================== */

:root {
  --navy:        #1B2A4A;
  --navy-deep:   #131F36;
  --navy-soft:   #243758;
  --gold:        #C2A14D;
  --gold-light:  #D8BC73;
  --gold-dark:   #A8883A;
  --cream:       #F7F5F0;
  --cream-dark:  #ECE7DC;
  --graphite:    #2B2B2B;
  --gray:        #5A5F6A;
  --gray-light:  #8A909B;
  --white:       #FFFFFF;
  --line:        #E2DED4;

  --whatsapp:    #25D366;

  --serif: "Montserrat", "Inter", -apple-system, "Segoe UI", sans-serif;
  --logo:  "Cinzel", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --maxw: 1180px;
  --radius: 10px;
  --shadow: 0 12px 40px rgba(19, 31, 54, 0.12);
  --shadow-sm: 0 4px 16px rgba(19, 31, 54, 0.08);
  --transition: 0.25s ease;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--graphite);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.2; color: var(--navy); letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }
p { margin-bottom: 1rem; }

/* ---------- Utilitários ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy); color: var(--cream); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.text-center { text-align: center; }
.gold { color: var(--gold-dark); }

.eyebrow {
  display: inline-block; font-family: var(--sans); font-weight: 600;
  font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: 14px;
}
.section--navy .eyebrow { color: var(--gold-light); }
.section-head { max-width: 720px; margin: 0 auto 54px; text-align: center; }
.section-head p { color: var(--gray); font-size: 1.08rem; }
.section--navy .section-head p { color: #C9D2E2; }

.divider { width: 64px; height: 3px; background: var(--gold); border: 0; margin: 18px auto; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: 1.02rem;
  padding: 16px 30px; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: var(--transition); text-align: center;
  min-height: 52px;
}
.btn--wa { background: var(--whatsapp); color: var(--white); }
.btn--wa:hover { background: #1DB955; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(37,211,102,0.35); }
.btn--gold { background: var(--gold); color: var(--navy-deep); }
.btn--gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn--outline { background: transparent; border-color: var(--gold); color: var(--gold-dark); }
.btn--outline:hover { background: var(--gold); color: var(--navy-deep); }
.btn--ghost-light { background: transparent; border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn--ghost-light:hover { border-color: var(--gold-light); color: var(--gold-light); }
.btn-ico { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100; background: var(--navy);
  transition: var(--transition); border-bottom: 1px solid rgba(194,161,77,0.25);
}
.header.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,0.25); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.header__logo { display: flex; align-items: center; gap: 13px; }
.header__logo img { height: 44px; width: auto; }
.header__logo span { font-family: var(--logo); font-weight: 700; color: var(--white); font-size: 1.02rem; line-height: 1.18; letter-spacing: 0.08em; border-left: 1px solid rgba(216,188,115,0.45); padding-left: 13px; }
.header__logo span small { display: block; font-family: var(--sans); font-size: 0.58rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold-light); font-weight: 500; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: #DCE3F0; font-weight: 500; font-size: 0.97rem; transition: var(--transition); }
.nav a:hover { color: var(--gold-light); }
.header__cta { display: flex; align-items: center; gap: 16px; }
.header__cta .btn { padding: 11px 20px; min-height: 44px; font-size: 0.92rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--white); margin: 5px 0; transition: var(--transition); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-soft) 100%);
  color: var(--cream); position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(194,161,77,0.14), transparent 45%);
  pointer-events: none;
}
.hero::before {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 620px; height: 620px; max-width: 90%;
  background: url("../img/monograma.png") no-repeat center / contain;
  opacity: 0.05; z-index: 0; pointer-events: none;
}
.hero__inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 50px; align-items: center; padding: 70px 0 80px; position: relative; z-index: 2; }
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 em { color: var(--gold-light); font-style: normal; }
.hero__lead { font-size: 1.18rem; color: #D6DEEC; margin-bottom: 30px; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero__assurance { display: flex; flex-wrap: wrap; gap: 18px 26px; font-size: 0.92rem; color: #C9D2E2; }
.hero__assurance li { display: flex; align-items: center; gap: 8px; }
.hero__assurance li::before { content: "✓"; color: var(--gold-light); font-weight: 700; }
.hero__media { position: relative; }
.hero__media img { border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,0.4); border: 3px solid rgba(194,161,77,0.3); }
.hero__badge {
  position: absolute; bottom: -22px; left: -22px; background: var(--gold);
  color: var(--navy-deep); padding: 16px 22px; border-radius: 12px; box-shadow: var(--shadow);
  font-family: var(--serif); font-weight: 700; line-height: 1.1;
}
.hero__badge strong { display: block; font-size: 1.9rem; }
.hero__badge span { font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Trust bar ---------- */
.trust { background: var(--navy-deep); padding: 0; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(194,161,77,0.2); }
.trust__item { background: var(--navy-deep); padding: 30px 22px; text-align: center; }
.trust__item strong { display: block; font-family: var(--serif); font-size: 2rem; color: var(--gold-light); }
.trust__item span { font-size: 0.9rem; color: #C9D2E2; }

/* ---------- Cards de serviço ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; transition: var(--transition); position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: var(--transition); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold-light); }
.card:hover::before { transform: scaleX(1); }
.card.is-featured { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.card.is-featured::before { transform: scaleX(1); }
.card__tag { position: absolute; top: 16px; right: 16px; background: var(--gold); color: var(--navy-deep); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 20px; }
.card__icon { width: 54px; height: 54px; border-radius: 12px; background: var(--cream); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.card__icon svg { width: 28px; height: 28px; stroke: var(--gold-dark); fill: none; stroke-width: 1.8; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--gray); font-size: 0.98rem; flex-grow: 1; }
.card__link { margin-top: 16px; color: var(--gold-dark); font-weight: 600; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 6px; }
.card__link::after { content: "→"; transition: var(--transition); }
.card:hover .card__link::after { transform: translateX(4px); }

/* ---------- Bloco educacional / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split__media img { border-radius: 14px; box-shadow: var(--shadow); }
.split h2 { margin-bottom: 18px; }
.split p { color: var(--gray); }
.split .section--navy & p { color: #C9D2E2; }
.feature-list { margin: 22px 0; }
.feature-list li { display: flex; gap: 14px; margin-bottom: 16px; align-items: flex-start; }
.feature-list .fi { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: rgba(194,161,77,0.15); color: var(--gold-dark); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.feature-list strong { color: var(--navy); display: block; }
.section--navy .feature-list strong { color: var(--white); }
.feature-list span { color: var(--gray); font-size: 0.96rem; }
.section--navy .feature-list span { color: #C9D2E2; }

.highlight-box { background: rgba(194,161,77,0.12); border-left: 4px solid var(--gold); padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0; margin: 22px 0; }
.highlight-box strong { color: var(--navy); }

/* ---------- Passo a passo ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step { text-align: center; padding: 0 12px; }
.step__num { counter-increment: step; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--navy); color: var(--gold-light); font-family: var(--serif); font-size: 1.6rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.step__num::before { content: counter(step); }
.step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step p { color: var(--gray); font-size: 0.96rem; }

/* ---------- Depoimentos ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.review__stars { color: var(--gold); font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 12px; }
.review p { font-style: italic; color: var(--graphite); }
.review__author { margin-top: 16px; font-weight: 600; color: var(--navy); font-size: 0.95rem; }
.review__author span { display: block; font-weight: 400; color: var(--gray-light); font-size: 0.85rem; font-style: normal; }
.review.is-placeholder { border-style: dashed; border-color: var(--gold-light); background: var(--cream); }
.review.is-placeholder::before { content: "Exemplo — substituir por avaliação real do Google"; display: block; font-size: 0.7rem; color: var(--gold-dark); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; background: none; border: 0; text-align: left; cursor: pointer; padding: 22px 44px 22px 0; font-family: var(--sans); font-weight: 600; font-size: 1.08rem; color: var(--navy); position: relative; }
.faq__q::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--gold-dark); transition: var(--transition); font-weight: 400; }
.faq__item.open .faq__q::after { transform: translateY(-50%) rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq__a p { padding: 0 0 22px; color: var(--gray); margin: 0; }

/* ---------- CTA final ---------- */
.cta-final { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); text-align: center; }
.cta-final h2 { color: var(--white); margin-bottom: 16px; }
.cta-final p { color: #C9D2E2; max-width: 600px; margin: 0 auto 30px; font-size: 1.1rem; }

/* ---------- Page hero (páginas internas) ---------- */
.page-hero { background: linear-gradient(135deg, var(--navy-deep), var(--navy)); color: var(--cream); padding: 64px 0; }
.page-hero .breadcrumb { font-size: 0.85rem; color: var(--gold-light); margin-bottom: 14px; }
.page-hero .breadcrumb a { color: #C9D2E2; }
.page-hero h1 { color: var(--white); max-width: 800px; }
.page-hero p { color: #D6DEEC; font-size: 1.12rem; max-width: 680px; margin-top: 14px; }
.page-hero .hero__actions { margin-top: 26px; }

/* ---------- Conteúdo de texto rico ---------- */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { margin: 36px 0 14px; }
.prose h3 { margin: 28px 0 10px; }
.prose p, .prose li { color: var(--graphite); font-size: 1.05rem; }
.prose ul { margin: 0 0 18px; }
.prose ul li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.prose ul li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-dark); font-weight: 700; }
.law-ref { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; font-size: 0.96rem; color: var(--gray); margin: 20px 0; }
.law-ref strong { color: var(--navy); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: #B9C2D4; padding: 64px 0 26px; font-size: 0.95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 44px; }
.footer h4 { color: var(--white); font-family: var(--sans); font-size: 1rem; margin-bottom: 18px; letter-spacing: 0.03em; }
.footer__logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer__logo img { height: 50px; width: auto; }
.footer__logo b { font-family: var(--logo); font-weight: 700; color: var(--white); font-size: 1.02rem; letter-spacing: 0.07em; }
.footer ul li { margin-bottom: 11px; }
.footer ul li a:hover { color: var(--gold-light); }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__social { display: flex; gap: 12px; margin-top: 16px; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.footer__social a:hover { background: var(--gold); }
.footer__social svg { width: 18px; height: 18px; fill: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.85rem; color: var(--gray-light); }
.footer__disclaimer { background: rgba(0,0,0,0.2); padding: 16px 0; font-size: 0.8rem; color: var(--gray-light); text-align: center; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 200;
  width: 62px; height: 62px; border-radius: 50%; background: var(--whatsapp);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 26px rgba(37,211,102,0.5); transition: var(--transition);
  animation: wa-pulse 2.4s infinite;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 34px; height: 34px; fill: #fff; }
@keyframes wa-pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* ---------- Animação de entrada ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__media { max-width: 420px; margin: 0 auto; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split__media { max-width: 480px; margin: 0 auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 820px) {
  .nav, .header__cta .btn { display: none; }
  .nav-toggle { display: block; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; top: 78px; left: 0; right: 0;
    background: var(--navy-deep); padding: 20px 24px; gap: 16px; border-bottom: 2px solid var(--gold);
  }
  .nav.open a { padding: 6px 0; font-size: 1.05rem; }
  .cards, .steps, .reviews, .trust__grid { grid-template-columns: 1fr; }
  .trust__grid { gap: 1px; }
  .section { padding: 60px 0; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__badge { left: 50%; transform: translateX(-50%); bottom: -26px; }
  .btn { width: 100%; }
  .hero__actions { width: 100%; }
}
