/* CSS style resets adapted from https://www.udemy.com/course/advanced-css-and-sass/learn/lecture/8274400#overview & https://www.linkedin.com/learning/css-advanced-layouts-with-grid */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Poppins, sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: hsl(213, 24%, 15%);
  background-color: hsl(215, 37%, 90%);
  width: 100%;
}

body>* {
  margin: 0 auto;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: Lora, serif;
  clear: both;
}

ul {
  list-style-type: none;
}

b,
strong {
  font-weight: bold;
}

dfn,
cite,
em,
i {
  font-style: italic;
}

blockquote {
  margin: 0 1.66rem;
  line-height: 1.8;
  margin-bottom: .75rem;
  font-size: 1rem;
  font-style: italic;
}

address {
  margin: 0 0 1.5em;
}

abbr,
acronym {
  border-bottom: .0625rem dotted hsl(0, 0%, 40%);
  cursor: help;
}

mark,
ins {
  background: hsl(54, 100%, 88%);
  text-decoration: none;
}

figure {
  margin: 0;
}

/* Global styles */

h1,
h3,
h4 {
  text-align: center;
  padding: 1em 0;
  margin: 0;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.65rem;
}

h4 {
  text-transform: uppercase;
  letter-spacing: .25rem;
  font-weight: 700;
  font-size: 1.25rem;
  margin-top: 1rem;
  padding-bottom: 2rem;
}

h5 {
  font-size: 1.1rem;
  letter-spacing: .0175rem;
}

h4,
h6 {
  color: hsl(252, 5%, 38%);
}

h6 {
  font-size: .9rem;
}

h2,
h3,
h5 {
  font-weight: 700;
  line-height: 1.15;
  padding: .25rem 0 1.33rem;
  position: relative;
}

p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
  color: hsl(256, 5%, 41%);
  padding-left: .5rem;
  padding-right: .5rem;
}

a {
  text-decoration: none;
}

button {
  cursor: pointer;
}

/* Pseudo-element selector workaround to handle fixed navbar encroaching into anchor link areas - as suggested here: https://stackoverflow.com/questions/4086107/fixed-page-header-overlaps-in-page-anchors */

:target::before {
  content: "";
  display: block;
  height: 3rem;
  /* fixed header height*/
  margin: -3rem 0 0;
  /* negative fixed header height */
}

/* Buttons */

.btn {
  padding: 1.125rem 2rem;
  text-transform: uppercase;
  font-family: Lora, serif;
  color: hsl(214, 24%, 19%);
  font-size: .9rem;
  border-radius: 5rem;
  font-weight: 900;
  letter-spacing: -.0125rem;
}

.btn-contact {
  background-color: hsl(204, 47%, 41%);
  color: hsl(0, 0%, 100%);
  display: inline-block;
  font-size: .85rem;
}

.btn-contact:hover,
.btn-contact:focus,
.btn-partners:hover,
.btn-partners:focus,
.btn-book:hover,
.btn-book:focus {
  box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 10px 0 rgb(0 0 0 / 12%);
}

.btn-contact:focus {
  background-color: hsl(204, 46%, 30%);
}

.btn-partners:focus {
  background-color: hsl(216, 37%, 85%);
}

.btn-book:hover {
  background-color: hsl(47, 58%, 56%);
}

.btn-book:focus {
  background-color: hsl(47, 58%, 50%);
}

.btn-press {
  border: none;
  background-color: hsl(0, 0%, 96%);
  font-family: unset;
  text-transform: unset;
  padding-top: 0;
  padding-bottom: 0;
  font-weight: 300;
  font-size: 1.0625rem;
  border-radius: 0;
  background-position: bottom;
  background-size: 100% 30%;
  background-repeat: no-repeat;
  padding-left: .33rem;
  padding-right: .33rem;
  background-image: linear-gradient(90deg, hsla(47, 58%, 56%, .33), hsla(47, 58%, 56%, .33))
}

.btn-press:hover {
  background-image: linear-gradient(90deg, hsl(215, 37%, 90%), hsl(215, 37%, 90%));
}

.btn-press:focus {
  background-image: linear-gradient(90deg, hsla(234, 40%, 29%, .33), hsla(234, 40%, 29%, .33));
}

.btn-book,
.btn-partners {
  display: none;
}

/* Back-to-top button */

#btn-back-to-top {
  position: fixed;
  bottom: -.5rem;
  right: .9rem;
  z-index: 98;
  font-size: 3.5rem;
  color: hsl(234, 40%, 29%);
  display: none;
}

#btn-back-to-top:hover {
  color: hsl(47, 58%, 56%);
}

/* Code block adapted from https://bbbootstrap.com/snippets/simple-back-top-smooth-scroll-17111555 */

.js .cd-top--fade-out {
  opacity: .5
}

.js .cd-top--is-visible {
  visibility: visible;
  opacity: 1
}

.js .cd-top {
  visibility: hidden;
  opacity: 0;
  transition: opacity .3s, visibility .3s, background-color .3s
}

.cd-top {
  position: fixed;
  bottom: 20px;
  bottom: var(--cd-back-to-top-margin);
  right: 20px;
  right: var(--cd-back-to-top-margin);
  display: inline-block;
  height: 40px;
  height: var(--cd-back-to-top-size);
  width: 40px;
  width: var(--cd-back-to-top-size);
}

/* Navbar */

.navbar {
  background-color: hsl(234, 40%, 29%);
  width: 100%;
  color: hsl(47, 58%, 56%);
  padding: .5rem 1rem;
  position: relative;
}

.fixed-top {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
  height: 4.25rem;
}

.navbar-logo {
  width: 42.5%;
  max-width: 10rem;
  display: inline-block;
}

.logo {
  width: 100%;
  height: auto;
}

.navbar-toggler {
  position: absolute;
  top: 1rem;
  right: 1rem;
  height: 2.5rem;
  width: 2.5rem;
  border-radius: .25rem;
  border: none;
  background-color: transparent;
  overflow: hidden;
  z-index: 2;
}

#nav-toggler span {
  display: block;
  width: 100%;
  height: 100%;
  text-align: center;
  font-size: 1.5rem;
  line-height: 2.25rem;
  background-color: hsl(234, 40%, 29%);
  color: hsl(47, 58%, 56%);
  transition: .05s ease-in-out;
}

#nav-toggler span:nth-child(2) {
  font-size: 1.75rem;
  padding-left: 0;
  position: relative;
}

#nav-toggler span.active {
  transform: translateY(-100%);
}

#nav-toggler span:nth-child(2).active {
  top: -.25rem;
}

.collapse {
  width: 100vw;
  padding: 0;
  position: absolute;
  top: 4.25rem;
  left: 0;
  bottom: 0;
  right: 0;
}

.navbar-nav {
  background-color: hsl(0, 0%, 96%);
  text-align: center;
  padding: 1.5rem .5rem;
  position: absolute;
  top: 0;
  height: calc(100vh - 4.25rem);
  left: 100%;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  clip-path: polygon(0% 24%, 62% 0, 100% 0, 100% 76%, 38% 100%, 0 100%);
}

.navbar-nav,
.collapse {
  transition: all .25s;
}

.navbar-nav.show {
  left: 0;
}

.collapse.toggled {
  height: calc(100vh - 4.25rem);
  background-color: hsla(213, 24%, 15%, .6);
}

.nav-item:not(.nav-item-contact) {
  margin: 2.4vh 0;
}

.navbar-nav>.nav-item {
  position: relative;
  top: -.5rem;
}

.nav-item-contact {
  margin: 2rem 0;
}

.nav-link:not(.btn) {
  color: hsl(213, 24%, 15%);
  font-weight: 300;
  width: 100%;
  height: 100%;
  display: block;
}

.navbar-nav .nav-link:not(.btn):hover {
  background-position: bottom;
  background-size: 100% 30%;
  background-repeat: no-repeat;
  padding-left: .33rem;
  padding-right: .33rem;
  background-image: linear-gradient(90deg, hsl(215, 37%, 90%), hsl(215, 37%, 90%));
}

.navbar-nav .nav-link:not(.btn):focus {
  background-image: linear-gradient(90deg, hsla(234, 40%, 29%, .33), hsla(234, 40%, 29%, .33));
}

#press-list {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background-color: hsl(215, 37%, 90%);
  z-index: 999;
  padding: 1rem 2rem 1rem 12.5vw;
  display: none;
  transform: translateY(100%);
  transition: all 5s ease-in-out;
  opacity: 0;
}

#press-list.press-reveal {
  display: block;
  transform: translateY(0%);
  opacity: 1;
}

.press-list-item {
  padding: .55rem 0;
}

.press-list-link {
  color: hsl(213, 24%, 15%);
  font-weight: 400;
  position: relative;
  padding-left: 2.25rem;
}

.press-list-icon {
  position: absolute;
  left: 0;
  top: -.375rem;
}

.full-date {
  display: none;
}

/* Media Query */

/* small mobile */

@media screen and (max-width: 360px) {

  .navbar-nav>.nav-item {
    top: 0;
  }

  .nav-item:not(.nav-item-contact) {
    margin: 1.9vh 0;
  }

  .press-list-link {
    font-size: .9rem;
  }

}

/* Header */

header {
  height: 100vh;
  background-image: url(../images/bg-horizon.jpg);
  background-size: cover;
  background-position: bottom;
  position: relative;
  padding-top: 4.25rem;
}

.hero-icons {
  display: flex;
  padding-top: 10vh;
  justify-content: center;
  width: 90%;
  margin: 0 auto;
  overflow-x: hidden;
}

.hero-icons>img {
  opacity: 0;
  display: inline-block;
  position: relative;
  width: 50%;
  max-width: 12.5rem;
  animation: icon-reveal .5s ease-in-out 1s 1 forwards;
}

.hero-icons>img:nth-of-type(2) {
  right: 7vw;
  animation-delay: 2s;
}

.chevron-box {
  position: absolute;
  top: 81vh;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: bobbing 2s 2.5s ease-in-out infinite;
}

.chevron-box a {
  font-size: 3.5rem;
  color: hsl(47, 58%, 56%);
}

video,
.header-container {
  display: none;
}

/* Main */

/* About section */

.about-section-image {
  height: 92vw;
  max-height: 26rem;
  background-size: cover;
  background-position: center;
}

.about-coffee-image {
  background-image: url(../images/bg-coffee-cups.jpg);
}

.about-barber-image {
  background-image: url(../images/barbers.jpg);
}

.about-section-text {
  height: 84vw;
  max-height: 20rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 1rem;
  position: relative;
}

.about-section-text>h2 {
  padding: 0 0 1rem;
}

.about-section-text>p {
  font-size: 1rem;
}

.about-section-text>h2,
.about-section-text>p,
.about-section-text>a {
  position: relative;
  top: -1rem;
}

/* Media Query */

/* small mobile */

@media screen and (max-width: 360px) {

  .about-section-text>p {
    font-size: .9rem;
  }

  .about-section-text>h2,
  .about-section-text>p,
  .about-section-text>a {
    position: relative;
    top: 0;
  }

}

.link-more-info,
.link-producers,
.link-book {
  background-position: bottom;
  background-size: 100% 40%;
  background-repeat: no-repeat;
  padding-left: .33rem;
  padding-right: .33rem;
  background-image: linear-gradient(90deg, hsla(47, 58%, 56%, .5), hsla(47, 58%, 56%, .5))
}

.link-more-info {
  font-family: Lora, serif;
  color: hsl(213, 24%, 15%);
  text-transform: uppercase;
  font-size: 1.1rem;
  letter-spacing: .025rem;
  font-weight: 700;
}

.link-producers,
.link-book {
  color: hsl(213, 24%, 15%);
}

.link-more-info:hover,
.link-producers:hover,
.link-book:hover {
  background-image: linear-gradient(90deg, hsla(234, 40%, 29%, .33), hsla(234, 40%, 29%, .33))
}

.link-more-info:focus,
.link-producers:focus,
.link-book:focus {
  background-image: linear-gradient(90deg, hsla(234, 40%, 29%, .5), hsla(234, 40%, 29%, .5))
}

/* More Info section */

.more-info-section {
  position: relative;
}

.more-info-section-image {
  height: 178vw;
  max-height: 45rem;
  background-size: cover;
  background-position: top;
}

.local-business-image {
  background-image: url(../images/bg-local-business.jpg);
}

.get-in-touch-image {
  background-image: url(../images/bg-get-in-touch.jpg);
}

.local-business-text,
.get-in-touch-text {
  position: absolute;
  left: 0;
  text-align: center;
  padding: 1rem;
  width: 100%;
}

.more-info-section-text p {
  font-size: .95rem;
  padding-left: .5rem;
  padding-right: .5rem;
  color: hsl(213, 24%, 15%);
  font-weight: 300;
}

.more-info-section-text p:nth-of-type(2),
.more-info-section-text p:nth-of-type(3) {
  display: none;
}

.local-business-text {
  top: 14vw;
}

.span-producers,
.span-book {
  display: none;
}

/* Media Query */

/* small mobile */

@media screen and (max-width: 360px) {

  h3 {
    font-size: 1.5rem;
    padding-bottom: 1rem;
  }

  .more-info-section-text p {
    font-size: .85rem;
  }

  .local-business-text {
    top: 5vw;
  }
}

.get-in-touch-text {
  bottom: 0;
  background-color: hsla(0, 0%, 100%, .8);
  padding-bottom: .25rem;
}

/* Limited browser support - and none in Firefox - for backdrop-filter: https://caniuse.com/#feat=css-backdrop-filter */

@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {

  .get-in-touch-text {
    -webkit-backdrop-filter: blur(.5rem);
    backdrop-filter: blur(.5rem);
    background-color: hsla(0, 0%, 100%, .5);
  }

}

.get-in-touch-text p {
  margin-bottom: 2.5rem;
}

/* Customer Reviews section */

#customer-reviews {
  padding-bottom: 2.75rem;
}

figure {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  margin: 1.5rem 0 3.5rem;
}

.profiler {
  border-radius: 50%;
  margin-bottom: 1.25rem;
}

.customer {
  padding-bottom: .75rem;
}

/* Image Gallery */

#gallery {
  display: flex;
  flex-wrap: wrap;
}

.gallery-image {
  width: 50%;
  height: 50vw;
  max-height: 15rem;
  background-size: cover;
  background-position: center;
}

.gallery-image:first-of-type {
  background-image: url(../images/bg-coffee-heart.jpg);
}

.gallery-image:nth-of-type(2) {
  background-image: url(../images/bg-barber-kit.jpg);
}

.gallery-image:nth-of-type(3) {
  background-image: url(../images/bg-matthew.jpg);
}

.gallery-image:nth-of-type(4) {
  background-image: url(../images/bg-pasteis.jpg);
}

.gallery-image:nth-of-type(5),
.gallery-image:nth-of-type(6) {
  display: none;
}

/* Partners section */

.reviews-heading {
  padding-bottom: 1.5rem;
}

#partners {
  margin: 0 1.75rem 1.75rem;
}

.partner {
  margin: 1.75rem 0;
}

.partner:nth-of-type(7),
.partner:nth-of-type(11) {
  display: none;
}

.partner-logo {
  height: 30vw;
  display: block;
  border-radius: .1rem;
}

.partner-logo,
.partner-link {
  width: 100%;
}

.partner-link img {
  transition: all .1s ease-in-out;
}

.partner-link:hover img {
  transform: translateY(-.1rem)
}

.partner-link:hover img {
  box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 10px 0 rgb(0 0 0 / 12%);
}

.pieman-logo {
  background-color: hsl(12, 19%, 95%);
}

/* Location section */

#location h5 {
  color: hsl(234, 40%, 29%);
  padding-left: 2rem;
  padding-right: 2rem;
  text-align: center;
  font-weight: 600;
}

.map-container {
  height: 125vw;
  max-height: 25rem;
  margin-left: 1rem;
  margin-right: 1rem;
  margin-bottom: 3.75rem;
}

/* Footer */

footer {
  height: 90vh;
  min-height: 35rem;
  max-height: 36.5rem;
  background-color: hsl(204, 47%, 41%);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: relative;
}

.heading-footer {
  position: relative;
  font-size: 2.25rem;
  top: -2.5vh;
  color: hsl(0, 0%, 0%);
}

.footer-nav,
.footer-nav-social {
  display: flex;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.footer-nav {
  justify-content: space-evenly;
}

.footer-nav-social {
  justify-content: space-between;
}

.footer-nav-contact {
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-nav-contact .nav-item {
  margin: 0 0 .5rem;
  color: hsl(0, 0%, 0%);
  font-weight: 500;
}

.footer-nav {
  width: 80%;
  margin-bottom: 1rem;
  top: -6vh;
}

.footer-nav:not(.footer-nav-contact) {
  top: -5vh;
}

.reach-out {
  position: relative;
  top: -6.5vh;
}

.footer-nav-social {
  width: 44%;
  top: -11vh;
}

.footer-nav-social .nav-link {
  color: hsl(0, 0%, 0%);
  transition: all .2s ease-in-out;
}

.footer-nav-social .nav-link:hover {
  color: hsl(47, 58%, 56%);
  transform: translateY(-.3rem);
}

.footer-nav-social .nav-link:focus {
  color: hsl(47, 58%, 50%);
}

pre {
  position: relative;
  top: -12vh;
}

.footer-nav .nav-link,
.reach-out,
pre {
  color: hsl(0, 0%, 100%);
}

.footer-nav .nav-link {
  font-size: 1.05rem;
}

.footer-nav:not(.footer-nav-contact) .nav-link {
  font-size: 1.25rem;
}

.email-link:hover,
.footer-nav:not(.footer-nav-contact) .nav-link:hover {
  color: hsl(47, 58%, 56%);
}

.email-link:focus,
.footer-nav:not(.footer-nav-contact) .nav-link:focus {
  color: hsl(47, 58%, 50%);
}

.email-link {
  color: hsl(0, 0%, 0%);
}

.email-icon {
  position: relative;
  top: .25rem;
}

/* Media Query */

/* small mobile */

@media screen and (max-width: 360px) {

  .footer-nav-contact {
    font-size: .9rem;
  }

  .email-icon {
    width: 1.2rem;
  }

}

.fa-phone,
.email-icon {
  margin-right: .35rem;
}

.footer-nav-social .nav-link {
  font-size: 1.5rem;
}

.twitter {
  position: relative;
  top: .175rem;
}

.dog-friendly {
  position: relative;
  top: -8vh;
  transform: rotate(35deg);
}

/* Attribution notes */

.attribution {
  font-size: .75rem;
  position: absolute;
  bottom: 1rem;
  left: 0;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  padding-left: 2rem;
  padding-right: 2rem;
}

.attribution p {
  margin-bottom: 0;
  color: hsl(0, 0%, 0%);
  font-weight: 500;
}

.attribution a {
  color: hsl(215, 37%, 90%);
}

.attribution a:hover {
  color: hsl(184, 100%, 19%);
}

.fa-heart,
.fa-mug-hot {
  padding: 0 .1rem;
}

.fa-mug-hot {
  font-size: .9rem;
  position: relative;
  top: -.1rem;
}

.ltd {
  padding-left: .2rem;
}

/* Animations */

@keyframes icon-reveal {

  0% {
    opacity: 0;
    transform: scale(0);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }

}

@keyframes bobbing {

  0% {
    top: 81vh;
  }

  50% {
    top: 86vh;
  }

  100% {
    top: 81vh;
  }

}

/* Media Queries */

/* large mobile/small tablet */

@media screen and (min-width: 600px) {

  /* Navbar */

  #press-list {
    padding-left: 32vw;
  }

  /* Header */

  header {
    background-position: center;
  }

  .hero-icons>img:nth-of-type(2) {
    right: 3vw;
  }

  /* Main */

  /* About section */

  .about-coffee-image {
    background-position: bottom;
  }

  .about-barber-image {
    background-position: top;
  }

  /* More Info section */

  .get-in-touch-image {
    background-position: center;
  }

  /* Image gallery */

  .gallery-image {
    max-height: 19rem;
  }

  /* Partners section */

  #partners {
    padding: 3.5rem 0 0;
    display: flex;
    flex-direction: row;
    width: calc(100% - 3.5rem);
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 0;
  }

  #partners .reviews-heading {
    width: 100%;
  }

  .partner {
    display: block;
    justify-content: unset;
    align-items: unset;
    flex-direction: unset;
    text-align: center;
    width: calc(50% - .875rem);
    margin: .875rem 0;
  }

  .partner-logo,
  .partner-link {
    height: 15vw;
  }

  /* Location section */

  .map-container {
    min-height: unset;
    margin-left: auto;
    margin-right: auto;
    width: 75vw;
    height: 48vw;
  }

  /* Footer */

  .heading-footer {
    top: .75vh;
  }

  .footer-nav:not(.footer-nav-contact) {
    top: -4vh;
  }

  .footer-nav-contact {
    top: -8vh;
  }

}

/* medium tablet screens */

@media screen and (min-width: 768px) {

  /* Global styles */

  h2 {
    font-size: 2.25rem;
  }

  h3 {
    font-size: 2rem;
    padding-bottom: 1.5rem;
  }

  h4 {
    font-size: 1.33rem;
  }

  h5 {
    font-size: 1.25rem;
  }

  h6 {
    font-size: 1rem;
  }

  figure:not(.partner) {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
  }

  blockquote {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 35rem;
  }

  footer {
    max-height: unset;
    height: unset;
  }

  /* Buttons */

  .btn-book {
    width: 13.5rem;
    background-color: hsl(47, 58%, 32%);
    color: hsl(0, 0%, 100%);
    display: inline-block;
    margin-top: .75rem;
    letter-spacing: unset;
    font-weight: 600;
    font-size: .75rem;
  }

  /* Navbar */

  .navbar-nav>.nav-item {
    top: 0;
  }

  .navbar-nav>.nav-item,
  .btn-press {
    font-size: 1.25rem;
  }

  #press-list {
    padding-left: 30vw;
    padding-top: 2.25rem;
    padding-bottom: 2.25rem;
    min-height: 32.5vw;
  }

  #press-list.press-reveal {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .press-list-item {
    padding-bottom: 1rem;
    font-size: 1.15rem;
  }

  .full-date {
    display: inline;
  }

  /* Header */

  .hero-icons {
    padding-top: 7.5vh;
  }

  .hero-icons>img {
    max-width: 17.5rem;
  }

  .hero-icons>img:nth-of-type(2) {
    right: 5vw;
  }

  .chevron-box {
    top: 80vh;
  }

  .chevron-box a {
    font-size: 4.5rem;
  }

  /* Main */

  /* More Info section */

  .more-info-section-image {
    height: 100vh;
    max-height: unset;
  }

  .local-business-text,
  .get-in-touch-text {
    width: 100%;
    padding: 2rem;
  }

  .local-business-text {
    top: 6vw;
  }

  .more-info-section-text p {
    font-size: 1.05rem;
    max-width: 42rem;
    margin: 0 auto 1.25rem;
  }

  .more-info-section-text p:nth-of-type(2),
  .more-info-section-text p:nth-of-type(3) {
    display: block;
  }

  .get-in-touch-image {
    background-image: url(../images/bg-get-in-touch-md.jpg);
  }

  .get-in-touch-text {
    padding-bottom: 2.5rem;
    padding-top: 1.5rem;
  }

  .get-in-touch-text h3 {
    padding-bottom: 1.25rem;
  }

  .get-in-touch-text p {
    max-width: 27rem;
    font-weight: 400;
    margin-bottom: 1rem;
  }

  .link-book {
    display: none;
  }

  .span-book {
    display: inline;
  }

  /* Customer reviews section */

  #customer-reviews,
  #location {
    padding-top: 3.5rem;
  }

  figure:not(.partner) {
    margin-bottom: 2.5rem;
  }

  #customer-reviews figure:first-of-type {
    margin-bottom: 1.5rem;
  }

  #customer-reviews figure:nth-of-type(2),
  #customer-reviews figure:nth-of-type(3) {
    width: 48vw;
    display: inline-block;
  }

  #customer-reviews figure:nth-of-type(2) {
    padding-left: 1.7vw;
  }

  #customer-reviews figure:nth-of-type(3) {
    padding-right: 1.7vw;
  }

  #customer-reviews figure:nth-of-type(4) {
    margin-top: 0;
  }

  .profiler {
    width: 5rem;
    height: 5rem;
    margin-bottom: 1rem;
  }

  /* Image gallery */

  .gallery-image {
    max-height: unset;
    width: 33.33333%;
    height: 33.33333vw;
  }

  .gallery-image:nth-of-type(5),
  .gallery-image:nth-of-type(6) {
    display: block;
  }

  .gallery-image:first-of-type {
    background-image: url(../images/bg-cold-brew.jpg);
  }

  .gallery-image:nth-of-type(2) {
    background-image: url(../images/bg-matthew.jpg);
  }

  .gallery-image:nth-of-type(3) {
    background-image: url(../images/bg-pasteis.jpg);
  }

  .gallery-image:nth-of-type(4) {
    background-image: url(../images/bg-barber-kit-orange.jpg);
  }

  .gallery-image:nth-of-type(5) {
    background-image: url(../images/bg-coffee-heart.jpg);
  }

  .gallery-image:nth-of-type(6) {
    background-image: url(../images/bg-barber-kit.jpg);
  }

  /* Partners section */

  .partner:nth-of-type(7),
  .partner:nth-of-type(11) {
    display: block;
  }

  /* Footer */

  footer {
    min-height: 37.5rem;
  }

  .heading-footer {
    padding-top: 1.5rem;
    font-size: 2.5rem;
    top: -0.5vh;
  }

  .footer-nav:not(.footer-nav-contact) {
    top: -3.75vh;
  }

  .footer-nav:not(.footer-nav-contact) .nav-link {
    font-size: 1.4rem;
  }

  .footer-nav-contact {
    top: -5.75vh;
  }

  .footer-nav-contact .nav-item {
    margin: 0;
  }

  .reach-out {
    top: -6vh;
  }

  .footer-nav-social {
    top: -9.5vh;
  }

  .footer-nav-social .nav-link {
    font-size: 1.75rem;
  }

  pre {
    top: -10vh;
  }

  .dog-friendly {
    top: -8vh;
  }

  .attribution {
    font-size: .875rem;
  }

  /* Animations */

  @keyframes bobbing {

    0% {
      top: 80vh;
    }

    50% {
      top: 85vh;
    }

    100% {
      top: 80vh;
    }

  }

  /*--------- CSS Grid layout for wider screens, when browser supports grid: -----------*/

  @supports (grid-area: auto) {

    :target::before {
      display: none;
    }

    /* Main */

    /* About section */

    #about {
      overflow: hidden;
      display: grid;
      grid-template-columns: 100vw;
      grid-template-rows: auto auto;
    }

    .about-section {
      height: 50vh;
    }

    .about-section>* {
      height: unset;
    }

    .about-section-image {
      max-height: unset;
    }

    .about-section.coffee {
      display: flex;
    }

    .about-coffee-image {
      width: 60%;
      order: 2;
    }

    .coffee-text {
      width: 40%;
      order: 1;
    }

    .about-section.barber {
      display: grid;
      grid-template-columns: 60% 40%;
    }

    .about-section-text {
      padding: 2rem;
      max-height: unset;
    }

    .about-section-text>h2,
    .about-section-text>p,
    .about-section-text>a {
      top: unset;
    }

    .coffee-text>h2,
    .coffee-text>p,
    .coffee-text>a {
      top: 1rem;
    }

    .about-section-text>h2 {
      padding: 0 0 2rem;
    }

  }

}

/* small laptop screens */

@media screen and (min-width: 992px) {

  /* Global styles */

  body {
    position: relative;
  }

  h3 {
    font-size: 1.75rem;
  }

  h4 {
    font-size: 1.25rem;
    letter-spacing: .185rem;
  }

  blockquote {
    font-size: 1rem;
  }

  /* Buttons */

  .btn-partners,
  .btn-book {
    padding: .85rem 2rem;
  }

  .btn {
    font-size: .7rem;
  }

  .btn-press {
    font-size: 1.25rem;
  }

  .btn-contact {
    font-size: .8rem;
    padding-top: .875rem;
    padding-bottom: .875rem;
  }

  .btn-book {
    margin-top: .5rem;
  }

  .btn-partners {
    background-color: hsl(215, 37%, 90%);
    color: hsla(213, 24%, 15%, .75);
    display: inline-block;
    margin-top: .5rem;
    letter-spacing: unset;
    font-weight: 700;
    width: 13.5rem;
  }

  /* Navbar */

  .navbar-nav,
  #press-list {
    width: 40vw;
  }

  .navbar-nav {
    clip-path: none;
  }

  .navbar-nav.show,
  #press-list {
    left: 60vw;
  }

  #press-list {
    padding-left: 4.5vw;
    padding-top: 1rem;
    padding-bottom: .5rem;
    min-height: unset;
  }

  .press-list-item {
    font-size: 1rem;
  }

  .press-list-link {
    font-weight: 300;
  }

  /* Header */

  /* Video background styles adapted from https://codepen.io/bradtraversy/pen/eYdMqvx */

  header,
  .header-container,
  .overlay,
  header video,
  .hero-header {
    width: 100%;
  }

  .header-container,
  .overlay,
  header video {
    position: absolute;
  }

  header,
  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .header-container,
  header video,
  .overlay {
    top: 0;
    left: 0;
  }

  .overlay,
  header video,
  .hero-header {
    height: 100%;
  }

  header {
    transition: 0.5s;
    z-index: 2;
    background-image: none;
    margin-top: 4.25rem;
    height: calc(100vh - 4.25rem);
  }

  .header-container {
    display: block;
    z-index: 1000;
    height: 100%;
  }

  .hero-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    color: rgb(255, 255, 255);
    background-color: hsla(204, 47%, 54%, .5);
    margin: 0 auto;
    letter-spacing: .05rem;
    font-weight: 400;
    padding-bottom: 1.5rem;
    font-size: 1.7rem;
    font-family: Poppins, sans-serif;
    clip-path: polygon(0% 66%, 50% 90%, 100% 66%, 100% 100%, 0% 100%);
  }

  .hero-header .nav-link {
    width: unset;
    height: unset;
  }

  .hero-header h2 {
    padding-bottom: 0;
    padding-top: 0;
    color: hsl(215, 37%, 90%);
  }

  header video {
    display: block;
    object-fit: cover;
  }

  header video {
    opacity: .5;
  }

  .overlay {
    background: hsl(215, 37%, 90%);
    mix-blend-mode: overlay;
  }

  .hero-icons,
  .chevron-box {
    display: none;
  }

  .hero-lg-icon {
    width: 10vw;
    position: relative;
    top: .55rem;
  }

  .hero-header .nav-link:nth-of-type(2) h2 {
    position: relative;
    right: 3vw;
  }

  .hero-header .nav-link:nth-of-type(2) h2 .hero-lg-icon {
    position: relative;
    left: 1vw;
  }

  .hero-header .nav-link:hover h2 {
    color: hsl(47, 58%, 56%);
  }

  .hero-header .nav-link:focus h2 {
    color: hsl(47, 58%, 50%);
  }

  /* Main */

  /* About section */

  .about-section {
    height: 66vh;
  }

  .about-coffee-image,
  .coffee-text {
    width: 50%;
  }

  .coffee-text>h2,
  .coffee-text>p,
  .coffee-text>a {
    top: unset;
  }

  .about-coffee-image {
    background-image: url(../images/bg-barista.jpg);
    background-position: right;
  }

  .about-section.barber {
    grid-template-columns: 50% 50%;
  }

  .about-barber-image {
    background-position: top;
  }

  .about-section-text {
    padding: 2rem 4rem;
  }

  /* More Info section */

  .link-producers {
    display: none;
  }

  .span-producers {
    display: inline;
  }

  /* Image gallery */

  .gallery-image {
    flex-wrap: nowrap;
    width: calc(100% / 4);
    height: 50vh;
  }

  .gallery-image:nth-of-type(5),
  .gallery-image:nth-of-type(6) {
    display: none;
  }

  .gallery-image:first-of-type {
    background-image: url(../images/bg-matthew.jpg);
  }

  .gallery-image:nth-of-type(2) {
    background-image: url(../images/bg-coffee-heart.jpg);
  }

  .gallery-image:nth-of-type(3) {
    background-image: url(../images/bg-barber-kit.jpg);
  }

  .gallery-image:nth-of-type(4) {
    background-image: url(../images/bg-pasteis.jpg);
  }

  /* Partners section */

  #partners {
    display: flex;
    flex-wrap: wrap;
  }

  .partner {
    width: calc(100% / 4 - 1rem);
    margin: .65rem 0;
  }

  .partner-logo,
  .partner-link {
    height: 6vw;
    max-height: 5rem;
  }

  /* Footer */

  .footer-nav {
    width: 65%;
    max-width: 39.7rem;
  }

  .footer-nav-social {
    width: 36%;
    max-width: 24rem;
  }

  .heading-footer {
    top: -2.5vh;
  }

  .footer-nav:not(.footer-nav-contact) {
    top: -5.75vh;
  }

  /*--------- CSS Grid layout for wider screens, when browser supports grid: -----------*/

  @supports (grid-area: auto) {

    :target::before {
      display: none;
    }

    /* Main */

    /* About section */

    #more-info {
      overflow: hidden;
      display: grid;
      grid-template-columns: 50% 50%;
      grid-template-rows: auto;
    }

    .more-info-section-text p {
      font-size: .9rem;
      line-height: 1.5;
      margin-bottom: .5rem;
      max-width: 26rem;
    }

    .more-info-section-text p:nth-of-type(2),
    .more-info-section-text p:nth-of-type(3) {
      display: none;
    }

    .get-in-touch-text {
      padding: 1rem;
    }

    .more-info-section h3 {
      padding-bottom: 1rem;
    }

    .local-business-text {
      padding: 1rem;
      top: 5.5vw;
    }

    .local-business-image {
      background-image: url(../images/bg-local-business-lg.jpg);
    }

    /* Customer reviews section */

    #customer-reviews {
      display: grid;
      grid-template-columns: 30% 40% 30%;
      max-width: 90vw;
      margin: 0 auto;
    }

    .reviews-heading {
      grid-column-start: 1;
      grid-column-end: 4;
    }

    figure:not(.partner) {
      margin-bottom: 3rem;
    }

    #customer-reviews figure:first-of-type {
      margin-bottom: 3rem;
    }

    #customer-reviews figure:nth-of-type(2),
    #customer-reviews figure:nth-of-type(3) {
      width: unset;
      display: flex;
    }

    #customer-reviews figure:nth-of-type(4) {
      margin-top: unset;
    }

    #customer-reviews figure:first-of-type,
    #customer-reviews figure:nth-of-type(4) {
      grid-row-start: 2;
      grid-row-end: 4;
    }

    #customer-reviews figure:nth-of-type(2),
    #customer-reviews figure:nth-of-type(3) {
      padding-left: unset;
      padding-right: unset;
    }

    #customer-reviews figure:nth-of-type(2) {
      grid-row-start: 2;
      grid-row-end: 3;
      margin-bottom: 0;
      margin-bottom: -2rem;
    }

    #customer-reviews figure:nth-of-type(3) {
      grid-row-start: 3;
      grid-row-end: 4;
      margin-top: 4rem;
      position: relative;
      top: 1rem;
    }

  }

}

/* large laptop screens */

@media screen and (min-width: 1200px) {

  /* Buttons */

  .btn-partners {
    margin-top: .25rem;
    width: 13.5rem;
  }

  .btn-partners,
  .btn-book {
    padding-top: .95rem;
    padding-bottom: .95rem;
  }

  .btn-contact {
    width: 10rem;
  }

  /* Header */

  .hero-lg-icon {
    top: .65rem;
  }

  /* Main */

  /* More Info section */

  .more-info-section-text p {
    line-height: 1.6;
    max-width: 35rem;
  }

  .more-info-section-text p:nth-of-type(2),
  .more-info-section-text p:nth-of-type(3) {
    display: block;
  }

  .producers {
    display: none;
  }

  /* Partners section */

  #partners {
    max-width: 75rem;
    margin: 0 auto;
  }

  /* Location section */

  .map-container {
    max-width: 60rem;
  }

}

/* extra-large laptop screens */

@media screen and (min-width: 1440px) {

  /* Buttons */

  .btn-partners {
    margin-top: .5rem;
  }

  /* Header */

  .hero-lg-icon {
    top: .75rem;
  }

  /* Main */

  /* More Info section */

  .local-business-text {
    top: 5vw;
  }

  .local-business-text p {
    max-width: 37.5rem;
  }

  .producers {
    display: inline;
  }

  /* Image gallery */

  .gallery-image {
    max-height: 22.5rem;
  }

  /* Partners section */

  #partners {
    max-width: 80rem;
  }

  /*--------- CSS Grid layout for wider screens, when browser supports grid: -----------*/

  @supports (grid-area: auto) {

    /* Main */

    /* Customer reviews section */

    #customer-reviews {
      max-width: 80vw;
    }

  }

}