/* ══════════════════════════════════════════════════════════════
   ITGS Shared Nav  ·  shared-nav.css
   The canonical pill nav used on every ITGS page.
   Mirrors the index.html design and extends it site-wide.
   Requires design-system.css to be linked before this file.
══════════════════════════════════════════════════════════════ */

/* ── Nav wrapper ──────────────────────────────────────────── */
.itgs-nav {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  width: min(1120px, calc(100vw - 26px));
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: rgba(10,9,14,.9);
  border: 1px solid rgba(201,210,222,.2);
  border-radius: 4px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 14px rgba(0,0,0,.22), 0 8px 24px rgba(0,0,0,.2);
  transition: background .28s ease, border-color .28s ease, box-shadow .28s ease;
  overflow: visible;
}

.itgs-nav.is-scrolled {
  background: rgba(10,9,14,.82);
  border-color: rgba(201,210,222,.14);
  box-shadow: 0 5px 11px rgba(0,0,0,.2);
}

/* ── Brand / wordmark ─────────────────────────────────────── */
.itgs-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 0;
}

.itgs-nav-wordmark {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
}

.itgs-nav-main {
  font-family: var(--fb, 'Bebas Neue', sans-serif);
  font-size: 15px;
  letter-spacing: 3px;
  color: var(--text, #EDE8F2);
  text-transform: uppercase;
  line-height: 1;
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.itgs-nav-sub {
  font-family: var(--f, 'Outfit', sans-serif);
  font-size: 8px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray, #6A6272);
  font-weight: 500;
  line-height: 1;
  transition: color .28s ease;
}

.itgs-nav.is-scrolled .itgs-nav-sub {
  color: rgba(106,98,114,.82);
}

/* ── Hamburger button ─────────────────────────────────────── */
.itgs-nav-hb {
  display: flex;
  width: 38px;
  height: 38px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(201,210,222,.25);
  border-radius: 2px;
  background: transparent;
  color: var(--gray-lt, #AFA6BA);
  flex-shrink: 0;
  transition: border-color .2s, color .2s;
}

.itgs-nav-hb:hover {
  border-color: var(--blue-lt, #C9D2DE);
  color: var(--blue-lt, #C9D2DE);
}

.itgs-hb-bar {
  display: block;
  height: 1.5px;
  width: 17px;
  background: currentColor;
  border-radius: 1px;
  transition: transform .2s, opacity .2s;
}

.itgs-nav-hb.is-open .itgs-hb-bar:nth-child(1) {
  transform: rotate(45deg) translate(4.5px, 4.5px);
}
.itgs-nav-hb.is-open .itgs-hb-bar:nth-child(2) {
  opacity: 0;
}
.itgs-nav-hb.is-open .itgs-hb-bar:nth-child(3) {
  transform: rotate(-45deg) translate(4.5px, -4.5px);
}

/* ── Desktop nav links — hidden, all links live in the drawer */
.itgs-nav-links {
  display: none;
}

.itgs-nav-links a {
  font-family: var(--f, 'Outfit', sans-serif);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dim, #9A91A8);
  font-weight: 500;
  padding: 6px 9px;
  border-radius: 2px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}

.itgs-nav-links a:hover,
.itgs-nav-links a.is-active {
  color: var(--text, #EDE8F2);
  background: rgba(255,255,255,.06);
}

.itgs-nav-stars {
  color: #d4b8f0 !important;
}

/* ── Theme toggle ─────────────────────────────────────────── */
.itgs-theme-toggle {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border: 1px solid rgba(201,210,222,.22);
  border-radius: 2px;
  background: transparent;
  color: var(--gray);
  flex-shrink: 0;
  transition: border-color .2s, color .2s;
  padding: 0;
  line-height: 1;
}

.itgs-theme-toggle:hover {
  border-color: var(--blue-lt);
  color: var(--blue-lt);
}

/* ── CTA buttons ──────────────────────────────────────────── */
.itgs-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.itgs-nav-btn {
  font-family: var(--f, 'Outfit', sans-serif);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  padding: 7px 11px;
  border: 1px solid rgba(201,210,222,.35);
  border-radius: 2px;
  color: var(--blue-lt, #C9D2DE);
  background: rgba(201,210,222,.05);
  transition: border-color .2s, color .2s, background .2s;
  white-space: nowrap;
}

.itgs-nav-btn:hover {
  border-color: var(--blue-lt, #C9D2DE);
  color: var(--text, #EDE8F2);
  background: rgba(201,210,222,.14);
}

.itgs-nav-rose {
  border-color: rgba(207,161,174,.44) !important;
  color: var(--red-lt, #CFA1AE) !important;
  background: rgba(207,161,174,.1) !important;
}

.itgs-nav-rose:hover {
  border-color: var(--red-lt, #CFA1AE) !important;
  background: rgba(207,161,174,.16) !important;
  color: var(--text, #EDE8F2) !important;
}

/* ── Mobile drawer ────────────────────────────────────────── */
.itgs-nav-drawer {
  position: fixed;
  top: 68px;
  right: calc((100vw - min(1120px, calc(100vw - 26px))) / 2);
  z-index: 899;
  width: min(320px, calc(100vw - 26px));
  max-height: calc(100vh - 88px);
  overflow-y: auto;
  padding: 8px;
  border: 1px solid rgba(201,210,222,.16);
  background: rgba(8,7,10,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  grid-template-columns: 1fr;
  gap: 3px;
  border-radius: 4px;
  box-shadow: 0 16px 34px rgba(0,0,0,.42);
}

.itgs-nav-drawer.is-open {
  display: grid;
}

.itgs-drawer-label {
  font-size: 8px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--mute, #5A5268);
  padding: 12px 13px 4px;
  font-weight: 600;
  font-family: var(--f, 'Outfit', sans-serif);
  pointer-events: none;
  user-select: none;
}

.itgs-nav-drawer a {
  font-family: var(--f, 'Outfit', sans-serif);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text, #EDE8F2);
  padding: 11px 13px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 2px;
  transition: border-color .15s, background .15s, color .15s;
}

.itgs-nav-drawer a:hover,
.itgs-nav-drawer a.is-active {
  border-color: rgba(201,210,222,.35);
  background: rgba(201,210,222,.07);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .itgs-nav {
    top: 8px;
    width: calc(100vw - 16px);
    padding: 9px 12px;
  }

  .itgs-nav-actions {
    display: none;
  }

  .itgs-nav-drawer {
    top: 62px;
    right: 8px;
    width: calc(100vw - 16px);
    max-width: 420px;
  }
}

@media (max-width: 480px) {
  .itgs-nav-main {
    max-width: 100px;
    font-size: 13px;
  }
}

/* ══════════════════════════════════════════════════════════════
   ITGS Shared Footer
══════════════════════════════════════════════════════════════ */

footer {
  background: var(--obsidian, #130F17);
  border-top: 1px solid var(--border, rgba(255,255,255,.07));
  padding: 40px 48px;
  position: relative;
  z-index: 2;
}

.fb {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.flm {
  font-family: var(--fb, 'Bebas Neue', sans-serif);
  font-size: 16px;
  letter-spacing: 3px;
  color: var(--dim, #9A91A8);
  text-transform: uppercase;
}

.fmission {
  font-family: var(--fs, 'Playfair Display', serif);
  font-style: italic;
  font-size: 13px;
  color: var(--mute, #5A5268);
  text-align: center;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

.life-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.diamond {
  font-size: 10px;
  color: var(--gray-lt, #AFA6BA);
  opacity: 0.8;
}

.diamond-sep {
  font-size: 9px;
  color: var(--mute, #5A5268);
  opacity: 0.7;
  margin: 0 2px;
}

.copyright-sec {
  background: var(--bg2, #0C0A10);
  border-top: 1px solid var(--border, rgba(255,255,255,.07));
  padding: 16px 20px;
}

.copyright-inner {
  max-width: 1100px;
  margin: 0 auto;
  font-size: 10px;
  color: var(--mute, #5A5268);
  line-height: 1.9;
  text-align: center;
}

.copyright-inner a { color: var(--blue-lt, #C9D2DE); }

.snstrip {
  background: rgba(255,255,255,.015);
  border-top: 1px solid rgba(255,255,255,.05);
  padding: 13px 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  position: relative;
  z-index: 3;
}

.snstrip a {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 500;
  color: #4A4458;
  transition: color .2s;
  text-decoration: none;
}

.snstrip a:hover { color: #9A90A4; }
.snstrip span { color: #2A2030; font-size: 10px; }

@media (max-width: 900px) {
  footer { padding: 26px 20px; }
  .snstrip { padding: 10px 16px; gap: 12px; }
}
