#values {
  z-index: -1;
}

#service {
  z-index: 2;
}

#about,
#values,
#service,
#structure,
#contact {
  padding-top: 100px;
  margin-top: -100px;
}

/* main */
.main {
  background-image: url("../images/backgrounds/main.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  background-size: cover;
}

.main__wrapper {
  background-color: rgba(0, 0, 0, 0.7);
  height: 650px;
  width: 100%;
  position: relative;
}

.main__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  flex-flow: row wrap-reverse;
  align-items: center;
}

.main__left {
  margin-right: 20px;
}

.main__right {
  max-width: 250px;
  height: auto;
  margin: 0 auto;
}

.main__title {
  color: #fff;
  font-family: "Libre Baskerville", serif;
  font-size: 40px;
}

.main__text {
  color: rgba(255, 255, 255, 0.7);
  max-width: 500px;
  line-height: 1.5;
}

.triangle {
  display: flex;
  position: relative;
  top: -30px;
}

.triangle__half {
  border-bottom: 30px solid #e2e2e2;
  height: 0;
  width: 50%;
}

.triangle__half--left {
  border-left: 0px solid transparent;
  border-right: 100px solid transparent;
}

.triangle__half--right {
  border-right: 0px solid transparent;
  border-left: 100px solid transparent;
}

/* about */

.about {
  background-color: #e2e2e2;
  padding-top: 60px;
  padding-bottom: 40px;
  margin-top: -30px;
}

.about__text {
  color: rgba(0, 0, 0, 0.7);
  line-height: 1.5;
  text-align: justify;
  padding-bottom: 40px;
}

.about__partners {
  margin-top: 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.about__partner {
  display: block;
  margin-right: 40px;
  margin-bottom: 20px;
}

.about__img {
  display: block;
  width: 100px;
  height: auto;
}

.about__img--small {
  width: 80px;
}

.about__img--smaller {
  width: 70px;
}

.about__img--medium {
  width: 100px;
}

.about__img--large {
  width: 160px;
}

.about__img:last-child {
  margin-right: 0;
}

/* media */

.media {
  padding: 60px 0;
}

.media__container {
  display: flex;
  align-items: center;
}

.media__icon {
  width: 250px;
  margin: auto;
  display: block;
}

.media__left,
.media__right {
  width: 50%;
  padding: 0 20px;
  margin-top: 40px;
}

.media__list {
  border-bottom: 1px solid #c5ae55;
}

.media__list-item {
  border-top: 1px solid #c5ae55;
  padding: 20px 20px 0;
}

.media__list-left,
.media__list-right {
  justify-content: center;
  align-items: center;
}

.media__list-right img {
  height: auto;
  display: block;
  margin-left: 20px;
  width: 20px;
}

.media__list-item p {
  line-height: 1.5;
  text-align: justify;
}

.media__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.media__header-text {
  width: 80%;
}

.media__header-text h2 {
  color: #c5ae55;
}

.media__header-text span {
  font-size: 10px;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.6);
  text-align: right;
}

.media__header-source {
  width: 20%;
  display: block;
}

.media__header-image {
  width: 100%;
  height: auto;
}

.media__more {
  text-decoration: none;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.6);
  transition: all 0.3s;
  padding-top: 40px;
  padding-bottom: 20px;
  text-align: right;
  display: block;
}

.media__more:hover {
  color: #c5ae55;
}

.media__button {
  text-align: center;
  margin-top: 40px;
}

.media__list-right img {
  transition: all 0.3s;
}

.media__list-item:hover .media__list-right img {
  transform: scale(1.5);
  transition: all 0.3s;
}

/* values */

.values {
  padding: 40px 0;
  background-color: rgba(0, 0, 0, 0.1);
  text-align: center;
  border-radius: 60px;
  margin: 0 auto;
  width: 90%;
  box-shadow: 0px 10px 15px -5px rgba(0, 0, 0, 0.25);
}

.values__container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.values__list {
  overflow: hidden;
}

.values__item {
  padding-top: 20px;
  min-width: 200px;
  max-width: 250px;
  margin: 0 auto;
}

.values__img {
  width: 80px;
  height: 80px;
  border: 2px solid #c5ae55;
  border-radius: 50%;
  position: relative;
  margin: 0 auto 20px;
  background-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0px 5px 10px -5px rgba(0, 0, 0, 0.3);
  transition: all 0.3s;
}

.values__img:hover {
  transform: scale(1.2);
}

.values__icon {
  width: 40px;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.values__text {
  padding: 0 10px;
  text-transform: uppercase;
  font-size: 12px;
}

/* service */
.service {
  padding: 60px 0;
}

.service__text {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  flex-flow: row wrap-reverse;
}

.service__left,
.service__right {
  padding-top: 40px;
  min-width: 200px;
  max-width: 400px;
  margin: 0 auto;
}

.service__left {
  line-height: 1.5;
  text-align: justify;
  color: rgba(0, 0, 0, 0.7);
}

.service__image {
  border-radius: 50%;
  background-color: rgba(197, 174, 81, 0.7);
  box-shadow: 0 0 0 rgba(197, 174, 81, 0.7);
  animation: pulse 2s infinite;
  position: relative;
  margin: 0 auto 50px;
  width: 140px;
  height: 140px;
}

.service__icon {
  width: 70px;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.service__list {
  padding: 0;
  font-size: 12px;
}

.service__item {
  border-bottom: 1px solid #c5ae55;
  list-style: none;
  padding: 10px 20px;
  color: rgba(0, 0, 0, 0.7);
  text-transform: uppercase;
  display: flex;
  align-items: center;
}

.service__item:first-child {
  border-top: 1px solid #c5ae55;
}

.service__item:hover {
  background: radial-gradient(
    circle,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0) 100%
  );
}

.service__item span {
  color: #c5ae55;
  font-size: 20px;
  font-weight: 700;
  padding-right: 20px;
}

.service__button {
  text-align: center;
  margin-top: 40px;
}

/* structure */
.structure {
  background-image: url("../images/backgrounds/chairs.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  background-size: cover;
  position: relative;
}

.structure__wrapper {
  padding: 60px 0;
  background-color: rgba(0, 0, 0, 0.8);
}

.line {
  position: absolute;
  bottom: 0;
  left: 0;
}

.line__half {
  border-bottom: 30px solid #e2e2e2;
  height: 0;
  width: 50vw;
  border-left: 0px solid transparent;
  border-right: 100px solid transparent;
}

.structure__title {
  color: #fff;
}

.structure__content {
  color: rgba(255, 255, 255, 0.7);
}

.structure__left {
  padding: 0 40px;
  height: auto;
  width: calc(50% - 100px);
}

.structure__img {
  max-width: 250px;
}

.structure__right {
  width: calc(50% + 100px);
  text-align: justify;
}

.structure__text {
  display: flex;
  align-items: center;
  width: 100%;
}

.structure__buttons {
  margin-top: 40px;
  text-align: right;
}

/* contact */
.contact {
  padding: 60px 0;
  background-color: #e2e2e2;
  text-align: center;
}

.contact__text,
.contact__form {
  width: 50%;
  min-width: 250px;
  padding: 20px;
  flex-grow: 1;
}

.contact__container {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  background-color: #c5ae55;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
}

.contact__image {
  display: block;
  margin: 0 auto;
  max-width: 70px;
  height: auto;
  padding-bottom: 20px;
}

.contact__text {
  font-family: "Libre Baskerville", serif;
  line-height: 1.5;
  font-size: 20px;
  font-style: italic;
  letter-spacing: 1px;
  color: rgba(0, 0, 0, 0.7);
}

.contact__form {
  display: flex;
  flex-direction: column;
  background-color: #fff;
}

.contact__field-container {
  position: relative;
}

.contact__input,
.contact__select {
  margin-bottom: 25px;
}

.contact__textarea {
  margin-bottom: 20px;
}

.contact__input,
.contact__select,
.contact__textarea {
  border: 1px solid #c5ae55;
  background-color: transparent;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border-radius: 0;
  padding: 10px;
  box-shadow: 0px 5px 15px -5px rgba(0, 0, 0, 0.15);
  width: 100%;
}

.contact__textarea {
  resize: vertical;
}

.contact__input:hover,
.contact__input:focus,
.contact__input:active,
.contact__select:hover,
.contact__select:focus,
.contact__select:active,
.contact__textarea:hover,
.contact__textarea:focus,
.contact__textarea:active {
  box-shadow: 0px 0px 5px 0px rgba(197, 174, 81, 0.5);
}

.contact__error {
  font-size: 12px;
  color: #cc2d00;
  display: none;
  position: absolute;
  right: 0;
  bottom: 5px;
}

@media screen and (max-width: 675px) {
  .main {
    text-align: center;
  }

  .main__title {
    font-size: 36px;
  }

  .main__text {
    margin-left: auto;
    margin-right: auto;
  }

  .main__left {
    margin: 0 auto;
  }

  .media__container {
    flex-direction: column;
  }

  .media__left,
  .media__right {
    width: 100%;
  }

  .media__icon {
    width: 200px;
  }
}

@media screen and (max-width: 834px) {
  .values__container {
    position: relative;
    width: 500%;
    left: 0;
    animation: 15s slidy infinite;
  }

  .structure__left {
    display: none;
  }

  .structure__right {
    width: 100% !important;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(204, 169, 44, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(204, 169, 44, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(204, 169, 44, 0);
  }
}

@keyframes slidy {
  0% {
    left: 0%;
  }
  10% {
    left: 0%;
  }
  20% {
    left: -100%;
  }
  30% {
    left: -100%;
  }
  40% {
    left: -200%;
  }
  50% {
    left: -200%;
  }
  60% {
    left: -300%;
  }
  70% {
    left: -300%;
  }
  80% {
    left: -400%;
  }
  90% {
    left: -400%;
  }
  100% {
    left: 0%;
  }
}
