/* Home page */
.wrapper {
	max-width: 1200px;
	margin: auto;
	display: flex;
  align-items: center;
  height: calc(100vh - 250px);
}

h1 {
	font-size: 2.5rem;
	line-height: 1.2;
}
h1 span {
	font-size: 5rem;
	color: #BE8E9E;
	font-family: 'Bathilda', sans-serif;
	word-spacing: -1.5rem;
}
h2 {
	text-transform: uppercase;
	font-size: 2rem;
	font-weight: 600;
	margin:  0;
}

header nav a { 
	color:  #ffffff;
}
header nav a::before {
	background:  url(../img/nav-active.png) no-repeat;
}

#home.wrapper {
	min-height: calc(100vh - 130px);
}
#home .content p {
	margin-top: 2rem;
	margin-bottom: 4rem;
}
@media(max-width: 600px) {
	#home.wrapper {
		height: auto;
		min-height: 0;
		padding: 0;
		text-align: center;
	}

	#home .content {
		margin-bottom: 3rem;
		margin-top: 3rem;
	}
	#home h1 {
		font-size: 2rem;
		margin-bottom: 2rem;
	}
	#home h1 span {
		font-size:  3rem;
	}
}
@media(max-width: 1200px) and (min-width:  600px) {
	#home h1 {
		font-size: 2rem;
	}
	#home h1 span {
    font-size: 6vw;
	}
}
@media(max-width: 1260px) {
	header {
    background: rgb(255,255,255);
    background: linear-gradient(180deg, rgba(255,255,255,1) 10%, rgba(255,255,255,.5) 60%, rgba(255,255,255,0) 100%);
    width: 100%;
    box-sizing: border-box;
	}
	header nav a {
		color:  #43206e;
	}
}

@media(max-width: 1200px) and (min-width:  800px) {
	#home .content p {
		max-width: calc(100vw - 200px);
	}
}
@media(max-width: 800px) and (min-width:  600px) {
	#home .content p {
		max-width: calc(100vw - 400px);
	}
}

.mobile-slider {
	display: none;
}
.image {
  background: url(../img/bg22.jpg) center left;
  background-size: cover;
  width: calc(50% - 2rem);
  height: 100vh;
  position: absolute;
  top: 0;
  left: calc(50% + 2rem);
}
.image2 {
  background: url(../img/bg32.jpg) center left;
  background-size: cover;
  width: calc(50% - 2rem);
  height: 100vh;
  position: absolute;
  top: 0;
  left: calc(50% + 2rem);
  opacity: 0;

  animation-name: fadein;
  animation-duration: 4s;
  animation-iteration-count: infinite;
}
@keyframes fadein {
  0% {opacity: 0;}
  50% {opacity: 1;}
  100% {opacity: 0;}
}
@media(max-width: 600px) {
	.image, .image2 {
		display: none;
	}
	.mobile-slider {
		display: block;
		position: relative;
		width: 100%;
		height: 56vw;
	}

	.mobile-slider .image {
		display: block;
	  background: url(../img/mobile-image1.jpg) top center;
	  background-size: cover;
	  position: absolute;
	  top: 0;
	  left: 0;
		width: 100%;
		height: 100%;
	}
	.mobile-slider .image2 {
		display: block;
	  background: url(../img/mobile-image2.jpg) top center;
	  background-size: cover;
	  position: absolute;
	  top: 0;
	  left: 0;
	  opacity: 0;
		width: 100%;
		height: 100%;

	  animation-name: fadein;
	  animation-duration: 4s;
	  animation-iteration-count: infinite;
	}
}

#for {
	padding: 4rem 0 22rem;
	background: url(../img/for-bg.png) no-repeat;
	background-size: contain;
	background-position: left center;
	margin-top:  4rem;
	margin-bottom: -26rem;
}
#for .wrapper {
	display: block;
	text-align: center;
}
#for .tabs {
	max-width: 800px;
	margin: auto;
}
#for .tab-header {
	max-width: 740px;
	margin: 3rem auto 2rem;
	display: flex;
	justify-content: space-around;
}
#for .tab-content div {
	display: none;
}
#for .tab-content div.active {
	display: block;
}
@media(max-width: 600px) {
	#for {
		margin-bottom: 0;
		background: transparent;
		position: relative;
		padding-bottom: 0;
	}
	#for::after {
		content: '';
		background:  url(../img/for-bg.png);
		max-width: 100vw;
		height: 300vw;
		position: absolute;
		top: 0;
		z-index: -1;
	}
	#for .tab-header {
		overflow: auto;
    justify-content: flex-start;
	}
	#for .tab-header .btn {
    margin-right: 1rem;
    min-width: 11rem;
    height: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
	}
}

#about {
	padding-bottom: 4rem;
}
#about .image-wrapper {
	width:  50%;
	padding-right: 2rem;
}
#about .content {
	padding-left: 2rem;
	max-width: 500px;
}
#about .btn {
	display: inline-block;
	margin-top:  1rem;
}
@media(max-width: 600px) {
	#about {
		padding-bottom: 0;
		text-align: center;
	}
	#about .wrapper {
		height: auto;
	}
	#about .image-wrapper {
		width: 100%;
		padding: 0;
	}
	#about .content {
		margin-top:  0;
		padding-left: 0;
		padding-right: 0;
	}
	#about p+p {
    max-width: none;
	}
}

#services {
	background: url(../img/services-bg.jpg);
	background-attachment: fixed;
	background-size: cover;
	text-align: center;
	padding:  4rem 0;
	margin:  4rem 0;
  max-width: 100vw;
  overflow: hidden;
}
#services h2 {
	color: #ffffff;
	margin-bottom: 2rem;
}
#services .service {
	padding:  1rem;
	padding-top: 2rem;
}
#services .inner {
	position: relative;
	border-radius: 1rem;
	padding: 1rem;
	padding-top:  2rem;
	background: #fff;
	overflow: visible;
	height: 5rem;
	display: flex;
	justify-content: center;
	align-items: center;
}
#services .icon {
	background: #5E2B80;
	border-radius: 5rem;
	padding: 1rem;
	width:  4rem;
	height: 4rem;
	box-sizing: border-box;
	position: absolute;
	top:  -2rem;
	left:  calc(50% - 2rem);
}
#services > div > div > div > div:nth-child(7) > div > div > img {
  max-height: 2rem;
  margin: auto;
}

#testimonials .wrapper {
	justify-content: space-around;
}
#testimonials .testimonial {
	background:  url(../img/wellpha-mark.png) no-repeat top left;
	background-size: 4rem;
	padding:  3rem 4rem;
	position: relative;
	max-width: 26rem;
}
#testimonials h2 {
	font-size: 1.25rem;
}
.name {
	position: relative;
	padding-left: 1.6rem;
}
.name::before {
	content:  '';
	width:  1rem;
	height:  1px;
	position: absolute;
	top:  calc(50% - 1px);
	left:  0;
  background: #5e2b80;
}
@media(max-width: 600px) {
	#testimonials .wrapper {
		height: auto;
	}
}