/* ============================= */
/* WTE HEADER.CSS - CLEAN VERSION */
/* ============================= */

#navbar{
  position:fixed;
  inset:0 0 auto;
  z-index:1000;
  height:76px;
  display:flex;
  align-items:center;
  background:transparent;
  transition:background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
  overflow:visible;
}

#navbar.scrolled{
  background:rgba(10,22,40,.92);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  box-shadow:0 8px 30px rgba(0,0,0,.28);
}

/* ============================= */
/* NAV LAYOUT */
/* ============================= */

.nav-inner{
  position:relative;
  max-width:1440px;
  width:100%;
  margin:0 auto;
  padding:0 22px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:18px;
}

.nav-logo{
  display:flex;
  align-items:center;
  gap:0;
  flex-shrink:0;
  min-width:0;
}

.logo-box{
  width:74px;
  height:50px;
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
  padding:0 !important;
  border-radius:0 !important;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:visible !important;
  flex-shrink:0;
}

.logo-box img{
  width:100%;
  height:100%;
  object-fit:contain;
  filter:none !important;
}

.logo-fallback{
  width:100%;
  height:100%;
  border-radius:8px;
  background:linear-gradient(135deg,#1ab4e8,#0a5f8a);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-family:'Montserrat',sans-serif;
  font-weight:900;
  font-size:.88rem;
}

/* ============================= */
/* DESKTOP MENU */
/* ============================= */

.nav-links{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex:1;
  min-width:0;
}

.nav-item{
  position:relative;
  display:flex;
  align-items:center;
}

.nav-links a,
.nav-item > a{
  display:inline-flex;
  align-items:center;
  padding:8px 10px;
  border-radius:10px;
  font-size:.78rem;
  font-weight:600;
  color:rgba(255,255,255,.76);
  transition:all .2s ease;
  white-space:nowrap;
}

.nav-links a:hover,
.nav-item > a:hover{
  color:#fff;
  background:rgba(26,180,232,.14);
}

.dropdown-arrow{
  display:inline-block;
  margin-left:6px;
  font-size:.7rem;
  transition:transform .25s ease;
}

.nav-item:hover .dropdown-arrow{
  transform:rotate(180deg);
}

/* ============================= */
/* RIGHT SIDE */
/* ============================= */

.nav-right{
  display:flex;
  align-items:center;
  gap:12px;
  flex-shrink:0;
}

.nav-phone{
  display:flex;
  align-items:center;
  gap:8px;
  color:rgba(255,255,255,.72);
  font-size:.74rem;
  white-space:nowrap;
}

.nav-phone svg{
  color:#1ab4e8;
}

.btn-quote{
  background:linear-gradient(135deg,#4caf50,#2e7d32);
  color:#fff;
  box-shadow:0 8px 24px rgba(76,175,80,.35);
  border:none;
  padding:12px 20px;
}

.btn-quote:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 30px rgba(76,175,80,.45);
}

/* ============================= */
/* SIMPLE DROPDOWN */
/* ============================= */

.simple-dropdown{
  position:absolute;
  top:calc(100% + 12px);
  left:50%;
  transform:translateX(-50%) translateY(8px);
  min-width:240px;
  background:linear-gradient(180deg,#03162b 0%, #041b34 100%);
  border:1px solid rgba(26,180,232,.16);
  border-radius:16px;
  box-shadow:0 24px 60px rgba(0,0,0,.34);
  padding:10px;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .22s ease, transform .22s ease, visibility .22s ease;
  z-index:99999;
}

.simple-dropdown::before{
  content:"";
  position:absolute;
  top:-8px;
  left:50%;
  width:16px;
  height:16px;
  background:#041b34;
  border-left:1px solid rgba(26,180,232,.16);
  border-top:1px solid rgba(26,180,232,.16);
  transform:translateX(-50%) rotate(45deg);
  z-index:0;
  pointer-events:none;
}

.simple-dropdown a{
  position:relative;
  z-index:2;
  display:block;
  padding:10px 14px;
  font-size:.84rem;
  font-weight:500;
  color:rgba(255,255,255,.82);
  border-radius:10px;
  transition:color .2s ease, background .2s ease, transform .2s ease;
}

.simple-dropdown a:hover{
  color:#fff;
  background:rgba(26,180,232,.14);
  transform:translateX(4px);
}

.company-dropdown:hover .simple-dropdown,
.client-dropdown:hover .simple-dropdown,
.projects-dropdown:hover .simple-dropdown,
.updates-dropdown:hover .simple-dropdown{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateX(-50%) translateY(0);
}

/* ============================= */
/* MEGA MENU */
/* ============================= */

.mega-dropdown{
  position:relative;
}

.nav-item::after{
  content:'';
  position:absolute;
  left:0;
  right:0;
  top:100%;
  height:18px;
  background:transparent;
}

.mega-menu{
  position:fixed !important;
  top:66px !important;
  left:50% !important;
  right:auto !important;
  transform:translateX(-50%) translateY(8px) !important;
  width:min(1120px, calc(100vw - 48px)) !important;
  max-width:1120px !important;
  margin-top:0 !important;
  background:linear-gradient(180deg,#03162b 0%, #041b34 100%);
  border:1px solid rgba(26,180,232,.16);
  border-radius:20px;
  box-shadow:0 24px 60px rgba(0,0,0,.34);
  padding:28px;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .22s ease, visibility .22s ease, transform .22s ease;
  overflow:visible !important;
  z-index:99999 !important;
}

.mega-dropdown .mega-menu::before{
  content:"";
  position:absolute;
  top:-8px;
  left:190px;
  width:16px;
  height:16px;
  background:#041b34;
  border-left:1px solid rgba(26,180,232,.16);
  border-top:1px solid rgba(26,180,232,.16);
  transform:rotate(45deg);
  z-index:0;
  pointer-events:none;
}

.mega-dropdown:hover .mega-menu{
  opacity:1 !important;
  visibility:visible !important;
  pointer-events:auto !important;
  transform:translateX(-50%) translateY(0) !important;
}

.mega-menu-grid{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:34px;
}

.mega-col h4{
  margin:0 0 14px;
  font-family:'Montserrat',sans-serif;
  font-size:1.05rem;
  font-weight:800;
  line-height:1.1;
  color:#12c5ff;
}

.mega-col a{
  display:block;
  color:rgba(255,255,255,.82);
  font-size:.94rem;
  line-height:1.45;
  padding:6px 0;
  transition:color .2s ease, transform .2s ease;
}

.mega-col a:hover{
  color:#fff;
  transform:translateX(4px);
  background:none;
}

/* ============================= */
/* SMALL DESKTOP FIX */
/* ============================= */

@media (min-width:1025px) and (max-width:1280px){
  .nav-inner{
    padding:0 14px;
    gap:10px;
  }

  .logo-box{
    width:68px;
    height:46px;
  }

  .nav-links{
    gap:4px;
  }

  .nav-links a,
  .nav-item > a{
    font-size:.72rem;
    padding:8px 6px;
  }

  .nav-phone{
    display:none;
  }

  .nav-right{
    gap:8px;
  }

  .nav-right .btn-quote{
    padding:9px 15px !important;
    font-size:.72rem !important;
  }

  .mega-menu{
    width:calc(100vw - 32px) !important;
    padding:24px;
  }

  .mega-menu-grid{
    gap:24px;
  }

  .mega-col h4{
    font-size:.96rem;
  }

  .mega-col a{
    font-size:.86rem;
  }
}

/* ============================= */
/* TABLET / MOBILE HEADER */
/* ============================= */

.hamburger{
  display:none;
  flex-direction:column;
  gap:5px;
  padding:6px;
}

.hamburger span{
  width:22px;
  height:2px;
  background:#fff;
  border-radius:2px;
  transition:.3s;
}

.mobile-menu{
  display:none;
  position:fixed;
  top:76px;
  left:0;
  right:0;
  bottom:0;
  background:rgba(10,22,40,.98);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  z-index:1002;
  padding:22px clamp(16px,5vw,36px);
  overflow-y:auto;
}

.mobile-menu.open{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.mobile-menu > a,
.mobile-dropdown-toggle{
  padding:14px 16px;
  border-radius:10px;
  color:rgba(255,255,255,.82);
  border:1px solid rgba(255,255,255,.05);
  background:rgba(255,255,255,.03);
  display:flex;
  align-items:center;
  justify-content:space-between;
  font:inherit;
}

.mobile-menu > a:hover,
.mobile-dropdown-toggle:hover{
  background:rgba(26,180,232,.12);
  color:#fff;
}

.mobile-dropdown{
  border:1px solid rgba(255,255,255,.05);
  border-radius:12px;
  background:rgba(255,255,255,.02);
  overflow:hidden;
}

.mobile-dropdown-toggle{
  width:100%;
  border:none;
  border-radius:0;
  background:transparent;
  cursor:pointer;
}

.mobile-dropdown-menu{
  display:none;
  padding:0 10px 10px;
}

.mobile-dropdown.open .mobile-dropdown-menu{
  display:block;
}

.mobile-dropdown-menu a,
.mobile-dropdown-menu strong{
  display:block;
  padding:10px 12px;
  border-radius:8px;
  color:rgba(255,255,255,.8);
}

.mobile-dropdown-menu a{
  background:rgba(255,255,255,.03);
  margin-top:6px;
}

.mobile-dropdown-menu a:hover{
  background:rgba(26,180,232,.12);
  color:#fff;
}

.mobile-dropdown-menu strong{
  padding-top:14px;
  color:#12c5ff;
  font-family:'Montserrat',sans-serif;
  font-size:.84rem;
}

.mobile-menu .btn{
  margin-top:12px;
}

/* ============================= */
/* MOBILE BREAKPOINT */
/* ============================= */

@media (max-width:1024px){
  #navbar{
    height:72px !important;
    background:rgba(4,22,43,.96) !important;
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
    box-shadow:0 8px 24px rgba(0,0,0,.18);
  }

  .nav-inner{
    grid-template-columns:auto 1fr auto !important;
    padding:0 14px !important;
    gap:12px !important;
  }

  .logo-box{
    width:70px;
    height:48px;
  }

  .nav-links,
  .nav-phone,
  .nav-right > .btn-quote{
    display:none !important;
  }

  .nav-right{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:0 !important;
  }

  #hamburger.hamburger,
  .hamburger{
    display:flex !important;
    width:44px !important;
    height:44px !important;
    padding:0 !important;
    margin-left:auto !important;
    align-items:center !important;
    justify-content:center !important;
    background:rgba(255,255,255,.05) !important;
    border:1px solid rgba(255,255,255,.10) !important;
    border-radius:10px !important;
    position:relative !important;
    z-index:1003 !important;
  }

  .mobile-menu{
    top:72px !important;
    padding:16px !important;
    padding-bottom:120px !important;
  }

  .mobile-menu > a,
  .mobile-dropdown-toggle{
    font-size:1rem !important;
    font-weight:700 !important;
    line-height:1.35 !important;
    min-height:56px !important;
    padding:16px !important;
    border-radius:14px !important;
  }

  .mobile-dropdown-menu{
    padding:4px 10px 12px !important;
  }

  .mobile-dropdown.open .mobile-dropdown-menu{
    display:grid !important;
    gap:6px !important;
  }

  .mobile-dropdown-menu a,
  .mobile-dropdown-menu strong{
    padding:12px 14px !important;
    border-radius:10px !important;
    line-height:1.4 !important;
  }
}

@media (max-width:768px){
  body{
    overflow-x:hidden !important;
  }

  .logo-box{
    width:66px;
    height:46px;
  }
}

@media (max-width:480px){
  .nav-inner{
    padding:0 12px !important;
  }

  .logo-box{
    width:62px;
    height:44px;
  }
}

/* FINAL S24 ULTRA MOBILE MENU FIX */
@media(max-width:1024px){

  .mobile-menu{
    top:72px !important;
    bottom:0 !important;
    height:calc(100vh - 72px) !important;
    overflow-y:auto !important;
    padding:22px 16px 140px !important;
    gap:12px !important;
  }

  .mobile-menu > a,
  .mobile-dropdown-toggle{
    min-height:58px !important;
    height:auto !important;
    padding:16px 18px !important;
    font-size:18px !important;
    line-height:1.35 !important;
    overflow:visible !important;
  }

  .mobile-dropdown{
    height:auto !important;
    min-height:auto !important;
    overflow:visible !important;
  }

  .mobile-dropdown-menu{
    height:auto !important;
    max-height:none !important;
    overflow:visible !important;
  }
}

