/* site-chrome-v2.css - site-wide menu + footer, facelift phase 1 (2026-11-05).
 * Design: Vera, team/vera_design.md sections 2, 3, 5 + vera_home_mockup.html (founder: "brilliant"; "Yes, do it").
 * Matches css/home-v2.css (same ink / wing-yellow tokens, same 1120 px wrap).
 * Every rule is under a .sc-* class, so loading this file on every page changes nothing else:
 * pages that keep the legacy chrome (dashboard, viewers, admin, ml-workstation; see includes/site_chrome.php)
 * never render .sc-* markup.
 * Self-hosted only (CSP font-src 'self'): the site's Inter + the system monospace.
 * Contrast: #F2F6FA on ink ~16:1, #A9BCCB on ink ~9:1, ink on yellow ~12:1. Targets 48 px; phone menu rows 56 px. */

:root {
  --sc-ink: #07131D;
  --sc-ink2: #0E2233;
  --sc-foot: #040B11;
  --sc-signal: #FFC83D;
  --sc-signal-hi: #FFD566;
  --sc-tx: #F2F6FA;
  --sc-mut: #A9BCCB;
  --sc-line: rgba(255, 255, 255, .12);
  --sc-mono: ui-monospace, 'SFMono-Regular', 'Cascadia Code', Consolas, Menlo, monospace;
  --sc-sans: var(--font-sans, 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif);
  --sc-bar-h: 64px;
}

.sc-visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ================= MENU ================= */
.sc-nav {
  position: sticky; top: 0; z-index: 1000;
  background: var(--sc-ink);
  border-bottom: 1px solid var(--sc-line);
  font-family: var(--sc-sans); color: var(--sc-tx);
}
.sc-nav-inner {
  display: flex; align-items: center; gap: 12px;
  max-width: 1120px; min-height: var(--sc-bar-h); margin: 0 auto; padding: 0 16px;
}
.sc-nav :focus-visible,
.sc-foot :focus-visible { outline: 3px solid var(--sc-signal); outline-offset: 2px; border-radius: 6px; }

/* logo lockup: the existing white mark + "ParaBaro" + "by Aviometrics" */
.sc-brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px;
  color: #fff; text-decoration: none; flex-shrink: 0; margin-right: auto;
}
.sc-brand:hover { color: #fff; }
.sc-brand-mark { display: block; width: 50px; height: auto; }
.sc-brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.sc-brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; color: #fff; }
.sc-brand-name b { color: var(--sc-signal); font-weight: 800; }
.sc-brand-by {
  font-family: var(--sc-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--sc-mut); margin-top: 3px;
}

/* main items */
.sc-links { display: none; list-style: none; margin: 0; padding: 0; gap: 2px; align-items: center; }
.sc-link {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; border-radius: 8px;
  color: var(--sc-mut); font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap;
  transition: color .15s ease, background-color .15s ease;
}
.sc-link:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.sc-link[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 var(--sc-signal); border-radius: 0; }

/* right side */
.sc-utils { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.sc-pill {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px;
  border-radius: 999px; background: var(--sc-signal); color: var(--sc-ink); border: 2px solid var(--sc-signal);
  font-weight: 700; font-size: .95rem; text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease;
}
.sc-pill:hover { background: var(--sc-signal-hi); border-color: var(--sc-signal-hi); color: var(--sc-ink); }
.sc-nav .sc-pill:focus-visible { outline-color: #fff; }
.sc-util {
  display: inline-flex; align-items: center; gap: 4px; min-height: 48px; padding: 0 10px; border-radius: 8px;
  background: none; border: 0; color: var(--sc-mut); font: inherit; font-weight: 600; font-size: .9rem;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.sc-util:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.sc-lang-btn { font-family: var(--sc-mono); letter-spacing: .06em; }

/* dropdowns (language, account): opened by js/main.js (.open) */
.sc-menu-wrap { position: relative; }
.sc-dd {
  display: none; position: absolute; top: calc(100% + 6px); right: 0; z-index: 1001;
  min-width: 210px; padding: 6px; border-radius: 12px;
  background: var(--sc-ink2); border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .7);
}
.sc-dd.open { display: block; }
.sc-dd-lang { min-width: 160px; }
.sc-dd-item {
  display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 12px; border-radius: 8px;
  background: none; border: 0; color: var(--sc-tx); font: inherit; font-size: .92rem; text-align: left;
  text-decoration: none; cursor: pointer;
}
.sc-dd-item:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.sc-dd-item[aria-current] { color: var(--sc-signal); font-weight: 600; }
.sc-dd-divider { height: 1px; margin: 6px 4px; background: var(--sc-line); }
.sc-dd-form { margin: 0; }
.sc-dd-signout { color: #FCA5A5; }

.sc-user-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 8px 0 4px;
  background: none; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px;
  color: var(--sc-tx); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
}
.sc-user-btn:hover { border-color: rgba(255, 255, 255, .45); }
.sc-user-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-avatar {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--sc-signal); color: var(--sc-ink); font-weight: 800; font-size: .9rem;
}
.sc-avatar-link { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; border-radius: 50%; text-decoration: none; }

/* phone menu button */
.sc-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  background: none; border: 2px solid rgba(255, 255, 255, .3); border-radius: 10px; color: #fff; cursor: pointer; padding: 0;
}
.sc-toggle svg { width: 24px; height: 24px; }
.sc-toggle[aria-expanded="true"] { border-color: var(--sc-signal); }

/* phone menu sheet */
.sc-mobile {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  max-height: calc(100vh - var(--sc-bar-h)); overflow-y: auto; overscroll-behavior: contain;
  background: var(--sc-ink); border-bottom: 1px solid var(--sc-line);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); padding: 8px 16px 20px;
}
.sc-mobile.open { display: block; }
.sc-mobile-group { display: flex; flex-direction: column; padding: 6px 0; border-bottom: 1px solid var(--sc-line); }
.sc-mlink {
  display: flex; align-items: center; min-height: 56px; padding: 0 8px; border-radius: 8px;
  color: var(--sc-tx); font-size: 1.08rem; font-weight: 600; text-decoration: none;
  background: none; border: 0; font-family: inherit; width: 100%; text-align: left; cursor: pointer;
}
.sc-mlink:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.sc-mlink[aria-current="page"] { color: var(--sc-signal); }
.sc-mlink-strong { color: #fff; font-weight: 700; }
.sc-mobile-lang { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0 4px; }
.sc-mlang {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .25); color: var(--sc-mut); text-decoration: none; font-size: .95rem;
}
.sc-mlang[aria-current] { border-color: var(--sc-signal); color: #fff; }
.sc-mobile-signout { margin: 8px 0 0; }
.sc-mlink-btn { color: #FCA5A5; }

/* phone: logo + yellow button + menu; signed in, the dashboard avatar takes the button's place */
.sc-wide { display: none; }
.sc-pill-wide { display: none; }
@media (max-width: 419.98px) {
  .sc-nav-inner { gap: 8px; }
  .sc-brand { gap: 8px; min-width: 0; }
  .sc-brand-mark { width: 44px; }
  .sc-brand-name { font-size: 1.05rem; }
  .sc-brand-by { display: none; }
  .sc-pill { padding: 0 12px; font-size: .88rem; }
}
/* fr/de button labels are longer: below 375 px the mark alone carries the logo (the link keeps its name) */
@media (max-width: 374.98px) {
  .sc-brand-text { display: none; }
}

/* desktop */
@media (min-width: 1000px) {
  .sc-nav-inner { padding: 0 20px; gap: 16px; }
  .sc-brand { margin-right: 8px; }
  .sc-links { display: flex; margin-right: auto; }
  .sc-wide, .sc-pill-wide { display: inline-flex; }
  .sc-menu-wrap.sc-wide { display: block; }
  .sc-narrow, .sc-toggle, .sc-mobile, .sc-mobile.open { display: none; }
  .sc-pill { margin-right: 6px; }
}

/* ================= FOOTER ================= */
.sc-foot {
  background: var(--sc-foot); color: var(--sc-mut); font-family: var(--sc-sans); font-size: .95rem; line-height: 1.6;
  padding: 48px 0 28px; margin-top: auto; border-top: 1px solid rgba(255, 255, 255, .06);
}
.sc-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.sc-fgrid { display: grid; gap: 32px 24px; grid-template-columns: 1fr 1fr; }
.sc-fbrand { grid-column: 1 / -1; }
@media (min-width: 820px) {
  .sc-fgrid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .sc-fbrand { grid-column: auto; padding-right: 24px; }
}
.sc-brand-foot { margin: 0 0 10px; }
.sc-fcompany { margin: 0 0 20px; color: var(--sc-mut); }
.sc-fcompany strong { color: #fff; font-weight: 700; }
.sc-foot .sc-fhead {
  display: block; margin: 0 0 10px; color: #fff;
  font-family: var(--sc-mono); font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; line-height: 1.4;
}
.sc-flinks { list-style: none; margin: 0; padding: 0; }
.sc-flinks a,
.sc-flang a {
  display: inline-flex; align-items: center; min-height: 40px; color: var(--sc-mut); text-decoration: none;
}
.sc-flinks a:hover,
.sc-flang a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.sc-flang { display: flex; flex-wrap: wrap; gap: 0 14px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--sc-line); }
.sc-flang a[aria-current] { color: var(--sc-signal); }

/* newsletter, compact: one field + button */
.sc-news { margin: 0 0 20px; max-width: 380px; }
.sc-news-row { display: flex; gap: 8px; }
.sc-news-input {
  flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 0 14px; border-radius: 10px;
  border: 1px solid #2A4256; background: var(--sc-ink2); color: #fff; font: inherit; font-size: .95rem;
}
.sc-news-input::placeholder { color: #7F95A6; }
.sc-news-input:focus-visible { outline: 3px solid var(--sc-signal); outline-offset: 1px; }
.sc-news-btn {
  flex: 0 0 auto; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--sc-signal); color: var(--sc-ink); font: inherit; font-weight: 700; font-size: .95rem;
}
.sc-news-btn:hover { background: var(--sc-signal-hi); }
.sc-foot #newsletterMsg { margin: 8px 0 0; font-size: .875rem; color: var(--sc-tx); }
.sc-foot #newsletterMsg.text-error { color: #FCA5A5; }
.sc-foot #newsletterMsg.text-success { color: #86EFAC; }

/* Innovate NI badge (the stamp has a white ground, so it sits on a white tile) */
.sc-badge {
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 10px;
  background: #fff; color: #334155; text-decoration: none; max-width: 300px;
}
.sc-badge img { display: block; height: 44px; width: auto; }
.sc-badge span { font-size: .75rem; font-weight: 600; line-height: 1.3; }

.sc-fbottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px;
  margin-top: 36px; font-size: .85rem; color: #8EA3B3;
}
.sc-fbottom::before { content: ""; flex-basis: 100%; height: 1px; margin-bottom: 12px; background: var(--sc-line); }
.sc-fcompany-line { flex-basis: 100%; margin: 0; font-size: .8rem; line-height: 1.5; opacity: .85; }
.sc-social { display: flex; gap: 16px; }
.sc-social a { color: var(--sc-mut); }

@media (prefers-reduced-motion: reduce) {
  .sc-link, .sc-pill { transition: none; }
}
