/* ============================================
   HEADER.CSS - Topbar, Main Header, Nav, Dropdowns
   ============================================ */

/* ============================================
   TOP BAR
   ============================================ */
.topbar {
  background: var(--navy);
  font-size: 12px;
  font-weight: 400;
  position: relative;
  z-index: 1001;
}

/* Gold accent line at bottom */
.topbar::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--gold-dark) 20%,
    var(--gold) 50%,
    var(--gold-dark) 80%,
    transparent 100%
  );
  opacity: .6;
  z-index: 1;
}

.topbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  gap: 20px;
  position: relative;
}

/* Left - Contact Numbers */
.topbar-left {
  display: flex;
  align-items: center;
  gap: 0;
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .7);
  transition: all var(--transition);
  padding: 5px 14px;
  position: relative;
}

.topbar-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 20px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(var(--gold-rgb), .3),
    transparent
  );
}

.topbar-item:last-child::after {
  display: none;
}

.topbar-item:hover {
  color: var(--white);
  background: rgba(255, 255, 255, .04);
}

.topbar-item svg {
  width: 14px;
  height: 14px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.topbar-item-label {
  color: rgba(255, 255, 255, .4);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.topbar-item-numbers {
  color: var(--white);
  font-weight: 500;
  font-size: 12.5px;
}

/* Center - Decorative Line */
.topbar-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 20px;
}

.topbar-center-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--gold-rgb), .25),
    transparent
  );
}

.topbar-center-text {
  font-size: 10px;
  color: rgba(255, 255, 255, .35);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 500;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-center-text::before,
.topbar-center-text::after {
  content: '';
  width: 4px;
  height: 4px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  opacity: .5;
}

/* Right - Helpline + Social */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 0;
}

.topbar-helpline {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .7);
  padding: 5px 14px;
  position: relative;
  transition: all var(--transition);
}

.topbar-helpline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 20px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(var(--gold-rgb), .3),
    transparent
  );
}

.topbar-helpline:hover {
  color: var(--white);
  background: rgba(255, 255, 255, .04);
}

.topbar-helpline-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background: linear-gradient(135deg, rgba(var(--gold-rgb), .15), rgba(var(--gold-rgb), .08));
  border: 1px solid rgba(var(--gold-rgb), .25);
  border-radius: var(--radius-full);
  color: var(--gold);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.topbar-helpline-badge svg {
  width: 12px;
  height: 12px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 2;
}

.topbar-helpline-num {
  color: var(--white);
  font-weight: 500;
  font-size: 12.5px;
}

/* Social Icons */
.topbar-social {
  display: flex;
  align-items: center;
  gap: 2px;
  padding-left: 14px;
  margin-left: 4px;
  border-left: 1px solid rgba(var(--gold-rgb), .2);
}

.topbar-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: rgba(255, 255, 255, .4);
  transition: all var(--transition);
}

.topbar-social a:hover {
  color: var(--gold);
  background: rgba(var(--gold-rgb), .1);
}

.topbar-social a svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* ============================================
   MAIN HEADER
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all var(--transition);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: rgba(var(--navy-rgb), .05);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  transition: height var(--transition);
}

.header.scrolled .header-inner {
  height: var(--header-h-sm);
}

/* ============================================
   LOGO
   ============================================ */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 38px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  transition: height var(--transition);
}

.header.scrolled .logo img {
  height: 34px;
}

/* ============================================
   DESKTOP NAV
   ============================================ */
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-item {
  position: relative;
}

.nav-item::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
  z-index: 5;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
  user-select: none;
}

.nav-link:hover {
  color: var(--gold-dark);
  background: rgba(var(--gold-rgb), .06);
}

.nav-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  transition: transform var(--transition);
}

.nav-item:hover > .nav-link svg {
  transform: rotate(180deg);
}

/* ============================================
   DROPDOWN
   ============================================ */
.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  z-index: 20;
  transform: translateX(-50%) translateY(8px);
  min-width: 240px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(var(--navy-rgb), .06);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all .28s var(--ease);
}

.nav-item:hover > .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.dropdown a:hover {
  background: rgba(var(--gold-rgb), .06);
  color: var(--gold-dark);
}

.dropdown a svg {
  width: 16px;
  height: 16px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

/* ============================================
   HEADER CTA BUTTONS
   ============================================ */
.header-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
}

/* ============================================
   MOBILE MENU TOGGLE
   ============================================ */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  background: var(--white);
  transition: all var(--transition);
}

.menu-toggle:hover {
  border-color: var(--gold);
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
  stroke: var(--navy);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}
