/* Melo & Azevedo Advogados — Design System */
:root {
  --navy-900: #0D1B3D;
  --navy-800: #14264F;
  --navy-700: #1E3260;
  --slate-600: #4A5670;
  --slate-500: #6B7490;
  --slate-300: #B8BECF;
  --slate-200: #D8DCE6;
  --paper: #FFFFFF;
  --paper-2: #F7F8FA;
  --paper-3: #EEF0F4;
  --ink: #0A0F1F;
  --ink-2: #1A1F33;
  --muted: #5E6478;
  --gold: #B8925A;
  --gold-soft: #D4B888;
  --accent-red: #8B2E2E;
  --whatsapp: #25D366;
  --whatsapp-d: #128C7E;

  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 2px rgba(13,27,61,.06), 0 1px 1px rgba(13,27,61,.04);
  --shadow: 0 4px 16px rgba(13,27,61,.08), 0 2px 4px rgba(13,27,61,.04);
  --shadow-lg: 0 20px 50px rgba(13,27,61,.14), 0 8px 16px rgba(13,27,61,.06);

  --container: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; color: var(--navy-900); }
h1 { font-size: clamp(40px, 5.6vw, 76px); letter-spacing: -0.02em; }
h2 { font-size: clamp(32px, 3.8vw, 52px); }
h3 { font-size: clamp(22px, 2.2vw, 30px); }
h4 { font-size: 20px; font-family: var(--sans); font-weight: 600; letter-spacing: -0.005em; }
p { max-width: 68ch; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.container-wide { max-width: 1360px; margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ''; width: 24px; height: 1px; background: var(--gold);
}

.section { padding: clamp(64px, 8vw, 120px) 0; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 240, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(13,27,61,0.08);
}
.site-header.transparent { background: transparent; border-bottom: 1px solid rgba(255,255,255,0.08); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; max-width: 1360px; margin: 0 auto; padding: 0 28px;
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--serif); font-size: 22px; color: var(--navy-900);
  font-weight: 500; letter-spacing: 0.01em;
}
.nav-brand .mark {
  display: none;
}
.nav-brand .mark svg { width: 100%; height: 100%; display:block; }

/* Logo slot — placeholder para logo do cliente */
.logo-slot {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border: 1.5px dashed rgba(13,27,61,.32);
  border-radius: 4px;
  background: repeating-linear-gradient(
    45deg,
    rgba(13,27,61,.02),
    rgba(13,27,61,.02) 6px,
    transparent 6px,
    transparent 12px
  );
  line-height: 1;
  transition: border-color .2s ease, background .2s ease;
}
.nav-brand:hover .logo-slot { border-color: var(--gold); }
.logo-slot__label {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--slate-500);
  text-transform: uppercase;
}
.logo-slot__hint {
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: .1em;
  color: var(--slate-500);
  text-transform: uppercase;
  margin-top: 3px;
  opacity: .75;
}
.logo-slot--dark {
  border-color: rgba(255,255,255,.28);
  background: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,.03),
    rgba(255,255,255,.03) 6px,
    transparent 6px,
    transparent 12px
  );
}
.logo-slot--dark .logo-slot__label,
.logo-slot--dark .logo-slot__hint { color: rgba(247,245,240,.7); }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
.nav-brand-text .wm { font-family: var(--serif); font-size: 22px; color: var(--navy-900); font-weight: 500; letter-spacing: 0.005em; white-space: nowrap; }
.nav-brand-text .sub { font-family: var(--sans); font-size: 10px; color: var(--slate-500); letter-spacing: .32em; text-transform: uppercase; font-weight: 500; }
.nav-links {
  display: flex; align-items: center; gap: 34px;
  font-size: 14.5px; color: var(--ink-2);
}
.nav-links a {
  position: relative; padding: 6px 0;
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--navy-900); }
.nav-links a.active { color: var(--navy-900); font-weight: 600; }
.nav-links a.active::after {
  content:''; position:absolute; left:0; right:0; bottom:-2px;
  height: 2px; background: var(--gold);
}
.nav-wa {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy-900); color: var(--paper);
  padding: 10px 18px; border-radius: 999px; font-size: 13.5px;
  font-weight: 500; letter-spacing: 0.01em;
  transition: all .2s ease;
}
.nav-wa:hover { background: var(--ink); transform: translateY(-1px); box-shadow: var(--shadow); }
.nav-wa .dot { width: 7px; height: 7px; border-radius: 50%; background: #4CE084; box-shadow: 0 0 0 3px rgba(76,224,132,.18); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.5} }

.nav-burger { display: none; width: 40px; height: 40px; border: 1px solid rgba(13,27,61,.12); border-radius: 6px; place-items: center; }
.nav-burger svg { width: 20px; height: 20px; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; border-radius: 6px; font-size: 15px; font-weight: 500;
  letter-spacing: 0.01em; transition: all .25s ease; cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy-900); color: var(--paper);
  box-shadow: 0 8px 20px rgba(13,27,61,.15);
}
.btn-primary:hover { background: var(--ink); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(13,27,61,.22); }
.btn-wa {
  background: var(--whatsapp-d); color: #fff;
  box-shadow: 0 8px 20px rgba(18,140,126,.25);
}
.btn-wa:hover { background: #0f756a; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(18,140,126,.35); }
.btn-ghost {
  background: transparent; color: var(--navy-900);
  border: 1px solid rgba(13,27,61,.2);
}
.btn-ghost:hover { border-color: var(--navy-900); background: rgba(13,27,61,.03); }
.btn-urgent {
  background: var(--accent-red); color: #fff;
  box-shadow: 0 8px 20px rgba(139,46,46,.28);
}
.btn-urgent:hover { background: #6e2323; transform: translateY(-2px); }
.btn-lg { padding: 18px 32px; font-size: 16px; }

.cta-group { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-meta { font-size: 13.5px; color: var(--muted); margin-top: 14px; display: flex; flex-wrap: wrap; gap: 14px; }
.cta-meta span { display: inline-flex; align-items: center; gap: 6px; }
.cta-meta span::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }

/* WHATSAPP FLOAT */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 80;
  display: flex; align-items: center; gap: 12px;
}
.wa-float-bubble {
  background: #fff; padding: 10px 16px; border-radius: 10px;
  box-shadow: var(--shadow-lg); font-size: 13px; color: var(--ink);
  font-weight: 500; max-width: 220px; line-height: 1.4;
  position: relative; animation: fadeBubble .6s ease .8s both;
}
.wa-float-bubble::after {
  content: ''; position: absolute; right: -6px; top: 50%; transform: translateY(-50%) rotate(45deg);
  width: 12px; height: 12px; background: #fff;
}
.wa-float-bubble strong { color: var(--navy-900); font-weight: 600; }
.wa-float-bubble .close { position: absolute; top: 4px; right: 6px; color: var(--slate-500); font-size: 14px; line-height: 1; padding: 2px 5px; }
.wa-float button.wa-btn {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--whatsapp); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 28px rgba(37,211,102,.4);
  transition: transform .2s ease;
}
.wa-float button.wa-btn:hover { transform: scale(1.06); }
.wa-float button.wa-btn svg { width: 32px; height: 32px; }
@keyframes fadeBubble { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }

/* FOOTER */
.footer {
  background: var(--navy-900); color: var(--slate-300);
  padding: 80px 0 40px; font-size: 14.5px;
}
.footer a { transition: color .2s ease; }
.footer a:hover { color: var(--paper); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-mark { display: none; }
.footer-mark svg { filter: brightness(0) invert(1) opacity(.9); }
.footer-brand-name { font-family: var(--serif); font-size: 26px; color: var(--paper); margin-bottom: 12px; }
.footer p { color: var(--slate-300); max-width: 32ch; }
.footer h5 {
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-soft);
  margin-bottom: 18px;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-bottom {
  margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.06);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 13px; color: var(--slate-500);
}
.oab-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; color: var(--gold-soft);
  padding: 6px 12px; border: 1px solid rgba(212,184,136,.22); border-radius: 4px;
}
.oab-tag::before { content: '⚖'; font-size: 13px; }

/* UTILS */
.divider-rule { display: flex; align-items: center; gap: 16px; color: var(--slate-500); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.divider-rule::before, .divider-rule::after { content:''; flex:1; height: 1px; background: rgba(13,27,61,.12); }

.kicker {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--slate-500);
}
.num-label {
  font-family: var(--mono); font-size: 11px; color: var(--gold);
  letter-spacing: .14em;
}

.grid-lines {
  background-image:
    linear-gradient(rgba(13,27,61,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,27,61,.04) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: grid; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .wa-float-bubble { display: none; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
