/* ===========================================================
   NALIM CUNHA & DUVALLIER ADVOGADOS — design system
   =========================================================== */

:root{
  --cream: #F7F4EE;
  --cream-2: #EDE8DC;
  --paper: #FFFFFF;
  --maroon: #7A0C10;
  --maroon-deep: #52080B;
  --gray: #5F5F5F;
  --gray-dark: #3B3A38;
  --ink: #262421;
  --accent: #E8B49A;
  --line: #ddd3bd;

  --serif: 'Liberation Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Liberation Sans', Arial, Helvetica, sans-serif;

  --max: 1180px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--sans);
  color:var(--ink);
  background:var(--cream);
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation:none !important; transition:none !important; }
}

/* ---------- utility ---------- */
.wrap{ max-width:var(--max); margin:0 auto; padding:0 32px; }
.eyebrow{
  font-size:11px; letter-spacing:.22em; font-weight:700;
  color:var(--maroon); text-transform:uppercase;
}
.eyebrow.on-dark{ color:var(--accent); }
.rule{ width:44px; height:3px; background:var(--maroon); margin:14px 0 22px; }
.rule.on-dark{ background:var(--accent); }
.rule.center{ margin-left:auto; margin-right:auto; }

h1,h2,h3{ font-family:var(--serif); font-weight:700; line-height:1.15; margin:0; }
h1{ font-size:clamp(32px,4.4vw,54px); }
h2{ font-size:clamp(24px,3vw,34px); }
h3{ font-size:19px; }
p{ line-height:1.7; color:#4a4844; margin:0; }
.band-maroon p, .band-gray p, .on-dark p{ color:rgba(255,255,255,.85); }
.band-maroon h1, .band-maroon h2, .band-maroon h3,
.band-gray h1, .band-gray h2, .band-gray h3{ color:#fff; }

.btn{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--sans); font-weight:700; font-size:13.5px; letter-spacing:.03em;
  padding:15px 28px; border-radius:3px; text-decoration:none;
  border:1.5px solid transparent; cursor:pointer;
  transition:transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn:hover{ transform:translateY(-1px); }
.btn:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; }
.btn-solid{ background:var(--accent); color:var(--maroon-deep); }
.btn-solid:hover{ background:#f0c6b0; }
.btn-line-dark{ border-color:var(--ink); color:var(--ink); }
.btn-line-dark:hover{ background:var(--ink); color:#fff; }
.btn-line-light{ border-color:rgba(255,255,255,.6); color:#fff; }
.btn-line-light:hover{ background:rgba(255,255,255,.12); }

section{ padding:88px 0; }
@media(max-width:720px){ section{ padding:56px 0; } }

.band-cream{ background:var(--cream); }
.band-panel{ background:var(--cream-2); }
.band-maroon{ background:var(--maroon); color:#fff; }
.band-gray{ background:var(--gray); color:#fff; }

/* ---------- nav ---------- */
.site-nav{
  position:sticky; top:0; z-index:50;
  background:rgba(247,244,238,.92); backdrop-filter:blur(6px);
  border-bottom:1px solid var(--line);
}
.site-nav .wrap{
  display:flex; align-items:center; justify-content:space-between;
  height:78px;
}
.brand{ display:flex; align-items:center; gap:11px; text-decoration:none; }
.brand img{ height:34px; width:auto; }
.brand-word{ font-family:var(--serif); font-weight:700; font-size:16px; color:var(--maroon); letter-spacing:.01em; }
.brand-word small{ display:block; font-family:var(--sans); font-weight:600; font-size:9px; letter-spacing:.2em; color:var(--gray); }

.nav-links{ display:flex; align-items:center; gap:30px; list-style:none; margin:0; padding:0; }
.nav-links a{
  font-size:13.5px; font-weight:600; text-decoration:none; color:var(--ink);
  padding:6px 0; border-bottom:2px solid transparent;
}
.nav-links a:hover, .nav-links a.active{ border-color:var(--maroon); color:var(--maroon); }
.nav-cta{ display:flex; align-items:center; gap:18px; }
.nav-cta .btn{ padding:11px 20px; font-size:12.5px; }

.nav-toggle{ display:none; background:none; border:none; cursor:pointer; padding:8px; }
.nav-toggle span{ display:block; width:24px; height:2px; background:var(--ink); margin:5px 0; }

@media(max-width:900px){
  .nav-links{
    position:fixed; top:78px; right:0; bottom:0; left:0; width:100%; z-index:40;
    background:var(--cream);
    flex-direction:column; padding:34px 32px; gap:22px;
    transform:translateX(100%); transition:transform .25s ease;
  }
  .nav-links.open{ transform:translateX(0); }
  .nav-links a{ font-size:18px; }
  .nav-toggle{ display:block; }
  .nav-cta .btn-line-dark{ display:none; }
}

/* ---------- hero split ---------- */
.hero-split{ display:grid; grid-template-columns:1.1fr 1fr; min-height:560px; }
.hero-left{ display:flex; align-items:center; padding:70px 60px; background:var(--cream); }
.hero-right{ background:var(--maroon); display:flex; align-items:center; justify-content:center; padding:60px; position:relative; overflow:hidden; }
.hero-right img{ width:min(280px,60%); opacity:.94; }
.hero-copy{ max-width:480px; }
.hero-copy h1{ margin-top:14px; }
.hero-copy p{ margin-top:20px; font-size:16px; }
.hero-actions{ display:flex; gap:14px; margin-top:34px; flex-wrap:wrap; }

@media(max-width:900px){
  .hero-split{ grid-template-columns:1fr; }
  .hero-left{ padding:52px 24px 40px; }
  .hero-right{ padding:0 24px 52px; }
  .hero-right img{ width:150px; }
}

/* ---------- generic page hero (inner pages) ---------- */
.page-hero{ padding:64px 0 48px; border-bottom:1px solid var(--line); }
.page-hero h1{ margin-top:12px; }
.page-hero .lede{ margin-top:16px; max-width:620px; font-size:15.5px; }

/* ---------- value strip ---------- */
.value-strip{ display:grid; grid-template-columns:repeat(3,1fr); }
.value-strip .cell{ padding:0 34px; border-left:1px solid var(--line); }
.value-strip .cell:first-child{ border-left:none; padding-left:0; }
.value-strip h3{ margin-bottom:10px; }
@media(max-width:800px){
  .value-strip{ grid-template-columns:1fr; gap:28px; }
  .value-strip .cell{ border-left:none; padding-left:0; border-top:1px solid var(--line); padding-top:24px; }
  .value-strip .cell:first-child{ border-top:none; padding-top:0; }
}

/* ---------- cards ---------- */
.grid-cards{ display:grid; grid-template-columns:repeat(2,1fr); gap:2px; background:var(--line); border:1px solid var(--line); margin-top:36px; }
.grid-cards.cols-3{ grid-template-columns:repeat(3,1fr); }
.card{ background:var(--paper); padding:34px 30px; }
.card h3{ margin-bottom:12px; }
.card p{ font-size:14px; }
.card .tag{ display:inline-block; font-size:10.5px; font-weight:700; letter-spacing:.14em; color:var(--maroon); margin-bottom:14px; }
@media(max-width:760px){
  .grid-cards, .grid-cards.cols-3{ grid-template-columns:1fr; }
}

/* ---------- split divider (signature element) ---------- */
.pillar-divider{ display:flex; justify-content:center; margin:0; }
.pillar-divider img{ height:46px; opacity:.9; }

/* ---------- attorney profile ---------- */
.attorney-row{ display:grid; grid-template-columns:1fr 1fr; gap:0; border:1px solid var(--line); }
.attorney-col{ padding:44px; background:var(--paper); position:relative; }
.attorney-col + .attorney-col{ border-left:1px solid var(--line); }
.attorney-col .oab{ font-size:12px; font-weight:700; color:var(--maroon); margin:4px 0 10px; }
.attorney-col .area{ font-family:var(--serif); font-style:italic; font-size:14.5px; margin-bottom:14px; color:var(--gray-dark); }
.attorney-col p{ font-size:14px; }
.attorney-solo{ border:1px solid var(--line); padding:44px; background:var(--paper); max-width:640px; margin:28px auto 0; text-align:center; }
@media(max-width:760px){
  .attorney-row{ grid-template-columns:1fr; }
  .attorney-col + .attorney-col{ border-left:none; border-top:1px solid var(--line); }
}

/* ---------- CTA band ---------- */
.cta-band{ text-align:center; }
.cta-band .wrap{ max-width:640px; }
.cta-band h2{ margin-top:10px; }
.cta-band p{ margin-top:14px; font-size:15px; }
.cta-band .hero-actions{ justify-content:center; margin-top:30px; }

/* ---------- steps (real sequence: how engagement works) ---------- */
.steps-list{ margin-top:30px; border-top:1px solid rgba(255,255,255,.25); }
.step-row{ display:flex; gap:22px; padding:20px 0; border-bottom:1px solid rgba(255,255,255,.25); align-items:baseline; }
.step-row .n{ font-family:var(--serif); font-size:20px; color:var(--accent); width:26px; flex:none; }

/* ---------- contact ---------- */
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:60px; margin-top:20px; }
.contact-block h3{ margin-bottom:6px; }
.contact-block p{ font-size:14.5px; margin-bottom:22px; }
.info-line{ display:flex; gap:12px; padding:12px 0; border-bottom:1px solid var(--line); font-size:14.5px; }
.info-line .k{ width:110px; flex:none; font-weight:700; color:var(--maroon); font-size:12px; letter-spacing:.06em; text-transform:uppercase; align-self:center; }
.map-frame{ border:1px solid var(--line); height:100%; min-height:320px; }
.map-frame iframe{ width:100%; height:100%; min-height:320px; border:0; display:block; }
@media(max-width:800px){ .contact-grid{ grid-template-columns:1fr; gap:36px; } }

/* ---------- footer ---------- */
.site-footer{ background:var(--maroon); color:#fff; padding:56px 0 26px; }
.footer-top{ display:grid; grid-template-columns:1.3fr 1fr 1fr; gap:40px; padding-bottom:36px; border-bottom:1px solid rgba(255,255,255,.18); }
.footer-top img{ height:40px; margin-bottom:16px; }
.footer-top p{ font-size:13.5px; color:rgba(255,255,255,.78); max-width:280px; }
.footer-col h4{ font-size:11px; letter-spacing:.16em; text-transform:uppercase; color:var(--accent); margin-bottom:16px; font-family:var(--sans); }
.footer-col ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.footer-col a{ text-decoration:none; font-size:14px; color:rgba(255,255,255,.85); }
.footer-col a:hover{ color:var(--accent); }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding-top:22px; font-size:12px; color:rgba(255,255,255,.55); flex-wrap:wrap; gap:10px; }
@media(max-width:760px){ .footer-top{ grid-template-columns:1fr; } }

/* ---------- reveal (kept always visible; no scroll-gated hiding) ---------- */
.reveal{ opacity:1; transform:none; }

/* ========== single-page event variant ========== */
.simple-bar{
  position:sticky; top:0; z-index:50;
  background:rgba(247,244,238,.94); backdrop-filter:blur(6px);
  border-bottom:1px solid var(--line);
}
.simple-bar .wrap{ display:flex; align-items:center; justify-content:space-between; height:74px; }
.simple-bar .brand{ display:flex; align-items:center; gap:11px; }
.simple-bar .brand img{ height:32px; }
.simple-bar .brand-word{ font-family:var(--serif); font-weight:700; font-size:15px; color:var(--maroon); }
.simple-bar .brand-word small{ display:block; font-family:var(--sans); font-weight:600; font-size:8.5px; letter-spacing:.2em; color:var(--gray); }
.simple-bar .btn{ padding:11px 18px; font-size:12.5px; }

.event-badge{
  display:inline-flex; align-items:center; gap:8px;
  background:var(--cream-2); border:1px solid var(--line);
  padding:7px 14px; border-radius:30px;
  font-size:12px; font-weight:700; color:var(--maroon-deep); letter-spacing:.02em;
  margin-bottom:18px;
}
.event-badge .dot{ width:7px; height:7px; border-radius:50%; background:#3fae5a; }

.float-whatsapp{
  position:fixed; right:20px; bottom:20px; z-index:60;
  width:56px; height:56px; border-radius:50%;
  background:var(--maroon); display:flex; align-items:center; justify-content:center;
  box-shadow:0 6px 18px rgba(0,0,0,.25);
  text-decoration:none;
}
.float-whatsapp svg{ width:26px; height:26px; }
@media(max-width:600px){ .float-whatsapp{ right:16px; bottom:16px; } }
