/* Header specific styles for Prazloria */

.loft-header {
  background-color: rgba(249, 250, 251, 0.95);
}

.loft-header__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-12);
}

.loft-header__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-12);
  text-decoration: none;
}

.loft-header__logo::after {
  content: none;
}

.loft-header__mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--gray-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.loft-header__mark::before,
.loft-header__mark::after {
  content: "";
  position: absolute;
  inset: 20%;
  border: 1px solid var(--gray-300);
}

.loft-header__mark::after {
  inset: 35%;
}

.loft-header__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.loft-header__title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.loft-header__subtitle {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.loft-header__nav {
  display: flex;
}

.loft-header__nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-24);
}

.loft-header__nav-item--cta {
  margin-left: var(--space-8);
}

.loft-header__cta {
  font-size: var(--font-size-xs);
}

/* Mobile toggle */
.loft-header__toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--gray-300);
  align-items: center;
  justify-content: center;
  gap: 5px;
  background-color: #ffffff;
}

.loft-header__toggle-line {
  width: 18px;
  height: 1.5px;
  background-color: var(--gray-900);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.loft-header__toggle:focus-visible {
  outline: 2px solid #0ea5e9;
  outline-offset: 3px;
}

/* Mobile nav behavior */
@media (max-width: 768px) {
  .site-header__inner {
    gap: var(--space-16);
  }

  .loft-header__toggle {
    display: inline-flex;
    flex-direction: column;
  }

  .loft-header__nav {
    position: fixed;
    inset: 64px 0 auto 0;
    background-color: rgba(249, 250, 251, 0.98);
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition-base), opacity var(--transition-base), visibility var(--transition-base);
  }

  .loft-header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-16);
  }

  .loft-header__nav-item--cta {
    width: 100%;
    margin-left: 0;
  }

  .loft-header__nav-item--cta .btn {
    width: 100%;
    justify-content: center;
  }

  .loft-header--menu-open .loft-header__nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .loft-header--menu-open .loft-header__toggle-line:first-child {
    transform: translateY(3px) rotate(45deg);
  }

  .loft-header--menu-open .loft-header__toggle-line:last-child {
    transform: translateY(-3px) rotate(-45deg);
  }
}

@media (min-width: 769px) {
  .loft-header__nav {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* Active link helper class (to be set server-side) */
.nav__link--active {
  color: var(--gray-900);
}

.nav__link--active::after {
  transform: scaleX(1);
}