/* ==========================================================================
   HEADER
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--color-background);
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.header__brand {
    display: flex;
    justify-content: center;
    height: 4rem;
}

.header__brand a img {
    height: 4rem;
    width: auto;
}

/* Nav Menu Desktop */
.header__nav {
    display: flex;
    align-items: center;
}

.header__nav .header__nav-list {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .header__nav .header__nav-list {
        display: flex;
    }
}

.header__nav .header__nav-link {
    font-size: .950rem;
    font-weight: 700;
    line-height: 1.625;
    transition: color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--color-foreground);
    text-decoration: none;
}

.header__nav .header__nav-link:hover,
.header__nav .header__nav-link.is-active {
    color: var(--color-primary);
}

/* Actions (Search & Hamburger) */
.header__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header__btn {
    padding: 0.5rem;
    border-radius: calc(var(--radius-md) - 2px);
    transition: color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-foreground);
}

.header__btn:hover {
    color: var(--color-primary);
}

/* Mobile Menu */
.header__mobile-menu {
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-top: 1px solid var(--color-border);
}

.header__mobile-menu .header__mobile-link {
    display: block;
    padding-top: .625rem;
    padding-bottom: .625rem;
    font-size: .950rem;
    font-weight: 700;
    line-height: 1.625;
    transition: color .5s cubic-bezier(.4, 0, .2, 1);
    color: var(--color-foreground);
    text-decoration: none;
}

.header__mobile-menu .header__mobile-link:hover,
.header__mobile-menu .header__mobile-link.is-active {
    color: var(--color-primary);
}

/* Search Bar */
.header__search-form {
    display: none;
    padding: 0.75rem 0;
    border-top: 1px solid var(--color-border);
}

.header__search-wrapper {
    position: relative;
}

.header__search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-muted-foreground);
}

.header__search-input {
    width: 100%;
    background-color: var(--color-muted);
    border: none;
    border-radius: var(--radius-md);
    padding: 0.625rem 1rem 0.625rem 2.5rem;
    color: var(--color-foreground);
    font-family: var(--font-body);
    font-size: 0.875rem;
    outline: none;
}
