* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  font-family: "Roboto", sans-serif;
  display: flex;
  flex-direction: column;
  background-color: #e5e5cb;
}

section > section {
  width: 80%;
  margin: 0 auto 6rem;
}

.project-container {
  height: auto;
}

/* ******************************************************************************NAVBAR****************************************************************************************** */

.navigation {
  width: 100%;
  padding: 1rem 0;
  background-color: #1a120b;
  position: sticky;
  top: 0;
}

.navigation nav {
  width: 80%;
  margin: 0 auto;
}

nav ul {
  align-items: center;
  list-style-type: none;
}

nav li a {
  font-size: 2rem;
  color: white;
  text-decoration: none;
}

nav li:hover a,
.navigation div:hover a {
  color: red;
  text-decoration: none;
}

.navigation.scrolled li:hover a,
.navigation.scrolled div:hover a {
  color: rgba(255, 217, 0, 0.65);
}

.navigation.scrolled {
  background-color: #a52a2a;
  padding: 0;
}

.active-link {
  color: rgb(255, 217, 0);
}
/* ******************************************************************************HERO****************************************************************************************** */

.hero {
  background-image: url("img/bg.jpg");
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.txt {
  width: 80%;
}

.txt h1,
.txt p {
  color: white;
  text-align: center;
}

.txt h1 {
  font-family: sans-serif;
  font-size: 6rem;
  font-weight: 400;
  margin-bottom: 2rem;
}

.txt p {
  font-size: 3rem;
}

/* ******************************************************************************ABOUT****************************************************************************************** */

.about {
  padding: 2rem 0;
}

.story,
.goals {
  margin-bottom: 2rem;
}

.title {
  margin-bottom: 1rem;
  font-size: 3rem;
  color: #3c2a21;
}

.title + p {
  font-size: 1.6rem;
  color: brown;
}

/* ******************************************************************************SERVICES****************************************************************************************** */

.service {
  display: flex;
  padding: 2rem;
  margin-bottom: 2rem;
  background: #d5cea3;
  border-radius: 1rem;
  gap: 2rem;
}

.service img {
  width: 40rem;
  border-radius: 1rem;
}

.service:nth-child(2) {
  flex-direction: row-reverse;
}

.service:nth-child(2) img {
  height: 30rem;
}

.service-title {
  font-size: 3rem;
  text-transform: uppercase;
  color: #3c2a21;
  margin-bottom: 2rem;
}

.txt-container .txt {
  color: brown;
  font-size: 1.8rem;
}

/* ******************************************************************************CONTACT****************************************************************************************** */

.info-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
  background: brown;
  padding: 2rem;
  border-radius: 1rem;
}

.info,
.newsletter {
  width: 25%;
}

.info .column-title,
.newsletter .column-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: white;
  text-transform: uppercase;
}

.info-container .info ul {
  display: block;
  padding-left: 0;
}

.info-container .info ul li {
  margin-bottom: 1rem;
}

.info-container .info ul li:hover a {
  color: #1a120b;
}

.info-container .info ul li a,
.info-container .info ul li span {
  text-decoration: none;
  color: white;
  cursor: pointer;
  font-size: 1.4rem;
}

.info-container .info ul li i {
  margin-right: 0.5rem;
}

.info-container .info ul li:first-child i {
  margin: 0 0.6rem 0 0.2rem;
}

.newsletter .column-title {
  margin-bottom: 3rem;
}

.newsletter p:nth-child(2) {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 3rem;
}

#inputfield {
  padding: 0.5rem 0;
  width: 65%;
  margin-right: 1.5rem;
  padding-left: 1rem;
  border-radius: 1rem;
  border: 0;
  box-shadow: 2px 3px 4px rgba(0, 0, 0, 0.2);
}

#inputfield:focus,
#inputfield:active {
  outline: 0;
}

#inputfield::placeholder {
  font-style: italic;
}

#submitbtn {
  padding: 0.5rem 1rem;
  background-color: #1a120b;
  border-radius: 1rem;
  color: white;
  text-transform: uppercase;
  border: 0;
  box-shadow: 2px 3px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

/* MOBILE */

@media screen and (max-width: 1190px) {
  .navigation {
    overflow-x: scroll;
  }

  nav li a {
    white-space: nowrap;
  }

  .service img,
  .service:nth-child(2) img {
    width: 30rem;
  }

  .info-container .info ul li {
    margin-bottom: 2rem;
  }

  .info-container .info ul li a,
  .info-container .info ul li {
    font-size: 1.2rem;
  }

  #inputfield {
    width: 100%;
    margin-bottom: 1rem;
  }

  #submitbtn {
    width: 100%;
  }
}

@media screen and (max-width: 600px) {
  nav li:hover a,
  .navigation div:hover a {
    color: var(--bg-col);
  }

  .service {
    justify-content: center;
    flex-wrap: wrap;
  }

  .service img,
  .service:nth-child(2) img {
    width: 100%;
  }

  .service .txt-container {
    text-align: center;
  }

  .service .txt-container .txt {
    width: 100%;
  }

  .info-container {
    flex-wrap: wrap;
  }

  .info,
  .newsletter {
    width: 50%;
    margin-bottom: 1rem;
    border-bottom: 0.1rem solid white;
  }
  .info-container .info:first-child ul li:last-child,
  .info-container .info:nth-child(2) ul li:last-child {
    margin-bottom: 0;
  }

  #submitbtn {
    margin-bottom: 1rem;
  }
}

@media screen and (max-width: 400px) {
  .hero h1 {
    font-size: 4rem;
    margin-bottom: 10rem;
  }

  .hero p {
    font-size: 2rem;
  }

  .about .title {
    text-align: center;
  }
}
