﻿/* header.css — header / topbar styles (separated for reuse) */
.topbar {
  width: 100%;
  padding: 18px 0 0;
  background: transparent;
}

/* make the topbar content use flex inside the container */
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.2px;
  /* push brand visually to the viewport left edge while keeping it inside the centered container
     calculation: shift by half the remaining viewport beyond the centered max width */
  margin-left: calc(-1 * ((100vw - var(--max)) / 2));
  padding-left: 24px; /* keep safe spacing on very small screens */
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: grid;
  place-items: center;
  color: #06223a;
  font-weight: 900;
  box-shadow: var(--shadow);
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 22px;
  margin-left: auto;
  margin-right: calc(-1 * ((100vw - var(--max)) / 2));
  padding-right: 24px;
}

.header-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: #dfe7f5;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.header-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.header-link:hover {
  color: #fff;
}

.header-link:hover::after {
  transform: scaleX(1);
}

.header-link-primary,
.header-link-muted {
  color: #dfe7f5;
}

.divider {
  height: 1px;
  background:
    linear-gradient(90deg, transparent 0%, rgba(33, 183, 219, 0.55) 18%, rgba(255, 255, 255, 0.34) 50%, rgba(35, 208, 165, 0.55) 82%, transparent 100%);
  margin-top: 18px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.topbar .divider.full-bleed {
  display: block;
}
