/* =====================================================
   PREMIUM OVERRIDES — HEADER + FOOTER
   Compatible with your existing classes & JS:
   .sidebar-open (body) + .overlay + .hamburger.is-active
   ===================================================== */

/* ---------- Design tokens (safe defaults) ---------- */
:root{
  --ufz-accent: #2f6fed;
  --ufz-hover-1: #4f8bff;
  --ufz-hover-2: #7c5cff;

  --ufz-heading: #0b1220;
  --ufz-text: #475569;
  --ufz-muted: #64748b;

  --ufz-border: rgba(15,23,42,.10);
  --ufz-shadow: 0 18px 50px rgba(2, 6, 23, 0.10);
  --ufz-shadow-soft: 0 12px 34px rgba(2, 6, 23, 0.08);

  --ufz-radius: 18px;
  --ufz-radius-sm: 12px;
}

/* ---------- Overlay (keep your existing logic) ---------- */
.overlay{
  background: rgba(2, 6, 23, 0.45) !important;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 9998;
}

/* =====================================================
   HEADER
   ===================================================== */

/* Make header premium glass & tighter */
.header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  padding: 46px 0 0 !important; /* keeps upper_row space */
  background: transparent;
  transition: .25s ease;
}

/* Upper row: clean + subtle */
.header .upper_row{
  background: #eef1f7 !important;
  border-bottom: 1px solid rgba(15,23,42,.06);
  padding: 10px 0 !important;
}

.header p{
  font-family: "Poppins", sans-serif;
  font-size: 13px !important;
  line-height: 1.4 !important;
  color: var(--ufz-text) !important;
  gap: 10px !important;
}

.header p::before{
  background-color: var(--ufz-accent) !important;
  width: 9px !important;
  height: 9px !important;
}

/* Main bar style on scroll */
.header.scrolled_header{
  background: rgba(255,255,255,.86) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 46px 0 14px !important;
  border-bottom: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 16px 40px rgba(2,6,23,.10) !important;
}

.header.scrolled_header a{
  color: var(--ufz-heading) !important;
}

/* header layout */
.row-wrap{
  padding: 14px 0;
  gap: 14px;
}

/* Logo */
.row-wrap .logo-wrap a img{
  width: auto !important;
  height: 46px;
  max-width: 190px;
  object-fit: contain;
}

/* Nav wrap */
.header .nav-wrap{
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Nav list */
.nav-list{
  gap: 16px !important;
}

.nav-list li{
  padding: 0 !important;
}

.header li a{
  font-family: "Poppins", sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  color: #fff !important; /* default state (hero) */
  padding: 12px 12px !important;
  border-radius: 12px;
  transition: .2s ease;
}

/* On scroll, nav links become dark */
.header.scrolled_header li a{
  color: var(--ufz-heading) !important;
}

/* Hover */
.nav-list li a:hover{
  opacity: 1 !important;
  background: rgba(47,111,237,.08);
  color: var(--ufz-accent) !important;
}

/* Current item */
.nav-list .current-menu-item > a{
  border: 1px solid rgba(47,111,237,.16);
  color: var(--ufz-accent) !important;
  font-weight: 700 !important;
}

/* Remove underline bar effect from old theme */
.nav-list .current-menu-item::after{
  content: none !important;
}

/* Dropdown arrow placement */
.header .nav-wrap .menu-item-has-children::before{
  right: -2px !important;
  top: 12px !important;
  opacity: .8;
}

/* Dropdown panel */
.header .nav-wrap .menu-item-has-children .sub-menu{
  top: 54px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(15,23,42,.10) !important;
  box-shadow: var(--ufz-shadow) !important;
  padding: 14px 14px !important;
}

/* Dropdown links */
.header .sub-menu li a{
  border-radius: 12px;
  padding: 10px 12px !important;
  font-family: "Poppins", sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--ufz-heading) !important;
}

.header .nav-wrap .menu-item-has-children .sub-menu li{
  background: transparent !important;
}

.header .nav-wrap .menu-item-has-children .sub-menu li a:hover{
  background: rgba(47,111,237,.08) !important;
  color: var(--ufz-accent) !important;
}

/* Nested sub-menu items */
.header .nav-wrap .menu-item-has-children .sub-menu li .sub-menu li{
  background: #f7faff !important;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.06);
}

/* CTA button (if you have header_btn OR cta-button) */
.header .header_btn a,
.header .nav-wrap .cta-button{
  background: #fff !important;
  color: var(--ufz-accent) !important;
  border: 1px solid rgba(47,111,237,.28) !important;
  border-radius: 14px !important;
  padding: 12px 18px !important;
  font-family: "Nunito", sans-serif !important;
  font-weight: 900 !important;
  box-shadow: 0 14px 30px rgba(47,111,237,.12);
  transition: .25s ease;
}

/* CTA hover */
.header .header_btn a:hover,
.header .nav-wrap .cta-button:hover{
  background: linear-gradient(90deg, var(--ufz-hover-1), var(--ufz-hover-2)) !important;
  color: #fff !important;
  border-color: transparent !important;
  transform: translateY(-2px);
  opacity: 1 !important;
}

/* Hamburger button premium */
.hamburger{
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0;
}

.header.scrolled_header .hamburger{
  background: #fff;
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 10px 22px rgba(2,6,23,.08);
}

.hamburger .line{
  background-color: #fff !important;
  width: 18px !important;
  margin: 3px 0 !important;
  border-radius: 99px;
}

.header.scrolled_header .hamburger .line{
  background-color: var(--ufz-heading) !important;
}

/* =====================================================
   MOBILE NAV (uses your .sidebar-open on body)
   ===================================================== */
@media (max-width: 980px){
  .hamburger{ display: flex; }
.nav-list .current-menu-item > a ,.header li a{
  background: #fff  !important;
}
  /* Convert nav to slide-down panel */
  .header .nav-wrap{
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    padding: 96px 18px 22px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(15,23,42,.10);
    box-shadow: 0 24px 60px rgba(2,6,23,.14);

    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: .28s ease;
    z-index: 9999;
  }

  /* Open state */
  .sidebar-open .header .nav-wrap{
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list{
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .nav-list li{
    justify-content: flex-start !important;
  }

  .header li a{
    width: 100%;
    color: var(--ufz-heading) !important;
    background: #fff;
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 10px 20px rgba(2,6,23,.05);
    padding: 14px 14px !important;
  }

  .nav-list li a:hover{
    background: rgba(47,111,237,.08) !important;
  }

  /* Hide large mega dropdown layout on mobile (optional) */
  .header .nav-wrap .menu-item-has-children .sub-menu{
    position: static !important;
    width: 100% !important;
    box-shadow: none !important;
    border: 0 !important;
    padding: 8px 0 0 !important;
    background: transparent !important;
    display: none; /* keep closed unless your JS opens it */
  }
}

/* =====================================================
   FOOTER — Premium dark with subtle gradients
   ===================================================== */
footer .upper_footer{
  background:
    radial-gradient(900px 420px at 15% 0%, rgba(79,139,255,.10), transparent 60%),
    radial-gradient(900px 420px at 85% 0%, rgba(124,92,255,.08), transparent 60%),
    #0b1220 !important;
  padding: 70px 0 56px !important;
  border-top: 1px solid rgba(255,255,255,.08);
}

footer .footer_logo{
  width: auto !important;
  max-width: 220px;
  height: 56px;
  object-fit: contain;
}

footer .upper_footer .content_box{
  border-bottom: 1px solid rgba(255,255,255,.10) !important;
  padding-bottom: 34px !important;
}

/* Social buttons premium */
footer .upper_footer .social_links{
  gap: 12px !important;
}

footer .upper_footer .social_links li{
  width: 44px !important;
  height: 44px !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.12);
  transition: .25s ease !important;
}

footer .upper_footer .social_links li:hover{
  transform: translateY(-2px) !important;
  background: linear-gradient(90deg, var(--ufz-hover-1), var(--ufz-hover-2)) !important;
  border-color: transparent !important;
}

footer .upper_footer .social_links li a img{
  filter: brightness(0) invert(1);
  opacity: .95;
}

/* Links layout */
footer .upper_footer .footer_wrapper .links_box{
  padding-top: 28px !important;
  gap: 34px !important;
}

footer .upper_footer .footer_wrapper .links_box .title{
  font-family: "Nunito", sans-serif !important;
  font-weight: 900 !important;
  font-size: 14px !important;
  letter-spacing: .10em !important;
  text-transform: uppercase !important;
  margin: 0 0 10px !important;
}

/* Footer text / links */
footer .upper_footer .footer_wrapper h6,
footer a{
  font-family: "Poppins", sans-serif !important;
  font-size: 14px !important;
  line-height: 1.8 !important;
  color: rgba(255,255,255,.78) !important;
  margin-top: 10px !important;
}

footer a{
  text-decoration: none !important;
  transition: .2s ease;
}

footer a:hover{
  opacity: 1 !important;
  color: #fff !important;
  text-decoration: underline;
}

/* Make icons align nicely */
footer #phone::before,
footer #email::before,
footer #address::before{
  top: 3px !important;
  margin-right: 10px !important;
  opacity: .95;
}

/* Lower footer */
footer .lower_footer{
  background: rgba(255,255,255,.06) !important;
  border-top: 1px solid rgba(255,255,255,.10);
  padding: 18px 0 !important;
}

footer .lower_footer .lower_footer_wrapper{
  justify-content: space-between !important;
  gap: 12px !important;
  flex-wrap: wrap;
}

footer .lower_footer .lower_footer_wrapper h6{
  margin: 0 !important;
  font-size: 13px !important;
  color: rgba(255,255,255,.70) !important;
}

footer .lower_footer a{
  margin: 0 !important;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  text-decoration: none !important;
}

footer .lower_footer a:hover{
  background: linear-gradient(90deg, var(--ufz-hover-1), var(--ufz-hover-2));
  border-color: transparent;
  text-decoration: none !important;
}

/* Responsive footer */
@media (max-width: 980px){
  footer .upper_footer{
    padding: 56px 0 44px !important;
  }
  footer .upper_footer .footer_wrapper .right_wrapper{
    gap: 28px !important;
    flex-wrap: wrap;
  }
  footer .upper_footer .footer_wrapper .links_box{
    gap: 22px !important;
  }
}

/* =====================================================
   PROGRESS (Back to top) — match premium style
   ===================================================== */
#progress{
  right: 18px;
  left: auto !important;
  bottom: 18px !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,.92) !important;
  border: 1px solid rgba(15,23,42,.12) !important;
  box-shadow: 0 18px 40px rgba(2,6,23,.12) !important;
}

#progress #progress-value{
  width: 36px !important;
  height: 36px !important;
  border-radius: 14px !important;
  font-family: "Nunito", sans-serif !important;
  font-weight: 900 !important;
  color: var(--ufz-heading) !important;
}

#progress.show{
  left: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

#progress:hover{
  background: linear-gradient(90deg, var(--ufz-hover-1), var(--ufz-hover-2)) !important;
  border-color: transparent !important;
}

#progress:hover #progress-value{
  background: transparent !important;
  color: #fff !important;
}

/* --------------------------  Footer CSS End ------------------ */




/* --------------------------  404 Page Start ------------------ */


#not_found {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
}

#not_found .box h2 {
    color: var(--white);
    text-align: center;
    font-size: 92px;
    font-style: normal;
    font-weight: 600;
    line-height: 110px;
    max-width: 605px;
    margin: 30px auto 0;
}

#not_found .box h4 {
    color: var(--white);
    text-align: center;
    font-size: 52px;
    font-style: normal;
    font-weight: 600;
    line-height: 64px;
    max-width: 605px;
    margin: 50px 0 0 0;
}

#not_found .box p {
    color: var(--white);
    text-align: center;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 32px;
    max-width: 648px;
    margin: 25px 0 0 0;
}

#not_found .box a {
    padding: 21px 64px 21px 64px;
    font-size: 18px;
    font-weight: 500;
    line-height: 21.79px;
    text-align: center;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    background: var(--white);
    border-radius: 8px;
    cursor: pointer;
    color: #000;
    min-height: 50px;
    text-transform: uppercase;
    margin: 50px auto 0;
}

#not_found .box a:hover {
    opacity: .8;
}


/* --------------------------  404 Page End ------------------ */

/* --------------------------  Thank You Page Start ------------------ */

#thank_you_section {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: var(--primary-color);
}

#thank_you_section .inner-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding-top: 100px;

}

#thank_you_section .inner-box h4 {
    color: var(--white);
    text-align: center;
    font-size: 52px;
    font-style: normal;
    font-weight: 600;
    line-height: 64px;
    max-width: 605px;
    margin: 50px 0 0 0;
}

#thank_you_section .inner-box p {
    color: var(--white);
    text-align: center;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 32px;
    max-width: 648px;
    margin: 25px 0 0 0;
}

#thank_you_section .inner-box a {
    padding: 21px 64px 21px 64px;
    font-size: 18px;
    font-weight: 500;
    line-height: 21.79px;
    text-align: center;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    background: var(--white);
    border-radius: 8px;
    cursor: pointer;
    color: #000;
    min-height: 50px;
    text-transform: uppercase;
    margin: 50px auto 0;
}

#thank_you_section .inner-box a:hover {
    opacity: .8;
}

@media (max-width: 980px){
  .hamburger{ display: flex; }
.nav-list .current-menu-item > a ,.header li a{
  background: #fff  !important;
}}