/* ============================================================
   HEADER — Brenom Systems
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
  background: rgba(10, 10, 10, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ---- Logo ---- */
.site-header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none;
}

.site-header__logo img {
  display: block;
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* ---- Nav ---- */
.site-header__nav {
  display: flex;
  align-items: center;
  gap: 48px;
  flex: 1;
  justify-content: center;
}

.site-header__nav a {
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  white-space: nowrap;
  transition: color var(--transition);
}

.site-header__nav a:hover {
  color: var(--orange);
}

/* ---- Dropdown ---- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown__trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: default;
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  white-space: nowrap;
}

.nav-arrow {
  opacity: 0.7;
  transition: transform var(--transition);
  display: inline-block;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.nav-dropdown.is-open .nav-arrow {
  transform: rotate(180deg);
}

.nav-dropdown__menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  min-width: 220px;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  /* Invisible bridge to prevent gap-click miss */
  padding-top: 8px;
  margin-top: -8px;
}

.nav-dropdown.is-open .nav-dropdown__menu {
  display: flex;
}

.nav-dropdown__menu a {
  display: block;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 500;
  color: var(--dark);
  white-space: nowrap;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: color 0.15s, background 0.15s;
}

.nav-dropdown__menu a:last-child {
  border-bottom: none;
}

.nav-dropdown__menu a:hover {
  color: var(--orange);
  background: rgba(0, 0, 0, 0.03);
}

/* ---- Mobile-only nav actions (hidden on desktop) ---- */
.site-header__nav-mobile-actions {
  display: none;
}

/* ---- Discuss Your Project ---- */
.site-header__discuss {
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 24px;
  transition: color var(--transition);
}

.site-header__discuss:hover {
  color: var(--orange);
}

/* ---- CTA ---- */
.site-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background: var(--orange);
  height: 40px;
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  text-decoration: none;
  font-family: var(--font-body);
  transition: background var(--transition);
}

.site-header__cta:hover {
  background: var(--orange-dark);
}

/* ---- Hamburger ---- */
.site-header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  gap: 5px;
  flex-shrink: 0;
  position: relative;
  z-index: 101;
}

.site-header__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.25s, opacity 0.25s;
}

.site-header__hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header__hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.site-header__hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
