/*
Theme Name: Guia 76n Editorial
Theme URI: https://76n.lat/
Author: Equipe editorial 76n.lat
Description: Tema editorial independente em português do Brasil.
Version: 1.0.0
Text Domain: guia-76n-editorial
*/

:root {
  --bg: #071915;
  --surface: #0b211c;
  --surface-2: #102a24;
  --text: #f4f8f6;
  --muted: #afc2ba;
  --line: #29483e;
  --gold: #e8c45b;
  --mint: #3bc29a;
  --focus: #79e0be;
  --warning: #e0a54b;
  --content: 1180px;
  --reading: 760px;
  --radius: 12px;
  --shadow: 0 18px 42px rgba(0,0,0,.2);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
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.78; overflow-wrap: anywhere; }
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--mint); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--gold); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 999; top: -100px; left: 16px; padding: 10px 16px; border-radius: 8px; background: var(--gold); color: #071915; }
.skip-link:focus { top: 12px; }
.shell { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }
.reading { width: min(100%, var(--reading)); margin-inline: auto; }

.site-header { position: sticky; z-index: 100; top: 0; border-bottom: 1px solid var(--line); background: rgba(7,25,21,.96); backdrop-filter: blur(12px); }
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.wordmark { display: inline-flex; min-height: 44px; align-items: center; color: var(--text); font-size: 1.55rem; font-weight: 900; letter-spacing: -.06em; text-decoration: none; }
.primary-nav ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { display: flex; min-height: 44px; align-items: center; padding: 8px 13px; border-radius: 8px; color: var(--text); font-weight: 700; text-decoration: none; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { background: var(--surface-2); color: var(--gold); }
.nav-toggle { display: none; min-width: 48px; min-height: 48px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-weight: 800; }

main { min-height: 68vh; }
.article-hero { padding: 78px 0 54px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 88% 10%, rgba(59,194,154,.12), transparent 34%), linear-gradient(180deg, var(--bg), var(--surface)); }
.article-hero .hero-copy { max-width: 900px; }
.eyebrow { margin: 0 0 16px; color: var(--gold); font-size: .8rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { color: var(--text); line-height: 1.15; letter-spacing: -.035em; }
h1 { margin: 0 0 24px; font-size: clamp(2.5rem, 5.4vw, 4.25rem); }
h2 { margin: 0 0 24px; font-size: clamp(1.8rem, 3.8vw, 2.55rem); }
h3 { margin: 34px 0 12px; color: var(--mint); font-size: clamp(1.24rem, 2.5vw, 1.55rem); }
p { margin: 0 0 1.25em; }
.hero-subtitle { max-width: 760px; margin-bottom: 28px; color: #dfe9e5; font-size: clamp(1.04rem, 2vw, 1.2rem); }
.notice { margin: 28px 0; padding: 18px 20px; border-left: 4px solid var(--warning); border-radius: 0 10px 10px 0; background: #15372f; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 10px 19px; border: 1px solid var(--gold); border-radius: 8px; background: var(--gold); color: #071915; font-weight: 850; text-decoration: none; }
.button:hover { background: #f4d87f; color: #071915; }
.button.secondary { border-color: var(--line); background: transparent; color: var(--text); }
.button.secondary:hover { border-color: var(--mint); color: var(--mint); }
.hero-media { margin: 46px auto 0; }
.hero-media img, .section-media img { width: 100%; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); object-fit: cover; }
.hero-media img { aspect-ratio: 16 / 9; }
figure { margin: 0; }
figcaption { margin-top: 10px; color: var(--muted); font-size: .88rem; }

.section { padding: 82px 0; scroll-margin-top: 86px; }
.section + .section { border-top: 1px solid rgba(41,72,62,.8); }
.section:nth-of-type(even) { background: rgba(16,42,36,.36); }
.section h2::before, .page-article h1::before { display: block; width: 48px; height: 3px; margin-bottom: 16px; border-radius: 3px; background: var(--gold); content: ""; }
.lead { color: #dfe9e5; font-size: 1.08rem; }
.section-media { width: min(100%, 760px); margin: 34px auto; }
.section-media img { aspect-ratio: 14 / 9; }
.annotation { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.annotation strong { color: var(--gold); }
.table-wrap { margin: 30px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; min-width: 700px; border-collapse: collapse; background: var(--surface); }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #102a24; color: var(--gold); }
tr:last-child td { border-bottom: 0; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.faq-list summary { position: relative; display: flex; min-height: 54px; align-items: center; padding: 15px 56px 15px 20px; cursor: pointer; font-weight: 800; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { position: absolute; right: 20px; color: var(--gold); font-size: 1.45rem; content: "+"; }
.faq-list details[open] summary::after { content: "−"; }
.faq-answer { padding: 0 20px 20px; color: #dfe9e5; }
.closing-links { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.closing-link { display: block; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); font-weight: 800; text-decoration: none; }
.closing-link:hover { border-color: var(--mint); color: var(--mint); }

.page-hero { padding: 62px 0 34px; }
.breadcrumb { margin-bottom: 24px; color: var(--muted); font-size: .9rem; }
.breadcrumb a { display: inline-flex; min-height: 44px; align-items: center; color: var(--muted); }
.page-article { padding: 0 0 84px; }
.page-article h1 { margin-bottom: 28px; font-size: clamp(2.25rem, 5vw, 3.7rem); }
.page-article .entry-content > p:first-child { color: #dfe9e5; font-size: 1.1rem; }
.page-actions { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }

.site-footer { padding: 52px 0 28px; border-top: 1px solid var(--line); background: #051411; }
.footer-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(260px,.65fr); gap: 52px; }
.footer-title { margin-bottom: 8px; font-size: 1.25rem; font-weight: 900; }
.footer-copy { max-width: 650px; color: var(--muted); }
.footer-links { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer-links a { display: inline-flex; min-height: 44px; align-items: center; color: var(--text); }
.footer-bottom { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.not-found { padding: 90px 0; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .primary-nav { position: fixed; inset: 68px 0 auto; display: none; max-height: calc(100vh - 68px); overflow-y: auto; padding: 18px 20px 24px; border-bottom: 1px solid var(--line); background: var(--bg); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: grid; gap: 4px; }
  .primary-nav a { min-height: 48px; padding-inline: 16px; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  .shell { width: min(calc(100% - 32px), var(--content)); }
  .article-hero { padding: 52px 0 42px; }
  h1 { font-size: clamp(2.1rem, 10vw, 2.75rem); }
  .section { padding: 50px 0; }
  .button-row { flex-direction: column; }
  .button { width: 100%; }
  .closing-links, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid { gap: 24px; }
}

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