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

body {
  font-family: sans-serif;
}

button:hover {
  cursor: pointer;
}

/* HEADER */

header {
  background-image: url(./images/mobile/image-header.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
  position: relative;
  min-height: 90vh;
  padding: 2rem;
  text-align: center;
}

header div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5rem;
  margin-bottom: 7rem;
}

header p {
  font-size: 1.7rem;
  font-weight: 700;
}

.menu {
  width: 3rem;
  height: 3rem;
  border: none;
  background: none;
}

.menu-icon {
  stroke: #fff;
}

/* ADD THE "REMOVE" CLASS WITH JS*/

.remove {
  background-color: #fff;
  position: absolute;
  top: 15%;
  right: 1rem;
  transform: translate(-5%, 0);
  padding: 3rem 0;
  width: 20rem;
}

.remove ul {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.remove ul li a:link,
.remove ul li a:visited {
  color: hsl(232, 10%, 55%);
  font-weight: 700;
  text-decoration: none;
}

.remove .Contact {
  background-color: hsl(51, 100%, 49%);
  padding: 0.7rem 2rem;
  border-radius: 50px;
  color: hsl(212, 27%, 19%);
  text-transform: uppercase;
  font-weight: 800;
  border: none;
}

header h1 {
  font-size: 3.5rem;
  text-transform: uppercase;
  margin-bottom: 5rem;
  font-family: "Fraunces", serif;
}

header img {
  height: 10rem;
  stroke-width: 1px;
}

/* Brand-section */
.first-section_grid img {
  width: 100%;
}

.brand-section,
.audience-section {
  padding: 4rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

.brand-section h2,
.audience-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: "Barlow";
  color: hsl(212, 27%, 19%);
}

.brand-section p,
.audience-section p {
  color: hsl(232, 10%, 55%);
  line-height: 1.7;
  font-weight: 600;
}

.brand-section a:link,
.brand-section a:visited,
.audience-section a:link,
.audience-section a:visited {
  color: hsl(212, 27%, 19%);
  font-weight: 900;
  text-decoration: none;
  font-size: 1rem;
  text-transform: uppercase;
  text-decoration: 2px solid underline hsl(7, 99%, 70%, 0.5);
}

/* Graphic-section */
.Graphic-section {
  background-image: url(./images/mobile/image-graphic-design.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  text-align: center;
  min-height: 80vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  justify-content: end;
  padding: 2rem 2rem 5rem 2rem;
}

.Graphic-section h2 {
  color: hsl(167, 41%, 21%);
  font-weight: 900;
}

.Graphic-section p {
  color: hsl(167, 40%, 24%);
  font-weight: 600;
  font-family: "Barlow";
  line-height: 1.7;
}

/* Photography-section */
.Photography-section {
  background-image: url(./images/mobile/image-photography.jpg);
  background-position: top;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  gap: 2rem;
  text-align: center;
  padding: 2rem 2rem 5rem 2rem;
}

.Photography-section h2 {
  color: hsl(198, 62%, 26%);
  font-weight: 900;
}

.Photography-section p {
  color: hsl(198, 62%, 26%);
  font-weight: 600;
  font-family: "Barlow";
  line-height: 1.7;
}

/* testimonials-section */
.testimonials-section {
  text-align: center;
  margin-top: 7rem;
  margin-bottom: 7rem;
  padding: 0 4rem;
}

.third-section_grid div {
  margin-bottom: 7rem;
}

.testimonials-section h3 {
  font-size: 1.4rem;
  letter-spacing: 0.3rem;
  font-weight: 900;
  color: hsl(232, 10%, 55%);
  margin-bottom: 4rem;
  font-family: "Fraunces";
}

.testimonials-section img {
  width: 5rem;
  height: 5rem;
  border-radius: 100%;
  margin-bottom: 2rem;
}

.testimonial-text {
  color: hsl(232, 10%, 55%);
  font-weight: 700;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.testimonial-author {
  font-weight: 800;
  color: hsl(212, 27%, 19%);
  margin-bottom: 0.8rem;
}

.testimonial-job {
  color: hsl(210, 4%, 67%);
  font-weight: 700;
}

/* image-display */
.image-display img {
  width: 100%;
}

.image-display {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

/* footer */
footer {
  background-color: hsl(167, 47%, 53%);
  text-align: center;
  min-height: 30vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

footer h3 {
  font-size: 1.5rem;
  margin-bottom: 3rem;
  color: hsl(167, 41%, 21%);
  font-weight: 900;
}

footer ul {
  display: flex;
  list-style: none;
  gap: 5rem;
  font-weight: 500;
  color: hsl(167, 34%, 41%);
  margin-bottom: 5rem;
}

footer li a:link,
footer li a:visited {
  color: hsl(167, 40%, 24%);
  text-decoration: none;
}

.socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.socials button {
  background: none;
  border: none;
}

/* ATTRIBUTION */
.attribution {
  background-color: hsl(167, 47%, 53%);
  padding: 5rem 0 1rem 0;

  font-size: 11px;
  text-align: center;
}
.attribution a {
  color: hsl(228, 45%, 44%);
}

@media (min-width: 42.2rem) {
  .menu {
    display: none;
  }

  .nav-menu ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2rem;
  }

  .nav-menu ul a:link,
  .nav-menu ul a:visited {
    text-decoration: none;
    color: hsl(0, 100%, 100%);
  }

  .Contact {
    color: hsl(212, 27%, 19%);
    background-color: hsl(0, 100%, 100%);
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    color: hsl(212, 27%, 19%);
    text-transform: uppercase;
    font-weight: 800;
    border: none;
  }

  /* .first-section_grid  */
  .first-section_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    align-items: stretch;
  }

  .brand-section,
  .audience-section {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    padding: 0 2rem;
  }

  .brand-section {
    grid-row: 1/2;
  }

  /* .second-section-grid  */
  .second-section-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  /* third-section_grid */

  .third-section_grid {
    display: flex;
    gap: 3rem;
  }

  .third-section_grid div {
    margin-bottom: 0;
  }

  /* image-display */

  .image-display {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: none;
  }
}

@media (max-width: 42.1rem) {
  .hidden {
    display: none;
  }
}
