.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  background: rgb(var(--bg-rgb) / var(--header-opacity));
}

/* LOGO */
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: fit-content;
}

.brand__icon {
  width: 56px;
  height: 56px;
}

.brand__copy {
  display: flex;
  flex-direction: column;
  height: fit-content;
}

.brand__mark {
  font-size: 1.4rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--primary-strong);
  line-height: 1;
  padding: 0.4rem 0 0 0;
}

.brand__text {
  font-size: 0.78rem;
  color: var(--primary);
}

/* MENU MOBILES */
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.mobile-menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--bg);
}

.main-nav {
  background-color: var(--bg);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 1rem;
  padding: 1rem 0;
  margin: 0;
}

.main-nav__link {
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  width: fit-content;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.main-nav__link:hover,
.main-nav__link:focus-visible {
  color: var(--primary);
}

.main-nav__link--active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

.nav-toggle:checked + .mobile-menu-button + .main-nav {
  display: flex;
}

/* BOTON ACTION */
.header-action {
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--bg);
  border: none;
  padding: 0.4rem 1rem;
  text-transform: uppercase;
  font-weight: 300;
  white-space: nowrap;
  width: 100%;
  max-width: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1rem;
}

.header-action > span {
  font-size: 1rem;
}

.header-action--inline {
  width: auto;
}

/* DESKTOP LAYOUT */
@media (min-width: 1200px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 1rem 2rem;
  }

  .nav-toggle,
  .mobile-menu-button {
    display: none;
  }

  .brand {
    justify-self: start;
  }

  .main-nav {
    background-color: var(--transparent);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    gap: 1.5rem;
    padding: 0;
    border: none;
  }

  .main-nav__link {
    padding: 0;
  }

  .main-nav__link--active {
    border-bottom: none;
  }

  .header-action--inline {
    position: absolute;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    margin: 0;
  }
}
