/* ============================================================
   MPS Careers - site header/footer/menu-panel styles
   Ported from the live modularpowersolutions.com theme.
   All grid/utility rules are scoped under .header / .menu-panel /
   .footer so they never affect the shared template3 job UI.
   ============================================================ */

/* ---------- Gotham (self-hosted) ---------- */
@font-face { font-family: "Gotham"; src: url(../fonts/gotham-book.woff2?v=20260820) format("woff2"), url(../fonts/gotham-book.otf?v=20260820) format("opentype"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Gotham"; src: url(../fonts/gotham-medium.woff2?v=20260820) format("woff2"), url(../fonts/gotham-medium.otf?v=20260820) format("opentype"); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: "Gotham"; src: url(../fonts/gotham-bold.woff2?v=20260820) format("woff2"), url(../fonts/gotham-bold.otf?v=20260820) format("opentype"); font-style: normal; font-weight: 700; font-display: swap; }

body { margin: 0; font-family: "Gotham", Helvetica, Arial, sans-serif; }
/* enforce Gotham in the header/menu/footer (overrides template3's `footer{font-family:'Open Sans footer'}` and any inherited face) */
.header, .header *, .menu-panel, .menu-panel *, .footer, .footer * { font-family: "Gotham", Helvetica, Arial, sans-serif; }

/* ============================================================
   HEADER
   ============================================================ */
.header { position: sticky; top: 0; z-index: 99999; width: 100%; height: 120px; padding: 0; background: #fff; border-bottom: 1px solid rgba(108,111,112,.15); }

/* header container / layout (scoped, overrides template3 .container) */
.header .container { width: 100%; max-width: 1800px; min-width: 0 !important; margin: 0 auto; padding: 0 20px 0 0; box-sizing: border-box; }
@media (min-width: 992px) { .header .container { padding: 0; } }
.header .d-flex { display: flex !important; }
.header .justify-content-between { justify-content: space-between !important; }
.header .align-items-end { align-items: flex-end !important; }
.header .fit-height { height: 100%; }

.header__logo { position: relative; margin-left: 40px; padding: 20px 0; height: 100%; display: flex; align-items: center; }
.header__logo-img { height: 100%; width: auto; display: block; transition: .3s; }

.header__nav { flex: 1 1 0%; padding-left: 20px; height: 100%; }
.header__nav > ul { display: flex; justify-content: flex-end; width: 100%; height: 100%; list-style: none; margin: 0; padding: 0; }
.header__nav-item { position: relative; flex: 1 1 0%; height: 100%; border-left: 1px solid rgba(108,111,112,.15); transition: .3s; }
.header__nav-item:last-child { border-right: 1px solid rgba(108,111,112,.15); }
.header__nav-item:hover { box-shadow: rgba(24,20,21,.15) 0 4px 32px; }
.header__nav-item:hover .header__nav-link::after { transform: rotate(180deg); }
.header__nav-item:hover .header__submenu-wrap { visibility: visible; opacity: 1; }
.header__nav-item:focus-within { box-shadow: rgba(24,20,21,.15) 0 4px 32px; }
.header__nav-item:focus-within .header__submenu-wrap { visibility: visible; opacity: 1; }

.header__nav-link { z-index: 1; position: relative; padding: 15px; display: flex; justify-content: center; align-items: center; height: 100%; color: #181415; font-weight: 700; font-size: 14px; text-transform: uppercase; line-height: 1; white-space: nowrap; text-decoration: none; }
@media (min-width: 1300px) { .header__nav-link { font-size: 16px; } }
.header__nav-link:hover, .header__nav-link:visited { color: #181415; }
.has-submenu .header__nav-link::after { content: ""; margin-left: 10px; margin-bottom: 2px; width: 11px; height: 8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10.936' height='7.797' viewBox='0 0 10.936 7.797'%3E%3Cpath d='M0,0,3.892,5.468h0L0,10.936H3.905L7.8,5.468h0L3.906,0Z' transform='translate(10.936) rotate(90)' fill='%23ED1C24'/%3E%3C/svg%3E") center center no-repeat; transition: .3s; }

.header__submenu-wrap { visibility: hidden; opacity: 0; position: absolute; left: -1px; top: 100%; width: 100%; background: #fff; box-shadow: rgba(24,20,21,.1) 0 16px 28px; transition: .3s; z-index: 20; }
.header__submenu-wrap.expanded { width: 200%; }
.header__submenu-wrap.expanded .header__submenu-link { padding: 30px 50px; }
@media (max-width: 1599px) { .header__submenu-wrap.expanded .header__submenu-link { padding: 20px 25px; } }
.header__submenu { list-style: none; margin: 0; padding: 0; }
.header__submenu-item { border-top: 1px solid #ededee; }
.header__submenu-item:first-child { border-top: 0; }
.header__submenu-link { padding: 13px 20px; display: block; font-size: 15px; color: #181415; text-decoration: none; }
.header__submenu-link:hover, .header__submenu-link:focus-visible { background: rgba(237,237,238,.4); }
.header__submenu-link .text-allcaps { text-transform: uppercase; }
.header__submenu-link .font-bold { font-weight: 700; }
.header__submenu-link .text-regular { font-size: 16px; }
.header__submenu-link .mb-1 { margin-bottom: 5px; }
.header__submenu-link .cms-content { color: #6c6f70; font-size: 14px; font-weight: 400; }
.header__submenu-link .cms-content p { margin: 0; }

/* hamburger toggle (mobile) */
.menu-panel-toggle { display: none; position: relative; width: 24px; height: 24px; margin-left: 16px; padding: 0; background: none; border: 0; cursor: pointer; }
.menu-panel-toggle span { position: absolute; left: 50%; transform: translate(-50%, -50%); width: 100%; height: 4px; background: #181415; transition: .3s; }
.menu-panel-toggle span:nth-child(1) { top: 7px; }
.menu-panel-toggle span:nth-child(2) { top: calc(100% - 7px); }

@media (max-width: 991px) {
  .header { height: 84px; }
  .header .container { align-items: center !important; }
  .header__logo { margin-left: 20px; padding: 12px 0; }
  .header__nav { display: none; }
  .menu-panel-toggle { display: block; }
}
@media (max-width: 767px) { .header__logo { margin-left: 20px; } }

/* ============================================================
   MOBILE MENU PANEL
   ============================================================ */
.menu-panel { visibility: hidden; z-index: 80; position: fixed; top: 0; left: 0; padding-top: 84px; width: 200vw; height: 100%; pointer-events: none; overflow: hidden; transition: .4s, visibility .4s cubic-bezier(.65,0,.35,1); }
.menu-panel::after { opacity: 0; z-index: -1; content: ""; position: fixed; top: 0; right: 0; width: 100%; height: 100vh; background: rgba(24,20,21,.85); transition: .4s cubic-bezier(.65,0,.35,1); }
.menu-panel__wrap { position: absolute; left: 0; top: 84px; width: 100vw; background: #fff; opacity: 0; transform: translate(0,-20px); transition: .3s cubic-bezier(.65,0,.35,1); }
.menu-panel__nav { list-style: none; margin: 0; padding: 0; }
.menu-panel__nav-item { position: relative; padding: 30px; border-bottom: 1px solid #ededee; }
.menu-panel__nav-link { display: block; color: #181415; font-weight: 700; font-size: 24px; line-height: 1.5; text-transform: uppercase; text-decoration: none; background: none; border: 0; text-align: left; cursor: pointer; }
@media (max-width: 767px) { .menu-panel__nav-link { font-size: 20px; } }
.menu-panel__expand-toggle { position: relative; width: 100%; }
.menu-panel__expand-toggle::after { content: ""; position: absolute; right: 0; top: 50%; transform: translate(0,-50%); width: 11px; height: 8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10.936' height='7.797' viewBox='0 0 10.936 7.797'%3E%3Cpath d='M0,0,3.892,5.468h0L0,10.936H3.905L7.8,5.468h0L3.906,0Z' transform='translate(10.936) rotate(90)' fill='%23ED1C24'/%3E%3C/svg%3E") center center no-repeat; transition: .3s; }
.menu-panel__nav-item.expanded .menu-panel__expand-toggle::after { transform: translate(0,-50%) rotate(180deg); }
.menu-panel__subnav { padding-left: 10px; max-height: 0; font-size: 16px; overflow: hidden; transition: .5s; }
.menu-panel__subnav ul { list-style: none; margin: 0; padding: 0; }
.menu-panel__subnav a { color: #181415; text-decoration: none; }
.menu-panel__subnav-item:not(:last-child) { margin-bottom: 10px; }
.menu-panel__subnav .mt-3 { margin-top: 20px; }
.menu-panel__subnav .text-small { font-size: 14px; }
.menu-panel__subnav .font-medium { font-weight: 500; }
.menu-panel__subnav .text-allcaps { text-transform: uppercase; }
.menu-panel__subnav .mb-1 { margin-bottom: 5px; }
.menu-panel__subnav .mb-3 { margin-bottom: 20px; }
.menu-panel__subnav .d-flex { display: flex; }
.menu-panel__subnav .align-items-start { align-items: flex-start; }
.menu-panel__subnav .cms-content { color: #6c6f70; }
.menu-panel__subnav .cms-content p { margin: 0; }

/* open state (class toggled on <body>) */
.menu-panel-active { overflow: hidden; }
.menu-panel-active .menu-panel-toggle span:nth-child(1) { top: 50%; transform: translate(-50%,-50%) rotate(45deg); }
.menu-panel-active .menu-panel-toggle span:nth-child(2) { top: 50%; transform: translate(-50%,-50%) rotate(-45deg); }
.menu-panel-active .menu-panel { visibility: visible; opacity: 1; pointer-events: auto; overflow-y: auto; }
.menu-panel-active .menu-panel::after { opacity: 1; }
.menu-panel-active .menu-panel__wrap { opacity: 1; transform: translate(0,0); transition: .4s ease-out .2s; }
.menu-panel-active .menu-panel__nav-item:hover .menu-panel__nav-link { color: #ed1c24; }

/* ============================================================
   BANNER (masthead) — ported from template3 base_home, since the
   Rosendin base files omit it (they rely on rosendin.css).
   ============================================================ */
.masthead { position: relative; min-height: auto; padding: 0; }
.masthead-home { background: #ffffff 50% 50% / cover; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { position: relative; padding: 60px 0 40px; background: #000; color: #fff; line-height: 1.6; }
/* reset template3's element-level `footer a { display:block; text-align:center }` */
.footer a { color: #fff; text-decoration: none; display: inline; text-align: left; margin-bottom: 0; }
.footer .link-arrow, .footer .nk-credit { text-align: left; }

/* footer grid (scoped) */
.footer .container-xl { width: 100%; max-width: 1430px; min-width: 0 !important; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.footer .p-relative { position: relative; }
.footer .row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.footer [class*="col-"], .footer .col { position: relative; width: 100%; padding: 0 15px; box-sizing: border-box; }
.footer .col { flex-basis: 0; flex-grow: 1; max-width: 100%; }
@media (min-width: 992px) {
  .footer .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .footer .offset-lg-3 { margin-left: 25%; }
  .footer .pr-lg-4 { padding-right: 30px; }
}
.footer .mb-1 { margin-bottom: 5px; }
.footer .mb-2 { margin-bottom: 10px; }
.footer .mb-3 { margin-bottom: 20px; }
.footer .mb-4 { margin-bottom: 30px; }
.footer .mb-5 { margin-bottom: 60px; }
.footer .text-small { font-size: 14px; }
.footer .text-small2 { font-size: 16px; }
.footer .font-medium { font-weight: 500; }
.footer .font-bold { font-weight: 700; }
.footer .text-allcaps { text-transform: uppercase; }
.footer .color-gray { color: #7e8182; }
.footer .color-gray-less { color: #a3a5a8; }
.footer .color-gray-accent { color: #cac9bb; }

.footer h2, .footer h3 { margin: 0; color: #fff; font-size: 18px; font-weight: 500; text-transform: uppercase; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer .cms-content p { margin: 0; }
.footer__copyright { margin-top: 4px; }
.footer__copyright p { margin: 0; }
/* copyright links stay the subtle gray, not the white Explore-list color */
.footer .footer__copyright.links--stroke--light--hover a { color: #7e8182; }

/* arrow link ("Learn More") */
.footer .link-arrow { position: relative; padding-right: 20px; display: inline-block; font-weight: 400; font-size: 16px; color: #fff; text-decoration: none; }
.footer .link-arrow span { background-image: linear-gradient(transparent calc(100% - 1px), #ed1c24 1px); background-repeat: no-repeat; background-position: left center; background-size: 0% 100%; transition: .3s; }
.footer .link-arrow:hover span, .footer .link-arrow:focus-visible span { background-size: 100% 100%; }
.footer .link-arrow::after { content: ""; position: absolute; right: 0; top: 50%; transform: translate(0,-50%); display: block; width: 12px; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 18 18'%3E%3Cpath d='M0,0,5,7.03H5L0,14.06H5.021l5-7.03h0L5.022,0Z' transform='translate(3.75 2.25)' fill='%23ED1C24'/%3E%3C/svg%3E") no-repeat; }

/* underline-on-hover link list */
.footer .links--stroke--light--hover a { background-image: linear-gradient(transparent calc(100% - 1px), #fff 2px); background-repeat: no-repeat; background-position: left center; background-size: 0% 100%; transition: .3s; color: #fff; }
.footer .links--stroke--light--hover a:hover, .footer .links--stroke--light--hover a:focus { background-size: 100% 100%; }

/* NK credit */
.footer .nk-credit { position: absolute; right: 15px; bottom: 50px; display: inline-block; color: #fff; font-size: 12px; text-transform: uppercase; white-space: nowrap; opacity: .5; transition: opacity .3s; }
.footer .nk-credit:hover, .footer .nk-credit:focus-visible { opacity: .8; }
.footer .nk-credit svg { transform: translate(0,-2px); margin-left: 4px; display: inline-block; vertical-align: middle; height: 16px; fill: #a3a5a8; }
@media (max-width: 991px) { .footer .nk-credit { position: static; margin-top: 40px; } }
