/*
Custom Stylesheet for The BFBA
---        Frits Steyn       ---
---  Coffee Creative Studio  ---
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # 
														INDEX
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
- TYPOGRAPHY & RESETS
- HEADER
- FOOTER
- FRONT PAGE
- CONTACT PAGE
- RESPONSIVE
- 
- 
- 
- 
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
										  TYPOGRAPHY & RESETS
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
*/
a, a:visited, a:focus, a:active {
  color: #ee5730;
	outline: 0;
	text-decoration: none;
}
body, html {
	overflow-x: hidden;
}
body {
	font-family: raleway, sans-serif;
}
ul {
  margin: 0;
}
.entry-content h1, footer h1 {
  line-height: 1em;
  margin-bottom: 0.75em !important;
  margin-top: 0.75em;
  text-transform: uppercase;
}
.clear {
	float: none !important;
	clear: both !important;
}
.entry-footer {
  display: none;
}
.entry-header {
  display: none;
}
.site-content {
  margin-top: 60px;
  position:relative;
}
#primary > #main, footer .mini-hold {
  margin: auto;
  max-width: 1000px;
  width: 95%;
}
.mini-hold {
  display:none;
}

img.aligncenter {
  background-color: #eaeaea;
  padding: 15px;
}
.float-50 {
  float: left;
  width: 50%;
}
.entry-content, .hentry {
  margin: 0;
}
.hide {
  display:none;
}
/*
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
													   HEADER
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
*/
#masthead.site-header {
  background-color: #ffffff;
  border-bottom: 2px solid #a2b466;
  bottom: calc(100% - 60px);
  height: 60px;
  position: fixed;
  width: 100%;
  z-index: 999;
}
body.home.page #masthead.site-header {
  bottom: -60px;
  position: absolute;
}
body.home.page #masthead.site-header.stuck {
  bottom: calc(100% - 60px);
  position: fixed;
}
.site-branding {
  float: left;
  height: 100%;
  margin-left: calc((100% - 765px) / 2);
  margin-right:25px;
  padding-top: 2px;
}
.site-branding > img {
  height: 55px;
}
#site-navigation.main-navigation {
  clear: none;
  height: 100%;
  width: auto;
}
.main-navigation a {
  color: #404040;
  font-size: 15px;
  line-height: 1em;
  margin: 12px 10px 0;
  padding: 10px 0;
  position: relative;
  text-transform: uppercase;
}
.main-navigation a::after {
  content: "";
  background-color: #ee5730;
  width: 0;
  height: 2px;
  position: absolute;
  left: 50%;
  bottom: 0;
  transition: all 0.1s linear 0s
}
.main-navigation a.active::after, 
.main-navigation a:hover::after {
  width: 100%;
  left: 0;
}
.menu-extras {
  float: left;
  height: 100%;
}
.menu-extras > ul {
  height: 100%;
  list-style: outside none none;
  margin: 0;
  padding: 0;
}
.menu-extras li {
  float: left;
  height: 100%;
  margin: 0 10px;
}
.menu-extras li a {
  display: block;
  height: 100%;
  width: 100%;
}
.menu-extras li:nth-child(1) {
  position: relative;
}
.menu-extras li:nth-child(1) a {
  color: #ffffff;
}
.menu-extras li:nth-child(1) i {
  background-color: #3B5998; /*fblue*/
  border-radius: 100%;
  font-size: 18px;
  line-height: 30px;
  margin-top: 14px;
  text-align: center;
  width: 30px;
}
.menu-extras li:nth-child(2) {
  background-image: url("/wp-content/themes/bfba/images/cesa.jpeg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  height: 100%;
  width: 90px;
}
.menu-extras li:nth-child(3) {
  background-image: url("/wp-content/themes/bfba/images/gbc.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  height: 100%;
  width: 110px;
}
/*
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
													   FOOTER
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
*/

.carousel-footer {
  box-shadow: none !important;
  margin: 10px auto 0 !important;
  max-width: 1400px;
}

.flex-direction-nav a {
  height: 46px !important;
}

.flexslider.carousel-footer .slides > li {
  background-size: 80px auto !important;
}

#contact {
  padding-bottom: 10px;
}
#contact > div {
  float: left;
}
#contact > div:nth-child(1) {
  padding-right: 15px;
  text-align: right;
  width: calc(40% + 8px);
}
#contact > div:nth-child(2) {
  width: calc(60% - 8px);
}
.slide-spot {
  background-attachment: fixed;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 300px;
}
.slide-spot2 {
  bottom: 0;
  height: 300px;
  left: 0;
  margin: 0 !important;
  position: absolute !important;
  width: 100%;
}

.fm-wrapper {
  border-bottom: 15px solid #ffffff;
  border-top: 15px solid #ffffff;
}
.fm-wrapper > div {
  float: left;
}
.fm-wrapper a {
  color: #ffffff;
  display: block;
  height: 100%;
  position: relative;
  text-transform: uppercase;
}
.fm-wrapper p {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  padding: 20px;
}
.fm-contact {
  background-color: #ee5730;
  border-right: 7px solid white;
  height: 100px;
  width: 40%;
}
.fm-contact p {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}
.fm-contact p::after {
  background-color: #ffffff;
  bottom: 15px;
  content: "";
  height: 3px;
  left: calc(50% - 50px);
  position: absolute;
  width: 100px;
}
.fm-contact + div {
  width: 60%;
}
.fm-service {
  background-image: url("/wp-content/themes/bfba/images/fm-services.jpg");
  width: 45%;
}
.fm-portfolio {
  background-image: url("/wp-content/themes/bfba/images/fm-portfolio.jpg");
  width: 45%;
}
.fm-portfolio + div {
  border-right: 0 !important;
  width: 10%;
}
.fm-contact + div > div:nth-child(-n+3) {
  background-color: #ee5730;
  border-left: 8px solid #ffffff;
  border-right: 7px solid #ffffff;
  float: left;
  height: 100px;
  text-align: center;
}
.fm-contact + div > div p {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  position: relative;
}
.fm-contact + div > div p::after {
  background-color: #a2b466;
  bottom: 15px;
  content: "";
  height: 3px;
  left: calc(50% - 50px);
  position: absolute;
  width: 100px;
}
.fm-contact + div > div a {
  background-color: rgba(0, 0, 0, 0.6);
  transition: all 0.15s linear 0s;
}
.fm-contact + div > div a:hover {
  background-color: rgba(0,0,0,0.8);
}
.brew {
  background-color: #eaeaea;
  border-bottom: 15px solid #ffffff;
  padding: 15px;
}
.brew > p {
  font-size: 0.8em;
  margin: 0;
  text-align: center;
  text-transform: uppercase;
}
.brew a {
  color: #404040;
}
/*
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
												   FRONT PAGE
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
*/
.full-banner {
  background-image: url("/wp-content/uploads/2016/07/bg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}
.logo {
  background-image: url("/wp-content/uploads/2018/12/BFBA4_updated.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  /* border: 3px solid #a2b466; */
  height: 346px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 380px;
}
.arrow-down {
  background-image: url("/wp-content/themes/bfba/images/arrow.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  bottom: 20px;
  cursor: pointer;
  height: 110px;
  left: calc(50% - 50px);
  opacity: 0.9;
  position: absolute;
  transition:all 0.15s linear 0s;
  width: 100px;
}
.arrow-down:hover {
	opacity: 1;
}
#about .vc_column-inner > .wpb_wrapper > .wpb_text_column,
#services .vc_column-inner > .wpb_wrapper > .wpb_text_column,
#portfolio .vc_column-inner > .wpb_wrapper > .wpb_text_column {
  margin: 0;
}
.sliding-text {
  float: left;

  min-height: 410px;
  overflow: hidden;
  position: relative;
  
  z-index: 8;
}
.sliding-text{
  padding-bottom: 25px;
}

.slide-ft-img {
  background-position: center 0px;
  background-repeat: no-repeat;
  background-size: cover;
  float: left;
  height: 200px;
  margin-bottom: 25px !important;
  margin-right: 25px;
  width: 350px;
}
.about .slide-ft-img { background-image: url("/wp-content/uploads/2016/09/image20.jpg"); }
.strategy .slide-ft-img { background-image: url("/wp-content/uploads/2016/09/image40.jpg"); }
.personnel .slide-ft-img { background-image: url("/wp-content/uploads/2016/09/image36.jpg"); }
.focus .slide-ft-img { background-image: url("/wp-content/uploads/2016/09/image35.jpg"); }
.control .slide-ft-img { background-image: url("/wp-content/uploads/2016/09/image39.jpg"); }
.capabilities .slide-ft-img { background-image: url("/wp-content/uploads/2016/09/image29.jpg"); }
.list .slide-ft-img {display: none;}
.careers .slide-ft-img { background-image: url("/wp-content/uploads/2016/09/image15.jpg"); }
.slide-ft-img + div {
  float: left;
  padding: 0 15px 15px;
  width: calc(100% - 525px);
}
.listy {
  float: left;
  width: 50%;
}
.sliding-text h2 {
  font-weight: normal;
  line-height: 1em;
  margin: 0 0 1.25em;
  position: relative;
  text-transform: uppercase;
}
.sliding-text h2::after {
  background-color: #ee5730;
  bottom: -0.75em;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  width: 100%;
}
.sliding-text p {
  text-align: justify;
}
.sliding-text p:last-child {
  margin-bottom: 0;
}

#about .vc_tta-panel-body {
  background-color: #ffffff !important;
  border-color: #ffffff !important;
}

#about .vc_tta-color-grey.vc_tta-style-classic.vc_tta-tabs .vc_tta-panels {
  background-color: #ffffff;
}

#about .vc_tta-color-grey.vc_tta-style-classic.vc_tta-tabs .vc_tta-panels, .vc_tta-color-grey.vc_tta-style-classic.vc_tta-tabs .vc_tta-panels::after, .vc_tta-color-grey.vc_tta-style-classic.vc_tta-tabs .vc_tta-panels::before {
  border-color: #ffffff;
}

.read-more {
  color: #a2b466;
  cursor: pointer;
  margin-bottom: 0;
}
.read-more.active {
  margin-bottom: 20px;
}
.read-more::after {
  content: " more...";
}
.read-more.active::after {
  content: " less...";
}
.read-more ~ * {
  display: none;
}
.slide.list .read-more {
  clear: both;
  float: none;
  padding-top: 25px;
}
.slide-nav {
  padding-left: 0;
  position: absolute;
  width: 175px;
  z-index: 9;
  padding-right: 15px;
}

#about .vc_tta-tabs-list > li {
  margin-bottom:7px;
}

#about .vc_tta-tabs-list > li a {
  background-color: #ee5730;
  border: 3px solid #ffffff;
  border-radius: 0;
  box-shadow: 0 0 0 !important;
  color: #ffffff;
  display: block;
  font-family: raleway;
  font-size: 13px;
  height: 53px;
  margin-bottom: 0;
  min-width: 175px;
  padding: 15px;
  text-align: center;
  text-shadow: 0 0 0;
  text-transform: uppercase;
  transition: all 0.15s linear 0s;
  width: 100%;
}
#about .vc_tta-tabs-list li.vc_active a, #about .vc_tta-tabs-list li:hover a {
  background-color: #a2b466;
  color: #ffffff;
  border:3px solid #ffffff;
}

#about .vc_tta-title-text {
  color: inherit;
  font-size: inherit;
}

#services {
  border-top: 2px dashed #EE5730;
}
.flexslider.mini-slider {
  border: 1px solid #f0f0f0;
  border-radius: 0;
  box-shadow: 0 0 0;
  margin-bottom: 30px;
}
.mini-slider .slides li {
  background-position: center center;
  background-size: cover;
  border: 20px solid #f8f8f8;
  height: 305px;
}
.vc_tta.vc_tta-shape-rounded .vc_tta-panel-body, .vc_tta.vc_tta-shape-rounded .vc_tta-panel-heading, .vc_tta.vc_tta-shape-rounded .vc_tta-tab > a {
  border-radius: 0px !important;
}
#services ul {
  list-style: outside none none;
}
#services .vc_tta ul li {
  position: relative;
}
#services .vc_tta ul li::before {
  background-color: #EE5730;
  content: "";
  height: 6px;
  left: -1em;
  position: absolute;
  top: calc(50% - 3px);
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
  width: 6px;
}
.vc_tta-title-text, 
.vc_tta-panel-body .wpb_wrapper strong {
  font-size: 20px;
  color: #404040;
}
#electrical-building-services .vc_tta-panel-body .wpb_wrapper > ul:first-child > li:nth-child(1), 
#electrical-building-services .vc_tta-panel-body .wpb_wrapper > ul:first-child > li:nth-child(2) {
  font-weight: bold;
}
#portfolio {
  border-top: 2px dashed #ee5730;
  margin-top: 15px;
}
.map-wrapper iframe {
  pointer-events: none;
}
.map-wrapper iframe.pe {
  pointer-events: all;
}
/*
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
												 CONTACT PAGE
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
*/
.page-id-79 #primary .entry-content > div {
  float: left;
  padding: 0 15px;
  width: 50%;
}
.page-id-79 .entry-content h2 {
  margin-top: 0;
}
/*
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
                    PORTFOLIO LIGHT BOXES
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
*/
.ml-text h2 {
  color: #ee5730;
  font-size: 32px;
  line-height: 1.2em;
  margin: 20px 0;
}

.ml-closer {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 14px;
  color: #999;
  cursor: pointer;
  padding-right: 17px;
  background-color: #ffffff;
  border: 9px solid #ffffff;
}

.ml-closer span::after {
  content: "x";
  margin-left: 5px;
  font-size: 17px;
  position: absolute;
  bottom: -2px;
  right: 0;
}

.single-gallery-slide img {
  margin: auto;
}

.ml-arrow {
  background-color: #a52029;
  position: absolute;
  width: 50px;
  height: 50px;
  top: calc(50% - 25px);
  cursor: pointer;
  z-index: 14;
}

.ml-arrow.ml-prev {
  left: 0;
}

.ml-arrow.ml-next {
  right: 0;
}

.ml-arrow::before, 
.ml-arrow::after {
  content: "";
  background-color: #ffffff;
  height: 3px;
  width: 18px;
  position: absolute;
  left: 10px;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
  top: 10px;
}

.ml-arrow.ml-next::after, 
.ml-arrow.ml-prev::before {
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

.ml-arrow.ml-next::before,
.ml-arrow.ml-prev::before {
  top: 17px;
}

.ml-arrow.ml-next::after,
.ml-arrow.ml-prev::after {
  top: 28px;
}

.ml-arrow.ml-next::after, 
.ml-arrow.ml-next::before {
  left: 16px;
}

.ml-arrow.ml-prev::after, 
.ml-arrow.ml-prev::before {
  left: 13px;
}

.gallery-slider .slick-dots {
  position: absolute;
  margin: 0;
  bottom: 20px;
  /* background-color: red; */
  width: auto;
  right: 17px;
  left: unset;
  padding: 0;
}

.gallery-slider .slick-dots li {
  width: auto;
  height: auto;
}

.gallery-slider .slick-dots li button {
  height: 12px;
  width: 12px;
  background-color: transparent;
  border-radius: 0;
  border: 2px solid #a52029;
  color: transparent;
  font-size: 1px;
  box-shadow: inset 0px 0px 1px rgba(0,0,0,0.4), 0px 0px 1px rgba(0,0,0,0.4);
}

.gallery-slider .slick-dots li button::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 100%;
  background-color: #a52029;
  transition: width 0.3s ease 0s;
}

.gallery-slider .slick-dots li.slick-active button::after {
  width: 100%;
  right: unset;
  left: 0;
}

.gallery-slider .slick-dots li button::before {
  display: none;
}

.map-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999999;
  background-color: rgba(100, 100, 100, 0.8);
}

.ml-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ml-wrapper {
  background-color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  width: 95%;
  max-width: 700px;
  padding: 20px;
}

.map-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999999;
  background-color: rgba(100, 100, 100, 0.8);
  width: 100%;
  height: 100%;
  display: none;
}

.ml-content .gallery-slider {
  /* float: left; */
  /* width: 500px; */
  /* margin-bottom: 0; */
  margin: 0 auto;
}

.ml-content .ml-text {
  float: right;
  width: calc(100% - 500px);
  padding-left: 50px;
  display: none;
}
.slick-slide {
  max-height: 500px;
}

.slick-slide img {
  display: block;
  max-height: 500px;
}
/*
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
                          RESPONSIVE
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
*/
button#responsive-menu-button {
  border-radius: 0 !important;
  box-shadow: 0 0 0 !important;
}
.responsive-menu-item-link {
  font-size: 18px !important;
  text-align: center;
  text-transform: uppercase;
}
.is-active + #responsive-menu-container {
  box-shadow: 0px 0px 5px;
}
.responsive-menu-item:nth-child(n+2) .responsive-menu-item-link::after {
  background-color: #a2b466;
  content: "";
  height: 2px;
  left: calc(50% - 62px);
  position: absolute;
  top: -2px;
  width: 125px;
}
@media (max-width: 1025px) {
  #masthead > .menu-extras, #masthead > .main-navigation {
    display: none;
  }
  .site-branding {
    margin-left: 6%;
  }
  .site-branding > img {
    height: 45px;
    margin-top: 5px;
  }
  .full-banner {
    background-attachment: local !important;
  }
  .fancybox-nav span {
    visibility: visible !important;
  }
  #masthead.site-header {
    bottom: 0 !important;
    box-shadow: 0 0 5px;
    position: fixed !important;
  }
  .site-content {
    margin-top: 0px;
  }
}
@media (max-width: 1022px) {
  .slide-ft-img {
    display: none;
  }
  .slide-nav {
    left: 10px;
    padding: 0;
    position: absolute;
    top: -10px;
    width: 145px;
  }
#about .vc_tta.vc_tta-tabs .vc_tta-tabs-container {
  display: block !important;
}
#about .vc_tta.vc_tta-tabs .vc_tta-panel-heading {
  display: none !important;
}

  .slide-nav > button {
    display: block;
    font-size: 14px;
    height: 50px;
    margin: 12px 0;
    width: 100%;
  }
  .slide-ft-img + div {
    min-height: 508px;
    padding-bottom: 15px;
    padding-left: 0;
    padding-top: 15px;
    width: calc(100% - 175px);
  }
  #about .wpb_wrapper > h1 {
    display: none;
  }
  #about {
    padding: 20px 0;
  }
}
@media (max-width: 768px) {
  .mini-slider {
    display: none;
  }
  .port-item {
    width: 50%;
  }
  .brew {
    background-color: #eaeaea;
    border-bottom: 15px solid #ffffff;
    padding: 15px;
    margin-bottom: 60px;
  }
  #services .vc_col-sm-6 {
    width: 100%;
  }
}
@media (max-width: 631px) {
  .fm-contact + div {
    display: none;
  }
  .fm-contact {
    width: calc(100% - 7px);
  }
  #contact {
    font-size: 0.9em;
  }

}
@media (max-width: 540px) {
  #contact > div {
    float: none;
  }
  #contact > div:nth-child(1) {
    padding-left: 15px;
    width: 100%;
    text-align: left;
  }
  #contact > div:nth-child(1) p {
    margin-top: 0;
  }
  #contact > div:nth-child(2) {
    width: 100%;
  }
  .slide-nav {
    left:20px;
    width: 125px;
  }
  #about .vc_tta-tabs-list > li a {
  	 font-size: 12px;
  	 height: 54px;
  	 margin-bottom: 0;
  	 padding: 14px 7px 7px;
  	 min-width: 145px;
	}
  .vc_tta.vc_general .vc_tta-panel-body {
     padding: 4px 8px !important;
	}
	.sliding-text p, .sliding-text {
  	  font-size: 0.85em !important;
	}
	.listy {
  		float: none;
  		width: 100%;
	}
	.vc_tta-title-text, .vc_tta-panel-body .wpb_wrapper strong {
  		color: #404040;
  		font-size: 13px;
	}
	.sliding-text ul {
		padding-left: 10px;
	}
}
@media (max-width: 440px) {
	#about .vc_tta-tabs-list > li a {
  font-size: 11px;
  height: 54px;
  min-width: 125px;
  padding: 16px 4px 7px;
}
  .port-item {
    width: 100%;
  }
  .sliding-text .slide p {
    font-size: 13px;
  }
  .slide-ft-img + div {
    padding-right: 0;
    padding-left: 0;
    width: calc(100% - 150px);
  }
  .arrow-down {
    bottom: 0;
    height: 48px;
  }
}