/* Site topbar (logo + nav). Markup for this comes from /nav.js. */
.site-topbar {
  background: #d70010;
  width: 100%;
}

.site-topbar__inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.site-topbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  line-height: 1;
}

.site-topbar__logo img {
  display: block;
  height: 42px;
  width: auto;
  object-fit: contain;
}

.site-topbar__logo-fallback {
  display: none;
  align-items: center;
  color: #ffffff;
  font-family: 'Oswald', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.site-topbar__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

.site-topbar__nav a {
  color: #ffffff;
  text-decoration: none;
  font-family: 'Oswald', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.site-topbar__nav a:hover,
.site-topbar__nav a.active {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-topbar__nav a.site-topbar__nav-cta {
  background: #ffffff;
  color: #111111;
  opacity: 1;
  padding: 8px 20px;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.site-topbar__nav a.site-topbar__nav-cta:hover,
.site-topbar__nav a.site-topbar__nav-cta.active {
  background: #111111;
  color: #ffffff;
  text-decoration: none;
}

.site-topbar__nav-item {
  position: relative;
}

/* Bridges the visual gap above the dropdown so the cursor stays "inside"
   the hoverable area while moving from the link down into the dropdown —
   otherwise :hover ends the instant the cursor crosses the gap. */
.site-topbar__nav-item::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 14px;
}

.site-topbar__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 14px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
  padding: 8px;
  min-width: 170px;
  z-index: 20;
}

.site-topbar__nav-item:hover .site-topbar__dropdown,
.site-topbar__nav-item:focus-within .site-topbar__dropdown {
  display: block;
}

.site-topbar__nav .site-topbar__dropdown a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: #111111;
  opacity: 1;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.9rem;
}

.site-topbar__nav .site-topbar__dropdown a:hover,
.site-topbar__nav .site-topbar__dropdown a.active {
  background: #f5f2ee;
  text-decoration: none;
}

@media (max-width: 560px) {
  .site-topbar__inner {
    padding: 14px 16px;
  }

  .site-topbar__nav {
    gap: 18px;
  }
}
