/* ============================================================
   ATLAS STRATEGIES — Premium Modern Navbar
   ============================================================ */

/* Hide old template header elements */
.ht-header-area, .ht-top-header, .ht-main-header,
.ht-offcanvas, .ht-offcanvas-overlay { display: none !important; }

/* Body offset */
body { padding-top: 92px; }
.ht-hero-area { padding-top: 60px !important; }

/* ============================================================
   NAVBAR SHELL
   ============================================================ */
.atlas-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  padding: 0 48px;
  height: 88px;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid rgba(19,142,223,0.08);
  box-shadow: 0 2px 20px rgba(10,24,40,0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.4s ease;
}

/* Accent bottom line */
.atlas-navbar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #1C5982, #138EDF, #65B6EB, #138EDF, #1C5982, transparent);
}

.atlas-navbar.scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 4px 30px rgba(10,24,40,0.10);
  height: 76px;
}

.atlas-nav-inner {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

/* ============================================================
   LOGO
   ============================================================ */
.atlas-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  flex-shrink: 0;
  position: relative;
}
.atlas-nav-logo img {
  height: 52px;
  width: auto;
  display: block;
  transition: opacity 0.3s;
}
.atlas-nav-logo:hover img { opacity: 0.85; }

/* ============================================================
   DESKTOP NAV LINKS
   ============================================================ */
.atlas-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.atlas-nav-link {
  position: relative;
  color: #2A6A95 !important;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-decoration: none !important;
  padding: 9px 18px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.25s;
  overflow: hidden;
}

/* Pill background on hover */
.atlas-nav-link::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(2,0,111,0.08), rgba(85,88,255,0.05));
  border: 1px solid rgba(2,0,111,0.12);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.25s, transform 0.25s;
}
.atlas-nav-link:hover::before {
  opacity: 1;
  transform: scale(1);
}
.atlas-nav-link:hover {
  color: #138EDF !important;
}

/* Sheen sweep on hover */
.atlas-nav-link::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent);
  transition: left 0.45s;
}
.atlas-nav-link:hover::after { left: 160%; }

/* ============================================================
   DROPDOWN
   ============================================================ */
.atlas-nav-dropdown {
  position: relative;
  align-self: stretch; /* fills full navbar height so top:100% = navbar bottom */
  display: flex;
  align-items: center;
}

.atlas-has-drop .fa-chevron-down {
  font-size: 10px;
  opacity: 0.7;
  transition: transform 0.3s, opacity 0.3s;
}
.atlas-nav-dropdown:hover .fa-chevron-down {
  transform: rotate(180deg);
  opacity: 1;
}

.atlas-drop-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #ffffff;
  border: 1px solid rgba(1,0,67,0.1);
  border-radius: 14px;
  padding: 8px;
  min-width: 220px;
  box-shadow: 0 20px 50px rgba(1,0,67,0.12), 0 4px 16px rgba(1,0,67,0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 1;
}
.atlas-nav-dropdown:hover .atlas-drop-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0px);
}

/* Transparent bridge so mouse can travel from link to menu without gap */
.atlas-drop-menu::after {
  content: '';
  position: absolute;
  top: -10px;
  left: 0; right: 0;
  height: 10px;
  background: transparent;
}

/* Caret */
.atlas-drop-menu::before {
  content: '';
  position: absolute;
  top: -5px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 9px; height: 9px;
  background: #ffffff;
  border-left: 1px solid rgba(1,0,67,0.1);
  border-top: 1px solid rgba(1,0,67,0.1);
}

.atlas-drop-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #2A6A95 !important;
  font-size: 14px;
  font-weight: 500;
  padding: 11px 14px;
  border-radius: 9px;
  text-decoration: none !important;
  transition: background 0.2s, color 0.2s;
  position: relative;
  overflow: hidden;
}
.atlas-drop-menu a .icon-wrap {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: rgba(2,0,111,0.07);
  border: 1px solid rgba(2,0,111,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  color: #138EDF;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
.atlas-drop-menu a:hover {
  background: rgba(2,0,111,0.06);
  color: #138EDF !important;
}
.atlas-drop-menu a:hover .icon-wrap {
  background: rgba(2,0,111,0.15);
}

/* ============================================================
   CTA BUTTON
   ============================================================ */
.atlas-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.atlas-nav-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 24px;
  border-radius: 50px;
  background: linear-gradient(135deg, #1a18d4, #5558FF);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-decoration: none !important;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 4px 20px rgba(85,88,255,0.35), 0 0 0 1px rgba(255,255,255,0.1) inset;
}

/* Shine overlay */
.atlas-nav-cta::before {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s;
}
.atlas-nav-cta:hover::before { left: 140%; }

.atlas-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 35px rgba(85,88,255,0.55), 0 0 0 1px rgba(255,255,255,0.15) inset;
  color: #fff !important;
}

.atlas-nav-cta .cta-arrow {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  transition: transform 0.25s, background 0.25s;
  flex-shrink: 0;
}
.atlas-nav-cta:hover .cta-arrow {
  transform: translateX(3px);
  background: rgba(255,255,255,0.3);
}

/* ============================================================
   HAMBURGER
   ============================================================ */
.atlas-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: rgba(28,89,130,0.06);
  border: 1px solid rgba(28,89,130,0.14);
  border-radius: 10px;
  width: 44px; height: 44px;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  padding: 0;
}
.atlas-hamburger:hover {
  background: rgba(28,89,130,0.12);
  border-color: rgba(28,89,130,0.25);
}
.atlas-hamburger span {
  display: block;
  border-radius: 3px;
  background: #2A6A95;
  transition: width 0.3s;
}
.atlas-hamburger span:nth-child(1) { width: 20px; height: 2px; }
.atlas-hamburger span:nth-child(2) { width: 14px; height: 2px; }
.atlas-hamburger span:nth-child(3) { width: 18px; height: 2px; }
.atlas-hamburger:hover span { width: 20px; }

/* ============================================================
   MOBILE DRAWER — Modern Design
   ============================================================ */
.atlas-drawer {
  position: fixed;
  top: 0; right: -105%;
  width: min(400px, 100vw);
  height: 100vh;
  height: -webkit-fill-available;
  height: 100dvh;
  background: #07111E;
  z-index: 99999;
  transition: right 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: -24px 0 80px rgba(0,0,0,0.6);
}
.atlas-drawer.open { right: 0; }

/* Top brand accent line */
.atlas-drawer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #1C5982, #138EDF, #65B6EB, #138EDF, #1C5982);
  z-index: 2;
  flex-shrink: 0;
}

/* Subtle background orb */
.atlas-drawer::after {
  content: '';
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(19,142,223,0.1) 0%, transparent 70%);
  bottom: -60px; right: -80px;
  pointer-events: none;
}

.atlas-drawer-overlay {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(2,8,20,0.80);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 99998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.atlas-drawer-overlay.open { opacity: 1; pointer-events: auto; }

.atlas-drawer-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-top: 3px; /* clear accent line */
  position: relative;
  z-index: 1;
}

/* ---- Header ---- */
.atlas-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 18px;
  flex-shrink: 0;
}

.adr-logo-wrap img {
  height: 36px;
  width: auto;
  display: block;
}

.atlas-drawer-close {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px;
  color: rgba(255,255,255,0.65);
  font-size: 17px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.atlas-drawer-close:hover {
  background: rgba(220,50,50,0.15);
  color: #ff6b6b;
  border-color: rgba(220,50,50,0.3);
}

/* Thin separator under header */
.atlas-drawer-head::after {
  display: none;
}

/* ---- Body (scrollable) ---- */
.adr-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 20px 16px;
}

/* ---- Main Nav Links ---- */
.adr-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.adr-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  border-radius: 14px;
  text-decoration: none !important;
  color: rgba(255,255,255,0.90) !important;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.4px;
  border: 1px solid transparent;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.adr-link:hover,
.adr-link:active {
  background: rgba(19,142,223,0.10);
  border-color: rgba(19,142,223,0.18);
  color: #ffffff !important;
}
.adr-link i {
  font-size: 12px;
  color: rgba(101,182,235,0.45);
  transition: transform 0.25s ease, color 0.2s;
  flex-shrink: 0;
}
.adr-link:hover i, .adr-link:active i {
  transform: translateX(4px);
  color: #65B6EB;
}

/* ---- Divider ---- */
.adr-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 14px 4px;
}

/* ---- Sub-section Label ---- */
.adr-section-label {
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 2.5px !important;
  text-transform: uppercase;
  color: rgba(101,182,235,0.40) !important;
  padding: 0 18px 6px;
  margin: 0;
}

/* ---- Sub Links ---- */
.adr-sub-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-radius: 12px;
  text-decoration: none !important;
  color: rgba(190,220,245,0.65) !important;
  font-size: 15px;
  font-weight: 500;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s, color 0.2s;
}
.adr-sub-link i {
  width: 18px;
  text-align: center;
  font-size: 13px;
  color: rgba(101,182,235,0.50);
  flex-shrink: 0;
  transition: color 0.2s;
}
.adr-sub-link:hover,
.adr-sub-link:active {
  background: rgba(19,142,223,0.08);
  color: #ffffff !important;
}
.adr-sub-link:hover i { color: #65B6EB; }

/* ---- Footer ---- */
.adr-footer {
  flex-shrink: 0;
  padding: 18px 24px;
  padding-bottom: max(20px, env(safe-area-inset-bottom, 20px));
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(0,0,0,0.15);
}

/* CTA Button */
.adr-cta {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px;
  padding: 15px 24px !important;
  border-radius: 14px !important;
  text-decoration: none !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #1a9ef0, #138EDF 55%, #0e72b8) !important;
  box-shadow: 0 8px 28px rgba(19,142,223,0.40);
  -webkit-tap-highlight-color: transparent;
  transition: box-shadow 0.3s, transform 0.2s;
}
.adr-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(19,142,223,0.55); }
.adr-cta i { transition: transform 0.2s; }
.adr-cta:hover i { transform: translateX(4px); }

/* Contact info row */
.adr-contact { display: flex; flex-direction: column; gap: 4px; }

.adr-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  color: rgba(255,255,255,0.30) !important;
  font-size: 12.5px;
  transition: color 0.2s;
}
.adr-contact-item i {
  font-size: 11px;
  color: rgba(101,182,235,0.35);
  width: 14px;
  text-align: center;
}
.adr-contact-item:hover { color: rgba(255,255,255,0.60) !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  .atlas-nav-links { display: none; }
  .atlas-nav-cta { display: none; }
  .atlas-hamburger { display: flex; }
  .atlas-navbar { padding: 0 20px; }
}
@media (max-width: 480px) {
  .atlas-navbar { padding: 0 14px; }
}

/* Override old template .sticky rule that bleeds into atlas-navbar */
.atlas-navbar.sticky,
.atlas-navbar.scrolled {
  background: #ffffff !important;
  box-shadow: 0 4px 20px rgba(1,0,67,0.1) !important;
  border-bottom: 1px solid rgba(1,0,67,0.08) !important;
}

/* Additional mobile fixes */
@media (max-width: 768px) {
  .atlas-nav-cta { display: none; }
  .atlas-navbar { padding: 0 16px; height: 68px; }
  .atlas-navbar.scrolled { height: 60px; }
  body { padding-top: 68px; }
  .atlas-nav-logo img { height: 40px; }
}

@media (max-width: 480px) {
  .atlas-drawer { width: 95vw; }
  .atlas-drawer-nav > a { padding: 11px 14px; font-size: 14px; }
}
