/*
* Theme Name: Tower-NPI
* Description: Custom Wordpress Theme
* Author: Tower Insurance
* Version: 1.0
* License: GNU General Public License v2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* -------------------------------------------------------------------
Typography - Tower Font
--------------------------------------------------------------------*/ 

@font-face {
    font-family: 'tower';
    src: url('fonts/tower-light.eot');
    src: url('fonts/tower-light.eot?#iefix') format('embedded-opentype'),
         url('fonts/tower-light.woff') format('woff'),
         url('fonts/tower-light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'tower';
    src: url('fonts/tower-regular.eot');
    src: url('fonts/tower-regular.eot?#iefix') format('embedded-opentype'),
         url('fonts/tower-regular.woff') format('woff'),
         url('fonts/tower-regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'tower';
    src: url('fonts/tower-medium.eot');
    src: url('fonts/tower-medium.eot?#iefix') format('embedded-opentype'),
         url('fonts/tower-medium.woff') format('woff'),
         url('fonts/tower-medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'tower';
    src: url('fonts/tower-semibold.eot');
    src: url('fonts/tower-semibold.eot?#iefix') format('embedded-opentype'),
         url('fonts/tower-semibold.woff') format('woff'),
         url('fonts/tower-semibold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

/* global styles */

*{
  margin:0;
}
body, html {
  margin:0;
  padding:0;
  width:100%;
  height:100%;
  min-height:100%;
}
body{
  font-family: 'tower',sans-serif;
  font-size: 16px;
  line-height: 1.42857143;
  color: #020f50;
  background-color: #def2fa;
}
a:hover, a:focus {
  color: #72b4d7;
  text-decoration:none;
}
.white{
  color: #fff;
}
.opacity100{
  background-color: rgba(255,255,255,1) !important;
}
.opacity80{
  background-color: rgba(255,255,255,0.8) !important;
}
.opacity60{
  background-color: rgba(255,255,255,0.6) !important;
}
.margin-top10{
  margin-top:10px;
}
.entry-content-page {
  margin-bottom: 50px;
}
.entry-content-page hr{
  color:#020f50;
  border-top: 1px solid #020f50;
}
#mobileHeader{
  display:none;
}
#desktopHeader{
  display:inherit;
}

/* header */
header{
  background-color: #020f50;
  height: 90px;
  position: relative;
  z-index: 100;
}
#header-wrap{
  margin-top:15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width:100%;
}
#extra-menu{
  float:right;
}
#extra-menu li{
  display:inline;
  border-right:solid 1px #fff;
  text-align:center;
}
#extra-menu a{
  color:#fff;
  text-decoration:none;
  font-size:14px;
  padding: 0 10px;
  margin: 0 5px;
}
#extra-menu a:hover,#extra-menu a:focus{
  color: #72b4d7;
  text-decoration:none;
}
#extra-menu li:last-child{
  border-right:none;
}
.navbar{
  z-index: 999;
  border-radius:0px;
  left: 0;
  top: 10px;
  right: 0;
  height: 112px;
  margin: 0 auto;
  min-width: 300px;
  background-color: #fff;
}
#logo-container{
  display: flex;
  align-items: center;
  height: 100%;
  justify-content: left;
  float: left;
  margin-left: 15px;
}
#header-menu{
  display: flex;
  align-items: center;
  height: 100%;
  justify-content: right;
  float: right;
  margin-right: 15px;
}
#header-menu li{
  display:inline;
  text-align:center;
  float:left;
}
#header-menu a{
  color: #020f50;
  text-decoration:none;
  font-size:19px;
  padding: 0 10px;
  margin: 0 5px;
  font-weight: 600;
}
#header-menu a:hover,#header-menu a:focus{
  color: #72b4d7;
  text-decoration:none;
}
#site-logo{
  max-height:90px;
}
.phone-number{
    font-size: 22px;
    margin-top: 5px;
    color: rgb(255, 255, 255);
    margin-left: 20px;
    font-weight: 500;
}
#heroImage, #three-reasons{
  width: 100%;
  bottom: inherit;
  position: relative;
  background-attachment: fixed;
  background-position: right 30%;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #020f50;
}
#heroImage{
  z-index: 90;
  height: 75%;
  min-height: 650px;
  padding: 15px 0px;
  margin: 0;
}
.centerContentVert{
  justify-content: center;
  align-content: center;
}
#pageTitle{
  color: #fff;
  max-width:70%;
  font-weight: 300;
  font-size: 56px;
  text-shadow: #020f2a 2px 2px 5px;
  margin-top: 115px;
  line-height: 1.2;
}
.breadcrumb{
  font-size:0.9em;
  background-color: rgba(250,250,250,0.7);
  padding: 10px 15px 6px 15px;
  width: 45%;
  margin: 6px 0px 0px 0px;
}
.breadcrumb-link{
  margin: 0px 6px;
  color: #020f50;
}
.breadcrumb-link:hover, .breadcrumb-link:focus {
  color: #337ab7;
  text-decoration: none;
}
.heroCTABox{
  background-color: rgba(255,255,255,0.6);
  min-height: 210px;
  height: auto;
  bottom: 70px;
  top: inherit;
  left: inherit;
  position: relative;
  width: 45%;
  right: 0;
  float: right;
  padding: 0px 15px;
}
.heroCTABox p{
  padding-bottom:60px;
}

/* footer */
footer{
  height: auto;
  min-height:250px; 
  background-color:#020f50;
  color: #fff;
  padding:30px 0px;
}
footer p, footer span, footer a{
  color: #fff;
  text-decoration: none;
  font-size: 0.9em;
}
footer li, footer ul{
  list-style-type: none;
  padding-left: 0px;
}
footer hr{
  border-top: 1px solid rgba(255,255,255,.3);
}
.terms-sitemap span{
  margin-left:25px;
}
.footer-menu li{
  margin: 4px 0;
}

/* front page */
.boxes{
  display: flex;
  flex-direction: column;
  padding: 0 15px 15px 15px;
}
#front-page-wrap{
  position:relative;
  margin-top: -360px;
  z-index:95;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
}
.productContainer{
  background-color: #353f73;
  padding-bottom: 100px;
  position: relative;
  z-index: 95;
}
.title{
  display: flex;
  flex-direction: row;
  margin-top: -55px;
  position: relative;
  z-index: 70;
  margin-bottom: 50px;
}
@-moz-document url-prefix() {
    .bottom-title .title {
        width: 100%;
    }
}
.container.bottom-title{
  position: relative;
  bottom: -200px;
  top: inherit;
  left: 0;
  right: 0;
}
.title .boxes{
  padding: 30px 15px;
}
.productHolder{
  text-align:center;
}
.productLinks:nth-child(-n+3) > .productHolder{
  margin-bottom:110px;
}
.productImg{
  width:90px;
  height:auto;
}
.threeReasonsImg{
  max-width: 60%;
  height: auto;
  text-align: center;
  justify-content: center;
  margin: 0px auto;
}
.margin-right3{
  margin-right: 3px;
}
#three-reasons{
  z-index: 80;
  padding: 275px 0px 0px 0px;
  margin-top: -95px;
}
#three-reasons .container .title .boxes{
    padding: 50px 10px 50px 15px;
}
.homeCTABox{
  height: auto;
  min-height: 200px;
  max-height: 275px;
}

/* Product pages */
.single-products #heroImage{
  height: 50%;
  min-height: 400px; 
}
.product-content {
  padding: 60px 0px 50px 0px;
}
.single-products .container.bottom-title{
  position: relative;
  bottom: -170px;
}

/* Other pages */
.page #heroImage {
  height: 50%;
  min-height: 400px; 
}

/* Reset home hero height */
.home #heroImage {
  height: 75%;
  min-height: 650px;
}

/* Secondary Content */
#secondary-content {
    height: auto;
    padding-top: 165px;
    padding-bottom: 0px;
}
.container.secondary-title{
  position: relative;
  bottom: -120px;
  top: inherit;
  left: 0;
  right: 0;
}
#secondary-content .container .title {
    margin-bottom: 90px;
}
.secondaryContentBox{
  background-color: #fff;
  opacity: 1;
  min-height: 250px;
  height: auto;
}
.secondaryContentBox p{
  padding-bottom: 60px;
}
.secondaryContentImage {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  min-height: 250px;
  height: auto;
}
.extraHeight{
  height:350px;
}
#youTubeVideo iframe, 
#youTubeVideo2 iframe, 
#youTubeVideo3 iframe, 
#youTubeVideo4 iframe,
#youTubeVideo5 iframe {
  position: absolute;
  height:100%;
  width:100%;
  top:0;
  bottom:0;
  left:0;
  right:0;
}

/* CTA Buttons */
.cta{
  font-size: 20px;
  padding: 15px;
  -webkit-transition: 0.5s ease-in-out;
  -moz-transition: 0.5s ease-in-out;
  -o-transition: 0.5s ease-in-out;
  transition: 0.5s ease-in-out;
  position: absolute;
  top: inherit;
  left: 0;
  right: 0;
  bottom: 0;
  font-weight:600;
}
.cta-text{
  float:left;
}
.cta-primary{
  background-color:#ffcf01;
  color: #020f50;
}
.cta-primary:hover, .cta-primary:focus{
  background-color: #cda600;
  color: #020f50;
}
.cta-secondary{
  background-color:#008acc;
  color: #ffffff;
}
.cta-secondary:hover, .cta-secondary:focus{
  background-color: #006799;
  color: #ffffff;
}
.cta-tertiary, .moreInfo{
  background-color:#ffffff;
  color: #008acc;
}
.cta-tertiary:hover, .cta-tertiary:focus{
  background-color: #020f50;
  color: #ffffff;
}
.moreInfo{
  width:75%; 
  font-size: 20px;
  padding: 15px;
  -webkit-transition: 0.5s ease-in-out;
  -moz-transition: 0.5s ease-in-out;
  -o-transition: 0.5s ease-in-out;
  transition: 0.5s ease-in-out;
  font-weight:600;
  margin: 20px auto 0px auto;
  min-height: 60px;
  vertical-align: middle;
  display: flex;
  position: absolute;
  justify-content: center;
  color: #020f50;
  bottom: -60px;
  left: 5%;
  right: 5%;
  top: inherit;
}
.moreInfo:hover, .moreInfo:focus{
  color:#ffffff;
  background-color: #020f50;
}
.circle{
  border-radius: 50%;
  height: 30px;
  width: 30px;
  float:right;
  display:inline;
  margin-left:20px;
  text-align:center;
  -webkit-transition: 0.5s ease-in-out;
  -moz-transition: 0.5s ease-in-out;
  -o-transition: 0.5s ease-in-out;
  transition: 0.5s ease-in-out;
}
.primary-circle{
  border: 2px solid #020f50;
}
.primary-circle .arrow-move .arrow{
  fill: #020f50;
}
.secondary-circle{
  border: 2px solid #ffffff;
}
.secondary-circle .arrow-move .arrow{
  fill: #ffffff;
}
.tertiary-circle{
  border: 2px solid #008acc;
}
.tertiary-circle .arrow-move .arrow{
  fill: #008acc;
}
.arrow{
  height: 16px;
  width: 16px;
  -webkit-transition: 0.5s ease-in-out;
  -moz-transition: 0.5s ease-in-out;
  -o-transition: 0.5s ease-in-out;
  transition: 0.5s ease-in-out;
}

/* Secondary Content CTAs */
.secondaryCta{
  font-size: 20px;
  padding: 15px;
  -webkit-transition: 0.5s ease-in-out;
  -moz-transition: 0.5s ease-in-out;
  -o-transition: 0.5s ease-in-out;
  transition: 0.5s ease-in-out;
  position: absolute;
  top: inherit;
  left: 0;
  right: 0;
  bottom: 0;
  font-weight: 600;
}

/* Contact page map */
#map{
  height: 480px;
  margin-top: -180px;
}

/* Quote form */
.form-responsive{
  padding:30px;
}
.field-responsive {
  background-color: #fff;
  margin: 20px 0px;
  padding:30px;
}
input, button, select{
  border: 2px solid #fff;
  border-bottom:2px solid #008acc;
  width:100%;
  padding: 10px 0;
  height: 60px;
  display: block;
}
input[type='text']{
  font-size: 18px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}
input[type='checkbox'],input[type='radio']{
  display:none;
}
input[type='submit']{
  background-color:#ffcf01;
  font-size:18px;
  font-weight: 600;
  border: none;
}
input[type='submit']:hover{
  background-color: #cda600;
}
.form-responsive label, .wpcf7-form-control-wrap{
  width:100%;
  cursor: pointer;
}
.form-responsive div[class^="col-"]{
  padding: 0px 20px;
}
span.wpcf7-list-item {
  display: inline-flex;
  width: 48%;
  margin: 0px 1% 1% 1%;
  text-align: center;
  background-color: #bfc9d9;
  border: 2px solid #fff;
}
span.wpcf7-list-item label{
  padding: 20px;
}
span.wpcf7-list-item:hover{
  border: 2px solid #020f50;
}
.wpcf7-list-item-label{
  pointer-events: none;
}
.Termsandconditions span{
  width: 100%;
}
.isSelected{
  background-color:#020f50 !important;
  color: #fff !important;
}
.isSelected:hover{
  border: 2px solid #bfc9d9 !important;
}

/* MEDIA QUERIES */
@media only screen and (min-width: 767px) {
	.bottom-title .title {
		display: inline-flex;
	}
}
@media only screen and (max-width: 991px) {
  #header-menu a {
    padding: 0 5px;
    margin: 0; 
  }
  #extra-menu a {
    padding: 0 5px;
    margin: 0 5px 0 0px;
  }
  .productLinks:nth-child(-n+4) > .productHolder {
    margin-bottom: 110px;
  }
  .breadcrumb{
    width:100%;
  }
  .wpcf7-list-item{
    min-height:95px;
    height: 95px;
  }
  .wpcf7-list-item-label{
    align-self:center;
    display: flex;
    align-items: center;
    height: 100%;
    justify-content: center;
  }
  .form-responsive .row .pull-right{
    float:inherit !important;
  }
  .home #heroImage{
    min-height:700px !important;
  }
  #front-page-wrap{
    margin-top: inherit;
    display:inherit;
    position: absolute;
    top:275px;
    bottom: inherit;
    left:inherit;
    right:inherit;
    width: inherit;
  }
  #pageTitle{
    font-size: 48px;
    max-width:100%;
    margin-top:20px;
    margin-left: 15px;
  }
  .homeCTABox {
    height: auto;
    min-height: 180px;
    max-height: 220px;
    margin-top: 5px;
  }
  #mobileHeader{
    display:inherit;
  }
  #desktopHeader{
    display:none;
  }
  .row{
    padding: 0px 15px;
  }
  .row.field-responsive {
    padding: 15px;
  }
  header{
    background-color: #fff;
    height:60px;
    min-width:320px;
  }
  #mobile-site-logo{
    max-height:50px;
    height:50px;
    width: auto;
    margin-left:15px;
    margin-top:5px;
  }
  .mobile-phone-number{
    color:#020f50;
    margin-left: 10px;
  }
  #menuToggle{
    color: #020f50;
    background-color: #ffcf01;
    background-image: none;
    height: 60px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    padding: 20px;
    position: absolute;
    top: 0;
    right: 0;
    width: 82px;
    z-index:200;
  }
  .mobile-phone-number {
    color: #020f50;
    margin-left: 5px;
  }
  #mobile-site-logo {
    margin-left: 0px;
  }
  #mobileWrapper{
    position:fixed;
    height:100%;
    top:0;
    left:0px;
    bottom:0px;
    right:0px;
    background-color:rgba(0,0,0,.6);
    z-index:300;
  }
  #menuContainer{
    color: #020f50;
    background-color: #def2fa;
    position:fixed;
    top:0;
    right:0;
    bottom:0px;
    left: initial;
    width: 310px;
    overflow-y: auto;
    display: block;
    padding-top: 20px;
    z-index:350;
  }
  #iconXClose{
    padding:2px 0;
    max-width:225px;
    font-size:18px;
    width: 100%;
    cursor:pointer;
    margin-left:20px;
    color: #008acc;
  }
  #iconXClose:before {
    font-size:18px;
    line-height:30px;
    cursor:pointer;
    margin-right: 5px;
    color: #008acc;
  }
  #menu-mobile-menu{
    margin-top:35px;
    list-style-type: none;
  }
  #menu-mobile-menu li{
    list-style-type: none;
    line-height: 30px;
    padding: 2px 0;
    font-size: 18px;
    color: #008acc;
  }
  #menu-mobile-menu li:before{
    content: ' ';
    background-image: url(/wp-content/themes/tower-npi/images/right-icon.svg);
    width: 15px;
    height: 15px;
    display: inline-block;
    background-repeat: no-repeat;
    background-size: 15px 15px;
    margin: 0px 5px;
    vertical-align: baseline;
  }
  .page #heroImage {
    height: 35%;
    min-height: 200px;
  }
}

@media only screen and (max-width: 767px){
  #front-page-wrap{
    width:100%;
  }
  .home #heroImage{
    height:85%;
    min-height:900px !important;
	background-attachment: initial;
    background-position: 80% 50%;
  }
  #three-reasons{
	background-attachment: initial;
	background-position: 80% 50%;
  }
  .title{
    display:inherit;
  }
  .threeReasonsImg{
    max-width: 115px;
    max-height:115px;
    height:auto;
    width:auto;
    margin: auto;
  }
  .margin-right3 {
    margin-right: 0px;
  }
  .centerContentVert{
    margin-bottom:3px;
    min-height:150px;
    height:auto;
  }
  #three-reasons .container .title .boxes {
    padding: 15px;
  }
  .container.bottom-title {
    bottom: -230px;
  }
  .secondaryContentBox{
    padding: 5px 15px 10px 15px;
  }
  .terms-sitemap .pull-right{
    float:left !important;
  }
  .terms-sitemap span{
    margin-left: 1px;
    margin-right: 20px;
  }
  #pageTitle{
    font-size: 36px;
    width:100%;
    max-width:100%;
  }
  span.wpcf7-list-item{
    width:100%;
  }
  .row.field-responsive {
    padding: 20px 0px;
  }
  .row{
    margin:0px;
  }
  .heroCTABox{
    bottom: -20px;
    width: 70%;
    float:left;
  }
  .page div.secondary-title{
    bottom: -130px !important;
    margin-top:-50px;
  }
  .product-content {
    padding: 60px 0px 50px 0px;
  }
}

@media only screen and (max-width: 520px){
  .cta-text{
    font-size: 16px;
    margin-top: 4px;
    }
  .heroCTABox{
    width: 100%;
  }
}

@media only screen and (max-width: 380px){
	#pageTitle{
		font-size: 32px;
	}
	h2{
		font-size: 26px;
	}
	p{
	    font-size: 15px;
	}
}