/*
Theme Name: 27b Editorial
Theme URI: https://27b.buzz/
Author: 27b Editorial
Description: Tema editorial em português do Brasil para o 27b.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: twentysevenb
*/

:root {
  --bg: #0b0c0d;
  --bg-soft: #141618;
  --panel: #1b1d20;
  --gold: #f2c94c;
  --gold-deep: #d8a928;
  --text: #f5f5f2;
  --muted: #b9bab6;
  --border: #303236;
  --notice: #20231f;
  --warning: #e1a64b;
  --focus: #ffe28a;
  --teal: #13b8a6;
  --max: 1240px;
  --reading: 820px;
  --radius: 18px;
  --shadow: 0 24px 64px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans", "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.72;
  overflow-wrap: anywhere;
}
body.menu-open { overflow: hidden; }
.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; }
a { color: var(--gold); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--focus); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
.container { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.reading { width: min(100%, var(--reading)); margin-inline: auto; }
.site-main { min-height: 70vh; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  min-height: 70px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(11,12,13,.88);
  backdrop-filter: blur(18px);
}
.header-inner { min-height: 70px; display: flex; align-items: center; gap: 28px; }
.site-brand { color: var(--text); font-size: 28px; font-weight: 800; letter-spacing: -.05em; text-decoration: none; }
.site-brand::after { content: "."; color: var(--gold); }
.primary-nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.primary-nav ul { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.primary-nav a { color: var(--text); font-size: 15px; font-weight: 700; text-decoration: none; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--gold); }
.button, .nav-cta {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 10px 22px;
  background: var(--gold);
  color: #111;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}
.button:hover, .nav-cta:hover { background: var(--focus); color: #111; }
.button-secondary { background: transparent; color: var(--gold); }
.menu-toggle { display: none; width: 48px; height: 48px; margin-left: auto; border: 1px solid var(--border); border-radius: 50%; background: transparent; color: var(--text); }
.menu-toggle-lines, .menu-toggle-lines::before, .menu-toggle-lines::after { display: block; width: 21px; height: 2px; margin: auto; background: currentColor; content: ""; transition: transform .2s ease; }
.menu-toggle-lines::before { transform: translateY(-7px); }
.menu-toggle-lines::after { transform: translateY(5px); }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines::before { transform: translateY(0) rotate(45deg); background: var(--text); }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines::after { transform: translateY(-2px) rotate(-45deg); background: var(--text); }

.article-hero { padding: 96px 0 68px; text-align: center; }
.article-hero .reading { max-width: 900px; }
.eyebrow { margin: 0 0 16px; color: var(--gold); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
h1 { margin-bottom: 24px; font-size: clamp(40px, 6vw, 76px); }
h2 { margin-bottom: 24px; font-size: clamp(32px, 4.2vw, 44px); }
h3 { margin-bottom: 14px; font-size: clamp(22px, 3vw, 29px); }
.lead { margin: 0 auto 28px; color: #deded9; font-size: clamp(18px, 2.3vw, 22px); line-height: 1.65; }
.hero-note { margin: 0 auto 30px; color: var(--muted); max-width: 760px; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.content-section { padding: 90px 0; }
.content-section:nth-child(even) { background: var(--bg-soft); }
.content-section p { margin: 0 0 22px; }
.content-section ul, .content-section ol { padding-left: 1.3em; }
.content-section li { margin-bottom: 12px; }
.section-kicker { margin-bottom: 12px; color: var(--gold); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.section-link { margin-top: 28px; }
.cinematic-image { width: min(100%, var(--max)); margin: 38px auto 0; }
.cinematic-image img { width: 100%; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; }
.cinematic-image figcaption { width: min(100%, var(--reading)); margin: 10px auto 0; color: var(--muted); font-size: 14px; }
.visual-hero { padding-top: 12px; }
.visual-hero .cinematic-image { margin-top: 0; }
.visual-hero img { aspect-ratio: 16 / 9; object-fit: cover; }

.toc { border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.toc summary { min-height: 54px; padding: 14px 20px; cursor: pointer; color: var(--gold); font-weight: 800; }
.toc nav { padding: 0 20px 20px; }
.toc ul { columns: 2; margin: 0; padding-left: 20px; }
.toc a { color: var(--text); }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.info-card, .notice { border: 1px solid var(--border); border-radius: 14px; padding: 24px; background: var(--panel); }
.info-card h3 { color: var(--gold); }
.notice { border-left: 4px solid var(--warning); background: var(--notice); }
.steps { counter-reset: steps; display: grid; gap: 18px; margin-top: 28px; }
.step { position: relative; min-height: 84px; padding: 22px 22px 22px 78px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); }
.step::before { counter-increment: steps; content: counter(steps); position: absolute; top: 21px; left: 22px; display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--gold); color: #111; font-weight: 900; }
.step h3 { margin-bottom: 7px; font-size: 21px; }
.step p { margin: 0; color: var(--muted); }
.table-wrap { margin: 30px 0; overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; }
table { width: 100%; min-width: 720px; border-collapse: collapse; background: var(--panel); }
th, td { padding: 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { color: var(--gold); font-size: 14px; letter-spacing: .02em; }
tr:last-child td { border-bottom: 0; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { border: 1px solid var(--border); border-radius: 14px; background: var(--panel); }
.faq-list summary { min-height: 58px; padding: 15px 20px; cursor: pointer; font-weight: 800; }
.faq-list details p { padding: 0 20px 20px; margin: 0; color: var(--muted); }
.editorial-meta { padding: 30px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }

.site-footer { padding: 58px 0 32px; border-top: 1px solid var(--gold-deep); background: #080909; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 42px; }
.footer-brand { font-size: 32px; font-weight: 900; }
.footer-title { color: var(--gold); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--text); }
.footer-copy, .footer-note { color: var(--muted); font-size: 14px; }
.footer-bottom { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.not-found { padding: 120px 0; text-align: center; }

@media (max-width: 900px) {
  .container { width: min(calc(100% - 32px), var(--max)); }
  .site-header, .header-inner { min-height: 60px; }
  .menu-toggle { display: block; }
  .primary-nav { position: fixed; inset: 60px 0 auto; display: none; max-height: calc(100vh - 60px); overflow-y: auto; padding: 20px 16px 28px; border-bottom: 1px solid var(--border); background: #0b0c0d; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: grid; gap: 4px; }
  .primary-nav a { display: flex; min-height: 48px; align-items: center; padding: 8px 12px; }
  .nav-cta { margin-top: 12px; }
  .article-hero { padding: 68px 0 48px; }
  .content-section { padding: 68px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { width: min(calc(100% - 32px), var(--max)); }
  h1 { font-size: clamp(36px, 11vw, 52px); }
  .content-section { padding: 56px 0; }
  .cinematic-image { margin-top: 30px; }
  .cinematic-image img { border-radius: 12px; }
  .visual-hero img { aspect-ratio: 4 / 5; }
  .toc ul { columns: 1; }
  .info-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid { gap: 28px; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .step { padding-left: 68px; }
  .step::before { left: 16px; }
}

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