/*
	Theme Name: IBX Theme
	Version: 1.0
  Description: Custom WP theme for IBX
	License: MIT
	License URI: http://opensource.org/licenses/mit-license.php
*/

/* 

breakpoints:
992px - mobile up

*/

:root {
  --primary-color: #46c3cf;
  --light-grey: #f2f9fa;
  --dark-grey: #30383c;
  --gold-color: #f3e8c3;
  --orange-color: #FABA21;
}

html {
  font-size: 62.5%
}

body {
  font-size: 10px;
  font-family: 'Rubik', 'sans-serif';
  color: var(--dark-grey);
  background-color: #fff;
  overflow-x: hidden;
}

body.menu-active {
  height: 100vh;
  overflow: hidden;
}

p {
  font-size: 1.4rem;
  line-height: 2.8rem;
  margin-bottom: 2rem;
  font-weight: 300;
}

p.large {
  font-weight: 300;
  font-size: 1.8rem;
  line-height: 3rem;
  color: #505456;
}

a {
  color: var(--primary-color);
}

a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
h4,
h5 {
  margin-bottom: 2rem;
  font-weight: 700;
}

h2 {
  font-size: 4.8rem;
  line-height: 5.7rem;
  font-weight: bold;
}

blockquote {
  border-left: .3rem solid var(--primary-color);
  padding-left: 2rem;
  margin-bottom: 2rem;
  margin-left: 2rem;
}

.page-container {
  margin: 0 auto;
  position: relative;
}

hr {
  height: .1rem;
  background-color: var(--gold-color);
  margin: 4rem 0;
  padding: 0;
}

input {
  font-size: 1.4rem;
}

.container-fluid {
  max-width: 85%;
}

/*----------------------------- */
/* buttons */
/*----------------------------- */

.btn {
  border-radius: 1rem;
  text-transform: uppercase;
  padding: 2rem 5rem;
  font-size: 1.6rem;
  font-weight: 500;
  width: 30rem;
  max-width: 100%;
}

.btn--primary {
  background-color: var(--primary-color);
  color: #fff;
}

.btn--white {
  background-color: #fff;
}

.btn--green-outline {
  background: transparent;
  border: .2rem solid var(--primary-color);
  color: #fff;
}

/*----------------------------- */
/* block */
/*----------------------------- */

.block {
  padding: 15rem 0;
}

.block--grey {
  background-color: var(--light-grey);
}

@media all and (min-width: 992px) {
  .block {
    padding: 20rem 0;
  }
}

/*----------------------------- */
/* nav */
/*----------------------------- */

.nav {
  position: absolute;
  top: 5rem;
  left: 0;
  width: 100%;
  z-index: 20;
  height: 5rem;
  top: 4rem;
}

.nav--sticky .nav__reg-logo {
  display: block;
}

.nav .nav__primary-logo {
  display: none;
}

.nav--sticky {
  background-color: var(--dark-grey);
  z-index: 9999;
  position: fixed;
  top: 0px;
  padding: 2rem 0;
  height: 8rem;
}

.nav--sticky .nav__social {
  display: none !important; /* overwrite d-flex */
}

.nav--sticky .nav__reg-logo {
  display: none;
}

.nav--sticky .nav__primary-logo {
  display: block;
}

.nav__logo {
  position: absolute;
  top: 0;
  left: 1.5rem;
}

.nav__menu {
  text-transform: uppercase;
  font-weight: bold;
  position: relative;
  margin-left: -5rem;
}

.nav__menu li {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav__menu-link {
  display: block;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: .2rem;
  padding: 0 1.6rem;
}

.nav__menu-link:hover {
  text-decoration: none;
  color: #f4f4f4;
}

.nav__mobile-trigger {
  background-color: var(--primary-color);
  position: absolute;
  right: 0;
  top: 0;
  padding: 3.5rem 5.5rem;
  z-index: 50;
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav__menu-icon {
  font-size: 5rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.nav__social {
  position: absolute;
  top: -.5rem;
  right: -9rem;
}

.nav__social-link {
  display: block;
  margin: 0;
  padding: 0;
}

.nav__social-link:first-of-type {
  margin-right: 2rem;
}

.nav__social-icon {
  color: #fff;
  font-size: 2.6rem;
}

/*----------------------------- */
/* Slideout menu */
/*----------------------------- */

.slideout {
  background-color: var(--primary-color);
  max-width: 90%;
  width: 90rem;
  height: 100vh;
  position: fixed;
  right: -100%;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease-in-out;
  box-shadow: -1rem 0 1rem .1rem #0000001f;
  padding: 0rem 15rem 0 8rem;
}

.slideout__close {
  float: right;
  margin-top: 4rem;
  position: relative;
}

.slideout__close-icon {
  font-size: 5rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.slideout__title {
  color: var(--dark-grey);
  font-size: 3.4rem;
  margin-bottom: 3rem;
  font-weight: bold;
}

.slideout--active {
  right: 0;
}

.slideout__service-block {
  margin-top: 21rem;
}

/*----------------------------- */
/* Accordion in slideout */
/*----------------------------- */

.accordion {
  border-top: .1rem solid #ffffff80;
}

.accordion__header {
  border-bottom: .1rem solid #ffffff80;
  padding: 2rem 3rem;
  font-size: 2rem;
  color: #fff;
}

.accordion__chevron {
  font-size: 4rem;
  color: var(--orange-color);
}

/*----------------------------- */
/* Masthead */
/*----------------------------- */

.masthead {
  background-color: var(--primary-color);
  padding: 4rem 0;
  height: 100vh;
  width: 100%;
  color: #fff;
  position: relative;
}

.masthead__content {
  position: relative;
  z-index: 20;
  width: 100%;
}

.masthead__title {
  font-size: 6rem;
  line-height: 7.1rem;
  font-weight: 700;
  margin-bottom: 3rem;
  max-width: 80rem;
}

.masthead__sub-title {
  font-size: 2.4rem;
  line-height: 3.2rem;
  font-weight: 700;
  max-width: 77rem;
}

.masthead__background {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: #000;
  z-index: 1;
  background-image: url('img/masthead-bg.jpg');
  background-size: cover;
}

.masthead__scroll {
  position: absolute;
  bottom: 0;
  left: 0;
  transform: rotate(90deg);
  color: #505456;
  font-family: Rubik;
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: .5rem;
}

.masthead__text {
  z-index: 2;
}

.masthead__left-triangle {
  width: 55%;
  height: 10rem;
  background-color: #fff;
  transform: rotate(4deg);
  position: absolute;
  bottom: -4rem;
  left: -5%;
  z-index: 9999;
}

.masthead__right-triangle {
  width: 55%;
  height: 10rem;
  background-color: #fff;
  transform: rotate(-4deg);
  position: absolute;
  bottom: -4rem;
  right: -5%;
  z-index: 9999;
}

/*----------------------------- */
/* page masthead */
/*----------------------------- */

.masthead--page {
  height: 50em;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}


/*----------------------------- */
/* Intro */
/*----------------------------- */

.intro {
  overflow: hidden;
  margin-bottom: 5rem;
  height: 40rem;
}

.intro__image {
  float: left;
  width: 50%;
}

.intro__text {
  max-width: 70rem;
  width: 100%;
}

.intro__cta {
  margin-bottom: 20rem;
}

@media all and (min-width: 992px) {
  .intro {
    background-image: url('img/intro-bg.jpg');
    background-size: 50% 100%;
    background-repeat: no-repeat;
  }
}

/*----------------------------- */
/* cta */
/*----------------------------- */

.cta {
  background-color: var(--primary-color);
  padding: 0 0 6rem;
}

.cta__logo {
  margin-top: -8rem;
  width: 16rem;
}

.cta__subtitle {
  color: #fff;
  font-weight: bold;
  font-size: 2.4rem;
  line-height: 3.2rem;
}

.cta__text {
  width: 100%;
  padding: 0 4rem;
}

@media all and (min-width: 992px) {

  .cta {
    padding: 6rem 0;
  }

  .cta__logo {
    margin-top: 0rem;
    width: 16rem;
  }

}

/*----------------------------- */
/* mobile-service */
/*----------------------------- */

.mobile-service {
  background-color: #fff;
  border-radius: 1rem;
  margin-bottom: 1rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
}

.mobile-service__title {
  font-size: 2rem;
  font-weight: bold;
}

.mobile-service__image {
  width: 4rem;
  display: block;
}

/*----------------------------- */
/* service */
/*----------------------------- */

.services {
  margin-bottom: 5rem;
}

.service__intro {
  margin-bottom: 5rem;
}

.service {
  background-color: #fff;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 32rem;
}

.service__contents {
  padding-top: 4rem;
}

.service__title {
  position: absolute;
  top: 5rem;
  width: 100%;
  text-align: center;
  font-size: 2.4rem;
  font-weight: bold;
}

.service__image {
  width: 12rem;
  max-width: 80%;
}

.service__info {
  padding: 0 4rem;
  line-height: 2.4rem;
  color: #505456;
  font-weight: 300;
}

.service__link {
  font-size: 1.6rem;
  color: var(--primary-color);
  display: flex;
  justify-content: space-around;
  margin: 2rem auto 0;
  align-items: center;
  width: 90%;
  max-width: 11rem;
}

.service__chevron {
  color: var(--orange-color);
}

.service__hover {
  display: none;
}

/* hover */

.service:hover {
  box-shadow: 0px 21px 5px 1.5rem rgba(0,0,0,0.01); 
}

.service:hover .service__image {
  display: none;
}

.service:hover .service__hover {
  display: block;
}

/*----------------------------- */
/* pattern */
/*----------------------------- */

.pattern {
  height: 2rem;
  width: 100%;
}

.pattern__block {
  width: 33.33%;
}

.pattern__block--1 {
  background: var(--orange-color);
  height: 2rem;
}

.pattern__block--2 {
  background: #F2994A;
  height: 2rem;
}

.pattern__block--3 {
  background: #F14E1E;
  height: 2rem;
}

/*----------------------------- */
/* news in footer */
/*----------------------------- */

.news__title {
  font-weight: bold;
  font-size: 1.6rem;
}

.news__date {
  font-weight: 300;
}

/*----------------------------- */
/* branding */
/*----------------------------- */

.branding__menu-divide {
  color: #7d7d7d;
  padding: 0 1rem;
}

.branding__highlight {
  color: #fff;
}

/*----------------------------- */
/* Footer */
/*----------------------------- */

.footer {
  background-color: var(--dark-grey);
  color: #7d7d7d;
  padding: 12rem 4rem;
  font-weight: 300;
}

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

.footer a {
  color: #fff;
  font-weight: 400;
}

.footer h4 {
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.email__input {
  border-radius: 1rem;
  padding: 2rem;
  background-color: rgba(255,255,255,0.1);
  border: 0;
  width: 100%;
  display: block;
  margin-bottom: 2rem;
}

.email__submit {
  background-color: transparent;
  border: .2rem solid var(--primary-color);
  color: var(--primary-color);
  width: 100%;
}