/* ============================================================
   UchitTech — Double Navbar  (Trassir-style)
   Save as: navbar.css
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Wrapper ────────────────────────────────────────────────── */
.ut-navbar-wrapper {
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
  font-family: 'Segoe UI', Arial, sans-serif;
}

.ut-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* ── TOP BAR ────────────────────────────────────────────────── */
.ut-topbar {
  background: #12122a;
  height: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ut-topbar .ut-container {
  height: 64px;
  justify-content: space-between;
}

/* Logo */
.ut-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.ut-logo img {
  height: 36px;
  width: auto;
  display: block;
}

/* ── Main Nav ───────────────────────────────────────────────── */
.ut-main-nav { display: flex; align-items: center; height: 64px; }

.ut-nav-list {
  list-style: none;
  display: flex;
  align-items: stretch;
  height: 100%;
}

.ut-nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.ut-nav-item > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 15px;
  color: rgba(255,255,255,0.78);
  font-size: 0.86rem;
  text-decoration: none;
  height: 100%;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}

.ut-nav-item > a:hover,
.ut-nav-item.ut-active > a {
  color: #fff;
  border-bottom-color: #00c3ff;
}

/* Chevron arrow */
.ut-chevron {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  flex-shrink: 0;
}

/* ── Simple Dropdown ────────────────────────────────────────── */
.ut-dropdown {
  position: absolute;
  top: 64px;
  left: 0;
  list-style: none;
  background: #fff;
  min-width: 210px;
  border-top: 3px solid #00c3ff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 500;
}

.ut-has-dropdown:hover > .ut-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ut-dropdown li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  color: #2a2a3a;
  font-size: 0.84rem;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.ut-dropdown li a:hover {
  background: #f0f7ff;
  border-left-color: #00c3ff;
  color: #0a5fa8;
}

/* ── Mega Menu ──────────────────────────────────────────────── */
.ut-mega-menu {
  position: absolute;
  top: 64px;
  left: -30px;
  background: #fff;
  width: 480px;
  border-top: 3px solid #00c3ff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 500;
}

.ut-has-dropdown:hover > .ut-mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ut-mega-inner { padding: 20px 24px 18px; }

.ut-mega-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #aaa;
  margin-bottom: 12px;
}

.ut-mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.ut-mega-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 10px;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.15s;
}

.ut-mega-card:hover { background: #f0f7ff; }

.ut-mega-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #e6f2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #1a6fc4;
}

.ut-mega-icon svg { width: 18px; height: 18px; }

.ut-mega-title {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #12122a;
  line-height: 1.3;
}

.ut-mega-sub {
  display: block;
  font-size: 0.75rem;
  color: #888;
  margin-top: 2px;
  line-height: 1.4;
}

/* ── Topbar Right ───────────────────────────────────────────── */
.ut-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.ut-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.65);
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 0.2s;
}
.ut-phone:hover { color: #fff; }

.ut-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  color: rgba(255,255,255,0.8);
  font-size: 0.82rem;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.ut-btn-outline:hover {
  border-color: #00c3ff;
  color: #fff;
}

.ut-btn-cta {
  display: inline-block;
  padding: 8px 22px;
  background: #00c3ff;
  color: #0a1628;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: background 0.2s, transform 0.1s;
}
.ut-btn-cta:hover {
  background: #00aadc;
  transform: translateY(-1px);
}

/* ── User dropdown (logged-in) ──────────────────────────────── */
.ut-user-dropdown { position: relative; }

.ut-user-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 4px;
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  padding: 7px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s;
}
.ut-user-btn:hover { border-color: #00c3ff; }

.ut-user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  list-style: none;
  background: #fff;
  min-width: 140px;
  border-top: 3px solid #00c3ff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.2s;
  z-index: 600;
}
.ut-user-dropdown:hover .ut-user-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.ut-user-menu li a {
  display: block;
  padding: 11px 18px;
  font-size: 0.84rem;
  text-decoration: none;
  color: #333;
  transition: background 0.15s;
}
.ut-user-menu li a:hover { background: #fff5f5; }

.ut-user-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.8);
  font-size: 0.82rem;
  text-decoration: none;
}
.ut-user-link:hover { color: #fff; }

/* ── SECONDARY BAR ──────────────────────────────────────────── */
.ut-secondbar {
  background: #1c1c38;
  height: 42px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.ut-secondbar .ut-container {
  height: 42px;
  justify-content: flex-start;
  gap: 0;
  padding: 0 2rem;
}

.ut-sec-list {
  display: flex;
  align-items: stretch;
  list-style: none;
  height: 100%;
  gap: 0;
}

.ut-sec-list li {
  display: flex;
  align-items: center;
}

.ut-sec-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  color: rgba(255,255,255,0.55);
  font-size: 0.8rem;
  text-decoration: none;
  height: 100%;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.ut-sec-link:hover {
  color: #00c3ff;
  border-bottom-color: #00c3ff;
}

/* Divider dots between secondary links */
.ut-sec-list li + li::before {
  content: '';
  display: block;
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

/* ── Hamburger (mobile) ─────────────────────────────────────── */
.ut-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  cursor: pointer;
  padding: 6px;
}
.ut-hamburger span {
  display: block;
  height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.ut-ham-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ut-ham-active span:nth-child(2) { opacity: 0; }
.ut-ham-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .ut-phone { display: none; }
  .ut-nav-item > a { padding: 0 10px; font-size: 0.82rem; }
}

@media (max-width: 860px) {
  .ut-hamburger { display: flex; }
  .ut-main-nav {
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: #fff;
    height: auto;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    z-index: 400;
  }
  .ut-main-nav.ut-nav-open { max-height: 600px; overflow-y: auto; }

  .ut-nav-list {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    padding: 8px 0 16px;
  }

  .ut-nav-item > a {
    height: 46px;
    padding: 0 24px;
    border-bottom: none;
    border-left: 3px solid transparent;
    font-size: 0.9rem;
  }
  .ut-nav-item > a:hover { border-left-color: #00c3ff; }

  .ut-dropdown,
  .ut-mega-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    border-left: 3px solid #00c3ff;
    margin-left: 24px;
    width: auto;
  }

  .ut-dropdown li a {
    padding: 10px 20px;
    font-size: 0.85rem;
    background: transparent;
    color: rgba(255,255,255,0.65);
  }
  .ut-dropdown li a:hover { color: #fff; background: rgba(255,255,255,0.05); }

  .ut-mega-inner { padding: 12px 16px; }
  .ut-mega-grid { grid-template-columns: 1fr; }
  .ut-mega-card { padding: 8px; }
  .ut-mega-title { color: rgba(255,255,255,0.8); }
  .ut-mega-sub { color: rgba(255,255,255,0.45); }
  .ut-mega-icon { background: rgba(0,195,255,0.1); color: #00c3ff; }

  .ut-secondbar { display: none; }
}

@media (max-width: 520px) {
  .ut-container { padding: 0 1rem; }
  .ut-btn-cta { padding: 7px 14px; font-size: 0.78rem; }
  .ut-btn-outline { display: none; }
}
