/*
Theme Name: Nest Living
Theme URI: https://www.lekker-tech.co.za/
Version: 1
Description: 2 Column theme
Author: Lekker Tech
Author URI: https://www.lekker-tech.co.za/
*/

body,
html {
  margin: 0;
  padding: 0;
}
body {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  overflow-x: hidden;
}
:root {
  --transform-speed: 0.3s;
  --transition-speed: 1s;
}
li {
  padding-bottom: 15px;
}
.nl-btn {
  background-color: var(--e-global-color-secondary);
  color: #fff;
  border-radius: 5px;
  font-size: 24px;
  font-weight: 300;
  padding: 15px 30px;
  text-align: center;
  transition: all var(--transform-speed);
  &:hover {
    background-color: var(--e-global-color-primary);
  }
  &.nl-btn-md {
    font-size: 16px;
    padding: 10px 25px;
  }
  &.nl-btn-block {
    width: 100%;
  }
}
@media only screen and (min-width: 769px) {
  .hide-desktop {
    display: none;
  }
}
/* Header */
.ca-navbar {
  position: fixed;
  z-index: 8;
  top: 0;
  left: 0;
  right: 0;
  height: 88px;
  transition: all var(--transform-speed);
  .ca-navbar__container {
    display: flex;
    justify-content: space-between;
    padding: 20px 30px;
    align-items: center;
  }
  li {
    padding-bottom: 0px;
  }
  a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    position: relative;
    &::before {
      display: block;
      content: "";
      position: absolute;
      height: 2px;
      left: 0;
      right: 100%;
      bottom: -3px;
      transition: all ease var(--transform-speed);
      background: #fff;
    }
    &:hover::before {
      right: 0;
    }
  }
  i {
    margin-right: 5px;
  }
  @media (prefers-reduced-motion) {
    &::after {
      display: block;
      content: "";
      background: var(--e-global-color-primary);
      height: 4px;
      position: absolute;
      top: 0;
      width: 100%;
      scale: 0 1;
      transform-origin: left;
      animation: scroll-watcher linear;
      animation-timeline: scroll();
    }
  }
}
.scrolled .ca-navbar {
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  a {
    color: #0A1D3D;
  }
  svg *[fill="white"] {
    fill: var(--e-global-color-primary);
  }
}
/* keyframes */
@keyframes scroll-watcher {
  to {
    scale: 1 1;
  }
}
/* Top menu */
.nl-top-navigation {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
}
/* Half color sections */
.nl-bg-half.e-con,.nl-bg-sev.e-con,
.nl-bg-half-right.e-con {
  position: relative;
  @media only screen and (min-width: 769px) {
    &::before {
      display: block;
      content: "";
      background: var(--e-global-color-primary);
      opacity: 1;
      left: -5px;
      right: 50%;
      position: absolute;
      width: auto;
      border-radius: 5px;
    }
  }
  @media only screen and (max-width: 768px) {
    background: var(--e-global-color-primary);
  }
}
.nl-bg-sev.e-con{
	 @media only screen and (min-width: 769px) {
    &::before {
      right: 30%;
    }
  }
}
.nl-bg-half-right.e-con {
  @media only screen and (min-width: 769px) {
    &::before {
      background: var(--e-global-color-secondary);
      left: 50%;
      right: -5px;
    }
  }
  @media only screen and (max-width: 768px) {
    background: var(--e-global-color-secondary);
  }
}
/* Animations */
.nl-overflow,
.e-con.nl-overflow {
  overflow: hidden;
}
@media (prefers-reduced-motion) {
  .nl-hidden,
  .e-con.nl-hidden {
    opacity: 0;
    filter: blur(3px);
    transition: all var(--transition-speed);
    &.nl-slideup {
      transform: translateY(-100px);
    }
    &.nl-slide-left {
      transform: translateX(-100%);
    }
    &.nl-slide-right {
      transform: translateX(100%);
      transition-delay: 200ms;
    }
  }
  .nl-show,
  .e-con.nl-show {
    opacity: 1;
    filter: blur(0);
    &.nl-slideup {
      transform: translateY(0);
    }
    &.nl-slide-left,
    &.nl-slide-right {
      transform: translateX(0);
    }
  }
  .nl-delay-200,
  .e-con.nl-delay-200 {
    transition-delay: 200ms;
  }
  .nl-delay-400,
  .e-con.nl-delay-400 {
    transition-delay: 400ms;
  }
  .nl-delay-600,
  .e-con.nl-delay-600 {
    transition-delay: 600ms;
  }
  .nl-delay-800,
  .e-con.nl-delay-800 {
    transition-delay: 800ms;
  }
  .nl-delay-1000,
  .e-con.nl-delay-1000 {
    transition-delay: 1000ms;
  }

  /* sticky scrolls */
  @media only screen and (min-width: 769px) {
    .nl-sticky {
      position: sticky !important;
      top: 150px;
      left: 0;
      height: calc(100vh - 150px) !important;
    }
  }
}
/* admin area fix */
.elementor-editor-active .nl-hidden {
  opacity: 1;
  transform: none;
  filter: blur(0);
}
/* Property cards */
.properties-list {
  @media only screen and (min-width: 769px) {
    display: flex;
    flex-wrap: wrap;
  }
  gap: 40px;
}

.property-item {
  perspective: 1000px; /* Perspective effect */
  height: 500px;
  @media only screen and (min-width: 769px) {
    width: calc(50% - 20px);
    &:nth-child(odd) {
      align-self: flex-start;
    }
    &:nth-child(2) {
      margin-top: 120px;
    }
    &:nth-child(3) {
      margin-top: -115px;
    }
    &:nth-child(4) {
      margin-top: 5px;
    }
    &:nth-child(5) {
      margin-top: -115px;
    }
    &:nth-child(6) {
      margin-top: 4px;
    }
    &:nth-child(7) {
      margin-top: -115px;
    }
    &:nth-child(8) {
      margin-top: 4px;
    }
  }
  @media only screen and (max-width: 768px) {
    height: 350px;
    margin: 30px 0;
  }
  h2 {
    font-weight: 300;
    text-transform: uppercase;
    font-size: 24px;
  }
}

.property-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d; /* 3D effect */
}

.property-item:hover .property-inner,
.property-item:focus-within .property-inner {
  transform: rotateY(180deg); /* Flip effect */
}

.property-front,
.property-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden; /* Hide back face when not flipped */
  display: flex; /* Use flexbox for centering content */
  align-items: center; /* Center vertically */
  justify-content: center; /* Center horizontally */
  padding: 20px; /* Add padding for content */
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
  border-radius: 5px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.property-back {
  transform: rotateY(180deg); /* Start back face rotated */
  flex-direction: column;
  justify-content: start;
  justify-content: space-between;
}

.property-thumbnail {
  width: 100%;
  height: 200px;
  border-radius: 5px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  margin-bottom: 30px;
}
.property-excerpt {
  margin-bottom: 30px;
}
/* Burger menu */
.nl-burger {
  display: none;
  position: fixed;
  top: 4px;
  right: 9px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 400ms;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.nav-open .nl-burgerRotate {
  transform: rotate(45deg);
}
.line {
  fill: none;
  transition: stroke-dasharray 400ms, stroke-dashoffset 400ms;
  stroke: #fff;
  stroke-width: 5.5;
  stroke-linecap: round;
}
.nl-burger4 .top {
  stroke-dasharray: 40 121;
}
.nl-burger4 .bottom {
  stroke-dasharray: 40 121;
}
.nav-open .nl-burger4 .top {
  stroke-dashoffset: -68px;
}
.nav-open .nl-burger4 .bottom {
  stroke-dashoffset: -68px;
}
/* Mobile menu */
@media only screen and (max-width: 768px) {
  .ca-navbar__right .text-right {
    display: none;
  }
  .nl-burger {
    display: block;
  }
  .nl-top-navigation-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: 0;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    backdrop-filter: blur(10px);
    transform: translateX(100%);
    transition: all var(--transform-speed);
    ul {
      flex-direction: column;
      margin-left: 60px;
    }
  }
  .nav-open .nl-top-navigation-wrap {
    transform: translateX(0);
  }
}
/* Post list */
.nl-post-list {
  @media only screen and (min-width: 769px) {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    .nl-post-item {
      flex: 1 1 calc(33.333% - 30px);
	max-width:calc(33.333% - 30px);
    }
  }
  .nl-post-inner {
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    margin-bottom: 30px;
  }
  .nl-post {
    height: 250px;
    border-radius: 15px 15px 0 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
  }
  h3 {
    padding: 5px 25px;
    font-weight: 400;
    margin: 25px 0 0 0;
  }
  h4 {
    padding: 0 25px;
    margin: 5px 0 25px;
    text-transform: uppercase;
    font-size: 14px;
  }
  .nl-post-excerpt {
    padding: 0 25px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .nl-btn {
    display: inline-block;
    margin: 25px;
    width: auto;
  }
  .hasnot {
    background-image: url(/wp-content/themes/nestliving/assets/img/logo.svg) !important;
    background-color: var(--e-global-color-primary);
    background-size: 200px auto;
  }
}
/* Footer */
.nl-footer {
  background: var(--e-global-color-primary);
  padding: 60px 15px;
  color: #fff;
  justify-content: center;
  gap: 80px;
  align-items: center;
  @media only screen and (min-width: 769px) {
    display: flex;
  }
}
/* Service */
@media only screen and (min-width: 769px) {
  .nl-services .e-con-inner {
    background-image: url('https://nest-living.co.uk/wp-content/uploads/2025/04/worm-2.webp');
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position-y: 70px;
  }
  .nl-services .e-child {
    .elementor-icon {
      background: #0A1D3D;
      border-radius: 50%;
      padding: 15px;
      path {
        fill: #fff;
      }
    }
    &:nth-child(1) {
      .elementor-icon {
        margin-left: 16px;
      }
    }
    &:nth-child(2) {
      .elementor-icon {
        background: #375357;
      }
    }
    &:nth-child(3) {
      .elementor-icon {
        background: #A3BFA9;
      }
      h2,
      p {
        padding-left: 10px;
      }
    }
    &:nth-child(4) {
      .elementor-icon {
        background: #D0B6A0;
      }
    }
    &:nth-child(5) {
      .elementor-icon {
        background: #F4EBD0;
      }
    }
    &:nth-child(odd) {
      padding-top: 129px;
    }
    &:nth-child(even) {
    }
  }
  .nl-services .e-con-inner {
    h2 {
      font-size: 18px !important;
      font-weight: 600 !important;
      margin-bottom: -10px;
    }
    p {
      height: 80px;
    }
    .nl-arch {
    }
  }
}
@media only screen and (max-width: 768px) {
}
