/* Shared Blues Hwy Benefits navigation, footer and mobile actions. */
:root {
  --chrome-navy: #031732;
  --chrome-gold: #d4a017;
  --chrome-gold-text: #8a6608;
  --chrome-cream: #f7f3ec;
  --chrome-white: #ffffff;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  padding: 0.8rem 1.4rem;
  background: var(--chrome-navy);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus { left: 0; }

.site-header {
  position: relative;
  z-index: 1000;
  width: 100%;
  background: var(--chrome-white);
  border-bottom: 3px solid var(--chrome-gold);
  color: var(--chrome-navy);
}

.header-inner {
  width: min(100% - 2rem, 90rem);
  min-height: 6rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  color: inherit;
}

.brand-logo {
  display: block;
  width: auto;
  height: 5.25rem;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.nav-list,
.nav-dropdown {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-list > li > a,
.nav-group-toggle {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--chrome-navy);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.1;
  white-space: nowrap;
  text-decoration: none;
  padding: 0.7rem 0.72rem;
  cursor: pointer;
}

.nav-list > li > a:hover,
.nav-list > li > a:focus-visible,
.nav-group-toggle:hover,
.nav-group-toggle:focus-visible,
.nav-group-toggle.active,
.nav-list a.active {
  color: var(--chrome-navy);
  background: rgba(212, 160, 23, 0.16);
}

.nav-group {
  position: relative;
}

.nav-group-toggle::after {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  margin-left: 0.48rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.12rem) rotate(45deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  z-index: 20;
  width: max-content;
  min-width: 15.5rem;
  max-width: 22rem;
  padding: 0.55rem;
  border: 1px solid rgba(3, 23, 50, 0.16);
  border-radius: 0.8rem;
  background: var(--chrome-white);
  box-shadow: 0 18px 45px rgba(3, 23, 50, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.35rem);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.nav-group:last-of-type .nav-dropdown {
  left: auto;
  right: 0;
}

.nav-group:hover > .nav-dropdown,
.nav-group.open > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-group.escape-closed > .nav-dropdown {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-0.35rem);
}

.nav-dropdown a {
  display: block;
  border-radius: 0.55rem;
  color: var(--chrome-navy);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.3;
  padding: 0.68rem 0.75rem;
  text-decoration: none;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible,
.nav-dropdown a.active {
  color: var(--chrome-navy);
  background: rgba(212, 160, 23, 0.16);
}

.nav-phone {
  font-variant-numeric: tabular-nums;
}

.nav-list > li > .nav-cta {
  min-height: 2.85rem;
  margin-left: 0.2rem;
  padding-inline: 1rem;
  background: var(--chrome-gold);
  color: var(--chrome-navy);
}

.nav-list > li > .nav-cta:hover,
.nav-list > li > .nav-cta:focus-visible {
  background: #e1b22b;
  color: var(--chrome-navy);
}

.nav-toggle,
.mobile-phone {
  display: none;
}

.site-footer {
  position: relative;
  z-index: 5;
  background: var(--chrome-navy);
  color: var(--chrome-cream);
}

.site-footer .wrap {
  width: min(100% - 2rem, 80rem);
  margin-inline: auto;
}

.footer-horizon {
  height: 4px;
  background: var(--chrome-gold);
}

.footer-grid-expanded {
  display: grid;
  grid-template-columns: 1.25fr repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  padding-block: 2.6rem 2rem;
}

.footer-brand .footer-logo {
  display: block;
  width: auto;
  height: 6.5rem;
  margin: 0 0 0.8rem;
  object-fit: contain;
}

.footer-grid-expanded .footer-brand {
  display: block !important;
  width: auto !important;
  min-width: 0;
}

.footer-brand p,
.footer-brand address {
  margin: 0 0 0.8rem;
}

.footer-brand address {
  color: var(--chrome-cream);
  font-style: normal;
  line-height: 1.65;
}

.site-footer a {
  color: var(--chrome-white);
  text-underline-offset: 0.2em;
}

.site-footer p a,
.site-footer address a {
  text-decoration: underline;
  text-decoration-thickness: 0.1em;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #f4cc75;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

.footer-nav ul,
.footer-bottom nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav strong {
  color: #f4cc75;
  margin-bottom: 0.25rem;
}

.footer-nav a {
  font-size: 0.92rem;
  line-height: 1.3;
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 1px solid rgba(247, 243, 236, 0.2);
  padding-block: 1rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.86rem;
}

.footer-bottom nav {
  display: block;
}

.footer-bottom nav ul {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.8rem;
}

.footer-bottom a {
  font-size: 0.86rem;
}

.footer-disclosures {
  border-top: 1px solid rgba(247, 243, 236, 0.2);
  padding-block: 1rem 1.5rem;
}

.footer-disclosures p {
  max-width: 78rem;
  margin: 0 0 0.7rem;
  color: var(--chrome-cream);
  font-size: 0.78rem;
  line-height: 1.55;
}

.footer-disclosures p:last-child {
  margin-bottom: 0;
}

.mobile-action-bar {
  display: none;
}

.mobile-action-number {
  display: none;
}

/* Keep the established 1280px desktop breakpoint without crowding the new
   Resources group. The same phone action remains in the page, footer and CTA. */
@media (min-width: 1280px) and (max-width: 1319px) {
  .nav-list > li > .nav-phone { display: none; }
}

@media (max-width: 1279px) {
  .header-inner {
    min-height: 5.5rem;
  }

  .brand-logo {
    height: 4.5rem;
  }

  .site-nav {
    gap: 0.55rem;
  }

  .nav-toggle,
  .mobile-phone {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(3, 23, 50, 0.25);
    border-radius: 999px;
    background: var(--chrome-white);
    color: var(--chrome-navy);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
    padding: 0.65rem 0.9rem;
  }

  .nav-list {
    position: absolute;
    top: calc(100% + 3px);
    left: 0;
    right: 0;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    display: none;
    align-items: stretch;
    gap: 0;
    border-bottom: 3px solid var(--chrome-gold);
    background: var(--chrome-white);
    box-shadow: 0 18px 40px rgba(3, 23, 50, 0.2);
    padding: 0.75rem 1rem 1.25rem;
  }

  .nav-list.open {
    display: block;
  }

  .nav-list > li > a,
  .nav-group-toggle {
    width: 100%;
    justify-content: flex-start;
    border-radius: 0.5rem;
    padding: 0.8rem;
  }

  .nav-group-toggle::after {
    margin-left: auto;
  }

  .nav-dropdown {
    position: static;
    width: 100%;
    max-width: none;
    display: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 0 0 0.45rem 0.75rem;
  }

  .nav-group.open > .nav-dropdown {
    display: block;
  }

  .nav-group:hover > .nav-dropdown:not(:focus-within) {
    display: none;
  }

  .nav-group.open:hover > .nav-dropdown {
    display: block;
  }

  .nav-dropdown a {
    padding: 0.66rem 0.8rem;
  }

  .nav-list > li > .nav-cta {
    justify-content: center;
    margin: 0.5rem 0 0;
  }

  .footer-grid-expanded {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: 4rem;
  }

  .header-inner {
    width: min(100% - 1rem, 90rem);
    min-height: 5rem;
    gap: 0.45rem;
  }

  .brand-logo {
    max-height: 4.5rem;
    height: 4.5rem;
  }

  .mobile-phone,
  .nav-toggle {
    min-height: 2.65rem;
    padding-inline: 0.72rem;
  }

  .footer-grid-expanded {
    grid-template-columns: 1fr;
    gap: 1.65rem;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-bottom nav {
    justify-content: flex-start;
  }

  .mobile-action-bar {
    position: fixed;
    z-index: 1200;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 1px;
    border-top: 2px solid var(--chrome-gold);
    background: var(--chrome-navy);
    box-shadow: 0 -8px 25px rgba(3, 23, 50, 0.24);
    transition: transform 0.2s ease;
  }

  .mobile-action-bar a {
    min-height: 3.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--chrome-navy);
    color: var(--chrome-white);
    font-weight: 850;
    text-decoration: none;
  }

  .mobile-action-bar a:last-child {
    background: var(--chrome-gold);
    color: var(--chrome-navy);
  }

  @media (min-width: 401px) {
    .mobile-action-call { display: none; }
    .mobile-action-number { display: inline; }
  }

  body.form-in-view .mobile-action-bar,
  body.nav-open .mobile-action-bar {
    transform: translateY(110%);
  }
  body.nav-open .mobile-action-bar {
    visibility: hidden;
    pointer-events: none;
  }
  body.income-journey-page {
    padding-bottom: 0;
  }
  body.income-journey-page .mobile-action-bar {
    display: none;
  }
}

@media (max-width: 460px) {
  .mobile-phone-number { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-dropdown,
  .mobile-action-bar {
    transition: none;
  }
}
