/*
Theme Name: 89H Guia Cinematic PEtgKQG1
Theme URI: https://89h.cam/
Author: 89H Guia Brasil
Description: Tema editorial cinematográfico independente criado para o 89H Guia Brasil.
Version: 1.0.0
Text Domain: guia89h
*/

:root {
  --bg: #090a0c;
  --surface: #12151a;
  --section: #181c22;
  --gold: #d8a64a;
  --blue: #7da7c7;
  --coral: #df765f;
  --text: #f2f2ef;
  --muted: #b4b6b9;
  --border: #30343a;
  --focus: #f3ce7b;
  --wide: 1320px;
  --reading: 820px;
  --radius: 22px;
  --shadow: 0 28px 72px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font: 18px/1.74 "Noto Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}
a { color: #e9c779; text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: #fff2c9; }
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; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: 72px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(9,10,12,.93);
  backdrop-filter: blur(18px);
}
.header-inner {
  width: min(calc(100% - 40px), var(--wide));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.site-brand { flex: 0 0 auto; }
.custom-logo-link { display: block; line-height: 0; }
.custom-logo { width: 240px; max-height: 58px; object-fit: contain; object-position: left center; }
.brand-fallback { color: var(--text); font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.menu-toggle {
  display: none;
  min-width: 48px;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.primary-nav ul { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.primary-nav a {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--text);
  font-size: 14px;
  font-weight: 680;
  text-decoration: none;
  white-space: nowrap;
}
.primary-nav a:hover, .primary-nav .current-menu-item > a { background: #22272e; color: var(--focus); }

.site-main { min-height: 70vh; }
.page-hero {
  width: min(calc(100% - 40px), 960px);
  margin: 0 auto;
  padding: 92px 0 52px;
  text-align: center;
}
.page-kicker { margin: 0 0 16px; color: var(--gold); font-size: 13px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; line-height: 1.1; letter-spacing: -.035em; text-wrap: balance; }
h1 { margin-bottom: 28px; font-size: clamp(42px, 6.2vw, 80px); }
.internal-page h1 { font-size: clamp(38px, 5.3vw, 68px); }
h2 { margin-bottom: 25px; font-size: clamp(30px, 4vw, 52px); }
h3 { margin-bottom: 18px; font-size: clamp(23px, 2.6vw, 32px); }
p { margin: 0 0 24px; }
.hero-deck { max-width: 760px; margin: 0 auto; color: var(--muted); font-size: clamp(18px, 2vw, 22px); }

.page-body { padding: 0 20px 96px; }
.page-body > section, .page-body > p, .page-body > h2, .page-body > h3, .page-body > ol, .page-body > ul, .page-body > .table-wrap, .page-body > .faq-block {
  width: min(100%, var(--reading));
  margin-right: auto;
  margin-left: auto;
}
.page-body > section { padding: 80px 0; border-top: 1px solid var(--border); }
.page-body > section:first-child { padding-top: 0; border-top: 0; }
.page-body section > *:not(figure):not(.table-wrap):not(.faq-block) { max-width: var(--reading); margin-right: auto; margin-left: auto; }
.page-body figure {
  width: min(calc(100vw - 40px), var(--wide));
  max-width: none;
  margin: 48px 50% 12px;
  transform: translateX(-50%);
}
.page-body figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--surface); }
.page-body figure.mobile-portrait { width: min(calc(100vw - 40px), 820px); }
figcaption { max-width: var(--reading); margin: 14px auto 0; color: var(--muted); font-size: 15px; text-align: center; }
.page-body ul, .page-body ol { margin-top: 0; margin-bottom: 30px; padding-left: 1.4em; }
.page-body li { margin-bottom: 13px; padding-left: .25em; }
.page-body strong { color: #fff5dc; }

.table-wrap { width: 100%; margin: 38px auto; overflow-x: auto; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
table { width: 100%; min-width: 680px; border-collapse: collapse; }
th, td { padding: 17px 18px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { color: var(--focus); background: #1a1f25; font-size: 14px; letter-spacing: .03em; }
tr:last-child td { border-bottom: 0; }

.faq-block { margin-top: 76px !important; padding-top: 64px; border-top: 1px solid var(--border); }
.faq-block details { margin: 0 0 12px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface); }
.faq-block summary { min-height: 58px; padding: 18px 22px; color: var(--text); font-weight: 760; cursor: pointer; }
.faq-block details p { margin: 0; padding: 0 22px 22px; color: var(--muted); }

.site-footer { border-top: 1px solid var(--border); background: #07080a; }
.footer-inner { width: min(calc(100% - 40px), var(--wide)); margin: 0 auto; padding: 64px 0 30px; }
.footer-top { display: grid; grid-template-columns: minmax(250px, 1fr) minmax(280px, 1.4fr); gap: 48px; align-items: start; }
.footer-brand { margin-bottom: 12px; color: var(--text); font-size: 22px; font-weight: 850; }
.footer-note { max-width: 520px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 22px; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; color: var(--text); font-size: 15px; }
.footer-contact { margin-top: 22px; color: var(--muted); text-align: right; }
.footer-contact a { color: var(--focus); }
.footer-bottom { margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--border); color: #85898f; font-size: 14px; }

@media (max-width: 1100px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .primary-nav { position: absolute; top: 72px; right: 16px; left: 16px; display: none; border: 1px solid var(--border); border-radius: 18px; background: #111419; box-shadow: var(--shadow); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: block; padding: 12px; }
  .primary-nav a { min-height: 48px; padding: 10px 14px; }
}
@media (max-width: 768px) {
  body { font-size: 16px; }
  .header-inner { width: min(calc(100% - 32px), var(--wide)); }
  .custom-logo { width: 205px; max-height: 52px; }
  .page-hero { width: min(calc(100% - 32px), 960px); padding: 62px 0 38px; }
  h1 { font-size: clamp(36px, 11vw, 48px); }
  .internal-page h1 { font-size: clamp(34px, 10vw, 46px); }
  .page-body { padding: 0 16px 64px; }
  .page-body > section { padding: 56px 0; }
  .page-body figure { width: calc(100vw - 32px); margin-top: 34px; }
  .page-body figure img { border-radius: 14px; }
  .footer-inner { width: min(calc(100% - 32px), var(--wide)); padding-top: 48px; }
  .footer-top { grid-template-columns: 1fr; gap: 26px; }
  .footer-links { justify-content: flex-start; }
  .footer-contact { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

