/* ==========================================================================
   Santeiro e Novais Advogados Associados — Landing Pages
   Design system compartilhado entre todas as páginas de área de atuação
   ========================================================================== */

:root {
  --navy-950: #081627;
  --navy-900: #0e2340;
  --navy-800: #16324f;
  --navy-700: #1f4066;
  --gold-500: #c8a24b;
  --gold-400: #d9bb72;
  --gold-100: #f7ecd3;
  --paper: #f8f6f1;
  --paper-alt: #f1ede3;
  --ink: #1c2126;
  --ink-soft: #4a5460;
  --line: #e4ddca;
  --white: #ffffff;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ebc59;
  --danger: #b3452c;

  --font-serif: "Playfair Display", "Georgia", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(8, 22, 39, 0.08);
  --shadow-md: 0 12px 32px rgba(8, 22, 39, 0.14);
  --shadow-gold: 0 10px 26px rgba(200, 162, 75, 0.35);
  --container: 1120px;
}

* { box-sizing: border-box; }
/* Evita que itens de grid/flex com conteúdo "nowrap" (botões, etc.)
   forcem colunas mais largas que o espaço disponível em telas pequenas. */
.pain-grid > *, .benefits-grid > *, .process-grid > *, .team-grid > *,
.office-grid > *, .area-grid > *, .footer-grid > *, .hero-actions > *,
.credentials-strip .container > *, .topbar .container > * {
  min-width: 0;
}
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400) 50%, var(--gold-500));
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--navy-950);
  line-height: 1.18;
  margin: 0 0 .5em;
  font-weight: 700;
}
p { margin: 0 0 1em; color: var(--ink-soft); }
ul { margin: 0; padding: 0; list-style: none; }
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold-500);
  display: inline-block;
}
section { padding: 88px 0; }
@media (max-width: 640px) { section { padding: 60px 0; } }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head p { font-size: 17px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 211, 102, .35);
}
.btn-whatsapp:hover { background: var(--whatsapp-dark); transform: translateY(-2px); }
.btn-gold {
  background: var(--gold-500);
  color: var(--navy-950);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { background: var(--gold-400); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.5);
  color: #fff;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-block { width: 100%; }
.btn svg { flex-shrink: 0; }
@media (max-width: 380px) {
  .btn { white-space: normal; text-align: center; }
}

/* ---------- Topbar / header ---------- */
.topbar {
  background: var(--navy-950);
  color: #cfd8e3;
  font-size: 13px;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar a { color: #cfd8e3; }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; }

.site-header {
  background: var(--navy-900);
  color: #fff;
  padding: 18px 0;
  position: relative;
  box-shadow: 0 1px 0 rgba(255,255,255,.07), 0 18px 30px -20px rgba(0,0,0,.55);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; flex-shrink: 0; }
.brand-mark {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-mark img {
  display: block;
  height: 48px;
  width: auto;
}
.brand-text { min-width: 0; }
.brand-text .name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  white-space: nowrap;
}
.brand-text .area-tag {
  font-size: 12px;
  color: var(--gold-400);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
}
.header-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; margin-left: auto; }

.site-nav { display: none; gap: 40px; margin-left: 48px; }
.site-nav a { font-size: 14px; font-weight: 600; color: #dfe6ee; white-space: nowrap; letter-spacing: .01em; }
.site-nav a:hover { color: var(--gold-400); }
@media (min-width: 980px) { .site-nav { display: flex; } }
@media (min-width: 980px) and (max-width: 1120px) { .site-nav { gap: 26px; margin-left: 28px; } }

/* ---------- Menu mobile (hamburger) do site institucional ---------- */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px; height: 42px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 10px;
  background: rgba(255,255,255,.05);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 980px) { .nav-toggle { display: none; } }

@media (max-width: 979px) {
  .site-nav {
    flex-direction: column;
    gap: 2px;
    margin-left: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-900);
    padding: 8px 24px 22px;
    box-shadow: 0 20px 34px -8px rgba(0,0,0,.4);
    border-top: 1px solid rgba(255,255,255,.08);
    z-index: 60;
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding: 13px 2px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .site-nav a:last-child { border-bottom: none; }
}

@media (max-width: 640px) {
  .site-header .container { justify-content: space-between; }
  .brand { flex: 1 1 auto; }
  .brand-text .name { font-size: 15px; white-space: normal; }
  .header-cta { flex: 1 1 100%; justify-content: center; order: 3; }
  .header-cta .btn { flex: 1 1 auto; }
  .nav-toggle { order: 2; }
}
@media (max-width: 360px) {
  .brand-text .name { font-size: 13.5px; }
}
.header-phone {
  display: none;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
}
@media (min-width: 720px) { .header-phone { display: inline-flex; align-items: center; gap: 8px; } }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1100px 520px at 85% -10%, rgba(200,162,75,.22), transparent 60%),
              linear-gradient(160deg, var(--navy-950), var(--navy-900) 55%, var(--navy-800));
  color: #fff;
  padding: 64px 0 78px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% auto;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(200,162,75,.18), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-grid > * { min-width: 0; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
.hero h1 { font-size: clamp(30px, 4.6vw, 46px); color: #fff; }
.hero h1 em {
  font-style: normal;
  color: var(--gold-400);
}
.hero-sub { font-size: 18px; color: #cfd8e3; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 22px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #dfe6ee; }
.trust-item svg { flex-shrink: 0; color: var(--gold-400); }

.hero-card {
  background: var(--white);
  border: 1px solid rgba(200,162,75,.18);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
  color: var(--ink);
}
.hero-card h3 { font-size: 20px; margin-bottom: 6px; }
.hero-card p { font-size: 14px; margin-bottom: 18px; }
.hero-card .form-row { margin-bottom: 12px; }
.hero-card label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--navy-900); }
.hero-card input, .hero-card select, .hero-card textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  font-family: var(--font-sans);
  font-size: 14px;
  background: var(--paper);
}
.hero-card input:focus, .hero-card select:focus, .hero-card textarea:focus {
  outline: none;
  border-color: var(--gold-500);
}
.hero-card .microcopy { font-size: 12px; color: var(--ink-soft); text-align: center; margin-top: 12px; }

.quick-links { display: flex; flex-direction: column; gap: 10px; }
.quick-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  color: var(--navy-900);
  transition: border-color .15s ease, background .15s ease;
}
.quick-links a:hover { border-color: var(--gold-500); background: var(--gold-100); }
.quick-links a svg { color: var(--gold-500); flex-shrink: 0; }

/* ---------- Faixa de credenciais ---------- */
.credentials-strip {
  background: var(--paper-alt);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.credentials-strip .container {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 28px;
}
.credentials-strip .item {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; font-weight: 600; color: var(--navy-800);
  min-width: 0;
  max-width: 100%;
}
.credentials-strip .item svg { color: var(--gold-500); flex-shrink: 0; }

/* ---------- Áreas de atuação (home) ---------- */
.area-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 700px) { .area-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .area-grid { grid-template-columns: repeat(3, 1fr); } }
.area-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.area-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gold-500); }
.area-card .icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--gold-100);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-500);
  margin-bottom: 16px;
}
.area-card h4 { font-size: 17px; margin-bottom: 8px; }
.area-card p { font-size: 14.5px; margin-bottom: 16px; }
.area-card .link-cta { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--navy-900); }
.area-card .link-cta svg { transition: transform .15s ease; }
.area-card:hover .link-cta svg { transform: translateX(3px); }

/* ---------- Dores / problemas ---------- */
.pain-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 700px) { .pain-grid { grid-template-columns: repeat(2, 1fr); } }
.pain-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.pain-card .icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--gold-100);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-500);
  flex-shrink: 0;
}
.pain-card h4 { font-size: 16.5px; margin-bottom: 4px; }
.pain-card p { font-size: 14.5px; margin: 0; }

/* ---------- Serviços / benefícios ---------- */
.section-alt { background: var(--navy-950); color: #fff; }
.section-alt .section-head p { color: #cfd8e3; }
.section-alt h2 { color: #fff; }
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 720px) { .benefits-grid { grid-template-columns: repeat(3, 1fr); } }
.benefit-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  padding: 26px 22px;
}
.benefit-card .icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(145deg, var(--gold-400), var(--gold-500));
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-950);
  margin-bottom: 16px;
}
.benefit-card h4 { color: #fff; font-size: 17px; margin-bottom: 8px; }
.benefit-card p { color: #c3ccd8; font-size: 14.5px; margin: 0; }

/* ---------- Processo ---------- */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  counter-reset: step;
}
@media (min-width: 720px) { .process-grid { grid-template-columns: repeat(3, 1fr); } }
.process-step { position: relative; padding-top: 8px; }
.process-step .num {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--navy-950);
  color: var(--gold-400);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 19px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.process-step h4 { font-size: 17px; margin-bottom: 6px; }
.process-step p { font-size: 14.5px; }

/* ---------- Time / advogados ---------- */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 700px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
.team-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.team-photo-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--paper-alt);
}
.team-photo-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.team-card-body { padding: 24px 26px 28px; }
.team-card h4 { font-size: 18px; margin-bottom: 2px; }
.team-card .oab { font-size: 13px; font-weight: 700; color: var(--gold-500); margin-bottom: 10px; display: block; }
.team-card p { font-size: 14.5px; margin: 0; }
.team-note {
  max-width: 640px;
  margin: 32px auto 0;
  text-align: center;
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* ---------- Escritório (galeria de fotos) ---------- */
.office-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 620px;
  margin: 0 auto;
}
@media (min-width: 560px) { .office-grid { grid-template-columns: repeat(3, 1fr); max-width: 720px; gap: 14px; } }
.office-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.office-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 22px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-950);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}
.faq-question .chev { transition: transform .2s ease; flex-shrink: 0; color: var(--gold-500); }
.faq-item.open .faq-question .chev { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  padding: 0 22px;
}
.faq-item.open .faq-answer { padding-bottom: 20px; }
.faq-answer p { font-size: 14.5px; margin: 0; }

/* ---------- CTA final ---------- */
.final-cta {
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 52px 34px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px 260px at 50% -20%, rgba(200,162,75,.28), transparent 70%);
}
.final-cta > * { position: relative; z-index: 1; }
.final-cta h2 { color: #fff; margin-bottom: 10px; }
.final-cta p { color: #d7dfe9; max-width: 520px; margin: 0 auto 26px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: #aab6c4;
  padding: 46px 0 26px;
  font-size: 13.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 20px;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
@media (min-width: 720px) { .footer-grid.cols-4 { grid-template-columns: 1.2fr .9fr .9fr 1fr; } }
.footer-grid h5 { color: #fff; font-size: 14px; margin-bottom: 14px; letter-spacing: .04em; text-transform: uppercase; }
.footer-grid .brand-text .name { color: #fff; }
.footer-grid p { color: #94a2b1; }
.footer-grid li { margin-bottom: 8px; display: flex; gap: 8px; align-items: flex-start; }
.footer-grid a:hover { color: var(--gold-400); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: space-between;
  color: #7c8896;
  font-size: 12.5px;
}

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  background: var(--whatsapp);
  color: #fff;
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px rgba(37,211,102,.45);
  animation: wa-pulse 3.6s ease-out infinite;
}
.wa-float:hover { background: var(--whatsapp-dark); }
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.4), 0 12px 28px rgba(37,211,102,.45); }
  25% { box-shadow: 0 0 0 10px rgba(37,211,102,0), 0 12px 28px rgba(37,211,102,.45); }
  100% { box-shadow: 0 0 0 10px rgba(37,211,102,0), 0 12px 28px rgba(37,211,102,.45); }
}

/* ---------- Utilidades ---------- */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
@media (max-width: 719px) {
  section { padding: 52px 0; }
  .hero { padding: 40px 0 60px; }
}
