/* Nourfix mobile header, menu and bottom bar (approved design nourfix-preview). Hidden from 992px up. */
.nf-m-top,.nf-bottom-nav,.nf-drawer{font-family:"DM Sans",system-ui,sans-serif}
.nf-m-top,.nf-bottom-nav{display:none}
.nf-drawer[hidden]{display:none!important}

@media (max-width:991.98px){
  /* Fixit's header gives way to the design's header; its location modal stays usable */
  body > header{display:none!important}
  body{padding-bottom:calc(78px + env(safe-area-inset-bottom,0px))}

  .nf-m-top{display:block;position:sticky;top:0;z-index:1030;padding-top:env(safe-area-inset-top,0px);background:#fff}
  .nf-m-header{position:relative!important;top:auto!important;left:auto!important;width:auto!important;margin:0!important;padding:0!important;z-index:auto;background:#fff;box-shadow:rgba(18,19,26,.06) 0 1px 0 0,rgba(18,19,26,.35) 0 10px 24px -18px}
  .nf-m-header nav{position:relative;display:flex;justify-content:space-between;align-items:center;height:70.7px;padding:15.35px 18.7px}
  .nf-sq{width:40px;height:40px;display:flex;align-items:center;justify-content:center;background:#f1f1f7;border:1px solid #e6e6f0;border-radius:12px;color:#12131a;padding:0}
  .nf-toggler-icon{width:20px;height:20px;background:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(18,19,26,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.4' d='M5 8h20M5 15h20M5 22h14'/%3e%3c/svg%3e") center/100% no-repeat}
  .nf-m-brand{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex}
  .nf-m-brand img{height:32px;width:auto;display:block}

  /* the home banner no longer sits under a transparent header */
  section.home-section .home-contain{padding-top:34px!important}
  section.home-section{padding-top:0}

  .nf-bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:1030;display:grid;grid-template-columns:repeat(5,1fr);align-items:end;padding:8px 6px calc(8px + env(safe-area-inset-bottom,0px));background:#fff;border-radius:20px 20px 0 0;box-shadow:rgba(18,19,26,.22) 0 -8px 28px -12px,rgba(18,19,26,.06) 0 -1px 0 0}
  .nf-bn-item{display:flex;flex-direction:column;align-items:center;gap:4px;color:#7a7f92;font-size:11px;font-weight:600;line-height:16.5px;text-decoration:none}
  .nf-bn-item:hover{color:#4f46e5}
  .nf-bn-icon{width:24px;height:24px;display:flex;align-items:center;justify-content:center}
  .nf-bn-item.active{color:#00162e}
  .nf-bn-item.active .nf-bn-label::after{content:"";display:block;width:16px;height:3px;margin:3px auto 0;background:#4f46e5;border-radius:2px}
  .nf-bn-hire{color:#4f46e5}
  .nf-bn-hire-btn{width:54px;height:54px;margin-top:-30px;display:grid;place-items:center;background:#4f46e5;color:#fff;border:4px solid #fff;border-radius:50%;box-shadow:rgba(79,70,229,.7) 0 10px 22px -8px}

  /* the bar must never cover Fixit's booking window or other modals */
  body.modal-open .nf-bottom-nav,html.nf-drawer-open .nf-bottom-nav{display:none}

  /* no floating buttons over the bottom bar */
  .tap-to-top,.tap-top,#tap-top,.back-to-top{display:none!important}

  /* menu */
  .nf-drawer{position:fixed;inset:0;z-index:1060;background:rgba(11,18,48,.45)}
  .nf-drawer-panel{position:absolute;top:0;left:0;bottom:0;width:min(86vw,340px);overflow:auto;display:flex;flex-direction:column;gap:14px;padding:18px;background:#0b1230;color:#fff}
  .nf-d-head{display:flex;justify-content:space-between;align-items:center}
  .nf-d-head img{height:28px;width:auto}
  .nf-d-x{width:36px;height:36px;border-radius:10px;border:1px solid rgba(255,255,255,.2);background:transparent;color:#fff;font-size:16px}
  .nf-d-nav{display:flex;flex-direction:column}
  .nf-d-nav a{display:flex;align-items:center;justify-content:space-between;padding:13px 4px;border-bottom:1px solid rgba(255,255,255,.08);color:#fff;font-weight:600;font-size:15.5px;text-decoration:none}
  .nf-d-nav a:hover{color:#c7c4ff}
  .nf-badge{min-width:22px;height:22px;padding:0 6px;border-radius:99px;background:#4f46e5;color:#fff;font-size:12px;display:inline-grid;place-items:center}
  .nf-d-lang{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .nf-d-lang a{padding:10px;border-radius:12px;border:1px solid rgba(255,255,255,.25);color:#fff;text-align:center;font-weight:600;text-decoration:none}
  .nf-d-lang a[aria-current]{background:#4f46e5;border-color:#4f46e5}
  .nf-d-account{margin-top:auto;padding:13px;border-radius:12px;background:#fff;color:#4f46e5;text-align:center;font-weight:700;text-decoration:none}
  html.nf-drawer-open{overflow:hidden}
  .nf-ex{margin-left:auto;font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#a15c00;background:#fff3dc;padding:2px 6px;border-radius:5px}
}

/* Footer of the approved design (every page) */
.nf-foot{margin-top:28px;padding:26px 0 calc(20px + env(safe-area-inset-bottom,0px));background:#0b1230;color:#b8bdd3;font-family:"DM Sans",system-ui,sans-serif;font-size:13.5px}
.nf-foot-grid{display:grid;grid-template-columns:1fr 1fr;gap:4px 16px}
.nf-foot-brand{grid-column:1 / -1}
.nf-foot-brand img{height:26px;width:auto;display:block}
.nf-foot-brand p{margin:10px 0 0;line-height:1.5;color:#b8bdd3}
.nf-foot-tel{display:inline-flex;align-items:center;gap:8px;margin-top:12px;color:#fff;font-weight:700;text-decoration:none}
.nf-foot h4{margin:20px 0 8px;color:#fff;font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;display:flex;align-items:center;gap:8px}
.nf-foot ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.nf-foot a{color:#b8bdd3;text-decoration:none}
.nf-foot a:hover{color:#fff}
.nf-foot-pay div{display:flex;gap:6px;flex-wrap:wrap}
.nf-foot-pay i{font-style:normal;font-size:11px;font-weight:800;padding:4px 8px;border-radius:6px;background:rgba(255,255,255,.1);color:#fff}
.nf-foot-copy{border-top:1px solid rgba(255,255,255,.1);margin-top:20px;padding-top:14px;font-size:12px}
.nf-foot .nf-ex{margin-left:0}
@media (min-width:768px){
  .nf-foot{padding:44px 0 28px}
  .nf-foot-grid{grid-template-columns:1.6fr 1fr 1fr 1fr;gap:24px}
  .nf-foot-brand{grid-column:auto}
  .nf-foot-brand p{max-width:320px}
}
.nf-ex{font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#a15c00;background:#fff3dc;padding:2px 6px;border-radius:5px}
/* Desktop: Fixit's header is transparent with white text; pages without the dark banner need a background */
@media (min-width:992px){body:not(:has(.breadcrumb-section)) > header{position:relative;background:#0b1230}}
/* bottom bar: labels on one line so every item and icon stays aligned (es and ca, 320-414 px) */
@media (max-width:991.98px){.nf-bn-item{min-width:0}.nf-bn-label{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}.nf-bn-item.active .nf-bn-label{overflow:visible}@media (max-width:340px){.nf-bn-item{font-size:10px}}}
