/* =====================================================
   Mercante Ribeiro Advogados — Direitos da Gestante
   ===================================================== */

@font-face{
  font-family:'Inter'; font-style:normal; font-weight:400 700; font-display:swap;
  src:url('../assets/fonts/inter-var-latin.woff2') format('woff2');
}
@font-face{
  font-family:'Fraunces'; font-style:normal; font-weight:500; font-display:swap;
  src:url('../assets/fonts/fraunces-500-latin.woff2') format('woff2');
}
@font-face{
  font-family:'Fraunces'; font-style:italic; font-weight:500; font-display:swap;
  src:url('../assets/fonts/fraunces-500-italic-latin.woff2') format('woff2');
}

:root{
  --forest:        #1e3a2f;
  --forest-2:      #15291f;
  --forest-light:  #2c4c3c;
  --cream:         #faf5ec;
  --cream-2:       #f1e8d8;
  --ink:           #22281f;
  --ink-soft:      #5a5e51;
  --terracotta:    #c1694a;
  --terracotta-dark:#a2543a;
  --terracotta-darker:#874531;
  --line:          rgba(34,40,31,.12);
  --line-light:    rgba(250,245,236,.22);

  --serif: 'Fraunces', serif;
  --sans:  'Inter', sans-serif;

  --container: 1180px;
  --ease: cubic-bezier(.4,0,.2,1);
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  font-family:var(--sans); color:var(--ink); background:var(--cream);
  -webkit-font-smoothing:antialiased; overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3{ font-family:var(--serif); font-weight:500; line-height:1.15; letter-spacing:-.01em; }
em{ font-style:italic; color:var(--terracotta); }
.light em{ color:#e8c4ac; }
p{ line-height:1.7; color:var(--ink-soft); }
.container{ max-width:var(--container); margin:0 auto; padding:0 6vw; }
.center{ text-align:center; }

.grain-overlay{
  position:fixed; inset:0; pointer-events:none; z-index:2; opacity:.035; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== buttons ===== */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.55rem;
  font-family:var(--sans); font-weight:600; font-size:.92rem; letter-spacing:.01em;
  padding:.85rem 1.6rem; border-radius:40px; border:1px solid transparent;
  cursor:pointer; transition:transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
  white-space:nowrap;
}
.btn-icon{ width:18px; height:18px; flex-shrink:0; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.btn-primary{
  background:var(--terracotta-dark); color:#fff;
  box-shadow:0 14px 28px -14px rgba(162,84,58,.65);
}
.btn-primary:hover{ background:var(--terracotta-darker); transform:translateY(-2px); box-shadow:0 18px 32px -14px rgba(135,69,49,.7); }
.btn-outline{
  background:transparent; color:var(--forest); border-color:var(--forest);
}
.btn-outline:hover{ background:var(--forest); color:#fff; transform:translateY(-2px); }
.btn-lg{ padding:1.05rem 2.2rem; font-size:1rem; }
.btn-header{ padding:.6rem 1.25rem; font-size:.82rem; }
.btn-header span{ display:none; }
@media(min-width:600px){ .btn-header span{ display:inline; } }

/* ===== header ===== */
.site-header{
  position:sticky; top:0; z-index:1000; background:var(--forest);
  border-bottom:1px solid var(--line-light);
}
.header-inner{
  max-width:var(--container); margin:0 auto; padding:.75rem 6vw;
  display:flex; align-items:center; justify-content:space-between; gap:1.5rem;
}
.logo-img{ height:26px; width:auto; }
@media(min-width:600px){ .logo-img{ height:30px; } }

.header-actions{ display:flex; align-items:center; gap:.7rem; }

.site-nav{
  display:none; align-items:center; gap:1.9rem;
}
.nav-link{
  color:rgba(253,250,244,.82); font-size:.9rem; font-weight:600; letter-spacing:.01em;
  transition:color .25s var(--ease);
}
.nav-link:hover, .nav-link.is-active{ color:#fff; }
.nav-link.is-active{ position:relative; }
.nav-link.is-active::after{
  content:''; position:absolute; left:0; right:0; bottom:-6px; height:2px; background:var(--terracotta);
}
@media(min-width:960px){
  .site-nav{ display:flex; }
}

.nav-toggle{
  display:flex; align-items:center; justify-content:center; width:38px; height:38px;
  background:none; border:1px solid var(--line-light); border-radius:10px; color:#fdfaf4; cursor:pointer;
}
.nav-toggle-icon{ width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.nav-toggle .icon-close{ display:none; }
.nav-toggle[aria-expanded="true"] .icon-open{ display:none; }
.nav-toggle[aria-expanded="true"] .icon-close{ display:block; }
@media(min-width:960px){ .nav-toggle{ display:none; } }

@media(max-width:959px){
  .site-nav{
    position:absolute; top:100%; left:0; right:0; background:var(--forest-2);
    flex-direction:column; align-items:flex-start; gap:0; padding:.5rem 6vw 1rem;
    border-bottom:1px solid var(--line-light);
    max-height:0; overflow:hidden; opacity:0; transition:max-height .4s var(--ease), opacity .3s var(--ease);
  }
  .site-nav.is-open{ display:flex; max-height:85vh; opacity:1; overflow-y:auto; }
  .site-nav > .nav-link{ padding:.7rem 0; width:100%; border-bottom:1px solid var(--line-light); }
  .site-nav > .nav-link:last-child{ border-bottom:0; }
  .nav-item{ width:100%; border-bottom:1px solid var(--line-light); }
  .nav-item:last-child{ border-bottom:0; }
  .nav-link-toggle{ padding:.7rem 0; width:100%; justify-content:space-between; }
}

/* ===== nav dropdown / submenu (Serviços) ===== */
.nav-link-toggle{
  appearance:none; -webkit-appearance:none; background:none; border:0; padding:0; margin:0;
  font:inherit; color:inherit; cursor:pointer; display:inline-flex; align-items:center; gap:.35rem;
}
.nav-caret{ width:13px; height:13px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; transition:transform .25s var(--ease); }
.nav-item.open .nav-caret{ transform:rotate(180deg); }
.nav-submenu-all{ display:flex; align-items:center; gap:.4rem; }
.nav-submenu-all .btn-icon{ width:14px; height:14px; }

@media(min-width:960px){
  .nav-item{ position:relative; }
  .nav-submenu{
    position:absolute; top:calc(100% + 16px); left:50%; transform:translateX(-50%) translateY(6px);
    background:#fff; border-radius:16px; box-shadow:0 30px 60px -20px rgba(20,30,20,.35);
    padding:1.3rem 1.4rem; width:580px; max-width:82vw;
    opacity:0; visibility:hidden; pointer-events:none;
    transition:opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
    z-index:1200;
  }
  .nav-item.open .nav-submenu{ opacity:1; visibility:visible; pointer-events:auto; transform:translateX(-50%) translateY(0); }
  .nav-submenu-all{
    font-size:.82rem; font-weight:700; color:var(--terracotta-dark);
    padding:.2rem .6rem 1rem; border-bottom:1px solid var(--line); margin-bottom:.7rem;
  }
  .nav-submenu-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:.1rem 1.2rem; }
  .nav-submenu-grid a{
    display:block; padding:.55rem .6rem; border-radius:8px; font-size:.85rem; font-weight:500;
    color:var(--ink); transition:background .2s var(--ease), color .2s var(--ease);
  }
  .nav-submenu-grid a:hover{ background:var(--cream-2); color:var(--terracotta-dark); }
}

@media(max-width:959px){
  .nav-submenu{ max-height:0; overflow:hidden; transition:max-height .35s var(--ease); padding-left:.9rem; }
  .nav-item.open .nav-submenu{ max-height:1200px; }
  .nav-submenu-all{
    font-size:.85rem; font-weight:700; color:#e8c4ac; padding:.6rem 0;
    border-bottom:1px solid var(--line-light); margin-bottom:.2rem;
  }
  .nav-submenu-grid{ display:flex; flex-direction:column; }
  .nav-submenu-grid a{ padding:.55rem 0; font-size:.85rem; color:rgba(253,250,244,.7); }
}

/* ===== hero ===== */
.hero{ position:relative; background:var(--forest); padding:4.5rem 0 4rem; overflow:hidden; }
.hero-bg{
  position:absolute; inset:0;
  background:
    radial-gradient(60% 55% at 85% 0%, rgba(255,255,255,.07), transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(193,105,74,.16), transparent 65%),
    linear-gradient(180deg, var(--forest) 0%, var(--forest-2) 100%);
}
.hero-content{ position:relative; max-width:760px; }
.eyebrow{
  color:#e8c4ac; font-size:.8rem; font-weight:600; letter-spacing:.09em; text-transform:uppercase;
  margin-bottom:1.1rem;
}
.hero h1{ color:#fdfaf4; font-size:2.3rem; margin-bottom:1.2rem; }
@media(min-width:700px){ .hero h1{ font-size:3.2rem; } }
.hero .lead{ color:rgba(253,250,244,.82); font-size:1.08rem; max-width:600px; margin-bottom:2rem; }

.trust-row{ display:flex; flex-wrap:wrap; gap:1.4rem 2rem; margin-top:2.6rem; }
.trust-item{ display:flex; align-items:center; gap:.55rem; color:rgba(253,250,244,.85); font-size:.86rem; font-weight:500; }
.icon-sm{ width:19px; height:19px; flex-shrink:0; fill:none; stroke:#e8c4ac; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }

/* ===== sections (shared) ===== */
.section{ padding:5.5rem 0; }
.kicker{
  font-size:.78rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase;
  color:var(--terracotta-dark); margin-bottom:.9rem;
}
.section h2{ font-size:1.85rem; color:var(--forest); margin-bottom:1.1rem; }
@media(min-width:700px){ .section h2{ font-size:2.4rem; } }
.lead{ font-size:1.05rem; max-width:640px; }
.center .lead{ margin-left:auto; margin-right:auto; }

/* ===== empatia ===== */
.empatia{ background:var(--cream-2); }
.empatia .btn{ margin-top:1.6rem; }

/* ===== video ===== */
.video-frame{
  max-width:820px; margin:2.6rem auto 2.2rem; border-radius:16px; overflow:hidden;
  box-shadow:0 40px 70px -30px rgba(30,58,47,.35); aspect-ratio:16/9; background:#111;
}
.video-frame iframe{ width:100%; height:100%; border:0; }
.video-facade{
  position:relative; width:100%; height:100%; padding:0; margin:0; border:0; cursor:pointer; background:#111;
}
.video-facade img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.82; }
.video-play{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
}
.video-play svg{
  width:64px; height:64px;
  filter:drop-shadow(0 10px 24px rgba(0,0,0,.5));
  transition:transform .3s var(--ease);
}
.play-bg{ fill:rgba(253,250,244,.95); }
.play-tri{ fill:var(--forest); }
.video-facade:hover .video-play svg{ transform:scale(1.08); }
.video-facade:hover .play-bg{ fill:var(--terracotta); }

/* ===== direitos ===== */
.rights-grid{
  display:grid; grid-template-columns:1fr; gap:1.3rem; margin-top:3rem;
}
@media(min-width:640px){ .rights-grid{ grid-template-columns:repeat(2,1fr); } }
@media(min-width:1000px){ .rights-grid{ grid-template-columns:repeat(3,1fr); } }
.right-card{
  background:#fff; border:1px solid var(--line); border-radius:14px; padding:2rem 1.7rem;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.right-card:hover{ transform:translateY(-4px); box-shadow:0 24px 40px -24px rgba(30,58,47,.28); border-color:transparent; }
.right-icon{ width:30px; height:30px; fill:none; stroke:var(--terracotta); stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; margin-bottom:1.1rem; }
.right-card h3{ font-size:1.15rem; color:var(--forest); margin-bottom:.6rem; }
.right-card p{ font-size:.94rem; }

/* ===== sobre ===== */
.split{ display:grid; grid-template-columns:1fr; gap:2.8rem; align-items:center; margin-bottom:3.5rem; }
@media(min-width:860px){ .split{ grid-template-columns:.85fr 1.15fr; gap:4.5rem; } }
.split-media img{ border-radius:16px; box-shadow:0 40px 70px -32px rgba(30,58,47,.4); max-width:380px; margin:0 auto; }
.split-text h2{ font-size:2rem; }
.split-text p{ margin-bottom:1.1rem; }
.split-text .btn{ margin-top:.8rem; }

.stats-row{
  display:grid; grid-template-columns:repeat(2,1fr); gap:1.8rem 1rem;
  border-top:1px solid var(--line); padding-top:2.6rem; text-align:center;
}
@media(min-width:700px){ .stats-row{ grid-template-columns:repeat(4,1fr); } }
.stat{ display:flex; flex-direction:column; gap:.35rem; }
.stat-num{ font-family:var(--serif); font-size:1.65rem; color:var(--terracotta); }
.stat-label{ font-size:.82rem; color:var(--ink-soft); }

/* ===== depoimentos ===== */
.depoimentos{ background:var(--cream-2); }
.reviews-grid{
  display:grid; grid-template-columns:1fr; gap:1.3rem; margin:3rem 0 2.4rem;
}
@media(min-width:640px){ .reviews-grid{ grid-template-columns:repeat(2,1fr); } }
@media(min-width:1000px){ .reviews-grid{ grid-template-columns:repeat(3,1fr); } }
.review-card{
  background:#fff; border:1px solid var(--line); border-radius:14px; padding:1.8rem 1.6rem;
  display:flex; flex-direction:column; gap:.9rem;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease);
}
.review-card:hover{ transform:translateY(-4px); box-shadow:0 24px 40px -24px rgba(30,58,47,.28); }
.review-stars{ color:var(--terracotta-dark); letter-spacing:.15em; font-size:.95rem; }
.review-card p{ font-size:.92rem; flex-grow:1; }
.review-author{ font-size:.85rem; font-weight:600; color:var(--forest); }
.review-author em{ font-style:normal; font-weight:400; color:var(--ink-soft); }
.depoimentos > .container > .btn{ display:flex; margin:0 auto; width:fit-content; }

/* ===== faq ===== */
.faq-section{ background:var(--cream-2); }
.faq-list{ max-width:760px; margin:3rem auto 0; }
.faq-item{ border-bottom:1px solid var(--line); }
.faq-item h3{ margin:0; }
.faq-q{
  width:100%; display:flex; align-items:center; justify-content:space-between; gap:1rem;
  background:none; border:0; text-align:left; cursor:pointer;
  font-family:var(--serif); font-size:1.08rem; color:var(--forest);
  padding:1.4rem 0;
}
.faq-icon{ width:20px; height:20px; flex-shrink:0; fill:none; stroke:var(--terracotta); stroke-width:1.8; stroke-linecap:round; transition:transform .3s var(--ease); }
.faq-item.open .faq-icon{ transform:rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .35s var(--ease); }
.faq-a p{ padding:0 0 1.5rem; font-size:.95rem; }

/* ===== cta final ===== */
.cta-final{ background:linear-gradient(180deg, var(--forest) 0%, var(--forest-2) 100%); }
.cta-final h2{ color:#fdfaf4; }
.light{ color:rgba(253,250,244,.82); }
.cta-final .btn{ margin-top:.6rem; }

/* ===== footer ===== */
.site-footer{ background:var(--forest-2); padding:3.2rem 0 2.2rem; }
.footer-inner{ display:flex; flex-direction:column; align-items:center; text-align:center; gap:.7rem; }
.footer-logo{ height:24px; width:auto; margin-bottom:.6rem; opacity:.9; }
.footer-firm{ color:#fdfaf4; font-size:.92rem; font-weight:600; }
.footer-address, .footer-contact{ color:rgba(253,250,244,.65); font-size:.85rem; }
.footer-contact a{ text-decoration:underline; text-underline-offset:3px; }
.footer-copy{ color:rgba(253,250,244,.4); font-size:.78rem; margin-top:.8rem; }

/* ===== whatsapp floating ===== */
/* ===== WhatsApp flutuante ===== */
.wa-widget{ position:fixed; right:1rem; bottom:1rem; z-index:900; display:flex; flex-direction:column; align-items:flex-end; gap:.8rem; pointer-events:none; }
.wa-widget > *{ pointer-events:auto; }
@media(min-width:700px){ .wa-widget{ right:1.6rem; bottom:1.6rem; } }

.whatsapp-float{
  position:relative; display:flex; align-items:center; gap:.7rem;
  background:linear-gradient(135deg,#2ee27a 0%,#25D366 45%,#1ebe5b 100%); color:#fff;
  padding:.5rem 1.3rem .5rem .5rem; border-radius:999px;
  box-shadow:0 18px 34px -12px rgba(18,140,70,.65), 0 4px 10px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.35);
  transition:transform .25s var(--ease), box-shadow .25s var(--ease);
  animation:wa-enter .6s var(--ease) both .4s, wa-nudge 7s ease-in-out 3s infinite;
}
.whatsapp-float:hover{ transform:translateY(-3px) scale(1.03); box-shadow:0 24px 40px -12px rgba(18,140,70,.75), 0 6px 14px rgba(0,0,0,.15); animation-play-state:paused; }
.whatsapp-float:focus-visible{ outline:3px solid #fff; outline-offset:3px; box-shadow:0 0 0 6px #128c46; }
.wa-icon{ position:relative; flex:none; width:48px; height:48px; border-radius:50%; background:rgba(255,255,255,.18); display:flex; align-items:center; justify-content:center; }
.wa-icon svg{ width:30px; height:30px; }
.wa-dot{
  position:absolute; top:-3px; right:-3px; min-width:20px; height:20px; padding:0 5px; border-radius:10px;
  background:var(--terracotta); color:#fff; font-size:.7rem; font-weight:700; line-height:20px; text-align:center;
  border:2px solid #fff; animation:wa-pop .4s var(--ease) both 1.4s;
}
.wa-label{ display:flex; flex-direction:column; font-weight:700; font-size:1rem; line-height:1.15; white-space:nowrap; }
.wa-label small{ font-size:.72rem; font-weight:500; opacity:.92; letter-spacing:.01em; }
.wa-ring{ position:absolute; inset:0; border-radius:inherit; border:2px solid #25D366; animation:wa-ring 2.4s ease-out infinite; pointer-events:none; }
.wa-ring-2{ animation-delay:1.2s; }

/* mobile: só o ícone (maior), para não cobrir o conteúdo */
@media(max-width:699px){
  .whatsapp-float{ padding:.45rem; }
  .wa-icon{ width:54px; height:54px; }
  .wa-label{ display:none; }
}

.wa-bubble{
  position:relative; max-width:290px; background:#fff; border-radius:16px 16px 4px 16px;
  box-shadow:0 22px 44px -16px rgba(20,30,20,.45), 0 2px 8px rgba(0,0,0,.08);
  animation:wa-bubble-in .45s var(--ease) both;
}
.wa-bubble[hidden]{ display:none; }
.wa-bubble-body{ display:flex; gap:.75rem; align-items:flex-start; padding:1rem 1.1rem; color:var(--ink); font-size:.86rem; line-height:1.45; }
.wa-bubble-body img{ flex:none; width:44px; height:44px; border-radius:50%; object-fit:cover; object-position:top; border:2px solid #25D366; }
.wa-bubble-body strong{ display:block; color:var(--forest); font-size:.88rem; margin-bottom:.15rem; }
.wa-bubble-close{
  position:absolute; top:-10px; left:-10px; width:26px; height:26px; border-radius:50%; border:0; cursor:pointer;
  background:var(--forest); color:#fff; display:flex; align-items:center; justify-content:center; box-shadow:0 4px 10px rgba(0,0,0,.2);
}
.wa-bubble-close svg{ width:13px; height:13px; fill:none; stroke:currentColor; stroke-width:2.4; stroke-linecap:round; }

@keyframes wa-enter{ from{ opacity:0; transform:translateY(24px) scale(.8); } to{ opacity:1; transform:none; } }
@keyframes wa-pop{ from{ transform:scale(0); } 70%{ transform:scale(1.25); } to{ transform:scale(1); } }
@keyframes wa-ring{ 0%{ opacity:.7; transform:scale(1); } 100%{ opacity:0; transform:scale(1.25,1.6); } }
@keyframes wa-nudge{ 0%,88%,100%{ transform:none; } 90%{ transform:rotate(-4deg) scale(1.05); } 92%{ transform:rotate(4deg) scale(1.05); } 94%{ transform:rotate(-3deg) scale(1.05); } 96%{ transform:rotate(2deg); } }
@keyframes wa-bubble-in{ from{ opacity:0; transform:translateY(12px) scale(.92); transform-origin:bottom right; } to{ opacity:1; transform:none; } }
@media(prefers-reduced-motion:reduce){ .whatsapp-float, .wa-ring, .wa-dot, .wa-bubble{ animation:none !important; } .wa-ring{ display:none; } }

/* ===== reveal animations ===== */
.reveal-fade{ opacity:0; transform:translateY(22px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-fade.in{ opacity:1; transform:none; }
.reveal-side{ opacity:0; transform:translateY(26px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-side.in{ opacity:1; transform:none; }

/* ===== page hero (inner pages) ===== */
.page-hero{
  position:relative; background:linear-gradient(180deg, var(--forest) 0%, var(--forest-2) 100%);
  padding:2.6rem 0 3.4rem;
}
.page-hero h1{ color:#fdfaf4; font-size:2rem; margin:.8rem 0 .8rem; }
@media(min-width:700px){ .page-hero h1{ font-size:2.7rem; } }
.page-hero .lead{ color:rgba(253,250,244,.82); max-width:680px; }

.breadcrumbs{ font-size:.82rem; color:rgba(253,250,244,.6); display:flex; flex-wrap:wrap; gap:.4rem; align-items:center; }
.breadcrumbs a{ color:rgba(253,250,244,.75); }
.breadcrumbs a:hover{ color:#fff; text-decoration:underline; }
.crumb-sep{ opacity:.5; }

/* ===== services grid (home + hub page) ===== */
.services-grid{ display:grid; grid-template-columns:1fr; gap:1.3rem; margin-top:3rem; }
@media(min-width:640px){ .services-grid{ grid-template-columns:repeat(2,1fr); } }
@media(min-width:1000px){ .services-grid{ grid-template-columns:repeat(3,1fr); } }
.service-card{
  display:flex; flex-direction:column; background:#fff; border:1px solid var(--line); border-radius:14px;
  padding:2rem 1.7rem; transition:transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.service-card:hover{ transform:translateY(-4px); box-shadow:0 24px 40px -24px rgba(30,58,47,.28); border-color:transparent; }
.service-card h3{ font-size:1.1rem; color:var(--forest); margin:.9rem 0 .5rem; }
.service-card p{ font-size:.9rem; flex-grow:1; }
.service-link{ display:inline-flex; align-items:center; gap:.4rem; margin-top:1rem; color:var(--terracotta-dark); font-weight:600; font-size:.86rem; }
.service-link .btn-icon{ width:15px; height:15px; }

/* ===== legal / service page layout ===== */
.legal-layout{ display:grid; grid-template-columns:1fr; gap:2.6rem; align-items:start; }
@media(min-width:960px){ .legal-layout{ grid-template-columns:1fr 320px; } }
.prose h2{ font-size:1.5rem; color:var(--forest); margin:2.2rem 0 1rem; }
.prose h2:first-child{ margin-top:0; }
.prose p{ margin-bottom:1.1rem; }
.prose ul, .prose ol{ padding-left:1.3em; color:var(--ink-soft); margin-bottom:1.2em; }
.prose li{ margin-bottom:.55em; line-height:1.65; }
.points-list li::marker{ color:var(--terracotta-dark); }
.law-box{
  background:var(--cream-2); border-left:3px solid var(--terracotta-dark); border-radius:10px;
  padding:1.4rem 1.6rem; margin:1.4rem 0 1.8rem;
}
.law-box p{ margin-bottom:0; }
aside{ display:flex; flex-direction:column; gap:1.4rem; }
.side-card{
  background:#fff; border:1px solid var(--line); border-radius:14px; padding:1.5rem 1.4rem;
}
.side-card h4{ font-family:var(--serif); color:var(--forest); font-size:1.05rem; margin-bottom:.9rem; }
.side-card ul{ list-style:none; display:flex; flex-direction:column; gap:.5rem; }
.side-card li a{ font-size:.88rem; color:var(--ink-soft); transition:color .2s var(--ease); }
.side-card li a:hover, .side-card li a.is-active{ color:var(--terracotta-dark); }
.side-cta{
  background:var(--forest); border-radius:14px; padding:1.6rem 1.5rem; color:#fdfaf4;
}
.side-cta h4{ font-family:var(--serif); font-size:1.1rem; margin-bottom:.6rem; }
.side-cta p{ color:rgba(253,250,244,.75); font-size:.88rem; margin-bottom:1.1rem; }
.side-cta .btn{ width:100%; }

/* ===== blog ===== */
.blog-grid{ display:grid; grid-template-columns:1fr; gap:1.3rem; margin:3rem 0 2.4rem; }
@media(min-width:640px){ .blog-grid{ grid-template-columns:repeat(2,1fr); } }
@media(min-width:1000px){ .blog-grid{ grid-template-columns:repeat(3,1fr); } }
.related-grid{ display:grid; grid-template-columns:1fr; gap:1.2rem; margin-top:1.4rem; }
@media(min-width:700px){ .related-grid{ grid-template-columns:repeat(3,1fr); } }
.post-card{
  display:flex; flex-direction:column; background:#fff; border:1px solid var(--line); border-radius:14px;
  padding:1.7rem 1.5rem; transition:transform .35s var(--ease), box-shadow .35s var(--ease);
}
.post-card:hover{ transform:translateY(-4px); box-shadow:0 24px 40px -24px rgba(30,58,47,.28); }
.post-cat{
  display:inline-block; align-self:flex-start; background:var(--cream-2); color:var(--terracotta-dark);
  font-size:.72rem; font-weight:700; letter-spacing:.05em; text-transform:uppercase;
  padding:.3rem .7rem; border-radius:20px; margin-bottom:.9rem;
}
.post-card h3{ font-size:1.08rem; color:var(--forest); margin-bottom:.6rem; }
.post-card p{ font-size:.9rem; flex-grow:1; }
.post-date{ font-size:.8rem; color:var(--ink-soft); margin-top:1rem; }
.related-posts{ margin-top:3rem; }

.post-layout{ display:grid; grid-template-columns:1fr; gap:2.6rem; align-items:start; }
@media(min-width:960px){ .post-layout{ grid-template-columns:1fr 300px; } }
.post-toc{ background:#fff; border:1px solid var(--line); border-radius:14px; padding:1.4rem; margin-bottom:1.4rem; }
.post-toc h4{ font-family:var(--serif); color:var(--forest); font-size:1rem; margin-bottom:.8rem; }
.post-toc ol{ list-style:none; padding:0; display:flex; flex-direction:column; gap:.5rem; counter-reset:toc; }
.post-toc li{ counter-increment:toc; font-size:.85rem; }
.post-toc li a::before{ content:counter(toc) '. '; color:var(--terracotta-dark); font-weight:600; }

.pagination{ display:flex; justify-content:center; gap:.6rem; margin-top:1rem; }
.pagination a, .pagination span{
  display:flex; align-items:center; justify-content:center; min-width:38px; height:38px; padding:0 .6rem;
  border-radius:10px; border:1px solid var(--line); font-size:.88rem; font-weight:600; color:var(--forest);
}
.pagination a:hover{ background:var(--forest); color:#fff; border-color:var(--forest); }
.pagination .is-active{ background:var(--forest); color:#fff; }

/* ===== footer nav ===== */
.footer-nav{ display:flex; flex-wrap:wrap; justify-content:center; gap:.4rem 1.2rem; margin-top:.4rem; }
.footer-nav a{ color:rgba(253,250,244,.7); font-size:.85rem; }
.footer-nav a:hover{ color:#fff; text-decoration:underline; }

/* ===== misc section / contact ===== */
.bg-alt{ background:var(--cream-2); }
.contact-grid{ display:grid; grid-template-columns:1fr; gap:1.3rem; }
@media(min-width:640px){ .contact-grid{ grid-template-columns:repeat(2,1fr); } }

/* ===== 404 ===== */
.notfound{ text-align:center; padding:4rem 0; }
.notfound h1{ font-size:5rem; color:var(--forest); }
.notfound h2{ margin-bottom:1rem; }
.notfound p{ margin-bottom:2rem; }

/* ===== links dentro do texto (posts / páginas) ===== */
.prose p a, .prose li a{ color:var(--terracotta-dark); text-decoration:underline; text-underline-offset:2px; }
.prose p a:hover, .prose li a:hover{ color:var(--terracotta-darker); }
.post-byline{ color:rgba(253,250,244,.7); font-size:.88rem; margin-top:1rem; max-width:680px; }
.post-byline strong{ color:#fdfaf4; }
.prose .post-refs{ font-size:.85rem; }

/* ===== ferramentas / calculadoras ===== */
.tool-card{ background:#fff; border:1px solid var(--line); border-radius:16px; padding:1.8rem 1.4rem; }
@media(min-width:700px){ .tool-card{ padding:2.2rem 2.2rem; } }
.tool-card h2{ font-size:1.5rem; color:var(--forest); margin-bottom:1.4rem; }
.tool-form{ display:grid; grid-template-columns:1fr; gap:1.1rem; }
@media(min-width:700px){ .tool-form{ grid-template-columns:1fr 1fr; } }
.tool-field{ display:flex; flex-direction:column; gap:.4rem; min-width:0; }
.tool-field[hidden]{ display:none; }
.tool-field label{ font-size:.88rem; font-weight:600; color:var(--ink); }
.tool-field input, .tool-field select{
  font:inherit; font-size:16px; color:var(--ink); background:var(--cream); width:100%;
  border:1px solid var(--line); border-radius:10px; padding:.75rem .9rem; min-height:48px;
  transition:border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.tool-field input:focus, .tool-field select:focus{ outline:none; border-color:var(--terracotta-dark); box-shadow:0 0 0 3px rgba(193,105,74,.18); }
.tool-error{ grid-column:1/-1; background:#fbe9e4; color:#8a2f1c; border-radius:10px; padding:.8rem 1rem; font-size:.9rem; margin:0; }
.tool-submit{ grid-column:1/-1; width:100%; }
.tool-result{ margin-top:2rem; padding-top:1.8rem; border-top:1px solid var(--line); scroll-margin-top:100px; }
.tool-result-label{ font-size:.85rem; font-weight:600; color:var(--ink-soft); text-transform:uppercase; letter-spacing:.05em; margin-bottom:.3rem; }
.tool-result-value{ font-family:var(--serif); font-size:2.3rem; color:var(--forest); line-height:1.15; margin-bottom:.3rem; }
.tool-result-sub{ font-size:.9rem; color:var(--ink-soft); margin-bottom:1.2rem; }
.tool-breakdown{ width:100%; border-collapse:collapse; margin-bottom:1.2rem; font-size:.9rem; }
.tool-breakdown th, .tool-breakdown td{ padding:.6rem 0; border-bottom:1px solid var(--line); }
.tool-breakdown th{ text-align:left; font-weight:500; color:var(--ink-soft); padding-right:1rem; }
.tool-breakdown td{ text-align:right; font-weight:600; color:var(--ink); white-space:nowrap; }
.tool-disclaimer{ font-size:.82rem; color:var(--ink-soft); margin-bottom:1.2rem; }

/* "Serviços" é um <button>; o color/font:inherit do .nav-link-toggle anulava a cor e a fonte do .nav-link */
.site-nav .nav-link-toggle{ color:rgba(253,250,244,.82); font-family:var(--sans); font-size:.9rem; font-weight:600; letter-spacing:.01em; line-height:inherit; }
.site-nav .nav-link-toggle:hover, .site-nav .nav-link-toggle.is-active{ color:#fff; }
