/* ── Global styles — shared across every page ── */
:root {
  --color-primary: #1948a4;
  --color-dark: #1a2744;
  --color-ink: #0f172a;
  --color-muted: #475569;
  --color-surface: #f8fafc;
  --color-border: #e2e8f0;
  --color-gold: #9a7d4a;

  color-scheme: light;
  color: #0f172a;
  background: #f8fafc;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: #f8fafc;
  color: #0f172a;
}

a {
  color: #1948a4;
  text-decoration: none;
}

a:hover,
button:hover {
  text-decoration: underline;
}

#page-container {
  padding-top: 80px;
  transition: padding-top 300ms ease;
}

.container {
  width: min(1200px, 100% - 40px);
  margin: 0 auto;
}

/* ── Shared page hero (all interior pages) ── */
.page-hero {
  background: #1a2744;
  padding: 4rem 0 3.5rem;
  text-align: center;
  color: #ffffff;
}

.page-hero-eyebrow {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a0b4d4;
  margin: 0 0 0.75rem;
}

.page-hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.page-hero-subtitle {
  font-size: 1rem;
  color: #c8c2b8;
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .page-hero {
    padding: 2.5rem 0 2rem;
  }

  .page-hero-title {
    font-size: 1.75rem;
  }
}

/* ── Header ── */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  z-index: 1000;
  box-shadow: rgba(0, 0, 0, 0.15) 0px 1px 3px 0px;
}

.header-inner {
  width: min(1200px, 100% - 40px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: height 300ms ease;
}

#main-header.scrolled .header-inner {
  height: 54px;
}

#page-container.header-scrolled {
  padding-top: 54px;
}

#logo {
  max-height: 50px;
  width: auto;
  display: block;
  transition: max-height 300ms ease;
}

#main-header.scrolled #logo {
  max-height: 34px;
}

#top-menu > li > a {
  transition:
    color 180ms ease,
    line-height 300ms ease;
}

.header-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding-left: 1rem;
}

#top-menu-nav {
  display: flex;
  align-items: center;
}

#top-menu {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

#top-menu > li {
  position: relative;
  transition: box-shadow 180ms ease;
}

#top-menu > li > a {
  display: inline-block;
  padding: 0 1.1rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3d3830;
  text-decoration: none;
  line-height: 80px;
}

#top-menu > li:not(.current-menu-item):not(.menu-item-has-children):hover {
  box-shadow: inset 0 -3px 0 rgba(25, 72, 164, 0.35);
}

@media (min-width: 901px) {
  #main-header.scrolled #top-menu > li > a {
    line-height: 54px;
  }
}

#top-menu > li > a:hover {
  color: #0f172a;
}

/* Join Us — subtle CTA highlight */
#top-menu > .nav-join > a {
  color: #1948a4;
}

#top-menu > .nav-join > a:hover {
  color: #0f172a;
}

/* About Us is not a link — chevron indicates dropdown, default cursor signals no navigation */
.menu-item-has-children > a[href=""],
.menu-item-has-children > a:not([href]) {
  cursor: default;
}

.ion-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: middle;
  flex-shrink: 0;
}

.about-chevron {
  width: 1em;
  height: 1em;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

@media (max-width: 900px) {
  .about-chevron {
    display: none;
  }
}

#top-menu > .current-menu-item {
  box-shadow: inset 0 -3px 0 #1948a4;
}

#top-menu > .current-menu-parent {
  box-shadow: inset 0 -3px 0 #7284a8;
}

#top-menu > .current-menu-parent > a {
  color: #1948a4;
}

#top-menu > .current-menu-item > a {
  color: #1948a4;
  font-weight: 600;
}

.sub-menu > .current-menu-item > a {
  color: #1948a4;
  font-weight: 600;
}

.sub-menu > .current-menu-item {
  border-left: 3px solid #1948a4;
}

.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sub-menu {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  min-width: 180px;
  margin: 0;
  padding: 1rem;
  list-style: none;
  background: #ffffff;
  /* border: 1px solid #755505; */
  box-shadow:
    inset 0 2px 0 #1948a4,
    0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 150ms ease,
    visibility 150ms ease;
}

.sub-menu li a {
  display: block;
  width: 12.5rem;
  padding: 0.5rem 1rem;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5a5650;
  text-decoration: none;
  transition:
    color 180ms ease,
    background-color 500ms ease;
}

.sub-menu li a:hover {
  color: #0f172a;
  background-color: rgba(236, 236, 236, 0.425);
}

#mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

#mobile-menu-toggle span {
  display: block;
  height: 2px;
  background: #3d3830;
  border-radius: 2px;
  transition:
    transform 200ms ease,
    opacity 200ms ease;
}

#mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
#mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1000px) {
  .header-inner {
    height: 60px;
  }

  #page-container {
    padding-top: 60px;
  }

  #mobile-menu-toggle {
    display: flex;
  }

  #top-menu-nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 999;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transition:
      max-height 300ms ease,
      opacity 200ms ease,
      visibility 200ms ease,
      top 300ms ease;
  }

  #main-header.scrolled #top-menu-nav {
    top: 54px;
  }

  #top-menu-nav.open {
    max-height: 600px;
    opacity: 1;
    visibility: visible;
    border-bottom-color: #1a2744;
  }

  #top-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.25rem 2rem;
  }

  #top-menu > li {
    position: static;
  }

  #top-menu > li > a {
    display: block;
    padding: 0.75rem 0;
    font-size: 0.82rem;
    line-height: 1.5;
  }

  #top-menu > .current-menu-item > a {
    border-bottom: none;
    color: #1948a4;
    font-weight: 600;
  }

  #top-menu > .current-menu-item,
  #top-menu > .current-menu-parent {
    box-shadow: none;
  }

  #top-menu > .current-menu-item {
    border-left: 3px solid #1948a4;
    margin-left: -2rem;
    padding-left: calc(2rem - 3px);
  }

  .menu-item-has-children > a {
    display: inline-block;
    width: calc(100% - 44px);
  }

  /* Non-link parent item on mobile: muted + not-allowed cursor */
  .menu-item-has-children > a[href=""],
  .menu-item-has-children > a:not([href]) {
    color: #8a7f74 !important;
    cursor: default;
    font-style: italic;
  }

  .menu-item-has-children:hover > .sub-menu,
  .menu-item-has-children:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    border: none;
    box-shadow: none;
    background: none;
    padding: 0;
    margin: 0;
    display: block;
    transition: none;
  }

  .sub-menu li a {
    width: auto;
    padding: 0.5rem 0 0.5rem 1.5rem;
    font-size: 0.78rem;
    color: #3d3830;
  }

  .sub-menu > .current-menu-item > a {
    color: #1948a4;
    font-weight: 600;
  }

  .sub-menu > .current-menu-item {
    border-left: 3px solid #1948a4;
    margin-left: -1.5rem;
    padding-left: calc(1.5rem - 3px);
  }
}

/* ── Footer legal bar ── */
.footer-legal-bar {
  background: #0e1628;
  /* border-top: 1px solid rgba(255, 255, 255, 0.12); */
  padding: 1rem 0;
}

.footer-legal-inner {
  width: min(1200px, 100% - 40px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-legal-copy {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c8d8f0;
}

.footer-legal-link {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c8d8f0;
  text-decoration: none;
  transition: color 180ms ease;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-link:hover {
  text-decoration: none;
}

@media (max-width: 480px) {
  .footer-legal-inner {
    flex-direction: column;
    gap: 0.35rem;
    text-align: center;
  }
}

/* ── Contact strip ── */
.et_pb_section_2 {
  padding: 0 !important;
  border-top: 1px solid #d9d4cc;
}

.et_pb_promo {
  padding: 4rem 2rem !important;
  text-align: center;
  background-color: #1a2744 !important;
}

.et_pb_promo_description {
  color: #e8e4dc;
}

.et_pb_promo_description .p1 {
  margin: 0.2rem 0;
  font-size: 0.9rem;
  font-weight: 400;
  color: #c8c2b8;
  letter-spacing: 0.02em;
}

.et_pb_promo_description .p1:first-child {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a0b4d4;
  margin-bottom: 1.25rem;
}

.et_pb_promo_description strong {
  font-weight: 400;
  color: inherit;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1.25rem 0 0;
}

.footer-social a {
  color: #a0b4d4;
  transition: color 180ms ease;
  display: flex;
  align-items: center;
}

.footer-social a:hover {
  color: #ffffff;
  text-decoration: none;
}

.footer-social svg.ion-icon {
  width: 18px;
  height: 18px;
}

/* ── Shared section label + title ── */
.section-label {
  margin: 0 0 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #1948a4;
}

.section-title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: #0f172a;
}

/* ── Back to top button ── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 42px;
  height: 42px;
  background: #1a2744;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 200ms ease,
    visibility 200ms ease,
    transform 200ms ease,
    background 150ms ease;
  z-index: 500;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #1948a4;
}

.back-to-top svg.ion-icon {
  width: 1.2rem;
  height: 1.2rem;
  pointer-events: none;
}

/* ── Shared CTA band (centered variant — used on FAQ, Leadership) ── */
.cta-band {
  background: #1a2744;
  padding: 4rem 0;
}

.cta-band-inner {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.cta-band-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 0.75rem;
}

.cta-band-heading {
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #ffffff;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.cta-band-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 2rem;
}

/* ── Shared button styles ── */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition:
    background 180ms ease,
    color 180ms ease;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

/* White button on dark background */
.btn--on-dark {
  background: #ffffff;
  color: #1a2744;
}

.btn--on-dark:hover {
  background: #e2e8f0;
  color: #1a2744;
}

/* Primary blue button on light background */
.btn--primary {
  background: #1948a4;
  color: #ffffff;
}

.btn--primary:hover {
  background: #1a2744;
  color: #ffffff;
}

/* Ghost/outline button on dark background */
.btn--outline-dark {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn--outline-dark:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

@media (max-width: 640px) {
  .cta-band {
    padding: 2.5rem 0;
  }
}

.skip-to-content {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: #1948a4;
  color: #fff;
  font-weight: 600;
  border-radius: 0 0 4px 4px;
  z-index: 9999;
  text-decoration: none;
  transition: top 0.15s;
}
.skip-to-content:focus {
  top: 0;
}
