/* Stylesheet for Concierge Website */

* {
	margin: 0;
	padding: 0;
}

main {
	overflow: hidden;
}

html {
	font-size: 18px;
  scroll-behavior: smooth;
}
body {
	background: #102526;
	font-family: alegreya-sans, sans-serif;
	color: #896E38;
}

.wrapper {
	max-width: 1040px;
	margin: auto;
}

h1, h2, h3 {
	font-family: 'Arapey', serif;
}
h1 {
	font-size: 4rem;
	font-weight: normal;
}
h2 {
	font-size: 2rem;
	font-weight: normal;
	margin-bottom: 1rem;
}
h3 {
	font-size: 2.5rem;
	font-weight: normal;
}
h4 {
	font-family: alegreya-sans, sans-serif;
	text-transform: uppercase;
	font-size: 1.3rem;
	font-weight: normal;
}
p {
	font-family: alegreya-sans, sans-serif;
	font-size: 1.1rem;
	line-height: 1.4;
}
a {
	text-decoration: none;
	color: inherit;
}

.button {
	padding: .65rem 2.5rem .65rem 1.4rem;
	border: 1px solid #896E38 !important;
	text-transform: uppercase;
	position: relative;
	transition: .5s;
	color: #896E38;
	font-weight: normal;
}
.button:before {
	content: '';
	width: 100%;
	height: 0;
	position: absolute;
	left: 0;
	bottom: 0;
	background: #896E38;
	transition: .5s;
	z-index: -1;
}
.button::after {
	content: '';
	background: #896E38;
	width: 2.5rem;
	height: 1px;
	position: absolute;
	left: calc(100% - 1rem);
	top: 50%;
	transition: .5s;
}
.button:hover {
	color: #102526;
}
.button:hover::before {
	height: 100%;
}
.button:hover::after {
	background: #102526;
	left: calc(100% - 1.5rem);
}
.button.plain {
	padding: .5rem 1rem;
}
.button.plain::after {
	display: none;
}

.ml12 .letter {
  display: inline-block;
  line-height: 1em;
}

/* Header */
header {
	padding: 2rem 0;
	position: absolute;
	top: 0;
	width: 100%;
	z-index: 10;
	overflow: hidden;
}
header .wrapper {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

header .logo {
	width: 200px;
}
header .logo img {
	width: 100%;
}

.logo h1 {
	position: absolute;
	top: -100vh;
}

header nav a {
	font-size: 1rem;
	text-transform: uppercase;
	padding: 0 1rem;
}
header nav .button {
	margin-left: 1rem;
}

/* Intro */
#home {
	min-height: 100vh;
}
#home .bg {
	width: 100%;
	height: 100vh;
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
}
#home .bg img {
	position: absolute;
	bottom: 100%;
	left: 0;
	width: 105vw;
	max-height: 110vh;
	animation: slidein;
	animation-duration: 1.5s;
	animation-fill-mode: forwards;
}
#home .bg img:first-child {
	z-index: 3;
	animation-delay: 1s;
}
#home .bg img:nth-child(2) {
	z-index: 2;
	animation-name: slidein2;
	animation-delay: .5s;
}
#home .bg img:last-child {
	z-index: 1;
}

@keyframes slidein {
	from {
		bottom: 100%;
	}
	to {
		bottom: 1%;
	}
}
@keyframes slidein2 {
	from {
		bottom: 100%;
	}
	to {
		bottom: 6rem;
	}
}


#home .text-wrapper {
	position: absolute;
	z-index: 8;
	top: calc(50% - 7.5rem);
	left: calc((100% - 1040px) / 2);
}
#home h1 span {
	opacity: 0;
}
#home h1:nth-child(2) {
	margin-bottom: 3rem;
}
#home h1:nth-child(2) span:nth-child(n+4):nth-child(-n+8) {
	font-style: italic;
}
#home .button {
	opacity: 0;
	animation: fadein 1.5s 2.5s;
	animation-fill-mode: forwards;
}

@keyframes fadein {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* About */
#about {
	padding: 10rem 0 8rem;
	position: relative;
}
#about .image-wrapper {
	position: absolute;
	top: -5rem;
	right: 0;
	z-index: -1;
}
#about .text-wrapper {
	max-width: 60%;
}
#about p {
	margin-bottom: 1rem;
}

/* Bio */
#bio {
	padding: 10rem 0 10rem;
	text-align: center;
	max-width: 48rem;
	background: url(img/key.svg) no-repeat center center;
	background-size: 150px;
	transition: .5s;
}
#bio:hover {
	background-size: 160px;
}

/* Services */
#services {
	padding-top: 5rem;
	display: flex;
	margin-right: calc((100% - 1040px) / 2);
}
#services .text-wrapper {
	padding-left: 4rem;
}
#services .text-wrapper .button {
	display: inline-block;
	margin-top: 2rem;
}

#services .slider {
	width: 65%;
}
.slick-next:before {
	content: '';
}
.slick-slide {
  margin: 0 .5rem;
}
.slick-list {
  margin: 0 -.5rem;
}
#services .image-wrapper img {
	width: 100%;
}
.title-wrapper {
	padding: 1rem;
	text-align: center;
	background: #896E38;
	color: #102526;
}

.service {
  perspective: 1000px;
}
.service-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}
.service:hover .service-inner {
  transform: rotateY(180deg);
}
.front, .back {
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden; /* Safari */
  backface-visibility: hidden;
}
.back {
  position: absolute;
  top: 0;
  left: 0;
  background: #896E38;
  color: #102526;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  box-sizing: border-box;
}

.slick-track {
  display: flex !important;
}
.slick-slide {
  height: inherit !important;
}

/* Contact */
#contact {
	display: flex;
	padding-top: 10rem;
}
#contact .info {
	padding-top: 2rem;
	width: 50%;
}
#contact .info .info-wrapper {
	background: #896E38;
	color: #102526;
	padding: 2rem;
	margin-top: 2rem;
	margin-bottom: 2rem;
}
#contact ul li svg {
	width: 1.5rem;
	margin-right: .5rem;
	position: relative;
	top: .35rem;
}
#contact ul {
	list-style: none;
}
#contact ul li {
	margin-bottom: 1rem;
}
#contact ul li:last-child {
	margin-bottom: 0;
}
#contact ul li h6 {
	text-transform: uppercase;
	font-weight: normal;
	margin-bottom: 0;
}
#contact ul li p {
	font-size: 1.78rem;
	line-height: 1.2;
}
#contact .form {
	width: 50%;
	background: #ffffff;
	padding: 2rem;
}
#contact .form h2 {
	text-align: center;
	margin-bottom: 2rem;
}
input, textarea {
	font-family: alegreya-sans, sans-serif;
  -webkit-appearance: none;
	border: 1px solid #896E38;
	width: 100%;
	box-sizing: border-box;
	font-size: 1rem;
	padding: 1rem;
	margin-bottom: .5rem;
}
#contact .button {
	display: inline-block;
	margin: 2rem 40% 0;
	z-index: 1;
	background: transparent;
}
#contact .button:hover {
	color: #ffffff;
}
#contact .button:hover::after {
	background: #ffffff;
}

/* Responsive */
@media(max-width: 1100px) {
	.wrapper {
		width: 90%;
	}
}

@media(max-width: 768px) {
	header .wrapper {
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}
	header nav {
		margin-top: 1rem;
	}
	header nav .button {
		display: none;
	}

	#home {
		min-height: 0;
		margin-bottom: 6rem;
	}
	#home .bg {
		height: 620px;
		z-index: 0;
	}
	#home .text-wrapper {
		position: static;
		margin-top: 250px;
		text-align: center;
	}
	#home .text-wrapper h1 {
		font-size: 2.5rem;
	}

	#about {
		padding-bottom: 2rem;
	}
	#about .image-wrapper {
    position: absolute;
    right: 0;
    z-index: -1;
    left: calc(50% - 50px);
	}

	#about .image-wrapper svg {
    width: 100px;
	}
	#about .text-wrapper {
		max-width: none;
		margin-top: 8rem;
	}

	#bio {
    padding: 4rem 0 3rem;
    background-size:  100px;
  }
  #bio.in-screen, #bio:hover {
  	background-size: 120px;
  }
  #bio h3 {
  	font-size: 1.4rem;
  }

	#services {
		flex-direction: column-reverse;
		margin: 0;
	}
	#services .text-wrapper {
		padding-left: 0;
		width: 90%;
		margin: auto;
		margin-bottom: 4rem;
	}
	#services .slider {
		width: auto;
	}

	#contact {
		display: block;
    padding-top: 6rem;
	}
	#contact .info {
		width: auto;
	}
	#contact .info .info-wrapper {
		padding: 1rem;
	}
	#contact ul li p {
		font-size: 1.4rem;
	}
	#contact .form {
		width: auto;
		margin-bottom: 4rem;
		text-align: center;
	}
	#contact .button {
		margin: 2rem auto;
	}


	.service:hover .service-inner {
	  transform: none;
	}
	.service.flip .service-inner {
	  transform: rotateY(180deg);
	}
}

@media(max-width: 380px) {
	#home .text-wrapper h1 {
		font-size: 2.25rem;
	}
}

.success, .error {
	display: none;
}
footer p {
  text-align: center;
  padding: 3rem 0px 1rem;
  font-size: .8rem;
}

.chat-wrapper {
	max-width: calc(100vw - 8px);
	overflow: hidden;
}