/**
 * Classes for showing/hiding website menu
 */
@import url("https://fonts.googleapis.com/css?family=Roboto:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i");
@import url("https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i,800,800i");
.menu-close {
  margin: 0;
  height: 0;
  opacity: 0;
  transition: height 0.3s, margin 0.3s;
}

.menu-open {
  margin: 1rem 0;
  opacity: 1;
  transition: 0.3s;
}

@media (min-width: 576px) {
  .menu-open {
    margin: 0;
    height: 0;
  }
}

/**
 * Margin set to calibrate the relation betweent the fixed topbar
 * and the content section so the topbar does not cover
 * the page ( when it's set to top )
 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  font-family: 'Open Sans', sans-serif;
}

a,
p,
li {
  font-weight: 300;
  letter-spacing: 0.05rem;
  font-size: 1rem;
  color: #666666;
  line-height: 1.6rem;
}

h2 {
  font-weight: 300;
}

/*
 * Block: about-section
 */
.about-section {
  /**
     * content-margin mixin sets a magrin between the fixed topbar and the content section
     */
  margin-top: 72px;
  display: flex;
  justify-content: center;
  /* Elements */
}

@media (min-width: 576px) {
  .about-section {
    margin-top: 82px;
  }
}

@media (min-width: 690px) {
  .about-section {
    margin-top: 98px;
  }
}

.about-section__container {
  width: 100%;
  max-width: 1240px;
  display: flex;
  flex-direction: column;
}

.about-section__introduction {
  display: flex;
  flex-direction: column;
  margin: 4rem 1rem 0;
  order: 2;
}

.about-section__introduction p {
  margin-bottom: 1.8rem;
  text-align: justify;
}

.about-section__introduction--bold {
  font-weight: 500;
}

.about-section__image {
  width: 100%;
  order: 1;
  background-image: url("../../assets/images/stock/stock1.jpeg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  height: 200px;
}

.about-section__item {
  width: 100%;
}

@media screen and (min-width: 1000px) {
  .about-section__container {
    flex-direction: column;
    justify-content: space-between;
  }
  .about-section__introduction {
    flex-direction: row;
    justify-content: space-between;
    margin: 4rem 0 0 1rem;
  }
  .about-section__image {
    order: 1;
    width: 100%;
  }
  .about-section__item {
    width: 48%;
  }
}

@media (min-width: 1240px) {
  .about-section__introduction {
    margin: 4rem 0 0 0;
  }
}

/**
 * Block: contact-section 
 */
/* small device viewport */
.contact-section {
  /**
     * content-margin mixin sets a magrin between the fixed topbar and the content section
     */
  margin-top: 72px;
  display: flex;
  justify-content: center;
  /* Elements */
}

@media (min-width: 576px) {
  .contact-section {
    margin-top: 82px;
  }
}

@media (min-width: 690px) {
  .contact-section {
    margin-top: 98px;
  }
}

.contact-section__container {
  max-width: 1240px;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.contact-section__image {
  background-image: url("../../assets/images/stock/contact-image.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  width: 100%;
  height: 200px;
}

/* small size screens */
/**
 * Block: footer
 */
.footer {
  margin-top: 12rem;
  background-color: #454545;
  /* Elements */
}

.footer__container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1240px;
}

.footer__item {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 3rem 0 3rem 0rem;
  padding-left: 1rem;
}

.footer__content {
  margin-top: 0.8rem;
}

.footer__content p {
  font-size: 0.85rem;
  color: #fff;
}

.footer__header {
  width: 5rem;
}

.footer__header h1 {
  font-weight: 400;
  font-size: 1rem;
  color: white;
}

.footer__header--title h1 {
  font-weight: 100;
  color: #fff;
}

.footer__header--bold {
  font-weight: 600;
}

.footer__signature {
  display: inline-block;
  margin: 0 auto;
  text-decoration: none;
  padding-bottom: 0.8rem;
  font-size: 0.8rem;
}

/* medium and large size screens */
@media (min-width: 865px) {
  .footer {
    display: flex;
    align-items: center;
    flex-direction: column;
  }
  .footer__container {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
  }
  .footer__item {
    width: 33.333%;
    justify-content: center;
    padding: 0;
  }
  .footer__header {
    width: 100%;
  }
  .footer__header--title {
    display: inline;
    padding-left: 1rem;
  }
}

@media (min-width: 1240px) {
  .footer__header--title {
    padding-left: 0;
  }
}

/**
 * Block: header
 * Elements: logo and button for toggling menu
 */
.header {
  height: 100%;
  display: flex;
  justify-content: space-between;
  padding: 1rem 1rem;
  z-index: 1;
  position: relative;
  align-items: center;
  /* Elements */
}

.header__logo {
  display: flex;
  align-self: center;
  width: 120px;
}

.header__toggle {
  display: flex;
  align-self: center;
}

/* medium size screens */
@media (min-width: 576px) {
  .header__logo {
    width: 150px;
  }
  .header__toggle {
    display: none;
  }
}

/* big size screens */
@media (min-width: 690px) {
  .header__logo {
    width: 200px;
  }
}

@media (min-width: 900px) {
  .header {
    width: 40%;
    justify-content: flex-start;
  }
}

@media (min-width: 1240px) {
  .header {
    padding-left: 0;
  }
}

.projects {
  /**
     * content-margin mixin sets a magrin between the fixed topbar and the content section
     */
  margin-top: 72px;
  display: flex;
  justify-content: center;
}

@media (min-width: 576px) {
  .projects {
    margin-top: 82px;
  }
}

@media (min-width: 690px) {
  .projects {
    margin-top: 98px;
  }
}

.projects__container {
  width: 100%;
  max-width: 1240px;
  display: flex;
  flex-direction: column;
}

@media (min-width: 576px) {
  .projects__container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin: 1px;
  }
}

/* small size screens */
/**
 * Block: topbar
 * Elements: container and menu
 */
.topbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.961);
  z-index: 4;
  display: flex;
  justify-content: center;
  /* Elements */
}

.topbar__container {
  width: 100%;
  height: 100%;
  max-width: 1240px;
  display: flex;
  flex-direction: column;
}

.topbar__menu {
  display: flex;
  justify-content: space-around;
  z-index: 0;
  position: relative;
  text-align: center;
}

.topbar__menu-item {
  font-size: 1rem;
  text-decoration: none;
  color: #333;
  transition: color 0.2s ease-in-out;
}

.topbar__menu-item:hover {
  color: #a2a2a2;
}

.topbar__menu .topbar__menu-item--active {
  color: #4D89D2;
  font-weight: 600;
}

/* medium size screens */
@media (min-width: 576px) {
  .topbar__container {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
  }
  .topbar__menu {
    width: 100%;
    transition: none;
    opacity: 1;
    visibility: visible;
    padding: 2rem 1rem;
  }
}

/* big size screens */
@media (min-width: 690px) {
  .topbar__menu {
    width: 50%;
  }
}

@media (min-width: 900px) {
  .topbar__menu {
    width: 60%;
    justify-content: flex-end;
    padding-left: 4rem;
  }
  .topbar__menu-item {
    margin-left: 4rem;
  }
}

@media (min-width: 1240px) {
  .topbar__menu {
    padding-right: 0;
  }
}

.contact-text {
  margin-top: 3rem;
  padding: 1rem 1rem 0 1rem;
  display: flex;
  flex-direction: column;
}

@media (min-width: 900px) {
  .contact-text {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1240px) {
  .contact-text {
    padding: 1rem 1rem 0 0;
  }
}

.contact-text__item {
  margin-bottom: 1rem;
}

.contact-text__item:first-of-type .contact-text__paragraph:first-of-type {
  margin-bottom: 0;
}

@media (min-width: 900px) {
  .contact-text__item {
    width: 45%;
  }
}

.contact-text__header {
  color: #4D89D2;
  font-weight: 400;
  font-size: 1rem;
  font-style: normal;
  margin-bottom: 0.35rem;
}

.contact-text__paragraph {
  margin-bottom: 1rem;
  font-style: normal;
}

.contact-text__mail {
  text-decoration: none;
}

.contact-text__mail--blue {
  color: #4D89D2;
  font-style: normal;
  display: inline-block;
  margin-bottom: 1.2rem;
}

.contact-text--uppercase {
  text-transform: uppercase;
  margin-top: 1rem;
}

.contact-text--bold {
  font-weight: 500;
}

/**
 * Block: gallery-template
 */
.gallery-template {
  display: flex;
  justify-content: center;
  /* Elements */
}

.gallery-template__content {
  max-width: 1240px;
  height: 100%;
  padding: 2rem;
}

.gallery-template__info h1 {
  font-weight: 300;
  font-size: 1.65rem;
  line-height: 1.9rem;
}

.gallery-template__description {
  text-align: justify;
}

.gallery-template__images {
  width: 100%;
}

.gallery-template__image-item {
  border-bottom: 0.5rem solid #fff;
}

.gallery-template__image-item img {
  width: 100%;
}

@media (min-width: 1000px) {
  .gallery-template__content {
    display: flex;
    justify-content: space-between;
  }
  .gallery-template__info {
    width: 30%;
  }
  .gallery-template__images {
    width: 65%;
  }
}

/**
 * Block: info-data 
 */
.info-data {
  margin: 1.3rem 0;
  /* Elements */
}

.info-data__label {
  color: #4D89D2;
  font-style: italic;
  display: inline-block;
  width: 6.5rem;
}

/**
 * Block: introduction offer
 */
.introduction-offer__item {
  list-style-type: none;
  text-align: justify;
}

.introduction-offer__item:before {
  content: '- ';
}

.projects__item {
  width: 100%;
  height: 250px;
  border-top: 2px solid #fff;
  border-bottom: 2px solid #fff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.projects__item a {
  text-decoration: none;
}

@media (min-width: 576px) {
  .projects__item {
    width: 50%;
    border: 2px solid #fff;
  }
}

@media (min-width: 768px) {
  .projects__item {
    width: 33.33%;
  }
}

@media (min-width: 1100px) {
  .projects__item {
    width: 25%;
  }
}

.projects__overlay {
  background: rgba(0, 0, 0, 0.5);
  height: 100%;
  width: 100%;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: center;
  text-align: center;
  transition: all 0.2s ease-in-out 0s;
}

.projects__overlay:hover {
  opacity: 1;
  cursor: pointer;
}

.projects__title {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: #fff;
}

.header__toggle {
  width: 25px;
  height: 21px;
  border: 0;
  border-radius: 0;
  border-top: 3px solid #333;
  background: transparent;
  position: relative;
}

.header__toggle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  border-top: 3px solid #333;
  transform: translateY(6px);
}

.header__toggle::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  border-top: 3px solid #333;
  transform: translateY(15px);
}

.header__toggle:focus {
  outline: 0;
}

.header__toggle:hover {
  cursor: pointer;
}
