/*
 Theme Name:     Hydrovane Divi Child
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Hydrovane Divi Child Theme
 Author:         Eggbeater Studio
 Author URI:     https://eggbeater.ca/
 Template:       Divi
 Version:        1.0.0
*/
 
 
/* =Theme customization starts here
------------------------------------------------------- */

:root {
  --color-beige: #FAF7F0; /* FBF8EF */
  --color-beige-dark: #F6F4E7; /*f3f1e8  #F4F1E8;*/
  --color-blue: #00435a;
  --color-red: #C42D26;
  --color-red-dark: #ad1f1d;
}

body { 
  background-color: var(--color-beige);
}

.fancybox-overlay {
  z-index: 999999 !important;
}

.button {
  display: inline-block;
  line-height: 40px;
  width: 195px;
  margin: 0;
  text-transform: capitalize;
  background-color: var(--color-red);
  border: solid 2px var(--color-red);
  color: white;
  font-style: italic;
  text-align: center;
  transition: linear all 0.3s;
  touch-action: manipulation;
  text-decoration: none;

  &:hover {
    background-color: var(--color-red-dark);
    border-color: var(--color-red-dark);
    color: white;
  }
}

.button.red {

  background-color: var(--color-red);
  border-color: var(--color-red);

  &:hover {
    background-color: var(--color-red-dark);
    border-color: var(--color-red-dark);
  }
}

.text-center {
  text-align: center;
}
.mb-0 {
  margin-bottom: 0 !important;
}

.multilingual-menu {

  display: flex;
  justify-content: center;
  gap: 5px;
  margin: 0 0 28px 0;
  
  .lang-en {
    background: url('/wp-content/uploads/2025/02/flag-can.png');
  }
  .lang-fr {
    background: url('/wp-content/uploads/2025/02/flag-fr.png');
  }
  .lang-en,
  .lang-fr {
  
    text-decoration: none;
    outline: none;
    display: inline-block;
    margin: 0 3px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #FFF;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    background-repeat: no-repeat;
    background-color: transparent;
    background-size: 35px auto;
    background-position: center;
    -webkit-transition: all 600ms ease;
    -o-transition: all 600ms ease;
    transition: all 600ms ease;
    -webkit-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
    opacity: 1;
  
  }
  
  .lang-en:active,
  .lang-en:hover,
  .lang-fr:active,
  .lang-fr:hover {
    text-decoration: none;
    outline: none;
    -webkit-transform: scale(1.1);
    -o-transform: scale(1.1);
    transform: scale(1.1);
    opacity: .9;
  }



}

.request-quote {

  display: none;
  @media (min-width: 980px) {
    display: inline-block;
  }

  position: fixed;
  left: -68px;
  top: 50%;
  color: #FFFFFF;
  border: 0px;
  border-radius: 0px;
  font-size: 16px;
  font-weight: 600;
  background-color: #C42D26;
  padding: 4px 30px;
  transform: rotateX(0deg) rotateY(0deg) rotateZ(270deg);
  transition: all 0.3s ease-in-out;

  &:hover { 
    background-color: #ad1f1d;
  }

}

section.faqs,
section.stories,
section.galleries,
section.galleries-detail {



  .page-header {
    padding-top: 80px;
    padding-bottom: 60px;
    color: var(--color-blue);

    hr { 
      width: 100px;
      @media screen and (min-width: 768px) {
        width: 275px;
      }
      border: 0;
      height: 1px;
      background-color: var(--color-blue);
      margin-bottom: 20px;
    }
  }

  h1 {

    font-family: 'Raleway', Helvetica, Arial, Lucida, sans-serif;
    text-transform: uppercase;

    color: var(--color-blue) !important;
    text-align: center;
    margin-bottom: 15px;
  
    font-size: 32px;
    @media screen and (min-width: 768px) {
      font-size: 46px;      
    } 
  }  

  h2 { 
    font-size: 30px;
    @media screen and (min-width: 768px) {
      font-size: 35px;      
    } 
  }


  
}


section.faqs {

  background-color: var(--color-beige);
  padding: 0 0 50px 0;

  .filters-container {
    display: flex;
    justify-content: center;
  }
  .filters {
    display: inline-grid;
    grid-template-columns: 1fr;
    @media (min-width: 768px) {
      grid-template-columns: 1fr 1fr;
    }
    @media (min-width: 980px) {
      grid-template-columns: 1fr 1fr 1fr 1fr;
    }
    justify-content: center;

    .button {
      margin: 0 10px 20px;
    }
  }



  h1 {
    font-family: 'Raleway', Helvetica, Arial, Lucida, sans-serif;
    
    color: var(--color-blue) !important;
    text-align: center;

    /* font-size: 46px; */

  }

  h2 {
    text-align: center;
    text-transform: none;
    /* font-size: 30px; */
    margin-bottom: 60px;
    padding-top: 80px;
  }

  hr.below-buttons {
    margin: 40px auto 20px auto;
  }

  .separator {
    display: block;
    margin: 0 auto 28px auto;
  }



  .stars-separator {
    display: flex;
    margin: 20px auto;
  }
  

}


section.stories {


  background-color: var(--color-beige);
  padding: 0 0 50px 0;







  .separator {
    display: block;
    margin: 0 auto 28px auto;
  }

  .search {

    display: flex;
    justify-content: center;
    margin: 0 auto 20px auto;

    width: 600px;

    input {
      padding: 10px;
      border: 0;
      border-top: 1px solid #ccc;
      border-bottom: 1px solid #ccc;
      border-left: 1px solid #ccc;
      font-size: 16px;
      flex-grow: 1;
    }

    button {
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      background-color: var(--color-red);
      border-top: 1px solid var(--color-red);
      border-right: 1px solid var(--color-red);
      border-bottom: 1px solid var(--color-red);
      color: white;
      border: 0;
      padding: 0 15px;
      font-weight: 600;
      appearance: none;
      cursor: pointer;
      transition: all 0.3s ease-in-out;

      &:hover { 
        background-color: var(--color-red-dark);
      }      
    }

  }

  .pages {
    display: flex;
    justify-content: end;
    margin-bottom: 8px;
    font-style: italic;
  }

  .pages-wrap {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 10px;

    .page-numbers {
      display: block;
      padding: 5px 10px;
      
      &.current {
        background-color: var(--color-blue);
        color: white;
      }
    }
  }
  

}




ul.accordion { 
    
    
  display: flex;
  flex-direction: column;
  gap: 20px;

  > li {
    background: var(--color-beige-dark);
  }



  .title { 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;

    transition: all 0.3s ease-in-out;
    color: var(--color-blue);

    h3 { 
      padding: 0; 
      margin: 0; 
      transition: all 0.3s ease-in-out;
      text-transform: uppercase;
      color: var(--color-blue);
      font-weight: 600;
      margin-bottom: 10px;

      @media (max-width: 768px) {
        font-size: 16px;
      }

    }

    .stories-excerpt p {
      line-height: 1.5;
    }

    .numslash {
      display: flex;
      align-items: center;
      gap: 10px;
      h3 {
        margin: 0 0 3px 0;
      }
    }


    .quote {
      h3 {
        display: flex; 
        align-items: center;
        gap: 20px;
      }
      .fa-quote-left {
        font-size: 40px;
        opacity: 0.2;
      }
      &:hover .fa-quote-left {
        color: white;
      }
  
    }

    .toggle::after {
      font-family: "Font Awesome 6 Free";
      content: "\f078";
      font-weight: 900;
      font-size: 18px;
      border: 1px solid var(--color-blue);
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      width: 30px;
      height: 30px;
      transition: all 0.3s ease-in-out;
    }
    
  }
  .title:hover { 
    background: var(--color-blue); 
    color: white;
    h3 { color: white; }
    .toggle::after {
      border-color: white;
    }
  }
  
  li.active .title {
    background: var(--color-blue); 
    color: white;
    h3 { color: white; }
    .toggle::after {
      border-color: white;
      transform: rotate(180deg);
    }

  }

  .content {
    display: none;
    
    .padded {
      padding: 20px;
    }

    ul { 
      list-style: disc; 
      margin-left: 20px;
    }
    ol {
      list-style: decimal;
      margin-left: 20px;
    }
    .slick-slider {
      margin-bottom: 0;
    }
    .quotes {
      background: url('/wp-content/uploads/2024/06/HOMEPAGE-true-stories-background-scaled.jpg');
      background-size: cover;
      color: white;
      text-align: center;
      padding: 5vw;
      padding-bottom: 90px;

      
      .slick-dots {
        bottom: 40px; left: 0; right: 0; margin: 0 auto;
      }
      .slick-dots li {
        margin: 0 2px;
      }
      .slick-dots li button:before {
        color: var(--color-red);
        opacity: 0.75;
        font-size: 8px;
      }
      .slick-dots li.slick-active button:before {
        color: var(--color-red);
        opacity: 1;
      }

      .slick-prev {
        left: 30px;
        transition: all 0.3s ease-in-out;

      }
      .slick-next {
        right: 30px;
        transition: all 0.3s ease-in-out;
      }
      .slick-next:hover {
        right: 24px;
      }
      .slick-prev:hover {
        left: 24px;
      }

      @media (max-width: 980px) {
        .slick-prev, .slick-next {
          display: none !important;
        }
      }

      .slick-next:before, .slick-prev:before {
        color: var(--color-red);
        font-size: 30px;
        content: "\f104"; /* Font Awesome chevron-left */
        font-family: "Font Awesome 6 Free"; 
        font-weight: 900; 
        opacity: 1;
      }


      .slick-next:before {
        content: "\f105"; /* Font Awesome chevron-right */       
      }

    }

  }
  
  .slick-slide {
    width: 100%;
  }

  blockquote {
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-style: italic;
    background: #DDD8CA;
    color: var(--color-blue);
    border: 0;
    padding: 25px;
    margin: 20px 0;

    p:last-child {
      font-style: normal;
    }
  }


}


section.featured-image {


  /* mimics .et_pb_section */

  background-color: var(--color-beige);
  background-size: cover;

  padding-top: 150px;
  padding-bottom: 150px;

  /*
  margin-right: 20px;
  margin-left: 20px;
  */

  @media (min-width: 768px) {
    padding-top: 250px;
    padding-bottom: 250px;

    /*
    margin-right: 60px;
    margin-left: 60px;
    */
  }

}


.template-flexible {

  background: var(--color-beige);
  padding-bottom: 50px;



  h1 {
    font-family: 'Raleway', Helvetica, Arial, Lucida, sans-serif;
    text-transform: uppercase;
    font-size: 46px;
    color: #00435A;
    text-align: center;
    margin: 0 0 10px 0;
  }

  h2 {
    font-family: 'Raleway', Helvetica, Arial, Lucida, sans-serif;
    text-transform: uppercase;
    font-size: 35px;
    color: #00435A;
    text-align: center;    
    margin-bottom: 20px;
  }

  h3 {
    font-family: 'Raleway', Helvetica, Arial, Lucida, sans-serif;
    font-size: 26px;
    color: #00435A;
    text-align: center;
  }

  hr { 
    width: 100px;
    @media screen and (min-width: 768px) {
      width: 275px;
    }
    border: 0;
    height: 1px;
    background-color: var(--color-blue);
    margin: 20px auto;
  }

  section.content {
    
    margin: 60px 0;


  }

  section.accordion {

    margin: 60px 0;

    h2 {
      color: #333;
      text-transform: none;
      margin-top: 80px;
      margin-bottom: 60px;
      padding-bottom: 0;
    }

    h3 {
      font-size: 22px;
    }

  }



} /* .template-flexible */


section.galleries form.search,
  section.galleries-detail form.search {
  display: flex;
  justify-content: center;
  margin: 30px auto 30px auto;

  input {
    padding: 10px;
    background-color: white;
    border: 0;
    flex-grow: 1;
    max-width: 400px;
    font-size: 16px;
    border: 1px solid #d8deda;
  }
  button {
    background: var(--color-red);
    color: white;
    border: 0;
    width: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
  }
}

section.galleries {
  background-color: var(--color-beige);
  padding: 0 0 50px 0;


  form.search {
    margin-top: 0;
    margin-bottom: 60px;
  }

  .galleries-wrap:nth-child(odd) {
    background-color: var(--color-beige-dark);
  }

  .galleries-wrap {

    padding: 60px 0;
    
    box-sizing: border-box;
    
    h2 {
      margin-bottom: 30px;
    }

    .row {
      margin-top: 100px;
      display: grid;
      justify-content: center;
      gap: 40px;
      row-gap: 100px;

      grid-template-columns: 1fr;
      @media (min-width: 576px) {
        grid-template-columns: repeat(2, 1fr);
      }
      @media (min-width: 992px) {
        grid-template-columns: repeat(4, 1fr);
      }
  
      .gallery {

        position: relative;

        &:hover {
          .images {
            margin-left: -4px;
            margin-right: -4px;
            margin-top: -8px;
          }
          .images .back {
            .overlay { 
              opacity: 0; 
            }
            
          }
          .images .front {
            /*border-color: var(--color-blue);*/
          }
        }

        .images {
          position: relative;
          display: flex;
          justify-content: center;
          align-items: center;
          transition: all 0.3s ease-in-out;

          .back { 
            position: relative;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            width: 100%;
            aspect-ratio: 200/130;
            display: flex;
            border: 4px solid white;
            /*box-shadow: 0 0 20px #aaa;*/
            transition: all 0.3s ease-in-out;

            div.overlay {
              transition: all 0.3s ease-in-out;
              background: black;
              opacity: 0.2;
              position: absolute;
              top: 0;
              left: 0;
              width: 100%;
              height: 100%;
            }

          }
  
          .front {
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            width: 65%;
            aspect-ratio: 135 / 200;
            display: flex;
            border: 4px solid white;
            position: absolute;
            /*box-shadow: 0 0 20px #aaa;*/
            transition: all 0.3s ease-in-out;
          }
  
        }
  
        .text {
          margin-top: 25%;
          h3 {
            font-size: 100%;
            color: var(--color-blue);
          }
          .link { 
            font-style: italic;
            color: var(--color-blue);
            font-weight: 300;
            text-decoration: underline;
            font-size: 90%;
          }
        }
  
      }


    }
    
  }

}

section.galleries-detail {

  background-color: var(--color-beige);
  padding: 0 0 50px 0;

  .page-header {
    padding-bottom: 10px;
  }

  .row {
    display: flex;
    flex-direction: column;
    gap: 20px;

    @media (min-width: 768px) {
      flex-direction: row;
      /*gap: 40px;*/
    }

    aside {
      
      padding-top: 50px;

      @media (min-width: 768px) {
        width: 25%;
      }

      nav {
        display: flex; 
        flex-wrap: wrap;
        margin-bottom: 30px;
        gap: 10px;

        h2 { width: 100%; text-transform: uppercase; font-size: 100%; font-weight: 600; }

        @media (min-width: 768px) {
          flex-direction: column;
          gap: 0;
        }

        a { 
          color: var(--color-blue)
        }
        a.active {
          color: var(--color-red);
        }
      }
      
    }
    main {

      flex-grow: 1;


      #ajax-wrapper.active {
        opacity: .5;
      }


      .pagination-counter {
        display: flex;
        justify-content: end;
        margin-bottom: 10px;
      }

      .grid-wrap {

        display: grid;
        gap: 15px;

        grid-template-columns: 1fr 1fr;

        @media (min-width: 768px) {
          grid-template-columns: 1fr 1fr 1fr;
        }

        > a {
          position: relative;
          display: flex;
          background-size: cover;
          background-position: center;
          background-repeat: no-repeat;
          aspect-ratio: 1;

          .hover { 
            opacity: 0;
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            font-size: 32px;
            color: white;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: all 0.3s ease-in-out;
          }

          &:hover .hover {
            opacity: 1;
          }

          h5 {
            position: absolute;
            bottom: 0;
            left: 0;
            color: white;
            background: rgba(0,0,0,0.7);
            padding: 10px;
            width: 100%;
          }

        }

        @media (min-width: 768px) {
          
          > a:nth-child(2) {
            grid-column: span 2;
            aspect-ratio: unset;
          }
          > a:nth-child(3) {
            grid-column: span 2;
            grid-row: span 2;
          }
          > a:nth-child(6) {
            grid-column: span 2;
            aspect-ratio: unset;
          }

        }



      }

      .pagination {
        margin: 40px 0;
        display: flex;
        gap: 10px;

        a, span {
          display: block;
          padding: 5px 10px;
          color: var(--color-blue);
          text-decoration: none;
          transition: all 0.3s ease-in-out;
        }

        a:hover {
          color: white;
          background-color: var(--color-blue);
        }

        .current {
          background: var(--color-red);
          color: white;
        }

      }
    }
  }

}