/*
Theme Name:     Wozani
Description:    Custom theme for Wozani Ridge Coastal Eco Estate
Author:         Show Them Solutions
Author URI:     www.showthem.dev
Template:       Divi
Version:        1.0.0
*/

/* ============== Root Styles ============== */

:root {
  --wozani-gold: #bfa161;
  --middle-gold: #ad8b41;
  --dark-gold: #96752d;
}

body {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-weight: 400;
  font-style: normal;
  color: #000;
}

.allison-regular {
  font-family: "Allison", cursive;
  font-weight: 400;
  font-style: normal;
}

.wz-button {
  background-color: var(--middle-gold);
  color: #fff;
  padding: 0.8rem 1.5rem;
  max-width: fit-content;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 2px;
}

.wz-container {
  max-width: 1080px;
  width: 80%;
  position: relative;
  margin: 0 auto;
}

/* ============== Loading Spinner ============== */

.wz-spinner-container {
  width: 100vw;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999999999999;
  background-color: rgba(0, 0, 0, 1);
}

.lds-dual-ring {
  display: inline-block;
  width: 80px;
  height: 80px;
}

.lds-dual-ring::after {
  content: " ";
  display: block;
  width: 64px;
  height: 64px;
  margin: 8px;
  border-radius: 50%;
  border: 6px solid var(--dark-gold);
  border-color: var(--dark-gold) transparent var(--dark-gold) transparent;
  animation: lds-dual-ring 1.2s linear infinite;
}

@keyframes lds-dual-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ============== Header Slider Styles ============== */

#wzScrollHeaderContainer {
  transform: translateY(-100%);
  transition: transform 0.3s ease-in-out;
}

/* ============== Home Slider Styles ============== */

.wz-home-slider-container {
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

.wz-home-slides {
  display: flex;
  height: 100vh;
  max-height: 100vh;
  transition: transform 0.5s ease-in-out;
}

.wz-home-slide {
  min-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  position: relative;
}

.wz-home-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.6), transparent);
}

.wz-home-slide img {
  opacity: 0;
}

.wz-slide-content {
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
  width: 100%;
}

.wz-slide-content h2 {
  color: var(--wozani-gold);
  font-size: 5rem;
}

.wz-slide-content p {
  color: #fff;
  max-width: 400px;
}

.wz-slide-content a {
  margin-top: 2rem;
}

.wz-slider-controls-container {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
}

.wz-slider-control {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #d9d9d9;
  transition: background-color 0.3s ease-in-out;
  cursor: pointer;
}

.wz-slider-control.active {
  background-color: var(--wozani-gold);
}

/* ============== Page Styles ============== */

.wz-page-title h1 {
  position: relative;
}

.wz-page-title h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 3px;
  border-radius: 100px;
  background-color: white;
}

/* ============== Gallery Styles ============== */

.wz-collection-content {
  padding-block: 2rem;
}

.wz-grid {
  display: grid;
  grid-gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
  grid-auto-rows: 325px;
}

.wz-item {
  position: relative;
}

.wz-item img {
  display: block;
  margin: 5px auto;
}

.wz-item.with-description::after {
  position: absolute;
  content: "";
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.4s ease-out;
  max-width: 500px;
  max-height: calc(100% - 10px);
  width: 100%;
  height: 100%;
  z-index: 1;
}

.wz-item-description {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0 50px;
  text-align: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.4s ease-out;
  z-index: 2;
}

.wz-item:hover::after {
  opacity: 1;
}

.wz-item:hover .wz-item-description {
  opacity: 1;
}

/* ============== Nature Guide Styles ============== */

.nature-list {
  padding-block: 3rem;
}

.nature-list > p {
  text-align: center;
  margin-bottom: 1rem;
}

.wz-nature-collection-container {
  cursor: pointer;
}

.wz-nature-collection-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.wz-nature-collection-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--wozani-gold);
}

.wz-nature-collection-title h2 {
  color: var(--dark-gold);
}

.wz-nature-collection-title svg {
  fill: var(--dark-gold);
  width: 20px;
  transition: transform 0.3s ease-in-out;
}

.wz-nature-collection-container.active .down-chevron svg {
  transform: rotateX(180deg);
}

.wz-nature-collection-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out; 
  margin-bottom: 3rem;
}

.wz-nature-collection-content .content-header { 
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: relative;
  padding: 1rem;
}

.wz-nature-collection-content .content-header::after { 
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #a7a7a7;
}

.wz-nature-collection-content .content-header > div { 
  color: #000;
}

.wz-nature-collection-content .content-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 1rem;
}

.wz-nature-collection-content .content-row:nth-last-of-type(even) {
  background-color: #f7f7f7;
}

.wz-nature-collection-content .content-row > div {
  color: #4f4f4f;
  align-self: center;
}

.wz-nature-collection-content .content-row > .row-image {
  justify-self: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

.wz-nature-collection-content .content-row > .row-image img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

/* ============== Media Queries ============== */

@media (max-width: 980px) {
  #wzScrollHeaderContainer {
    display: none;
  }
}

@media (max-width: 768px) {
  .wz-container {
    width: 90%;
  }

  .wz-slide-content h2 {
    font-size: 3rem;
  }

  .wz-nature-collection-content .content-header,
  .wz-nature-collection-content .content-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .wz-extra {
    display: none;
  }
}

@media (max-width: 600px) {
  .wz-grid {
    display: block;
  }

  .wz-grid > div {
    margin-bottom: 1rem;
  }
}

@media (max-width: 400px) {
  .wz-page-title h1::after {
    width: 280px;
  }
}
