/*
Theme Name: RJRJ Guia Brasil — Run sZDhjRA6
Theme URI: https://rjrj.buzz/
Author: RJRJ Guia Brasil
Description: Tema editorial independente criado para a reconstrução fresh run-sZDhjRA6.
Version: 1.0.0
Text Domain: rjrj-guia
*/

:root {
  --bg: #071915;
  --surface: #0b211c;
  --surface-2: #102a24;
  --text: #f4f8f6;
  --muted: #afc2ba;
  --border: #29483e;
  --accent: #e8c45b;
  --accent-2: #3bc29a;
  --focus: #79e0be;
  --max: 1180px;
  --article: 790px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.78 "Noto Sans", "DejaVu Sans", system-ui, -apple-system, sans-serif;
  overflow-wrap: break-word;
}
body.menu-open { overflow: hidden; }
a { color: var(--accent-2); text-decoration: underline; text-underline-offset: .18em; }
a:hover { color: var(--accent); }
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; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 200; padding: 10px 16px; background: var(--accent); color: #071915; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--border); background: rgba(7,25,21,.97); backdrop-filter: blur(14px); }
.header-inner { max-width: var(--max); min-height: 72px; margin: auto; padding: 10px 20px; display: flex; align-items: center; gap: 22px; }
.brand { flex: 0 0 auto; }
.brand img { width: 222px; max-height: 56px; object-fit: contain; object-position: left center; }
.brand-name { color: var(--text); font-weight: 800; text-decoration: none; }
.primary-nav { margin-left: auto; }
.primary-nav ul { list-style: none; display: flex; align-items: center; gap: 3px; margin: 0; padding: 0; }
.primary-nav a { display: flex; min-height: 44px; align-items: center; padding: 7px 8px; color: var(--text); font-size: 13px; font-weight: 700; line-height: 1.25; text-decoration: none; border-radius: 8px; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { background: var(--surface-2); color: var(--accent); }
.menu-toggle { display: none; margin-left: auto; min-width: 48px; min-height: 48px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); color: var(--text); font: inherit; font-weight: 800; }

main { min-height: 70vh; }
.article-shell { max-width: var(--article); margin: 0 auto; padding: 66px 22px 92px; }
.entry-content > h1:first-child { margin-top: 0; }
h1, h2, h3 { font-family: "Noto Sans", "DejaVu Sans", system-ui, sans-serif; line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; scroll-margin-top: 96px; }
h1 { margin: 0 0 28px; font-size: clamp(2.35rem, 5.4vw, 4rem); }
h2 { position: relative; margin: 82px 0 24px; padding-top: 28px; border-top: 1px solid var(--border); font-size: clamp(1.75rem, 3.5vw, 2.55rem); }
h2::before { content: ""; position: absolute; top: -2px; left: 0; width: 74px; height: 3px; background: var(--accent); }
h3 { margin: 42px 0 16px; color: var(--accent-2); font-size: 1.35rem; }
p { margin: 0 0 1.25em; }
.entry-content > p:first-of-type { color: var(--text); font-size: 1.18rem; line-height: 1.65; }
strong { color: #fff4bf; }
ol, ul { padding-left: 1.35em; }
li { margin: .52em 0; }
blockquote { margin: 32px 0; padding: 22px 26px; border-left: 4px solid var(--accent); background: var(--surface-2); }

.editorial-figure { margin: 40px -110px 54px; }
.editorial-figure img { width: 100%; border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 18px 42px rgba(0,0,0,.2); object-fit: cover; max-height: 720px; }
.editorial-figure figcaption { margin: 12px auto 0; max-width: var(--article); color: var(--muted); font-size: .92rem; }
.table-wrap { width: 100%; margin: 30px 0; overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
table { width: 100%; min-width: 660px; border-collapse: collapse; font-size: .95rem; line-height: 1.5; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { color: var(--accent); background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }

.faq { margin-top: 84px; padding: 30px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.faq h2 { margin-top: 0; padding-top: 0; border-top: 0; }
.faq h2::before { display: none; }
.faq-item { border-top: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item summary { min-height: 54px; padding: 16px 38px 16px 0; cursor: pointer; color: var(--text); font-weight: 750; }
.faq-answer { padding: 0 0 18px; color: var(--muted); }

.site-footer { border-top: 1px solid var(--border); background: #05130f; }
.footer-inner { max-width: var(--max); margin: auto; padding: 54px 22px; display: grid; grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr); gap: 42px; }
.footer-title { margin: 0 0 10px; font-size: 1.25rem; font-weight: 850; }
.footer-note { max-width: 520px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; align-content: start; gap: 10px 18px; }
.footer-links a { color: var(--text); }
.footer-email { grid-column: 1 / -1; color: var(--muted); }

@media (max-width: 1050px) {
  .menu-toggle { display: block; }
  .primary-nav { position: fixed; inset: 0 0 0 auto; width: min(88vw, 390px); height: 100dvh; padding: 92px 24px 30px; background: #071915; border-left: 1px solid var(--border); transform: translateX(105%); transition: transform .22s ease; overflow-y: auto; }
  .primary-nav.is-open { transform: translateX(0); }
  .primary-nav ul { display: block; }
  .primary-nav li { margin: 4px 0; }
  .primary-nav a { min-height: 52px; padding: 10px 12px; font-size: 1rem; }
}

@media (max-width: 860px) {
  .article-shell { padding-top: 48px; }
  .editorial-figure { margin-inline: 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-email { grid-column: auto; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .header-inner { padding-inline: 16px; }
  .brand img { width: 190px; }
  .article-shell { padding: 40px 16px 64px; }
  h1 { font-size: clamp(2.1rem, 11vw, 2.65rem); }
  h2 { margin-top: 58px; font-size: 1.75rem; }
  .faq { padding: 22px 16px; }
  table { min-width: 610px; }
}

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