/* =========================================================
   Phiraao shared site header.
   Reproduces the live homepage header (style.css) EXACTLY so
   every page's header looks identical. All rules are scoped
   under .site-header so page content is never affected, and
   so they override any header styles left in a page's own CSS.
   Colours are the homepage palette (brand blue #0A3D91).
========================================================= */

.site-header {
  position: relative;
  z-index: 20;
  width: 100%;
  background: #FFFFFF;
  border-bottom: 1px solid #EDF1F6;
}

.site-header a {
  text-decoration: none;
}

/* Matches .container + .navbar on the homepage (24px side gutter, max 1400px). */
.site-header .navbar {
  width: min(1400px, calc(100% - 48px));
  margin-inline: auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.site-header .brand-logo {
  height: 52px;
  width: auto;
  max-height: none;
  object-fit: contain;
  display: block;
}

.site-header .nav-links {
  display: flex;
  align-items: center;
  gap: 44px;
}

.site-header .nav-links > a:not(.nav-cta) {
  color: #44536B;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.18s ease;
}

.site-header .nav-links > a:not(.nav-cta):hover,
.site-header .nav-links > a:not(.nav-cta).active {
  color: #0A3D91;
}

.site-header .nav-links > a.active {
  font-weight: 700;
}

.site-header .nav-cta {
  min-height: 46px;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 10px;
  background: #0A3D91;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(10, 61, 145, 0.22);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.site-header .nav-cta:hover {
  background: #124FA8;
  box-shadow: 0 9px 22px rgba(10, 61, 145, 0.30);
  transform: translateY(-1px);
}

.site-header .menu-toggle {
  display: none;
}

/* ---------- Tablet (matches .container at this width) ---------- */
@media (max-width: 1050px) {
  .site-header .navbar {
    width: calc(100% - 44px);
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 700px) {
  .site-header .navbar {
    width: calc(100% - 32px);
    min-height: 64px;
  }

  .site-header .brand-logo {
    height: 40px;
    width: auto;
  }

  .site-header .menu-toggle {
    width: 38px;
    height: 38px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid #E1E8F2;
    border-radius: 9px;
    background: #FFFFFF;
    cursor: pointer;
  }

  .site-header .menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #0A3D91;
  }

  .site-header .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    padding: 12px 18px 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #FFFFFF;
    border-bottom: 1px solid #E9EEF5;
    box-shadow: 0 10px 20px rgba(15, 40, 80, 0.05);
  }

  .site-header .nav-links.open {
    display: flex;
  }

  .site-header .nav-links > a:not(.nav-cta) {
    padding: 14px 0;
    border-bottom: 1px solid #F0F3F8;
  }

  .site-header .nav-cta {
    margin-top: 12px;
  }
}
