/* ════════════════════════════════════════════════════════════
   Mevlox Page Shell — nav + footer + toggle compartilhados
   Usado nas páginas internas (não no index.html / sobre.html)
   ════════════════════════════════════════════════════════════ */

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

html { scroll-behavior: smooth; }
body {
  font-family: 'Instrument Sans', system-ui, sans-serif;
  background: var(--mev-bg-page);
  color: var(--mev-text-primary);
  font-size: 15px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .35s var(--mev-ease), color .35s var(--mev-ease);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

main { min-height: calc(100vh - 400px); padding-top: 80px; }
.wrap    { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.wrap-sm { max-width: 760px;  margin: 0 auto; padding: 0 28px; }

/* ─── Focus visível ──────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--mev-primary);
  outline-offset: 2px;
  border-radius: var(--mev-radius-sm);
}

/* ─── Skip to content (a11y) ─────────────────────────────── */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--mev-primary); color: #fff;
  padding: 12px 20px; border-radius: var(--mev-radius-md);
  font-weight: 600; font-size: 14px;
}
.skip-link:focus { left: 14px; top: 14px; }

/* ─── Logo dual ──────────────────────────────────────────── */
.logo-img.logo-light { display: none; }
.logo-img.logo-dark  { display: block; }
[data-theme="light"] .logo-img.logo-light { display: block; }
[data-theme="light"] .logo-img.logo-dark  { display: none; }
/* Sempre logo white dentro de áreas always-dark (nav/footer) */
.always-dark .logo-img.logo-light { display: none !important; }
.always-dark .logo-img.logo-dark  { display: block !important; }

/* ─── Always-dark wrapper (nav, footer) ──────────────────── */
.always-dark {
  --mev-bg-page: #0A0B14; --mev-bg-card: #0d1020;
  --mev-bg-hero: #0A0B14;
  --mev-text-primary: #F9FAFB; --mev-text-secondary: #9CA3AF; --mev-text-muted: #6B7280;
  --mev-border: rgba(255,255,255,.10);
  color-scheme: dark;
  background: #0A0B14; color: #F9FAFB;
}

/* ─── NAV ────────────────────────────────────────────────── */
nav.site {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 14px 0;
  background: rgba(10,11,20,.94);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: background .3s, border-color .3s;
}
.nav-inner { display: flex; align-items: center; gap: 24px; }
.nav-logo  { flex: 1; display: flex; align-items: center; }
.logo-img  { height: 26px; display: block; }
.nav-links {
  flex: 0 0 auto; display: flex; gap: 28px; font-size: 14px;
  color: rgba(255,255,255,.62);
}
.nav-links a { transition: color .15s; padding: 4px 0; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-right {
  flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 12px;
}
.nav-cta {
  font-size: 13px; font-weight: 600;
  padding: 8px 20px; background: #fff; color: #0A0B14;
  border-radius: 9999px;
  transition: opacity .18s, transform .2s var(--mev-ease);
  white-space: nowrap;
}
.nav-cta:hover { opacity: .9; transform: translateY(-1px); }

/* Theme toggle */
.theme-toggle {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  border-radius: 9999px; cursor: pointer; color: #fff;
  transition: background .2s, transform .2s var(--mev-ease);
  position: relative; overflow: hidden;
}
.theme-toggle:hover { background: rgba(255,255,255,.14); transform: translateY(-1px); }
.theme-toggle svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  transition: opacity .25s var(--mev-ease), transform .25s var(--mev-ease);
  position: absolute;
}
.theme-toggle .t-sun  { opacity: 0; transform: rotate(-30deg) scale(.6); }
.theme-toggle .t-moon { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="light"] .theme-toggle .t-sun  { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="light"] .theme-toggle .t-moon { opacity: 0; transform: rotate(30deg) scale(.6); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 38px; height: 38px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--mev-radius-md); cursor: pointer; padding: 8px;
}
.hamburger span {
  display: block; height: 1.5px; background: #fff; border-radius: 2px;
  transition: all .25s var(--mev-ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-drawer {
  display: none; position: fixed; inset: 0; z-index: 190;
  background: #0A0B14;
  flex-direction: column; padding: 96px 28px 40px; gap: 4px;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  font-size: 22px; font-weight: 500; color: #fff;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-drawer .drawer-cta {
  margin-top: 24px; align-self: flex-start;
  background: #fff; color: #0A0B14;
  padding: 12px 28px; border-radius: 9999px;
  font-size: 15px; font-weight: 600; border-bottom: none;
}

/* ─── PAGE HEADER ────────────────────────────────────────── */
.page-header {
  padding: 80px 0 56px;
  border-bottom: 1px solid var(--mev-border);
}
.page-header .crumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--mev-text-muted); margin-bottom: 14px;
}
.page-header h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(34px, 5.5vw, 56px); font-weight: 700;
  letter-spacing: -.02em; line-height: 1.05;
  color: var(--mev-text-primary);
}
.page-header .subtitle {
  margin-top: 20px; max-width: 640px;
  font-size: 17px; color: var(--mev-text-secondary);
  line-height: 1.6;
}

/* ─── PROSE (conteúdo de páginas legais/texto) ───────────── */
.prose { max-width: 760px; padding: 56px 0 96px; }
.prose h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 24px; font-weight: 600; margin-top: 48px; margin-bottom: 16px;
  color: var(--mev-text-primary); letter-spacing: -.01em;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 18px; font-weight: 600; margin-top: 32px; margin-bottom: 12px;
  color: var(--mev-text-primary);
}
.prose p { margin-bottom: 16px; color: var(--mev-text-secondary); font-size: 15px; line-height: 1.75; }
.prose ul, .prose ol { margin: 12px 0 20px 24px; color: var(--mev-text-secondary); }
.prose li { margin-bottom: 8px; line-height: 1.7; }
.prose a { color: var(--mev-primary); text-decoration: underline; text-underline-offset: 3px; }
[data-theme="dark"] .prose a { color: #93C5FD; }
.prose strong { color: var(--mev-text-primary); font-weight: 600; }
.prose code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; background: var(--mev-bg-card);
  padding: 2px 6px; border-radius: var(--mev-radius-sm);
  border: 1px solid var(--mev-border);
  color: var(--mev-text-primary);
}
.prose .meta-row {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--mev-text-muted);
  padding: 16px 0; border-top: 1px solid var(--mev-border);
  margin-top: 48px;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
footer.site-footer {
  padding: 64px 0 40px;
}
.foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.foot-brand img { height: 22px; opacity: .8; margin-bottom: 16px; }
.foot-brand p   {
  font-size: 13px; line-height: 1.65; max-width: 240px;
  color: rgba(255,255,255,.45);
}
.foot-brand .addr {
  font-size: 12px; color: rgba(255,255,255,.28); margin-top: 10px; line-height: 1.5;
}
.foot-col h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; text-transform: uppercase; letter-spacing: .07em;
  color: rgba(255,255,255,.28); margin-bottom: 16px;
}
.foot-col a {
  display: block; font-size: 13.5px;
  color: rgba(255,255,255,.50); padding: 5px 0; transition: color .15s;
}
.foot-col a:hover { color: rgba(255,255,255,.92); }
.foot-bottom {
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,.07);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: .04em; color: rgba(255,255,255,.32);
}

/* ─── WhatsApp FAB ──────────────────────────────────────── */
.whatsapp-fab {
  position: fixed; bottom: 28px; right: 28px; z-index: 100;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform .2s var(--mev-ease);
}
.whatsapp-fab:hover { transform: scale(1.08); }
.whatsapp-fab svg { width: 28px; height: 28px; fill: #fff; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-brand { grid-column: 1/-1; }
}
@media (max-width: 640px) {
  main { padding-top: 72px; }
  .page-header { padding: 56px 0 40px; }
  .prose { padding: 40px 0 72px; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
  .whatsapp-fab { bottom: 20px; right: 20px; }
}

/* ─── Reduced motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
