/*
Theme Name: Apex Protects
Theme URI:
Author: Skyline Internet
Author URI:
Description:
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: apex-protects
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
  text-decoration-thickness: 1px !important;
  text-underline-offset: 0.1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
  outline: none;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation
  .wp-block-navigation-submenu
  .wp-block-navigation-item:not(:last-child) {
  margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation
  .wp-block-navigation-item
  .wp-block-navigation-item__content {
  outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation
  .wp-block-navigation-item
  ul.wp-block-navigation__submenu-container
  .wp-block-navigation-item__content {
  outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1,
h2,
h3,
h4,
h5,
h6,
blockquote,
caption,
figcaption,
p {
  text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
  display: block;
}

:root {
  --dark-green: #357e3c;
  --green: #3ba34e;
  --light-green: #84c664;
  --baseDelay: 0.25s;
  --sidebarWidth: 80dvw
}

nav.wp-block-navigation ul li a:hover {
  text-decoration: none !important;
}

.menu-navigation {
  align-items: unset !important;
}

.header-row .menu-navigation ul,
.header-row .menu-navigation ul li {
  height: 96% !important;
}

.header-row .menu-navigation ul li a {
  height: 96%;
  display: flex;
  align-items: center;
  transition: all 0.3s;
  border-bottom: 5px solid transparent;
}

.header-row .menu-navigation ul li a:hover,
.header-row .menu-navigation ul li.current-menu-item a {
  border-bottom: 5px solid var(--light-green);
}

.header-row .menu-navigation ul li.current-menu-item a {
  font-weight: 700 !important;
}

.box-shadow img {
  box-shadow: 15px 15px rgba(202, 202, 202, 0.2);
}

.overlap-img img {
  position: relative;
  margin-top: -24vh !important;
}

.strong-view.wpmtst-default .wpmtst-testimonial{
 border: none;
}

.strong-view.wpmtst-default .wpmtst-testimonial-inner {
  background-color: #fff !important;
  box-shadow: 15px 15px rgba(202, 202, 202, 0.2) !important;
  border: none !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 96%;
}

.wpmslider-viewport {
  height: 300px !important;
}

.strong-view.controls-type-sides-outside{
 padding: 0 0;
}

.strong-view.wpmtst-default .wpmtst-testimonial-content p {
  color: #000 !important;
}

.wpmtst-testimonial-field.testimonial-field.testimonial-name {
  font-family: var(--wp--preset--font-family--jura);
  color: #000;
  font-weight: 900;
}

.strong-view.strong-view-id-1.default.wpmtst-default {
  margin: 3em 0 !important;
  max-width: 100%;
}

.strong-rating-wrapper .star svg path {
  fill: var(--green);
}

.wpcf7 input[type="text"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="email"] {
  width: 310px;
}

.wpcf7 input[type="text"] {
  margin-right: 2em;
}

.wpcf7-form textarea {
  width: 100%;
  margin: 1.5em 0 1em 0;
}

.contact-form p {
  margin: 0 !important;
}

.wpcf7 input,
.wpcf7 textarea {
  border-width: 0 0 2px 0 !important;
  border-color: var(--dark-green);
  padding: 0 0 0.4em 0 !important;
  font-family: var(--wp--preset--font-family--lato);
  font-size: 1.05rem;
  font-weight: 300;
  border-radius: 0;
  background: none;
}

.home .wpcf7 input,
.home .wpcf7 textarea{
 background: var(--white);
}

.wpcf7 textarea {
  height: 100px;
}

.wpcf7 input::placeholder, .wpcf7 textarea::placeholder {
 color: var(--wp--preset--color--contrast);
}

.wpcf7 .wpcf7-submit {
  background: linear-gradient(
    135deg,
    rgb(53, 126, 60) 0%,
    rgb(132, 198, 100) 100%
  ) !important;
  color: #fff;
  border: 1px solid var(--dark-green) !important;
  padding: 1em 2.25em !important;
  font-weight: 500;
  border-radius: 99rem;
  transition: all 0.25s;
}

.wpcf7 .wpcf7-submit:hover {
  cursor: pointer;
  opacity: 0.85;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
  outline-style: none !important;
}

.wpcf7-list-item{
 margin: 0 0 1em 0 !important;
}

.wpcf7-list-item-label{
 font-size:0.85em;
}


/* Animation */
/* Animations */

@keyframes fade-up {
  0% {
    opacity: 0;
    transform: translateY(2rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-down {
  0% {
    opacity: 0;
    transform: translateY(-2rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-right {
  0% {
    opacity: 0;
    transform: translateX(2rem);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fade-left {
  0% {
    opacity: 0;
    transform: translateX(-2rem);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes grow {
  0% {
    opacity: 0;
    transform: scale(0);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}
.aos.fade-up {
  opacity: 0;
  transform: translateY(2rem);
}
.aos.fade-down {
  opacity: 0;
  transform: translateY(-2rem);
}
.aos.fade-right {
  opacity: 0;
  transform: translateX(-2rem);
}
.aos.fade-left {
  opacity: 0;
  transform: translateX(2rem);
}

.aos.grow {
  opacity: 0;
  transform: scale(0);
}

.animate.aos.fade-up {
  animation: fade-up 1s both cubic-bezier(0.215, 0.61, 0.355, 1);
}
.animate.aos.fade-down {
  animation: fade-down 1s both cubic-bezier(0.215, 0.61, 0.355, 1);
}
.animate.aos.fade-left {
  animation: fade-left 1s both cubic-bezier(0.215, 0.61, 0.355, 1);
}
.animate.aos.fade-right {
  animation: fade-right 1s both cubic-bezier(0.215, 0.61, 0.355, 1);
}

.animate.aos.grow {
  animation: grow 1s both cubic-bezier(0.215, 0.61, 0.355, 1);
}

.animation-delay-1,
.animate-stagger .aos:nth-child(1) {
  animation-delay: calc(var(--baseDelay, 0.5s) + 0.25s) !important;
}
.animation-delay-2,
.animate-stagger .aos:nth-child(2) {
  animation-delay: calc(var(--baseDelay, 0.5s) + 0.5s) !important;
}
.animation-delay-3,
.animate-stagger .aos:nth-child(3) {
  animation-delay: calc(var(--baseDelay, 0.5s) + 0.75s) !important;
}
.animation-delay-4,
.animate-stagger .aos:nth-child(4) {
  animation-delay: calc(var(--baseDelay, 0.5s) + 1s) !important;
}

.animation-delay-5,
.animate-stagger .aos:nth-child(5) {
  animation-delay: calc(var(--baseDelay, 0.5s) + 1.25s) !important;
}

.animation-delay-6 {
  animation-delay: calc(var(--baseDelay, 0.5s) + 1.5s) !important;
}

.animation-delay-7 {
  animation-delay: calc(var(--baseDelay, 0.5s) + 1.75s) !important;
}

/*.button-outline {
  outline: 4px solid var(--dark-green);
}*/

header {
  position: absolute !important;
  width: 100% !important;
  z-index: 2 !important;
}

/*.cut-corner {
  clip-path: polygon(var(--corner) 0%, calc(100% - var(--corner)) 0%,
  100% var(--corner), 100% calc(100% - var(--corner)),
  calc(100% - var(--corner)) 100%, var(--corner) 100%,
  0% calc(100% - var(--corner)), 0% var(--corner));
  --corner: 0.75em;
}

.cut-corner-parent {
  padding: 2px !important;
}*/

footer {
  background: linear-gradient(
    277deg,
    rgb(53, 126, 60) 40%,
    rgb(132, 198, 100) 100%
  );
}

footer{
 margin-block-start: 0 !important;
}


/* Services Page */

.wp-block-cb-carousel .slick-slide{
 padding-left: 0;
 padding-right: 0;
}

.wp-block-cb-carousel .slick-next:before, .wp-block-cb-carousel .slick-prev:before{
 color: rgba(17,17,17,0.3);
}

.tiled-gallery__item:focus-within{
 box-shadow: none !important;
}

.jp-carousel-photo-title-container, .jp-carousel-photo-icons-container{
 display: none;
}

.tiled-gallery__col+.tiled-gallery__col {
margin-inline-start: 0;
}

.tiled-gallery__row+.tiled-gallery__row {
    margin-top: 0 !important;
}

.tiled-gallery__row {
    gap: 0;
}

.services-icon{
 width: 63px;
 height: 60px;
 text-align: center;
}

.services-icon svg{
 height: 27px;
 width: auto;
}

.wp-block-group.woocommerce.product {
  margin: 0 !important;
}

.woocommerce div.product form.cart button.single_add_to_cart_button, .woocommerce div.product form.cart button[name=add-to-cart] {
  border-radius: 100rem;
  background-color: var(--dark-green);
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
  font-size: 1rem !important;
}

button.wc-block-components-quantity-selector__button.wc-block-components-quantity-selector__button--plus,
button.wc-block-components-quantity-selector__button.wc-block-components-quantity-selector__button--minus {
  color: #fff !important;
  background-color: var(--green);
}

button.wc-block-components-quantity-selector__button.wc-block-components-quantity-selector__button--plus {
  border-radius: 0 5rem 5rem 0;
}

button.wc-block-components-quantity-selector__button.wc-block-components-quantity-selector__button--minus {
  border-radius: 5rem 0 0 5rem;
}

.wc-block-product-filter-price-slider .text input[type=text] {
  font-family: var(--wp--preset--font-family--jura);
}

select.orderby {
  padding: 1em;
  font-family: var(--wp--preset--font-family--jura);
  border: none !important;
  border-bottom: 1px solid #000 !important;
}

.quantity.wc-block-components-quantity-selector::after {
  border-radius: 5rem !important;
}

/* Targets MacBooks / small notebooks, but not large laptops or desktops */
@media screen and (min-width: 1200px) and (max-width: 1440px) {
  ul.wp-block-navigation__container.has-text-color.has-base-color.is-responsive.items-justified-center.wp-block-navigation.has-jura-font-family {
    gap: 10px !important;
  }
}

.wpcf7 form .wpcf7-response-output {
  background-color: var(--green);
  color: #fff;
  padding: 10px 20px;
  border: none !important;
}

body.woocommerce-cart header{
  position: relative !important;
  background: linear-gradient(277deg, rgb(53, 126, 60) 40%,rgb(132, 198, 100) 100%);
}

body.woocommerce-checkout header {
  position: relative !important;
}

body.woocommerce-cart header .is-style-gradient-column {
  background: none !important;
}

body.woocommerce-cart a.wp-block-button__link.wp-element-button.add_to_cart_button.ajax_add_to_cart {
  background-color: var(--dark-green) !important;
}

body.woocommerce-cart .wc-block-grid__product-title{
  font-family: var(--wp--preset--font-family--jura) !important;
  font-weight: 700;
  font-size: var(--wp--preset--font-size--medium) !important;
}

body.woocommerce-cart .woocommerce-Price-amount.amount {
  font-family: var(--wp--preset--font-family--jura) !important;
  font-size: var(--wp--preset--font-size--medium) !important;
  font-weight: 500;
}

/* Mobile Sidebar */

aside#sidebar {
  position: fixed;
  height: 100dvh;
  z-index: 999;
  background-color: #fff;
  left: 0;
  top: 0;
  min-width: 80dvw;
  transform: translateX(calc(var(--sidebarWidth) * -2));
  transition: all 0.25s;
}

aside#sidebar.open {
  transform: translate(0);
  z-index: 999;
}

body.sidebar-open {
  margin: 0;
  height: 100%;
  overflow: hidden;
  position: relative;
}

body.sidebar-open:after {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 991;
  background-color: rgba(0, 0, 0, 0.5);
}


@media screen and (max-width: 820px) {
  .mb-no-wrap {
    flex-wrap: nowrap !important;
  }

  .wp-block-columns.mb-no-wrap .wp-block-column.mb-flex-35 {
    flex-basis: 35% !important;
  }

  .mb-flex-wrap {
    flex-wrap: wrap !important;
  }

  .mb-no-border {
    border: 2px solid #ededed !important;
    padding: 1.5em;
    border-left-width: 0 !important;
    border-right-width: 0 !important;
  }

  .mb-flex-center {
    justify-content: center;
    align-items: center;
  }

  .mb-margin-0 {
    margin: 0 !important;
  }

  .mb-grid-col-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  }

  form.wpcf7-form .contact-form .row p {
    gap: 1em;
    display: flex;
    flex-direction: column;
  }

  .tiled-gallery__row {
    flex-direction: column !important;
  }

  .tiled-gallery__row .tiled-gallery__col {
    width: 100% !important;
  }

  .strong-view.controls-type-sides-outside:not(.rtl) .wpmslider-next {
    right: -25px !important;
  }

  .mb-carousel-img a img {
    height: 100% !important;
  }

  .mb-height-flex a {
    display: flex;
    height: 100%;
  }
}

.wc-block-product-filters__open-overlay span {
  font-family: var(--wp--preset--font-family--jura) !important;
}

.wc-block-product-filters__close-overlay span {
  padding: 0em 4em !important;
}

.wc-block-product-filters__apply.wp-element-button {
  background-color: #fff !important;
  border-radius: 99px;
  color: var(--dark-green) !important;
}

@media only screen
  and (min-device-width: 768px)
  and (max-device-width: 1200px)
  and (-webkit-min-device-pixel-ratio: 1) {
    .mb-grid-col-1 figure a {
      display: flex;
      height: 100%;
    }

    .tb-flex-80 {
      flex-basis: 80% !important;
    }

    .tb-flex-20 {
      flex-basis: 20% !important;
    }

    header ul.wp-block-navigation__container {
      font-size: 12px !important;
    }

    header .wp-block-button__link.has-custom-apex-dark-green-color {
      font-size: 12px !important;
    }
}