/*
 * The Martkos IT site header, reproduced on the tools origin.
 *
 * Built from martkos-it-branding/brand-guidelines.md rather than by copying the live
 * site, because the two disagree: the guide records (2026-08-09) that a white label on
 * Coral is 2.8:1 and fails WCAG AA, that the label must be Navy Dark at 6.3:1, and that
 * "any product still shipping a white label on Coral is non-compliant and should be
 * updated". The main site's .btn-primary is still white. Matching the guide is what
 * keeps every product consistent; matching the site would have copied its one error
 * into three more places.
 *
 * The fonts are self-hosted. The guide imports them from Google, which this origin's
 * CSP (`font-src 'self'`) forbids — and rightly: a page whose entire claim is that it
 * talks to nobody cannot fetch a font from a third party on every load. Both are OFL
 * licensed, so shipping the files is permitted; the latin subsets total ~70 KB and are
 * cached across all three tools, which share this origin.
 */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}

.site-header {
  /* Reset first. This is a bare <header> dropped into pages that already style the
     element — the converter and scanner both set `header { padding: 2.5rem 1.25rem }`
     for their hero, which the bar inherited and which doubled its height to 160px
     against the site's 80px. A shared component cannot assume the page it lands in. */
  margin: 0;
  padding: 0;
  border: 0;
  /* Navy at 95%, the same translucent bar the site uses, over whatever the tool draws. */
  background: rgba(29, 53, 87, 0.95);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(46, 74, 109, 0.2);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 80rem;              /* the site's max-w-7xl */
  margin: 0 auto;
  padding: 0 1rem;
  height: 4rem;                  /* h-16; h-20 from lg, below */
}

/* ── Brand ─────────────────────────────────────────────────────────────────── */

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.site-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: linear-gradient(to bottom right, #FF6B6B, #9B5DE5);
  color: #FFFFFF;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.site-brand:hover .site-brand-mark {
  transform: rotate(6deg);
}

.site-brand-word {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: #FFFFFF;
  white-space: nowrap;
}

.site-brand-dot {
  color: #FF6B6B;
  font-weight: 600;
}

/* ── Links ─────────────────────────────────────────────────────────────────── */

.site-links {
  display: none;                 /* lg:flex, below */
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.site-links a {
  display: block;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  color: #ADB5BD;                /* Gray 300 — 6.4:1 on Navy */
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.site-links a:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.05);
}

.site-links a[aria-current="page"] {
  color: #FF6B6B;
  background: rgba(255, 107, 107, 0.1);
}

/* ── Call to action ────────────────────────────────────────────────────────── */

.site-cta {
  flex-shrink: 0;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  background: #FF6B6B;
  /* Navy Dark, per the guide: 6.3:1, where white would be 2.8:1. */
  color: #0D1B2A;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.site-cta:hover {
  background: #ff5252;
  color: #0D1B2A;
  text-decoration: none;
}

.site-header a:focus-visible {
  outline: 2px solid #00D4FF;    /* the guide's focus ring */
  outline-offset: 2px;
}

@media (min-width: 1024px) {
  .site-header-inner {
    height: 5rem;                /* lg:h-20 */
    padding: 0 2rem;
  }

  .site-links {
    display: flex;
  }
}
