@import url('https://fonts.googleapis.com/css?family=Josefin+Sans:300,400,600&display=swap');

:root{
  --des-red:  hsl(0, 36%, 70%);
  --soft-red: hsl(0, 93%, 68%);
  --dark-grayish-red: hsl(0, 6%, 24%);
  --lg1-color1:  rgb(255, 255, 255);
  --lg1-color2: rgb(255, 245, 245);
  --lg2-color1: #f8bfbf;
  --lg2-color2: rgb(238, 140, 140);
}

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

html{
  font-size: 62.5%;
}

body{
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.6rem;
}

/***** Wrappers *****/
.main-wrapper{
  display: flex;
  min-height: 100vh;
}

.content-wrapper{
  flex-basis: 60%;
  display: flex;
  flex-direction: column;
  background-image: linear-gradient(135deg, rgba(255, 255, 255, .5), rgba(255, 245, 245, .5)), url(../images/bg-pattern-desktop.svg);
  background-repeat: no-repeat;
  background-size: cover;
}

.typography-wrapper{
  padding: 2rem;
}
/***** Wrappers end *****/

.header{
  flex: 1;
  max-width: 50rem;
  margin: auto;
}

.header__image{
  display: none;
  background-image: url(../images/hero-mobile.jpg);
  background-size: cover;
}

.logo{
  margin-top: 10%;
  padding: 2rem;
}

.heading{
  margin-top: 25%;
  font-size: 6rem;
  text-transform: uppercase;
  line-height: 1.2;
  letter-spacing: 2rem;
}

.heading__span{
  display: block;
  color: var(--dark-grayish-red);
}

.heading__span-light{
  font-weight: 200;
  color: var(--des-red);
}

.heading-secondary{
  max-width: 44rem;
  margin-top: 2rem;
  line-height: 1.8;
  color: var(--des-red);
}

.contact{
  position: relative;
  margin-top: 4rem;
  max-width: 44rem;
}

.contact-wrapper{
  display: flex;
  align-self: center;
}

.contact__input{
  font-family: 'Josefin Sans', sans-serif;
  background:transparent;
  border: 1px solid var(--des-red);
  border-radius: 50px;
  padding: 2rem 5rem 2rem 2rem;
  width: 100%;
  font-size: 1.6rem;
}

.contact__input:focus{
  outline: none;
}

.contact__input::placeholder{
  font-size: 1.6rem;
  color: var(--des-red);
}

.contact__btn{
  padding: 0 4rem;
  margin-left: -5rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  box-shadow: 15px 33px 37px -13px rgba(248,191,191,1);
  background: linear-gradient(135deg,rgba(248, 191, 191,1), rgba(238, 140, 140, 1));
}

.contact__btn:hover{
  background: linear-gradient(135deg,rgba(248, 191, 191,1), rgba(248, 191, 191,1));
}

.contact__btn:focus{
  outline: none;
}

.error-group{
  display: none;
}

.contact__error{
  padding-left: 2rem;
  margin-top: 1rem;
  color: var(--soft-red);
}

.contact__error-icon{
  position: absolute;
  top: 16px;
  right: 10rem;
}

.image-side{
  flex-basis: 40%;
  background-color: pink;
  background-image: url(../images/hero-desktop.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.attribution{ 
  font-size: 1.5rem; 
  padding: 1.5rem 0;
  text-align: center; 
}

.attribution a{
  color: hsl(228, 45%, 44%);
}


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

  .content-wrapper{
    background-image: linear-gradient(135deg, rgba(255, 255, 255, .5), rgba(255, 245, 245, .5));
  }
  
  .content-wrapper{
    flex-basis: 100%;
  }
  
  .header{
    max-width: 100%;
    width: 100%;
  }
  
  .logo{
    margin-top: 5%;
    height: 60px;
  }

  .header__image{
    display: block;
    height: 30rem;
    width: 100%;
  }
  
  .heading{
    margin-top: 10%;
    font-size: 3rem;
    text-align: center;
    letter-spacing: 1.5rem;
  }

  .heading-secondary{
    text-align: center;
    max-width: 100%;
  }

  .contact{
    max-width: 100%;
    padding-bottom: 10rem;
  }

  .contact__input{
    padding: 1.5rem 5rem 1.5rem 2rem;
  }

  .contact__btn{
    padding: 0 2.25rem;
  }

  .contact__error{
    padding-left: 2rem;
  }

  .contact__error-icon{
    top: 12px;
    right: 6.5rem;
  }

  .image-side{
    flex-basis: 0%;
  }

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