/**
 * Garment Printer — Site chrome styles (header + footer)
 * ──────────────────────────────────────────────────────
 * Ported from index-v3.html .site-nav (lines 97–132) and .site-footer
 * (lines 786–802) blocks. Footer multi-column layout is a build-out from
 * the spec — v3 source has a one-line footer; the locked footer architecture
 * is multi-column LINKS / EQUIPMENT / CONTACT + newsletter + legal.
 *
 * All BEM-prefixed `.gp-header__*` / `.gp-footer__*` to coexist with Dawn
 * residue without collision. Tokens come from tokens.css (`--gp-*`).
 */

/* ─────────────────────────────────────────────────────────────────────
   HEADER
   ──────────────────────────────────────────────────────────────────── */

.gp-header-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
}

.gp-header {
  background: linear-gradient(180deg, #0B2545 0%, #1B365D 100%);
  color: var(--gp-on-ink);
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 var(--gp-page-pad);
  font-family: var(--gp-font-text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.gp-header__inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: var(--gp-page-max);
  margin: 0 auto;
  gap: var(--gp-b5);
}

.gp-header__brand {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.gp-header__brand img {
  height: 24px;
  width: auto;
  display: block;
}

.gp-header__brand-mark {
  width: 28px;
  height: 28px;
  display: block;
  flex-shrink: 0;
  color: #fff; /* G mark in white on the dark header band */
}

.gp-header__brand-text {
  font-family: var(--gp-font-display);
  font-weight: 800;            /* Funnel Display 800 — canonical wordmark weight per brand-tokens.json v1.0.0 */
  font-size: 18px;
  letter-spacing: 0;           /* kerning option #4 — locked 2026-06-05 */
  text-transform: lowercase;
  color: #FFFFFF;
  line-height: 1;
}

.gp-header__brand-text span {
  color: inherit;              /* single-color wordmark per brand-tokens.json v1.0.0 (was two-tone in Eucalyptus era) */
}

@media (max-width: 600px) {
  .gp-header__brand-text { display: none; }
}

.gp-header__nav {
  display: flex;
  gap: 2px;
  flex: 1;
  align-items: center;
}

.gp-header__nav a,
.gp-header__nav__nav-link,
.gp-header__nav .gp-header__nav-link {
  color: #B5BCC6;              /* light slate — Precision V2 nav link */
  font-size: 12.5px;
  font-weight: 400;            /* lighter weight per Wally's note */
  padding: 8px 12px;
  text-decoration: none;
  transition: color 0.12s, background-color 0.12s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gp-header__nav a:hover,
.gp-header__nav a[aria-current="page"],
.gp-header__nav a.is-active {
  color: #fff;
}

/* ── Dropdown groups (Equipment, Supplies) ── */

.gp-header__nav-group {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.gp-header__nav-link--parent {
  cursor: default;
}

.gp-header__nav-caret {
  transition: transform 0.18s ease;
  opacity: 0.7;
  flex-shrink: 0;
}

.gp-header__nav-group:hover .gp-header__nav-caret,
.gp-header__nav-group:focus-within .gp-header__nav-caret {
  transform: rotate(180deg);
  opacity: 1;
}

.gp-header__nav-submenu {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  min-width: 220px;
  background: var(--gp-ink, #0F1514);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0s linear 0.14s;
  pointer-events: none;
  z-index: 60;
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}

.gp-header__nav-group:hover .gp-header__nav-submenu,
.gp-header__nav-group:focus-within .gp-header__nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0s linear 0s;
}

.gp-header__nav-submenu a {
  display: block;
  padding: 8px 18px;
  font-size: 13px;
  color: #B5BFB9;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.12s, background-color 0.12s;
}

.gp-header__nav-submenu a:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}

.gp-header__nav-suboverview {
  font-weight: 600 !important;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 4px;
  padding-bottom: 10px !important;
  color: #fff !important;
}

.gp-header__cta {
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 400;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-decoration: none;
  transition: background 0.12s, border-color 0.12s;
  flex-shrink: 0;
}

.gp-header__cta:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ── Mobile toggle (hamburger via checkbox hack) ── */

.gp-header__drawer-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gp-header__mobile-toggle {
  display: none;
  margin-left: auto;
  cursor: pointer;
  padding: 8px;
  color: #fff;
}

.gp-header__hamburger {
  display: inline-block;
  width: 22px;
  height: 16px;
  position: relative;
}

.gp-header__hamburger::before,
.gp-header__hamburger::after,
.gp-header__hamburger span {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #fff;
  transition: transform 0.18s, opacity 0.18s;
}

.gp-header__hamburger::before { top: 0; }
.gp-header__hamburger span    { top: 7px; }
.gp-header__hamburger::after  { bottom: 0; }

.gp-header__drawer-toggle:checked ~ .gp-header__inner .gp-header__hamburger::before { transform: translateY(7px) rotate(45deg); }
.gp-header__drawer-toggle:checked ~ .gp-header__inner .gp-header__hamburger span    { opacity: 0; }
.gp-header__drawer-toggle:checked ~ .gp-header__inner .gp-header__hamburger::after  { transform: translateY(-7px) rotate(-45deg); }

.gp-header__drawer-panel {
  display: none;
  position: absolute;
  top: 56px;
  left: 0;
  right: 0;
  background: var(--gp-ink);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--gp-b3) var(--gp-page-pad);
  flex-direction: column;
  gap: var(--gp-b1);
}

.gp-header__drawer-toggle:checked ~ .gp-header__drawer-panel {
  display: flex;
}

.gp-header__drawer-panel a {
  color: #B5BFB9;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 0;
  text-decoration: none;
}

.gp-header__drawer-panel a:hover {
  color: #fff;
}

.gp-header__drawer-cta {
  margin-top: var(--gp-b2);
  align-self: flex-start;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
}

/* ── Dropdown behavior inside the mobile drawer ── */
/* Hide the hover-revealed desktop submenu pattern; show children inline. */
.gp-header__drawer-panel .gp-header__nav-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

.gp-header__drawer-panel .gp-header__nav-link--parent {
  pointer-events: auto;
  cursor: pointer;
}

.gp-header__drawer-panel .gp-header__nav-caret {
  display: none;
}

.gp-header__drawer-panel .gp-header__nav-submenu {
  position: static;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0 0 var(--gp-b2) var(--gp-b3);
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition: none;
  min-width: 0;
  display: flex;
}

.gp-header__drawer-panel .gp-header__nav-submenu a {
  padding: 6px 0;
  font-size: 13.5px;
  color: #8C9591;
  white-space: normal;
}

.gp-header__drawer-panel .gp-header__nav-submenu a:hover {
  background: transparent;
  color: #fff;
}

.gp-header__drawer-panel .gp-header__nav-suboverview {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 8px !important;
  margin-bottom: 4px;
}

@media (max-width: 899px) {
  .gp-header__nav,
  .gp-header__cta {
    display: none;
  }

  .gp-header__mobile-toggle {
    display: inline-flex;
    align-items: center;
  }

  .gp-header__inner {
    gap: var(--gp-b2);
  }
}

@media (min-width: 900px) {
  .gp-header__drawer-panel {
    display: none;
  }
}

/* ─────────────────────────────────────────────────────────────────────
   FOOTER
   ──────────────────────────────────────────────────────────────────── */

.gp-footer {
  background: var(--gp-ink);
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  font-family: var(--gp-font-text);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.gp-footer__inner {
  max-width: var(--gp-page-max);
  margin: 0 auto;
  padding: var(--gp-b7) var(--gp-page-pad) var(--gp-b5);
}

.gp-footer__columns {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr) 1.6fr;
  gap: var(--gp-b6);
  padding-bottom: var(--gp-b6);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 1023px) {
  .gp-footer__columns {
    grid-template-columns: 1fr 1fr;
    gap: var(--gp-b5) var(--gp-b4);
  }
}

@media (max-width: 599px) {
  .gp-footer__columns {
    grid-template-columns: 1fr;
    gap: var(--gp-b4);
  }
}

.gp-footer__col-head {
  font-family: var(--gp-font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--gp-accent-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 var(--gp-b2);
}

.gp-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gp-footer__col a {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.12s;
}

.gp-footer__col a:hover {
  color: #fff;
}

.gp-footer__brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--gp-b2);
  text-decoration: none;
}

.gp-footer__brand-mark {
  width: 36px;
  height: 36px;
  display: block;
  flex-shrink: 0;
  color: #fff; /* G mark in white on the dark footer band */
}

.gp-footer__brand-text {
  font-family: var(--gp-font-display);
  font-weight: 800;
  font-size: 22px;
  color: #fff;
  letter-spacing: 0;           /* kerning option #4 — locked 2026-06-05 */
  text-transform: lowercase;
  line-height: 1;
}

.gp-footer__brand-text span {
  color: inherit;              /* single-color wordmark per brand-tokens.json v1.0.0 */
}

.gp-footer__tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.55;
  max-width: 28ch;
}

/* Newsletter */

.gp-footer__newsletter {
  display: flex;
  flex-direction: column;
  gap: var(--gp-b2);
}

.gp-footer__newsletter-form {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}

.gp-footer__newsletter input[type="email"] {
  flex: 1;
  min-width: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-family: var(--gp-font-text);
  font-size: 13px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.12s;
}

.gp-footer__newsletter input[type="email"]:focus {
  border-color: var(--gp-accent-mute);
}

.gp-footer__newsletter input[type="email"]::placeholder {
  color: rgba(255,255,255,0.35);
}

.gp-footer__newsletter button {
  background: var(--gp-accent);
  border: 1px solid var(--gp-accent);
  color: #fff;
  font-family: var(--gp-font-text);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}

.gp-footer__newsletter button:hover {
  background: var(--gp-accent-ink);
  border-color: var(--gp-accent-ink);
}

.gp-footer__newsletter-msg {
  font-size: 12px;
  color: var(--gp-accent-mute);
  font-family: var(--gp-font-mono);
  letter-spacing: 0.04em;
}

/* Bottom bar */

.gp-footer__bottom {
  padding-top: var(--gp-b3);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--gp-b2);
  font-size: 12px;
  color: rgba(255,255,255,0.68);
}

.gp-footer__bottom a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}

.gp-footer__bottom a:hover {
  color: #fff;
}

.gp-footer__legal-links {
  display: flex;
  gap: var(--gp-b2);
  flex-wrap: wrap;
}

.gp-footer__social {
  display: flex;
  gap: var(--gp-b2);
}

.gp-footer__social a {
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--gp-font-mono);
}

.gp-footer__social a:hover {
  color: #fff;
}
