/*
Theme Name: 15q Guia Editorial
Theme URI: https://15q.cam/
Author: 15q.cam
Description: Tema editorial independente em pt-BR para o guia 15q.
Version: 1.0.0
Text Domain: brand15q
*/

:root {
  --bg: #071522;
  --bg-deep: #050d18;
  --surface: #10243a;
  --surface-strong: #17304c;
  --surface-soft: #0c1c2d;
  --text: #f7fafc;
  --muted: #b8c7d8;
  --lime: #b8f23d;
  --cyan: #55d9f5;
  --violet: #9c8cff;
  --coral: #ff9478;
  --border: #31506d;
  --warning: #f3c66e;
  --focus: #d7ff7f;
  --max: 1220px;
  --reading: 780px;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0,0,0,.28);
}

* { box-sizing: border-box; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.email-at::before { content: "@"; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.72 Lato, "Segoe UI", Arial, sans-serif;
  text-rendering: optimizeLegibility;
  overflow-wrap: anywhere;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .28;
  background: radial-gradient(circle at 15% 8%, rgba(85,217,245,.14), transparent 34%), radial-gradient(circle at 92% 30%, rgba(184,242,61,.09), transparent 32%);
  z-index: -1;
}
a { color: var(--cyan); text-underline-offset: .2em; text-decoration-thickness: .08em; }
a:hover { color: var(--lime); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
.site-shell { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 1000; padding: 12px 18px; color: #071522; background: var(--lime); border-radius: 8px; font-weight: 800; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 100; min-height: 68px; background: rgba(5,13,24,.96); border-bottom: 1px solid var(--border); backdrop-filter: blur(12px); }
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.custom-logo-link { display: inline-flex; align-items: center; min-height: 48px; flex: 0 0 auto; }
.custom-logo { width: 142px; height: 43px; object-fit: contain; object-position: left center; }
.brand-fallback { font-weight: 900; font-size: 1.55rem; color: var(--text); text-decoration: none; }
.primary-nav ul { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { display: flex; min-height: 46px; align-items: center; padding: 10px 13px; color: var(--text); font-size: .94rem; font-weight: 700; text-decoration: none; border-radius: 10px; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { background: var(--surface); color: var(--lime); }
.menu-toggle { display: none; min-width: 48px; min-height: 48px; padding: 0; border: 1px solid var(--border); border-radius: 10px; color: var(--text); background: var(--surface); font: inherit; font-weight: 800; cursor: pointer; }

.site-main { min-height: 65vh; }
.home-hero { padding: clamp(46px,7vw,92px) 0 52px; border-bottom: 1px solid rgba(49,80,109,.7); }
.hero-grid { display: grid; grid-template-columns: minmax(0,7fr) minmax(320px,5fr); gap: clamp(28px,5vw,68px); align-items: center; }
.eyebrow { margin: 0 0 14px; color: var(--lime); font-size: .82rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
h1,h2,h3 { margin: 0 0 .55em; line-height: 1.12; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(2.35rem,5.2vw,4.05rem); max-width: 900px; }
h2 { font-size: clamp(1.8rem,3.4vw,2.7rem); margin-top: 0; }
h3 { font-size: clamp(1.2rem,2vw,1.48rem); color: var(--text); }
p, ul, ol, table, blockquote { margin: 0 0 1.25em; }
.hero-subtitle { max-width: 710px; color: var(--muted); font-size: clamp(1.05rem,1.8vw,1.23rem); }
.disclosure { padding: 15px 18px; border-left: 4px solid var(--lime); background: rgba(184,242,61,.08); color: #eaf4df; border-radius: 0 12px 12px 0; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 11px 18px; border: 2px solid var(--lime); border-radius: 12px; background: var(--lime); color: #071522; font-weight: 900; text-decoration: none; }
.button.secondary { background: transparent; color: var(--text); border-color: var(--border); }
.button:hover { transform: translateY(-1px); color: #071522; }
.button.secondary:hover { color: var(--lime); border-color: var(--lime); }
.hero-media, .guide-figure { overflow: hidden; margin: 0; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.hero-media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.guide-figure img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.guide-figure.wide img { aspect-ratio: 35/22; }
figcaption { padding: 10px 14px 12px; color: var(--muted); font-size: .86rem; }

.content-section { padding: clamp(52px,7vw,92px) 0; scroll-margin-top: 84px; }
.content-section + .content-section { border-top: 1px solid rgba(49,80,109,.5); }
.section-grid { display: grid; grid-template-columns: minmax(0,7fr) minmax(320px,5fr); gap: clamp(28px,5vw,64px); align-items: start; }
.section-grid.reverse .section-copy { order: 2; }
.reading { width: min(var(--reading),100%); }
.reading.center { margin-inline: auto; }
.lead { color: #e7eef6; font-size: 1.12rem; }
.note, .warning { padding: 18px 20px; margin: 24px 0; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.note { border-left: 4px solid var(--cyan); }
.warning { border-left: 4px solid var(--warning); }
.module-grid { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 20px; margin-top: 28px; }
.module { grid-column: span 6; min-width: 0; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.module.wide { grid-column: span 12; }
.module:nth-child(3n+2) { border-top-color: var(--violet); }
.module:nth-child(3n+3) { border-top-color: var(--coral); }
.module-kicker { color: var(--lime); font-size: .78rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding: 10px 0 10px 34px; border-bottom: 1px solid rgba(49,80,109,.55); }
.checklist li::before { content: "✓"; position: absolute; left: 4px; top: 10px; color: var(--lime); font-weight: 900; }
.steps { counter-reset: guide-step; list-style: none; padding: 0; }
.steps li { counter-increment: guide-step; position: relative; min-height: 52px; padding: 5px 0 18px 60px; }
.steps li::before { content: counter(guide-step); position: absolute; left: 0; top: 0; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #071522; background: var(--lime); font-weight: 900; }
.table-wrap { overflow-x: auto; margin: 28px 0; border: 1px solid var(--border); border-radius: 14px; }
table { width: 100%; min-width: 660px; border-collapse: collapse; background: var(--surface-soft); }
th,td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
th { color: var(--lime); background: var(--surface); }
.faq { margin-top: 30px; }
.faq details { margin-bottom: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.faq summary { min-height: 52px; padding: 15px 50px 15px 18px; cursor: pointer; color: var(--text); font-weight: 800; }
.faq details p { padding: 0 18px 18px; color: var(--muted); }
.home-link { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--border); }

.page-hero { padding: clamp(52px,7vw,88px) 0 36px; background: linear-gradient(180deg, rgba(23,48,76,.68), transparent); }
.page-hero .lead { max-width: 790px; color: var(--muted); }
.page-body { padding: 28px 0 clamp(68px,9vw,112px); }
.page-body > .site-shell > .entry-content { width: min(var(--reading),100%); }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { margin-top: 2em; scroll-margin-top: 92px; }
.entry-content h3 { margin-top: 1.7em; }

.site-footer { padding: 54px 0 30px; background: var(--bg-deep); border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.footer-title { margin: 0 0 10px; font-size: 1.05rem; color: var(--lime); }
.footer-nav { margin: 0; padding: 0; list-style: none; }
.footer-nav a { display: inline-flex; min-height: 44px; align-items: center; color: var(--text); }
.footer-note { color: var(--muted); max-width: 520px; }
.copyright { margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(49,80,109,.6); color: var(--muted); font-size: .88rem; }
.error-page { padding: 100px 0; text-align: center; }

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .primary-nav { position: absolute; top: 68px; left: 0; right: 0; display: none; padding: 16px 24px 22px; background: var(--bg-deep); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: grid; gap: 4px; }
  .primary-nav a { min-height: 48px; }
  .hero-grid, .section-grid { grid-template-columns: 1fr; }
  .hero-grid .hero-media { max-width: 720px; }
  .section-grid.reverse .section-copy { order: initial; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 599px) {
  body { font-size: 16px; }
  .site-shell { width: min(100% - 32px,var(--max)); }
  .custom-logo { width: 120px; height: 38px; }
  .home-hero { padding-top: 42px; }
  .hero-grid { gap: 28px; }
  .hero-media { border-radius: 15px; }
  .hero-media img { aspect-ratio: 5/4; object-position: 52% center; }
  .guide-figure, .module { border-radius: 12px; }
  .module { grid-column: span 12; padding: 20px; }
  .content-section { padding-block: 48px; }
  .button-row { display: grid; }
  .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-about { grid-column: auto; }
  h1 { font-size: clamp(2rem,10vw,2.75rem); }
  h2 { font-size: clamp(1.65rem,8vw,2.15rem); }
}

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