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

:root {
  --bg: #08111f;
  --bg-2: #0e1b2e;
  --panel: #13243a;
  --panel-hi: #17304c;
  --text: #f4f7fb;
  --muted: #b8c7d9;
  --cyan: #4cc9f0;
  --violet: #8f9cff;
  --coral: #ff8a6b;
  --gold: #f4b942;
  --border: #2a4463;
  --focus: #8be5ff;
  --radius: 18px;
  --max: 1220px;
  --read: 780px;
  --shadow: 0 16px 44px rgba(0,0,0,.26);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.72 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; overflow-wrap: anywhere; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle at 80% 12%, rgba(76,201,240,.08), transparent 30%), radial-gradient(circle at 12% 45%, rgba(143,156,255,.07), transparent 26%); z-index: -1; }
a { color: var(--cyan); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: #9ae8ff; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
img { max-width: 100%; height: auto; }
.container { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 999; padding: 12px 16px; background: #fff; color: #08111f; border-radius: 8px; }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(8,17,31,.96); border-bottom: 1px solid var(--border); backdrop-filter: blur(14px); }
.header-inner { min-height: 74px; display: flex; align-items: center; gap: 28px; }
.custom-logo-link { display: inline-flex; flex: 0 0 auto; min-height: 48px; align-items: center; }
.custom-logo { width: 164px; height: auto; display: block; }
.site-nav { margin-left: auto; }
.menu-toggle { display: none; min-width: 48px; min-height: 48px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); color: var(--text); font: inherit; }
.nav-list { display: flex; gap: 5px; align-items: center; margin: 0; padding: 0; list-style: none; }
.nav-list a { min-height: 48px; display: inline-flex; align-items: center; padding: 8px 11px; color: var(--text); font-size: .91rem; font-weight: 650; text-decoration: none; border-radius: 9px; }
.nav-list a:hover, .nav-list .current-menu-item > a { background: var(--panel-hi); color: #fff; }

.hero { padding: clamp(54px, 8vw, 104px) 0 56px; border-bottom: 1px solid rgba(42,68,99,.7); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr); gap: clamp(30px, 5vw, 72px); align-items: center; }
.eyebrow { color: var(--cyan); font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.14; text-wrap: balance; }
h1 { margin: 14px 0 22px; font-size: clamp(2.35rem, 5.2vw, 4.1rem); letter-spacing: -.035em; }
h2 { margin: 0 0 20px; font-size: clamp(1.8rem, 3.4vw, 2.65rem); letter-spacing: -.02em; }
h3 { margin: 30px 0 10px; font-size: clamp(1.18rem, 2vw, 1.42rem); }
p { margin: 0 0 1.15em; }
.hero-lead { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.23rem); max-width: 710px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 11px 18px; border-radius: 10px; border: 1px solid var(--cyan); background: var(--cyan); color: #06121c; font-weight: 800; text-decoration: none; }
.button.alt { background: transparent; color: var(--text); border-color: var(--border); }
.button:hover { transform: translateY(-1px); color: #06121c; }
.button.alt:hover { color: #fff; background: var(--panel); }
.media-card { margin: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 24px; background: var(--panel); box-shadow: var(--shadow); }
.media-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.media-card figcaption { padding: 9px 14px 12px; color: var(--muted); font-size: .82rem; }

.content-shell { padding: clamp(42px, 7vw, 84px) 0 88px; }
.article-head { max-width: 900px; margin-bottom: 42px; }
.article-head h1 { font-size: clamp(2.25rem, 5vw, 3.8rem); }
.article-lead { font-size: 1.16rem; color: #d9e5f1; padding-left: 20px; border-left: 4px solid var(--coral); }
.article-body { max-width: var(--read); }
.article-body > section { margin: 0 0 clamp(50px, 7vw, 80px); scroll-margin-top: 95px; }
.article-body > section.wide { width: min(var(--max), calc(100vw - 48px)); max-width: none; }
.article-body ul, .article-body ol { margin: 0 0 1.4em; padding-left: 1.3em; }
.article-body li { margin: .58em 0; padding-left: .28em; }
.article-body ol { counter-reset: steps; list-style: none; padding-left: 0; }
.article-body ol > li { position: relative; margin: 12px 0; padding: 16px 18px 16px 56px; border: 1px solid var(--border); border-radius: 12px; background: linear-gradient(135deg, var(--panel), rgba(19,36,58,.7)); }
.article-body ol > li::before { counter-increment: steps; content: counter(steps); position: absolute; left: 14px; top: 14px; width: 30px; height: 30px; display: grid; place-items: center; background: var(--cyan); color: #06121c; border-radius: 50%; font-weight: 900; }
.note, .warning, .checklist { margin: 28px 0; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.note { border-left: 4px solid var(--cyan); }
.warning { border-left: 4px solid var(--gold); }
.checklist { border-left: 4px solid var(--violet); }
.checklist ul { margin-bottom: 0; }
.facts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 26px 0; }
.fact { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.fact h3 { margin-top: 0; }
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { min-height: 58px; display: flex; align-items: center; cursor: pointer; color: #fff; font-weight: 750; }
.faq details p { color: var(--muted); padding: 0 0 18px; }

.site-footer { border-top: 1px solid var(--border); background: #050b14; padding: 54px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.footer-grid h2 { font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: 8px 0; }
.footer-grid a { color: var(--muted); }
.footer-copy { margin-top: 38px; padding-top: 20px; border-top: 1px solid var(--border); color: #8fa2b8; font-size: .86rem; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; }
  .facts-grid { grid-template-columns: 1fr; }
  .menu-toggle { display: inline-grid; place-items: center; margin-left: auto; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; margin: 0; padding: 0 24px 18px; background: var(--bg); border-bottom: 1px solid var(--border); }
  .js .site-nav[hidden] { display: none; }
  .nav-list { display: grid; gap: 4px; }
  .nav-list a { width: 100%; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { width: min(100% - 32px, var(--max)); }
  .header-inner { min-height: 68px; }
  .custom-logo { width: 138px; }
  .site-nav { padding-inline: 16px; }
  .hero { padding-top: 42px; }
  .hero-actions { display: grid; }
  .article-body > section.wide { width: calc(100vw - 32px); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

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