/* 
Theme Name:     Tuflex Child Theme
Theme URI:      https://www.splust.com
Description:    Bootstrap 5 child theme
Author:         Christy L
Author URI:     https://www.splust.com
Template:       bootstrap-starter-theme
Version:        1.0.0
*/


/* 
===========================================================
Global
===========================================================
*/

:root {
    /* Base Spacing Unit */
    --spacing-unit: 15px;
  
    /* Colors */
    --primary-color: #557758;
    --text-color: #231f20;
    --tan-color: rgb(196, 193, 186);
    --light-green-color: #b2c2b3;
    --dark-green-color: #436046;
    --grey-color: #ECECED;
    --light-grey-color: #e5e3e0;
    --dark-grey-color: #383838;
    --white-color: #ffffff;
    --black-color: #000000;
}

html {
    scroll-behavior: smooth;
}

body, p {
    font-family: 'Mulish', sans-serif;
    font-weight: 300;
    line-height: 1.25;
    color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 900;
    font-style: italic;
    line-height: 1;
    letter-spacing: -0.025em;
    text-transform: uppercase;
    color: var(--text-color);
    margin-bottom: 30px;
}

#main {
  margin-top: 0px;
}

/* Font Sizes
----------------------------------- */

h1 { font-size: clamp(35px, 2vw, 50px); }
h2 { font-size: clamp(30px, 1.8vw, 40px); }
h3 { font-size: clamp(25px, 1.5vw, 30px); }
h4 { font-size: clamp(20px, 1.2vw, 20px); }
h5 { font-size: clamp(18px, 1vw, 18px); }
h6 { font-size: clamp(16px, 0.8vw, 16px); }
p  { font-size: clamp(16px, 0.9vw, 18px); }

a {
    color: var(--primary-color);
    font-weight: 500;
}

a:hover {
    color: var(--dark-green-color);
}

/* Buttons
----------------------------------- */

.btn, .gform_button {
    padding: 8px 25px;
    margin-bottom: 15px;
    border: none;
    outline: none !important;
    box-shadow: none !important;
    background: var(--primary-color);
    color: #fff;
    border-radius: 0px;
}

.btn:hover, .gform_button:hover {
    color: unset;
}

.gsection_title {
    margin-bottom: 0px !important;
    font-size: 22px !important;
    margin-top: 10px !important;
}

.btn-reverse {
    color: #fff;
    border: 1px solid #fff;
    background-color: transparent;
}

.btn-reverse:hover {
    background-color: var(--dark-green-color);

}

.section-padded {
    padding-top: calc(4 * var(--spacing-unit));
    padding-bottom: calc(4 * var(--spacing-unit));
}

.section-padded-lg {
    padding-top: calc(6 * var(--spacing-unit));
    padding-bottom: calc(6 * var(--spacing-unit));
}

.block-padding {
    padding: calc(4 * var(--spacing-unit));
}

.side-padding {
    padding-left: calc(4 * var(--spacing-unit));
    padding-right: calc(4 * var(--spacing-unit));
}

/* Background Colors
----------------------------------- */

.teal-background        { background: var(--primary-color); }
.light-green-background { background: var(--light-green-color); }
.dark-green-background  { background: var(--dark-green-color); }
.tan-background         { background: var(--tan-color); }
.grey-background        { background: var(--grey-color); }

.white-text,
.white-text h1,
.white-text h2,
.white-text h3,
.white-text h4,
.white-text h5,
.white-text h6,
.white-text p,
.white-text a,
.white-text li {
    color: #fff;
}

/* Rounded Corners (Utility Classes)
----------------------------------- */

.rounded-corners { border-radius: 20px; }
.rounded-corners-top { border-radius: 20px 20px 0px 0px; }
.rounded-corners-bottom { border-radius: 20px 20px 0px 0px; }

/* Logo Accent
----------------------------------- */

.logo-accent {
  &.green { svg { path { fill: var(--primary-color) !important; }}}
  &.light-green { svg { path { fill: var(--light-green-color) !important; }}}
  &.white { svg { path { fill: var(--white-color) !important; }}}

  svg {
    width: 100%;
    height: auto;
    display: block;
  }
}

[type=button], [type=reset], [type=submit], button {
    -webkit-appearance: none !important;
}

/* Anchors
----------------------------------- */

.anchor {
    position: relative;
}

.anchor a {
    position: absolute;
    left: 0px;
    top: -240px;
}

.anchor-initial a {
    top: -573px;
}

/* 
===========================================================
Header
===========================================================
*/

#header {
  padding: 0px;
  background-color: transparent !important;
  z-index: 999;
  border-bottom: none;
  transition: background-color 0.5s ease-in-out, border-bottom 0.5s ease-in-out;

  &.active {
    background-color: #fff !important;
    border-bottom: 1px solid var(--grey-color);

    .navbar-brand {
      .logo-primary { opacity: 0; }
      .logo-secondary { opacity: 1; }
    }
  }

  .navbar-brand {
    position: relative;
    margin: 15px;

    .logo-primary,
    .logo-secondary {
      width: 125px;
      height: auto;
      transition: opacity 0.5s ease-in-out;
      opacity: 0;
    }

    .logo-primary {
      opacity: 1;
      position: absolute;
      top: 0;
      left: 0;
    }
  }
}

.headernavswrap {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.headerWrap {
  margin: 0;
}

.navbar-brand {
  padding: 0px;
}

.navbar-brand img {
  height: 120px;
}

/* Nav
----------------------------------- */

.navbar-nav .nav-link {
  color: var(--white-color) !important;
  font-family: 'Mulish', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  font-style: italic;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--black-color) !important;
}

#header.active .navbar-nav .nav-link {
    color: var(--dark-green-color) !important;
}

#header.active .navbar-nav .nav-link:hover,
#header.active .navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

ul#menu-main-nav li {
    margin-bottom: unset;
    font-weight: 400;
}

ul#menu-main-nav ul {
    display: none;
    float: left;
    position: absolute;
    z-index: 99999;
    text-align: left;
    font-size: 14px;
    border: none;
    border-radius: 15px;
    box-shadow: 0px 10px 15px -3px rgba(0,0,0,0.25);
    overflow: hidden;
    list-style: none;
    margin: 0px;
    padding: 0;
    width: auto;
    min-width: 180px;
}

ul#menu-main-nav ul li {
    padding: 0px;
    margin: 0px;
    white-space: nowrap;
}

ul#menu-main-nav ul li:last-of-type {
    border-bottom: none;
}

ul#menu-main-nav li:hover > ul {
    display: block;
}

.dropdown-menu ul {
    right: -179px;
    top: -1px;
}

.dropdown-item {
  padding: 15px 25px;
  font-size: 16px;
}

.dropdown-item:hover, .dropdown-item:active, .dropdown-item.active {
    background: var(--primary-color) !important;
    color: #fff;
}

/* Search
----------------------------------- */

#searchPopUpWrap {
    display: none;
    position: absolute;
    bottom: 0px;
    background-color: #E02826!important;
    padding: 18px;
    height: 100%;
    color: #fff;
    width: 100%;
    right: -50px;
}

#searchPopUpInnerWrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.searchFormWrap .form-control {
    background: transparent;
    border: none;
    border-bottom: 1px solid #fff;
    border-radius: 0;
    min-width: 320px;
}

.search-form ::placeholder {
    color: #fff;
}

.searchButton {
    color: #fff;
}

.search_container {
    padding: 8px 0px 0px 15px;
    position: absolute;
    right: 15px;
    top: 0;
    z-index: 1300;
    width: 0px;
}

.searchbox {
    position:relative;
    min-width:50px;
    width:0%;
    height:40px;
    float:right;
    overflow:hidden;
    -webkit-transition: width 0.3s;
    -moz-transition: width 0.3s;
    -ms-transition: width 0.3s;
    -o-transition: width 0.3s;
    transition: width 0.3s;
    z-index: 1;
}

.searchbox-input {
    top:0;
    right:0;
    border:0;
    outline:0;
    background:transparent;
    width:100%;
    height: 40px;
    margin:0;
    padding:0px 50px 0px 0px;
    font-size:14px;
    color: #fff;
}

.searchbox-open {
    border-bottom: 1px solid #0E406A;
}

.searchbox-input::-webkit-input-placeholder,
.searchbox-input:-moz-placeholder,
.searchbox-input::-moz-placeholder,
.searchbox-input:-ms-input-placeholder,
.searchbox-input::placeholder {
    color: #fff;
}

.searchbox-icon,
.searchbox-submit {
    width:40px;
    height:40px;
    display:block;
    position:absolute;
    top: 2px;
    font-family:verdana;
    font-size:20px;
    right:0;
    padding:0;
    margin:0;
    border:0;
    outline:0;
    text-align:center;
    cursor:pointer;
    color: var(--primary-color);
    background: transparent;
}

.searchbox-open .searchbox-submit {
    z-index: 1;
}

#searchCloseWrap img {
    max-width: 18px;
}

#searchCloseWrap {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    right: 35px;
    top: 0px;
    margin-right: 0px;
    opacity: 0;
}

.searchbox-open {
    width:100%;
}

.search-results .cat-links,
.search-results .post-edit-link {
    display: none;
}

.search-results article {
    border-bottom: 1px solid #0B99D6;
    padding-bottom: 30px;
    margin-bottom: 30px;
}

/* 
===========================================================
Footer
===========================================================
*/

#footer {
  background: var(--dark-grey-color);
  color: #fff;
  padding-top: 40px;
  padding-bottom: 20px;

  .footer-menu {
    .nav-link {
      line-height: 1;
      color: var(--white-color) !important;

      &:hover {
        color: var(--primary-color) !important;
      }
    }
  }

  .social-icons {
    i {
      font-size: 22px;
      padding-left: 5px;
      padding-top: 15px;
    }
  }

  .copyright {
    text-align: center;
    font-size: 12px;
    padding-top: 30px;
  }
}

/* 
===========================================================
Homepage
===========================================================
*/

/* Homepage Slider
----------------------------------- */
.slide {
    min-height: 35vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;

  .container {
    position: relative;
    z-index: 3;
    padding: 50px;
    background-color: var(--light-green-color);
    box-shadow: 0px 10px 15px -3px rgba(0,0,0,0.25);
    border-radius: 25px;
    margin: 150px auto 100px auto;

    .overlay-text {
      .slide-heading {
        color: var(--black-color);
        font-size: 48px;
        margin-top: 20px;
        margin-bottom: 10px;
      }

      .slide-text {
        color: var(--black-color);
        font-size: 20px;
        font-weight: 500;
        width: 100%;
        max-width: 800px;
        margin: 25px auto;
      }

      img {
        width: 250px;
      }
    }
  }

  .overlay {
    z-index: 2;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    opacity: 0.85;
  }

  .image {
    z-index: 1;
    position: absolute;
    inset: 0;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center center;
    }
  }
}

/* Homepage Products
----------------------------------- */

.product-section {
  position: relative;
  padding: 100px 0;

  .logo-accent {
    position: absolute;
    width: auto;
    height: calc(100% - 200px);
    top: 100px;
    left: -50px;
    opacity: 0.5;
    z-index: 1;

    svg {
      height: 100%;
      width: auto;
    }
  }

  .container {
    position: relative;
    z-index: 2;
  }

  .products {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 25px;
    position: relative;
    z-index: 2;

    @media (min-width: 600px) { grid-template-columns: repeat(2, 1fr); }
    @media (min-width: 800px) { grid-template-columns: repeat(3, 1fr); }
    @media (min-width: 1000px) { grid-template-columns: repeat(4, 1fr); }
    @media (min-width: 1200px) { grid-template-columns: repeat(5, 1fr); }

    .product {
      &:hover {
        p {
          color: var(--primary-color);
        }

        .piclink {
          &.grow img {
            transform: scale(1.1);
            -webkit-transform: scale(1.1);
            -moz-transform: scale(1.1);
            -o-transform: scale(1.1);
            -ms-transform: scale(1.1);
          }
        }
      }

      .product-name {
        text-align: center;
        margin: 15px 0;
        font-size: 22px;
        font-weight: 900;
        font-style: italic;
        text-transform: uppercase;
        padding: 0 25px;
        background-color: var(--white-color);
        border-radius: 10px;
        padding: 15px 10px;
      }

      .piclink {
        float: none;
        height: auto;
        margin: 0px auto -1px;
        overflow: hidden;
        position: relative;
        cursor: pointer;
        z-index: 1;
        margin-bottom: 15px;
        border-radius: 20px;

        &.grow img {
          height: auto;
          width: 100%;
          -webkit-transition: all 0.5s ease-in-out;
          -moz-transition: all 0.5s ease-in-out;
          -o-transition: all 0.5s ease-in-out;
          -ms-transition: all 0.5s ease-in-out;
          transition: all 0.5s ease-in-out;
          z-index: 0;
          aspect-ratio: 1;
        }
      }
    }
  }
}

/* Background Image Block
----------------------------------- */

#background-image-block {
  color: #fff;
}

/* 
===========================================================
Site Styles
===========================================================
*/

/* Video Pop-Up
----------------------------------- */

#VideoPopUpWrap {
    position: absolute;
    z-index: 1021;
    display: none;
    bottom: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#VideoPopUpWrap .contentWrap {
    width: 100%;
    height: 100%;
}

.videoWrap {
    width: 87%;
    height: auto;
    display: block;
    margin-left: -43.5%;
    left: 50%;
    top: 60px;
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 25px;
    height: 0;
}

#VideoPopUpWrap iframe {
    position: absolute;
    z-index: 2;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.videoPopUpCloseButton {
    font-size: 36px;
    position: absolute;
    top: 10px;
    right: 60px;
    cursor: pointer;
    z-index: 20;
    color: #fff;
}

#VideoPopUpWrap .transparentBckgrnd {
    background-color: #000;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    opacity: .8;
}

/* Resources
----------------------------------- */

.resource-item {
    background: #666;
    margin-bottom: calc(2 * var(--spacing-unit));
}

.resource-item .copy {
    padding: 30px 45px 15px 45px;
    position: relative;
}

.resource-item h3 {
    margin: 0px;
    padding: 0px;
    line-height: 1;
}

.resource-item h3 a {
    color: #fff;
}

.resource-item h3 a:hover {
    color: #0a58ca;
}

.resource-item .date {
    color: #eee;
    font-weight: 600;
    font-size: 14px;
    padding: 5px 0px 15px;
}

.resource-item .copy p {
    color: #fff;
    font-size: 14px;
}

.pagination {
    justify-content: center;
}

/* Subpage Hero
----------------------------------- */

.subpage-hero {
  position: relative;
  min-height: 25vh;
  display: flex;
  align-items: center;
  border-radius: 0 0 35px 35px;
  padding: 200px 0 100px 0;
  overflow: hidden;

  &.no-image {
    background-color: var(--dark-grey-color);

    .container {
      .title,
      .content {
        color: var(--white-color);
      }
    }
  }

  &.product-page {
    min-height: 35vh;

    .overlay {
      background-color: var(--primary-color);
      opacity: 0.85;
    }
  }

  .overlay {
    z-index: 2;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    opacity: 0.85;
  }

  .image {
    z-index: 1;
    position: absolute;
    inset: 0;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center center;

      &.top     { object-position: center top; }
      &.center  { object-position: center center; }
      &.bottom  { object-position: center bottom; }
    }
  }

  .container {
    position: relative;
    z-index: 3;
    padding: 50px;
    background-color: var(--light-green-color);
    box-shadow: 0px 10px 15px -3px rgba(0,0,0,0.25);
    border-radius: 25px;

    .content-wrapper {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;

      .inner-wrapper {
        max-width: 850px;

        .title,
        .content {
          color: var(--black-color);
          text-align: center;
        }

        .title {
          margin-top: 0;

          &.no-content {
            margin-bottom: 0;
          }
        }

        .content {
          font-size: 20px;
          font-weight: 500;

          p {
            font-size: 20px;
            font-weight: 500;
          }

          >:first-child { margin-top: 0; }
          >:last-child { margin-bottom: 0; }
        }
      }
    }
  }
}

/* Accordion
----------------------------------- */

.accordion-header > span {
    position: absolute;
    top: -80px;
}

.accordion-item {
    border: none;
    background: transparent;
}

.accordion-header {
    padding: 40px 0px;
}

.accordion-item + .accordion-item .accordion-header {
    border-top:  1px solid var(--primary-color);
}

.accordion-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 0px !important;
    font-size: 16px;
    color: var(--primary-color) !important;
    text-decoration:  none !important;
    background-color: unset !important;
    box-shadow: none !important;
}

.accordion-button:after {
    display: none !important;
}

.accordion-button span {
    font-size: 26px;
    padding-left: 15px;
    padding-right: 10px;
    line-height: 0;
    font-weight: 100;
    margin-top: -3px;
}

.accordion-header .minus {
    font-size: 30px;
}

.accordion-button:hover, .accordion-button[aria-expanded="true"] {
    color: var(--dark-green-color) !important;
}

.accordion-body {
    padding: 15px 30px 15px 0px;
}
.accordion-body:has(.color-container) {
    padding-right: 0px;
}

/* 
===========================================================
Product Page
===========================================================
*/

.product-tabs .nav-link {
    color: var(--primary-color);
    border: none !important;
    border-radius: 10px 10px 0 0;
    padding: 1rem 1.25rem;
    font-family: 'Mulish', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-style: italic;
}

.product-tabs .nav-link:hover,
.product-tabs .nav-link.active {
  color: var(--white-color);
}

.product-tabs .nav-link:hover {
  background-color: var(--light-green-color);
  color: var(--black-color);
}

.product-tabs .nav-link.active {
  background-color: var(--primary-color);

  &:hover {
    color: var(--white-color);
  }
}

.product-info .accordion-body p strong {
    color: var(--primary-color);
}

.product-info.active {
    display: block;
}

.part-number {
    margin-bottom: 15px;
}

.color-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 15px;
}

.color {
    justify-content: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
    text-align: center;
}

.turf-color-container {
    --size: 100px;
    width: var(--size);
    height: var(--size);
    margin-bottom: 3px;
    border: 0.5px solid var(--dark-green-color);
    border-radius: 20px;
    overflow: hidden;
}

.turf-color {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    scale: 130%;
}

.turf-application {
    display: flex;
    align-items: center;
    text-align: center;
    flex-direction: column;
    width: 140px;
    margin-right: 15px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.turf-application span {
    border-radius: 100%;
    border: 1px solid var(--dark-green-color);
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    margin-bottom: 8px;
}

.turf-application i {
    color: var(--dark-green-color);
    font-size: 32px;
}

.turf-application i.fa-house,
.turf-application i.fa-sun {
    font-size: 25px;
}


#swipebox-overlay {
    background-color: #fff;
}

:root {
    --swipebox-bar-height: 50px;
}

#swipebox-top-bar, #swipebox-bottom-bar {
    display: block !important;
    height: var(--swipebox-bar-height) !important;
}

#swipebox-slider .slide img {
    height: calc(100% - var(--swipebox-bar-height) * 2) !important;
    object-fit: contain !important;
}

#swipebox-slider .slide {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.turf-gallery-trigger {
    cursor: pointer;
    transition: filter 0.2s ease-in-out;
    &:hover {
        filter: brightness(0.8);
    }
}

/* 
===========================================================
Mobile Styles
===========================================================
*/


@media (max-width: 767px) {

    .navbar-toggler {s
        border: none !important;
        box-shadow: none !important;
    }

    .slideimg {
        height: 300px;
    }

    .navbar-brand img {
        height: 55px;
    }

    ul#menu-main-nav ul {
        position: static !important;
    }

    ul#menu-main-nav li:hover > ul {
        display: unset !important;
    }

    .dropdown-menu {
        background-color: unset;
        border: none;
    }

    .dropdown-menu a {
        padding: 5px 15px;
    }

    .section-padded, .section-padded-lg {
        padding-top: calc(2 * var(--spacing-unit));
        padding-bottom: calc(2 * var(--spacing-unit));
    }

    .block-padding {
        padding: calc(2 * var(--spacing-unit));
    }

}

@media (max-width: 575px) {

    div#PrivPolPopUpWrap p, div#PrivPolPopUpWrap a {
        font-size: 14px;
    }

    footer .navbar-brand {
        display: flex;
        justify-content: center;
        margin: auto;
    }

    .slideimg, #header-image {
        background-attachment: unset !important;
    }
}

/* 
===========================================================
Under Construction
===========================================================
*/

.under-construction {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #211f1f;
  padding: 15px;

  h1, h2, h3, h4, h5, h6, p, ul, ol {
    color: #ffffff;
    text-align: center;
  }

  a {
    background-color: transparent !important;
    border: none !important;
  }
}