/* == main-color #0B2445 */

body, html {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-size: 18px;
  color: #595959;
  scroll-behavior: smooth;
}

svg {
  overflow: visible;
}

.maincontent {
  max-width: 100%;
  padding: 0;
  margin: 0;
}

.maincontent_wrapper {
  padding-top: 0;
}

h1 {
  font-size: 60px;
}

h1, h2, h3, h4, h5 {
  margin: 0;
  padding: 0;
}

p {
  font-family: 'Marcellus', serif;
}

.title {
  color: #434E6E;
}

.subtitle {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 200;
  color:  #0B2445;
}

.text-highlight {
  color:  #0B2445;
}

.thin {
  font-weight: 200;
}

.thick {
  font-weight: 700;
}

img {
  width: 100%;
}

.cta {
  color: #fff;
  display: inline-block;
  border: 1px solid #fff;
  text-decoration: none;
  background-color: rgba(227, 204, 161, .5);
  padding: 15px 36px;
  font-family: 'Marcellus SC', serif;
}

.product-link {
  color: #fff;
  display: inline-block;
  border: 1px solid #fff;
  text-decoration: none;
  background-color:  #0B2445;
  padding: 15px 36px;
  font-family: 'Marcellus SC', serif;
}

.divider {
  height: 1px;
  background: #000;
  margin: 75px auto 100px;
  position: relative;
  max-width: 50%;
  background: -webkit-linear-gradient(left, rgb(255, 255, 255) 0%, rgb(50, 50, 50) 50%, rgb(255, 255, 255) 100%);
}

.divider2 {
  height: 1px;
  background: #000;
  margin: 75px auto 100px;
  position: relative;
  max-width: 50%;
  background: -webkit-linear-gradient(left, rgb(255, 255, 255) 0%, rgb(50, 50, 50) 50%, rgb(255, 255, 255) 100%);
}

.divider.light:before {
  position: absolute;
  background: linear-gradient(to right, rgba(100, 100, 100, 0), rgba(100, 100, 100, 1) 50%);
  margin-top: 2px;
  left: 25%;
  width: 25%;
  height: .5px;
  content: "";
}

.divider.light:after {
  position: absolute;
  top: 0;
  right: 25%;
  background: linear-gradient(to left, rgba(100, 100, 100, 0), rgba(100, 100, 100, 1) 50%);
  margin-top: 2px;
  width: 25%;
  height: .5px;
  content: "";
}

.mydivider {
  overflow: visible;
  text-align: center;
  position: relative;
  text-transform: uppercase;
}

.mydivider h1 {
  color: #808080;
  font-family: 'Italiana', serif;
  letter-spacing: .1em;
}

.mydivider h2 {
  color: #808080;
  font-family: 'Italiana', serif;
  letter-spacing: .1em;
  font-size: 2.5rem;
}

.mydivider h3 {
  color:  #0B2445;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 100;
  margin-top: 1.5%;
  font-size: 1.9rem;
}

.hero-img .cta {
  z-index: 5;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 700;
  font-family: 'Cinzel', serif;
}

.hero {
  padding: 0 3%
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(5, 20%);
  grid-template-rows: .25fr .35fr .25fr .35fr .25fr;
  max-width: 1800px;
  margin: 3% auto 0;
}

.hero-img {
  grid-column: 2/6;
  grid-row: 1/4;
  align-self: flex-start;
  position: relative;
}

.hero-img img {
  z-index: 3;
  position: relative;
}

.hero-img::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  height: 50%;
  width: 50%;
  z-index: 1;
  background-color:  #0B2445;
  opacity: .5;
}

.hero-img::after {
  display: inline;
  content: "";
  position: absolute;
  bottom: -100px;
  left: -21%;
  height: 50%;
  width: 30%;
  background-color:  #0B2445;
  opacity: .5;
}

.hero-logo {
  grid-column: 1/2;
  grid-row: 1/2;
  width: clamp(125px, 11vw, 200px);
  justify-self: flex-start;
  align-self: center;
  z-index: 3;
}

.hero-text-box-container {
  grid-column: 1/3;
  grid-row: 2/5;
  width: clamp(300px, 30vw, 450px);
  height: clamp(300px, 40vw, 500px);
  background: url('/imageserver/Reusable/aviva-pools/hero-textbox-bg-min.png'), #fff;
  filter: drop-shadow(-3px 3px 3px rgba(0, 0, 0, 0.4));
  justify-self: center;
  align-self: flex-end;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8% 0 0;
  z-index: 4;
  position: relative;
  margin-bottom: -50px;
  color: #808080;
}

.hero-text-box {
  position: relative;
  height: 100%;
  width: 100%;
  z-index: -1;
  display: inline-block;
}

.hero-text-box h1 {
  font-family: 'Italiana', serif;
}

.hero-text-box h3 {
  color:  #0B2445;
  margin-top: 5%;
  font-weight: 200;
  font-size: 1.7rem;
  font-family: 'Josefin Sans', sans-serif;
}

.hero-text-p {
  grid-column: 2/5;
  grid-row: 4/5;
  align-self: flex-end;
  z-index: 5;
  font-family: 'Marcellus', serif;
  color: #808080;
}

.products {
  background: linear-gradient(to bottom, rgba(255, 255, 255, .7) 0%, rgba(255, 255, 255, .7)100%), url('/imageserver/Reusable/aviva-pools/bg-design-6-min.png');
  background-repeat: no-repeat;
  background-size: 100%, 60%;
  background-position: center, right;
}
.products-container{
  display:flex;
  flex-direction:row;
  justify-content:space-evenly;
  flex-wrap:wrap;
  gap:10px;
  padding:0 5%;
}
.product-item {
  position: relative;
  border:2px solid #000;
  border-radius:5px;
  padding:10px;
  min-height: 400px;
  min-width: 300px;
  max-width: 300px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 75%;
  text-align: center;
  flex-direction: column;
  display: flex;
  justify-content: center;
  align-items: center;
  color:#000;
  margin:10px 0;
  transition:.3s;
}
.product-item-inner{
  border-radius:5px;
  position: absolute;
  width:100%;
  height:100%;
  display:flex;
  flex-direction:column;
  align-items: center;
  justify-content: center;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  transition:.5s;
}
.pool-link{
  width:80%;
}
.viewPool{
  display: none;
}
.product-item:hover > .product-item-inner{
  background-position:-100% 0;
  transition:.5s;
  justify-content: flex-end;
}
.product-item:hover > .product-item-inner#bobLx{
  background-position:-135% 0;
  transition:.5s;
  justify-content: flex-end;
}


.video-section {
  margin-top: 2%;
  position: relative;
}
.video-section a{
  color:#595959;
}
.video-bg-wrapper {
  position: absolute;
  /* width: 100vw; */
  /* height: 90vw; */
}

.video-bg-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(255, 255, 255, 1)0%, rgba(255, 255, 255, .7)50%, rgba(255, 255, 255, 1)100%);
}

.video-bg {
  width:100vw;
}

.video-section-wrapper {
  position: relative;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 5;
  padding: 0 5%;
  text-align: center;
}

.video-section-wrapper h2 {
  color: #808080;
}

.divider-p {
  max-width: 2000px;
  margin: 0 auto;
  padding: 2% 17%;
  font-size: 1.2rem;
  font-family: 'Marcellus', serif;
  color: #595959;
}

.product-designs {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  margin: 0 auto;
}

.box {
  max-width: 350px;
  min-width: 290px;
  text-align: center;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  margin: 10px 0;
  position: relative;
}

.box h2 {
  text-transform: uppercase;
  font-weight: 400;
  font-size: 1.5rem;
}

.icon-box {
  margin-bottom: 20px;
  padding: 3%;
  width: 100%;
  margin: 20px auto;
  transition: .5s;
  position: relative;
  z-index:5;
}

#CHIC {
  max-width: 350px;
}

.overlay {
  position: absolute;
  bottom: -40%;
  left: -5%;
  border: 1px solid #fff;
  color: #808080;
  transform: scaleX(0);
  background: rgb(227, 204, 161);
  padding: 10%;
  width: clamp(300px, 400px, 500px);
  transition: .7s;
  z-index: 30;
}
.overlay p{
  z-index:100;
  position: relative;
}

.icon-box:hover~.overlay {
  transform: scaleX(1);
  transition: all .7s forwards ease-out;
}

/* ================== Animation for icon hover ================ */

.pool-svg {
  stroke-width: 1;
  stroke:  #0B2445;
  stroke-dasharray: 1850;
  stroke-dashoffset: 1850;
  transition: all .5s;
}

.pool-path {
  transition: all .5s;
}

.icon-box:hover .pool-path {
  animation: svg-anim .5s linear forwards;
}

@keyframes svg-anim {
  0% {
      stroke-dashoffset: 1850;
  }
  100% {
      stroke-dashoffset: 0;
  }
}

.spa-divider-container {
  display: grid;
  grid-template-rows: .20fr 1fr .20fr;
  margin: 10% auto 100px;
}

.spa-divider {
  background: url('/imageserver/Reusable/thursday-pools/pic1.jpeg');
  background-repeat: no-repeat;
  background-size: cover;
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
  height: clamp(300px, 40vw, 700px);
  z-index:5;
  grid-row: 1/3;
  grid-column: 1/-1;
}
.spa-section a{
  color:#595959;
}
.spa-divider-grid {
  grid-row: 2/4;
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(1, 100%);
  max-width: 1400px;
  margin: 0 auto 0;
  padding: 0 5%;
  z-index:10;
}

.spa-grid-left {
  background: url('/imageserver/Reusable/aviva-pools/hero-textbox-bg-min.png'), #fff;
  background-repeat: no-repeat;
  background-size: cover;
  text-align: center;
  max-width: 600px;
  position: relative;
  color: #808080;
}

.spa-text-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  padding: 5% 10%;
  height: 100%;
}

.spa-text-box h2 {
  font-family: 'Italiana', serif;
  font-size: 2.2rem;
}

.spa-section {
  padding: 5%;
  margin: 0 auto;
}

.spa-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.spas {
  min-width: 350px;
  position: relative;
  overflow: hidden;
  margin: 20px 0;
}

.spa-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  color: #595959;
  max-width: 350px;
  padding: 10% 5%;
  cursor: pointer;
  transition: all .5s ease-out;
}

.spas::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  background: url('/imageserver/Reusable/aviva-pools/hero-textbox-bg-min.png'), rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 0 10px  #0B2445;
  transform: scale(.2) rotate(45deg);
  visibility: hidden;
  transition: all .5s ease-out;
}

.spa-h2 {
  overflow: hidden;
}

.h2-anim {
  font-family: 'Italiana', serif;
  padding: 6% 0;
  transform: translateY(100%);
  transition: all .5s ease-out;
}

.spa-p {
  overflow: hidden;
}

.p-anim {
  transform: translateY(120%);
  transition: all .5s ease-out;
}

.span-anim {
  display: block;
  color: #4D6D96;
  transform: translateY(100%);
  transition: all .5s ease-out;
}

.spa-span {
  overflow: hidden;
}

.spas:hover .spa-h2 h2 {
  transition: all .5s .5s ease-out;
  transform: translateY(0);
}

.spas:hover .spa-p p {
  transition: all .5s .7s ease-out;
  transform: translateY(0);
}

.spas:hover .showSingle span {
  transition: all .5s 1s ease-out;
  transform: translateY(0);
}

.spas:hover.spas::before {
  transition: all .5s ease-out;
  transform: scale(1);
  visibility: visible;
}

.spa-item {
  background: url('/imageserver/Reusable/aviva-pools/bg-long1.png');
  background-repeat: no-repeat;
  background-position: 0 65%;
  background-size: 100%;
}

.spa-grid {
  display: grid;
  grid-template-columns: repeat(2, 50%);
  gap: 20px;
  margin: 150px 8%;
}

.grid-right {
  align-self: center;
  text-align: center;
  padding: 0 15%;
  background: url('/imageserver/Reusable/aviva-pools/bg-design3-min.png');
  background-size: cover;
  background-repeat: no-repeat;
}

.grid-right h2 {
  font-family: 'Italiana', serif;
}

.spa-details {
  padding: 0 15% 5%;
}

.spa-details img {
  max-width: 300px;
  float: right;
  margin: 0 0 0 1em;
}

.spa-details p {
  max-width: 1000px;
  text-align: center;
  margin: 20px auto;
}

.specs-grid {
  margin: 7% 5% 8%;
  display: grid;
  grid-template-columns: .75fr .5fr .5fr .5fr .5fr;
  align-items: center;
}

.specs-img img {
  max-width: 100px;
}

.item-specs p {
  text-transform: uppercase;
}

.item-specs span {
  font-size: 2.1rem;
  font-family: 'Marcellus SC', serif;
}

/* ================= Media Queries ================ */

@media screen and (max-width:1300px) {
  .divider-p {
      padding: 2% 5%;
  }
}



@media screen and (max-width:1100px) {
  .divider-p {
      padding: 2% 5%;
  }
  .divider {
      height: 1px;
      background: #000;
      margin: 150px auto 100px;
      position: relative;
      max-width: 50%;
      background: -webkit-linear-gradient(left, rgb(255, 255, 255) 0%, rgb(50, 50, 50) 50%, rgb(255, 255, 255) 100%);
  }
  .hero-img {
      grid-column: 1/-1;
  }
  .hero-grid {
      grid-template-rows: auto;
  }
  .hero-text-box-container {
      grid-column: 1/-1;
      grid-row: 3/6;
      width: 90%;
      height: clamp(300px, 400px, 500px);
      padding: 3% 0 0;
  }
  .hero-text-p {
      grid-column: 1/-1;
      grid-row: 5/6;
      text-align: center;
      justify-self: center;
      max-width: 80%;
  }
}

@media screen and (max-width:992px) {

  .spa-grid{
      display:block;
      }
      .spa-specs{
        display:grid;
      }
      .specs-grid{
              margin:5% auto;
              display:block;
             
          }
.spa-grid-right{
      order:1;
      grid-row:1/2;
  }
  .spa-grid-left{
      order:2;
      grid-row:2/3;
      margin:30px 0;
  }
  .spa-divider-grid {
      grid-template-columns:1fr;
      grid-template-rows:1fr 1fr;
  }
 
  .spa-divider-container{
      margin:0 auto 100px;
  }

  
}

@media screen and (max-width:768px) {
  .divider-p {
      padding: 2% 1%;
  }
  body, html {
      font-size: 16px;
  }
  h1 {
      font-size: 42px;
  }
 
  .specs-grid {
      margin: 7% 5% 8%;
      display: block;
      grid-template-columns: .75fr .5fr .5fr .5fr .5fr;
      align-items: center;
  }
}

@media screen and (max-width:650px) {
  .divider-p {
      padding: 2% 1%;
  }
  .hero-text-box-container {
      grid-row: 4/7;
  }
  .hero-text-p {
      grid-column: 1/-1;
      grid-row: 5/8;
      text-align: center;
      align-self: center;
      justify-self: center;
      max-width: 80%;
  }
 
}
@media screen and (max-width:300px) {
  .product-item {
    min-height: 400px;
    min-width: 200px;
    max-width: 200px;
  }
  .product-item-inner{
    border-radius:5px;
    position: absolute;
    width:100%;
    height:100%;
    display:flex;
    flex-direction:column;
    align-items: center;
    justify-content: center;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    transition:.5s;
  }
  .pool-link{
    width:80%;
  }
}