/* Fabiane Rahal Advocacia — design system compartilhado (usado pelas páginas de Artigos) */
:root{
  --bg: #ffffff;
  --bg-deep: #14283f;
  --bg-alt: #f7f4ee;
  --card: #ffffff;
  --line: #e6e0d2;
  --brass: #b8904f;
  --brass-deep: #8a6c34;
  --wine: #1c3a56;
  --ink: #182230;
  --muted: #5c6674;
  --radius: 3px;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--bg);
  color:var(--ink);
  font-family:'Work Sans', sans-serif;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,.display{
  font-family:'Newsreader', serif;
  font-weight:500;
  line-height:1.12;
  letter-spacing:-0.01em;
}
a{color:inherit; text-decoration:none;}
img{max-width:100%; display:block;}
.wrap{max-width:1180px; margin:0 auto; padding:0 28px;}
.reveal{opacity:0; transform:translateY(28px); transition:opacity .7s ease, transform .7s ease;}
.reveal.is-visible{opacity:1; transform:translateY(0);}
.reveal-stagger.is-visible > *{opacity:1; transform:translateY(0);}
.reveal-stagger > *{opacity:0; transform:translateY(24px); transition:opacity .6s ease, transform .6s ease;}
.reveal-stagger.is-visible > *:nth-child(1){transition-delay:.05s;}
.reveal-stagger.is-visible > *:nth-child(2){transition-delay:.12s;}
.reveal-stagger.is-visible > *:nth-child(3){transition-delay:.19s;}
.reveal-stagger.is-visible > *:nth-child(4){transition-delay:.26s;}
.reveal-stagger.is-visible > *:nth-child(5){transition-delay:.33s;}
.reveal-stagger.is-visible > *:nth-child(6){transition-delay:.4s;}
@media (prefers-reduced-motion: reduce){
  .reveal, .reveal-stagger > *{opacity:1 !important; transform:none !important; transition:none !important;}
}

header{
  position:sticky; top:0; z-index:50;
  background:var(--bg-deep);
  border-bottom:1px solid rgba(255,255,255,0.1);
}
.nav{display:flex; align-items:center; justify-content:space-between; padding:14px 28px; position:relative;}
.logo{font-family:'Newsreader'; font-weight:500; font-size:19px; color:#fff; display:flex; align-items:center;}
.logo span{color:var(--brass);}
.nav-links{display:flex; gap:32px; list-style:none;}
.nav-links a{font-size:14px; color:rgba(255,255,255,0.8); transition:color .2s;}
.nav-links a:hover{color:#fff;}
.nav-links a.is-active{color:#fff;}
.nav-ctas{display:flex; gap:12px;}
.nav-links-mobile-cta{display:none;}
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:13px 24px; font-weight:500; font-size:13.5px;
  border-radius:100px; border:1px solid transparent; cursor:pointer;
  transition:all .2s; white-space:nowrap;
}
.btn-brass{background:var(--brass-deep); color:#fff;}
.btn-brass:hover{background:#6f5326;}
.btn-line{border-color:var(--line); color:var(--ink);}
.btn-line:hover{border-color:var(--brass-deep); color:var(--brass-deep);}
.nav .btn-line{border-color:rgba(255,255,255,0.3); color:#fff;}
.nav .btn-line:hover{border-color:#fff; background:rgba(255,255,255,0.08); color:#fff;}
.nav-toggle{display:block; background:none; border:none; color:#fff; font-size:22px; cursor:pointer;}
@media (min-width:901px){
  .nav-toggle{display:none;}
}

section{padding:90px 0;}
.section-alt{background:var(--bg-alt); border-top:1px solid var(--line); border-bottom:1px solid var(--line);}
.section-head{max-width:600px; margin-bottom:52px;}
.section-head h2{font-size:clamp(28px,3vw,38px);}
.section-head h2 em{font-style:italic; color:var(--wine);}
.section-head p{color:var(--muted); margin-top:14px; font-size:16px;}

.cta-banner{
  background:linear-gradient(120deg,var(--wine),var(--bg-deep));
  border-radius:12px;
  padding:52px; display:flex; align-items:center; justify-content:space-between; gap:28px; flex-wrap:wrap;
}
.cta-banner h2{font-size:clamp(22px,2.6vw,30px); max-width:520px; color:#fff; font-weight:500;}
.cta-banner h2 em{font-style:italic; color:#f0dcb8;}
.cta-banner .btn-brass{background:#fff; color:var(--wine);}
.cta-banner .btn-brass:hover{background:#f7f4ee;}

.placeholder{color:var(--wine); font-style:italic; opacity:0.9;}

footer{background:var(--bg-deep); border-top:1px solid rgba(255,255,255,0.1); padding:60px 0 30px; color:#fff;}
footer p{color:rgba(255,255,255,0.65);}
.footer-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:36px; margin-bottom:44px;}
.footer-grid .footer-h{font-size:12.5px; letter-spacing:0.1em; text-transform:uppercase; color:rgba(255,255,255,0.55); margin-bottom:16px;}
.footer-grid ul{list-style:none;}
.footer-grid li{margin-bottom:10px; font-size:13.5px; color:rgba(255,255,255,0.85);}
.footer-grid li a{opacity:0.85;}
.footer-grid li a:hover{color:#f0dcb8; opacity:1;}
.footer-bottom{display:flex; justify-content:space-between; flex-wrap:wrap; gap:14px; padding-top:26px; border-top:1px solid rgba(255,255,255,0.1); font-size:12px; color:rgba(255,255,255,0.55);}
.social{display:flex; gap:16px;}

/* ---- Blog: listagem de artigos ---- */
.articles-hero{padding:64px 0 12px; border-bottom:1px solid var(--line);}
.articles-hero h1{font-size:clamp(30px,4vw,44px); max-width:720px;}
.articles-hero h1 em{font-style:italic; color:var(--wine);}
.articles-hero p{color:var(--muted); margin-top:16px; font-size:16px; max-width:600px;}
.back-link{display:inline-flex; align-items:center; gap:8px; font-size:13px; color:var(--muted); margin-bottom:22px; transition:color .2s;}
.back-link:hover{color:var(--brass-deep);}

.articles-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:28px;}
.article-card{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
  overflow:hidden; display:flex; flex-direction:column;
  transition:transform .25s, box-shadow .25s;
}
.article-card:hover{transform:translateY(-5px); box-shadow:0 24px 44px -26px rgba(20,40,63,0.28);}
.article-card .thumb{aspect-ratio:16/10; overflow:hidden; background:var(--bg-alt);}
.article-card .thumb img{width:100%; height:100%; object-fit:cover; object-position:50% 22%;}
.article-card .body{padding:24px; display:flex; flex-direction:column; flex:1;}
.article-card h2, .article-card h3{font-size:19px; margin-bottom:10px; line-height:1.25;}
.article-card p{color:var(--muted); font-size:14px; flex:1; margin-bottom:18px;}
.article-card .read-more{font-size:13.5px; font-weight:500; color:var(--brass-deep); display:inline-flex; align-items:center; gap:6px; transition:gap .2s;}
.article-card .read-more:hover{gap:10px;}

.related-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:24px;}

/* ---- Blog: página de artigo individual ---- */
.article-hero{position:relative; border-bottom:1px solid var(--line);}
.article-hero-media{height:360px; overflow:hidden; background:var(--bg-alt);}
.article-hero-media img{width:100%; height:100%; object-fit:cover; object-position:50% 18%;}
.article-hero-content{padding:34px 0 44px;}
.article-hero-content h1{font-size:clamp(30px,4.2vw,46px); max-width:820px; margin-bottom:16px;}
.article-hero-content h1 em{font-style:italic; color:var(--wine);}
.article-meta{color:var(--muted); font-size:13.5px; display:flex; gap:10px; align-items:center; flex-wrap:wrap;}
.article-meta .dot{width:4px; height:4px; border-radius:50%; background:var(--muted); opacity:0.5;}

.article-wrap{padding:70px 0 10px;}
.article-content{max-width:740px; margin:0 auto; font-size:16.5px; color:var(--ink);}
.article-content .lead{font-size:19px; color:var(--muted); margin-bottom:34px;}
.article-content p{margin-bottom:22px; color:var(--ink);}
.article-content h2{font-size:clamp(22px,2.6vw,27px); margin:46px 0 18px; color:var(--wine);}
.article-content h2 em{font-style:italic;}
.article-content .cta-banner h2{color:#fff;}
.article-content ul{margin:0 0 24px 22px;}
.article-content li{margin-bottom:10px; color:var(--ink);}
.article-content blockquote{
  border-left:3px solid var(--brass); padding:2px 0 2px 24px; margin:34px 0;
  font-family:'Newsreader'; font-style:italic; font-size:19px; color:var(--wine); line-height:1.4;
}
.article-disclaimer{
  background:var(--bg-alt); border:1px solid var(--line); border-radius:var(--radius);
  padding:20px 24px; font-size:13.5px; color:var(--muted); margin-top:44px; max-width:740px; margin-left:auto; margin-right:auto;
}
.author-box{
  display:flex; gap:20px; align-items:center;
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
  padding:26px; margin:44px auto 0; max-width:740px;
}
.author-box img{width:64px; height:64px; border-radius:50%; object-fit:cover; flex-shrink:0; border:1px solid var(--line);}
.author-box .author-name{font-family:'Newsreader'; font-size:16px; font-weight:500; margin-bottom:4px;}
.author-box p{font-size:13.5px; color:var(--muted); margin:0;}

.article-cta{max-width:740px; margin:50px auto 0;}
.related-section .section-head{max-width:740px; margin-left:auto; margin-right:auto; text-align:left;}

/* ---- WhatsApp widget ---- */
.wa-widget{position:fixed; right:20px; bottom:20px; z-index:80; font-family:'Work Sans', sans-serif;}
.wa-bubble{
  width:60px; height:60px; border-radius:50%;
  background:#25D366; border:none; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 26px -8px rgba(0,0,0,0.5);
  transition:transform .2s;
}
.wa-bubble:hover{transform:scale(1.06);}
.wa-bubble svg{width:30px; height:30px;}
.wa-panel{
  position:absolute; right:0; bottom:74px;
  width:310px; max-width:calc(100vw - 40px);
  background:var(--card); border-radius:14px;
  box-shadow:0 24px 60px -16px rgba(0,0,0,0.62);
  overflow:hidden;
  opacity:0; transform:translateY(12px) scale(0.97); pointer-events:none;
  transition:opacity .22s ease, transform .22s ease;
}
.wa-widget.is-open .wa-panel{opacity:1; transform:translateY(0) scale(1); pointer-events:auto;}
.wa-panel-head{
  background:linear-gradient(120deg,#1e6e46,#175a3a);
  padding:16px 18px; display:flex; align-items:center; gap:12px;
}
.wa-panel-head .avatar{
  width:36px; height:36px; border-radius:50%; background:var(--brass);
  display:flex; align-items:center; justify-content:center;
  font-family:'Newsreader'; font-weight:600; color:var(--bg-deep); font-size:13px; flex-shrink:0;
}
.wa-panel-head b{color:#fff; font-size:14px; display:block;}
.wa-panel-head span{color:rgba(255,255,255,0.75); font-size:12.5px;}
.wa-panel-close{margin-left:auto; background:none; border:none; color:rgba(255,255,255,0.8); font-size:18px; cursor:pointer; line-height:1;}
.wa-panel-body{padding:16px;}
.wa-greeting{
  background:var(--bg-alt); border-radius:12px 12px 12px 2px;
  padding:12px 14px; font-size:13.5px; color:var(--ink); margin-bottom:14px;
}
.wa-options{display:flex; flex-direction:column; gap:8px;}
.wa-option{
  text-align:left; background:var(--bg); border:1px solid var(--line); border-radius:9px;
  padding:11px 13px; font-size:13px; color:var(--ink); cursor:pointer;
  transition:border-color .2s, background .2s;
}
.wa-option:hover{border-color:var(--brass-deep); background:var(--bg-alt);}

.wa-badge{
  position:absolute; top:-4px; right:-4px;
  width:20px; height:20px; border-radius:50%;
  background:#ff4d4f; color:#fff; font-size:11px; font-weight:700;
  display:flex; align-items:center; justify-content:center;
  border:2px solid var(--bg); opacity:0; transform:scale(0.5);
  transition:opacity .25s ease, transform .25s ease;
}
.wa-badge.is-shown{opacity:1; transform:scale(1);}
.wa-bubble{position:relative; animation:none;}
.wa-bubble.is-pulsing{animation:wa-pulse 1.6s ease-out infinite;}
@keyframes wa-pulse{
  0%{box-shadow:0 10px 26px -8px rgba(0,0,0,0.5), 0 0 0 0 rgba(37,211,102,0.5);}
  70%{box-shadow:0 10px 26px -8px rgba(0,0,0,0.5), 0 0 0 14px rgba(37,211,102,0);}
  100%{box-shadow:0 10px 26px -8px rgba(0,0,0,0.5), 0 0 0 0 rgba(37,211,102,0);}
}
.wa-teaser{
  position:absolute; right:70px; bottom:12px;
  background:var(--card); border-radius:12px 12px 2px 12px;
  padding:11px 15px; font-size:13px; color:var(--ink); white-space:nowrap;
  box-shadow:0 12px 30px -14px rgba(0,0,0,0.6);
  opacity:0; transform:translateX(8px); transition:opacity .3s ease, transform .3s ease;
  pointer-events:none; cursor:pointer;
}
.wa-teaser.is-shown{opacity:1; transform:translateX(0); pointer-events:auto;}
@media (max-width:900px){
  .wa-teaser{right:64px; max-width:200px; white-space:normal; font-size:12.5px;}
}

@media (max-width:900px){
  .nav-ctas{display:none;}
  .logo{font-size:26px;}
  .nav{padding:20px 18px;}
  .nav-links-mobile-cta{display:none;}
  .nav-links{
    display:none;
    position:absolute; top:100%; left:0; right:0;
    flex-direction:column; gap:0;
    background:var(--bg-deep); border-bottom:1px solid rgba(255,255,255,0.12);
    padding:6px 20px 18px;
    box-shadow:0 16px 30px -18px rgba(0,0,0,0.5);
  }
  .nav-links.is-open{display:flex;}
  .nav-links.is-open .nav-links-mobile-cta{display:block; margin-top:6px;}
  .nav-links li{width:100%;}
  .nav-links a{display:block; padding:15px 0; border-top:1px solid rgba(255,255,255,0.12); font-size:15.5px;}
  .nav-links li:first-child a{border-top:none;}
  .nav-links-mobile-cta .btn-line{border-color:rgba(255,255,255,0.3); color:#fff;}

  .footer-grid{grid-template-columns:1fr; gap:30px;}
  section{padding:60px 0;}
  .wrap{padding:0 20px;}

  .articles-grid{grid-template-columns:1fr;}
  .related-grid{grid-template-columns:1fr;}
  .article-hero-media{height:220px;}
  .article-wrap{padding:44px 0 10px;}
  .author-box{flex-direction:column; text-align:center;}
  .cta-banner{padding:36px 24px;}
}
