/**
 * Chrome global — header, pre-footer, footer, dock
 */
.hn-topbar {
  background: linear-gradient(90deg, #1a1b1f 0%, #2d2e32 100%);
  color: #e2e8f0;
  border-bottom: 1px solid rgba(255, 208, 2, 0.18);
  font-size: 0.76rem;
}

.hn-topbar a {
  color: #cbd5e1;
  transition: color var(--transition-fast);
}

.hn-topbar a:hover {
  color: #fff;
}

.hn-topbar .btn-whatsapp {
  color: #4ade80;
}

.hn-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(100, 101, 105, 0.12);
  box-shadow: 0 8px 24px rgba(26, 27, 31, 0.06);
  backdrop-filter: blur(18px) saturate(140%);
}

[data-theme="dark"] .hn-header {
  background: rgba(11, 23, 48, 0.96);
  border-bottom-color: rgba(255, 208, 2, 0.2);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28);
}

.hn-nav {
  min-height: var(--header-height);
}

.hn-brand {
  padding: 8px 14px 8px 6px;
}

.hn-brand img {
  width: 218px;
  max-width: 36vw;
}

.hn-menu-link {
  font-weight: 800;
  font-size: 0.82rem;
}

.hn-mega {
  border-radius: 22px;
  border: 1px solid var(--hn-line);
  box-shadow: var(--shadow-strong);
}

.hn-mega-feature {
  background: linear-gradient(145deg, #fff9cf, #fff);
  border: 1px solid rgba(255, 208, 2, 0.4);
}

.hn-mega-feature--dark {
  background: linear-gradient(145deg, #061229, #0b2b62);
  color: #fff;
}

.hn-btn--primary {
  background: linear-gradient(135deg, var(--color-brand-yellow), var(--color-brand-yellow-deep));
  color: #111827;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(255, 208, 2, 0.28);
}

.hn-btn--soft {
  background: var(--hn-surface);
  border: 1px solid var(--hn-line);
  color: var(--hn-ink);
}

/* Pre-footer CTA */
.hn-prefooter-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 6vw, 72px) 0;
  background:
    radial-gradient(circle at 85% 50%, rgba(255, 208, 2, 0.22), transparent 42%),
    linear-gradient(135deg, #1a1b1f 0%, #2d2e32 55%, #1a1b1f 100%);
  color: #f8fafc;
  border-top: 1px solid rgba(255, 208, 2, 0.22);
}

.hn-prefooter-cta::before {
  content: "";
  position: absolute;
  inset: auto -20vw -120px;
  height: 200px;
  border-radius: 50% 50% 0 0 / 70% 70% 0 0;
  background: rgba(255, 208, 2, 0.08);
  pointer-events: none;
}

.hn-prefooter-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: clamp(20px, 4vw, 40px);
}

.hn-prefooter-copy strong {
  display: block;
  font-family: var(--ss-font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.05;
  margin-bottom: 8px;
}

.hn-prefooter-copy p {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.95rem;
  max-width: 42ch;
}

.hn-prefooter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hn-prefooter-actions .hn-btn--soft {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.hn-prefooter-sentinela {
  justify-self: end;
}

/* Footer */
.hn-footer {
  padding: 56px 0 20px;
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
  color: #cbd5e1;
  border-top: 3px solid var(--color-brand-yellow);
}

.hn-footer-grid {
  gap: 28px;
}

.hn-footer strong {
  color: #fff;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hn-footer a {
  color: #94a3b8;
  transition: color var(--transition-fast);
}

.hn-footer a:hover {
  color: var(--color-brand-yellow);
}

.hn-footer-logo {
  width: 220px;
}

.hn-footer-social a {
  border-radius: 14px;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.hn-footer-social a:hover {
  transform: translateY(-3px);
  background: rgba(255, 208, 2, 0.12);
}

.hn-footer-bottom {
  color: #64748b;
  font-size: 0.74rem;
}

/* Mobile dock */
.hn-mobile-dock {
  background: rgba(26, 27, 31, 0.97);
  border-top: 2px solid var(--color-brand-yellow);
  backdrop-filter: blur(12px);
}

.hn-mobile-dock a {
  font-weight: 800;
}

/* Mobile menu scroll lock */
body.hn-menu-open {
  overflow: hidden;
}

@media (max-width: 860px) {
  .hn-prefooter-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hn-prefooter-copy p {
    margin-inline: auto;
  }

  .hn-prefooter-actions {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 72px;
  }

  .hn-brand img {
    width: 168px;
  }
}
