/* Site-wide header and footer refresh. Loaded after main.css.
   Uses the existing theme variables only (--primary, --primary-dark, --btn-pixel, --title, --gray). */

/* ---------- header: utility bar ---------- */
.site-header .main-bar > .container-fluid.d-md-block {
  background: var(--primary-dark, #00528c);
  padding: 6px 28px;
  max-width: none;
}
.site-header .main-bar > .container-fluid.d-md-block .marquee-container { color: #fff; font-size: 13px; }
.site-header .main-bar > .container-fluid.d-md-block .marquee-content,
.site-header .main-bar > .container-fluid.d-md-block .marquee-content a { color: #fff; }
.site-header .main-bar > .container-fluid.d-md-block .marquee-content a { text-decoration: underline; }
.site-header .main-bar > .container-fluid.d-md-block .btn {
  border-radius: 6px; font-size: 13px; font-weight: 600; padding: 5px 12px; line-height: 1.4; transform: none;
}
.site-header .main-bar > .container-fluid.d-md-block .btn-default {
  background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .45);
}
.site-header .main-bar > .container-fluid.d-md-block .btn-default:hover { background: #fff; color: var(--primary-dark, #00528c); }
.site-header .main-bar > .container-fluid.d-md-block .btn-community {
  background: var(--btn-pixel, #DA4637); border: 1px solid var(--btn-pixel, #DA4637); color: #fff;
}
.site-header .main-bar > .container-fluid.d-md-block .btn-community:hover { background: var(--btn-pixel-hover, #E0665A); border-color: var(--btn-pixel-hover, #E0665A); }
.site-header .main-bar > .container-fluid.d-md-block .my-profile .nav-link { color: #fff; font-size: 13px; }

/* ---------- header: main bar ---------- */
.site-header .main-bar { background: #fff; border-bottom: 1px solid #e6ebf0; }
.site-header .is-fixed .main-bar { }
.site-header .header-nav .nav > li > a {
  font-size: 15px; font-weight: 600; color: var(--title, #050d36); letter-spacing: .01em; position: relative;
}
.site-header .header-nav .nav > li > a:hover,
.site-header .header-nav .nav > li.active > a,
.site-header .header-nav .nav > li:hover > a { color: var(--primary, #0069b4); }
@media (min-width: 992px) {
  .site-header .header-nav .nav > li > a::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 18px; height: 2px;
    background: var(--btn-pixel, #DA4637); transform: scaleX(0); transform-origin: left; transition: transform .2s;
  }
  .site-header .header-nav .nav > li:hover > a::after { transform: scaleX(1); }
  .site-header .header-nav .nav > li .sub-menu,
  .site-header .header-nav .nav > li .mega-menu {
    border-top: 3px solid var(--primary, #0069b4); border-radius: 0 0 8px 8px;
  }
  .site-header .header-nav .nav > li .sub-menu li a:hover { color: var(--primary, #0069b4); }
}
.site-header .extra-nav .btn-primary {
  background: #ec003f; border-color: #ec003f; color: #fff;
  border-radius: 8px; font-weight: 700; padding: 12px 24px;
}
.site-header .extra-nav .btn-primary:hover { background: #c8003a; border-color: #c8003a; }
.site-header .extra-nav .btn-primary i { color: #fff !important; }

/* ---------- footer (dark navy, matches the approved design) ---------- */
.site-footer, .site-footer.style-3, .site-footer.background-luminosity { background: #052f4a !important; font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
.site-footer .footer-top { padding-top: 64px; padding-bottom: 32px; }
.site-footer .footer-about { color: rgba(255, 255, 255, .7); font-size: 13px; line-height: 1.7; margin: 18px 0 18px; max-width: 360px; }
.site-footer .dz-social-icon ul li a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; line-height: 1; }
.site-footer .dz-social-icon ul li a:hover { background: var(--primary, #0069b4); }
.site-footer .footer-title { color: #1ab6f0; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding-bottom: 0; margin-bottom: 20px; }
.site-footer .footer-title::after { display: none; }
.site-footer .widget_services ul li a { color: rgba(255, 255, 255, .78); font-size: 13px; }
.site-footer .widget_services ul li a:hover { color: #fff; text-decoration: underline; }
.site-footer .widget_getintuch ul li span,
.site-footer .widget_getintuch ul li a { color: rgba(255, 255, 255, .85) !important; font-size: 13px; }
.site-footer .widget_getintuch ul li i { color: #1ab6f0; }
.site-footer .widget_getintuch ul li a:hover { text-decoration: underline; }
.site-footer .footer-reg { margin-top: 16px; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px; background: rgba(255, 255, 255, .04); }
.site-footer .footer-reg b { display: block; font-size: 11.5px; color: #fff; margin-bottom: 3px; }
.site-footer .footer-reg span { font-size: 11px; color: rgba(255, 255, 255, .65); }
.site-footer .footer-bottom { background: transparent; border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; }
.site-footer .footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; text-align: left !important; }
.site-footer .footer-bottom small, .site-footer .footer-bottom .copyright-text { color: rgba(255, 255, 255, .6); font-size: 11px; }
.site-footer .footer-bottom a { color: rgba(255, 255, 255, .8); }
.site-footer .footer-backtop { padding: 6px 12px; border-radius: 6px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); font-size: 11px; font-weight: 600; white-space: nowrap; }
.site-footer .wow { visibility: visible !important; animation: none !important; opacity: 1 !important; }

/* keep the utility bar on one line */
.site-header .main-bar > .container-fluid.d-md-block .d-flex { flex-wrap: nowrap; }
.site-header .main-bar > .container-fluid.d-md-block .d-flex > div:last-child { flex: 0 0 auto; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.site-header .main-bar > .container-fluid.d-md-block .d-flex > div:last-child .btn { margin: 0 !important; }

/* =====================================================================
   NAVIGATION: instant, flat dropdowns on desktop; full-height drawer on phones
   (replaces the 0.7s fade/slide). No shadows, no entrance animation.
   ===================================================================== */
.site-header .header-nav .nav > li > a { font-size: 15px; font-weight: 600; }

/* ---------- desktop dropdowns ---------- */
@media (min-width: 992px) {
  .header-nav .nav > li { position: relative; }
  .header-nav .nav > li .sub-menu, .header-nav .nav > li .mega-menu {
    transition: none !important; margin-top: 0 !important; box-shadow: none !important;
    background: #fff; border: 1px solid #dbe3ec; border-top: 3px solid var(--primary, #0069b4); border-radius: 0 0 12px 12px;
    padding: 8px !important; width: 270px; top: 100%;
  }
  .header-nav .nav > li:hover > .sub-menu, .header-nav .nav > li:hover > .mega-menu,
  .header-nav .nav > li:focus-within > .sub-menu, .header-nav .nav > li:focus-within > .mega-menu { opacity: 1; visibility: visible; transition: none !important; margin-top: 0 !important; }
  .header-nav .nav > li .sub-menu li a {
    display: block; padding: 11px 14px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--title, #0b1b33);
    transition: none !important;
  }
  .header-nav .nav > li .sub-menu li a::after { display: none; }
  .header-nav .nav > li .sub-menu li:hover > a { background: #f1f6fb; color: var(--primary, #0069b4); padding-left: 14px; }
  /* long menus (Resources) run in two columns */
  .header-nav .nav > li .sub-menu:has(> li:nth-child(7)) { display: grid; width: 520px; grid-template-columns: 1fr 1fr; column-gap: 4px; }
  .header-nav .nav > li:hover > .sub-menu:has(> li:nth-child(7)) { display: grid; }
  /* Impact mega menu: three clean columns */
  .header-nav .nav > li .mega-menu { width: min(920px, 92vw); left: 50%; right: auto; transform: translateX(-50%); padding: 14px !important; }
  .header-nav .nav > li.has-mega-menu { position: relative; }
  .header-nav .nav > li .mega-menu > li { padding: 14px 18px; width: 33.333%; }
  .header-nav .nav > li .mega-menu > li > a { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--primary, #0069b4); border-bottom: 1px solid #e3eaf2; padding: 0 0 10px; margin-bottom: 8px; }
  .header-nav .nav > li .mega-menu > li > ul { list-style: none; margin: 0; padding: 0; }
  .header-nav .nav > li .mega-menu li li a { display: block; padding: 8px 10px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--title, #0b1b33); }
  .header-nav .nav > li .mega-menu li li a:hover { background: #f1f6fb; color: var(--primary, #0069b4); }
  .header-nav .nav > li .mega-menu > li:after { background: #e3eaf2; }
  .hf-nav-close, .hf-nav-backdrop { display: none !important; }
}

/* ---------- phone / tablet drawer (85% of visitors) ---------- */
@media (max-width: 991px) {
  .header-nav { width: min(88vw, 360px) !important; left: -100% !important; transition: left .2s ease !important; padding: 0 !important; background: #fff; z-index: 1100; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  .header-nav.show { left: 0 !important; width: min(88vw, 360px) !important; transition: left .2s ease !important; }
  .hf-nav-backdrop { position: fixed; inset: 0; z-index: 1090; background: rgba(8, 18, 35, .55); display: none; border: 0; padding: 0; }
  body:has(.header-nav.show) .hf-nav-backdrop { display: block; }
  body:has(.header-nav.show) { overflow: hidden; }
  .header-nav .logo-header { display: flex !important; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid #e6ebf0; }
  .header-nav .logo-header img { max-height: 44px; width: auto; }
  .hf-nav-close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: #f1f5f9; color: var(--title, #0b1b33); font-size: 24px; line-height: 1; cursor: pointer; }
  .header-nav .header-bottom { padding: 14px 16px 6px; display: block; }
  .header-nav .header-bottom .btn { display: flex !important; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin: 0 0 10px !important; border-radius: 10px; font-size: 15px; font-weight: 700; box-shadow: none !important; }
  .header-nav .header-bottom .btn-primary { background: #ec003f; border-color: #ec003f; }
  .header-nav .header-bottom br { display: none; }
  .header-nav .dz-social-icon { display: none; }
  .header-nav .nav { padding: 6px 0 24px; }
  .header-nav .nav > li { border-bottom: 1px solid #eef2f6; width: 100%; }
  .header-nav .nav > li > a { display: flex !important; align-items: center; justify-content: space-between; min-height: 54px; padding: 0 18px !important; font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--title, #0b1b33); }
  /* chevron drawn in CSS (no icon font, no coloured squares) */
  .header-nav .nav > li.sub-menu-down > a::after {
    content: "" !important; float: none; width: 9px; height: 9px; margin: 0 4px 0 12px; padding: 0; background: none !important; line-height: 1;
    border-right: 2.5px solid #8a97a8; border-bottom: 2.5px solid #8a97a8; border-radius: 0; transform: rotate(45deg); transition: none; flex: 0 0 auto;
  }
  .header-nav .nav > li.sub-menu-down.open > a::after { transform: rotate(-135deg); border-color: var(--primary, #0069b4); background: none !important; }
  .header-nav .nav > li.open > a { color: var(--primary, #0069b4); }
  .header-nav .nav > li .sub-menu, .header-nav .nav > li .mega-menu { border: 0; padding: 0 0 10px; background: #f7f9fb; display: none; }
  .header-nav .nav > li.open > .sub-menu, .header-nav .nav > li.open > .mega-menu { display: block; }
  .header-nav .nav > li .sub-menu li, .header-nav .nav > li .mega-menu li { border: 0; }
  .header-nav .nav > li .sub-menu li a, .header-nav .nav > li .mega-menu li li a {
    display: flex; align-items: center; min-height: 48px; padding: 0 18px 0 30px; font-size: 15px; font-weight: 500; color: #33445c; border-radius: 0;
  }
  .header-nav .nav > li .sub-menu li a:active, .header-nav .nav > li .mega-menu li li a:active { background: #e8eff6; }
  .header-nav .nav > li .sub-menu li a::after, .header-nav .nav > li .sub-menu li a::before { display: none; }
  .header-nav .nav > li .sub-menu li a i, .header-nav .nav > li .mega-menu li a i { display: none; }
  /* Impact: show the region headings on phones */
  .header-nav .nav > li .mega-menu > li { padding: 0; width: 100%; }
  .header-nav .nav > li .mega-menu > li > a { display: block !important; padding: 14px 18px 6px 30px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--primary, #0069b4); border: 0; min-height: 0; }
  .header-nav .nav > li .mega-menu > li > ul { list-style: none; margin: 0; padding: 0; }
}

/* two-line menu items: title + small description */
.header-nav .nav .sub-menu li a .nav-t, .header-nav .nav .mega-menu li li a .nav-t { display: block; }
.header-nav .nav .nav-d { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; line-height: 1.4; color: #6b7a8d; letter-spacing: 0; text-transform: none; }
@media (min-width: 992px) {
  .header-nav .nav > li .sub-menu li a { padding: 10px 14px; }
  .header-nav .nav > li .sub-menu li:hover > a .nav-d, .header-nav .nav > li .mega-menu li li a:hover .nav-d { color: #4b6d8f; }
  .header-nav .nav > li .sub-menu { width: 300px; }
  .header-nav .nav > li .sub-menu:has(> li:nth-child(7)) { width: 620px; }
  .header-nav .nav > li .mega-menu li li a { padding: 8px 10px; }
}
@media (max-width: 991px) {
  .header-nav .nav > li .sub-menu li a, .header-nav .nav > li .mega-menu li li a { flex-direction: column; align-items: flex-start; justify-content: center; padding-top: 9px; padding-bottom: 9px; }
  .header-nav .nav .nav-d { font-size: 12.5px; color: #75849a; }
}
