/***         RESET STYLES        ***/

ul,
h1,
h2,
h3,
p {
  padding: 0;
  margin: 0;
}

/***    COLORS    ***/

/***    BREAKPOINTS    ***/

/*******************************/

/***       BASE STYLES       ***/

/*******************************/

/***         LAYOUT        ***/

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

/***         GRID        ***/

.col-left {
  width: 85%;
}

.padding-left-sm {
  padding-left: 10px;
}

.section {
  margin-top: 100px;
}

/***         IMAGES        ***/

img {
  width: 100%;
}

/*******************************/

/***       TYPOGRAPHY        ***/

/*******************************/

/***    ELEMENTS STYLES    ***/

html {
  font-size: 100%;
}

body,
input,
textarea,
select,
option {
  font-family: 'Sorts Mill Goudy', serif;
}

a:link,
a:visited {
  color: black;
  text-decoration: none;
}

h1,
h2,
.team__name {
  font-family: 'Source Sans Pro', sans-serif;
}

h1,
h2 {
  font-size: 3rem;
  font-weight: lighter;
}

h1 {
  padding: 2.5rem 0;
}

h2 {
  padding: 1.5rem 0;
}

.text {
  font-size: 1.25rem;
  margin-bottom: 30px;
}

*::-moz-selection,
span::-moz-selection,
a::-moz-selection {
  background-color: black;
  color: white;
}

*::selection,
span::selection,
a::selection {
  background-color: black;
  color: white;
}

/*******************************/

/***        NAV BAR          ***/

/*******************************/

/***    STANDARD NAVBAR    ***/

.navbar {
  font-size: 1.2rem;
  position: fixed;
  right: 10px;
  top: -10px;
  -webkit-transform-origin: bottom right;
  -moz-transform-origin: bottom right;
  -ms-transform-origin: bottom right;
  -o-transform-origin: bottom right;
  transform-origin: bottom right;
  -webkit-transform: rotate(-90deg);
  -moz-transform: rotate(-90deg);
  -ms-transform: rotate(-90deg);
  -o-transform: rotate(-90deg);
  transform: rotate(-90deg);
  z-index: 1;
}

.navbar__links {
  list-style-type: none;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: reverse;
  -webkit-flex-direction: row-reverse;
  -moz-box-orient: horizontal;
  -moz-box-direction: reverse;
  -ms-flex-direction: row-reverse;
  flex-direction: row-reverse;
  width: 95vh;
  -webkit-justify-content: space-around;
  -ms-flex-pack: distribute;
  justify-content: space-around;
}

.navbar__links a:link,
.navbar__links a:visited {
  color: black;
  text-decoration: none;
}

.navbar__link:hover,
.navbar__link--acitve {
  position: relative;
}

.navbar__link:hover:before,
.navbar__link--acitve:before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  background-color: black;
  position: absolute;
  top: -webkit-calc(50% - 6px);
  top: -moz-calc(50% - 6px);
  top: calc(50% - 6px);
  left: -20px;
}

/*******************************/

/***         BUTTONS         ***/

/*******************************/

.btn {
  text-transform: lowercase;
  text-decoration: none;
  cursor: pointer;
}

.btn-md {
  padding: 0;
  font-size: 1.875rem;
}

.btn-sm {
  padding: 0;
  font-size: 1.5rem;
}

.btn-primary {
  color: white;
  background-color: black;
  -webkit-transition: all 0.5s;
  -o-transition: all 0.5s;
  -moz-transition: all 0.5s;
  transition: all 0.5s;
}

.btn-primary:link,
.btn-primary:visited {
  color: white;
}

.btn-primary:hover {
  background-color: transparent;
  color: black;
}

.btn-primary:hover:link,
.btn-primary:hover:visited {
  color: black;
}

/*******************************/

/***       GOOGLE MAPS       ***/

/*******************************/

#google-map {
  width: 100%;
  height: 500px;
  margin-top: 70px;
}

/************************************/

/***        HOME SECTION          ***/

/************************************/

header {
  text-align: center;
}

.logo {
  width: 200px;
  margin-top: 10px;
}

.home__image {
  margin-top: 30px;
}

/****************************************/

/***           TEAM SECTION          ***/

/****************************************/

.team__name {
  font-size: 2rem;
  margin-top: 6px;
}

.team__position {
  color: #9B9B9B;
  font-size: 1.25rem;
  margin-top: 5px;
  margin-bottom: 40px;
}

/****************************************/

/***         GALLERY SECTION          ***/

/****************************************/

.gallery__img {
  margin-bottom: 10px;
}

.gallery__img:last-of-type {
  margin-bottom: 50px;
}

/********************************************/

/***         TESTIMONIAL SECTION          ***/

/********************************************/

.testimonials__title {
  text-transform: uppercase;
  font-size: 1.8rem;
}

.testimonials__date {
  color: #9B9B9B;
  margin-bottom: 20px;
}

.testimonials__text {
  font-size: 1rem;
  margin-bottom: 20px;
  line-height: 1.4rem;
}

.testimonials__image {
  margin-bottom: 20px;
}

/****************************************/

/***         CONTACT SECTION          ***/

/****************************************/

.contact__info {
  text-align: left;
  margin-top: 50px;
}

.contact__address {
  line-height: 2.5rem;
}

a.contact__email {
  text-decoration: underline;
}

.contact__phone {
  margin-top: 35px;
}

.contact__form {
  margin-top: 70px;
}

label {
  font-size: 1rem;
  padding: 0.2rem 0.8rem;
}

input,
textarea,
select,
option {
  padding: 0.4rem 0.8rem;
  margin-bottom: 25px;
  font-size: 1.125rem;
  outline: none;
  border: 1px solid black;
  -moz-border-radius: 0;
  border-radius: 0;
}

textarea {
  max-width: 100%;
  resize: none;
}

.input-group {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  -moz-box-orient: vertical;
  -moz-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}

input[type="submit"] {
  border: none;
}

@media screen and (min-width: 450px) {
  .col-md-1 {
    width: -webkit-calc(100% / 12 * 1);
    width: -moz-calc(100% / 12 * 1);
    width: calc(100% / 12 * 1);
  }

  .col-md-2 {
    width: -webkit-calc(100% / 12 * 2);
    width: -moz-calc(100% / 12 * 2);
    width: calc(100% / 12 * 2);
  }

  .col-md-3 {
    width: -webkit-calc(100% / 12 * 3);
    width: -moz-calc(100% / 12 * 3);
    width: calc(100% / 12 * 3);
  }

  .col-md-4 {
    width: -webkit-calc(100% / 12 * 4);
    width: -moz-calc(100% / 12 * 4);
    width: calc(100% / 12 * 4);
  }

  .col-md-5 {
    width: -webkit-calc(100% / 12 * 5);
    width: -moz-calc(100% / 12 * 5);
    width: calc(100% / 12 * 5);
  }

  .col-md-6 {
    width: -webkit-calc(100% / 12 * 6);
    width: -moz-calc(100% / 12 * 6);
    width: calc(100% / 12 * 6);
  }

  .col-md-7 {
    width: -webkit-calc(100% / 12 * 7);
    width: -moz-calc(100% / 12 * 7);
    width: calc(100% / 12 * 7);
  }

  .col-md-8 {
    width: -webkit-calc(100% / 12 * 8);
    width: -moz-calc(100% / 12 * 8);
    width: calc(100% / 12 * 8);
  }

  .col-md-9 {
    width: -webkit-calc(100% / 12 * 9);
    width: -moz-calc(100% / 12 * 9);
    width: calc(100% / 12 * 9);
  }

  .col-md-10 {
    width: -webkit-calc(100% / 12 * 10);
    width: -moz-calc(100% / 12 * 10);
    width: calc(100% / 12 * 10);
  }

  .col-md-11 {
    width: -webkit-calc(100% / 12 * 11);
    width: -moz-calc(100% / 12 * 11);
    width: calc(100% / 12 * 11);
  }

  .col-md-12 {
    width: -webkit-calc(100% / 12 * 12);
    width: -moz-calc(100% / 12 * 12);
    width: calc(100% / 12 * 12);
  }

  .padding-left-sm {
    padding-left: 20px;
  }

  .row {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    min-width: 100%;
  }

  .navbar {
    font-size: 1.4rem;
    right: 20px;
  }

  .contact__form {
    margin-top: 30px;
    text-align: left;
  }
}

@media screen and (min-width: 780px) {
  .container-lg {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 100vw;
    padding: 0 120px;
  }

  .col-lg-1 {
    width: -webkit-calc(100% / 12 * 1);
    width: -moz-calc(100% / 12 * 1);
    width: calc(100% / 12 * 1);
    margin: 0 10px;
  }

  .col-lg-2 {
    width: -webkit-calc(100% / 12 * 2);
    width: -moz-calc(100% / 12 * 2);
    width: calc(100% / 12 * 2);
    margin: 0 10px;
  }

  .col-lg-3 {
    width: -webkit-calc(100% / 12 * 3);
    width: -moz-calc(100% / 12 * 3);
    width: calc(100% / 12 * 3);
    margin: 0 10px;
  }

  .col-lg-4 {
    width: -webkit-calc(100% / 12 * 4);
    width: -moz-calc(100% / 12 * 4);
    width: calc(100% / 12 * 4);
    margin: 0 10px;
  }

  .col-lg-5 {
    width: -webkit-calc(100% / 12 * 5);
    width: -moz-calc(100% / 12 * 5);
    width: calc(100% / 12 * 5);
    margin: 0 10px;
  }

  .col-lg-6 {
    width: -webkit-calc(100% / 12 * 6);
    width: -moz-calc(100% / 12 * 6);
    width: calc(100% / 12 * 6);
    margin: 0 10px;
  }

  .col-lg-7 {
    width: -webkit-calc(100% / 12 * 7);
    width: -moz-calc(100% / 12 * 7);
    width: calc(100% / 12 * 7);
    margin: 0 10px;
  }

  .col-lg-8 {
    width: -webkit-calc(100% / 12 * 8);
    width: -moz-calc(100% / 12 * 8);
    width: calc(100% / 12 * 8);
    margin: 0 10px;
  }

  .col-lg-9 {
    width: -webkit-calc(100% / 12 * 9);
    width: -moz-calc(100% / 12 * 9);
    width: calc(100% / 12 * 9);
    margin: 0 10px;
  }

  .col-lg-10 {
    width: -webkit-calc(100% / 12 * 10);
    width: -moz-calc(100% / 12 * 10);
    width: calc(100% / 12 * 10);
    margin: 0 10px;
  }

  .col-lg-11 {
    width: -webkit-calc(100% / 12 * 11);
    width: -moz-calc(100% / 12 * 11);
    width: calc(100% / 12 * 11);
    margin: 0 10px;
  }

  .col-lg-12 {
    width: -webkit-calc(100% / 12 * 12);
    width: -moz-calc(100% / 12 * 12);
    width: calc(100% / 12 * 12);
    margin: 0 10px;
  }

  .padding-left-sm {
    padding-left: 0;
  }

  .section {
    text-align: center;
  }

  .text-center-lg {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
  }

  .navbar {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    top: 70px;
    right: 70px;
    line-height: 3rem;
    text-align: right;
    background-color: rgba(255, 255, 255, 0.8);
  }

  .navbar__links {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -moz-box-orient: vertical;
    -moz-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    width: auto;
  }

  .navbar__link:hover:before,
  .navbar__link--acitve:before {
    left: auto;
    right: -20px;
  }

  .logo {
    position: fixed;
    top: -webkit-calc(50% - 100px);
    top: -moz-calc(50% - 100px);
    top: calc(50% - 100px);
    left: 0px;
    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    -o-transform: rotate(90deg);
    transform: rotate(90deg);
    -webkit-transform-origin: bottom left;
    -moz-transform-origin: bottom left;
    -ms-transform-origin: bottom left;
    -o-transform-origin: bottom left;
    transform-origin: bottom left;
    margin-left: 20px;
  }

  .home__content {
    margin-top: 400px;
  }

  .testimonial {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: reverse;
    -webkit-flex-direction: row-reverse;
    -moz-box-orient: horizontal;
    -moz-box-direction: reverse;
    -ms-flex-direction: row-reverse;
    flex-direction: row-reverse;
    text-align: left;
    /*margin-bottom: 20px;*/
  }

  .testimonials__title {
    margin-top: 40px;
  }

  .testimonials__text {
    margin-top: 70px;
  }
}

@media screen and (min-width: 450px) and (max-width: 780px) {
  #portfolio .row,
  #testimonials .row {
    display: block;
  }
}