/*
Theme Name: mzmz Portal
Theme URI: https://mzmz.buzz/
Author: mzmz editorial
Description: Tema editorial independente em pt-BR para o portal de informações mzmz.
Version: 1.0.0
Text Domain: mzmz-portal
*/

:root {
  --bg: #07110e;
  --bg-soft: #0d1b17;
  --card: #12241e;
  --card-hover: #183027;
  --lime: #b8f34a;
  --cyan: #3dd6c6;
  --text: #f3f8f5;
  --muted: #afc2b8;
  --border: #29453a;
  --warning: #f0b44d;
  --danger: #e16f73;
  --focus: #d3ff7c;
  --radius: 14px;
  --button-radius: 10px;
  --shadow: 0 14px 36px rgba(0, 0, 0, .24);
  --content: 1200px;
  --reading: 800px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 88% 4%, rgba(61, 214, 198, .08), transparent 28rem),
    radial-gradient(circle at 8% 24%, rgba(184, 243, 74, .06), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: "Noto Sans", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--lime); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--cyan); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
button, input, textarea { font: inherit; }
.site-shell { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }
.reading-width { width: min(100%, var(--reading)); margin-inline: auto; }
.skip-link {
  position: fixed; z-index: 9999; top: 10px; left: 10px; transform: translateY(-180%);
  padding: 10px 16px; border-radius: 8px; background: var(--lime); color: var(--bg); font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.site-header {
  position: sticky; z-index: 100; top: 0; min-height: 66px;
  border-bottom: 1px solid var(--border); background: rgba(7, 17, 14, .96); backdrop-filter: blur(12px);
}
.header-inner { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-logo { display: inline-flex; width: 142px; flex: 0 0 auto; align-items: center; text-decoration: none; }
.site-logo img { display: block; width: 100%; height: auto; }
.site-logo::after { content: none; }
.site-nav { margin-left: auto; }
.site-nav__list { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.site-nav a { display: flex; min-height: 44px; align-items: center; padding: 7px 14px; border-radius: 9px; color: var(--text); font-weight: 650; text-decoration: none; }
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current_page_item > a { background: var(--card); color: var(--lime); }
.menu-toggle { display: none; min-width: 48px; min-height: 48px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); color: var(--text); cursor: pointer; }
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after { display: block; width: 22px; height: 2px; margin: auto; background: currentColor; content: ""; transition: transform .18s ease; }
.menu-toggle__bars::before { transform: translateY(-7px); }
.menu-toggle__bars::after { transform: translateY(5px); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(0) rotate(45deg); background: var(--text); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-2px) rotate(-45deg); background: var(--text); }

.site-main { min-height: 60vh; }
.article { padding: 64px 0 80px; }
.breadcrumbs { width: min(100%, 920px); margin: 0 auto 24px; color: var(--muted); font-size: .9rem; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs span + span, .breadcrumbs a + span { margin-left: 8px; }
.breadcrumbs span[aria-hidden="true"] { margin-right: 8px; }
.article-header { width: min(100%, 920px); margin: 0 auto 46px; }
.article-kicker { margin: 0 0 10px; color: var(--cyan); font-size: .82rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
h1, h2, h3 { color: var(--text); line-height: 1.17; text-wrap: balance; }
h1 { max-width: 900px; margin: 0; color: var(--lime); font-size: clamp(2.35rem, 6vw, 4.65rem); letter-spacing: -.055em; }
.page:not(.home) h1 { font-size: clamp(2.25rem, 5vw, 3.8rem); }
.article-header .lead, .entry-content > .lead { max-width: 820px; margin: 22px 0 0; color: #d8e5de; font-size: clamp(1.08rem, 2vw, 1.25rem); line-height: 1.7; }
.reviewed { margin: 20px 0 0; color: var(--muted); font-size: .88rem; }
.entry-content { width: min(100%, var(--reading)); margin-inline: auto; }
.entry-content > section { padding: 58px 0; scroll-margin-top: 92px; border-top: 1px solid var(--border); }
.entry-content > section:first-child { border-top: 0; padding-top: 10px; }
.entry-content h2 { margin: 0 0 22px; color: var(--cyan); font-size: clamp(1.75rem, 3.6vw, 2.55rem); letter-spacing: -.035em; }
.entry-content h3 { margin: 32px 0 12px; color: var(--lime); font-size: clamp(1.25rem, 2vw, 1.5rem); }
.entry-content p { margin: 0 0 1.25em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: .65em; }
.entry-content strong { color: #fff; }

.section-image { margin: 30px 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.section-image img { width: 100%; }
.section-image--square { width: min(100%, 620px); margin-inline: auto; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.button, .entry-content .button {
  display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 11px 18px;
  border: 1px solid var(--lime); border-radius: var(--button-radius); background: var(--lime); color: var(--bg);
  font-weight: 780; text-decoration: none; transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.button:hover { transform: translateY(-2px); border-color: var(--cyan); background: var(--cyan); color: var(--bg); }
.button--secondary { border-color: var(--cyan); background: transparent; color: var(--cyan); }
.button--secondary:hover { background: var(--card-hover); color: var(--text); }
.note, .review-box, .warning-box, .success-message, .error-message {
  margin: 28px 0; padding: 22px; border: 1px solid var(--border); border-left: 4px solid var(--cyan);
  border-radius: var(--radius); background: var(--card);
}
.warning-box { border-left-color: var(--warning); }
.success-message { border-left-color: var(--lime); }
.error-message { border-left-color: var(--danger); }
.note > :last-child, .review-box > :last-child, .warning-box > :last-child { margin-bottom: 0; }

.table-wrap { margin: 28px 0; }
table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-soft); }
th, td { min-width: 0; padding: 15px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { background: var(--card); color: var(--lime); font-size: .9rem; line-height: 1.4; }
td { color: #dfe9e3; }
tr:last-child td { border-bottom: 0; }
.steps { display: grid; gap: 16px; margin: 28px 0; padding: 0; list-style: none; counter-reset: steps; }
.steps li { position: relative; min-width: 0; margin: 0; padding: 22px 22px 22px 76px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); counter-increment: steps; }
.steps li::before { content: counter(steps); position: absolute; top: 22px; left: 20px; display: grid; width: 40px; height: 40px; place-items: center; border-radius: 10px; background: var(--lime); color: var(--bg); font-weight: 850; }
.steps strong { display: block; margin-bottom: 4px; }
details { margin: 16px 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
summary { display: flex; min-height: 54px; align-items: center; padding: 14px 18px; color: var(--text); font-weight: 750; cursor: pointer; }
details > div { padding: 0 18px 18px; color: #dfe9e3; }

.contact-form { display: grid; gap: 18px; margin-top: 26px; }
.field { display: grid; gap: 7px; }
.field label { color: var(--text); font-weight: 700; }
.field input, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); }
.field textarea { min-height: 180px; resize: vertical; }
.field-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-consent { color: var(--muted); font-size: .9rem; }

.site-footer { border-top: 1px solid var(--border); background: #050d0b; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .8fr) minmax(0, .9fr); gap: 46px; padding: 56px 0 34px; }
.footer-title { margin: 0 0 12px; color: var(--text); font-size: 1.35rem; font-weight: 800; }
.footer-copy, .footer-note { color: var(--muted); font-size: .93rem; }
.footer-menu { margin: 0; padding: 0; list-style: none; }
.footer-menu li + li { margin-top: 8px; }
.footer-menu a { color: var(--text); text-decoration: none; }
.footer-menu a:hover { color: var(--lime); }
.footer-bottom { padding: 22px 0 28px; border-top: 1px solid var(--border); color: var(--muted); font-size: .84rem; }
.not-found { padding: 90px 0; text-align: center; }
.not-found p { max-width: 600px; margin: 18px auto 28px; color: var(--muted); }

body:has(> .site-bottom-cta) { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
.site-bottom-cta {
  position: fixed; z-index: 9000; right: 0; bottom: calc(12px + env(safe-area-inset-bottom)); left: 0;
  width: min(calc(100% - 32px), 520px); margin-inline: auto; pointer-events: none;
}
.site-bottom-cta__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 10px; padding: 8px;
  border: 1px solid var(--border); border-radius: 16px; background: rgba(7, 17, 14, .95);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .46); backdrop-filter: blur(12px); pointer-events: auto;
}
.site-bottom-cta__button {
  display: inline-flex; min-width: 0; min-height: 52px; align-items: center; justify-content: center; padding: 12px 18px;
  border: 1px solid transparent; border-radius: 11px; font-weight: 820; line-height: 1.1; text-align: center;
  text-decoration: none; white-space: nowrap; transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.site-bottom-cta__button:hover { transform: translateY(-2px); }
.site-bottom-cta__button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.site-bottom-cta__login { border-color: var(--cyan); background: var(--card); color: var(--text); }
.site-bottom-cta__login:hover { border-color: var(--lime); background: var(--card-hover); color: var(--text); }
.site-bottom-cta__register { border-color: var(--lime); background: var(--lime); color: var(--bg); box-shadow: 0 6px 18px rgba(184, 243, 74, .22); }
.site-bottom-cta__register:hover { border-color: var(--cyan); background: var(--cyan); color: var(--bg); }

@media (max-width: 768px) {
  body { font-size: 16px; }
  .site-shell { width: min(calc(100% - 32px), var(--content)); }
  .site-header, .header-inner { min-height: 58px; }
  .site-logo { width: 130px; }
  .js .menu-toggle { display: inline-grid; place-items: center; }
  .header-inner { position: relative; }
  .site-nav { margin-left: auto; }
  .site-nav__list { flex-direction: column; align-items: stretch; padding-top: 10px; }
  .js .site-nav__list { position: absolute; top: calc(100% + 1px); right: 0; left: 0; display: none; padding: 12px 16px 18px; border-bottom: 1px solid var(--border); background: #07110e; box-shadow: var(--shadow); }
  .js .site-nav__list.is-open { display: flex; }
  .site-nav a { min-height: 48px; padding-inline: 16px; }
  .article { padding: 44px 0 58px; }
  .article-header { margin-bottom: 34px; }
  .entry-content > section { padding: 44px 0; scroll-margin-top: 76px; }
  .entry-content h2 { margin-bottom: 18px; }
  .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 44px; }
  .stack-table, .stack-table tbody, .stack-table tr, .stack-table td { display: block; width: 100%; }
  .stack-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .stack-table { border: 0; background: transparent; }
  .stack-table tr { margin-bottom: 14px; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-soft); }
  .stack-table td { display: grid; grid-template-columns: minmax(105px, 38%) minmax(0, 1fr); gap: 12px; padding: 12px 14px; }
  .stack-table td::before { content: attr(data-label); color: var(--lime); font-size: .83rem; font-weight: 750; }
  .stack-table tr:last-child td:not(:last-child) { border-bottom: 1px solid var(--border); }
}

@media (max-width: 390px) {
  .site-shell { width: min(calc(100% - 32px), var(--content)); }
  h1 { font-size: 2.18rem; }
  .steps li { padding: 72px 18px 20px; }
  .steps li::before { left: 18px; top: 18px; }
  .stack-table td { grid-template-columns: 1fr; gap: 3px; }
  body:has(> .site-bottom-cta) { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  .site-bottom-cta { bottom: calc(10px + env(safe-area-inset-bottom)); width: calc(100% - 24px); }
  .site-bottom-cta__inner { gap: 8px; padding: 7px; }
  .site-bottom-cta__button { min-height: 50px; padding: 10px 12px; font-size: .95rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
