@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap");

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #f1f2f6;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background 0.3s ease;
}

.site-header__container {
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: clamp(70px, 10vh, 100px);
  padding: 0 1.5rem;
}

.site-header__brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: 1 1 auto;
  min-width: 0; /* Allow shrinking */
}

.site-header__brand-title {
  font-family: "Bebas Neue", var(--font-sans, sans-serif);
  font-size: clamp(24px, 6vw, 47px);
  font-style: normal;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.04em;
  color: #0f172b;
  text-transform: uppercase;
  /* Leading trim & Text edge support */
  leading-trim: both;
  text-edge: cap;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex: 0 0 auto; /* Ensure actions don't shrink */
}

.site-header__nav {
  display: none;
}

@media (min-width: 1024px) {
  .site-header__nav {
    display: block;
  }
}

.site-header__nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header__nav-link {
  color: #45556c;
  font-family: "Neuzeit Grotesk", var(--font-sans, sans-serif);
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 110%;
  text-transform: uppercase;
  /* Leading trim & Text edge support */
  leading-trim: both;
  text-edge: cap;
  font-feature-settings:
    "liga" off,
    "clig" off;
  text-decoration: none;
  transition: opacity 0.2s ease;
  padding: 0.5rem 0;
}

.site-header__nav-link:hover {
  opacity: 0.7;
}

.site-header__nav-link.is-active {
  position: relative;
}

.site-header__nav-link.is-active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #1a2533;
}

/* Mobile Toggle */
.site-header__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #1a2533;
  cursor: pointer;
  z-index: 1001;
}

@media (min-width: 1024px) {
  .site-header__toggle {
    display: none;
  }
}

.site-header__toggle-inner {
  position: relative;
  width: 24px;
  height: 18px;
}

.site-header__toggle-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition:
    transform 0.3s ease,
    opacity 0.2s ease;
}

.site-header__toggle-line:nth-child(1) {
  top: 0;
}
.site-header__toggle-line:nth-child(2) {
  top: 8px;
}
.site-header__toggle-line:nth-child(3) {
  top: 16px;
}

.is-menu-active .site-header__toggle-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.is-menu-active .site-header__toggle-line:nth-child(2) {
  opacity: 0;
}

.is-menu-active .site-header__toggle-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu */
.site-header__mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  background: #f1f2f6;
  z-index: 1000;
  padding-top: 100px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s;
}

.is-menu-active .site-header__mobile-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.site-header__mobile-menu-inner {
  width: var(--theme-width, min(1200px, calc(100% - 2rem)));
  margin: 0 auto;
}

.site-header__mobile-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 0;
  list-style: none;
}

.site-header__mobile-link {
  font-family: "Neuzeit Grotesk", var(--font-sans, sans-serif);
  font-size: 2rem;
  font-weight: 800;
  color: #45556c;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s ease;
  display: block;
}

.site-header__mobile-link:active {
  transform: scale(0.98);
}

.site-header__mobile-link.is-active {
  color: #fe9a00; /* Using brand green for active mobile link */
}
