/* ==========================================================
   2020 Assessoria Contábil — Folha de estilos
   Paleta: azul petróleo + dourado + branco
   ========================================================== */

:root {
  --navy: #0F3B57;
  --navy-900: #092A3F;
  --navy-700: #14506F;
  --teal: #1E7A8C;
  --gold: #C9A227;
  --gold-soft: #F3E7C4;
  --ink: #16232C;
  --muted: #5B6E7A;
  --line: #E2E8EC;
  --bg: #FFFFFF;
  --bg-alt: #F5F8FA;
  --wa: #128C4A;
  --wa-dark: #0E6E3A;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(15, 59, 87, .07);
  --shadow: 0 10px 30px rgba(15, 59, 87, .10);
  --shadow-lg: 0 20px 50px rgba(15, 59, 87, .14);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-head: 'Sora', 'Inter', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.22; color: var(--navy); letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; }

p { color: var(--ink); }

a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--teal); }

ul { list-style: none; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ------------------------- BOTÕES ------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 50px; border: 2px solid transparent;
  font-family: var(--font); font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  text-align: center; line-height: 1.2;
}
.btn i { font-size: 1.15em; }
.btn-sm { padding: 11px 20px; font-size: .9rem; }
.btn-block { width: 100%; }

.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 6px 18px rgba(18, 140, 74, .28); }
.btn-wa:hover { background: var(--wa-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(18, 140, 74, .34); }

.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.btn-outline { background: #fff; color: var(--navy); border-color: #C8D3DA; }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }

.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-900); color: #fff; }

/* ------------------------- CABEÇALHO ------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  background: linear-gradient(140deg, var(--navy) 0%, var(--teal) 100%);
  color: #fff; font-family: var(--font-head); font-weight: 800; font-size: .92rem;
  letter-spacing: .02em; box-shadow: var(--shadow-sm);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.22; }
.brand-text strong { font-family: var(--font-head); font-size: 1.02rem; color: var(--navy); font-weight: 800; }
.brand-text small { font-size: .74rem; color: var(--muted); font-weight: 600; letter-spacing: .02em; }

.nav ul { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: .94rem; font-weight: 600; color: var(--ink); }
.nav a:not(.btn):hover { color: var(--teal); }
.nav-cta a { color: #fff; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; color: var(--navy);
  font-size: 1.15rem; cursor: pointer;
}

/* ------------------------- HERO ------------------------- */
.hero {
  background:
    radial-gradient(1100px 460px at 88% -8%, rgba(30, 122, 140, .13), transparent 65%),
    linear-gradient(180deg, #F7FBFD 0%, #FFFFFF 100%);
  padding: 68px 0 76px;
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.35fr .85fr; gap: 48px; align-items: start; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 16px;
}
.eyebrow i { color: var(--gold); }

.hero h1 { margin-bottom: 18px; }
.lead { font-size: 1.08rem; color: #33454F; max-width: 60ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }

.hero-points { display: grid; gap: 10px; }
.hero-points li { display: flex; gap: 10px; font-size: .95rem; color: #3C4E59; font-weight: 500; }
.hero-points i { color: var(--wa); margin-top: 5px; }

.hero-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
}
.hero-card h2 { font-size: 1.2rem; margin-bottom: 4px; }
.muted { color: var(--muted); font-size: .9rem; }

.facts { margin: 20px 0 22px; display: grid; gap: 2px; }
.facts > div { padding: 13px 0; border-bottom: 1px dashed var(--line); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { font-size: .74rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 7px; margin-bottom: 3px; }
.facts dt i { color: var(--gold); }
.facts dd { font-size: 1rem; font-weight: 600; color: var(--ink); }

.fineprint { font-size: .78rem; color: var(--muted); margin-top: 12px; line-height: 1.55; }

/* ------------------------- SEÇÕES ------------------------- */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head h2 { margin-bottom: 14px; }
.section-sub { color: #41535E; font-size: 1.02rem; }

/* ------------------------- CARDS SERVIÇOS ------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #CBDDE6; }

.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 13px; margin-bottom: 16px;
  background: linear-gradient(140deg, rgba(15, 59, 87, .08), rgba(30, 122, 140, .14));
  color: var(--navy); font-size: 1.35rem;
  border: 1px solid rgba(15, 59, 87, .08);
}
.card h3 { margin-bottom: 8px; }
.card > p { color: #41535E; font-size: .95rem; }

.card-list { margin-top: 16px; display: grid; gap: 8px; }
.card-list li { font-size: .88rem; color: #3C4E59; padding-left: 20px; position: relative; font-weight: 500; }
.card-list li::before {
  content: ''; position: absolute; left: 0; top: .55em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
}

.note {
  display: flex; gap: 12px; margin-top: 32px; padding: 18px 22px;
  background: #FBF6E6; border: 1px solid #EEDFB4; border-radius: var(--radius-sm);
  font-size: .88rem; color: #5A4E2A;
}
.note i { color: #A98A1E; margin-top: 3px; }

/* ------------------------- PASSOS ------------------------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; counter-reset: s; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; margin-bottom: 14px;
  background: var(--navy); color: #fff; font-family: var(--font-head);
  font-weight: 800; font-size: .95rem;
}
.steps h3 { margin-bottom: 6px; font-size: 1.05rem; }
.steps p { font-size: .9rem; color: #41535E; }

/* ------------------------- EMPRESA ------------------------- */
.empresa-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.empresa-grid h2 { margin-bottom: 16px; }
.empresa-grid p { color: #41535E; margin-bottom: 14px; }

.check-list { display: grid; gap: 11px; margin-top: 22px; }
.check-list li { display: flex; gap: 10px; font-size: .93rem; color: #33454F; font-weight: 500; }
.check-list i { color: var(--wa); margin-top: 5px; }

.registry { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-lg); }
.registry h3 { color: #fff; font-size: 1.05rem; display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.registry h3 i { color: var(--gold); }
.registry dl { display: grid; gap: 2px; }
.registry dl > div { padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .13); }
.registry dl > div:last-child { border-bottom: 0; }
.registry dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: rgba(255, 255, 255, .62); font-weight: 800; margin-bottom: 2px; }
.registry dd { font-size: .95rem; font-weight: 600; color: #fff; }
.registry .fineprint { color: rgba(255, 255, 255, .6); }

/* ------------------------- MINI CARDS ------------------------- */
.mini-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.mini { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.mini i { font-size: 1.5rem; color: var(--teal); margin-bottom: 14px; display: block; }
.mini h3 { font-size: 1.02rem; margin-bottom: 6px; }
.mini p { font-size: .9rem; color: #41535E; }

/* ------------------------- FAQ ------------------------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 4px 22px; transition: border-color .2s ease, box-shadow .2s ease;
}
.faq details[open] { border-color: #C6DCE7; box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0;
  font-family: var(--font-head); font-weight: 700; font-size: .98rem; color: var(--navy);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { color: var(--muted); font-size: .8rem; transition: transform .2s ease; flex: none; }
.faq details[open] summary i { transform: rotate(180deg); }
.faq details p { padding: 0 0 20px; font-size: .93rem; color: #41535E; }

/* ------------------------- CONTATO ------------------------- */
.contato-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

.contact-list { display: grid; gap: 18px; margin-top: 28px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.ci {
  width: 42px; height: 42px; border-radius: 11px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); color: var(--teal); font-size: 1.05rem;
}
.contact-list strong { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 1px; }
.contact-list div span, .contact-list div a { font-size: .96rem; font-weight: 600; color: var(--ink); }

.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
}
.form-card h3 { font-size: 1.15rem; margin-bottom: 20px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.field label .opt { color: var(--muted); font-weight: 500; }
.field label span[aria-hidden] { color: #C0392B; }

input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid #D6E0E6; border-radius: var(--radius-sm);
  font-family: var(--font); font-size: .95rem; color: var(--ink); background: #FBFDFE;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--teal); background: #fff;
  box-shadow: 0 0 0 3px rgba(30, 122, 140, .13);
}
textarea { resize: vertical; min-height: 104px; }
input::placeholder, textarea::placeholder { color: #93A5AF; }

.err { display: block; font-size: .78rem; color: #C0392B; font-weight: 600; min-height: 1em; margin-top: 4px; }
.invalid { border-color: #C0392B !important; background: #FEF6F5 !important; }

.consent { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0 4px; }
.consent input { width: 18px; height: 18px; flex: none; margin-top: 3px; accent-color: var(--wa); }
.consent label { font-size: .84rem; color: #41535E; line-height: 1.5; }

.form-ok {
  margin-top: 14px; padding: 14px 18px; border-radius: var(--radius-sm);
  background: #EAF8F0; border: 1px solid #B9E4CC; color: #14663C;
  font-size: .88rem; font-weight: 600; display: flex; gap: 10px; align-items: center;
}

/* ------------------------- RODAPÉ ------------------------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .82); padding: 56px 0 88px; }

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr 1fr; gap: 36px; padding-bottom: 38px; }
.footer-brand strong { font-family: var(--font-head); color: #fff; font-size: 1.02rem; display: block; margin: 12px 0 8px; }
.footer-brand p { font-size: .88rem; color: rgba(255, 255, 255, .68); max-width: 34ch; }

.footer-col h3 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .09em; margin-bottom: 14px; font-family: var(--font); font-weight: 800; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col li { font-size: .88rem; color: rgba(255, 255, 255, .76); display: flex; gap: 9px; align-items: flex-start; }
.footer-col li i { color: var(--gold); margin-top: 4px; font-size: .82rem; }
.footer-col a { color: rgba(255, 255, 255, .82); }
.footer-col a:hover { color: #fff; text-decoration: underline; }

.footer-legal { border-top: 1px solid rgba(255, 255, 255, .13); padding-top: 22px; display: grid; gap: 10px; }
.company-data { font-size: .8rem; color: rgba(255, 255, 255, .7); line-height: 1.7; }
.company-data strong { color: rgba(255, 255, 255, .92); }
.legal-note { font-size: .76rem; color: rgba(255, 255, 255, .52); line-height: 1.65; }
.copyright { font-size: .78rem; color: rgba(255, 255, 255, .55); }

/* ------------------------- COOKIES ------------------------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 950;
  max-width: 720px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 18px 20px;
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
}
.cookie p { font-size: .82rem; color: #41535E; flex: 1 1 320px; }
.cookie a { text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex: none; }

/* ------------------------- FAB WHATSAPP ------------------------- */
.fab-wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 940;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa); color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.65rem; box-shadow: 0 10px 26px rgba(18, 140, 74, .4);
  transition: transform .2s ease, background .2s ease;
}
.fab-wa:hover { background: var(--wa-dark); color: #fff; transform: scale(1.06); }

/* Quando o aviso de cookies está visível, o botão flutuante sobe
   pela altura real da barra (medida pelo JavaScript em --cookie-h). */
body.cookie-visible .fab-wa { bottom: calc(var(--cookie-h, 160px) + 18px); }

/* ------------------------- RESPONSIVO ------------------------- */
@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .empresa-grid, .contato-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero { padding: 52px 0 60px; }
  .section { padding: 60px 0; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); padding: 10px 24px 20px;
    max-height: 0; overflow: hidden; opacity: 0; visibility: hidden;
    transition: max-height .28s ease, opacity .22s ease, visibility .22s;
  }
  .nav.open { max-height: 460px; opacity: 1; visibility: visible; overflow-y: auto; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav li:last-child { border-bottom: 0; padding-top: 14px; }
  .nav a { display: block; padding: 14px 0; font-size: 1rem; }
  .nav-cta a { display: inline-flex; width: 100%; padding: 14px 20px; }
  .header-inner { flex-wrap: wrap; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  .brand-text small { display: none; }
  h1 { font-size: 1.72rem; }
  .lead { font-size: 1rem; }
  .hero-card, .form-card, .registry { padding: 22px; }
  .card, .mini { padding: 22px; }
  .hero-actions .btn { width: 100%; }
  .cookie { padding: 16px; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .fab-wa { width: 52px; height: 52px; font-size: 1.5rem; right: 14px; bottom: 14px; }
  .section { padding: 48px 0; }
  /* Espaço extra para o botão flutuante não cobrir o fim do conteúdo */
  .site-footer { padding-bottom: 96px; }
  .legal-page { padding-bottom: 110px; }
  .fab-wa { bottom: 16px; }
}

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

/* ------------------------- PÁGINAS LEGAIS ------------------------- */
.legal-page { padding: 56px 0 76px; }
.legal-page .wrap { max-width: 820px; }
.legal-page h1 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: 10px; }
.legal-page .updated { font-size: .85rem; color: var(--muted); margin-bottom: 32px; }
.legal-page h2 { font-size: 1.2rem; margin: 34px 0 12px; }
.legal-page h3 { font-size: 1rem; margin: 22px 0 8px; }
.legal-page p, .legal-page li { font-size: .96rem; color: #33454F; margin-bottom: 12px; }
.legal-page ul { list-style: disc; padding-left: 22px; }
.legal-page ul li { margin-bottom: 8px; }
.legal-page .back { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 24px; }
