/*
Theme Name: Enerco Ltd
Theme URI: 
Author: Skyline Internet
Author URI: 
Description: 
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.0
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: enerco-ltd
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
*/

:root {
  --fonth: "omnes-pro", sans-serif;
  --fonth_weight: 400;
  --fontp: "omnes-pro", sans-serif;
  --fontp_weight: 300;
  --white: #fff;
  --black: #000;
  --grey: #737478;
  --green: #c1d62f;
  --light-grey: #eaeaea;
  --border-radius: 0.33rem;
  --sidebarWidth: 80dvw;
}

html {
  scroll-behavior: smooth;
}

:where(.wp-site-blocks *:focus) {
  outline: none !important;
}

.wp-block-navigation a:where(:not(.wp-element-button)):hover {
  text-decoration: none;
}

.wp-block-button > a:hover,
.wp-block-read-more:hover {
  transform: scale(1.05);
  transition: all 0.3s;
}

:root :where(.wp-block-post-title a:where(:not(.wp-element-button)):hover) {
  text-decoration: none;
}

/* Header */

header .wp-block-navigation-link a {
  padding-bottom: 1em;
  border-bottom: 2px solid transparent;
}

header .current-menu-item a,
header .wp-block-navigation-link a:hover {
  border-bottom: 2px solid var(--green) !important;
}

header .current-menu-item a:hover {
  border-bottom: none;
}

/* Case Studies */

.case-studies .wp-block-group {
  position: relative;
  margin-left: 2em;
}

.case-studies .wp-block-group:hover {
  background: var(--green) !important;
}

.case-studies .wp-block-group:hover a,
.case-studies .wp-block-group:hover h4,
.case-studies .wp-block-group:hover p {
  color: var(--white) !important;
  text-decoration: none !important;
  cursor: pointer;
}

.wp-block-read-more {
  box-shadow: var(--wp--preset--shadow--natural);
}

ul.wp-block-categories-list {
  display: inline-flex;
  margin-top: 0.3em;
}

ul.wp-block-categories-list li a {
  border: 2px solid var(--grey);
  padding: 0.75em 1.4em;
  border-radius: var(--border-radius) var(--border-radius);
  margin-right: 0.7rem;
  box-shadow: var(--wp--preset--shadow--natural);
  font-size: 1.1rem;
}

ul.wp-block-categories-list li a:hover,
.wp-block-button.all a:hover,
ul.wp-block-categories-list li.current-cat a {
  color: var(--white) !important;
  background: var(--grey);
}

ul.wp-block-categories-list li:hover,
.wp-block-button.all:hover {
  transform: scale(1.05);
  transition: all 0.3s;
}

.case-study .wp-block-read-more {
  box-shadow: none;
}

.case-study .wp-block-read-more:hover {
  background: var(--green) !important;
  color: var(--white) !important;
  padding-left: 1.4em !important;
  padding-right: 1.4em !important;
}

/* Awards */

.awards,
.services,
.case-study,
.technical {
  position: relative;
  z-index: 10;
}

.awards img {
  filter: grayscale(1);
  opacity: 0.5;
}

.awards img:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* Services */

.services .wp-block-group:hover {
  border-top-color: var(--green) !important;
  transform: scale(1.05);
  transform: all 0.5s;
  border-right: 1px solid var(--light-grey) !important;
}

.services svg {
  height: 2.25em;
}

.services .wp-block-button__link {
  box-shadow: none;
}

.services .wp-block-group:hover .wp-block-button__link {
  background: var(--green) !important;
  color: var(--white) !important;
  padding-left: 1.4em !important;
  padding-right: 1.4em !important;
}

.services .wp-block-button > a {
  transform: scale(1);
  transition: all 0.3s;
}

/* Footer */

.home footer {
  margin-block-start: 1.2em;
}

.page-template-page-no-title footer {
  margin-block-start: 0;
}

.wp-block-social-links,
.wp-block-social-links.has-normal-icon-size {
  font-size: 30px;
}

/* Form */

.wpcf7-form input[type="text"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
  background: none;
  border: 1px solid #ddd !important;
  padding: 0.75em 1em !important;
  height: auto;
  font-family: var(--fontp);
  font-weight: var(--fontp_weight);
  font-size: 1.15rem;
  margin: 0 0 1em 0 !important;
  border-radius: var(--border-radius);
  width: -webkit-fill-available;
  letter-spacing: 1.25px;
}

.wpcf7-form textarea {
  height: 60px;
}

.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
  color: var(--black);
  font-family: var(--fontp) !important;
}

.wpcf7-form textarea {
  min-height: inherit;
}

.wpcf7-list-item {
  margin: 0 0;
  font-size: 0.85em;
}

.wpcf7-form input[type="submit"] {
  border: none;
  border-radius: var(--border-radius) !important;
  font-size: 1.1rem;
  background: var(--green) !important;
  color: var(--white);
  font-family: var(--fontp) !important;
  font-weight: 400 !important;
  text-transform: none;
  padding: 0.75em 1.4em !important;
  line-height: normal !important;
  min-height: auto !important;
  letter-spacing: 0.04em;
  float: right;
  margin-top: 1em;
}

.wpcf7-form input[type="submit"]:hover {
  transform: scale(1.05);
  transition: all 0.3s;
}

/* Reviews */

.reviews {
  z-index: 20;
  position: relative;
}

.wp-gr .wp-google-text {
  font-family: var(--fontp) !important;
  font-size: 1.25rem !important;
  font-weight: var(--fontp_weight) !important;
  color: var(--grey) !important;
}

.wp-gr .wp-google-time {
  font-family: var(--fontp) !important;
  font-size: 0.9rem !important;
  color: var(--black) !important;
  font-weight: var(--fontp_weight) !important;
}

.wp-gr.wpac a.wp-google-name {
  color: var(--green) !important;
  font-weight: 400 !important;
  font-family: var(--fontp) !important;
  font-size: 1.1rem !important;
}

/* Services Benefits */

.benefits .wp-block-group:after {
  content: " ";
  width: 3em;
  height: 2px;
  background-color: var(--light-grey);
  margin-top: 0.5em;
}

.benefits .wp-block-group:last-child:after {
  display: none;
}

.benefits .wp-block-group:hover {
  transform: scale(1.05);
  transition: all 0.3s;
}

.benefits .wp-block-group p {
  cursor: default;
}

/* Solar Consideration */

.solar-considerations .wp-block-details summary {
  padding-bottom: 1em;
}

.solar-considerations .wp-block-details summary::marker {
  content: none;
}

.solar-considerations .wp-block-details summary::after {
  content: " +";
  float: right;
  text-align: right;
  color: var(--white);
  font-size: 1.25em;
  font-weight: normal;
}

.solar-considerations .wp-block-details[open] summary::after {
  content: " -";
}

.contact-group .wp-block-cb-carousel .slick-slide {
  padding-left: 0.5px !important;
  padding-right: 10.5px !important;
}

.wp-block-cb-carousel .slick-next:before,
.wp-block-cb-carousel .slick-prev:before {
  color: var(--white);
  opacity: 1;
}

.slick-next {
  right: 30px;
}

.slick-prev {
  left: 30px;
  z-index: 10;
}

.bg-icon {
  position: absolute;
  right: 35px;
  bottom: 0;
  opacity: 0.075;
}

.bg-icon-about {
  position: absolute;
  right: 35px;
  top: 30px;
  opacity: 0.075;
}

.bg-icon img,
.bg-icon-about img {
  width: 925px;
  height: auto;
}

/* Eco Page */

.eco-banner-bg {
  position: relative;
}

.eco-stack {
  position: unset;
}

.eco-stack .sun,
.eco-stack .windmill {
  position: absolute;
}

.eco-stack .sun {
  /*
  top: 3%;
  right: 24.5%;
  width: 17%;
  */
  top: 5%;
  right: unset;
  width: 17%;
  animation: spinNormal 20s ease-in-out infinite;
  left: -5rem;
  animation: spinNormal 20s ease-in-out infinite;
}

.eco-stack .windmill {
  animation: spinNormal 2s linear infinite;
  z-index: 99;
  margin: 0;
  translate: -50% -50%;
  scale: 0;
  transition: all 2.5s;
}

.eco-stack .windmill.loaded {
  scale: 1;
}

@keyframes spinNormal {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.eco-banner,
.eco-banner .text {
  height: 70vh;
}

aside#sidebar {
  position: fixed;
  height: 100dvh;
  z-index: 999;
  background-color: #fff;
  left: 0;
  top: 0;
  min-width: 80dvw;
  transform: translateX(calc(var(--sidebarWidth) * -1));
  transition: all 0.25s;
}

aside#sidebar.open {
  transform: translate(0);
  z-index: 99;
}
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: 90;
  background-color: rgba(0, 0, 0, 0.5);
}

.fake-site-container-left {
  max-width: calc(var(--wp--style--global--content-size) / 2);
  margin-left: calc(
    (100dvw - var(--wp--style--global--content-size)) / 2
  ) !important;
}

.eco-banner-bg .eco-banner-figure {
  margin-top: auto;
}

.eco-banner-bg {
  height: 100%;
  display: flex;
  align-items: flex-end;
}

.get-quote-block figure,
.get-quote-block img {
  height: 100% !important;
}

summary::-webkit-details-marker {
  display: none;
}

@media (min-width: 884px) {
  .wp-block-site-logo {
    margin-right: 15px !important;
  }
}

/*
* Tablet
*/
@media only screen and (min-width: 768px) and (max-width: 1200px) and (orientation: landscape) {
  :root {
    --wp--style--global--content-size: 1100px;
    --wp--style--global--wide-size: 1150px;
  }
}
@media only screen and (min-width: 768px) and (max-width: 1200px) and (orientation: portrait) {
  .wp-block-group:has(.wp-block-site-logo)
    .block-visibility-hide-medium-screen {
    display: block !important;
  }
}

/*
* Mobile Styling
*/
@media (max-width: 884px) {
  :root {
    --wp--style--global--content-size: 90dvw;
  }
  .left-header .wp-block-site-logo {
    display: flex;
    justify-content: center;
    width: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .mid-header {
    display: none;
  }

  .right-header > .wp-block-group {
    justify-content: space-between;
    max-width: 90%;
    margin-bottom: 1rem;
  }

  .footer-group {
    background-position: bottom !important;
    padding-bottom: 15dvh !important;
  }

  .mobile-buttons-2-cols {
    width: 100%;
    justify-content: space-between;
  }

  .mobile-buttons-2-cols > .wp-block-button {
    flex: 1;
  }

  .mobile-buttons-2-cols > .wp-block-button > a {
    width: 100%;
  }

  body .home-floating-box {
    padding: 2em !important;
    min-height: 45dvh !important;
    margin-top: -100px !important;
    gap: 0.75em !important;
    border-radius: 0.5em !important;
    max-width: var(--wp--style--global--content-size) !important;
    margin-left: auto;
    margin-right: auto;
  }

  .case-study-card {
    min-height: 125px !important;
  }

  .get-quote-block img {
    border-radius: 0.5em !important;
  }

  .get-quote-block {
    gap: 0 !important;
  }

  header .wp-block-columns {
    gap: 0;
    padding: 1rem;
  }

  header .wp-block-columns > .wp-block-column:last-of-type {
    display: none;
  }

  header .site-logo-block {
    max-width: 75%;
  }

  /*
  * About page
  */
  .why-choose-enerco {
    padding: 0 2em;
  }

  /*
  * Electrical and services pages.
  */
  .benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .benefits > .wp-block-group {
    margin-top: 0 !important;
    margin-bottom: 0.5rem;
    padding: 0 !important;
  }

  .benefits > .wp-block-group svg {
    height: 2rem;
  }

  .benefits .wp-block-group:last-of-type:after {
    content: " ";
    display: block;
    width: 3em;
    height: 2px;
    background-color: var(--light-grey);
    margin-top: 0.5em;
  }

  body .ev-logos,
  body .solar-logo-carousel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding-left: 1em;
    padding-right: 1em;
    align-items: center;
  }

  body .ev-logos figure a {
    width: 100%;
    text-align: center;
  }

  body .ev-logos figure,
  body .solar-logo-carousel figure {
    text-align: center;
  }

  body .case-study.case-study-solar .wp-block-columns,
  body .case-study.case-study-eco .wp-block-columns {
    gap: 0 !important;
  }
  body .case-study.case-study-solar .wp-block-columns .case-study-card,
  body .case-study.case-study-eco .wp-block-columns .case-study-card {
    margin-top: -50px !important;
  }

  body .case-study.case-study-solar figure img,
  body .case-study.case-study-eco figure img {
    border-radius: 0.5em !important;
    margin-bottom: -5px !important;
  }

  .footer-bottom {
    flex-direction: column;
    font-size: clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.199), 1rem);
    align-items: flex-start;
    gap: 0;
  }

  .xs\:flex-start,
  .xs\:justify-start {
    justify-content: flex-start !important;
  }

  .contact-group .wp-block-cb-carousel .slick-slide {
    padding: 0 !important;
  }

  /*
  * Eco
  */
  .eco-banner {
    padding-top: 3em !important;
    gap: 0;
  }
  .eco-banner,
  .eco-banner .text {
    height: auto;
  }

  .eco-banner-bg {
    height: 19dvh;
    margin-top: -17.5dvh !important;
    max-width: 65%;
    margin-left: auto !important;
  }

  .eco-stack .windmill.loaded {
    scale: 0.5;
  }

  .eco-stack .sun {
    top: 1rem !important;
    display: none;
  }

  .case-study-nav-all,
  .case-study-nav {
    flex-direction: column;
    gap: 1rem;
    justify-content: stretch;
  }
  .case-study-nav-all > *,
  .case-study-nav > * {
    width: 100%;
    justify-content: stretch !important;
  }

  .case-study-nav-all .wp-block-buttons .wp-block-button,
  .case-study-nav-all .wp-block-buttons .wp-block-button a {
    width: 100%;
  }

  .wp-block-categories-list.case-study-nav.wp-block-categories {
    display: flex;
    flex-direction: column;
  }
  ul.wp-block-categories-list li a {
    display: block;
    text-align: center;
    margin-right: 0;
    margin-left: 0;
  }
}

@media (max-width: 767px) {
  .benefits {
    grid-template-columns: repeat(2, 1fr);
  }
}

.z-4 {
  z-index: 4;
}

.z-5 {
  position: relative;
  z-index: 5;
}

@media (min-width: 884px) {
  .evcharger-slider,
  .evcharger-slider .slick-list,
  .evcharger-slider .slick-track,
  .evcharger-slider .slick-track .wp-block-cb-slide {
    height: 100%;
  }
}
