/* ─────────────────────────────────────────────
   REMAPHUB — Central de Ajuda (/ajuda)
   Self-contained: own fonts + palette + layout.
   ───────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=JetBrains+Mono:wght@400;500&family=Barlow:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0c0c0e; --bg2: #111114; --surface: #161619; --surface2: #1c1c20;
  --border: #2a2a30; --border2: #333339;
  --orange: #e8571e; --orange2: #ff6a2f;
  --text: #efefef; --muted: #9a9aa6; --dim: #6a6a76;
  --blue: #4fc1ff; --green: #4ec9b0;
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Barlow', sans-serif; font-size: 16px; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

/* ── top bar ── */
.hc-top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding: 0 24px; background: rgba(12,12,14,0.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.hc-logo { font-family: 'Bebas Neue', sans-serif; font-size: 26px; letter-spacing: 1px; }
.hc-logo span { color: var(--orange); }
.hc-top-links { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.hc-top-links a { color: var(--muted); transition: color .15s; }
.hc-top-links a:hover { color: var(--text); }
.hc-cta { background: linear-gradient(135deg, var(--orange), var(--orange2)); color: #fff !important; padding: 8px 16px; border-radius: 6px; font-weight: 600; }

/* ── layout ── */
.hc-wrap { display: grid; grid-template-columns: 264px 1fr; max-width: 1240px; margin: 0 auto; padding-top: 64px; }
.hc-side { border-right: 1px solid var(--border); padding: 28px 18px; position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto; }
.hc-side h4 { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--dim); margin: 18px 0 8px; font-family: 'JetBrains Mono', monospace; }
.hc-side h4:first-child { margin-top: 0; }
.hc-side a { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 6px; color: var(--muted); font-size: 14px; transition: background .12s, color .12s; }
.hc-side a:hover { background: var(--surface); color: var(--text); }
.hc-side a.active { background: rgba(232,87,30,0.12); color: var(--orange2); font-weight: 600; }
.hc-side a svg { width: 16px; height: 16px; flex-shrink: 0; }

.hc-main { padding: 40px 56px 90px; min-width: 0; }

/* ── home hero ── */
.hc-hero { text-align: center; padding: 30px 0 36px; }
.hc-hero h1 { font-family: 'Bebas Neue', sans-serif; font-size: 56px; letter-spacing: 1px; line-height: 1; margin-bottom: 22px; }
.hc-search { max-width: 620px; margin: 0 auto; position: relative; }
.hc-search input { width: 100%; height: 52px; padding: 0 18px 0 48px; background: var(--surface); border: 1px solid var(--border2); border-radius: 10px; color: var(--text); font-size: 15px; font-family: inherit; outline: none; }
.hc-search input:focus { border-color: var(--orange); }
.hc-search svg { position: absolute; left: 16px; top: 16px; width: 20px; height: 20px; stroke: var(--dim); }
.hc-chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.hc-chips a { font-size: 13px; color: var(--muted); border: 1px solid var(--border2); border-radius: 999px; padding: 6px 14px; transition: all .15s; }
.hc-chips a:hover { border-color: var(--orange); color: var(--text); }

/* ── cards grid ── */
.hc-sec-title { font-family: 'Bebas Neue', sans-serif; font-size: 30px; letter-spacing: 1px; margin: 44px 0 18px; }
.hc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hc-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 22px; transition: border-color .15s, transform .15s; display: flex; flex-direction: column; min-height: 150px; }
.hc-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.hc-card .ic { width: 30px; height: 30px; stroke: var(--orange2); margin-bottom: 14px; }
.hc-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.hc-card p { font-size: 13.5px; color: var(--muted); }

/* ── article body ── */
.hc-bc { font-size: 13px; color: var(--dim); font-family: 'JetBrains Mono', monospace; margin-bottom: 14px; }
.hc-bc a:hover { color: var(--orange2); }
.hc-main h1.art { font-family: 'Bebas Neue', sans-serif; font-size: 46px; letter-spacing: 1px; line-height: 1.05; margin-bottom: 14px; }
.hc-lead { font-size: 18px; color: var(--muted); margin-bottom: 30px; max-width: 70ch; }
.hc-main h2 { font-size: 24px; font-weight: 700; margin: 38px 0 12px; display: flex; align-items: center; gap: 10px; scroll-margin-top: 80px; }
.hc-main h2 svg { width: 22px; height: 22px; stroke: var(--orange2); flex-shrink: 0; }
.hc-main h3 { font-size: 18px; font-weight: 600; margin: 24px 0 8px; }
.hc-main p { margin-bottom: 14px; color: #d7d7de; max-width: 72ch; }
.hc-main ul, .hc-main ol { margin: 0 0 16px 22px; color: #d7d7de; max-width: 70ch; }
.hc-main li { margin-bottom: 8px; }
.hc-main strong { color: var(--text); }
.hc-main code { background: var(--surface2); border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--orange2); }

/* steps */
.hc-steps { list-style: none; margin-left: 0 !important; counter-reset: step; }
.hc-steps li { position: relative; padding-left: 42px; margin-bottom: 16px; }
.hc-steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%; background: rgba(232,87,30,0.15); border: 1px solid var(--orange); color: var(--orange2); font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: 13px; display: flex; align-items: center; justify-content: center; }

/* callouts */
.hc-note { display: flex; gap: 12px; background: rgba(79,193,255,0.07); border: 1px solid rgba(79,193,255,0.25); border-left: 3px solid var(--blue); border-radius: 8px; padding: 14px 16px; margin: 18px 0; }
.hc-note.tip { background: rgba(78,201,176,0.07); border-color: rgba(78,201,176,0.25); border-left-color: var(--green); }
.hc-note.warn { background: rgba(232,87,30,0.07); border-color: rgba(232,87,30,0.3); border-left-color: var(--orange); }
.hc-note svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.hc-note p { margin: 0; font-size: 14px; }

/* video placeholder */
.hc-video { position: relative; aspect-ratio: 16/9; background: var(--surface); border: 1px dashed var(--border2); border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; margin: 18px 0 8px; }
.hc-video .play { width: 56px; height: 56px; border-radius: 50%; background: rgba(232,87,30,0.15); border: 1px solid var(--orange); display: flex; align-items: center; justify-content: center; }
.hc-video .play svg { width: 22px; height: 22px; fill: var(--orange2); stroke: none; margin-left: 3px; }
.hc-video span { font-size: 13px; color: var(--dim); font-family: 'JetBrains Mono', monospace; }

/* role tag */
.hc-roles { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.hc-role { font-size: 12px; font-family: 'JetBrains Mono', monospace; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border2); color: var(--muted); }
.hc-role.prep { border-color: rgba(79,193,255,0.4); color: var(--blue); }
.hc-role.rep  { border-color: rgba(78,201,176,0.4); color: var(--green); }

/* prev/next + help cta */
.hc-nextprev { display: flex; gap: 12px; margin-top: 44px; flex-wrap: wrap; }
.hc-nextprev a { flex: 1; min-width: 200px; border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; transition: border-color .15s; }
.hc-nextprev a:hover { border-color: var(--orange); }
.hc-nextprev .lbl { font-size: 11px; color: var(--dim); font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: 1px; }
.hc-nextprev .ttl { font-size: 15px; font-weight: 600; color: var(--text); }
.hc-help { margin-top: 50px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; text-align: center; }
.hc-help h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.hc-help p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.hc-help a { display: inline-block; background: linear-gradient(135deg, var(--orange), var(--orange2)); color: #fff; font-weight: 600; padding: 10px 22px; border-radius: 8px; font-size: 14px; }

@media (max-width: 900px) {
  .hc-wrap { grid-template-columns: 1fr; }
  .hc-side { display: none; }
  .hc-main { padding: 28px 22px 70px; }
  .hc-cards { grid-template-columns: 1fr; }
  .hc-hero h1 { font-size: 40px; }
}
/* ── site nav: mobile hamburger + menu (page-level on the marketing site) ── */
.nav-hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; background: none; border: 1px solid var(--border); padding: 0 10px; cursor: pointer; width: 40px; height: 40px; flex-shrink: 0; }
.nav-hamburger span { display: block; width: 18px; height: 2px; background: var(--text); transition: transform 0.25s, opacity 0.2s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; position: fixed; inset: 0; z-index: 190; background: rgba(12,12,14,0.97); backdrop-filter: blur(18px); flex-direction: column; padding: 88px 32px 48px; overflow-y: auto; }
.mobile-menu.open { display: flex; }
.mobile-nav-links { list-style: none; display: flex; flex-direction: column; margin-bottom: 40px; }
.mobile-nav-links li { border-bottom: 1px solid var(--border); }
.mobile-nav-links a { display: block; padding: 22px 0; font-family: 'Bebas Neue', sans-serif; font-size: 42px; letter-spacing: 2px; color: var(--muted); transition: color 0.2s, padding-left 0.2s; }
.mobile-nav-links a:hover { color: var(--text); padding-left: 8px; }
@media (max-width: 900px) { .logo-wrap .logo { height: 36px; } nav { padding: 0 16px; } .btn-nav { display: none; } .nav-hamburger { display: flex; } }
