/* ==========================================================================
   AssessoriaMEI.blog — Design System
   ========================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
ul, ol { list-style: none; }

/* ---------- Skip link (acessibilidade) ---------- */
.skip-link { position: absolute; top: -100px; left: 8px; background: var(--primary); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 var(--radius) var(--radius); font-weight: 600; z-index: 9999; transition: top .15s; }
.skip-link:focus { top: 0; outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Focus visible global ---------- */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.btn:focus-visible, .faq-q:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- Tokens ---------- */
:root {
  /* Cores */
  --primary: #1e3a8a;
  --primary-dark: #1e2f6b;
  --primary-light: #3b5bbd;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --text: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --success: #15803d;
  --warning: #b45309;
  --danger: #b91c1c;

  /* Tipografia */
  --font-head: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Espaçamento */
  --container: 1200px;
  --space-xs: .5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Outros */
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.05);
  --shadow: 0 4px 14px rgba(15,23,42,.08);
  --shadow-lg: 0 12px 32px rgba(15,23,42,.12);
  --transition: .25s ease;
}

/* ---------- Tipografia ---------- */
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--text); line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.25rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 2.5vw + .8rem, 2.25rem); letter-spacing: -.015em; margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: .75rem; }
h4 { font-size: 1.125rem; margin-bottom: .5rem; }
p { color: var(--text-muted); margin-bottom: 1rem; }
strong { color: var(--text); font-weight: 600; }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: var(--space-2xl) 0; }
.section-sm { padding: var(--space-xl) 0; }
.section-alt { background: var(--surface-alt); }
.text-center { text-align: center; }
.lead { font-size: 1.125rem; color: var(--text-muted); max-width: 720px; margin: 0 auto 2rem; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); padding: .35rem .75rem; background: rgba(30,58,138,.08); border-radius: 999px; margin-bottom: 1rem; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.5rem; border-radius: var(--radius); font-weight: 600; font-size: .95rem; transition: var(--transition); border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-secondary { background: var(--primary); color: #fff; }
.btn-secondary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-lg { padding: 1.05rem 1.85rem; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-wrap { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }
.logo { display: flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--primary); }
.logo-mark { width: 38px; height: 38px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.05rem; }
.logo-mark span { color: var(--accent); }
.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a { font-weight: 500; color: var(--text); font-size: .95rem; }
.main-nav a:hover { color: var(--primary); }
.main-nav a.active { color: var(--primary); font-weight: 600; }
.nav-cta { background: var(--primary); color: #fff !important; padding: .55rem 1.1rem; border-radius: var(--radius); font-weight: 600; }
.nav-cta:hover { background: var(--primary-dark); color: #fff !important; }
.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 8px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--text); position: relative; transition: var(--transition); }
.menu-toggle span::before, .menu-toggle span::after { content: ''; position: absolute; left: 0; width: 22px; height: 2px; background: var(--text); transition: var(--transition); }
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }

/* ---------- Hero ---------- */
.hero { padding: var(--space-xl) 0 var(--space-2xl); background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero-content h1 { margin-bottom: 1.25rem; }
.hero-content h1 span { color: var(--primary); }
.hero-sub { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 2rem; max-width: 540px; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.hero-trust { display: flex; gap: 1.5rem; flex-wrap: wrap; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.hero-trust-item { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--text-muted); }
.hero-trust-item::before { content: '✓'; width: 22px; height: 22px; background: rgba(21,128,61,.12); color: var(--success); border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .75rem; }
.hero-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-lg); position: relative; }
.hero-card::before { content: ''; position: absolute; top: -1px; left: -1px; right: -1px; height: 4px; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.hero-card h3 { color: var(--primary); margin-bottom: 1rem; }
.hero-card-list { display: grid; gap: .85rem; margin-top: 1rem; }
.hero-card-list li { display: flex; align-items: flex-start; gap: .65rem; font-size: .92rem; color: var(--text); }
.hero-card-list li::before { content: ''; flex: 0 0 8px; width: 8px; height: 8px; margin-top: .55rem; background: var(--accent); border-radius: 50%; }

/* ---------- Cards de serviço ---------- */
.section-head { text-align: center; max-width: 760px; margin: 0 auto var(--space-lg); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.service-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; transition: var(--transition); position: relative; overflow: hidden; }
.service-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow); }
.service-icon { width: 52px; height: 52px; border-radius: 12px; background: rgba(30,58,138,.08); color: var(--primary); display: grid; place-items: center; margin-bottom: 1rem; font-size: 1.5rem; font-weight: 700; }
.service-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.service-card p { font-size: .95rem; margin-bottom: 1rem; }
.service-card a { color: var(--primary); font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: .35rem; }
.service-card a:hover { color: var(--accent-dark); }

/* ---------- Diferenciais ---------- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.feature { padding: 1.5rem; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; }
.feature h3 { color: var(--primary); font-size: 1.05rem; }
.feature p { font-size: .92rem; margin-bottom: 0; }

/* ---------- Como funciona ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; counter-reset: step; }
.step { text-align: center; position: relative; counter-increment: step; }
.step-num { width: 64px; height: 64px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; margin: 0 auto 1rem; font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; box-shadow: 0 0 0 6px rgba(30,58,138,.1); }
.step h3 { font-size: 1.1rem; }
.step p { font-size: .92rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: .75rem; overflow: hidden; }
.faq-q { width: 100%; padding: 1.15rem 1.35rem; text-align: left; font-weight: 600; color: var(--text); font-size: 1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-q::after { content: '+'; font-size: 1.5rem; color: var(--primary); transition: var(--transition); flex-shrink: 0; }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s ease; padding: 0 1.35rem; }
.faq-item.open .faq-a { max-height: 600px; padding: 0 1.35rem 1.25rem; }
.faq-a p { margin-bottom: .75rem; font-size: .95rem; }

/* ---------- CTA section ---------- */
.cta-band { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; padding: var(--space-xl) 0; border-radius: var(--radius-lg); margin: var(--space-2xl) 1.25rem; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 620px; margin: 0 auto 2rem; }
.cta-band .btn-primary { box-shadow: 0 8px 24px rgba(245,158,11,.35); }

/* ---------- Footer ---------- */
.site-footer { background: #0f172a; color: #cbd5e1; padding: var(--space-xl) 0 var(--space-md); margin-top: var(--space-xl); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-col h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.footer-col ul li { margin-bottom: .55rem; }
.footer-col a { color: #94a3b8; font-size: .92rem; transition: var(--transition); }
.footer-col a:hover { color: var(--accent); }
.footer-brand p { color: #94a3b8; font-size: .9rem; margin-top: .75rem; }
.footer-contact-item { display: flex; align-items: flex-start; gap: .5rem; font-size: .88rem; color: #94a3b8; margin-bottom: .5rem; line-height: 1.5; }
.footer-dpo { display: block; margin-top: .75rem; padding-top: .75rem; border-top: 1px solid #1e293b; font-size: .82rem; color: #94a3b8; }
.footer-dpo strong { color: #cbd5e1; display: block; margin-bottom: .15rem; }
.footer-dpo a { color: var(--accent); }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: #64748b; }
.footer-cnpj { font-family: monospace; }

/* ---------- Disclaimer ---------- */
.disclaimer-bar { background: #fef3c7; border-bottom: 1px solid #fde68a; color: #78350f; padding: .65rem 0; font-size: .82rem; text-align: center; }
.disclaimer-bar strong { color: #78350f; }
.disclaimer-block { background: #fef3c7; border: 1px solid #fcd34d; border-left: 4px solid #f59e0b; border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.disclaimer-block h4 { color: #78350f; font-size: 1rem; margin-bottom: .5rem; }
.disclaimer-block p { color: #78350f; font-size: .9rem; margin-bottom: .5rem; }
.disclaimer-block p:last-child { margin-bottom: 0; }

/* ---------- Page hero ---------- */
.page-hero { background: linear-gradient(180deg, #fff 0%, var(--surface-alt) 100%); padding: var(--space-xl) 0 var(--space-lg); text-align: center; border-bottom: 1px solid var(--border); }
.breadcrumb { display: flex; justify-content: center; gap: .5rem; font-size: .85rem; color: var(--text-light); margin-bottom: 1rem; }
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Content ---------- */
.content { max-width: 820px; margin: 0 auto; }
.content h2 { margin-top: 2.5rem; margin-bottom: 1rem; }
.content h2:first-child { margin-top: 0; }
.content h3 { margin-top: 1.75rem; }
.content p, .content ul, .content ol { margin-bottom: 1.15rem; }
.content ul, .content ol { padding-left: 1.5rem; color: var(--text-muted); }
.content li { margin-bottom: .5rem; list-style: disc; }
.content ol li { list-style: decimal; }
.content a { color: var(--primary); text-decoration: underline; }
.content a:hover { color: var(--accent-dark); }
.table-wrap { width: 100%; overflow-x: auto; margin: 1.5rem 0; -webkit-overflow-scrolling: touch; }
.content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .92rem; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); min-width: 480px; }
.table-wrap table { margin: 0; }
.content th, .content td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.content th { background: var(--primary); color: #fff; font-weight: 600; font-size: .9rem; }
.content tr:last-child td { border-bottom: 0; }

/* ---------- Form ---------- */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .9rem; font-weight: 600; color: var(--text); margin-bottom: .4rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: .75rem .9rem; border: 1.5px solid var(--border); border-radius: var(--radius); font-family: var(--font-body); font-size: .95rem; transition: var(--transition); background: var(--surface); color: var(--text); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30,58,138,.12); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-check { display: flex; align-items: flex-start; gap: .55rem; font-size: .88rem; color: var(--text-muted); margin-bottom: 1.25rem; line-height: 1.5; }
.form-check input { margin-top: .15rem; }

/* ---------- Contact info ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.contact-info { display: grid; gap: 1.5rem; }
.contact-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.contact-block h3 { font-size: 1.05rem; color: var(--primary); margin-bottom: .5rem; }
.contact-block p { margin-bottom: .35rem; font-size: .95rem; }
.contact-block a { color: var(--primary); font-weight: 600; }
.contact-block a:hover { color: var(--accent-dark); }

/* ---------- WhatsApp float ---------- */
.wa-float { position: fixed; bottom: 24px; right: 24px; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,.4); z-index: 50; transition: var(--transition); }
.wa-float:hover { transform: scale(1.08); box-shadow: 0 10px 28px rgba(37,211,102,.5); }
.wa-float svg { width: 32px; height: 32px; }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; bottom: 24px; left: 24px; max-width: 380px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 1.25rem; z-index: 60; display: none; }
.cookie-banner.show { display: block; animation: slideUp .35s ease; }
.cookie-banner h4 { font-size: 1rem; color: var(--primary); margin-bottom: .5rem; }
.cookie-banner p { font-size: .85rem; margin-bottom: 1rem; }
.cookie-actions { display: flex; gap: .5rem; }
.cookie-actions .btn { flex: 1; padding: .6rem 1rem; font-size: .85rem; }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .menu-toggle { display: flex; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); flex-direction: column; padding: 1rem 1.25rem; gap: .25rem; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .75rem 0; width: 100%; border-bottom: 1px solid var(--border); }
  .main-nav a:last-child { border-bottom: 0; }
  .nav-cta { text-align: center; margin-top: .5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: var(--space-xl) 0; }
  .cta-band { margin: var(--space-xl) 1rem; padding: var(--space-lg) 1rem; }
  .hero { padding: var(--space-lg) 0 var(--space-xl); }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .wa-float { width: 56px; height: 56px; bottom: 16px; right: 16px; }
}
