/* ================================================================
   Polaris — Modern Shared Header
   ================================================================ */

#polaris-header * { box-sizing: border-box; }

/* ── Sticky wrapper ── */
#polaris-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.3s;
}
#polaris-header.scrolled {
  box-shadow: 0 4px 32px rgba(10, 25, 60, 0.18);
}

/* ─────────────────────────────────────────
   TOP BAR
───────────────────────────────────────── */
.ph-topbar {
  background: #0a1628;
  padding: 7px 0;
  font-size: 12px;
  color: #8fa8c8;
  letter-spacing: 0.2px;
}
.ph-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ph-topbar i {
  color: #3b82f6;
  margin-right: 5px;
  font-size: 11px;
}
.ph-contacts {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.ph-sep { color: #1e3355; }

@media (max-width: 576px) {
  .ph-address { display: none; }
  .ph-topbar-inner { justify-content: center; }
}

/* ─────────────────────────────────────────
   MAIN NAVBAR
───────────────────────────────────────── */
.ph-navbar {
  background: #ffffff;
  border-bottom: 3px solid #1d4ed8;
  box-shadow: 0 2px 12px rgba(10, 25, 60, 0.08);
}
.ph-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

/* ── Logo ── */
.ph-logo {
  display: flex;
  align-items: center;
  text-decoration: none !important;
  flex-shrink: 0;
}
.ph-logo img {
  height: 54px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* ─────────────────────────────────────────
   DESKTOP NAV
───────────────────────────────────────── */
.ph-nav { display: flex; align-items: center; }

.ph-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}

.ph-nav ul li a {
  display: block;
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: #1a2744;
  text-decoration: none !important;
  border-radius: 6px;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* underline bar */
.ph-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 18px;
  right: 18px;
  height: 2px;
  background: #1d4ed8;
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.25s ease;
  transform-origin: left;
}

.ph-nav ul li a:hover {
  color: #1d4ed8;
  background: #eff6ff;
}
.ph-nav ul li a:hover::after { transform: scaleX(1); }

.ph-nav ul li a.active {
  color: #1d4ed8;
  background: #eff6ff;
}
.ph-nav ul li a.active::after { transform: scaleX(1); }

/* ─────────────────────────────────────────
   HAMBURGER BUTTON
───────────────────────────────────────── */
.ph-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: 2px solid #1d4ed8;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}
.ph-hamburger:focus { outline: none; }
.ph-hamburger:hover { background: #eff6ff; }

.ph-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #1d4ed8;
  border-radius: 2px;
  transition: all 0.28s ease;
  transform-origin: center;
}

/* Animate to ✕ */
.ph-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ph-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.ph-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─────────────────────────────────────────
   MOBILE DROPDOWN
───────────────────────────────────────── */
.ph-mobile-nav {
  display: none;
  background: #fff;
  border-top: 1px solid #e2eaf5;
  border-bottom: 3px solid #1d4ed8;
  box-shadow: 0 10px 24px rgba(10, 25, 60, 0.12);
}
.ph-mobile-nav ul {
  list-style: none;
  padding: 8px 0;
  margin: 0;
}
.ph-mobile-nav ul li a {
  display: block;
  padding: 12px 24px;
  font-size: 13.5px;
  font-weight: 600;
  color: #1a2744;
  text-decoration: none !important;
  border-left: 3px solid transparent;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  transition: all 0.2s;
}
.ph-mobile-nav ul li a:hover,
.ph-mobile-nav ul li a.active {
  color: #1d4ed8;
  border-left-color: #1d4ed8;
  background: #eff6ff;
}
.ph-mobile-nav.open { display: block; }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 991px) {
  .ph-nav { display: none; }
  .ph-hamburger { display: flex; }
}

@media (max-width: 575px) {
  .ph-logo img {
    max-width: 58vw;
    height: auto;
  }
  .ph-navbar-inner {
    height: 60px;
  }
}
