@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Fira+Code:wght@300..700&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

html {
  font-family: Lato, 'Lucida Sans', 'Lucida Sans Unicode', 'Lucinda Grande',
    sans-serif;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background-color: #7e8987;
}

nav {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: center;
  z-index: 1000;
  height: 5em;
}

#navigation-menu {
  align-items: center;
  display: flex;
  justify-content: center;
  background-color: #4a234e;
  list-style: none;
  width: 100%;
  margin: 0;
}

#navigation-menu > li {
  font-weight: bolder;
  padding: 10px 30px;
}

#navigation-menu a {
  text-decoration: none;
  color: white;
}

#hero-image {
  align-content: center;
  margin: 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url('../images/hero.jpeg');
  height: 100vh;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

#hero-text {
  font-family: 'Fira Code';
  text-align: center;
  color: white;
  font-size: 4vw;
}

#services {
  padding-top: 3em;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#services > h1 {
  align-self: center;
  font-weight: bolder;
  font-size: 3em;
  font-family: 'Fira Code';
}

#image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  margin: 0 auto;
}

.overlay {
  display: flex;
  flex-direction: column;
  width: 320px;
  height: 240px;
  position: absolute;
  transition: 0.5s ease;
  background-color: rgba(128, 128, 128, 0);
}

.card {
  align-items: center;
  justify-content: center;
  /*border-radius: 20px;*/
  border: 5px solid #4a234e;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  transition: 0.3s;
  margin: 1em 1em;
  display: grid;
  width: fit-content;
  height: fit-content;
}

.card:hover .overlay {
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.4);
  background-color: rgba(128, 128, 128, 0.8);
}

.service-description {
  align-self: center;
  padding: 2em 1em 0 1em;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0);
  font-weight: bolder;
}

.card:hover .service-description > p {
  color: white;
}

.learn-more-button {
  align-self: center;
  opacity: 0;
  background-color: #4a234e;
  border: none;
  color: white;
  width: fit-content;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
}

.card:hover .learn-more-button {
  opacity: 1;
}

.card > img {
  width: 20em;
  height: 15em;
}

#newsletter-form {
  display: flex;
  margin-top: 5em;
}

form {
  margin: 0 auto;
  padding: 0 30%;
}

#form-title {
  font-family: 'Fira Code';
  font-weight: bolder;
  text-align: center;
  font-size: 2em;
}

input[type='text'],
input[type='email'] {
  padding: 12px 20px;
  width: 80%;
}

label {
  font-size: 20px;
}

input[type='submit'] {
  margin-top: 2em;
  align-self: center;
  background-color: #4a234e;
  border: none;
  color: white;
  width: fit-content;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
}

input:invalid {
}

#fields {
  display: flex;
  justify-content: center;
}

.field-container {
  display: flex;
  flex-direction: column;
  margin: 0 1em;
}

#submit-container {
  display: flex;
  justify-content: center;
}

address {
  padding: 1em;
  color: white;
  border-radius: 10px;
  background-color: #4a234e;
}
address > a {
  color: yellow;
}
footer {
  margin-top: 3em;
  text-align: center;
  color: white;
  background-color: #4a234e;
  padding-bottom: 1em;
}

.input-error {
  color: yellow;
}

@media only screen and (max-width: 1200px) {
  #image-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  #form-title {
    font-size: 25px;
  }
}

@media only screen and (max-width: 800px) {
  #image-grid {
    grid-template-columns: 1fr;
  }
}
