/** Whole Page Rules **/
html, body {
  padding: 0;
  margin: 0;
  font-size: 20px;
  font-family: Panton-SemiBold,Arial,sans-serif;
  font-weight: normal;
  color: #003c4c;
  overflow-x: hidden;
}

.content {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 10px;
}

a {
  color: #003c4c;
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover, a:focus, a:active, a.active {
  color: #be5d82;
  text-decoration: none;
}

/** Header **/
header {
  background: #be5d82;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-content: center;
  margin: 0;
  padding: 0;
  position: relative;
  width: 100vw;
  min-height: 100px;
}

header h1 {
  position: absolute;
  top: 0;
  left: 0;
  padding: 1rem;
  margin: 0;
  display: flex;
  align-items: center;
  z-index: 1000;
}

header h1 img {
  height: 100px;
  width: fit-content;
}

header h1 a:focus {
  outline: #fff 1px solid;
  outline-offset: 3px;
  text-decoration: none;
}

header nav {
  position: relative;
  align-items: center;
  display: flex;
  flex-direction: row;
  padding: 1rem;
  width: 100%;
}

header nav.main-menu {
  display: inline-flex;
  align-items: flex-end;
  justify-content: flex-end;
}

header nav.main-menu a {
  color: white;
}

header nav.main-menu a:hover
header nav.main-menu a:active
header nav.main-menu a.active {
  color: white;
  text-decoration: none;
}

header nav.main-menu a:focus {
  outline: #fff 1px solid;
  outline-offset: 3px;
  text-decoration: none;
}

header nav.main-menu ul li {
  display: inline-flex;
  align-items: center;
  height: calc(100px - 2rem);
  padding: 0px 10px;
}

header nav.main-menu button {
  height: calc(100px - 2rem);
  width: 80px;
  background-color: transparent;
  border: none;
  border-radius: 16px;
  color: white;
  cursor: pointer;
}

header nav.main-menu button:hover,
header nav.main-menu button:focus,
header nav.main-menu button:active {
  background-color: #1a242f;
}

header nav.main-menu button .hamburger-slice {
  background: white;
  width: 40px;
  height: 5px;
  margin: 5px auto;
  border-radius: 2px;
}

.hide {
  display: none;
}

/** Main Content **/
.main-content {
  line-height: 1.5;
}

img.feature-image {
  width: 100%;
}

img.aside-image {
  float: right;
  width: 50%;
  display: inline;
  margin: 0 0 10px 20px;
}

img.footer-logo {
  align-self: flex-end;
  width: 100px;
}

.aside-text {
  display: inline;
}

ul.list-with-image-bullet-points.indented {
  padding: 0 20px 0 0;
}

ul.list-with-image-bullet-points,
ul.list-with-image-bullet-points.logo,
ul.list-with-image-bullet-points.logo-large {
  padding: 0;
}

ul.list-with-image-bullet-points li {
  margin: 40px 0;
  padding:0 0 0 10px;
  list-style-type: none;
  display: flex;
  align-items: center;
}

ul.list-with-image-bullet-points li .image-bullet-point {
  margin: 0 10px 0 0;
}

ul.list-with-image-bullet-points li .image-bullet-point img {
  width: 60px;
  height: 60px;
}

ul.list-with-image-bullet-points.logo li .image-bullet-point img {
  width: 90px;
  height: 90px;
}

ul.list-with-image-bullet-points.logo-large li .image-bullet-point img {
  width: 200px;
  height: 200px;
}

.main-content h1 {
    font-size: 2.5rem;
}

.main-content h2 {
  font-size: 2rem;
}

.main-content h3 {
  font-size: 1.5rem;
}

.main-content h3.smaller {
  font-size: 1.4rem;
}

section {
  padding: 20px 0 0 0;
}

div.two-column-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px;
  row-gap: 20px;
}

div.three-column-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 20px;
  row-gap: 20px;
}

.light {
  background: #ecebf3;
  color: #003c4c;
}

.dark {
  background: #1a242f;
  color: white;
}

/** Main Content - special rules for specific bits of content **/
h1, h2, h3, h4, h5, h6 {
  font-family: Panton-ExtraBold;
  font-weight: normal;
}

img.project-icon {
  width:32px;
  margin-right: 10px;
}

img.project-icon.large {
  display: block;
  width: 100px;
  margin: 0 auto;
}

.post-content img {
  max-width:80%;
  display: block;
  margin: 0 auto;
}

.blog-post-list-item {
  padding: 10px 0;
}

.blog-meta, .blog-post-list-item .post-meta {
  font-size: 0.8rem;
  margin: 0 0 50px 0;
}

.blog-post-list-item .post-link {
  text-align: right;
  clear: both;
}

.grid-card {
  border-radius: 16px;
  padding: 0 20px;
}

.fa {
  margin: 0 4px 0 0;
}

.fa-chevron-up {
  margin: 0 auto; 
}

.fa-envelope {
  margin: 0 8px 0 4px;
}

.fa-linkedin-square {
  margin: 0 8px 0 4px;
}

/** Footer **/
footer {
  display: flex;
  flex-direction: column;
  background: #1a242f;
  color: white;
  font-size: 0.8rem;
  margin-top: 8rem;
  padding: 20px;
}

footer a {
    color: white;
}

footer a:hover,

footer a:active,
footer a.active {
  /** TODO This now looks same as other text which is fine for hover but not focus. This needs to be changed. **/
  outline: 0;
  color: #ffffff;
  text-decoration: none;
}

footer a:focus {
  outline: #fff 1px solid;
  outline-offset: 3px;
  text-decoration: none;
}

.footer-content {
  margin: 0 auto;
  display: flex;
  flex-direction: row;
}

.footer-content-left {
  margin: 20px;
}

.footer-content-right {
  min-width: 150px;
  display: flex;
  flex-direction: column;
  margin: 20px;
}

ul.external-places-links {
  padding: 0;
  margin: 10px 0;
}

ul.external-places-links-footer {
  align-self: flex-end;
  padding: 0;
}

ul.external-places-links li {
  list-style-type:none;
  margin: 10px 0 10px 0;
  text-align: right;
}

ul.external-places-links-footer li {
  font-size: 1.5rem;
  display: inline;
  list-style-type:none;
  margin: 0;
}

ul.external-places-links-footer li a {
  text-decoration: none;
}


/** Wide screens, eg Desktop **/
@media (min-width: 960px) {

  footer .grid-content {
    display: flex;
    flex-direction: row;
  }

  .scroll-to-top {
    display: none;
  }


  .blog-post-list-item .post-image {
    float: right;
    margin: 36px 0 20px 20px;
    min-height: 100px;
  }

  .partner-page-mugshots {
    float: right;
    margin: 0 0 10px 10px;
  }

  .three-columns-of-items {
    display: flex;
    flex-wrap: wrap;
  }

  .three-columns-of-items li {
    flex: 250px;
  }

  .footer-content-right {
    display: flex;
    flex-direction: column;
    margin: 20px;
  }
}

/**  Narrow screens, eg Mobile **/
@media (max-width: 961px) {

  header h1 {
    align-items: flex-start;
  }

  header h1 img {
    height: calc(100px - 2rem);
  }

  header nav.main-menu {
    text-align: right;
    flex-direction: column;
  }

  header nav.main-menu ul {
    height: auto;
    width: 100%;
    margin-top: 2rem;
  }

  header nav.main-menu ul li {
    height: fit-content;
    display: block;
    margin-bottom: 1rem;
  }

  footer {
    margin-top: 4rem;
  }

  .scroll-to-top {
    position: fixed;
    display: block;
    bottom: 20px;
    right: 20px;
    background-color: #1a242f;
    border-radius: 16px;
  }

  .scroll-to-top a {
    color: white;
    display: block;
    padding: 15px;
  }

  .scroll-to-top a:hover,
  .scroll-to-top a:focus,
  .scroll-to-top a:active,
  .scroll-to-top a.active {
    color: #be5d82;
  }

  div.two-column-grid,
  div.three-column-grid {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 20px;
    row-gap: 20px;
  }

  img.aside-image {
    float: none;
    width: 100%;
    display: block;
    margin: 0;
  }
  
  .aside-text {
    display: block;
  }

  footer {
    display: flex;
    flex-direction: column;
  }

  .footer-content {
    flex-direction: column;
    align-content: stretch;
  }
    
  .footer-content-right {
    display: flex;
    flex-direction: row;
    margin: 20px;
    align-items: flex-start;
  }

  img.footer-logo {
    display: block;
    margin-left: 40px;
  }

  .blog-post-list-item .post-image {
    display: none;
  }

  .partner-page-mugshots {
    display:block;
    margin: 10px auto;
  }

}
