/* ==========================================================================
   BASE — Felipe 2026 / Blog Magazine
   Reset leve, tokens da marca, tipografia base e header.
   Stack Maturare: HTML/CSS/JS estático (Eleventy), 100% sem dependências pesadas.
   ========================================================================== */

/* ---- Tokens ---- */
:root {
  --nk-yellow: #FFCC00;
  --nk-green: #00A859;
  --nk-blue: #1E50A2;
  --nk-blue-dark: #143770;
  --nk-blue-brand: #1E50A2;
  --nk-red-tag: #e74c5e;
  --nk-ink: #111111;
  --nk-header-h: 72px;
  --nk-max: 1440px;
  --nk-font: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
}

/* ---- Reset leve ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #08160c;
  color: #fff;
  font-family: var(--nk-font);
  line-height: 1.5;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, h5, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---- Acessibilidade ---- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100000;
  background: var(--nk-blue-brand); color: #fff;
  padding: 10px 16px; border-radius: 0 0 6px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   HEADER / MENU (duas faixas: amarela + verde, bloco azul da marca)
   Posicionado de forma sticky para transição fluida
   ========================================================================== */
.nk-header {
  position: sticky; top: 0; left: 0; width: 100%; z-index: 9999;
  height: var(--nk-header-h); font-family: var(--nk-font);
  box-shadow: 0 4px 20px rgba(0,0,0,.35);
}
.nk-header__bg {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  pointer-events: none;
}
.nk-header__bg-yellow { height: 38%; background: var(--nk-yellow); }
.nk-header__bg-green  { flex: 1;   background: var(--nk-green); }

.nk-header__inner {
  position: relative; z-index: 2;
  max-width: var(--nk-max); margin: 0 auto;
  height: 100%; display: flex; align-items: stretch;
  padding: 0 20px;
}

/* Bloco azul da marca */
.nk-brand-container { position: relative; display: flex; align-items: center; flex-shrink: 0; }
.nk-brand {
  background: var(--nk-blue);
  display: flex; align-items: center; justify-content: center;
  padding: 0 20px; flex-shrink: 0; height: 100%;
  text-decoration: none; color: #fff;
  box-shadow: 4px 0 10px rgba(0,0,0,.12);
  transition: background 0.2s ease;
}
.nk-brand:hover { background: var(--nk-blue-dark); }
.nk-brand__img { height: 44px; width: auto; object-fit: contain; }

/* Elemento flutuante /oficial */
.nk-blog-float {
  position: absolute; left: 100%; top: 50%; transform: translateY(-50%);
  margin-left: -10px; font-size: 56px; font-weight: 900; font-style: italic;
  color: #fff; letter-spacing: -0.02em; line-height: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
  z-index: 30; pointer-events: none; user-select: none; white-space: nowrap;
}

/* Lado direito (nav) */
.nk-nav-side { flex: 1; display: flex; flex-direction: column; justify-content: stretch; min-width: 0; }

/* Faixa amarela (topo) */
.nk-strip-yellow {
  height: 38%; display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 0 16px; font-size: 13px; font-weight: 700; color: var(--nk-blue-brand); white-space: nowrap;
}
.nk-strip-yellow .nk-phrase { opacity: .85; margin-right: 4px; }
.nk-strip-yellow a {
  color: var(--nk-blue-brand); text-decoration: none; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.06em; transition: color .2s;
}
.nk-strip-yellow a:hover { color: var(--nk-blue); }
.nk-strip-yellow .nk-sep { opacity: .35; margin: 0 1px; font-weight: 400; }

/* Faixa verde (baixo) */
.nk-strip-green {
  flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  padding: 0 16px; font-size: 14px; font-weight: 700; color: #fff; white-space: nowrap; overflow-x: auto;
}
.nk-strip-green a { color: #fff; text-decoration: none; transition: color .2s; }
.nk-strip-green a:hover { color: var(--nk-yellow); }
.nk-strip-green .nk-sep { opacity: .5; font-weight: 300; margin: 0 2px; }

/* Botão SITE ABAIXO integrado no Header */
.nk-header-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--nk-yellow);
  color: #08160c !important;
  font-weight: 900;
  font-size: 11.5px;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  margin-left: 8px;
  transition: transform 0.2s, background 0.2s;
}
.nk-header-cta-btn:hover {
  background: #fff;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  :root { --nk-header-h: 62px; }
  .nk-header { height: 62px; }
  .nk-brand { padding: 0 10px; }
  .nk-brand__img { height: 34px; }
  .nk-blog-float { font-size: 38px; margin-left: -6px; }
  .nk-strip-yellow { font-size: 10px; padding: 0 8px; gap: 5px; }
  .nk-strip-yellow .nk-phrase { display: none; }
  .nk-strip-green { font-size: 11px; padding: 0 8px; gap: 4px; justify-content: flex-end; }
}
@media (min-width: 1200px) {
  :root { --nk-header-h: 74px; }
  .nk-header { height: 74px; }
  .nk-brand { padding: 0 20px; }
  .nk-strip-yellow { font-size: 13.5px; padding: 0 16px; }
  .nk-strip-green { font-size: 14.5px; padding: 0 16px; gap: 12px; }
}

/* ==========================================================================
   MENU SANDUÍCHE (mobile / tablet)
   ========================================================================== */
.nk-burger {
  display: inline-flex; align-self: center; margin-left: auto;
  width: 34px; height: 30px; padding: 0; flex-shrink: 0;
  border: none; border-radius: 7px; cursor: pointer;
  background: transparent; color: #fff;
  align-items: center; justify-content: center; transition: color .2s;
}
.nk-burger:hover { color: var(--nk-yellow); }
.nk-burger__bars, .nk-burger__bars::before, .nk-burger__bars::after {
  content: ""; display: block; width: 22px; height: 2.5px; border-radius: 3px;
  background: currentColor; transition: transform .25s ease, opacity .2s ease, background .2s ease;
}
.nk-burger__bars { position: relative; }
.nk-burger__bars::before { position: absolute; top: -6px; left: 0; }
.nk-burger__bars::after  { position: absolute; top: 6px; left: 0; }
body.nk-menu-open .nk-burger__bars { background: transparent; }
body.nk-menu-open .nk-burger__bars::before { transform: translateY(6px) rotate(45deg); }
body.nk-menu-open .nk-burger__bars::after  { transform: translateY(-6px) rotate(-45deg); }

/* Painel off-canvas */
.nk-drawer { position: fixed; inset: 0; z-index: 9998; visibility: hidden; }
.nk-drawer__backdrop {
  position: absolute; inset: 0; background: rgba(6,12,22,.6);
  opacity: 0; transition: opacity .3s ease;
}
.nk-drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(84vw, 320px); background: var(--nk-blue); color: #fff;
  border-top: 5px solid var(--nk-yellow);
  display: flex; flex-direction: column;
  padding: calc(var(--nk-header-h) + 18px) 0 22px;
  transform: translateX(100%); transition: transform .3s ease;
  box-shadow: -12px 0 40px rgba(0,0,0,.4); overflow-y: auto;
}
body.nk-menu-open .nk-drawer { visibility: visible; }
body.nk-menu-open .nk-drawer__backdrop { opacity: 1; }
body.nk-menu-open .nk-drawer__panel { transform: translateX(0); }

.nk-drawer__label { padding: 0 24px 10px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--nk-yellow); }
.nk-drawer__nav { display: flex; flex-direction: column; }
.nk-drawer__link {
  display: flex; align-items: center; gap: 13px;
  padding: 14px 24px; font-size: 16px; font-weight: 700; color: #fff; text-decoration: none;
  border-left: 3px solid transparent; transition: background .2s, border-color .2s, color .2s;
}
.nk-drawer__link .nk-ico { color: var(--nk-yellow); transition: color .2s; }
.nk-drawer__link:hover { background: rgba(255,255,255,.10); border-left-color: var(--nk-yellow); color: var(--nk-yellow); }
.nk-drawer__link[aria-current="page"] { color: var(--nk-yellow); border-left-color: var(--nk-yellow); background: rgba(255,255,255,.08); }

/* Navegação unificada no sanduíche: os links inline da faixa verde saem em
   todas as larguras e o menu passa a ser sempre o painel off-canvas. */
.nk-strip-green a, .nk-strip-green .nk-sep { display: none; }
.nk-strip-green { justify-content: flex-end; gap: 0; overflow-x: visible; }

@media (max-width: 980px) {
  .nk-strip-yellow .nk-phrase { display: inline; }
}

/* Icones inline */
.nk-ico { display: inline-block; vertical-align: -0.15em; flex-shrink: 0; }

/* Badges reutilizaveis */
.nk-badge {
  display: inline-block; padding: 4px 10px; border-radius: 4px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: #fff; line-height: 1;
}
.nk-badge--red { background: #e74c5e; }
.nk-badge--blue { background: #1E50A2; }
.nk-badge--green { background: #00A859; }
.nk-badge--yellow { background: #D4A800; color: #111; }
