/* ============================================
   PREMIUM HEADER — DARK NAVY
   ============================================ */

/* ---- Top Bar ---- */
.os-topbar {
  background: #060d1f;
  height: 40px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10000;
  transition: height 0.35s ease, opacity 0.35s ease;
}
.os-topbar.hidden { height: 0; opacity: 0; overflow: hidden; pointer-events: none; }
.os-topbar-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.os-topbar-left { display: flex; align-items: center; gap: 20px; }
.os-topbar-left a {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.os-topbar-left a i { font-size: 10px; color: #4f8ef7; }
.os-topbar-left a:hover { color: #fff; }
.os-topbar-divider { width: 1px; height: 14px; background: rgba(255,255,255,0.1); }

.os-topbar-right { display: flex; align-items: center; gap: 4px; }
.os-topbar-social a {
  width: 26px; height: 26px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.45);
  font-size: 11px;
  text-decoration: none;
  transition: all 0.2s;
}
.os-topbar-social a:hover { background: #2563eb; border-color: #2563eb; color: #fff; }

/* ---- Main Header ---- */
.os-header {
  position: fixed;
  top: 40px; left: 0; right: 0;
  z-index: 9999;
  height: 90px;
  background: linear-gradient(135deg, #0a1628 0%, #0f2044 50%, #0a1628 100%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 4px 40px rgba(0,0,0,0.35);
  transition: top 0.35s ease, height 0.35s ease, box-shadow 0.35s ease;
}
.os-header.scrolled {
  top: 0;
  height: 72px;
  box-shadow: 0 6px 50px rgba(0,0,0,0.45);
}

/* ---- Inner layout — logo left, nav center, cta right ---- */
.os-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  gap: 24px;
}

/* ---- Logo ---- */
.os-logo {
  display: flex; align-items: center;
  text-decoration: none;
  transition: opacity 0.2s;
  justify-self: start;
}
.os-logo:hover { opacity: 0.85; }
.os-logo img {
  height: 90px; width: auto; display: block;
  transition: height 0.35s ease;
  filter: brightness(1.08) drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}
.os-header.scrolled .os-logo img { height: 70px; }

/* ---- Desktop Nav — centered ---- */
.os-nav {
  display: flex;
  justify-content: center;
}
.os-nav > ul {
  display: flex; align-items: center;
  gap: 2px;
  list-style: none; margin: 0; padding: 0;
}
.os-nav > ul > li { position: relative; }

.os-nav > ul > li > a {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  border-radius: 10px;
  text-decoration: none;
  letter-spacing: 0.02em;
  position: relative;
  transition: color 0.22s, background 0.22s;
  white-space: nowrap;
}
.os-nav > ul > li > a i {
  font-size: 9px;
  opacity: 0.5;
  transition: transform 0.28s ease, opacity 0.2s;
}

/* Animated underline */
.os-nav > ul > li > a::after {
  content: '';
  position: absolute;
  bottom: 5px; left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 18px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #4f8ef7, #818cf8);
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
}
.os-nav > ul > li:hover > a,
.os-nav > ul > li.active > a {
  color: #fff;
  background: rgba(255,255,255,0.07);
}
.os-nav > ul > li:hover > a::after,
.os-nav > ul > li.active > a::after { transform: translateX(-50%) scaleX(1); }
.os-nav > ul > li:hover > a i { transform: rotate(180deg); opacity: 1; }

/* ---- Mega Dropdown ---- */
.os-dropdown {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 600px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.18), 0 4px 16px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.28s cubic-bezier(0.4,0,0.2,1);
  z-index: 200;
  list-style: none;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.os-has-dropdown:hover .os-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.os-dropdown::before {
  content: '';
  position: absolute;
  top: -7px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 14px; height: 14px;
  background: #fff;
  border-left: 1px solid rgba(0,0,0,0.06);
  border-top: 1px solid rgba(0,0,0,0.06);
}

.os-dropdown li { margin: 0; }
.os-dropdown li a {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 13px 14px;
  border-radius: 13px;
  text-decoration: none;
  transition: all 0.22s;
}
.os-dropdown li a:hover { background: #f0f5ff; }

.dd-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, #eff6ff, #eef2ff);
  border: 1px solid rgba(37,99,235,0.1);
  display: flex; align-items: center; justify-content: center;
  color: #2563eb;
  font-size: 16px;
  flex-shrink: 0;
  transition: all 0.22s;
}
.os-dropdown li a:hover .dd-icon {
  background: linear-gradient(135deg, #2563eb, #6366f1);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px rgba(37,99,235,0.32);
  transform: scale(1.05);
}
.dd-text { display: flex; flex-direction: column; gap: 3px; padding-top: 1px; }
.dd-text strong {
  font-size: 13.5px; font-weight: 700;
  color: #0f172a;
  transition: color 0.2s; line-height: 1.3;
}
.dd-text span { font-size: 12px; color: #94a3b8; line-height: 1.4; font-weight: 400; }
.os-dropdown li a:hover .dd-text strong { color: #2563eb; }

/* ---- Header CTA — right aligned ---- */
.os-header-cta {
  display: flex; align-items: center;
  gap: 12px;
  justify-self: end;
  
}

/* Phone button */
.os-phone-btn {
  display: flex; align-items: center; gap: 12px;
  height: 48px;
  padding: 0 20px 0 12px;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 14px;
  background: rgba(255,255,255,0.07);
  text-decoration: none;
  transition: all 0.25s;
}
.os-phone-btn:hover {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.os-phone-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #6366f1);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37,99,235,0.45);
}
.os-phone-text { display: flex; flex-direction: column; line-height: 1.25; }
.os-phone-text small {
  font-size: 10px; color: rgba(255,255,255,0.45);
  text-transform: uppercase; letter-spacing: 0.7px; font-weight: 600;
}
.os-phone-text strong { font-size: 13.5px; font-weight: 700; color: #fff; }

/* CTA button */
.os-cta-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 48px;
  padding: 0 28px;
  background: linear-gradient(135deg, #2563eb 0%, #6366f1 100%);
  color: #fff !important;
  font-size: 14px; font-weight: 700;
  border-radius: 14px;
  text-decoration: none; border: none; cursor: pointer;
  box-shadow: 0 4px 20px rgba(37,99,235,0.45), inset 0 1px 0 rgba(255,255,255,0.15);
  transition: all 0.28s cubic-bezier(0.4,0,0.2,1);
  white-space: nowrap; letter-spacing: 0.02em;
  position: relative; overflow: hidden;
}
.os-cta-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1d4ed8 0%, #4f46e5 100%);
  opacity: 0; transition: opacity 0.28s;
}
.os-cta-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transition: left 0.5s ease;
}
.os-cta-btn span, .os-cta-btn i { position: relative; z-index: 1; }
.os-cta-btn i {
  font-size: 12px;
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  background: rgba(255,255,255,0.18);
  width: 26px; height: 26px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.os-cta-btn:hover::before { opacity: 1; }
.os-cta-btn:hover::after { left: 150%; }
.os-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(37,99,235,0.55), inset 0 1px 0 rgba(255,255,255,0.2); }
.os-cta-btn:hover i { transform: translateX(3px); background: rgba(255,255,255,0.25); }

/* ---- Hamburger ---- */
.os-hamburger {
  display: none; flex-direction: column;
  justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 11px; cursor: pointer;
  transition: background 0.2s;
}
.os-hamburger:hover { background: rgba(255,255,255,0.12); }
.os-hamburger span {
  display: block; height: 2px;
  background: rgba(255,255,255,0.85); border-radius: 2px;
  transition: all 0.3s ease;
}
.os-hamburger span:nth-child(3) { width: 65%; }
.os-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.os-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.os-hamburger.open span:nth-child(3) { width: 100%; transform: translateY(-7px) rotate(-45deg); }

/* ---- Mobile Drawer ---- */
.os-drawer {
  position: fixed;
  top: 0; right: -100%;
  width: 320px; height: 100vh;
  background: #fff;
  z-index: 10001;
  display: flex; flex-direction: column;
  box-shadow: -12px 0 60px rgba(0,0,0,0.2);
  transition: right 0.38s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
}
.os-drawer.open { right: 0; }

.os-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  background: linear-gradient(135deg, #0a1628, #0f2044);
  flex-shrink: 0;
}
.os-drawer-header img { height: 38px; }
.os-drawer-close {
  width: 36px; height: 36px; border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: rgba(255,255,255,0.8); cursor: pointer; transition: all 0.2s;
}
.os-drawer-close:hover { background: rgba(239,68,68,0.2); color: #ef4444; border-color: rgba(239,68,68,0.3); }

.os-drawer-nav { flex: 1; padding: 14px 14px 0; }
.os-drawer-nav ul { list-style: none; margin: 0; padding: 0; }
.os-drawer-nav ul li { margin-bottom: 2px; }
.os-drawer-nav ul li > a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px;
  font-size: 14.5px; font-weight: 600; color: #0f172a;
  border-radius: 11px; text-decoration: none; transition: all 0.2s;
}
.os-drawer-nav ul li > a i { font-size: 11px; transition: transform 0.25s; color: #94a3b8; }
.os-drawer-nav ul li > a:hover,
.os-drawer-nav ul li.open > a { background: #f0f5ff; color: #2563eb; }
.os-drawer-nav ul li > a:hover i,
.os-drawer-nav ul li.open > a i { color: #2563eb; }
.os-drawer-nav ul li.open > a i { transform: rotate(180deg); }

.os-drawer-sub {
  list-style: none; margin: 4px 0 8px;
  padding: 0 0 0 16px; display: none;
}
.os-drawer-sub.open { display: block; }
.os-drawer-sub li a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  font-size: 13.5px; font-weight: 500; color: #475569;
  border-radius: 9px; text-decoration: none; transition: all 0.2s;
  border-left: 2px solid #e2e8f0;
}
.os-drawer-sub li a i { color: #2563eb; font-size: 12px; width: 14px; text-align: center; }
.os-drawer-sub li a:hover {
  color: #2563eb; border-left-color: #2563eb;
  background: #f0f5ff; padding-left: 18px;
}

.os-drawer-footer {
  padding: 18px 20px 28px;
  border-top: 1px solid #f1f5f9;
  display: flex; flex-direction: column; gap: 10px; flex-shrink: 0;
}
.os-drawer-footer a {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; font-weight: 500; color: #475569;
  text-decoration: none; transition: color 0.2s;
}
.os-drawer-footer a i { color: #2563eb; width: 16px; text-align: center; }
.os-drawer-footer a:hover { color: #2563eb; }
.os-drawer-footer .os-cta-btn { justify-content: center; padding: 13px; }

/* ---- Overlay ---- */
.os-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  z-index: 10000;
  opacity: 0; visibility: hidden; transition: all 0.3s;
}
.os-overlay.open { opacity: 1; visibility: visible; }

/* ---- Body offset ---- */
body { padding-top: calc(40px + 90px); }

/* ---- Responsive ---- */
@media (max-width: 1199px) {
  .os-topbar-left a:not(:first-child),
  .os-topbar-divider { display: none; }
  .os-nav > ul > li > a { padding: 9px 12px; font-size: 13.5px; }
  .os-phone-btn { display: none !important; }
}
@media (max-width: 991px) {
  .os-header-inner { grid-template-columns: auto 1fr auto; }
  .os-nav { display: none; }
  .os-hamburger { display: flex; }
  .os-cta-btn { padding: 10px 18px; font-size: 13px; }
}
@media (max-width: 767px) {
  .os-topbar { display: none; }
  .os-header { top: 0; }
  body { padding-top: 90px; }
}
@media (max-width: 575px) {
  .os-header { height: 68px; }
  body { padding-top: 68px; }
  .os-logo img { height: 46px; }
  .os-cta-btn { display: none; }
  .os-header-cta { gap: 8px; }
}
