/*
Theme Name: MEI SP Theme
Theme URI: https://meisp.com.br
Author: MEI SP Team
Author URI: https://meisp.com.br
Description: Tema profissional para o Movimento Empresarial de Inovação (MEI SP), com foco em desempenho, acessibilidade, segurança e conversão.
Version: 4.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: mei-sp-theme
*/

:root {
  --primary: #0a192f;
  --primary-2: #12233f;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --emerald: #10b981;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --white: #fff;
  --radius: 16px;
  --shadow: 0 18px 45px rgba(15, 23, 42, .09);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }

.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.narrow-container { width: min(900px, calc(100% - 32px)); }

.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100000; padding: 10px 14px; background: var(--accent); color: #fff; text-decoration: none; border-radius: 8px; }
.skip-link:focus { top: 16px; }

.top-utility-bar { background: var(--primary); color: #cbd5e1; font-size: .78rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.top-bar-container { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.top-bar-container strong { color: #fff; }
.top-bar-links { display: flex; gap: 18px; flex-wrap: wrap; }
.top-bar-links a { color: #93c5fd; text-decoration: none; }
.top-bar-links a:hover { color: #fff; }

.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.97); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); box-shadow: 0 4px 18px rgba(15,23,42,.05); }
.header-container { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; min-width: 0; }
.site-logo .custom-logo-link { display: flex; align-items: center; }
.site-logo .custom-logo { max-height: 58px; width: auto; }
.logo-icon { width: 42px; height: 42px; display: grid; place-items: center; background: linear-gradient(135deg,#0f172a,#1e293b); border-radius: 11px; }
.logo-text { display: flex; flex-direction: column; }
.logo-title { font-size: 1.35rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.logo-subtitle { margin-top: 4px; font-size: .55rem; font-weight: 800; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

.main-navigation { display: flex; align-items: center; }
.nav-menu { list-style: none; display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; color: #334155; font-size: .87rem; font-weight: 700; text-decoration: none; }
.nav-link:hover, .nav-link:focus-visible { color: var(--accent); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border: 1px solid transparent; border-radius: 9px; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary { background: #fff; color: var(--text); border-color: #cbd5e1; }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-header { white-space: nowrap; }
.btn-full { width: 100%; }

.mobile-menu-toggle { display: none; border: 0; background: transparent; padding: 10px; cursor: pointer; }
.mobile-menu-toggle span { display: block; width: 25px; height: 3px; margin: 4px 0; background: var(--text); border-radius: 3px; }

main#main-content { min-height: 50vh; }
.hero-section { background: radial-gradient(circle at 80% 20%, rgba(37,99,235,.28), transparent 35%), linear-gradient(135deg,#071326,#12233f); color: #fff; padding: 86px 0; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 64px; }
.eyebrow { display: inline-block; color: var(--accent); font-size: .76rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow-light { color: #6ee7b7; }
.hero-copy h1 { max-width: 760px; margin: 12px 0 20px; font-size: clamp(2.3rem, 5vw, 4.5rem); line-height: 1.02; letter-spacing: -.055em; }
.hero-copy > p { max-width: 690px; margin: 0 0 28px; color: #cbd5e1; font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.hero-actions .btn-secondary:hover { background: #fff; color: var(--text); }
.hero-points { display: flex; flex-wrap: wrap; gap: 14px 20px; margin-top: 24px; color: #cbd5e1; font-size: .82rem; }
.hero-panel { padding: 30px; border: 1px solid rgba(255,255,255,.13); border-radius: 22px; background: rgba(255,255,255,.07); box-shadow: 0 30px 70px rgba(0,0,0,.22); }
.hero-panel-badge { color: #6ee7b7; font-size: .72rem; font-weight: 900; letter-spacing: .1em; }
.hero-panel h2 { margin: 10px 0 22px; font-size: 2rem; line-height: 1.15; }
.hero-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-mini-grid a { display: flex; flex-direction: column; gap: 7px; padding: 17px; color: #fff; text-decoration: none; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 13px; }
.hero-mini-grid a:hover { background: rgba(255,255,255,.12); }
.hero-mini-grid strong { color: #93c5fd; font-size: .75rem; }
.hero-mini-grid span { font-weight: 700; font-size: .88rem; }

.section { padding: 78px 0; }
.section-light { background: #fff; }
.section-dark { background: var(--primary); color: #fff; }
.section-heading { max-width: 720px; margin-bottom: 34px; }
.section-heading h2, .contact-copy h2, .split-section h2 { margin: 8px 0 10px; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -.04em; }
.section-heading p, .contact-copy p { color: var(--muted); margin: 0; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { padding: 25px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 28px rgba(15,23,42,.04); }
.service-card:hover { border-color: #bfdbfe; box-shadow: var(--shadow); }
.service-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; background: #eff6ff; border-radius: 12px; }
.service-card h3 { margin: 0 0 9px; font-size: 1.1rem; }
.service-card p { margin: 0 0 16px; color: var(--muted); font-size: .9rem; }
.service-card a, .info-card a { color: var(--accent); font-weight: 800; text-decoration: none; }

.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.split-section p { color: #cbd5e1; }
.official-links { display: grid; gap: 12px; }
.official-links a { display: flex; justify-content: space-between; gap: 16px; padding: 18px; color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(255,255,255,.05); }
.official-links a:hover { background: rgba(255,255,255,.09); }
.official-links span { color: #93c5fd; text-align: right; }

.contact-section { background: #f1f5f9; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 54px; align-items: start; }
.contact-copy { padding-top: 22px; }
.contact-trust { display: grid; gap: 8px; margin-top: 24px; color: #475569; font-size: .9rem; }
.contact-card { background: #fff; padding: 30px; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.lead-form { display: grid; gap: 9px; }
.lead-form label { font-weight: 800; font-size: .84rem; }
.lead-form input, .lead-form select, .lead-form textarea, .cnae-search-card input { width: 100%; border: 1px solid #cbd5e1; border-radius: 9px; background: #fff; padding: 12px 13px; color: var(--text); outline: none; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus, .cnae-search-card input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.lead-form textarea { resize: vertical; }
.form-privacy { margin: 2px 0 0; color: #64748b; font-size: .73rem; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-message { margin-bottom: 18px; padding: 13px 15px; border-radius: 9px; font-size: .88rem; }
.form-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.site-content-wrap { padding: 55px 0; }
.content-card { padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 28px rgba(15,23,42,.04); }
.entry-title { margin-top: 0; }

.cnae-page .lead { max-width: 760px; color: var(--muted); font-size: 1.05rem; }
.cnae-search-card { margin-top: 28px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.cnae-search-card label { display: block; margin-bottom: 8px; font-weight: 800; }
.cnae-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.info-card { padding: 25px; background: #fff; border: 1px solid var(--line); border-radius: 15px; }
.info-card h2 { margin-top: 0; font-size: 1.15rem; }
.info-card p { color: var(--muted); }

.empty-state { text-align: center; }
.site-footer { margin-top: 0; padding: 56px 0 0; background: #071326; color: #cbd5e1; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-bottom: 42px; }
.site-footer h2, .site-footer h3 { color: #fff; margin-top: 0; }
.site-footer p { color: #94a3b8; }
.site-footer a { color: #93c5fd; text-decoration: none; }
.footer-bottom { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.1); color: #64748b; font-size: .8rem; }

@media (max-width: 1050px) {
  .mobile-menu-toggle { display: block; }
  .header-cta { display: none; }
  .main-navigation { display: none; position: fixed; inset: 76px 0 0; z-index: 999; background: #fff; padding: 24px 16px; overflow-y: auto; box-shadow: 0 20px 40px rgba(15,23,42,.15); }
  .main-navigation.active { display: block; }
  .nav-menu { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-menu li { border-bottom: 1px solid #eef2f7; }
  .nav-link { width: 100%; padding: 13px 5px; }
}

@media (max-width: 850px) {
  .hero-grid, .split-section, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .top-bar-container { padding-block: 8px; }
}

@media (max-width: 600px) {
  .container, .narrow-container { width: min(100% - 24px, 1180px); }
  .top-bar-links { display: none; }
  .header-container { min-height: 68px; }
  .main-navigation { inset: 68px 0 0; }
  .logo-subtitle { display: none; }
  .hero-section { padding: 58px 0; }
  .hero-panel { padding: 22px; }
  .hero-mini-grid, .service-grid, .info-grid, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 58px 0; }
  .contact-card { padding: 20px; }
  .cnae-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
