/* ═══════════════════════════════════════════════════════════
   ROGÉRIO SOUZA ADVOCACIA — CSS GLOBAL
   Design: Luxury Legal — Editorial & Refined
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500;600&family=Crimson+Pro:ital,wght@0,300;0,400;1,300&display=swap');

/* ── Variáveis ─────────────────────────────────────────────── */
:root {
  --navy:     #07152b;
  --navy2:    #0c2044;
  --navy3:    #112a55;
  --gold:     #c9a84c;
  --gold2:    #e4c46e;
  --gold3:    #f5dfa0;
  --cream:    #faf8f3;
  --white:    #ffffff;
  --text:     #1a1a2e;
  --muted:    #5a6478;
  --line:     #e8e4da;
  --red:      #c0392b;
  --green:    #1a7a4a;
  --shadow:   0 20px 60px rgba(7,21,43,.12);
  --shadow-sm:0 4px 20px rgba(7,21,43,.08);
  --radius:   2px;
  --radius-lg:8px;
  --transition:.3s cubic-bezier(.4,0,.2,1);
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; }
ul { list-style: none; }

/* ── Tipografia ─────────────────────────────────────────────── */
.font-display  { font-family: 'Playfair Display', serif; }
.font-serif    { font-family: 'Cormorant Garamond', serif; }
.font-body     { font-family: 'DM Sans', sans-serif; }
h1,h2,h3 { font-family: 'Playfair Display', serif; line-height: 1.15; }
h4,h5,h6 { font-family: 'DM Sans', sans-serif; }

/* ── Utilitários ────────────────────────────────────────────── */
.container { max-width: 1380px; margin: 0 auto; padding: 0 40px; }
.container--narrow { max-width: 900px; margin: 0 auto; padding: 0 40px; }
.section { padding: 100px 0; }
.section--sm { padding: 60px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.flex { display: flex; align-items: center; }
.gap-sm { gap: 12px; }
.gap-md { gap: 24px; }
.gap-lg { gap: 40px; }
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.text-white { color: white; }
.text-muted { color: var(--muted); }

/* ── Label ornamental ───────────────────────────────────────── */
.label-ornament {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.label-ornament::before, .label-ornament::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: .6;
}

/* ── Botões ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.btn--primary {
  background: var(--gold);
  color: var(--navy);
}
.btn--primary:hover {
  background: var(--gold2);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,168,76,.4);
}
.btn--outline {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,.35);
}
.btn--outline:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.6);
}
.btn--outline-dark {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}
.btn--outline-dark:hover {
  background: var(--navy);
  color: white;
}
.btn--ghost {
  background: transparent;
  color: var(--gold);
  padding: 0;
  letter-spacing: .08em;
}
.btn--ghost:hover { gap: 14px; }
.btn--ghost .arrow { transition: var(--transition); }
.btn--ghost:hover .arrow { transform: translateX(4px); }

/* ── Navegação ──────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 40px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), height var(--transition);
}
.nav.scrolled {
  background: rgba(7,21,43,.97);
  box-shadow: 0 2px 40px rgba(0,0,0,.3);
  height: 68px;
  backdrop-filter: blur(20px);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-logo img {
  height: 76px;
  width: auto;
  border-radius: 12px;
  filter: brightness(1.1);
}
.nav-logo-text { display: flex; flex-direction: column; }
.nav-logo-text strong {
  font-family: 'Playfair Display', serif;
  font-size: 23px;
  color: var(--gold2);
  line-height: 1.2;
  letter-spacing: .01em;
}
.nav-logo-text span {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  color: rgba(255,255,255,.75);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  position: relative;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--gold2); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--gold2); }
.nav-links a.active::after { width: 100%; }
.nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--gold2) !important; }
.nav-cta::after { display: none !important; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 8px;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Cards universais ───────────────────────────────────────── */
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(201,168,76,.3);
}
.card-body { padding: 28px; }

/* ── Divisor ornamental ─────────────────────────────────────── */
.divider-ornament {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 16px 0;
}
.divider-ornament::before, .divider-ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .4;
}
.divider-ornament span {
  color: var(--gold);
  font-size: 14px;
}

/* ── Badge ──────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(201,168,76,.12);
  border: 1px solid rgba(201,168,76,.3);
  border-radius: 999px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.badge--dark {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.15);
  color: var(--gold2);
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: #04101f;
  color: rgba(255,255,255,.6);
  padding: 80px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-logo img { height: 60px; border-radius: 8px; margin-bottom: 20px; }
.footer-logo p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.5); max-width: 280px; }
.footer-col h4 {
  color: var(--gold2);
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 14px; color: rgba(255,255,255,.5); transition: color var(--transition); }
.footer-col ul a:hover { color: var(--gold2); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.footer-oa {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-oa img { height: 36px; border-radius: 4px; }

/* ── WhatsApp Flutuante ─────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 60px; height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(37,211,102,.4);
  z-index: 999;
  transition: var(--transition);
  animation: pulse-green 3s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(37,211,102,.5);
}
.whatsapp-float svg { width: 30px; height: 30px; fill: white; }
@keyframes pulse-green {
  0%,100% { box-shadow: 0 8px 30px rgba(37,211,102,.4); }
  50% { box-shadow: 0 8px 50px rgba(37,211,102,.7), 0 0 0 10px rgba(37,211,102,.1); }
}

/* ── Mobile Menu ────────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  color: white;
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  transition: color var(--transition);
}
.mobile-menu a:hover { color: var(--gold2); }
.mobile-close {
  position: absolute;
  top: 24px; right: 24px;
  background: none;
  color: white;
  font-size: 32px;
  line-height: 1;
}

/* ── Responsividade ─────────────────────────────────────────── */
@media (max-width: 1200px) {
  .container { padding: 0 28px; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .container { padding: 0 20px; }
  h1 { font-size: clamp(32px, 8vw, 56px) !important; }
  h2 { font-size: clamp(26px, 6vw, 44px) !important; }
}
@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .whatsapp-float { bottom: 20px; right: 20px; width: 52px; height: 52px; }
}
