/* ==========================================================================
   HEADER & NAVIGATION STYLESHEET
   ========================================================================== */

/* Top Contact Bar */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 38px;
  background-color: var(--primary-navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  z-index: 2001;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: block;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  height: 100%;
}

.top-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.top-info-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.top-info-item i {
  color: var(--accent-yellow);
}

.top-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.top-social a {
  color: var(--accent-yellow);
  background: rgba(255, 255, 255, 0.08);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: var(--transition);
  border: 1px solid rgba(255, 122, 0, 0.25);
}

.top-social a:hover {
  background: var(--accent-yellow);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 122, 0, 0.35);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.phone-link {
  color: var(--accent-yellow);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.phone-link:hover {
  color: var(--bg-white);
}

/* Main Navigation Bar - Pinned Directly Below Top Bar */
.navbar {
  position: fixed;
  top: 38px;
  left: 0;
  width: 100%;
  z-index: 2000;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(14, 41, 75, 0.12);
  border-bottom: 2px solid var(--accent-yellow);
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 52px;
  width: auto;
  border-radius: var(--radius-sm);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--primary-dark-blue);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand-name span {
  color: var(--accent-yellow);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary-dark-blue);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background-color: var(--accent-yellow);
  border-radius: 2px;
  transition: var(--transition);
}

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

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-dark-blue);
  cursor: pointer;
}

/* Header Responsive Media Queries */
@media (max-width: 992px) {
  .top-info {
    gap: 1rem;
    font-size: 0.8rem;
  }
  .nav-menu {
    gap: 1.25rem;
  }
  .nav-link {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .top-bar { display: none; }
  .navbar { position: fixed; top: 0 !important; }
  .navbar .container,
  .navbar nav { 
    position: static; 
    height: 70px;
  }
  .logo-img { height: 44px; }
  .brand-name { font-size: 1.15rem; }
  .hamburger { 
    display: block; 
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    z-index: 1600;
  }
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    width: 100vw;
    height: calc(100vh - 70px);
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    gap: 1.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1500;
    overflow-y: auto;
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease, visibility 0.35s ease;
    margin: 0;
    box-sizing: border-box;
  }
  .nav-menu.active { 
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-link {
    width: 100%;
    font-size: 1.1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--primary-dark-blue);
    display: block;
    text-align: left;
  }
  .nav-cta { display: none; }
}

@media (max-width: 400px) {
  .logo-brand { gap: 0.4rem; }
  .logo-img { height: 38px; }
  .brand-name { font-size: 1rem; }
}

/* Dropdown Styles */
.nav-item.dropdown {
  position: relative;
}

.dropdown-icon {
  font-size: 0.75rem;
  margin-left: 4px;
  transition: transform 0.3s ease;
}

.nav-item.dropdown:hover .dropdown-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: rgba(5, 19, 41, 0.95);
  backdrop-filter: blur(10px);
  min-width: 280px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  padding: 1rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2000;
  list-style: none;
  border-top: 3px solid var(--accent-yellow);
}

.nav-item.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.85rem 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  font-weight: 500;
  text-decoration: none;
  position: relative;
}

.dropdown-menu a i {
  color: var(--accent-yellow);
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.dropdown-menu a:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  padding-left: 1.8rem;
}

.dropdown-menu a:hover i {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .nav-item.dropdown {
    width: 100%;
  }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding-left: 1rem;
    display: none;
    background-color: rgba(0,0,0,0.15);
    border-top: none;
  }
  .nav-item.dropdown:hover .dropdown-menu,
  .nav-item.dropdown.open .dropdown-menu {
    display: block;
  }
  .nav-item.dropdown > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}
