/* ============================================================
   GOLDPHISH — HEADER
   ============================================================
   Announcement bar + sticky nav with "What We Do" dropdown,
   gold pill CTA, and mobile hamburger / slide-in menu.

   Breakpoints match the rest of the site:
   Mobile:  ≤767px
   Tablet:  768px–1024px
   Desktop: >1024px
   ============================================================ */

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */

.gp-announcement-bar {
  background-color: var(--color-blue-bar);
  color: var(--color-white);
  text-align: center;
  padding: 10px var(--space-4);
  font-family: var(--font-nav);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: 0.01em;
  position: relative;
  z-index: 1000;
}

.gp-announcement-bar a {
  color: var(--color-gold);
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: var(--space-2);
  transition: color var(--transition-fast);
}

.gp-announcement-bar a:hover {
  color: var(--color-gold-light);
}


/* ============================================================
   SITE HEADER / STICKY NAV
   ============================================================ */

.gp-site-header {
  background: var(--color-white);
  position: sticky;
  top: 0;
  z-index: 999;
  transition: box-shadow var(--transition-base);
}

/* Subtle shadow added by header.js once the page scrolls */
.gp-site-header.gp-is-scrolled {
  box-shadow: var(--shadow-card);
}

.gp-nav-inner {
  max-width: 1200px;
  min-height: 50px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  padding: var(--space-4) var(--space-8);
  border-bottom: 0.5px solid #0A4197;
}

/* ── Logo ───────────────────────────────────────────────── */

.gp-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.gp-logo-text {
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--color-navy);
}


/* ============================================================
   DESKTOP NAV MENU
   ============================================================ */

.gp-primary-nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.gp-nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gp-nav-item {
  position: relative;
}

.gp-nav-link {
  display: inline-flex;
  align-items: center;
  font-family: 'Inter', var(--font-nav);
  font-weight: 600;
  font-size: 14px;
  color: #00081A;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.gp-nav-link:hover {
  color: var(--color-gold);
}

/* Dropdown toggle — decorative chevron on desktop (hover opens the
   panel), the click target that drives the accordion on mobile */
.gp-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.gp-chevron {
  display: inline-block;
  font-size: 12px;
  line-height: 1;
  margin-left: 6px;
  color: #00081A;
  transition: transform 0.2s ease;
}

.gp-has-dropdown.gp-dropdown-open .gp-chevron {
  transform: rotate(180deg);
}

/* Desktop dropdown panel ("What We Do") — hover-driven positioning
   below is scoped to desktop only (min-width: 1025px) so it can
   never fire on mobile, where the accordion (.gp-dropdown-open)
   handles opening/closing instead. */
.gp-dropdown {
  list-style: none;
  margin: 0;
  padding: var(--space-3) 0;
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  z-index: 10;
}

@media (min-width: 1025px) {
  .gp-has-dropdown:hover .gp-chevron,
  .gp-has-dropdown:focus-within .gp-chevron {
    transform: rotate(180deg);
  }

  .gp-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 8px);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
  }

  .gp-has-dropdown:hover > .gp-dropdown,
  .gp-has-dropdown:focus-within > .gp-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }
}

.gp-dropdown .gp-nav-link {
  display: block;
  width: 100%;
  padding: var(--space-2) var(--space-6);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-navy);
  letter-spacing: normal;
  text-transform: none;
}

.gp-dropdown .gp-nav-link:hover {
  color: var(--color-gold);
  background: var(--color-off-white);
}

/* ── Gold pill CTA ──────────────────────────────────────── */

.gp-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  min-width: 200px;
  background: #F5A524;
  color: #00081A !important;
  font-family: 'Inter', var(--font-nav);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0 28px;
  border-radius: 50px;
  transition: background var(--transition-base), transform var(--transition-fast);
}

.gp-nav-cta:hover {
  background: var(--color-gold-light);
  color: #00081A !important;
  transform: translateY(-2px);
}

.gp-mobile-cta {
  display: none;
}


/* ============================================================
   HAMBURGER (mobile trigger)
   ============================================================ */

.gp-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 25px;
  height: 25px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.gp-hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-navy);
  border-radius: 1px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Animate into an "X" when the mobile menu is open */
.gp-hamburger[aria-expanded="true"] .gp-hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.gp-hamburger[aria-expanded="true"] .gp-hamburger-line:nth-child(2) {
  opacity: 0;
}

.gp-hamburger[aria-expanded="true"] .gp-hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile panel close button (X) ──────────────────────── */

.gp-mobile-close {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #00081A;
  font-size: 20px;
  line-height: 1;
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
}

/* ── Mobile panel logo ──────────────────────────────────── */

.gp-mobile-logo {
  display: none;
  margin-bottom: var(--space-6);
}

.gp-mobile-logo-text {
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--color-navy);
}


/* ============================================================
   MOBILE OVERLAY
   ============================================================ */

.gp-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 8, 26, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base);
  z-index: 1000;
}

.gp-mobile-overlay.gp-is-visible {
  opacity: 1;
  visibility: visible;
}


/* ============================================================
   RESPONSIVE — TABLET / MOBILE (≤1024px)
   ============================================================ */

@media (max-width: 1024px) {

  .gp-hamburger {
    display: flex;
  }

  .gp-desktop-cta {
    display: none;
  }

  /* The primary nav becomes a fixed, off-canvas slide-in panel.
     z-index sits above the announcement bar (1000) so the close
     button and logo are never hidden behind it. */
  .gp-primary-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: var(--color-white);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 80px var(--space-6) var(--space-8);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    box-shadow: var(--shadow-dark);
    overflow-y: auto;
    z-index: 1001;
  }

  .gp-primary-nav.gp-is-open {
    transform: translateX(0);
  }

  .gp-mobile-close {
    display: flex;
  }

  .gp-mobile-logo {
    display: block;
  }

  .gp-nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .gp-nav-item {
    width: 100%;
    border-bottom: 1px solid var(--color-border-light);
  }

  /* Last top-level item (e.g. Contact) and last item inside the
     "What We Do" dropdown shouldn't carry their own border — it
     either trails the panel or doubles up with the parent item's
     border right where the dropdown ends. */
  .gp-nav-menu > .gp-nav-item:last-child,
  .gp-dropdown .gp-nav-item:last-child {
    border-bottom: none;
  }

  .gp-nav-link {
    width: 100%;
    font-weight: 700;
    font-size: 15px;
    color: #00081A;
    padding: 20px 0;
    justify-content: space-between;
  }

  .gp-has-dropdown {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .gp-has-dropdown .gp-nav-link {
    flex: 1;
  }

  /* Accordion — "What We Do" expands in place instead of a popover.
     No absolute positioning here — the panel must stay in normal
     flow at full width or it renders off-screen on small viewports. */
  .gp-dropdown {
    display: none;
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    opacity: 1;
    visibility: visible;
    border: none;
    box-shadow: none;
    padding: 0 0 var(--space-2) 16px;
  }

  .gp-has-dropdown.gp-dropdown-open .gp-dropdown {
    display: block;
  }

  .gp-dropdown .gp-nav-link {
    font-weight: 400;
    font-size: 14px;
    color: #00081A;
    padding: 10px 0;
  }

  .gp-mobile-cta {
    display: flex;
    margin-top: var(--space-6);
    width: 375px;
    max-width: 100%;
    height: 50px;
  }

  /* Mobile panel is always light. Match the desktop dark-bar
     selector shape (.gp-nav-menu > .gp-nav-item > .gp-nav-link)
     but scope it to the panel and bump specificity so it wins
     at mobile widths. */
  .gp-header--dark .gp-primary-nav .gp-nav-menu > .gp-nav-item > .gp-nav-link,
  .gp-header--dark .gp-primary-nav .gp-dropdown .gp-nav-link {
    color: var(--color-navy);
  }

  .gp-header--dark .gp-primary-nav .gp-chevron {
    color: var(--color-navy);
  }

  /* Hide the announcement bar while the mobile menu is open */
  body.gp-menu-open .gp-announcement-bar {
    display: none;
  }
}


/* ============================================================
   RESPONSIVE — MOBILE (≤767px)
   ============================================================ */

@media (max-width: 767px) {

  .gp-announcement-bar {
    font-size: 12px;
    padding: 8px 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .gp-nav-inner {
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    border-bottom: 0.5px solid #0A4197;
  }
}

/* ============================================================
   DARK NAVIGATION SCHEME (toggle-controlled)
   Applies when a page has "Use dark navigation bar?" ON.
   Pages: Home, About, Technology.
   ============================================================ */

.gp-site-header.gp-header--dark {
  background: var(--color-navy);
}

.gp-header--dark .gp-nav-inner {
  border-bottom: none;
}

.gp-header--dark .gp-nav-menu > .gp-nav-item > .gp-nav-link,
.gp-header--dark .gp-logo-text {
  color: var(--color-white);
}

.gp-header--dark .gp-nav-menu > .gp-nav-item > .gp-nav-link:hover {
  color: var(--color-gold);
}

.gp-header--dark .gp-chevron {
  color: var(--color-white);
}

/* Chevron white + bolder on the desktop dark nav bar */
.gp-header--dark .gp-nav-menu > .gp-nav-item > .gp-dropdown-toggle .gp-chevron {
  color: var(--color-white);
  font-weight: var(--weight-black);
}

/* Hamburger lines to white on dark nav */
.gp-header--dark .gp-hamburger-line {
  background: var(--color-white);
}

/* The gold CTA button stays gold on both schemes — no override needed. */

/* Mobile slide-in panel stays light (white bg) even on dark nav —
   the panel is a separate overlay surface. But the elements INSIDE
   it that inherit from the dark scheme need explicit resets. */

/* Mobile panel nav links and close button stay navy on the white
   panel, regardless of the dark desktop nav scheme. */
.gp-header--dark .gp-primary-nav .gp-nav-link,
.gp-header--dark .gp-mobile-close,
.gp-header--dark .gp-primary-nav .gp-chevron {
  color: var(--color-navy);
}
