/*
 *   @copyright   Copyright (C) 2026 Dynamowebs Private Limited. All rights reserved.
 *   @license     Proprietary and Confidential. Unauthorized copying, distribution, or modification
 *                via any medium is strictly prohibited.
 *   @author      Faisal mehmood awan <faisal.aqurz@gmail.com> | Imran Khan <imran@dynamowebs.com>
 *   @file        site-page-header-v2.css
 *   @modified    2026
 *   @package     Dynamowebs
 *
 */
/* ===================== HEADER TOKENS ===================== */
:root {
  --h-blue:   #1B75BC;
  --h-cyan:   #00AEEF;
  --h-navy:   #0D2240;
  --h-grey:   #555E68;
  --h-light:  #F5F8FC;
  --h-border: #E2EAF2;
  --h-white:  #FFFFFF;
  --h-green:  #16A34A;
}

/* ===================== RESET ===================== */
.t2u-header *, .t2u-header *::before, .t2u-header *::after {
  box-sizing: border-box; margin: 0; padding: 0;
}
.t2u-header { font-family: 'Inter', sans-serif; }

/* ===================== TOP BAR ===================== */
.t2u-topbar {
  background: #0D2240;
  padding: 6px 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.t2u-topbar-left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.t2u-topbar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  white-space: nowrap;
}
.t2u-topbar-item .tbi-icon { font-size: 12px; }
.t2u-topbar-item:hover { color: #00AEEF; }
.t2u-topbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.t2u-tp-star { color: #00B67A; font-size: 11px; letter-spacing: 1px; }
.t2u-tp-text { font-size: 11px; color: rgba(255,255,255,0.65); font-weight: 500; }
.t2u-tp-text strong { color: #fff; font-weight: 700; }

/* ===================== MAIN NAV BAR ===================== */
.t2u-navbar {
  background: #fff;
  border-bottom: 1px solid #E2EAF2;
  padding: 0 72px;
  display: flex;
  align-items: center;
  gap: 0;
  height: 66px;
  position: relative;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(13,34,64,0.06);
}

/* Logo */
.t2u-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 36px;
}
.t2u-logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #1B75BC 0%, #00AEEF 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.t2u-logo-text {
  font-size: 20px;
  font-weight: 800;
  color: #0D2240;
  letter-spacing: -0.3px;
  line-height: 1;
}
.t2u-logo-text span { color: #1B75BC; }

/* Nav links container */
.t2u-nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  height: 100%;
}

/* Individual nav item */
.t2u-nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.t2u-nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  color: #1a2a3a;
  text-decoration: none;
  white-space: nowrap;
  height: 100%;
  transition: color 0.15s;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: 'Inter', sans-serif;
}
.t2u-nav-link:hover,
.t2u-nav-item.active > .t2u-nav-link {
  color: #1B75BC;
  border-bottom-color: #1B75BC;
  /* EDIT (09 Sep 2026): kill the global a:hover{text-decoration:underline}
     from all.css (line 210) which had higher specificity than the base
     .t2u-nav-link's text-decoration:none — leaving TWO underlines on hover
     (the styled border-bottom + the browser/text underline). */
  text-decoration: none;
}
.t2u-nav-chevron {
  font-size: 9px;
  color: #888;
  transition: transform 0.2s;
  line-height: 1;
  margin-top: 1px;
}
.t2u-nav-item:hover .t2u-nav-chevron { transform: rotate(180deg); color: #1B75BC; }

/* Nav right (CTA buttons) */
.t2u-nav-ctas {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}
.t2u-btn-ghost {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #0D2240;
  background: none;
  border: 1.5px solid #D9E3EC;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.t2u-btn-ghost:hover { border-color: #1B75BC; color: #1B75BC; }
.t2u-btn-primary {
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: #1B75BC;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.t2u-btn-primary:hover { background: #155a94; }
.t2u-btn-primary .btn-icon { font-size: 14px; }

/* ===================== MEGA DROPDOWN ===================== */
.t2u-dropdown {
  position: absolute;
  top: calc(100% + 1px);
  left: 50%;
  transform: translateX(-50%);
  width: 860px;
  background: #fff;
  border: 1px solid #E2EAF2;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(13,34,64,0.14), 0 4px 16px rgba(13,34,64,0.06);
  padding: 28px;
  display: none;
  z-index: 2000;
  opacity: 0;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity 0.18s, transform 0.18s;
}
.t2u-nav-item:hover .t2u-dropdown,
.t2u-nav-item:focus-within .t2u-dropdown {
  display: block;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Arrow pointing up */
.t2u-dropdown::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 13px; height: 7px;
  background: #fff;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  filter: drop-shadow(0 -2px 1px rgba(0,0,0,0.04));
}

/* Simple dropdown (non-mega) */
.t2u-simple-dropdown {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  width: 220px;
  background: #fff;
  border: 1px solid #E2EAF2;
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(13,34,64,0.12);
  padding: 8px;
  display: none;
  z-index: 2000;
}
.t2u-nav-item:hover .t2u-simple-dropdown,
.t2u-nav-item:focus-within .t2u-simple-dropdown {
  display: block;
}
.t2u-sd-link {
  display: block;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #1a2a3a;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.12s, color 0.12s;
}
.t2u-sd-link:hover { background: #EBF5FF; color: #1B75BC; }

/* Mega grid */
.t2u-mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.t2u-mega-col {
  padding: 0 20px;
  border-right: 1px solid #F0F4F8;
}
.t2u-mega-col:first-child { padding-left: 0; }
.t2u-mega-col:last-child { padding-right: 0; border-right: none; }

/* Section header inside mega */
.t2u-mega-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid #EBF5FF;
}
.t2u-mega-icon {
  width: 30px; height: 30px;
  background: #EBF5FF;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.t2u-mega-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #1B75BC;
  line-height: 1.2;
}

/* Sub-links inside mega */
.t2u-mega-link {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.12s;
  margin-bottom: 2px;
}
.t2u-mega-link:hover { background: #F5F8FC; }
.t2u-mega-link-dot {
  width: 5px; height: 5px;
  background: #C4D5E5;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
  transition: background 0.12s;
}
.t2u-mega-link:hover .t2u-mega-link-dot { background: #1B75BC; }
.t2u-mega-link-body {}
.t2u-mega-link-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #0D2240;
  display: block;
  line-height: 1.3;
  margin-bottom: 1px;
}
.t2u-mega-link:hover .t2u-mega-link-title { color: #1B75BC; }
.t2u-mega-link-desc {
  font-size: 11px;
  color: #7A8899;
  line-height: 1.4;
  display: block;
}

/* Mega footer promo strip */
.t2u-mega-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #EEF2F7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.t2u-mega-promo {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #EBF5FF;
  border: 1px solid #BFDBFE;
  border-radius: 8px;
  padding: 10px 14px;
  flex: 1;
  text-decoration: none;
  transition: background 0.12s;
}
.t2u-mega-promo:hover { background: #DBEAFE; }
.t2u-mega-promo-icon { font-size: 18px; }
.t2u-mega-promo-text { font-size: 12px; font-weight: 600; color: #0D2240; line-height: 1.3; }
.t2u-mega-promo-text span { font-size: 11px; font-weight: 500; color: #555E68; display: block; }
.t2u-mega-promo-arr { font-size: 14px; color: #1B75BC; margin-left: auto; }

/* ===================== MOBILE HAMBURGER ===================== */
.t2u-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  margin-left: auto;
}
.t2u-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: #0D2240;
  border-radius: 2px;
  transition: all 0.22s;
}
.t2u-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.t2u-hamburger.open span:nth-child(2) { opacity: 0; }
.t2u-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== MOBILE MENU ===================== */
.t2u-mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 9999;
  overflow-y: auto;
  padding-top: 66px;
  flex-direction: column;
}
.t2u-mobile-menu.open { display: flex; }
.t2u-mm-inner { padding: 16px 20px 40px; }
.t2u-mm-link {
  display: block;
  padding: 13px 4px;
  font-size: 15px;
  font-weight: 600;
  color: #0D2240;
  text-decoration: none;
  border-bottom: 1px solid #EEF2F7;
}
.t2u-mm-link:hover { color: #1B75BC; }
.t2u-mm-section { margin-top: 20px; }
.t2u-mm-section-head {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #1B75BC;
  padding: 8px 4px 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.t2u-mm-section-head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #E2EAF2;
}
.t2u-mm-sub {
  display: block;
  padding: 10px 4px 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #1a2a3a;
  text-decoration: none;
  border-bottom: 1px solid #F5F8FC;
}
.t2u-mm-sub:hover { color: #1B75BC; }
.t2u-mm-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 0 0;
}
.t2u-mm-btn-ghost {
  display: block;
  text-align: center;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #0D2240;
  border: 1.5px solid #D9E3EC;
  border-radius: 8px;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}
.t2u-mm-btn-primary {
  display: block;
  text-align: center;
  padding: 13px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: #1B75BC;
  border-radius: 8px;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}

/* Mobile close bar */
.t2u-mm-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 66px;
  background: #fff;
  border-bottom: 1px solid #E2EAF2;
  display: flex;
  align-items: center;
  padding: 0 20px;
  justify-content: space-between;
  z-index: 10000;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .t2u-topbar { padding: 6px 28px; }
  .t2u-navbar { padding: 0 28px; }
  .t2u-topbar-left { gap: 14px; }
}
@media (max-width: 768px) {
  .t2u-topbar { display: none; }
  .t2u-navbar { padding: 0 20px; height: 60px; }
  .t2u-nav-links,
  .t2u-nav-ctas { display: none; }
  .t2u-hamburger { display: flex; }
  .t2u-logo-text { font-size: 18px; }
}
