/* Header: tier 1 (logo, contact, CTA), tier 2 navy services bar, mobile chips + menu. */
.gs-skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100000;
  padding: 10px 16px;
  background: var(--gs-navy);
  color: var(--gs-white);
  font: 700 15px/1 var(--gs-font);
  border-radius: var(--gs-radius);
  text-decoration: none;
}
.gs-skip:focus { top: 12px; }

/* No z-index here: a stacking context would trap the mobile menu below other fixed layers. */
.gs-header { position: relative; background: var(--gs-white); }

.gs-top .gs-container {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 36px);
  min-height: 112px;
}
.gs-logo { display: inline-flex; margin-right: auto; }
.gs-logo img { width: auto; height: 60px; display: block; }

.gs-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gs-body);
  font: 400 0.875rem/1.35 var(--gs-font-info);
  text-decoration: none;
  white-space: nowrap;
}
.gs-contact__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gs-mist);
  color: var(--gs-navy);
}
.gs-contact__icon .gs-icon { width: 18px; height: 18px; }
.gs-contact__text b { display: block; color: var(--gs-navy); font-size: 0.9375rem; font-weight: 500; }
.gs-contact__text a { color: var(--gs-body); text-decoration: none; }
.gs-contact__text a:hover, .gs-contact--mail:hover { color: var(--gs-navy); text-decoration: underline; }
.gs-dot { margin: 0 6px; color: var(--gs-muted); }

.gs-links { display: flex; gap: 18px; font-size: 0.9375rem; font-weight: 600; white-space: nowrap; }
.gs-links a { color: var(--gs-navy); text-decoration: none; }
.gs-links a:hover { text-decoration: underline; text-underline-offset: 4px; }

.gs-iconbtn {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--gs-mist);
  color: var(--gs-navy);
  cursor: pointer;
}

/* Tier 2: services bar. The wrapper keeps its space when the bar becomes fixed. */
.gs-services-wrap {
  position: relative;
  z-index: 950;
  height: 64px;
  margin-bottom: -32px;
  padding-inline: var(--gs-gutter);
}
.gs-services {
  max-width: var(--gs-container);
  height: 64px;
  margin-inline: auto;
  border-radius: var(--gs-radius-lg);
  background: var(--gs-navy);
  color: var(--gs-white);
  box-shadow: var(--gs-shadow);
}
.gs-services__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding-inline: 20px;
  gap: 12px;
}
.gs-services__logo, .gs-services__cta { display: none; }
.gs-services__list { display: flex; align-items: center; justify-content: center; gap: clamp(4px, 1.4vw, 20px); margin: 0; padding: 0; list-style: none; }
.gs-services__entry { position: relative; }
.gs-services__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 64px;
  padding: 0 10px;
  border: 0;
  background: none;
  color: var(--gs-white);
  font: 600 0.875rem/1 var(--gs-font);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: inset 0 -3px 0 transparent;
}
.gs-services__item:hover,
.gs-services__item[aria-expanded="true"] { box-shadow: inset 0 -3px 0 var(--gs-sun); }
.gs-services__chev { width: 16px; height: 16px; opacity: 0.8; transition: transform 0.15s; }
.gs-services__item[aria-expanded="true"] .gs-services__chev { transform: rotate(180deg); }

.gs-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 32px;
  min-width: 300px;
  padding: 22px 26px;
  border-radius: var(--gs-radius-lg);
  background: var(--gs-white);
  box-shadow: 0 24px 48px rgba(8, 62, 95, 0.18);
  color: var(--gs-body);
}
.gs-panel[hidden] { display: none; }
.gs-panel__col { min-width: 230px; }
.gs-panel__title { margin: 0 0 8px; color: var(--gs-orange-text); font-size: 0.8125rem; font-weight: 700; }
.gs-panel ul { margin: 0; padding: 0; list-style: none; }
.gs-panel a { display: block; padding: 7px 0; color: var(--gs-navy); font-weight: 600; font-size: 0.9375rem; text-decoration: none; }
.gs-panel a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Sticky state */
body.gs-stuck .gs-services {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: none;
  border-radius: 0;
}
body.admin-bar.gs-stuck .gs-services { top: 32px; }
@media (max-width: 782px) { body.admin-bar.gs-stuck .gs-services { top: 46px; } }
body.gs-stuck .gs-services__inner { max-width: calc(var(--gs-container) + 40px); margin-inline: auto; justify-content: space-between; }
body.gs-stuck .gs-services__logo { display: inline-flex; }
body.gs-stuck .gs-services__logo img { height: 40px; width: auto; }
body.gs-stuck .gs-services__cta { display: inline-flex; min-height: 44px; }

/* Mobile */
.gs-chips { display: none; }
.gs-mobile-menu[hidden] { display: none; }

@media (max-width: 1199px) {
  .gs-links { display: none; }
}

@media (max-width: 991px) {
  .gs-top .gs-container { min-height: 68px; gap: 10px; }
  .gs-logo img { height: 42px; }
  .gs-contact, .gs-top__cta, .gs-services-wrap { display: none; }
  .gs-iconbtn { display: grid; }

  .gs-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px var(--gs-gutter);
    background: var(--gs-navy);
    scrollbar-width: none;
  }
  .gs-chips::-webkit-scrollbar { display: none; }
  .gs-chip {
    flex: none;
    min-height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: var(--gs-radius);
    background: rgba(255, 255, 255, 0.12);
    color: var(--gs-white);
    font: 700 0.875rem/1 var(--gs-font);
    cursor: pointer;
  }

  .gs-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: flex;
    flex-direction: column;
    background: var(--gs-white);
    overflow-y: auto;
  }
  .gs-mobile-menu__head { display: flex; align-items: center; justify-content: space-between; padding: 12px var(--gs-gutter); border-bottom: 1px solid var(--gs-line); }
  .gs-mobile-menu__head .gs-logo img { height: 40px; }
  .gs-mobile-menu__body { padding: 8px var(--gs-gutter) 32px; }
  .gs-acc { border-bottom: 1px solid var(--gs-line); }
  .gs-acc__btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 56px;
    border: 0;
    background: none;
    color: var(--gs-navy);
    font: 700 1.0625rem/1.2 var(--gs-font);
    text-align: left;
    cursor: pointer;
  }
  .gs-acc__btn span { flex: 1; }
  .gs-acc__btn[aria-expanded="true"] .gs-acc__chev { transform: rotate(180deg); }
  .gs-acc__list { margin: 0 0 12px; padding: 0 0 0 36px; list-style: none; }
  .gs-acc__list a { display: block; padding: 10px 0; color: var(--gs-body); text-decoration: none; }
  .gs-mobile-menu__links { display: grid; margin: 16px 0; }
  .gs-mobile-menu__links a { padding: 12px 0; color: var(--gs-navy); font-weight: 600; text-decoration: none; }
  .gs-mobile-menu__cta { width: 100%; }
  .gs-mobile-menu__phones { display: grid; gap: 8px; margin-top: 16px; }
  .gs-mobile-menu__phones a { color: var(--gs-navy); font-weight: 700; text-decoration: none; }
  body.gs-menu-open { overflow: hidden; }
}
