/*
 * ┌─────────────────────────────────────────────────────────────┐
 * │ PHOENIX GROWTH COLLECTIVE — GLOBAL STICKY NAVIGATION        │
 * │ ⚠️ LOCKED COMPONENT                                        │
 * │                                                             │
 * │ This file controls the navigation bar across ALL pages      │
 * │ of the site. Modifying it affects every page globally.      │
 * └─────────────────────────────────────────────────────────────┘
 */

/* ── Reset & base ────────────────────────────────────────────── */
#pgc-nav * { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Sticky wrapper ────────────────────────────────────────────── */
#pgc-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  height: 96px;
  background: rgba(6, 15, 41, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(196, 154, 26, 0.18);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

/* ── Inner layout ─────────────────────────────────────────────── */
.pgc-nav-inner {
  display: flex;
  align-items: center;
  gap: 0;
  height: 96px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Logo ──────────────────────────────────────────────────────── */
.pgc-nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 32px;
  text-decoration: none;
  min-height: 48px;
}
.pgc-nav-logo img {
  height: 82px;
  width: auto;
  display: block;
}

/* ── Nav links container ──────────────────────────────────────── */
.pgc-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
  list-style: none;
}

/* ── Individual nav items ─────────────────────────────────────── */
.pgc-nav-links > li {
  position: relative;
}

#pgc-nav .pgc-nav-links > li > a,
#pgc-nav .pgc-nav-links > li > button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 13px;
  min-height: 44px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(237, 234, 227, 0.88) !important;
  text-decoration: none !important;
  -webkit-text-fill-color: rgba(237, 234, 227, 0.88) !important;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
  font-family: inherit;
  line-height: 1;
}

#pgc-nav .pgc-nav-links > li > a:hover,
#pgc-nav .pgc-nav-links > li > button:hover,
#pgc-nav .pgc-nav-links > li.open > button {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.07);
}

/* ── Dropdown chevron ─────────────────────────────────────────── */
.pgc-chev {
  width: 12px;
  height: 12px;
  opacity: 0.6;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.pgc-nav-links > li.open .pgc-chev {
  transform: rotate(180deg);
  opacity: 1;
}

/* ── Desktop dropdown menus ───────────────────────────────────── */
.pgc-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #0a1838;
  border: 1px solid rgba(196, 154, 26, 0.22);
  border-radius: 12px;
  padding: 8px;
  min-width: 220px;
  box-shadow: 0 20px 48px rgba(0,0,0,0.45), 0 4px 12px rgba(0,0,0,0.25);
  list-style: none;
  z-index: 100;
}
.pgc-dropdown.wide {
  min-width: 580px;
  display: none;
  left: 0;
  transform: none;
}
.pgc-dropdown.wide .pgc-dropdown-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 16px;
}
li.open > .pgc-dropdown { display: block; }
li.open > .pgc-dropdown.wide { display: block; }

.pgc-dropdown a {
  display: block;
  padding: 9px 14px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(237, 234, 227, 0.78);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}
.pgc-dropdown a:hover {
  background: rgba(196, 154, 26, 0.12);
  color: #fff;
}

.pgc-dropdown-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(196, 154, 26, 0.7);
  padding: 10px 14px 4px;
}

/* ── CTA button (desktop) ─────────────────────────────────────── */
.pgc-nav-cta {
  margin-left: auto;
  flex-shrink: 0;
  margin-right: 48px;
}
@keyframes pgc-pulse {
  0%   { box-shadow: 0 2px 8px rgba(196,154,26,0.35), 0 0 0 0 rgba(196,154,26,0.55); }
  60%  { box-shadow: 0 2px 8px rgba(196,154,26,0.35), 0 0 0 10px rgba(196,154,26,0); }
  100% { box-shadow: 0 2px 8px rgba(196,154,26,0.35), 0 0 0 0 rgba(196,154,26,0); }
}
.pgc-nav-cta a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 20px 64px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #0a1838;
  background: linear-gradient(135deg, #d4aa2a 0%, #c49a1a 100%);
  border-radius: 7px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(196,154,26,0.35);
  animation: pgc-pulse 2s ease-out infinite;
  transition: opacity 0.15s, transform 0.12s;
}
.pgc-nav-cta a:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  animation: none;
  box-shadow: 0 6px 20px rgba(196,154,26,0.5);
}

/* ── Body offset ──────────────────────────────────────────────── */
body.pgc-has-nav { padding-top: 96px; }

/* ── Hamburger ────────────────────────────────────────────────── */
.pgc-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  flex-shrink: 0;
  z-index: 10001;
  position: relative;
  min-width: 48px;
  min-height: 48px;
}
.pgc-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(237,234,227,0.85);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.pgc-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pgc-hamburger.open span:nth-child(2) { opacity: 0; }
.pgc-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile menu sheet ────────────────────────────────────────── */
.pgc-mob-sheet {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background: #0a1838;
  border-top: 1px solid rgba(196,154,26,0.15);
  z-index: 10000;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.pgc-mob-sheet--open {
  display: block !important;
}

/* Menu body lock removed - handled via inline style */

/* ── Mobile nav inner ─────────────────────────────────────────── */
.pgc-mob-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 20px 32px;
  gap: 2px;
  min-height: 100%;
  text-align: center;
}

/* ── Mobile top-level links ───────────────────────────────────── */
.pgc-mob-link {
  display: block;
  width: 100%;
  max-width: 320px;
  padding: 13px 16px;
  font-size: 16px;
  font-weight: 600;
  color: rgba(237,234,227,0.9);
  text-decoration: none;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.15s;
}
.pgc-mob-link:hover { color: #fff; }

/* ── Mobile accordion items ───────────────────────────────────── */
.pgc-mob-item {
  width: 100%;
  max-width: 320px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.pgc-mob-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 16px;
  font-size: 16px;
  font-weight: 600;
  color: rgba(237,234,227,0.9);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
}
.pgc-mob-toggle:hover { color: #fff; }
.pgc-mob-toggle .pgc-chev {
  transition: transform 0.2s;
}
.pgc-mob-item--open .pgc-mob-toggle .pgc-chev {
  transform: rotate(180deg);
}

/* ── Mobile sub-items (Services, Locations) ───────────────────── */
.pgc-mob-sub {
  padding: 4px 0 8px;
}
.pgc-mob-sub-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(196,154,26,0.7);
  padding: 10px 0 4px;
  text-align: center;
}
.pgc-mob-sub-link {
  display: block;
  padding: 9px 16px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(237,234,227,0.75);
  text-decoration: none;
  text-align: center;
  transition: color 0.12s;
}
.pgc-mob-sub-link:hover { color: #fff; }

/* ── Mobile Industries nested accordion ───────────────────────── */
.pgc-mob-industries-body {
  padding: 4px 0 8px;
}
.pgc-mob-cat {
  margin-bottom: 4px;
}
.pgc-mob-cat-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(196,154,26,0.9);
  background: rgba(196,154,26,0.06);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  letter-spacing: 0.02em;
}
.pgc-mob-cat-toggle:hover { color: #d4aa2a; }
.pgc-mob-cat--open .pgc-mob-cat-toggle .pgc-chev {
  transform: rotate(180deg);
}
.pgc-mob-cat-items {
  padding: 4px 0;
}
.pgc-mob-cat-link {
  display: block;
  padding: 8px 16px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(237,234,227,0.72);
  text-decoration: none;
  text-align: center;
  transition: color 0.12s;
}
.pgc-mob-cat-link:hover { color: #fff; }

/* ── Mobile Get Started button ────────────────────────────────── */
.pgc-mob-cta {
  margin-top: 20px;
  width: 100%;
  max-width: 320px;
}
.pgc-mob-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 15px 24px;
  font-size: 16px;
  font-weight: 800;
  color: #0a1838;
  background: linear-gradient(135deg, #d4aa2a 0%, #c49a1a 100%);
  border-radius: 7px;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(196,154,26,0.4);
  letter-spacing: 0.02em;
}
.pgc-mob-cta-btn:hover {
  opacity: 0.92;
}

/* ── Mobile breakpoint ────────────────────────────────────────── */
@media (max-width: 900px) {
  #pgc-nav {
    height: 72px;
  }

  body.pgc-has-nav { padding-top: 72px; }

  .pgc-nav-inner {
    height: 72px;
    padding: 0 16px;
  }

  .pgc-nav-logo { margin-right: 0; }

  .pgc-nav-logo img {
    height: 54px;
  }

  /* Show hamburger, push to far right */
  .pgc-hamburger {
    display: flex !important;
    margin-left: auto;
    order: 99;
  }

  /* Hide desktop nav and CTA */
  .pgc-nav-links {
    display: none !important;
  }
  .pgc-nav-cta {
    display: none !important;
  }

  /* Mobile sheet top position */
  .pgc-mob-sheet {
    top: 72px;
  }
}

@media (min-width: 901px) {
  .pgc-mob-sheet { display: none !important; }
  .pgc-hamburger { display: none !important; }
}