@import url('https://fonts.googleapis.com/css2?family=Montserrat+Alternates:wght@500&family=Open+Sans:wght@300;400;500;600&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', sans-serif;
}

a {
  text-decoration: none;
  color: #1c1b1b;
}


.navbar {
  padding: 1rem 6rem;
}

.navbar h1 {
  font-family: 'Montserrat Alternates', sans-serif;
}

nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}


nav ul li {
  display: inline-block;
  margin: 0 1rem;
}


nav li:hover, #current {
  text-decoration: underline;
  text-decoration-style: wavy;
  text-underline-offset: 12px;
  text-decoration-color: #F8ABD1;
}


#current {
  color: #6bcab7;
  text-decoration-color: #1c1b1b;

}

.hero {
  background-color: #f8f4ed;
  height: 90vh;
  background-position: 90%;
  background-size: 50%;
  background-repeat: no-repeat;
}

.hero .content {
  width: 42%;
}

.container {
  padding: 7rem;
}

.display-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.center {
  display: grid;
  place-items: center;
}

.hero h1 {
  font-size: 60px;
  margin: 1rem 0;
}

.hero h3 {
  line-height: 30px;
  font-weight: 400;
  margin: 2rem 0;
}

.teal {
  color: #6bcab7;
}

button, #form-button {
  border: none;
  outline: none;
  padding: 1rem 2rem;
  background-color: #6bcab7;
  border-radius: 5px;
  font-size: 15px;
  color: #f8f4ed;
  cursor: pointer;
  font-family: 'Open Sans', sans-serif;
}

button:hover , #form-button:hover{
  background-color: #5cb1a0;
}

img, video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

h2.title {
  font-size: 45px;
}

h1, h2 {
  font-family: 'Montserrat Alternates', sans-serif;
  text-transform: capitalize;
}

p {
  font-size: 18px;
  line-height: 30px;
  font-weight: 300;
}

footer {
  padding: 2rem;
  background-color: #f8f4ed;
}

.grid-4-col {
  width: 100%;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: auto auto auto auto;
  column-gap: 2rem;
  row-gap: 2rem;
  margin-bottom: 10rem;
}

h4 {
  text-transform: capitalize;
}


/* For medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {

  .navbar {
    padding: 1rem 3rem;
  }

  nav ul li {
    margin: 0 0.5rem;
  }

  .container {
    padding: 3rem;
  }

  .hero {
    height: 60vh;
    background-size: 40%;
  }

  .hero .content {
    width: 50%;
  }

  .grid-4-col {
    grid-template-columns: auto auto;
    margin-bottom: 7rem;
    place-items: center;
  }
}

/* For x-small devices (phones, less than 576px) */
@media (max-width: 575.98px) {

  .navbar {
    padding: 1rem 1rem;
  }

  nav {
    flex-direction: column;
  }

  nav ul li {
    display: inline-block;
    margin: 1rem 1rem;
  }


  .display-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero {
    height: 80vh;
    background-size: 100%;
    background-position: bottom;
  }

  .hero .content {
    width: 100%;
    text-align: center;
  }

  .hero h1 {
    font-size: 30px;
  }

  h2.title {
    font-size: 28px;
    text-align: center;
  }

  p {
    font-size: 15px;
  }

  footer {
    text-align: center;
  }

  .grid-4-col {
    grid-template-columns: auto;
  }
}