:root {
  --gold: #C6A861;
  --gold-soft: #D4B872;
  --gold-deep: #A88A45;
  --black: #000000;
  --black-soft: #0A0A0A;
  --black-card: #131313;
  --black-line: #1f1f1f;
  --white: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --text-dim: rgba(255, 255, 255, 0.5);
  --whatsapp: #25d366;
  --urgent: #E63946;
  --urgent-deep: #B22B36;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--white);
  background: var(--black-soft);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--white);
}

p { margin: 0 0 1rem; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ========== TOPBAR ========== */
.topbar {
  background: var(--black);
  border-bottom: 1px solid var(--black-line);
  position: sticky;
  top: 0;
  z-index: 80;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
}
.topbar-brand img { height: 44px; width: auto; }
.topbar-actions { display: flex; align-items: center; gap: 1.25rem; }
.topbar-link {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.topbar-link:hover { color: var(--gold); }
.topbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--gold);
  color: var(--black);
  padding: 0.6rem 1.1rem;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.2s;
}
.topbar-cta:hover { background: var(--gold-soft); transform: translateY(-1px); }

@media (max-width: 720px) {
  .topbar-link { display: none; }
  .topbar-brand img { height: 38px; }
  .topbar-cta { padding: 0.5rem 0.85rem; font-size: 0.78rem; }
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding: 5rem 0 4.5rem;
  background: var(--black);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image, none);
  background-size: cover;
  background-position: center;
  filter: grayscale(0.65) brightness(0.55);
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.7) 60%, rgba(10,10,10,0.95) 100%);
  z-index: -1;
}
.hero-inner {
  max-width: 800px;
  position: relative;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero-eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
  font-family: 'Playfair Display', Georgia, serif;
}
.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ========== BOTOES ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 2rem;
  border-radius: 0;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  text-align: center;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; fill: currentColor; }
.btn-primary {
  background: var(--gold);
  color: var(--black);
}
.btn-primary:hover { background: var(--gold-soft); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(198, 168, 97, 0.25); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-urgent {
  background: var(--urgent);
  color: var(--white);
}
.btn-urgent:hover { background: var(--urgent-deep); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(230, 57, 70, 0.32); }
.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
}
.btn-whatsapp:hover { background: #1ebe5a; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(37, 211, 102, 0.32); }

/* ========== PLANTAO BAR (URGENCIA) ========== */
.plantao-bar {
  background: linear-gradient(135deg, var(--urgent) 0%, var(--urgent-deep) 100%);
  color: var(--white);
  padding: 1.4rem 0;
  position: relative;
  overflow: hidden;
}
.plantao-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0) 0, rgba(255,255,255,0) 14px, rgba(255,255,255,0.04) 14px, rgba(255,255,255,0.04) 16px);
  pointer-events: none;
}
.plantao-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  position: relative;
}
.plantao-text {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  font-weight: 600;
  font-size: 0.97rem;
  letter-spacing: 0.02em;
}
.plantao-text strong { font-size: 1.15rem; letter-spacing: 0.04em; text-transform: uppercase; }
.plantao-pulse {
  display: inline-flex;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 0 rgba(255,255,255,0.7);
  animation: pulse 1.6s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.65); }
  70% { box-shadow: 0 0 0 14px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.plantao-actions { display: flex; gap: 0.65rem; flex-wrap: wrap; }
.plantao-actions .btn { padding: 0.7rem 1.2rem; font-size: 0.82rem; }
.plantao-actions .btn-light {
  background: var(--white);
  color: var(--urgent-deep);
}
.plantao-actions .btn-light:hover { background: var(--gold); color: var(--black); }
.plantao-actions .btn-line {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.6);
}
.plantao-actions .btn-line:hover { background: rgba(255,255,255,0.1); }

/* ========== SECTION HEADS ========== */
section { padding: 5rem 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 3rem; }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1rem;
}
.section-eyebrow::before, .section-eyebrow::after {
  content: ""; width: 28px; height: 1px; background: var(--gold);
}
.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  margin-bottom: 0.85rem;
}
.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ========== AREAS GRID ========== */
.areas { background: var(--black-soft); }
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  max-width: 1140px;
  margin: 0 auto;
}
.area-card {
  background: var(--black-card);
  border: 1px solid var(--black-line);
  padding: 2rem 1.75rem;
  transition: border-color 0.25s, transform 0.25s;
  position: relative;
}
.area-card:hover { border-color: var(--gold-deep); transform: translateY(-3px); }
.area-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1.1rem;
  color: var(--gold);
}
.area-icon svg { width: 100%; height: 100%; }
.area-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.7rem;
}
.area-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.65;
  margin: 0;
}

/* ========== ADVOGADO (JOAO) ========== */
.lawyer { background: var(--black); }
.lawyer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 880px) {
  .lawyer-grid { grid-template-columns: 0.85fr 1fr; gap: 3.5rem; }
}
.lawyer-image {
  position: relative;
  border: 1px solid var(--gold-deep);
  padding: 0.65rem;
  background: var(--black-soft);
}
.lawyer-image img {
  width: 100%;
  height: auto;
  display: block;
  filter: contrast(1.05) saturate(0.85);
}
.lawyer-content .section-eyebrow { justify-content: flex-start; margin-bottom: 0.6rem; }
.lawyer-content .section-eyebrow::before { display: none; }
.lawyer-content .section-eyebrow::after { display: none; }
.lawyer-content h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 0.5rem;
}
.lawyer-role {
  color: var(--gold);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.lawyer-content p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.lawyer-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 1.5rem 0 1.75rem;
  padding: 1.25rem 1.4rem;
  background: var(--black-card);
  border-left: 2px solid var(--gold);
}
@media (min-width: 540px) { .lawyer-meta { grid-template-columns: 1fr 1fr; } }
.lawyer-meta-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.lawyer-meta-item svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }
.lawyer-meta-item strong { color: var(--white); font-weight: 600; }
.lawyer-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; }

/* ========== DIFERENCIAIS ========== */
.differentials { background: var(--black-soft); }
.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  max-width: 1140px;
  margin: 0 auto;
}
.diff-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem 1.4rem;
  background: var(--black-card);
  border: 1px solid var(--black-line);
}
.diff-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border: 1px solid var(--gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.diff-icon svg { width: 18px; height: 18px; }
.diff-text strong {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 0.35rem;
  font-weight: 600;
}
.diff-text p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0;
}

/* ========== FAQ ========== */
.faq { background: var(--black); }
.faq-list { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--black-line);
  padding: 0;
}
.faq-item:first-child { border-top: 1px solid var(--black-line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0.5rem;
  cursor: pointer;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  color: var(--white);
  list-style: none;
  font-size: 1.05rem;
  line-height: 1.4;
  transition: color 0.2s;
}
.faq-item summary:hover { color: var(--gold); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  transition: transform 0.25s;
}
.faq-icon svg { width: 100%; height: 100%; }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-content {
  padding: 0 0.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.75;
}
.faq-content p { margin: 0; }

/* ========== CTA URGENTE FINAL ========== */
.cta-final {
  background: var(--black);
  border-top: 1px solid var(--gold-deep);
  border-bottom: 1px solid var(--gold-deep);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top left, rgba(198, 168, 97, 0.08), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(230, 57, 70, 0.08), transparent 55%);
  pointer-events: none;
}
.cta-final-inner { position: relative; max-width: 760px; margin: 0 auto; }
.cta-final h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.8rem);
  margin-bottom: 1rem;
}
.cta-final h2 em { color: var(--gold); font-style: italic; }
.cta-final p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 2.25rem;
  line-height: 1.7;
}
.cta-final-actions { display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap; }

/* ========== CONTATO ========== */
.contact { background: var(--black-soft); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: stretch;
  max-width: 1140px;
  margin: 0 auto;
}
@media (min-width: 880px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.contact-info h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 1rem;
}
.contact-info p { color: var(--text-muted); margin-bottom: 2rem; line-height: 1.75; }
.contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.contact-list li { display: flex; align-items: flex-start; gap: 1rem; }
.contact-list .ci-icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border: 1px solid var(--gold);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.contact-list .ci-icon svg { width: 18px; height: 18px; }
.contact-list strong { display: block; color: var(--white); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 0.2rem; }
.contact-list a, .contact-list span { color: var(--text-muted); font-size: 0.97rem; line-height: 1.5; }
.contact-list a:hover { color: var(--gold); }
.contact-map {
  width: 100%;
  min-height: 360px;
  background: var(--black-card);
  border: 1px solid var(--black-line);
  position: relative;
  overflow: hidden;
}
.contact-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: invert(0.92) hue-rotate(180deg) brightness(0.95); }

/* ========== FOOTER ========== */
.site-footer {
  background: var(--black);
  border-top: 1px solid var(--black-line);
  padding: 2rem 0 1.6rem;
  text-align: center;
}
.site-footer img { height: 38px; margin: 0 auto 1.1rem; opacity: 0.85; }
.site-footer-line { color: var(--text-dim); font-size: 0.84rem; margin-bottom: 0.4rem; }
.site-footer-line a { color: var(--gold); text-decoration: none; font-weight: 600; }
.site-footer-line a:hover { text-decoration: underline; }
.site-footer-meta { color: var(--text-dim); font-size: 0.74rem; max-width: 720px; margin: 0.85rem auto 0; line-height: 1.6; }

/* ========== STICKY ACTION (BOTOES FLUTUANTES) ========== */
.float-actions {
  position: fixed;
  right: 1.1rem;
  bottom: 1.4rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}
.float-btn:hover { transform: scale(1.06); }
.float-btn.wa { background: var(--whatsapp); box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45); }
.float-btn.call { background: var(--gold); color: var(--black); box-shadow: 0 8px 20px rgba(198, 168, 97, 0.45); }
.float-btn svg { width: 26px; height: 26px; fill: currentColor; }

@media (max-width: 540px) {
  section { padding: 3.5rem 0; }
  .hero { padding: 3.5rem 0; min-height: 0; }
  .float-btn { width: 50px; height: 50px; }
  .float-btn svg { width: 22px; height: 22px; }
  .plantao-text { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
}
