/* Compact shared header with an intentional desktop logo overhang. */
.site-header {
  overflow: visible;
}

.header-inner {
  position: relative;
  width: min(1500px, 96vw);
  height: 140px;
  min-height: 140px;
  padding-top: 0;
  padding-bottom: 0;
}

.logo {
  position: absolute;
  z-index: 40;
  top: -4px;
  left: 50px;
  display: block;
  width: 230px;
}

.logo img {
  display: block;
  width: 230px;
  max-width: none;
  max-height: none;
  object-fit: contain;
  filter: drop-shadow(0 5px 6px rgba(4, 27, 55, .12));
}

.main-nav {
  margin-left: 295px;
  margin-right: auto;
  gap: 22px;
  align-self: center;
  white-space: nowrap;
  letter-spacing: .015em;
}

.callbox {
  margin-left: 24px;
  margin-right: 0;
  flex: 0 0 220px;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.callbox small {
  margin: 0 0 3px;
  line-height: 1;
  letter-spacing: .05em;
}

.callbox > a:not(.btn) {
  margin: 3px 0 11px;
  line-height: 1;
  font-size: 26px;
}

.callbox .btn {
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  border: 0;
  outline: 0;
  box-shadow: 0 8px 18px rgba(213, 22, 39, .18);
  white-space: nowrap;
  line-height: 1;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.callbox .btn:hover,
.callbox .btn:focus-visible {
  background: #b91020;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(213, 22, 39, .25);
}

.main-nav > a,
.main-nav .dropdown > a {
  transition: color .18s ease;
}

/* The overhanging logo occupies the left side of the store navigation. */
.store-subnav .wrap {
  padding-left: 295px;
}

@media (max-width: 1180px) and (min-width: 1051px) {
  .logo,
  .logo img {
    width: 235px;
  }

  .main-nav {
    margin-left: 248px;
    margin-right: auto;
    gap: 14px;
    font-size: 12px;
  }

  .store-subnav .wrap {
    padding-left: 248px;
  }
}

/* Mobile/tablet navigation keeps the logo contained in the header. */
@media (max-width: 1050px) {
  .header-inner {
    height: 112px;
    min-height: 112px;
  }

  .logo {
    position: static;
    width: auto;
  }

  .logo img {
    width: 145px;
    max-width: 100%;
    max-height: 96px;
    filter: none;
  }

  .main-nav {
    margin-left: 0;
    margin-right: 0;
  }

  .callbox {
    display: none;
  }

  .store-subnav .wrap {
    padding-left: 0;
  }
}
