/* =========================================================
   Conceito Contabilidade e Acessoria - estilos do site
   Design tokens + layout responsivo mobile-first
   ========================================================= */

:root {
  --teal-900: #0b3a3d;
  --teal-800: #10484c;
  --teal-700: #16605f;
  --teal-50: #eef5f4;
  --gold-600: #b8894b;
  --gold-500: #c69a5c;
  --gold-50: #faf4ea;
  --ink: #17211f;
  --ink-soft: #4a5a57;
  --line: #e3e8e6;
  --bg: #ffffff;
  --bg-soft: #f7f9f8;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(11, 58, 61, .06), 0 8px 24px -16px rgba(11, 58, 61, .18);
  --shadow-md: 0 2px 4px rgba(11, 58, 61, .05), 0 24px 48px -28px rgba(11, 58, 61, .28);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --maxw: 1160px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal-700); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--teal-900); }

h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .6em; font-weight: 800; }
h1 { font-size: clamp(2rem, 5.2vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.35rem); }
h3 { font-size: 1.135rem; font-weight: 700; }
p { margin: 0 0 1rem; color: var(--ink-soft); }

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 6px;
}

.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;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--teal-900); color: #fff; padding: .75rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.container.narrow { max-width: 760px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  padding: .85rem 1.35rem; border-radius: 999px; border: 1.5px solid transparent;
  min-height: 48px; transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease, color .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal-800); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--teal-900); color: #fff; box-shadow: var(--shadow-md); }
.btn-outline { border-color: var(--line); background: #fff; color: var(--teal-900); }
.btn-outline:hover { border-color: var(--teal-700); color: var(--teal-900); }
.btn-ghost { background: transparent; color: var(--teal-900); border-color: transparent; text-decoration: underline; }
.btn-sm { padding: .6rem 1.05rem; min-height: 42px; font-size: .95rem; }
.btn-lg { padding: 1rem 1.75rem; min-height: 54px; font-size: 1.0625rem; }
.btn-block { width: 100%; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700;
  color: var(--gold-600); margin: 0 0 .75rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.logo { display: inline-flex; }
.logo img { width: auto; height: 44px; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; }
.site-nav a:hover { color: var(--teal-800); }
.site-nav .btn { color: #fff; }
@media (max-width: 860px) {
  .site-nav a:not(.btn) { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: 3rem 0 2rem; background: linear-gradient(180deg, var(--teal-50) 0%, #fff 82%); }
.hero-grid { display: grid; gap: 2.25rem; align-items: center; }
.hero-copy .lead { font-size: 1.125rem; color: var(--ink-soft); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 1.75rem; }
.hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

.trust-list, .check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.trust-list li, .check-list li {
  position: relative; padding-left: 1.75rem; color: var(--ink-soft); font-size: .98rem;
}
.trust-list li::before, .check-list li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: .9rem; height: .5rem;
  border-left: 2.5px solid var(--gold-600); border-bottom: 2.5px solid var(--gold-600);
  transform: rotate(-45deg);
}
.check-list { gap: .9rem; margin-top: 1.25rem; }
.check-list li { font-size: 1.0125rem; }

@media (min-width: 920px) {
  .hero { padding: 4.75rem 0 3.5rem; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 3.5rem; }
  .trust-list { grid-template-columns: 1fr 1fr; }
}

/* ---------- Seções ---------- */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 44rem; margin-bottom: 2.25rem; }
.section-sub { font-size: 1.0625rem; }
@media (min-width: 920px) { .section { padding: 5rem 0; } }

/* ---------- Cards de benefícios ---------- */
.cards { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.5rem; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d6e0dd; }
.card p { margin-bottom: 0; font-size: .98rem; }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--gold-50); color: var(--teal-800); margin-bottom: 1rem;
}
.card-icon svg { width: 24px; height: 24px; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Passos ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.steps p { margin-bottom: 0; font-size: .96rem; }
.step-num {
  display: block; font-size: 1.6rem; font-weight: 800; color: var(--gold-600);
  letter-spacing: -.03em; margin-bottom: .5rem;
}

/* ---------- Seção visual ---------- */
.visual-grid { display: grid; gap: 2rem; align-items: center; }
.visual-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
@media (min-width: 920px) {
  .visual-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .visual-grid.reverse .visual-copy { order: 2; }
  .visual-grid.reverse .visual-media { order: 1; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .75rem; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 1.25rem;
}
.faq summary {
  cursor: pointer; font-weight: 700; padding: 1.1rem 2rem 1.1rem 0; list-style: none;
  position: relative; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .25rem; top: 1.5rem;
  width: .6rem; height: .6rem; border-right: 2.5px solid var(--teal-700);
  border-bottom: 2.5px solid var(--teal-700); transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding-bottom: 1.1rem; margin: 0; font-size: .99rem; }

/* ---------- Formulário ---------- */
.cta-final { background: linear-gradient(180deg, #fff 0%, var(--teal-50) 100%); }
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem; box-shadow: var(--shadow-md); display: grid; gap: 1.1rem;
}
@media (min-width: 700px) { .form-card { padding: 2.25rem; } }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 700; font-size: .95rem; }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 12px; padding: .8rem .9rem; min-height: 50px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus {
  border-color: var(--teal-700); box-shadow: 0 0 0 4px rgba(22, 96, 95, .12); outline: none;
}
.consent, .cookie-option { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; color: var(--ink-soft); }
.consent input, .cookie-option input { margin-top: .3rem; width: 20px; height: 20px; accent-color: var(--teal-800); flex: 0 0 auto; }
.form-note { font-size: .87rem; color: var(--ink-soft); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-direct { margin-top: 1.5rem; text-align: center; font-size: .98rem; }

.alert { border-radius: var(--radius); padding: 1rem 1.15rem; margin-bottom: 1.5rem; font-size: .96rem; }
.alert-error { background: #fdf1f0; border: 1px solid #f0cfcb; color: #7a2820; }
.alert ul { margin: .5rem 0 0; padding-left: 1.15rem; }

/* ---------- Página de obrigado ---------- */
.thanks { text-align: center; }
.thanks-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%; background: var(--gold-50);
  color: var(--teal-800); margin-bottom: 1.25rem;
}
.thanks-badge svg { width: 30px; height: 30px; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Páginas legais ---------- */
.legal { padding: 3rem 0 4rem; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2.25rem; }
.legal h3 { margin-top: 1.5rem; }
.legal ul { padding-left: 1.25rem; color: var(--ink-soft); }
.legal li { margin-bottom: .45rem; }
.legal .updated { font-size: .9rem; color: var(--ink-soft); }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--teal-900); color: #dbe7e5; padding: 3rem 0 1.5rem; margin-top: 0; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 3rem; } }
.footer-logo { background: #fff; border-radius: 12px; padding: .5rem .75rem; height: 52px; width: auto; margin-bottom: 1rem; }
.footer-title { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: .9rem; }
.footer-legal { color: #c3d5d2; font-size: .94rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .94rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 2.25rem; padding-top: 1.25rem; }
.footer-bottom p { color: #a9c0bd; font-size: .87rem; margin: 0; }

/* ---------- Banner de cookies ---------- */
.cookie-banner {
  position: fixed; inset: auto 0 0 0; z-index: 60;
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -18px 40px -30px rgba(11, 58, 61, .5);
  padding: 1.1rem 1.25rem 1.25rem;
}
.cookie-banner-inner {
  max-width: var(--maxw); margin: 0 auto; display: grid; gap: 1rem; align-items: center;
}
@media (min-width: 960px) { .cookie-banner-inner { grid-template-columns: 1.6fr 1fr; } }
.cookie-title { font-size: 1.05rem; margin-bottom: .35rem; }
.cookie-text { font-size: .92rem; margin: 0; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-start; }
@media (min-width: 960px) { .cookie-actions { justify-content: flex-end; } }
.cookie-actions .btn { flex: 1 1 auto; }
@media (min-width: 560px) { .cookie-actions .btn { flex: 0 0 auto; } }
.cookie-prefs {
  max-width: var(--maxw); margin: 1rem auto 0; padding-top: 1rem;
  border-top: 1px solid var(--line); display: grid; gap: .9rem; justify-items: start;
}
.cookie-prefs fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: .75rem; }

/* ---------- Animações leves ---------- */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-visible { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.is-visible { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}
