/*!
Theme Name: ashurstsolar
Theme URI: http://underscores.me/
Author: CPM Webdesign
Author URI: https://cpmwebdesign.co.uk
Description: Description
Version: 1.1.0
Tested up to: 6.1
Requires PHP: 8.3
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: ashurstsolar
Tags: Custom Template, Bootstrap 5,

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

ashurstsolar is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/
/*
 * Custom CSS (https://cpmwebdesign.co.uk/)
 * 
 */
/*--------------------------------------------------------------
# vars
--------------------------------------------------------------*/
:root {
  --as-yellow: #FAD826;
  --as-navy: #012343;
  --as-grey: #FAF8F8;
  --as-grey-border: #E8E8E8;
  --as-radius: 30px;
  --as-body: "Source Sans 3", sans-serif;
  --as-headings: "Lato", sans-serif;
  --as-top-margin: 5.313rem;
  --as-top-margin-mobile: 5rem;
}

/*--------------------------------------------------------------
  Cookie
--------------------------------------------------------------*/
#cookie-law {
  text-align: center;
  background: #F7F6F4;
  color: #000;
  padding: 10px 5px 0;
  font-size: .875rem;
  width: 100%;
}

#cookie-law a {
  text-decoration: underline;
}

a.close-cookie-banner {
  background: #E6332A;
  padding: 5px 15px;
  color: white;
  border-radius: 2px;
  text-decoration: underline;
}

a.close-cookie-banner:hover {
  color: white;
}

/*--------------------------------------------------------------
# Accessibility
--------------------------------------------------------------*/
/* Text meant only for screen readers. */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
  /* Many screen reader and browser combinations announce broken words as they would appear visually. */
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  color: #21759b;
  display: block;
  font-size: 14px;
  font-size: .875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
  /* Above WP toolbar. */
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
  outline: 0;
}

/*--------------------------------------------------------------
structure
--------------------------------------------------------------*/
body {
  margin: 0;
  font-family: var(--as-body);
  font-weight: 400;
  font-style: normal;
  font-size: 1.125rem;
  line-height: 1.5;
  color: #012343;
  text-align: left;
  background-color: #fff;
  padding: 0;
  overflow-x: hidden;
}

.container {
  max-width: 1740px;
}

.mt-6 {
  margin-top: 6rem;
}

.gx-5 {
  --bs-gutter-x: 6rem;
  /* override BS  */
}

.max-margin {
  margin-top: 250px;
}

.bottom-align {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/*--------------------------------------------------------------
typography
--------------------------------------------------------------*/
a {
  color: inherit;
}

h1,
h2,
.h3,
h3,
h4 {
  font-family: var(--as-headings);
  font-weight: 900;
}

p {
  font-style: italic;
}

p.intro-copy {
  font-size: 20px;
}

ul.split-list {
  columns: 2;
  /* Split into 2 columns */
  -webkit-columns: 2;
  -moz-columns: 2;
  column-gap: 4rem;
  /* Space between the columns */
  padding-left: 1.2rem;
  padding-left: 0;
  list-style: none;
}

ul.split-list li {
  position: relative;
  padding-left: 28px;
  /* space for SVG */
  margin-bottom: 0.5rem;
}

ul.split-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  background-size: contain;
  background-repeat: no-repeat;
  background-image: url("dist/images/circle-check.svg");
}

li {
  font-style: italic;
}

li strong {
  font-style: normal;
  font-family: var(--as-headings);
}

.save-on-bills:before {
  content: url("dist/images/piggy-bank.svg");
  display: block;
}

.greener-home:before {
  content: url("dist/images/leaf.svg");
  display: block;
}

.boost-value:before {
  content: url("dist/images/value.svg");
  display: block;
}

.energy-independence:before {
  content: url("dist/images/meter-bolt.svg");
  display: block;
}

.align-copy {
  text-align: right;
}

.intro-col {
  min-height: 600px
}

.yellow-col {
  background: var(--as-yellow);
  border-radius: var(--as-radius);
}

.grey-col {
  background: var(--as-grey);
  border-radius: var(--as-radius);
  border: thin var(--as-grey-border) solid;
}

.white-col {
  background: white;
  border-radius: var(--as-radius);
  border: thin var(--as-grey-border) solid;
}

.white-nb-col {
  background: white;
}

.yellow-col-2 {
  border-radius: var(--as-radius);
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* vertical centre */
  background: var(--as-yellow);
  border-radius: var(--as-radius);
}


.image-col {
  border-radius: var(--as-radius);
  border: thin var(--as-grey-border) solid;
  color: white;
  border-radius: var(--as-radius);
  border: thin var(--as-grey-border) solid;
  color: white;
  background-color: var(--as-navy);

}

.testimonial-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* vertical centre */
}

.blockquote-footer::before {
  content: " ";
}

.blockquote-footer {
  text-align: center;
  font-style: italic;
  color: var(--as-navy);
}

.testimonial-title:before,
blockquote h3:first-of-type::before {
  content: open-quote !important;
  display: block;
  font-size: 10rem;
  font-family: var(--as-headings);
  margin-bottom: -5.5rem;
  margin-left: -2px;
  font-style: normal;
  color: var(--as-navv);
}

blockquote p:last-of-type::after {
  content: close-quote !important;
}

.carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23012343' viewBox='0 0 16 16'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23012343' viewBox='0 0 16 16'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.carousel-control-next-icon,
.carousel-control-prev-icon {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  background-repeat: no-repeat;
  background-position: 50%;
  background-size: 100% 100%;
}

.carousel-control-next,
.carousel-control-prev {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15%;
  padding: 0;
  text-align: center;
  background: 0 0;
  border: 0;
  opacity: 1;
  transition: opacity .15s ease;
}

.carousel-control-next,
.carousel-control-prev {
  width: 5%;
}

.star-filled {
  color: var(--as-yellow);
}

.carousel-indicators {
  position: absolute;
  right: 0;
  bottom: -50px;
  left: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 0;
  margin-right: 15%;
  margin-bottom: 1rem;
  margin-left: 15%;
  list-style: none;
}

.carousel-indicators .active {
  opacity: 1;
}

.carousel-indicators [data-bs-target] {
  box-sizing: content-box;
  flex: 0 1 auto;
  width: 30px;
  height: 3px;
  padding: 0;
  margin-right: 3px;
  margin-left: 3px;
  text-indent: -999px;
  cursor: pointer;
  background-color: var(--as-yellow);
  background-clip: padding-box;
  border: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  opacity: .5;
  transition: opacity .6s ease;
}

/*--------------------------------------------------------------
Page top 
--------------------------------------------------------------*/
.site-header.scrolled {
  box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.10);
  transition: box-shadow 0.2s ease;
}

.site-header {
  background: white;

}

/* Base hero wrapper */
.hero {
  position: relative;
  /* needed for absolute child */
  width: 100%;
  border-radius: var(--as-radius);
  margin-top: var(--as-top-margin);
  overflow: hidden;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top;
}

.hero p {
  font-size: 1.25rem;
}

/* Variants */
.hero-home {
  height: 720px;
  color: white;
}

.hero-page {
  height: 500px;
  margin-bottom: 1rem;
  background: var(--as-yellow);
  color: var(--as-navy);
}

.hero-page-img {
  height: 500px;
  width: 100%;
  border-radius: var(--as-radius);
  margin-top: var(--as-top-margin);
  overflow: hidden;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top;
  color: white;
  margin-bottom: 1rem;
}

/* This centers .callout-container vertically and horizontally */
.hero .callout-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  padding: 1rem;
  text-align: center;
}

/* Optional: make sure text is centred in the column too */
.hero .col-12.col-lg-8 {
  text-align: center;
}

img.custom-logo {
  width: 200px;
  height: auto;
}

/*--------------------------------------------------------------
Buttons 
--------------------------------------------------------------*/
.send-btn .btn-primary {
  background-color: var(--as-yellow);
  border-color: var(--as-yellow);
  color: var(--as-navy);
}

.btn-primary {
  background-color: var(--as-yellow);
  border-color: var(--as-yellow);
  color: var(--as-navy);
}

.btn-secondary {
  background-color: var(--as-navy);
  border-color: var(--as-navy);
  color: var(--as-yellow);
}

.btn-secondary.no-fill {
  background-color: transparent;
  color: var(--as-navy);
}

.btn-success {
  background-color: white;
  border-color: white;
  color: var(--as-navy);
}

.btn-primary:focus,
.btn-primary:hover,
.btn-success:hover {
  background-color: var(--as-navy);
  border-color: var(--as-navy);
  color: var(--as-yellow);
}

.btn {
  text-transform: uppercase;
  border-radius: 100px;
  padding: .5rem 2rem;
  min-width: 230px;
}

.testimonial-item:nth-child(even) .feedback-row>.col-12 {
  background-color: #f7f7f7;
  border-radius: var(--as-radius);
}

.contact-block ul {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.contact-block ul li a span {
  font-weight: 700;

}

.contact-block ul li a {
  text-decoration: none;
  color: inherit;
}

/*--------------------------------------------------------------
Forms  
--------------------------------------------------------------*/
.nf-next-previous {
  display: inline !important;
}

.nf-field-container {
  margin-bottom: 15px !important;
}

#nf-field-144,
#nf-field-142,
#nf-field-78,
#nf-field-76 {
  width: 75px;
}

.nf-form-content .nf-field-container #nf-field-136-wrap .nf-field-element li,
.nf-form-content .nf-field-container #nf-field-74-wrap .nf-field-element li {
  font-family: var(--as-headings) !important;
}

#nf-label-field-143,
#nf-label-field-144,
#nf-label-field-142,
.nf-field-element h5,
#nf-label-field-78,
#nf-label-field-76,
#nf-label-field-75 {
  font-weight: 700 !important;
  font-family: var(--as-headings);
}

.nf-mp-header h3 {
  text-align: end;
  margin-bottom: -20px;
}

.nf-next-previous,
.nf-breadcrumbs {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.nf-field-element input,
.nf-field-element textarea {
  border: thin solid #CCCCCC;
  border-radius: 10px;
  padding: 1rem;
}

.nf-form-fields-required {
  display: none;
}

.nf-field-label .nf-label-span,
.nf-field-label label {
  font-weight: 400 !important;
}

/*---------- quote styles ----------*/
.energy-use .listradio-wrap .nf-field-element ul li label,
.find-address #nf-label-field-47 {
  cursor: pointer;
}

#nf-label-field-125,
#nf-label-field-47 {
  text-transform: uppercase;
  border-radius: 100px;
  padding: .5rem 2rem;
  min-width: 230px;
  background-color: var(--as-navy);
  border-color: var(--as-navy);
  color: var(--as-yellow);
  margin-left: -40px;
  z-index: 9;

}

.find-address #nf-field-125,
.find-address #nf-field-47 {
  position: relative;
  left: 20px;
}

.energy-use .listradio-wrap .nf-field-element ul li label {
  background-color: var(--as-yellow);
  text-align: center;
  padding: 1rem 3rem;
  border-radius: 10px;
  margin-left: 0px;
  z-index: 9;
  position: relative;
}


.energy-use .listradio-wrap .nf-field-element ul li input.nf-checked+label,
.energy-use .listradio-wrap .nf-field-element ul li label:hover {
  background-color: var(--as-navy);
  color: var(--as-yellow);
}

.energy-use .listradio-wrap .nf-field-element ul li {
  display: inline-block;
  width: 24.7%;
}




/*--------------------------------------------------------------
wp style overrides
--------------------------------------------------------------*/
.wp-block-accordion-item {
  margin-bottom: 5px;
}

.wp-block-accordion-heading {
  background: var(--as-navy);
  border-radius: 20px;
  padding: 1rem 2rem;
  color: var(--as-yellow);
}

.wp-block-accordion-panel {
  background: white;
  border-radius: var(--as-radius);
}

.wp-block-accordion-heading {
  font-size: 1.375rem;
  font-weight: normal;
}

/*
.wp-block-accordion-item .wp-block-accordion-panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    max-height 400ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 250ms linear,
    transform 250ms linear;
}

.wp-block-accordion-item.is-open .wp-block-accordion-panel {
  max-height: 5000px;
  opacity: 1;
  transform: translateY(0);
}

.wp-block-accordion-item:not(.is-open) .wp-block-accordion-panel {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.wp-block-accordion-panel {
  display: block !important;
}
/*--------------------------------------------------------------
Navbar and Navigation
--------------------------------------------------------------*/
.offcanvas-collapse {
  visibility: visible !important;
  margin-top: 20px;

}

.dropdown-item.active,
.dropdown-item:active {
  color: #fff;
  text-decoration: none;
  background-color: #002A5C;
}

.dropdown-item:focus,
.dropdown-item:hover {
  color: #fff;
  text-decoration: none;
  background-color: #002A5C;
}

.dropdown-menu {
  box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.3);
  border: none;
  border-radius: 0;
}

.bg-dark {
  background-color: #fff !important;
}

.navbar-expand-lg .navbar-nav .nav-link {
  padding-right: 1.125rem;
  padding-left: 1.125rem;
  font-size: 1rem;
  font-style: normal;
  text-transform: uppercase;
  color: var(--as-navy);
  border-radius: 100px;
  text-align: center;
}

.navbar-dark .navbar-nav .active>.nav-link,
.navbar-dark .navbar-nav .nav-link.active,
.navbar-dark .navbar-nav .nav-link.show,
.navbar-dark .navbar-nav .show>.nav-link {
  color: var(--as-navy);
  background-color: var(--as-yellow);
}

.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .nav-link:hover {
  color: var(--as-yellow);
  background-color: var(--as-navy);
}

.navbar-toggler .icon-bar {
  transform: rotate(0deg) translate(0px, 0px);
  transition: ease all .2s;
  color: var(--as-navy);
}

.navbar-toggler .icon-bar {
  display: block;
  width: 32px;
  height: 2px;
  border-radius: 0;
}

.navbar-toggler .icon-bar+.icon-bar {
  margin-top: 8px;
}

.navbar-toggler:hover>.icon-bar:nth-child(2) {
  width: 32px;
  transition: ease all .2s;
}

.navbar-toggler:active>.icon-bar:nth-child(2) {
  width: 32px;
  transition: ease all .2s;
}

.navbar-toggler:not(.bend) .icon-bar:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
  transition: ease all .2s;
}

.navbar-toggler:not(.bend) .icon-bar:nth-child(2) {
  opacity: 0;
  transition: ease all .2s;
}

.navbar-toggler:not(.bend) .icon-bar:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
  transition: ease all .2s;
}

.navbar-toggler {
  background: var(--as-yellow);
  border-radius: 999px;
  color: #fff;
}

.navbar-toggler:not(:disabled):not(.disabled) {
  padding: 17px 13px 17px 13px;
  outline: none;
  border: none;
  /* border-radius:2px;*/
  z-index: 2;
}

.navbar-toggler .icon-bar {
  background-color: var(--as-navy);
}

/*--------------------------------------------------------------
# back to top
--------------------------------------------------------------*/
/*--------------------------------------------------------------
# footer
--------------------------------------------------------------*/
.breadcrumb a {
  text-decoration: none;
  color: var(--as-navy);
  font-weight: bold;
}

.footer-links .footer-row {
  background: var(--as-navy);
  border-radius: var(--as-radius);
  color: var(--as-grey);
  font-style: normal;
}

.footer-links .footer-row a {
  color: inherit;
  text-decoration: none;
  font-style: normal;
  text-transform: capitalize;
  line-height: 1.75rem;

}

.footer-links ul.contact-details li a {
  text-transform: none;
}

.footer-links ul {
  list-style: none;
  padding-left: 0;
}

#nav_menu-2,
#nav_menu-3,
#block-4,
#block-3,
#block-2 {
  margin: 0 auto;
  justify-content: center;
  display: flex;
}

.footer-image-logo {
  margin-top: -2rem;
}

/*--------------------------------------------------------------
# tabs
--------------------------------------------------------------*/
/*--------------------------------------------------------------
# break points
--------------------------------------------------------------*/
@media (max-width:1559px) {}

/*--------------------------------------------------------------
# max-width:1280px
--------------------------------------------------------------*/
@media (max-width:1280px) {
  .gx-5 {
    --bs-gutter-x: 2rem;
    /* override BS  */
  }

  .mt-6 {
    margin-top: 2rem;
  }

  .max-margin {
    margin-top: 100px;
  }

  #nav_menu-2,
  #nav_menu-3,
  #block-4,
  #block-3,
  #block-2 {
    justify-content: left;
  }

  .footer-image-logo {
    margin-top: 0;
  }
}

/*--------------------------------------------------------------
# max-width:992px
--------------------------------------------------------------*/
@media (max-width:992px) {
  .offcanvas-collapse {
    position: fixed;
    top: -20px;
    /* Height of navbar */
    bottom: 0;
    right: 100%;
    left: -100%;
    width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
    overflow-y: auto;
    visibility: hidden;
    /*background-color: var(--darkgrey);*/
    background-color: #F4F6F6;
    transition-timing-function: ease-in-out;
    transition-duration: .5s;
    transition-property: left, visibility;
    padding-top: 150px;
  }

  .offcanvas-collapse.open {
    left: 0;
    visibility: visible;
  }

  .max-margin {
    margin-top: 0;
  }
}

/*--------------------------------------------------------------
# max-width:768px
--------------------------------------------------------------*/
@media (max-width:768px) {
  .hero br {
    display: none;
  }

  .hero p {
    font-size: 1rem;
  }

  .align-copy {
    text-align: left;
  }

  ul.split-list {
    columns: 1;
  }

  .energy-use .listradio-wrap .nf-field-element ul li {
    width: 48%;
  }

  .nf-next-previous li.nf-previous-item,
  .nf-next-previous li.nf-next-item {
    float: none !important;
  }

  .nf-previous-item>.nf-previous,
  .nf-next-item .nf-next {
    width: 100%;
    margin-block: 0.5rem;
  }
}

/*--------------------------------------------------------------
# max-width:596px
--------------------------------------------------------------*/
@media (max-width:596px) {}

/* Small devices (landscape phones,576px and up)*/
@media (max-width:576px) {
  img.custom-logo {
    width: 190px;
    height: auto;
  }

  .hero {
    margin-top: var(--as-top-margin-mobile);
  }

  #nf-field-140-wrap ul li {
    min-height: 40px;
  }

  #nf-field-136-container ul li {
    min-height: 60px;
  }
}

@media (max-width:480px) {
  .energy-use .listradio-wrap .nf-field-element ul li {
    width: 100%;
  }
}

/* Medium devices (tablets,768px and up)*/
@media (min-width:768px) {}

/*Large devices (desktops,992px and up)*/
@media (min-width:992px) {}

/* Extra large devices (large desktops,1200px and up)*/
@media (min-width: 1200px) {

  .h1,
  h1,
  h2 {
    font-size: 3rem;
  }

  .h3,
  h3 {
    font-size: 1.75rem;
  }

  .h4,
  h4 {
    font-size: 1.25rem;
  }
}