/* ---------------------------------
   TOP BAR
--------------------------------- */
.top-bar {
  background-color: var(--primary-light);
  color: var(--white);
  padding: 8px 0;
  font-size: 0.85rem;
  font-family: var(--font-body);
}

.top-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.tb-left, .tb-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.tb-left a {
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s ease;
}

.tb-left a:hover {
  opacity: 0.8;
}

.tb-right span {
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
}

/* ---------------------------------
   HEADER CSS (DESKTOP)
--------------------------------- */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: 80px;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
}

.header.scrolled {
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo img {
  height: 60px;
  width: auto;
  display: block;
}

.navbar {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-dark);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.nav-cta .btn-accent {
  background: #E85D04;
  color: #FFFFFF;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background 0.3s ease, transform 0.2s ease;
}

.nav-cta .btn-accent:hover {
  background: #D04F00;
  transform: translateY(-2px);
}

.mobile-menu-btn {
  display: none;
}

.mobile-menu-overlay {
  display: none;
}

/* ---------------------------------
   HEADER CSS (TABLET)
--------------------------------- */
@media (max-width: 900px) {
  .navbar {
    gap: 20px;
  }

  .nav-links {
    gap: 18px;
  }

  .nav-link {
    font-size: 0.85rem;
  }
}

/* ---------------------------------
   HEADER CSS (MOBILE)
--------------------------------- */
@media (max-width: 768px) {
  .navbar {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid rgba(0, 42, 92, 0.2);
    border-radius: 8px;
    cursor: pointer;
    color: var(--primary-color);
    padding: 0;
    z-index: 1001;
    transition: background 0.2s ease, border-color 0.2s ease;
  }

  .mobile-menu-btn:hover {
    background: rgba(0, 42, 92, 0.06);
  }

  .mobile-menu-btn .menu-icon {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    overflow: visible;
  }

  .mobile-menu-btn .menu-icon path {
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(.5,.85,.25,1.1);
  }

  .mobile-menu-btn .menu-icon path.bar-top {
    transform: translateY(-7px);
  }

  .mobile-menu-btn .menu-icon path.bar-bot {
    transform: translateY(7px);
  }

  .mobile-menu-btn[aria-expanded="true"] .menu-icon path.bar-top {
    transform: translateY(0) rotate(315deg);
  }

  .mobile-menu-btn[aria-expanded="true"] .menu-icon path.bar-mid {
    transform: rotate(45deg);
    transition-timing-function: cubic-bezier(.5,.85,.25,1.8);
  }

  .mobile-menu-btn[aria-expanded="true"] .menu-icon path.bar-bot {
    transform: translateY(0) rotate(135deg);
  }

  .mobile-menu-overlay .mobile-menu-btn {
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.4);
  }

  .mobile-menu-overlay .mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: #002A5C;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .mobile-nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .mobile-nav-link {
    color: #FFFFFF;
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
  }

  .mobile-nav-link:hover {
    color: #E85D04;
  }

  .mobile-menu-btn.mb-2 {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 2rem;
  }
}
