/*
Theme Name: 58ff Guia Cinematic PWJoRW78
Theme URI: https://58ff.cam/
Author: 58ff Guia Brasil
Description: Tema editorial cinematográfico criado exclusivamente para o ciclo PWJoRW78.
Version: 1.0.0
Text Domain: guia58ff-pwjorw78
*/

:root {
  --bg: #090a0c;
  --bg-soft: #12151a;
  --panel: #181c22;
  --info: #1d2228;
  --text: #f2f2ef;
  --muted: #b4b6b9;
  --border: #30343a;
  --accent: #d8a64a;
  --accent-cool: #7da7c7;
  --focus: #f3ce7b;
  --content: 820px;
  --wide: 1320px;
  --radius: 22px;
  --shadow: 0 28px 72px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans", "DejaVu Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.74;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: #f0c36b; text-underline-offset: .2em; text-decoration-thickness: .08em; }
a:hover { color: #fff1c4; }
a:focus-visible,
button:focus-visible,
summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px;
}
.skip-link:focus {
  clip: auto; clip-path: none; height: auto; width: auto; left: 16px; top: 16px;
  padding: 10px 16px; z-index: 9999; background: var(--text); color: var(--bg); border-radius: 8px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 72px;
  background: rgba(9, 10, 12, .92);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(16px);
}
.header-inner {
  width: min(var(--wide), calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 38px;
}
.site-branding { flex: 0 0 auto; }
.custom-logo-link { display: flex; align-items: center; min-height: 48px; }
.custom-logo { width: auto; height: 44px; max-width: 240px; object-fit: contain; }
.site-title-fallback { color: var(--text); font-weight: 800; text-decoration: none; letter-spacing: -.03em; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.primary-nav a {
  display: flex; align-items: center; min-height: 44px; padding: 8px 10px;
  color: var(--text); font-size: 14px; font-weight: 700; line-height: 1.15; text-decoration: none; border-radius: 999px;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a { background: var(--panel); color: var(--focus); }
.menu-toggle {
  display: none; margin-left: auto; min-width: 48px; min-height: 48px; border: 1px solid var(--border);
  border-radius: 999px; background: var(--panel); color: var(--text); font: inherit; cursor: pointer;
}

.site-main { min-height: 64vh; }
.article-shell { padding: 82px 0 112px; }
.article-content { width: min(var(--content), calc(100% - 40px)); margin: 0 auto; }
.article-hero { max-width: 960px; margin: 0 auto 76px; text-align: center; }
.article-hero--page { margin-bottom: 64px; }
.eyebrow {
  margin: 0 0 18px; color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
h1, h2, h3 { color: #fff; line-height: 1.11; letter-spacing: -.035em; text-wrap: balance; }
h1 { margin: 0; font-size: clamp(42px, 6.2vw, 80px); }
.article-hero--page h1 { font-size: clamp(38px, 5vw, 64px); }
h2 { margin: 104px 0 26px; font-size: clamp(30px, 4.1vw, 48px); scroll-margin-top: 100px; }
h3 { margin: 52px 0 20px; font-size: clamp(24px, 3vw, 32px); scroll-margin-top: 100px; }
.lead { max-width: 760px; margin: 28px auto 0; color: #d2d3d3; font-size: clamp(19px, 2.2vw, 23px); line-height: 1.58; }
p { margin: 0 0 26px; }
.article-content > p:first-of-type:not(.eyebrow):not(.lead) { font-size: 1.08em; color: #dedfdf; }
.article-content ul,
.article-content ol { padding-left: 1.35em; }
.article-content li { margin-bottom: .6em; }
code { padding: .12em .35em; border: 1px solid var(--border); background: var(--panel); border-radius: 5px; color: var(--focus); }

.home-figure {
  width: min(var(--wide), calc(100vw - 40px));
  margin: 44px 0 76px 50%;
  transform: translateX(-50%);
}
.home-figure img { width: 100%; max-height: 820px; object-fit: cover; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.home-figure--hero { margin-top: 10px; }
.home-figure--hero img { aspect-ratio: 16 / 9; }
.home-figure--portrait { width: min(760px, calc(100vw - 40px)); }
.home-figure--portrait img { max-height: 900px; object-position: center; }
figcaption { margin: 12px auto 0; color: var(--muted); font-size: 14px; text-align: center; }

.table-wrap {
  width: min(1120px, calc(100vw - 40px));
  margin: 36px 0 48px 50%;
  transform: translateX(-50%);
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-soft);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .22);
}
table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
th, td { padding: 15px 17px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
th { color: var(--focus); background: #15191e; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(125, 167, 199, .06); }

.faq-item { margin: 14px 0; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-soft); }
.faq-item summary {
  min-height: 58px; padding: 16px 52px 16px 20px; position: relative; cursor: pointer;
  color: var(--text); font-weight: 750; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; top: 13px; right: 20px; color: var(--accent); font-size: 26px; }
.faq-item[open] summary::after { content: "−"; }
.faq-item > div { padding: 0 20px 18px; color: #d2d3d3; }
.faq-item > div p { margin: 0; }

.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); }
.footer-inner {
  width: min(var(--wide), calc(100% - 40px)); margin: 0 auto; padding: 52px 0;
  display: grid; grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.4fr); gap: 50px; align-items: start;
}
.footer-brand { margin: 0; max-width: 570px; color: var(--muted); font-size: 15px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 18px; }
.footer-nav a { color: var(--text); font-size: 14px; font-weight: 700; text-decoration: none; }
.footer-nav a:hover { color: var(--focus); }

.not-found { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 80px 20px; }
.not-found h1 { font-size: clamp(50px, 10vw, 100px); }

@media (max-width: 1100px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .primary-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0; margin: 0; padding: 14px 20px 22px;
    background: #0c0e11; border-bottom: 1px solid var(--border); box-shadow: 0 20px 34px rgba(0, 0, 0, .42);
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .primary-nav a { padding: 12px 14px; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  .header-inner { width: min(100% - 32px, var(--wide)); }
  .custom-logo { max-width: 190px; height: 38px; }
  .article-shell { padding: 56px 0 72px; }
  .article-content { width: min(var(--content), calc(100% - 32px)); }
  .article-hero { margin-bottom: 50px; }
  h1 { font-size: clamp(36px, 11vw, 46px); }
  .article-hero--page h1 { font-size: clamp(34px, 10vw, 44px); }
  h2 { margin-top: 68px; font-size: clamp(28px, 8.6vw, 38px); }
  h3 { margin-top: 42px; }
  .lead { font-size: 18px; }
  .home-figure { width: calc(100vw - 32px); margin-top: 32px; margin-bottom: 54px; }
  .home-figure img { border-radius: 14px; }
  .home-figure--hero img { aspect-ratio: 4 / 5; object-fit: cover; object-position: center; }
  .home-figure--portrait { width: min(100% - 32px, 620px); }
  .table-wrap { width: calc(100vw - 32px); border-radius: 12px; }
  .footer-inner { width: calc(100% - 32px); grid-template-columns: 1fr; gap: 28px; padding: 42px 0; }
  .footer-nav { justify-content: flex-start; }
}

@media (max-width: 520px) {
  .primary-nav ul { grid-template-columns: 1fr; }
  .primary-nav a { min-height: 46px; }
}

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

