/* =====================================================================
   Pug IT Solution — header & navigation
   ---------------------------------------------------------------------
   The sticky header of shared/partials/header.html: brand, navigation
   bar, and the drawer that replaces the bar on narrow screens.
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 8, 11, 0.66);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.is-stuck {
  background: rgba(5, 5, 7, 0.92);
  border-bottom-color: var(--line);
}

.nav {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  flex-shrink: 0;
}
.brand:hover { color: var(--text); }
/* The mark is the whole pug illustration, never cropped, sized by its own
   2592:2295 aspect ratio. Its palette is teal and tan, so the gold halo stays
   faint: enough warmth to belong to the page, not enough to tint the art.
   A picture uploaded for the brand_mark slot may have
   another shape: it is fitted into the same box, never stretched. */
.brand__mark {
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(201, 162, 39, 0.22));
  transition: transform 0.3s ease;
}
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.05); }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.brand__name em {
  font-style: normal;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--text-dim);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav__link:hover {
  color: var(--text);
  background: rgba(201, 162, 39, 0.09);
}
.nav__link.is-active { color: var(--text); }
.nav__link.is-active::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-accent);
  box-shadow: 0 0 12px rgba(201, 162, 39, 0.75);
}

.nav__actions { display: flex; align-items: center; gap: 12px; }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(201, 162, 39, 0.07);
  color: var(--text);
  cursor: pointer;
}
.nav__toggle:hover { border-color: var(--line-strong); }
/* Nothing opens the drawer without the site scripts, so the button is not
   offered. Specificity (0,2,1) keeps this ahead of the breakpoint rule at
   the end of this file. */
html:not(.js) .nav__toggle { display: none; }

.nav__drawer {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0 24px;
  border-top: 1px solid var(--line);
  /* The header is sticky, so the drawer scrolls rather than growing past
     the viewport on a short screen. It also ends above the cookie notice,
     whose height cookie_notice.js writes while the bar shows. */
  max-height: calc(100vh - var(--header-height) - var(--cookie-notice-height, 0px));
  overflow-y: auto;
}
.nav__drawer.is-open { display: flex; }
.nav__drawer .nav__link {
  height: 48px;
  font-size: 17px;
  border-radius: var(--radius-sm);
}
.nav__drawer .btn { margin-top: 12px; justify-content: center; }


/* ---------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav__actions .btn { display: none; }
  .nav__toggle { display: inline-flex; }
}
