/* ============================================================
   Dra. Eliane Patrícia — Advogada
   Paleta (briefing) + acentos em dourado para harmonizar com a marca
   ============================================================ */

:root {
  --vermelho:        #B22222;  /* CTA / destaques */
  --vermelho-escuro: #8B1A1A;  /* hover */
  --fundo-claro:     #FBF8F5;  /* off-white quente (menos estourado) */
  --fundo-alt:       #F4F0EF;
  --fundo-suave:     #FAF5F0;  /* tom areia que harmoniza com dourado/grená */
  --texto:           #1A1A1A;
  --texto-2:         #555555;
  --branco:          #FFFFFF;
  --preto:           #0E0E0E;  /* hero/footer escuros, como a marca */
  --dourado:         #C8A24B;  /* acento sutil da identidade visual */

  --maxw: 1140px;
  --radius: 8px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --shadow-lg: 0 18px 48px rgba(0,0,0,.14);
  --ease: cubic-bezier(.16,.84,.44,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--texto);
  background: var(--fundo-claro);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .4em;
  letter-spacing: .2px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: .74rem;
  font-weight: 600;
  color: var(--vermelho);
  margin: 0 0 .6rem;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .96rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .2s;
}
.btn-sm { padding: .65rem 1.25rem; font-size: .9rem; }
.btn-primary {
  background: var(--vermelho);
  color: var(--branco);
  box-shadow: 0 8px 20px rgba(178,34,34,.28);
}
.btn-primary:hover { background: var(--vermelho-escuro); transform: translateY(-2px); }
.btn-ghost {
  border-color: rgba(255,255,255,.5);
  color: var(--branco);
}
.btn-ghost:hover { border-color: var(--dourado); color: var(--dourado); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background .3s, box-shadow .3s, padding .3s;
  padding: 10px 0;
}
.site-header.scrolled {
  background: rgba(14,14,14,.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 18px rgba(0,0,0,.25);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; }
.brand-logo { height: 88px; width: auto; display: block; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-menu a {
  color: rgba(255,255,255,.9);
  font-size: .95rem;
  font-weight: 500;
  transition: color .2s;
}
.nav-menu a:hover { color: var(--dourado); }
.nav-cta {
  background: var(--vermelho);
  color: #fff !important;
  padding: .5rem 1.1rem;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--vermelho-escuro); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: 0; cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 2px; background: #fff;
  transition: transform .3s, opacity .3s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(200,162,75,.14), transparent 60%),
    linear-gradient(180deg, #141414 0%, #0b0b0b 100%);
  color: #fff;
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 50px;
  align-items: center;
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: .78rem;
  color: var(--dourado);
  margin: 0 0 1rem;
  font-weight: 600;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  margin-bottom: .2em;
}
.hero-subtitle {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  color: var(--dourado);
  margin: 0 0 1.2rem;
}
.hero-lead {
  font-size: 1.12rem;
  color: rgba(255,255,255,.82);
  max-width: 30em;
  margin: 0 0 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-figure { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-watermark {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 115%;
  opacity: .05;
  pointer-events: none;
  z-index: 0;
}

/* Foto do Hero — mantém a proporção natural (sem esticar/cortar) */
.hero-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 330px;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(200,162,75,.35);
  box-shadow: var(--shadow-lg);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  color: rgba(255,255,255,.6);
  font-size: 1.6rem;
  animation: bob 1.8s infinite;
}
@keyframes bob { 0%,100%{transform:translate(-50%,0)} 50%{transform:translate(-50%,8px)} }

/* ============================================================
   SECTIONS genéricas
   ============================================================ */
.section { padding: 100px 0; }
.section--alt { background: var(--fundo-alt); }

/* Seção Contato com fundo próprio + divisória entre Áreas e Contato */
#contato {
  position: relative;
  background: linear-gradient(180deg, var(--fundo-suave) 0%, var(--fundo-claro) 100%);
  border-top: 1px solid #e7ddd4;
}
#contato::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--dourado), transparent);
}
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }

/* ---------- Sobre ---------- */
.about-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 56px;
  align-items: center;
}
.about-photo {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.about-text h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.about-text p { color: var(--texto-2); margin: 0 0 1rem; }
.about-facts {
  list-style: none;
  margin: 1.6rem 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.about-facts li {
  border-left: 3px solid var(--dourado);
  padding: 4px 0 4px 16px;
}
.about-facts strong {
  display: block;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--vermelho);
}
.about-facts span { color: var(--texto); font-weight: 500; }

/* ============================================================
   PARALLAX (imagem fixa que aparece ao rolar)
   ============================================================ */
.parallax {
  position: relative;
  padding: 130px 0;
  background-image:
    linear-gradient(rgba(14,14,14,.72), rgba(14,14,14,.72)),
    url("assets/parallax-justica.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* efeito fixo no scroll */
  color: #fff;
  text-align: center;
}
.parallax-inner { max-width: 760px; }
.parallax blockquote {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.4rem, 3.2vw, 2.1rem);
  font-style: italic;
  line-height: 1.4;
  margin: 0;
}
.parallax blockquote::before,
.parallax blockquote::after { color: var(--dourado); }

/* ============================================================
   CARDS — áreas de atuação
   ============================================================ */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}
.card {
  flex: 1 1 260px;
  max-width: 300px;
  background: var(--branco);
  border: 1px solid #ebe4e2;
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(178,34,34,.25);
}
.card-icon {
  width: 54px; height: 54px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(178,34,34,.08);
  color: var(--vermelho);
  margin-bottom: 16px;
}
.card h3 { font-size: 1.18rem; }
.card p { color: var(--texto-2); font-size: .95rem; margin: 0; }

/* ============================================================
   CONTATO
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
}
.contact-info h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.contact-lead { color: var(--texto-2); margin-bottom: 1.8rem; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #ece5e3;
  border-radius: var(--radius);
  background: var(--branco);
  transition: border-color .2s, transform .2s;
}
.contact-list a:hover { border-color: var(--vermelho); transform: translateX(3px); }
.ci-ico {
  width: 42px; height: 42px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(178,34,34,.08);
  color: var(--vermelho);
}
.contact-list span:last-child { font-size: .92rem; color: var(--texto-2); }
.contact-list strong { color: var(--texto); font-weight: 600; }

/* Formulário */
.contact-form {
  background: var(--branco);
  border: 1px solid #ece5e3;
  border-radius: 14px;
  padding: 32px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--texto);
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d9d2d0;
  border-radius: var(--radius);
  font: inherit;
  color: var(--texto);
  background: #fcfbfb;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--vermelho);
  box-shadow: 0 0 0 3px rgba(178,34,34,.12);
}
.field textarea { resize: vertical; }
.contact-form .btn { width: 100%; justify-content: center; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.form-status { margin: 14px 0 0; font-size: .92rem; min-height: 1.2em; }
.form-status.ok { color: #1c7c3a; }
.form-status.err { color: var(--vermelho); }
.form-note { font-size: .8rem; color: var(--texto-2); margin: 10px 0 0; text-align: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--preto); color: rgba(255,255,255,.78); padding-top: 64px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer-logo { height: 88px; width: auto; margin-bottom: 16px; }
.footer-brand p { max-width: 28em; font-size: .95rem; }
.footer-col h4 {
  font-family: "Inter", sans-serif;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--dourado);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: rgba(255,255,255,.78); font-size: .94rem; transition: color .2s; }
.footer-col a:hover { color: var(--dourado); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; }
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
}

/* ============================================================
   WhatsApp flutuante
   ============================================================ */
.wa-float {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 60;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.45);
  transition: transform .2s, box-shadow .2s;
  animation: pulse 2.4s infinite;
}
.wa-float:hover { transform: scale(1.08); }
@keyframes pulse {
  0% { box-shadow: 0 8px 24px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 8px 24px rgba(37,211,102,.45), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 8px 24px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,0); }
}

/* ============================================================
   Animações de reveal ao rolar
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(44px);
  filter: blur(6px);
  will-change: opacity, transform, filter;
  transition:
    opacity 1.2s cubic-bezier(.22,.61,.36,1),
    transform 1.2s cubic-bezier(.22,.61,.36,1),
    filter 1.2s cubic-bezier(.22,.61,.36,1);
}
.reveal.visible { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .wa-float, .scroll-hint { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 980px) {
  .card { flex-basis: 240px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-figure { order: -1; }
  .hero-photo { max-width: 300px; }
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-media { max-width: 420px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 26px;
    padding: 40px;
    background: rgba(14,14,14,.98);
    backdrop-filter: blur(10px);
    transform: translateX(100%);
    transition: transform .35s var(--ease);
  }
  .nav-menu.open { transform: none; }
  .site-header.menu-open { background: rgba(14,14,14,.92); }

  .parallax { background-attachment: scroll; } /* iOS não suporta fixed bem */
  .section { padding: 72px 0; }
  .hero { padding: 110px 0 70px; }
  .brand-logo { height: 64px; }
  .footer-logo { height: 72px; }
}

@media (max-width: 560px) {
  .card { flex-basis: 100%; max-width: 380px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; gap: 6px; }
}
