body {
  font-family: "Barlow", sans-serif;
}

ul {
  list-style: none;
  padding-inline-start: 0;
}

a {
  position: relative;
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background-color: transparent;
  cursor: pointer;
  color: inherit;
}

picture {
  width: 50%;
}

picture img {
  height: auto;
  width: 100%;
}

/* Flexbox */

.client-block,
.footer,
.gallery,
.grid,
.header,
.icons-div,
.learn-more-link,
.links-div,
.nav-link,
.js-navigation,
picture,
.sub-menu,
.stand-out,
.testimonials-block,
.top-bar,
.transform {
  display: flex;
}

.client-block,
.footer,
.header,
.learn-more-link,
.stand-out,
.sub-menu,
.transform {
  flex-direction: column;
}

.client-block,
.footer,
.sub-menu {
  align-items: center;
}

/* Fonts */

.client-name,
.grid-heading,
.grid-text-overlay h2,
.learn-more-link,
.main-heading,
.testimonials-heading {
  font-family: 'Fraunces', serif;
}

/* Skiplink */

.skiplink {
	position: absolute;
	transform: translateX(-100%);
	background-color: white;
  color: #57576B;
	z-index: 3;
	left: 0;
	top: 0;
	padding: 30px;
	font-size: 1.25rem;
}

.skiplink:focus {
	transform: translateX(0);
}


/* Hero Section */

.header {
  justify-content: space-between;
  padding: 2% 1%;
}

.hero-section {
  background: url(images/desktop/image-header.jpg) center/cover;
  padding: 0 0 45%;
}

/* Navbar */

.top-bar {
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: block;
  padding: 10px;
  width: 12%;
}

.logo:focus-visible {
  border-radius: 10px;
  outline: 2px solid #57576B;
}

.logo img {
  width: 100%;
}

.js-navigation[aria-hidden="true"] {
    display: none;
  }

.js-menu-button {
  color: #fff;
  font-size: 24px;
  font-size: 1.5rem;
  padding: 10px;
}

.js-menu-button:focus-visible {
  border-radius: 10px;
  outline: 2px solid #57576B;
}

.button-text {
  margin-left: 10px;
}

.js-navigation {
  left: 3rem;
  position: absolute;
  top: 8rem;
  width: 95%;
  z-index: 1;
}

.sub-menu {
  background: #fff;
  color: #57576B;
  padding: 5%;
  row-gap: 2.5rem;
}

.nav-link {
  border-bottom: 2px solid transparent;
  padding: 10px;
  text-align: center;
  z-index: 1;
}

.nav-link:focus-visible {
  border-radius: 10px;
  outline: 2px solid #57576B;
}

.contact {
  background: #fad400;
  border-radius: 20px;
  color: #000;
  padding: 10px 20px;
}

.contact:focus-visible {
  background: #fff;
  outline: 2px solid #57576B;
}

.main-heading {
  color: #fff;
  font-size: 72px;
  font-size: 4.5rem;
  letter-spacing: 0.5rem;
  text-align: center;
  transform: translateY(7rem);
}

/* Grid */

.grid {
  flex-wrap: wrap;
}

.stand-out,
.transform {
  justify-content: center;
  width: 50%;
}

.grid-text {
  padding: 10%;
  width: 60%;
}

.grid-heading {
  font-size: 40px;
  font-size: 2.5rem;
  margin-bottom: 10%;
}

.grid-body {
  color: #57576B;
  margin-bottom: 10%;
}

.learn-more-link {
  position: relative;
  text-align: left;
  width: 35%;
  z-index: 1;
}

.learn-more-link:focus-visible {
  outline: 2px solid #57576B;
}

.graphic-design,
.photography {
  position: relative;
  width: 50%;
}

.graphic-design picture,
.photography picture {
  aspect-ratio: auto;
  width: 100%;
}

.graphic-design {
  color: #25564b;
}

.photography {
  color: #19536b;
}

.graphic-design img,
.photography img {
  width: 100%;
}

.grid-text-overlay {
  bottom: 10%;
  left: 5%;
  position: absolute;
  text-align: center;
  width: 90%;
}

.grid-text-overlay h2 {
  font-size: 28px;
  font-size: 1.75rem;
}

.grid-text-overlay p {
  line-height: 1.5;
  margin: auto;
  width: 55%;
}

/* Testimonials */

.testimonials-section {
  padding: 5% 0;
}

.testimonials-block {
  justify-content: space-around;
}

.testimonials-heading {
  color: #57576B;
  letter-spacing: .5rem;
  margin-bottom: 5%;
  text-align: center;
}

.client-block {
  text-align: center;
  width: 25%;
}

.client-image {
  border-radius: 50%;
  margin-bottom: 10%;
}

.client-quote {
  color: #57576B;
  line-height: 1.5;
  margin-bottom: 10%;
  width: 90%;
}

.client-name {
  font-weight: 700;
}

.client-title {
  color: #57576B;
  font-family: "Barlow", sans-serif;
  display: block;
  margin-top: 10%;
}

/* Image Gallery */


/* Footer */
.footer {
  background-color: #92D3C4;
  justify-content: space-around;
  height: 250px;
  padding: 2% 0;
}

.footer-logo {
  margin: 0 auto;
  width: 15%;
}

.links-div {
  justify-content: space-around;
  flex-direction: row;
  width: 30%;
}

.footer-link {
  color: #275350;
  padding: 10px;
  text-decoration: none;
}

.icons-div {
  justify-content: space-evenly;
  width: 20%;
}

.footer-icon {
  aspect-ratio: 1/1;
  display: block;
  padding: 10px;
  width: 8%;
}

.footer-icon:focus-visible,
.footer-link:focus-visible {
  border-radius: 10px;
  outline: 2px solid #000;
}

/* Tablet //////////////////////////////////////////////////////////////////*/

@media (max-width: 1100px) {

  picture {
    width: 100%;
  }

  /* Flexbox */

  .grid,
  .sub-menu,
  .testimonials-block {
    flex-direction: column;
  }

  /* Widths */

  .gallery-img,
  .links-div {
    width: 50%;
  }

  .client-block,
  .graphic-design,
  .grid-text-overlay,
  .photography,
  .stand-out,
  .transform {
    width: 100%;
  }

  .client-quote,
  .sub-menu,
  .nav-link {
    font-size: 20px;
    font-size: 1.25rem;
  }

  /* Hero Section */

  .header {
    padding: 5%;
  }

  .hero-section {
    background: url(images/mobile/image-header.jpg) center/cover;
    padding: 0 0 80%;
  }

  .main-heading {
    font-size: 80px;
    font-size: 5rem;
  }

  .logo {
    padding: 0;
    width: 30%;
  }

  .js-navigation {
    background: #fff;
    color: #57576B;
    display: none;
    left: 5%;
    padding: 8% 0;
    position: absolute;
    top: 20%;
    width: 90%;
    z-index: 1;
  }

  .js-menu-button {
    align-items: center;
    display: flex;
    margin-left: auto;
  }

  .js-hamburger-menu {
    width: 100%;
  }

  .sub-menu {
    margin: auto;
  }

  .contact {
    background: #fad400;
  }

  /* Grid */

  #egg {
    order: 1;
  }

  #transform {
    order: 2;
  }

  #glass {
    order: 3;
  }

  #stand-out {
    order: 4;
  }

  #graphic-design {
    order: 5;
  }

  #photography {
    order: 6;
  }

  .stand-out,
  .transform {
    text-align: center;
  }

  .graphic-design {
    transform: translateY(1%);
  }

  .grid-text {
    margin: auto;
    width: 70%;
  }

  .grid-heading {
    font-size: 56px;
    font-size: 3.5rem;
  }

  .grid-body {
    font-size: 28px;
    font-size: 1.75rem;
    font-weight: 300;
  }

  .grid-text-overlay {
    bottom: 15%;
    left: 0;
  }

  .grid-text-overlay h2 {
    font-size: 48px;
    font-size: 3rem;
  }

  .grid-text-overlay p {
    font-size: 24px;
    font-size: 1.5rem;
    width: 75%;
  }

  .learn-more-link {
    font-size: 24px;
    font-size: 1.5rem;
    margin: auto;
    text-align: center;
    width: 40%;
  }

  /* Testimonials */

  .testimonials-section {
    padding: 5% 1%;
  }

  .testimonials-heading {
    margin: 5% 0 10%;
  }

  .client-block {
    margin-bottom: 10%;
  }

  .client-image {
    margin-bottom: 5%;
  }

  .client-quote {
    margin-bottom: 5%;
    width: 65%;
  }

  /* Gallery  */

  .gallery {
    flex-wrap: wrap;
  }

  .gallery picture {
    width: 50%;
  }

  /* Footer */

  .footer {
    height: 300px;
  }

  .footer-logo {
    width: 25%;
  }

  .icons-div {
    width: 30%;
  }

}

@media (max-width: 600px) {

  /* Font Sizes  */

  .client-quote,
  .grid-text-overlay p,
  .learn-more-link,
  .js-menu-button,
  .nav-link,
  .testimonials-heading {
    font-size: 16px;
    font-size: 1rem;
  }

  /* Widths */

  .client-quote,
  .grid-text-overlay p,
  .links-div {
    width: 90%;
  }

  /* Navbar */

  .logo {
    width: 40%;
  }

  .js-navigation {
    padding: 10% 0;
    top: 12%;
  }

  .sub-menu {
    row-gap: 2rem;
  }

  /* Hero Section */

  .hero-section {
    padding: 0 0 90%;
  }

  .main-heading {
    font-size: 32px;
    font-size: 2rem;
  }

  /* Grid */

  .grid-text {
    padding: 15% 10%;
    width: 80%;
  }

  .grid-heading {
    font-size: 28px;
    font-size: 1.75rem;
    margin-bottom: 15%;
  }

  .grid-body {
    font-size: 20px;
    font-size: 1.25rem;
    margin-bottom: 15%;
  }

  .learn-more-link {
    margin: auto;
    width: 40%;
  }

  .grid-text-overlay h2 {
    font-size: 28px;
    font-size: 1.75rem;
  }

  /* Testimonials */

  .testimonials-heading {
    letter-spacing: 0.25rem;
    margin: 10% 0 15%;
  }

  .client-block {
    margin-bottom: 15%;
  }

  /* Footer */

  .footer {
    height: 200px;
    padding: 10% 0;
  }

  .footer-logo {
    width: 45%;
  }

  .icons-div {
    width: 50%;
  }

}

@media (hover:hover) and (pointer:fine) {

  .js-menu-button:hover,
  .logo:hover {
    border-radius: 10px;
    outline: 2px solid #005F8F;
  }

  .nav-link:hover {
    background-color: #fad400;
    border-bottom: 2px solid #000;
    /* border-radius: 20px; */
    color: #000;
  }

  .contact:hover {
    background: #fff;
    border: 3px solid #000;
  }

  .learn-more-link:hover {
    text-decoration: underline;
    text-decoration-thickness: 0.15em;
  }

  .footer-icon:hover,
  .footer-link:hover {
    border-radius: 10px;
    outline: 2px solid #25564b;
  }

}
