/*
Theme Name: a97 Guide Atlas
Theme URI: https://a97.cam/
Author: a97.cam
Description: Tema editorial independente em pt-BR para o guia a97.
Version: 1.0.0
Text Domain: a97-guide
*/

:root {
  --bg: #07111f;
  --bg-soft: #0d1b2d;
  --panel: #12253b;
  --panel-hi: #17324b;
  --text: #f6f8fc;
  --muted: #bdc9d8;
  --border: #31506f;
  --cyan: #55d5f5;
  --violet: #9c91ff;
  --coral: #ff927d;
  --warning: #ffd27a;
  --focus: #a9efff;
  --max: 1220px;
  --read: 780px;
  --radius: 18px;
  --shadow: 0 18px 48px rgba(0,0,0,.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.72; overflow-x: hidden; }
a { color: var(--cyan); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(7,17,31,.96); border-bottom: 1px solid var(--border); backdrop-filter: blur(14px); }
.header-inner { min-height: 70px; display: flex; align-items: center; gap: 28px; }
.brand { color: #fff; font-size: 1.55rem; font-weight: 800; text-decoration: none; letter-spacing: -.04em; }
.brand-dot { color: var(--coral); }
.nav-toggle { margin-left: auto; display: none; width: 48px; height: 48px; border: 1px solid var(--border); background: var(--panel); color: #fff; border-radius: 12px; font-size: 1.35rem; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; list-style: none; gap: 4px; margin: 0; padding: 0; }
.primary-nav a { display: flex; align-items: center; min-height: 48px; padding: 0 13px; color: var(--muted); text-decoration: none; font-weight: 650; border-radius: 10px; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { color: #fff; background: var(--panel); }
.hero { padding: clamp(48px,7vw,92px) 0 56px; background: radial-gradient(circle at 88% 20%, rgba(123,140,255,.15), transparent 34%), radial-gradient(circle at 10% 50%, rgba(76,201,240,.08), transparent 30%); }
.hero-grid { display: grid; grid-template-columns: minmax(0,7fr) minmax(320px,5fr); gap: 42px; align-items: center; }
.eyebrow { margin: 0 0 14px; color: var(--cyan); font-size: .88rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.14; letter-spacing: -.025em; text-wrap: balance; }
h1 { margin: 0; font-size: clamp(2.4rem,5.2vw,4.2rem); max-width: 900px; }
h2 { margin: 0 0 20px; font-size: clamp(1.8rem,3.5vw,2.7rem); scroll-margin-top: 100px; }
h3 { margin: 32px 0 10px; font-size: clamp(1.2rem,2vw,1.45rem); }
p { margin: 0 0 1.15em; }
.hero-copy { color: var(--muted); font-size: clamp(1.05rem,1.8vw,1.23rem); max-width: 720px; margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 20px; border-radius: 12px; font-weight: 800; text-decoration: none; border: 1px solid var(--cyan); background: var(--cyan); color: #06111e; }
.button.secondary { background: transparent; color: #fff; border-color: var(--border); }
.button:hover { transform: translateY(-1px); color: #06111e; background: #fff; }
.button.secondary:hover { color: #fff; background: var(--panel-hi); }
.hero-media, .article-image { border-radius: 24px; overflow: hidden; border: 1px solid var(--border); background: var(--panel); box-shadow: var(--shadow); }
.hero-media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.disclosure { padding: 18px 22px; border: 1px solid var(--border); background: #102940; border-left: 5px solid var(--cyan); border-radius: 12px; color: var(--muted); margin: 0 auto 48px; }
.article-shell { padding: 46px 0 90px; }
.article-header { max-width: 980px; margin-bottom: 34px; }
.article-header h1 { font-size: clamp(2.25rem,5vw,4rem); }
.article-meta { color: var(--muted); margin-top: 14px; }
.article-image { max-width: 980px; margin: 0 0 48px; }
.article-image img { width: 100%; max-height: 580px; object-fit: cover; }
.article-content { max-width: var(--read); }
.home-content { max-width: none; display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 24px; }
.home-content > * { grid-column: 2 / span 8; min-width: 0; }
.home-content > h2 { grid-column: 1 / span 9; margin-top: 38px; }
.home-content > figure, .home-content > .wide { grid-column: 1 / -1; }
.article-content > h2 { margin-top: 58px; }
.article-content > h2:first-child { margin-top: 0; }
.article-content ul, .article-content ol { padding-left: 1.3rem; margin: 0 0 1.4rem; }
.article-content li { margin-bottom: .62rem; }
.article-content ol { counter-reset: steps; list-style: none; padding: 0; }
.article-content ol > li { position: relative; padding: 16px 18px 16px 58px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; margin: 10px 0; }
.article-content ol > li::before { counter-increment: steps; content: counter(steps); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--cyan); color: #07111f; font-weight: 900; }
.article-content blockquote { margin: 28px 0; padding: 20px 24px; border-left: 5px solid var(--coral); background: var(--panel); border-radius: 0 12px 12px 0; color: var(--muted); }
.faq h3 { margin-top: 12px; padding: 20px 48px 20px 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); }
.faq h3 + p { padding: 0 20px 18px; margin-top: -14px; background: var(--panel); border: 1px solid var(--border); border-top: 0; border-radius: 0 0 12px 12px; }
.site-footer { border-top: 1px solid var(--border); background: #050c16; padding: 52px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-title { font-weight: 800; color: #fff; margin-bottom: 10px; }
.footer-copy { color: var(--muted); max-width: 480px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 8px 0; }
.footer-links a { color: var(--muted); }
.footer-bottom { margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--muted); font-size: .92rem; }
.not-found { min-height: 65vh; display: grid; place-items: center; text-align: center; }

@media (max-width: 920px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .primary-nav { display: none; position: absolute; inset: 70px 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 14px 24px 24px; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { align-items: stretch; flex-direction: column; }
  .primary-nav a { min-height: 50px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 720px; }
  .home-content > *, .home-content > h2 { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { width: min(100% - 32px, var(--max)); }
  .hero { padding-top: 40px; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .hero-media, .article-image { border-radius: 14px; }
  .article-shell { padding-top: 34px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
}

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