/* ============================================
   Shared Site Header (used on every page)
   All rules are scoped to .site-header so page-level
   `header`, `nav`, `ul`, `li` and `a` styles do not leak in.
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #0a1f44 0%, #0052a3 60%, #0066cc 100%);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.4;
  text-align: left;
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
}

.site-header *,
.site-header *::before,
.site-header *::after {
  box-sizing: border-box;
}

/* Neutralize global link/button effects from styles.css inside the header */
.site-header a::after {
  content: none !important;
}

.site-header .site-nav-toggle:hover {
  transform: none;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.1);
}

.site-header .site-nav {
  position: relative;
  top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1240px;
  height: 74px;
  margin: 0 auto;
  padding: 0 24px;
  background: transparent;
  box-shadow: none;
}

/* --- Brand --- */
.site-header .site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  color: #fff;
  text-decoration: none;
}

.site-header .site-brand img {
  width: 42px;
  height: 42px;
  margin: 0;
  border-radius: 8px;
  background: #fff;
  padding: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.site-header .site-brand-text {
  display: flex;
  flex-direction: column;
  font-size: inherit;
  font-weight: normal;
}

.site-header .site-brand-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #fff;
}

.site-header .site-brand-tag {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffb84d;
}

/* --- Menu --- */
.site-header .site-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header .site-menu li {
  position: relative;
  margin: 0;
  padding: 0;
  line-height: 1.4;
  list-style: none;
}

.site-header .site-menu a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-header .site-menu > li > a:hover,
.site-header .site-menu > li > a:focus-visible,
.site-header .site-menu > li.has-dropdown:hover > a {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.site-header .site-menu > li > a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 -3px 0 #ff9900;
}

.site-header .site-caret {
  width: 10px;
  height: 10px;
  transition: transform 0.2s ease;
}

.site-header .has-dropdown:hover .site-caret,
.site-header .has-dropdown:focus-within .site-caret {
  transform: rotate(180deg);
}

/* --- Services dropdown --- */
.site-header .site-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 250px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(10, 31, 68, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.site-header .site-dropdown::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.site-header .has-dropdown:hover .site-dropdown,
.site-header .has-dropdown:focus-within .site-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-header .site-dropdown a {
  padding: 10px 14px;
  color: #1a2332;
  font-size: 14.5px;
}

.site-header .site-dropdown a:hover,
.site-header .site-dropdown a:focus-visible,
.site-header .site-dropdown a.active {
  color: #0052a3;
  background: #eef5ff;
}

/* --- CTA --- */
.site-header .site-menu .site-cta {
  margin-left: 10px;
  padding: 10px 20px;
  border-radius: 999px;
  background: #ff9900;
  color: #1a2332;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(255, 153, 0, 0.35);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.site-header .site-menu .site-cta:hover,
.site-header .site-menu .site-cta:focus-visible {
  background: #ffad33;
  color: #1a2332;
  transform: translateY(-1px);
}

/* --- Mobile toggle --- */
.site-header .site-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.site-header .site-nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-header.open .site-nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.open .site-nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.open .site-nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1080px) {
  .site-header .site-nav-toggle {
    display: flex;
  }

  .site-header .site-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    max-height: calc(100vh - 74px);
    overflow-y: auto;
    padding: 12px 16px 20px;
    background: #0a1f44;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  }

  .site-header.open .site-menu {
    display: flex;
  }

  .site-header .site-menu a {
    padding: 12px 14px;
  }

  .site-header .site-caret {
    display: none;
  }

  .site-header .site-dropdown {
    position: static;
    min-width: 0;
    padding: 0 0 0 14px;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-header .site-dropdown::before {
    display: none;
  }

  .site-header .site-dropdown a {
    color: rgba(255, 255, 255, 0.75);
    border-left: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 0 6px 6px 0;
  }

  .site-header .site-dropdown a:hover,
  .site-header .site-dropdown a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #ff9900;
  }

  .site-header .site-menu .site-cta {
    justify-content: center;
    margin: 10px 0 0;
  }
}

@media (max-width: 420px) {
  .site-header .site-brand-tag {
    display: none;
  }
}
