/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/* global */
:root {
/*   --red: #EB2027; */
	--red: #8E181B;
  --black: #020202;
  --light-grey: #F3F3F3;
  --grey: #D6D6D6;

  --transition: .4s cubic-bezier(0.65, 0.05, 0.36, 1) all;
  --transition2: .3s cubic-bezier(0.65, 0.05, 0.36, 1) all;
  --boxShadow1: 0 3px 8px rgba(0,0,0,0.19), 0 2px 6px rgba(0,0,0,0.23);
  --boxShadow2: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
  --boxShadow3: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
}

#page .c-mb0 p,
#page .mb0 {
  margin-bottom: 0;
}

.txt-red{
  color:var(--red);
  font-weight:bold;
}
h1.txt-red, h2.txt-red, h3.txt-red {
  font-size: 35px;
  line-height: 1;
}
.black-text-shadow p {
  text-shadow:#000 0 0 7px;
}
.heading-black{
  font-size:1.25em;
  color: var(--black);
  font-weight: bold;
  line-height: 1;
}
.heading-white{
  font-size:1.25em;
  color: #fff;
  font-weight: bold;
  line-height: 1;
}
.bold{
  font-weight:bold;
}
#page .black {
  color: #000;
}

/*.hide {
  opacity:0;
}*/

/* header */
#menu-main > li:last-child a {
  padding-right:0;
}
.c-uber-menu.menu-item ul.sub-menu {
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  width:600px;
  border:2px solid var(--grey);
  box-shadow:2px 2px 8px  rgba(0,0,0,0.23);
  box-shadow: var(--boxShadow1);
  padding:10px;
}
.c-uber-menu.menu-item ul.sub-menu li {
  width:50%;
}
.c-uber-menu.menu-item ul.sub-menu li a {
  display:flex;
  justify-content:space-between;
  flex-wrap:nowrap;
  align-items:center;
  line-height:1.2;
  padding:0 10px;
}
.c-uber-menu.menu-item ul.sub-menu li a picture,
.c-uber-menu.menu-item ul.sub-menu li a > img {
  order:1;
  width:33%;
  padding:0 5px 0 0;
}
.c-uber-menu.menu-item ul.sub-menu li a span {
  order:2;
  width:100%;
  padding:0 0 0 5px;
}

.drop_menu.menu-item ul.sub-menu {
    width: 218px !important;
	border:2px solid var(--grey);
  box-shadow:2px 2px 8px  rgba(0,0,0,0.23);
  box-shadow: var(--boxShadow1);
}

.drop_menu.menu-item ul.sub-menu li a {
    padding: 5px 8px !important;
}



#secondary-navigation {
  padding:5px 0;
}
#secondary-navigation .retailers.menu-item a,
#secondary-navigation .installers.menu-item a {
  display:flex;
  justify-content:flex-start;
  flex-wrap:nowrap;
  align-items:center;
  line-height:40px;
}
.retailers.menu-item a::before,
.installers.menu-item a::before {
  content:'';
  display:block;
  position:relative;
  width: 20px;
  height:40px;
  background-image:url('/wp-content/uploads/2021/04/vulcan-v-icon.svg');
  background-size: contain;
  background-repeat:no-repeat;
  background-position:center center;
  margin-right:10px;
}
.installers.menu-item a::before {
  background-image:url('https://www.vulcanvents.com/wp-content/uploads/2022/08/Red_saw.svg');
  width:35px;
}
.secondary-navigation .menu-toggle {
      display: none;
}
#secondary-navigation .inside-navigation {
  display:flex;
  justify-content: space-between;
  align-items: center;
  width:100%;
}
.secondary-navigation .inside-navigation .toolbar-right {
  order: 2;
}
.secondary-navigation .inside-navigation .main-nav {
  order: 1;
}

.header-ncm {
    display:flex;
    flex-direction:column;
    align-items:center;
    margin-left:2rem;
}
.header-ncm__text {
    font-size:11px;
    text-align:center;
    line-height:1.2;
    margin-bottom:5px;
}
.header-ncm svg {
    width:115px;
    height:auto;
}
.header-ncm__img {
    height:30px;
	width:auto;
}
@media (max-width:1200px) {
  .header-ncm {
    position:absolute;
    top:15px;
    right:15px;
  }
}
.site-logo .header-image,
.site-logo .header-image img {
	display: block;
}


/* body */
.icon-txt{
  display: flex;
  align-items: center;
  justify-content: start;
}

.icon-txt img{
  width:50px;
  padding-right:5px;
  height:100%!important;
}

.icon-txt .vulcanLogo{
width: 40px;
    margin-right: 10px;
}

.findRetailers-bar{
  display:flex;
  justify-content:center;
  align-items:center;
}

.findRetailers-bar h2 {
  margin-bottom:0;
  font-size:36px;
  display: inline-block;
  margin-left: 15px;
}
.findRetailers-bar img {
  max-height:4.4vw;
  width: auto;
}


#cards{
  display:flex;
  justify-content:center;
}
.box{
  position: relative;
  height: 320px;
  width:270px;
  display: flex;
  align-content: center;
  justify-content: center;
  overflow: hidden; 
}
.flip-card {
  background-color: transparent;
  width: 340px;
  height: 340px;
}

/* This container is needed to position the front and back side */
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

/* Do an horizontal flip when you move the mouse over the flip box container 
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}
*/

/* Position the front and back side */
.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
  backface-visibility: hidden;
}

/* Style the front side (fallback if image is missing) */
.card-front {
  height: 100%;
  width: 100%;
  position: absolute;
  display:flex;
  flex-direction:column;
  background-color: #ffffff;
  padding: 40px 15px;
  justify-content: space-between;
}
.card-front img{
	height:auto;
	width:100%;
	aspect-ratio: 1 / 1;
	padding-top:20px;
	object-fit:contain;
}
.card-front h2{
  font-size: 24px;
  text-align:center;
  font-family: Raleway, sans-serif;
  font-weight:900;
  color:var(--red);
}

/* Style the back side */
.card-back {
  color: white;
  background-color:var(--red);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 15px;
  position: absolute;
  right: -100%;
  height : 100%;
  width : 100%;
  opacity:0;
  -webkit-transition: var(--transition);
  transition: var(--transition);
}
.card-back a{
  display: flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  width: 100%;
  height: 100%;
}
.card-back img{
    width: 50px;
}
.card-back h2{
  font-size: 24px;
  font-family: Raleway, sans-serif;
  font-weight:900;
  color:#ffffff;
  display: inline-block;
  padding: 0 10px;
}
.card-back p {
  color:#ffffff;
  text-align:center;
  justify-content:center;
}
.box:hover .card-back {
    right: 0;
    -webkit-transition: all .5s, -webkit-transform 1s;
    transition: all .5s, transform .5s;
    width:100%;
    height:100%;
    opacity:1;
}


.elementor-button .elementor-button-content-wrapper {
  align-items:center;
}
.elementor-button-wrapper .elementor-button.elementor-size-xs {
  padding:0;
}
.elementor-button .elementor-button-icon {
  width:40px;
  height:auto;
  position:relative;
  display:flex;
  align-items:center;
  min-width:40px;
  min-height:65px;
}
.elementor-button .elementor-button-icon svg {
  height:auto;
  width:40px;
  max-height:45px;
}

.retailers-btn a svg path {
  transition:0.3s ease all;
}
.retailers-btn a:hover svg path {
  fill:var(--red) !important;
}

#temp-graph {
  transform:translateX(-40px);
}


/* footer */
.inside-footer-widgets>div {
  flex:none;
}
.footer-widgets .widget-title {
  margin-bottom:20px
}
.footer-widget-1 {
  width:40%;
}
.c-footer-logos {
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  justify-content:flex-start;
}
.c-footer-logos > * {
  margin-right:10px;
}
.c-footer-logos img {
  height: 50px;
}
.footer-widget-2 {
  width:40%;
}
.footer-widget-2 ul.menu {
  -webkit-columns:2;
  columns:2;
}
.footer-widget-3 {
  width:20%;
}

/* vent tables */
.c-vent-table-filters {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  flex-wrap:nowrap;
  margin-bottom:10px
}
.c-vtf-finishes {
  text-align:right;
}
.c-vtf-finishes p {
  margin-bottom:0
}
.c-vent-table-filters form {
  display:flex
}
.c-vent-table-filters h3 {
  color:var(--red);
  font-size:20px;
  font-weight:700;
  margin-bottom:10px;
}
.c-vent-table-filters .form-group {
  display:flex;
  align-items:center;
  justify-content:flex-start;
  flex-wrap:wrap;
}
.c-vent-table-filters .form-group .radio {
  margin-right:15px;
  font-weight:700;
}
.c-vent-table-filters .form-group .radio input {
  margin-right:3px;
}
.c-vents-table {
  border:none
}
.c-vents-table thead {
  background:var(--grey);
}
.c-vents-table thead th {
  font-family:'Arya', sans-serif;
  text-transform:uppercase;
  border:none;
  line-height:1;
  text-align: left;
}
.c-vents-table thead th .o-vt-subtitle {
  display:block;
  color:var(--red);
  font-size:14px;
}
.c-vents-table tbody tr {
  border-bottom: 3px solid var(--light-grey);
}
.c-vents-table tbody tr td {
  border-top:none;
  border-right:none;
  border-left:none;
  text-transform:uppercase;
  font-size:16px;
  /*! text-align: center; */
}
.c-vt-icon {
  min-height:42px;
}
.c-vt-icon a {
  display:flex;
  width:100%;
  justify-content:center;
}
.c-vents-table .o-vt-icon {
  height:25px;
  width:auto;
}

#clickable-retailers-row {
  cursor:pointer;
}
#clickable-retailers-row.desktop-retailers-row {
  transform: translateY(-50%);
  background-size:101% auto;
}

.vent-swipers .gallery-top {
  width:100%;
}
.vent-swipers .gallery-top .swiper-slide {
  align-items:center;
  display: flex;
}
.vent-swipers .gallery-top .swiper-slide img {
  padding:0 35px;
}
.vent-swipers .gallery-top .swiper-button-prev {
  left:0;
  --swiper-navigation-color:var(--red);
}
.vent-swipers .gallery-top .swiper-button-next {
  right:0;
  --swiper-navigation-color:var(--red);
}
.vent-swipers .gallery-top .swiper-button-next::after,
.vent-swipers .gallery-top .swiper-button-prev::after {
  padding:10px;
  background:#fff;
}
.vent-swipers .gallery-thumbs {
  width:100%;
}
.vent-swipers .swiper-wrapper {
  align-items:center;
}
.gallery-thumbs img {
  transition:.3s ease all;
  transform:scale(0.8);
}
.gallery-thumbs .swiper-slide-thumb-active img {
  transform:scale(0.95);
}

.c-retailers-row-logo p {
  display: inline-block;
}

#sl_div .search_box {
  position: relative;
  overflow:hidden;
}
#addy_in_address.search_item {
  justify-content:space-between;
  align-items:center;
}
.search_item #addy_in_radius {
  flex:none;
  justify-content:flex-start;
  align-items:center;
}
.search_item #radius_in_submit {
  justify-content: flex-end;
}
#sl_div .search_item input#addressInput {
  width:100%;
}
#sl_div .search_box #addy_in_address.search_item label,
.search_item #addy_in_radius label{
  min-width:110px;
  text-align:left;
  /*! line-height:1; */
}

/* 404 error */
body.error404 #main {
  max-width:700px;
  margin:10vh auto;
  text-align:center;
  padding: 0 30px;
}

/* Single Post */
.single-post #content {
  margin:40px auto;
  padding:0 30px;
}

/* how it works animated graphic */
.o-dot, .o-line, .c-icon, .c-text {
  opacity:0;
}

/* v2 vents smaller 2 */
.v2-title {font-size:26px;}
.v2-text {font-size:14px;}

.elementor-lightbox.dialog-type-lightbox {z-index:10001}


/* vents tables responsive */
/*
Max width before this PARTICULAR table gets nasty. This query will take effect for any screen smaller than 760px and also iPads specifically.
*/
@media
  only screen 
  and (max-width: 760px), (min-device-width: 768px) 
  and (max-device-width: 1024px)  {

    /* Force table to not be like tables anymore */
    table, thead, tbody, th, td, tr {
        display: block;
    }

    /* Hide table headers (but not display: none;, for accessibility) */
    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    tr {
      margin: 0 0 1rem 0;
    }

    tr:nth-child(odd) {
      background: #ccc;
    }

    td {
        /* Behave  like a "row" */
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 30%;
        text-align: right;
    }

    td:before {
        /* Now like a table header */
        position: absolute;
        /* Top/left values mimic padding */
        top: 50%;
        left: 6px;
        transform:translateY(-50%);
        font-size:16px;
        line-height:1.2;
        width: 30%;
        padding-right: 10px;
        white-space: nowrap;
      text-align: left;
    }
    
    .c-vt-icon a {
      justify-content: flex-end
    }

    /*
    Label the data
You could also use a data-* attribute and content for this. That way "bloats" the HTML, this way means you need to keep HTML and CSS in sync. Lea Verou has a clever way to handle with text-shadow.
    */
    td:nth-of-type(1):before { content: "MFG. PART #"; }
    td:nth-of-type(2):before { content: "DESCRIPTION"; }
    td:nth-of-type(3):before { content: "NFVA (square inches)"; }
    td:nth-of-type(4):before { content: "FLANGE STYLE"; }
    td:nth-of-type(5):before { content: "CUT OUT (inches)"; }
    td:nth-of-type(6):before { content: "SPEC. SHEET (download)"; }
    td:nth-of-type(7):before { content: "SAMPLE IMAGE"; }

    .c-vent-table-filters {
      flex-wrap:wrap;
    }
    .c-vent-table-filters > div {
      width:100%;
      text-align:center;
    }
    .c-vtf-filter {
      order:2;
      margin-top:40px
    }
    .c-vent-table-filters .form-group {
      justify-content:center;
      width:100%;
    }

}




@media screen and (max-width:1024px) {
  .findRetailers-bar {
    justify-content:center;
  }
  .findRetailers-bar h2 {
    width:auto;
    margin-left:20px;
  }
  .findRetailers-bar img {
    max-height:60px
  }
    #temp-graph {
        transform: translateX(0)
    }
}

/* mobile header breakpoint */
@media screen and (max-width:820px) {
  .main-navigation .site-logo.mobile-header-logo img {
    height:50px;
  }
  #secondary-navigation {
    display:none;
  }
}

@media screen and (max-width:768px) {
  #footer-widgets .inside-footer-widgets {
    max-width:600px;
    margin-left:auto;
    margin-right:auto;
  }
  .inside-footer-widgets > div {
    width:100%;
    text-align:center;
  }
  .c-footer-logos {
    justify-content: center
  }
}

@media screen and (max-width:500px) {
  #sl_div .results_wrapper {
    padding:10px;
  }
  #address_search .search_item,
  .search_item #addy_in_radius{
    flex-direction:column;
    width: 100%;
  }
  #sl_div .search_box #addy_in_address.search_item label, .search_item #addy_in_radius label {
    width:100%;
    margin:0 0 5px;
    text-align: center;
  }
  #sl_div .slp_search_form .search_box .search_item #radius_in_submit {
    width:100%;
    text-align: center;
  }
  #sl_div .search_item input#addressInput {
    margin-bottom:20px;
  }
  #addy_in_radius > select {
    width:100%;
    text-align:center;
  }
  input#addressSubmit {
    width:100%;
    margin-top:10px;
  }
  
  #map_sidebar .results_row_left_column {
    display:flex;
    flex-direction:column;
    text-align:center;
  }
  #map_sidebar .results_row_left_column > span {
    float:none;
    display:block;
    width:100%;
  }
  #map_sidebar .location_name {
    font-weight:700;
  }
  #map_sidebar  .location_distance {
    margin-bottom:10px;
  }
  #map_sidebar .slp_result_street,
  #map_sidebar .slp_result_street2,
  #map_sidebar .slp_result_citystatezip {
    display:block;
    font-size:14px;
    text-align:center;
  }
  #map_sidebar .slp_result_country {
    display:none;
  }
  #map_sidebar .slp_result_phone {
    width:100%;
    display:block;
    margin-top:5px;
    margin-bottom:10px;
    text-align:center;
  }
  #map_sidebar .slp_result_hours {
    text-align:center;
      margin-top:20px;
  }
  #map_sidebar .slp_result_contact a.storelocatorlink {
    padding:10px 5px;
    background:var(--red);
    color:#fff;
    position:relative;
    display:block;
    color:#fff;
    text-align:center;
    line-height:1;
  }
  #map_sidebar .results_row_right_column {
    display:flex;
    flex-wrap:wrap;
    justify-content:space-evenly;
  }
  .results_row_right_column .slp_result_website,
  .results_row_right_column .slp_result_email,
  .results_row_right_column .slp_result_directions {
    width:45%;
    font-size:14px;
      height:auto;
  }
  .single-post #content {
    padding: 0 20px;
  }
}


.vent-types h3 {
    margin-bottom: 0;
}

@media(max-width: 1580px) and (min-width: 1025px) {
.main-hero-bar .column-2 .elementor-widget-heading {
    width: 100% !important;
    text-align: right !important;
    margin-bottom: 10px !important;
}
.main-hero-bar .column-2 > .elementor-widget-wrap.elementor-element-populated {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
}	
.main-hero-bar {
    background-size: cover !important;
    background-repeat: no-repeat !important;
}	
}


