/* Global Styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  font-family: 'Poppins', sans-serif;
}

h1 {
  font-size: 2.6rem;
}

h2 {
  font-size: 4.8rem;
}

h3 {
  font-size: 3rem;
  font-weight: 400;
}

h4,
h5 {
  font-size: 2.8rem;
}

label,
li,
button,
input,
p {
  font-size: 2rem;
}

a {
  color: #fff;
  text-decoration: none;
}

button {
  background: #4c6e97;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1.8rem;
  padding: 2rem 6rem;
  transition: background 0.15s ease-in-out;
}

button:hover {
  background: #3b587c;
}

button:focus {
  background: #2c3f57;
}

/* Nav Section with Hero */

.main-head {
  background: #131c27;
  color: #fff;
  position: sticky;
  top: 0px;
  z-index: 3;
}

nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: auto;
  min-height: 10vh;
  padding: 2rem;
  width: 90%;
}

nav ul {
  display: flex;
  flex: 1 1 40rem;
  justify-content: space-around;
  list-style: none;
}

nav li {
  flex: 1 1 40rem;
  text-align: center;
}

nav #logo {
  flex: 2 1 40rem;
  font-family: 'Pattaya', sans-serif;
  font-weight: 400;
}

/* Hero Section */

.hero {
  align-items: center;
  background: linear-gradient(rgba(0, 0, 0, 0.8), transparent), url('images/landing-page.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  min-height: 90vh;
}

.hero h3 {
  padding: 5rem;
}

/* Locations Section */

#locations {
  align-items: center;
  background: linear-gradient(rgba(0, 0, 0, 0.5), transparent), url('/images/new-york-page.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  overflow: hidden;
  position: relative;
  min-height: 100vh;
}

.locations-head {
  margin: auto;
  width: 90%;
}

.locations-head h2 {
  padding: 1rem 0;
  text-decoration: underline;
  text-decoration-thickness: 0.5rem;
}

.locations-head h3 {
  background: linear-gradient(#131c27, #663b34);
  padding: 4rem 0;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cloud {
  pointer-events: none;
  position: absolute;
  right: 0%;
  top: 0%;
}

.moving-cloud-1 {
  animation: cloudAnimation 3s infinite alternate ease-in-out;
}

.moving-cloud-2 {
  animation: cloudAnimation 3.5s infinite alternate ease-in-out;
  opacity: 0.5;
  top: 20%;
  z-index: -1;
}

@keyframes cloudAnimation {
  from {
    transform: translate(10%, -10%);
  }
  to {
    transform: translate(0%, 0%);
  }
}

/* Benefits Section */

.benefits-head {
  align-items: center;
  background: #343c44;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 30vh;
  padding: 3rem;
  text-align: center;
}

.benefits-head h3 {
  padding: 1rem;
}

.cards {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  margin: auto;
  min-height: 70vh;
  width: 90%;
}

.card {
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1), 0 20px 20px rgba(0, 0, 0, 0.1);
  flex: 1 1 30rem;
  margin: 2rem 5rem;
  min-height: 40vh;
  text-align: center;
}

.card-icon {
  background: #27394e;
}

.card img {
  margin: 2rem;
  max-width: 20%;
}

.card h4 {
  line-height: 2;
  padding-top: 3rem;
}

.card p {
  padding: 0 1rem;
}

/* Form Section */

#contact {
  align-items: center;
  background: linear-gradient(rgba(0, 0, 0, 0.5), transparent), url('/images/contact-mountain.png');
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

.form-wrapper {
  background: rgba(19, 28, 39, 0.8);
  border-radius: 20px;
  color: #fff;
  width: 60%;
}

.form-head {
  padding: 4rem;
  text-align: center;
}

.form-wrapper label {
  margin: 0 3rem;
}

.form-wrapper input {
  padding: 1rem 3rem;
}

.name-form,
.email-form {
  padding: 1rem 3rem;
  text-align: center;
}

.form-wrapper button {
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  margin-top: 8rem;
  padding: 2rem;
  width: 100%;
}

/* Footer Section */

footer {
  color: #fff;
  background: rgba(19, 28, 39, 1);
}

.footer-wrapper {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  margin: auto;
  min-height: 10vh;
  padding: 2rem;
  width: 90%;
}

footer h5 {
  flex: 1 1 40rem;
}

footer ul {
  align-items: center;
  display: flex;
  flex: 1 1 40rem;
  justify-content: space-between;
  list-style-type: none;
}

/*  Media Query */

@media screen and (max-width: 933px) {
  html {
    font-size: 45%;
  }

  nav #logo {
    padding-bottom: 2rem;
    text-align: center;
  }

  .clouds {
    height: 40rem;
  }

  .moving-cloud-1 {
    z-index: -1;
  }

  .moving-cloud-2 {
    z-index: -2;
  }

  .locations-head h3 {
    background: rgba(19, 28, 39, 0.9);
    padding: 0.5rem;
    -webkit-text-fill-color: #fff;
  }

  .form-wrapper {
    width: 95%;
  }

  footer {
    text-align: center;
  }

  footer h5 {
    padding-bottom: 3rem;
  }
}
