/* Premium navbar — actions in topbar, single-row menu on desktop */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: #fff;
  box-shadow: 0 8px 32px rgba(11, 21, 58, 0.08);
  overflow: visible;
}

.site-header.nav-menu-open {
  z-index: 300;
}

/* Top bar: tagline + Call / Apply / IG */
.topbar {
  background: linear-gradient(90deg, #0b153a, #0f766e);
  color: #e2e8f0;
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  flex-wrap: wrap;
}

.topbar-tagline {
  flex: 1;
  min-width: 140px;
  line-height: 1.35;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.topbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.topbar-btn:hover {
  transform: translateY(-1px);
}

.topbar-call {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.topbar-apply {
  background: #f59e0b;
  color: #1f2937;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.topbar-ig {
  width: 32px;
  height: 32px;
  padding: 0;
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
  font-size: 0.68rem;
}

.navbar-premium {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  position: relative;
  overflow: visible;
}

.navbar-grid {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  min-height: 68px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
  max-width: min(52%, 380px);
  text-decoration: none;
  color: inherit;
}

.brand-block .brand-logo {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(11, 21, 58, 0.15);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  flex: 1;
  overflow: visible;
}

.brand-short {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  line-height: 1.1;
}

.brand-full {
  font-size: clamp(0.58rem, 1.05vw, 0.88rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--primary);
  white-space: nowrap;
  letter-spacing: -0.02em;
}

/* Single-row navigation */
.nav-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 0 1 auto;
  flex-wrap: nowrap;
  min-width: 0;
}

.nav-item {
  padding: 8px 9px;
  border-radius: 8px;
  font-size: clamp(0.7rem, 0.8vw, 0.84rem);
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.nav-item:hover {
  background: #f1f5f9;
  color: var(--primary);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(11, 21, 58, 0.1), rgba(15, 118, 110, 0.12));
  color: var(--primary);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  z-index: 12;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle[aria-expanded="true"] {
  background: #0f766e;
}

/* Mobile menu backdrop — inside header stacking context */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.45);
  z-index: 1;
  touch-action: manipulation;
}

.nav-overlay.open {
  display: block;
}

body.nav-open {
  overflow: hidden;
}

/* Tablet / mobile */
@media (max-width: 1024px) {
  .brand-block {
    max-width: none;
    flex: 1;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-main {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h, 118px);
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 16px 32px;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 12px 40px rgba(2, 6, 23, 0.15);
    z-index: 10;
    max-height: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto;
  }

  .nav-main.show {
    display: flex;
  }

  .nav-item {
    padding: 16px 18px;
    font-size: 1.05rem;
    border-radius: 10px;
    position: relative;
    z-index: 1;
  }
}

@media (max-width: 640px) {
  .topbar-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .topbar-tagline {
    flex: 1 1 100%;
    text-align: center;
    font-size: 0.68rem;
  }

  .topbar-actions {
    flex: 1 1 100%;
    justify-content: center;
  }

  .brand-block .brand-logo {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  .brand-short {
    display: none;
  }

  .brand-full {
    font-size: clamp(0.5rem, 2.35vw, 0.72rem);
    transform: scale(1);
    transform-origin: left center;
  }
}

@media (max-width: 380px) {
  .brand-full {
    font-size: 0.48rem;
    letter-spacing: -0.03em;
  }
}

/* Wide screens */
@media (min-width: 1280px) {
  .nav-item {
    padding: 9px 11px;
    font-size: 0.86rem;
  }

  .brand-block {
    max-width: 400px;
  }

  .brand-full {
    font-size: 0.88rem;
  }
}

@media (min-width: 1025px) and (max-width: 1279px) {
  .brand-block {
    max-width: 300px;
  }

  .brand-full {
    font-size: 0.72rem;
  }
}
