@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@900&display=swap');

/* ═══════════════════════════════════════════════════
   GarrisonONE — gnav.css
   ═══════════════════════════════════════════════════ */

/* ── Reset scoped to gnav ── */
.gnav-header *, .gnav-header *::before, .gnav-header *::after {
  box-sizing: border-box;
}
.gnav-header ul, .gnav-header li {
  list-style: none;
  margin: 0;
  padding: 0;
}
.gnav-header a {
  text-decoration: none;
}

/* ── Header wrapper ── */
.gnav-header {
  background: #fff;
  border-bottom: 1px solid #eeeeee;
  position: relative;
  z-index: 9999;
  width: 100%;
}

.gnav-header.gnav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* ── Inner row ── */
.gnav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 68px;
  position: relative;
}

/* ── Logo ── */
.gnav-logo-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0;
  text-decoration: none !important;
  flex-shrink: 0;
  margin-right: 32px;
  line-height: 1;
}

.gnav-logo-garrison {
  font-family: 'Nunito', 'Arial Black', Arial, sans-serif;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #2881d3;
  line-height: 1;
  display: inline !important;
}

.gnav-logo-ne {
  font-family: 'Nunito', 'Arial Black', Arial, sans-serif;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #2d2d2d;
  line-height: 1;
  display: inline !important;
}

.gnav-logo-glass {
  display: inline-flex !important;
  align-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Desktop nav links ── */
.gnav-links {
  display: flex;
  align-items: center;
  flex: 1;
  height: 100%;
}

.gnav-item {
  position: static;
  height: 100%;
  display: flex;
  align-items: center;
}

.gnav-item > .gnav-item-link {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 16px;
  font-family: 'GoogleSansMedium', Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #151515;
  letter-spacing: 0.3px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  cursor: pointer;
}

.gnav-item > .gnav-item-link:hover,
.gnav-item.gnav-open > .gnav-item-link {
  color: #2881d3;
  border-bottom-color: #2881d3;
}

.gnav-item > .gnav-item-link .gnav-arrow {
  display: inline-block;
  margin-left: 4px;
  font-size: 10px;
  transition: transform 0.2s;
  opacity: 0.6;
}

.gnav-item.gnav-open > .gnav-item-link .gnav-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

/* ── CTA Button ── */
.gnav-cta {
  display: inline-block !important;
  margin-left: auto;
  flex-shrink: 0;
  font-family: 'GoogleSansBold', Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #2881d3 !important;
  border: 2px solid #2881d3;
  border-radius: 20px;
  padding: 8px 22px;
  white-space: nowrap;
  background: #fff;
  transition: all 0.25s linear;
}

.gnav-cta:hover {
  color: #fff !important;
  background: linear-gradient(100deg, #51b7eb, #2881d3);
  border-color: transparent;
  padding: 10px 24px;
}

/* ── Hamburger ── */
.gnav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
  background: none;
  border: none;
}

.gnav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #151515;
  border-radius: 2px;
  transition: all 0.25s;
}

.gnav-hamburger.gnav-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.gnav-hamburger.gnav-open span:nth-child(2) { opacity: 0; }
.gnav-hamburger.gnav-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile CTA (top bar) ── */
.gnav-mobile-cta {
  display: none;
  font-size: 12px;
  color: #2881d3 !important;
  border: 1.5px solid #2881d3;
  border-radius: 20px;
  padding: 6px 14px;
  white-space: nowrap;
  margin-left: auto;
  margin-right: 12px;
  font-weight: 600;
}

/* ═══════════════════════════════════════
   MEGA PANEL — DESKTOP
   ═══════════════════════════════════════ */

.gnav-mega {
  display: none !important;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  width: 100%;
  background: #fff;
  border-top: 3px solid #2881d3;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  z-index: 9998;
  padding: 32px 0;
}

.gnav-item.gnav-open > .gnav-mega {
  display: block !important;
}

.gnav-mega-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.gnav-mega-eyebrow {
  font-family: 'GoogleSansBold', Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #2881d3;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eeeeee;
}

.gnav-mega-grid {
  display: grid;
  gap: 32px;
}

.gnav-mega-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.gnav-mega-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.gnav-mega-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.gnav-mega-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }

.gnav-mega-col-head {
  font-family: 'GoogleSansBold', Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #999999;
  margin-bottom: 10px;
}

.gnav-mega-link {
  display: block;
  font-family: 'GoogleSans', Arial, sans-serif;
  font-size: 13.5px;
  color: #151515;
  padding: 5px 0;
  transition: color 0.15s, padding-left 0.15s;
  white-space: nowrap;
}

.gnav-mega-link:hover {
  color: #2881d3;
  padding-left: 6px;
}

/* ═══════════════════════════════════════
   MOBILE NAV — using ID for high specificity
   to beat Bootstrap's display:block on nav
   ═══════════════════════════════════════ */

/* FORCE HIDE on desktop — ID beats Bootstrap */
#gnav-mobile-nav {
  display: none !important;
  background: #fff;
  border-top: 1px solid #eeeeee;
  width: 100%;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 9997;
}

/* Show only when .gnav-open is added by JS */
#gnav-mobile-nav.gnav-open {
  display: block !important;
}

/* ═══════════════════════════════════════
   MOBILE — max-width: 768px
   ═══════════════════════════════════════ */

@media (max-width: 768px) {

  .gnav-hamburger   { display: flex !important; }
  .gnav-mobile-cta  { display: inline-block !important; }
  .gnav-links       { display: none !important; }
  .gnav-cta         { display: none !important; }
  .gnav-logo-link   { margin-right: 0; }
  .gnav-logo-garrison, .gnav-logo-ne { font-size: 20px; }

  /* Lock body scroll when mobile nav open */
  body.gnav-nav-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
  }

  /* Hide desktop mega on mobile */
  .gnav-mega { display: none !important; }

}

/* ── Mobile accordion items ── */
.gnav-mob-item {
  border-bottom: 1px solid #f0f0f0;
}

.gnav-mob-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 20px;
  font-family: 'GoogleSansMedium', Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #151515;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  letter-spacing: 0.3px;
}

.gnav-mob-trigger a {
  color: inherit;
  flex: 1;
}

.gnav-mob-arrow {
  font-size: 10px;
  color: #999;
  transition: transform 0.25s;
  margin-left: 8px;
  flex-shrink: 0;
}

.gnav-mob-item.gnav-open .gnav-mob-arrow {
  transform: rotate(180deg);
}

.gnav-mob-link {
  display: block;
  padding: 14px 20px;
  font-family: 'GoogleSansMedium', Arial, sans-serif;
  font-size: 14px;
  color: #151515;
  border-bottom: 1px solid #f0f0f0;
}

/* Accordion panel — hidden by default */
.gnav-mob-panel {
  display: none !important;
  background: #f8f9fb;
}

.gnav-mob-item.gnav-open .gnav-mob-panel {
  display: block !important;
}

.gnav-mob-cat-head {
  font-family: 'GoogleSansBold', Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #2881d3;
  padding: 14px 24px 6px;
}

.gnav-mob-panel-link {
  display: block !important;
  font-family: 'GoogleSans', Arial, sans-serif;
  font-size: 13px;
  color: #444;
  padding: 9px 24px 9px 28px;
  border-bottom: 1px solid #eeeeee;
  transition: color 0.15s, background 0.15s;
}

.gnav-mob-panel-link:last-child {
  border-bottom: none;
}

.gnav-mob-panel-link:hover {
  color: #2881d3;
  background: #f0f7ff;
}

.gnav-mob-cta-wrap {
  padding: 16px 20px;
  border-top: 1px solid #eeeeee;
}

.gnav-mob-cta-btn {
  display: block !important;
  text-align: center;
  font-family: 'GoogleSansBold', Arial, sans-serif;
  font-size: 14px;
  color: #fff !important;
  background: linear-gradient(100deg, #51b7eb, #2881d3);
  border-radius: 20px;
  padding: 12px 24px;
  font-weight: 600;
}
