/* Cabeçalho e navegação */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 104px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 0 clamp(20px, 4vw, 54px);
  color: var(--text);
  background: linear-gradient(180deg, rgba(7, 8, 10, 0.92), rgba(7, 8, 10, 0.5), transparent);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.site-header.compact,
.site-header.is-scrolled {
  background: rgba(9, 10, 13, 0.94);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
}
.brand img { width: 190px; height: auto; object-fit: contain; filter: invert(1); }
.nav { justify-self: end; display: flex; align-items: center; gap: 8px; }
.nav a { padding: 10px 14px; color: rgba(255,255,255,.82); font-weight: 700; font-size: .92rem; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.header-cta { background: #f4f6f9; color: #101216; }
.header-cta img { width: 22px; height: 22px; filter: invert(1); }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #fff;
  background: transparent;
}

@media (max-width: 980px) {
  .site-header { grid-template-columns: auto auto 1fr; height: 90px; }
  .social-nav { display: none; }
  .nav-toggle { display: grid; place-items: center; justify-self: end; order: 3; }
  .nav {
    position: fixed;
    top: 90px;
    left: 16px;
    right: 16px;
    display: none;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(9,10,13,.98);
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: grid; }
  .nav a { padding: 14px; }
  .header-cta { justify-self: end; }
}

@media (max-width: 640px) {
  .site-header { padding: 0 14px; gap: 10px; grid-template-columns: 1fr auto; }
  .brand img { width: 142px; }
  .header-cta { display: none; }
}
