/* =========================================================
   Marvi Contabilidade — folha de estilos
   Paleta: azul-marinho (confiança) + dourado envelhecido (precisão)
   Tipografia: Lora (serifada, para títulos) + Inter (sans, corpo)
   ========================================================= */

:root{
  --bg: #F6F5F2;
  --surface: #FFFFFF;
  --ink: #131B2B;
  --ink-soft: #3D4759;
  --muted: #5F6A7C;
  --navy: #1B2A4A;
  --navy-dark: #101B30;
  --gold: #B3872F;
  --gold-dark: #8F6C22;
  --border: #E2E2DC;
  --border-strong: #CBCBC3;
  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 26px;
  --shadow-md: 0 14px 34px rgba(19,27,43,0.12);
  --maxw: 1160px;
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); line-height:1.6; -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; }
h1,h2,h3{ font-family: var(--serif); font-weight:600; margin:0 0 .5em; color: var(--ink); }
p{ margin:0 0 1em; color: var(--ink-soft); }
.container{ max-width: var(--maxw); margin:0 auto; padding:0 24px; }
section{ padding: 84px 0; }
@media (max-width:720px){ section{ padding:56px 0; } }
:focus-visible{ outline:2.5px solid var(--navy); outline-offset:3px; }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:14px 26px; border-radius: var(--radius-s); font-weight:600; font-size:15px;
  text-decoration:none; border:1.5px solid transparent; cursor:pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
  font-family: var(--sans);
}
.btn-primary{ background: var(--navy); color:#fff; }
.btn-primary:hover{ background: var(--navy-dark); }
.btn-gold{ background: var(--gold); color:#fff; }
.btn-gold:hover{ background: var(--gold-dark); }
.btn-ghost{ background:transparent; border-color: var(--border-strong); color: var(--ink); }
.btn-ghost:hover{ border-color: var(--navy); color: var(--navy); }
.btn-lg{ padding:17px 32px; font-size:16px; }
.btn-block{ width:100%; }

/* Header */
header{ position:sticky; top:0; z-index:40; background: rgba(246,245,242,.94); backdrop-filter:blur(8px); border-bottom:1px solid var(--border); }
.nav{ display:flex; align-items:center; justify-content:space-between; padding:14px 0; }
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; }
.brand img{ height:40px; width:auto; }
.brand-text strong{ display:block; font-family:var(--serif); font-size:17px; color:var(--ink); line-height:1.15; }
.brand-text span{ display:block; font-size:11px; letter-spacing:.02em; color: var(--muted); }
.nav-links{ display:flex; align-items:center; gap:28px; list-style:none; margin:0; padding:0; }
.nav-links a{ text-decoration:none; font-size:14.5px; color: var(--ink-soft); font-weight:500; }
.nav-links a:hover{ color: var(--navy); }
.nav-cta{ display:flex; align-items:center; gap:12px; }
.menu-toggle{ display:none; background:none; border:none; cursor:pointer; padding:8px; }
.menu-toggle span{ display:block; width:22px; height:2px; background:var(--ink); margin:5px 0; }
@media (max-width:900px){
  .nav-links{ position:absolute; top:100%; left:0; right:0; background:var(--surface); flex-direction:column; align-items:flex-start; gap:0; border-bottom:1px solid var(--border); max-height:0; overflow:hidden; transition:max-height .25s ease; }
  .nav-links.open{ max-height:420px; }
  .nav-links li{ width:100%; }
  .nav-links a{ display:block; padding:14px 24px; width:100%; border-top:1px solid var(--border); }
  .nav-cta .btn-ghost{ display:none; }
  .menu-toggle{ display:block; }
}

/* Hero */
.hero{ padding-top:64px; }
.hero-grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:52px; align-items:center; }
@media (max-width:900px){ .hero-grid{ grid-template-columns:1fr; gap:34px; } .hero{ padding-top:44px; } }
.hero h1{ font-size: clamp(30px,4.2vw,46px); line-height:1.16; max-width:16ch; }
.hero .lead{ font-size:17.5px; max-width:46ch; color:var(--ink-soft); }
.hero-ctas{ display:flex; gap:14px; margin:24px 0 30px; flex-wrap:wrap; }
.trust-row{ display:flex; flex-wrap:wrap; gap:18px 28px; }
.trust-item{ display:flex; align-items:center; gap:9px; font-size:13.5px; color:var(--ink-soft); font-weight:500; }
.trust-item svg{ flex-shrink:0; color: var(--gold-dark); }
.hero-media{ background: var(--navy); border-radius: var(--radius-l); padding:8px; }
.hero-media img{ border-radius: calc(var(--radius-l) - 8px); width:100%; height:auto; }
@keyframes rise{ from{opacity:0; transform:translateY(14px);} to{opacity:1; transform:translateY(0);} }
.hero h1,.hero .lead,.hero-ctas,.trust-row{ animation: rise .6s ease both; }
.hero .lead{ animation-delay:.08s; } .hero-ctas{ animation-delay:.16s; } .trust-row{ animation-delay:.24s; }
@media (prefers-reduced-motion:reduce){ .hero h1,.hero .lead,.hero-ctas,.trust-row{ animation:none; } html{scroll-behavior:auto;} }

/* Section heading */
.section-head{ max-width:640px; margin-bottom:44px; }
.section-head h2{ font-size: clamp(25px,3vw,32px); }
.section-head p{ font-size:16px; }
.eyebrow{ font-size:13px; color: var(--gold-dark); font-weight:700; margin-bottom:10px; }

/* Benefícios */
.grid-benef{ display:grid; grid-template-columns: repeat(3,1fr); gap:20px; }
@media (max-width:900px){ .grid-benef{ grid-template-columns:1fr 1fr; } }
@media (max-width:620px){ .grid-benef{ grid-template-columns:1fr; } }
.card{ background:var(--surface); border:1px solid var(--border); border-radius: var(--radius-m); padding:28px 24px; }
.card .icon{ width:42px; height:42px; border-radius:10px; background: rgba(27,42,74,0.07); display:flex; align-items:center; justify-content:center; color: var(--navy); margin-bottom:16px; }
.card h3{ font-size:17.5px; margin-bottom:8px; }
.card p{ font-size:14.5px; margin:0; }

/* Como funciona */
.steps{ display:grid; grid-template-columns: repeat(4,1fr); }
@media (max-width:900px){ .steps{ grid-template-columns:1fr 1fr; gap:28px 20px; } }
@media (max-width:560px){ .steps{ grid-template-columns:1fr; gap:26px; } }
.step{ padding-right:22px; border-right:1px solid var(--border); }
.step:last-child{ border-right:none; }
@media (max-width:900px){ .step{ border-right:none; padding-right:0; } }
.step .num{ font-family:var(--serif); font-size:15px; color: var(--gold-dark); font-weight:700; margin-bottom:12px; }
.step h3{ font-size:16.5px; margin-bottom:7px; }
.step p{ font-size:14.5px; }

/* Seção visual */
.visual{ background: var(--navy); color:#fff; border-radius: var(--radius-l); overflow:hidden; }
.visual-grid{ display:grid; grid-template-columns:1fr 1fr; align-items:stretch; }
@media (max-width:860px){ .visual-grid{ grid-template-columns:1fr; } }
.visual-text{ padding:52px 48px; display:flex; flex-direction:column; justify-content:center; }
.visual-text h2{ color:#fff; font-size: clamp(23px,2.7vw,28px); }
.visual-text p{ color: rgba(255,255,255,0.82); font-size:15.5px; }
.visual-media{ display:flex; align-items:center; justify-content:center; padding:32px; background: rgba(255,255,255,0.04); }
.visual-media img{ width:100%; max-width:340px; }

/* Diferenciais */
.grid-dif{ display:grid; grid-template-columns: repeat(2,1fr); gap:18px 36px; }
@media (max-width:720px){ .grid-dif{ grid-template-columns:1fr; } }
.dif-item{ display:flex; gap:15px; padding:16px 0; border-top:1px solid var(--border); }
.dif-item:nth-child(1),.dif-item:nth-child(2){ border-top:none; }
@media (max-width:720px){ .dif-item:nth-child(2){ border-top:1px solid var(--border); } }
.dif-item .icon{ width:36px; height:36px; border-radius:9px; background: rgba(179,135,47,0.14); color: var(--gold-dark); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.dif-item h3{ font-size:16px; margin-bottom:4px; }
.dif-item p{ font-size:14.5px; margin:0; }

/* FAQ */
.faq{ max-width:780px; }
.faq-item{ border-bottom:1px solid var(--border); }
.faq-item:first-child{ border-top:1px solid var(--border); }
.faq-q{ width:100%; text-align:left; background:none; border:none; cursor:pointer; padding:20px 4px; display:flex; align-items:center; justify-content:space-between; gap:16px; font-family:var(--sans); font-size:15.5px; font-weight:600; color:var(--ink); }
.faq-q .plus{ flex-shrink:0; width:22px; height:22px; position:relative; }
.faq-q .plus::before,.faq-q .plus::after{ content:''; position:absolute; background:var(--navy); border-radius:2px; }
.faq-q .plus::before{ width:14px; height:2px; top:10px; left:4px; }
.faq-q .plus::after{ width:2px; height:14px; top:4px; left:10px; transition: transform .2s ease; }
.faq-item.open .faq-q .plus::after{ transform: rotate(90deg); }
.faq-a{ max-height:0; overflow:hidden; transition: max-height .25s ease; }
.faq-item.open .faq-a{ max-height:320px; }
.faq-a p{ padding:0 4px 20px; font-size:14.5px; }

/* CTA final */
.cta-final{ background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-l); padding:60px 46px; text-align:center; }
.cta-final h2{ font-size: clamp(23px,3vw,30px); max-width:24ch; margin:0 auto 12px; }
.cta-final p{ max-width:48ch; margin:0 auto 26px; font-size:16px; }
@media (max-width:600px){ .cta-final{ padding:42px 22px; } }

/* Formulário */
.form-wrap{ display:grid; grid-template-columns:.9fr 1.1fr; gap:52px; align-items:flex-start; }
@media (max-width:900px){ .form-wrap{ grid-template-columns:1fr; gap:30px; } }
.form-card{ background:var(--surface); border:1px solid var(--border); border-radius: var(--radius-l); padding:36px; }
.field{ margin-bottom:18px; }
.field label{ display:block; font-size:13.5px; font-weight:600; margin-bottom:7px; color:var(--ink); }
.field input,.field textarea,.field select{
  width:100%; padding:13px 14px; border:1.5px solid var(--border-strong); border-radius: var(--radius-s);
  font-family:var(--sans); font-size:15px; color:var(--ink); background:#fff;
}
.field input:focus,.field textarea:focus,.field select:focus{ border-color:var(--navy); outline:none; }
.field textarea{ resize:vertical; min-height:100px; }
.field-check{ display:flex; align-items:flex-start; gap:10px; margin-bottom:20px; }
.field-check input{ margin-top:3px; }
.field-check label{ font-size:13px; color:var(--muted); font-weight:400; }
.field-check a{ color:var(--navy); text-decoration:underline; }
.form-note{ font-size:12.5px; color:var(--muted); margin-top:14px; }
.honeypot{ position:absolute; left:-9999px; opacity:0; height:0; overflow:hidden; }
.alert{ padding:14px 16px; border-radius: var(--radius-s); font-size:14px; margin-bottom:18px; }
.alert-ok{ background: rgba(27,42,74,0.07); color: var(--navy-dark); border:1px solid rgba(27,42,74,0.2); }
.alert-err{ background:#FBEAEA; color:#8A2C2C; border:1px solid #EFC8C8; }
.contact-info{ font-size:14.5px; margin-top:22px; line-height:1.9; }
.contact-info a{ color: var(--navy); text-decoration:none; font-weight:600; }
.contact-info a:hover{ text-decoration:underline; }

/* Mapa */
.map-wrap{ border-radius: var(--radius-m); overflow:hidden; border:1px solid var(--border); margin-top:24px; }
.map-wrap iframe{ width:100%; height:280px; border:0; display:block; }

/* Footer */
footer{ background: var(--navy-dark); color: rgba(255,255,255,0.72); padding:60px 0 28px; }
.footer-grid{ display:grid; grid-template-columns:1.3fr 1fr 1fr 1fr; gap:38px; margin-bottom:44px; }
@media (max-width:800px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ .footer-grid{ grid-template-columns:1fr; } }
footer h4{ color:#fff; font-size:14px; margin:0 0 16px; font-weight:600; font-family: var(--sans); }
footer ul{ list-style:none; margin:0; padding:0; }
footer li{ margin-bottom:10px; }
footer a{ text-decoration:none; color: rgba(255,255,255,0.68); font-size:14px; }
footer a:hover{ color:#fff; }
.foot-brand{ display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.foot-brand img{ height:34px; }
.foot-brand span{ font-family:var(--serif); color:#fff; font-size:17px; }
footer .legal-block p{ font-size:13px; color: rgba(255,255,255,0.55); margin:0 0 4px; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,0.14); padding-top:22px; display:flex; flex-wrap:wrap; gap:12px 22px; justify-content:space-between; font-size:13px; color: rgba(255,255,255,0.5); }
.footer-bottom .legal-links{ display:flex; gap:18px; flex-wrap:wrap; }
.footer-bottom a{ font-size:13px; }

/* Cookie banner */
#cookie-banner{ position:fixed; left:16px; right:16px; bottom:16px; z-index:100; max-width:560px; background:var(--surface); border:1px solid var(--border); border-radius: var(--radius-m); box-shadow: var(--shadow-md); padding:22px 24px; display:none; }
#cookie-banner.show{ display:block; }
#cookie-banner p{ font-size:13.5px; color:var(--ink-soft); margin-bottom:16px; }
#cookie-banner a{ color:var(--navy); text-decoration:underline; }
.cookie-actions{ display:flex; gap:10px; flex-wrap:wrap; }
.cookie-actions .btn{ padding:10px 16px; font-size:13.5px; }

#cookie-modal{ position:fixed; inset:0; background: rgba(19,27,43,0.5); z-index:110; display:none; align-items:center; justify-content:center; padding:20px; }
#cookie-modal.show{ display:flex; }
.modal-card{ background:#fff; border-radius: var(--radius-m); max-width:480px; width:100%; padding:32px; max-height:86vh; overflow:auto; }
.modal-card h3{ font-size:18.5px; margin-bottom:6px; }
.modal-card > p{ font-size:13.5px; color:var(--muted); margin-bottom:22px; }
.pref-row{ display:flex; justify-content:space-between; align-items:flex-start; gap:16px; padding:16px 0; border-top:1px solid var(--border); }
.pref-row:first-of-type{ border-top:none; }
.pref-row h4{ font-size:14.5px; margin:0 0 4px; }
.pref-row p{ font-size:12.5px; margin:0; color:var(--muted); }
.switch{ position:relative; width:42px; height:24px; flex-shrink:0; }
.switch input{ opacity:0; width:0; height:0; }
.switch .slider{ position:absolute; inset:0; background: var(--border-strong); border-radius:999px; cursor:pointer; transition:.2s; }
.switch .slider::before{ content:''; position:absolute; width:18px; height:18px; left:3px; top:3px; background:#fff; border-radius:50%; transition:.2s; }
.switch input:checked + .slider{ background: var(--navy); }
.switch input:checked + .slider::before{ transform: translateX(18px); }
.switch input:disabled + .slider{ opacity:.5; cursor:not-allowed; }
.modal-actions{ display:flex; gap:10px; margin-top:24px; flex-wrap:wrap; }

/* Páginas legais */
.legal-hero{ padding:52px 0 16px; }
.legal-hero h1{ font-size: clamp(27px,3.6vw,36px); }
.legal-body{ max-width:760px; padding-bottom:76px; }
.legal-body h2{ font-size:19.5px; margin-top:34px; }
.legal-body p,.legal-body li{ font-size:15px; color: var(--ink-soft); }
.legal-body ul{ padding-left:22px; }
.back-link{ display:inline-flex; align-items:center; gap:6px; font-size:14px; color:var(--navy); text-decoration:none; font-weight:600; margin-bottom:18px; }

.sr-only{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
