/*
 Theme Name:   BDS Fuels
 Description:  Bootscore Child Theme
 Author:       Bootscore
 Author URI:   https://bootscore.me
 Template:     bootscore
 Version:      6.0.0
 Requires at least: 5.0
 Tested up to: 6.6
 Requires PHP: 7.4
 License: MIT License
 License URI: https://github.com/bootscore/bootscore-child/blob/main/LICENSE
 Text Domain:  bootscore
*/
/* 
All style editing is done via /assets/scss/_bootscore_custom.scss
*/
:root {
  --hero-padding-top-axis: clamp(140px, 16vw, 250px);
  --hero-padding-bottom-axis: clamp(100px, 18vw, 220px);

  --bds-padding-y-axis-lg: clamp(50px, 9vw, 160px);
  --bds-padding-y-axis-sm: clamp(50px, 6vw, 75px);

  --bds-padding-y-axis: clamp(50px, 6vw, 100px);
  --bds-padding-x-axis: clamp(15px, 5.2vw, 100px);

  --bds-body-padding-x-axis: clamp(15px, 5.2vw, 160px);

  --bds-red: #ed1b2e;
  --bds-dark-red: #cf1221;

  --bds-dark-blue: #111c33;

  --bds-white: white;
  --bds-light-grey: #c9c9c9;
  --bds-light-grey-2: #b1b1b1;

  --bds-dark-grey: #403a3a;
  --bds-dark-grey-2: #2b2626;

  --body-font: clamp(1.1rem, 2.2vw, 1.3rem);
  --pre-heading-font: clamp(1.2rem, 3.6vw, 2rem);

  --xs-font: clamp(1.5rem, 3.6vw, 2rem);
  --sm-font: clamp(1.75rem, 4.2vw, 2.5rem);
  --md-font: clamp(2rem, 4.8vw, 3rem);
  --lg-font: clamp(2.25rem, 5.4vw, 3.5rem);
  --xl-font: clamp(2.5rem, 6vw, 5.5rem);

  --xl-super-font: clamp(3.3rem, 7vw, 6.5rem);

  --font-family-inter: "Inter", sans-serif;
}

@media (min-width: 1024px) {
  :root {
    --bds-body-padding-x-axis: clamp(15px, 8vw, 160px);
  }
}

.page-template-quote-page,
.page-template-contact-page,
.page-template-order-lpg,
.page-template-order-wood-pellets,
.single-news {
  --hero-padding-bottom-axis: clamp(140px, 18vw, 220px);
}

body {
  font-family: var(--font-family-inter);
  letter-spacing: -0.5px;
  line-height: 170%;
}

/* Change :not to real class if woocommerce is active, add the :not to all body css */
body:not(.woocommercePagesExample) h1,
body:not(.woocommercePagesExample) h2,
body:not(.woocommercePagesExample) h3,
body:not(.woocommercePagesExample) h4,
body:not(.woocommercePagesExample) h5 {
  font-weight: 800;
  margin: 30px 0;
}

body p,
body li:not(.menu-item) {
  margin: 20px 0;
}

body a {
  font-weight: 700;
  text-decoration: none;
}

body hr {
  margin: 30px 0;
}

body .xl-super-font {
  font-size: var(--xl-super-font);
  line-height: 110%;
}

body h1,
body .xl-font {
  font-size: var(--xl-font);
}

body h2,
body .lg-font {
  font-size: var(--lg-font);
  line-height: 120%;
}

body h3,
body .md-font {
  font-size: var(--md-font);
  line-height: 120%;
}

body h4,
body .sm-font {
  font-size: var(--sm-font);
  line-height: 120%;
}

body h5,
body .xs-font {
  font-size: var(--xs-font);
  line-height: 140%;
}

.preHeading {
  font-size: var(--pre-heading-font);
}

body p,
body li,
body a,
body div,
body .body-font {
  font-size: var(--body-font);
}

@media (min-width: 1024px) {
  body h2,
  body .lg-font {
    line-height: 110%;
  }
}

svg,
span,
a,
button {
  transition-duration: 0.1s;
}

.body-font-sm {
  font-size: var(--body-font-sm);
}

body span {
  font-size: inherit;
}

.padding-left-x {
  padding-left: var(--bds-padding-x-axis);
}

.padding-right-x {
  padding-right: var(--bds-padding-x-axis);
}

.padding-top-y {
  padding-top: var(--bds-padding-y-axis);
}

.padding-bottom-y {
  padding-bottom: var(--bds-padding-y-axis);
}

.padding-top-y-lg {
  padding-top: var(--bds-padding-y-axis-lg) !important;
}

.padding-bottom-y-lg {
  padding-bottom: var(--bds-padding-y-axis-lg) !important;
}

.padding-top-y-sm {
  padding-top: var(--bds-padding-y-axis-sm) !important;
}

.padding-bottom-y-sm {
  padding-bottom: var(--bds-padding-y-axis-sm) !important;
}

.bds-global ul {
  padding-left: 35px;
}

.bds-global ul li {
  position: relative;
  list-style-type: none;
}

.bds-global ul li::before {
  content: "";
  position: absolute;
  top: 5px;
  left: -35px;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3C!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--%3E%3Cpath d='M0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM241 377c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l87-87-87-87c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0L345 239c9.4 9.4 9.4 24.6 0 33.9L241 377z'/%3E%3C/svg%3E");
  background-color: var(--bds-red);
  width: 20px;
  height: 20px;
}

/* -----------
  Text Colours
--------------*/
.redText {
  color: var(--bds-red);
}

.whiteText {
  color: white;
}

.greyText {
  color: #828282 !important;
}

/* -----------------
  Background Colours
--------------------*/
.darkBlueBg {
  background-color: var(--bds-dark-blue);
  color: #f2f2f2;
}

.darkBlueBg a,
.darkBlueBg span {
  color: white !important;
}

.lightGreyBg,
.curveTopLightGrey::before,
.curveBottomLightGrey::after {
  background-color: #eeeeee !important;
}

/* ------------
  Button Styles
---------------*/
.solidRedBtn,
.solidDarkGreyBtn,
.outlineLightGreyBtn,
.outlineDarkGreyBtn {
  display: flex;
  position: relative;
  padding: 20px clamp(15px, 4vw, 30px);
  max-width: 400px;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 1px 2px 10px rgba(0, 0, 0, 0.2);
}

.solidRedBtn span,
.solidDarkGreyBtn span,
.outlineLightGreyBtn span,
.outlineDarkGreyBtn span {
  position: relative;
  z-index: 1;
  font-weight: 600;
  text-wrap: balance;
  display: block;
}

.solidRedBtn::before,
.solidDarkGreyBtn::before,
.outlineLightGreyBtn::before,
.outlineDarkGreyBtn::before {
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg fill='white' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3C!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--%3E%3Cpath d='M502.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-128-128c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l370.7 0-73.4 73.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l128-128z'/%3E%3C/svg%3E");
  background-position: center;
  background-size: 26px;
  background-repeat: no-repeat;
  position: absolute;
  z-index: 2;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 101%;
  transform: translateY(100%);
  transition-duration: 0.1s;
}

.solidRedBtn:hover::before,
.solidDarkGreyBtn:hover::before,
.outlineLightGreyBtn:hover::before,
.outlineDarkGreyBtn:hover::before {
  transform: translateY(0);
  bottom: 0;
}

.solidRedBtn::after,
.solidDarkGreyBtn::after,
.outlineLightGreyBtn::after,
.outlineDarkGreyBtn::after {
  display: none;
  content: none;
}

.solidRedBtn {
  background-color: var(--bds-red);
  color: white !important;
}

.solidRedBtn::before {
  background-color: var(--bds-dark-red);
}

.solidDarkGreyBtn {
  background-color: var(--bds-dark-grey);
  color: white !important;
}

.solidDarkGreyBtn::before {
  background-color: var(--bds-dark-grey-2);
}

.outlineLightGreyBtn {
  border: 2px solid var(--bds-light-grey);
  color: var(--bds-light-grey) !important;
}

.outlineLightGreyBtn::before {
  background-color: var(--bds-light-grey);
}

.outlineDarkGreyBtn {
  border: 2px solid var(--bds-dark-grey);
  color: var(--bds-dark-grey) !important;
}

.outlineDarkGreyBtn::before {
  background-color: var(--bds-dark-grey);
}

/* -------------------
  Underline Animation 
----------------------*/
.underlineAnim,
ul#bootscore-navbar > li.menu-item a,
.footerMenu ul.menu > li.menu-item a {
  position: relative;
  display: inline-block;
  width: fit-content;

  &::before {
    content: "";
    position: absolute;
    width: 100%; /* Set full width but scale controls visibility */
    height: 2px;
    background-color: var(--bds-red);
    bottom: -2px;
    transform: scaleX(0); /* Start invisible */
    transform-origin: left; /* Animation grows/shrinks from left */
    transition: transform 0.2s cubic-bezier(0.25, 0.1, 0.25, 1); /* Smooth animation */
  }

  &:hover::before {
    transform: scaleX(1); /* Grows to full width */
  }

  &:not(:hover)::before {
    transform: scaleX(0); /* Shrinks back to the left */
    transform-origin: right;
  }
}

.underlineLink,
.bds-global a,
.footerDetails a {
  position: relative;
  display: inline-block;
  color: var(--bds-dark-blue);
}

.underlineLink::after,
.bds-global a::after,
.footerDetails a::after {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--bds-red);
  border-radius: 10px;
  transition-duration: 0.1s;
  transform-origin: top;
}

.underlineLink:hover::after,
.bds-global a:hover::after,
.footerDetails a:hover::after {
  background-color: var(--bds-dark-red);
  transform: scaleY(1.5);
}

.noticeArea {
  padding: clamp(15px, 4vw, 30px);
  border-radius: 10px;
}

.noticeArea > strong:first-of-type {
  font-style: italic;
}

.darkBlueBg .noticeArea {
  background-color: rgba(255, 255, 255, 0.1);
}

.afterNone::after {
  content: none !important;
}

/* -----
  Header
--------*/

.navbarTop {
  background-color: var(--bds-dark-blue);
  color: var(--bds-light-grey-2);
  padding: 15px var(--bds-padding-x-axis);
  border-bottom: 1px solid var(--bds-light-grey-2);
}

.navbarTop,
.navbarTop * {
  font-size: clamp(0.9rem, 1vw, 1rem);
}

.navbarTop a span,
.navbarTop a svg {
  color: var(--bds-light-grey-2);
  fill: var(--bds-light-grey-2);
}

.navbarTop a:hover span,
.navbarTop a:hover svg {
  color: white;
  fill: white;
}

.navbarTop svg {
  width: clamp(22px, 1vw, 26px);
  height: clamp(22px, 1vw, 26px);
}

.offcanvas-body {
  padding-bottom: 100px;
}

.offcanvasSeperator {
  border-top: 2px solid white;
}

.offcanvasEmergency,
.offcanvasEmergency svg {
  color: white;
  fill: white;
}

.offcanvasDetails {
  border-bottom: none;
}

.offcanvasDetails p,
.offcanvasDetails a {
  margin: 0;
  color: var(--bds-light-grey);
  font-size: 1rem;
}

.header-actions {
  margin-top: 13px;
}

.header-actions .solidRedBtn {
  padding: clamp(7.5px, 0.8vw, 15px) clamp(10px, 2.2vw, 45px);
  font-size: clamp(0.9rem, 1.4vw, 1.3rem);
}

#masthead {
  z-index: 1000;
  width: 100vw;
}

.defaultHeader {
  background-color: var(--bds-dark-blue) !important;
}

#nav-main {
  padding: 10px var(--bds-padding-x-axis) 20px var(--bds-padding-x-axis);
}

#bootscore-navbar {
  display: flex;
  column-gap: clamp(30px, 2vw, 40px);
  row-gap: 15px;
}

#bootscore-navbar li.menu-item a.nav-link,
#footer-menu > li.menu-item a {
  color: white;
  font-weight: 700;
  padding: 0;
}

a.navbar-brand .bdsLogo {
  max-width: clamp(80px, 12vw, 175px);
  width: 100%;
  height: 100%;
  transition-duration: 0.1s;
}

.closeBtn,
.nav-toggler,
.phoneBtn {
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  background: none;
}

.closeBtn svg,
.nav-toggler svg,
.phoneBtn svg {
  transition-duration: 0.1s;
}

.closeBtn svg,
.nav-toggler svg,
.phoneBtn svg {
  fill: var(--bds-light-grey) !important;
}

.closeBtn:hover svg,
.nav-toggler:hover svg,
.phoneBtn:hover svg {
  fill: white !important;
}

#offcanvas-navbar {
  top: 0;
  height: 100vh;
  transition-duration: 0.2s !important;
}

.offcanvas-header .bdsLogo {
  width: 90px;
}

@media (max-width: 1399px) {
  #offcanvas-navbar {
    background-color: var(--bds-dark-blue);
  }

  #bootscore-navbar {
    flex-direction: column;
  }

  #bootscore-navbar li.menu-item a.nav-link {
    font-size: 1.3rem;
    width: 100%;
  }
}

@media (min-width: 1400px) {
  #offcanvas-navbar {
    background-color: var(--bds-dark-blue);
    margin-top: 13px;
    margin-right: clamp(30px, 2vw, 40px);
  }

  #bootscore-navbar {
    flex-direction: row;
  }
}

/* -------
  Homepage
----------*/
.homeHero,
.cmsHero {
  background-image: linear-gradient(
      170deg,
      var(--bds-dark-blue),
      var(--bds-dark-blue) 30%,
      transparent
    ),
    url(/wp-content/themes/bds-fuels/assets/img/hero-home.webp);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: bottom;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
}

.cmsHero {
  min-height: clamp(40vh, 45vw, 80vh);
  padding: var(--hero-padding-top-axis) var(--bds-body-padding-x-axis)
    var(--hero-padding-bottom-axis) var(--bds-body-padding-x-axis);
  align-items: center;
}

.cmsHero div h1 {
  max-width: 1000px;
  text-wrap: balance;
}

.cmsHero div p {
  max-width: 810px;
  font-weight: 600;
}

.cmsHero div p:last-of-type {
  margin-bottom: 0;
}

.cmsHero div h1 {
  margin: 0;
}

.homeHero {
  min-height: clamp(95vh, 60vw, 110vh);
  align-items: flex-start;
  padding: 120px var(--bds-body-padding-x-axis) var(--bds-padding-y-axis)
    var(--bds-body-padding-x-axis);
  position: relative;
}

.homeHero div,
.cmsHero div {
  color: white;
}

.homeHero div h1,
.homeHero div h2,
.cmsHero h1 {
  text-wrap: balance;
}

.homeHero div h1 {
  font-weight: 800;
  max-width: 10ch;
}

.homeHero div h1 span {
  font-style: italic;
  font-size: inherit;
}

.homeHero div h2 {
  font-size: clamp(2.2rem, 3vw, 2.8rem);
  max-width: 21ch;
}

.homeHero div h2,
.homeHero div .solidRedBtn {
  margin-top: clamp(30px, 3vw, 40px);
}

.homeHero div .solidRedBtn {
  padding: 20px clamp(15px, 4vw, 30px);
  max-width: 400px;
}

.homeHero div .solidRedBtn span {
  font-size: clamp(1.2rem, 4vw, 1.4rem);
}

.homeHero div .solidRedBtn svg {
  fill: white;
  width: 30px;
  height: 30px;
}

.lpgDelivery {
  background-image: url(/wp-content/themes/bds-fuels/assets/img/fire-bg.webp);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: bottom right;
  padding-bottom: 250px !important;
}

@media (min-width: 768px) {
  .homeHero {
    align-items: center;
    padding: var(--bds-padding-y-axis) var(--bds-body-padding-x-axis);
  }

  .lpgDelivery {
    background-size: 70%;
    background-position: 100% 50%;
  }

  .lpgDelivery .textContent {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 15px;
    box-shadow: 8px 2px 28px rgba(0, 0, 0, 0.1);
  }
}

.preHeading,
.preImage {
  margin: 0 0 15px 0 !important;
}

.mediaRightBlock,
.mediaLeftBlock {
  display: grid;
  grid-template-columns: 1fr;
  padding: var(--bds-padding-y-axis) 0;
  row-gap: 40px;
}

.mediaRightBlock > div:first-of-type,
.mediaLeftBlock > div:first-of-type {
  padding: 0 var(--bds-body-padding-x-axis);
}

.textContent > h2:first-of-type {
  margin-top: 0px;
  text-wrap: balance;
}

.textContentLogo {
  max-width: clamp(80px, 12vw, 140px);
  margin-bottom: 30px;
}

.mediaRightBlock .mediaContent,
.mediaLeftBlock .mediaContent {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blobMaskRight,
.blobMaskLeft {
  position: relative;
}

.mediaContent {
  padding: 0 15px;
}

.blobMaskRight::before,
.blobMaskLeft::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: #d9d9d9;
  top: 15px;
}

.blobMaskRight img,
.blobMaskLeft img,
.blobMaskRight .fadingSlider,
.blobMaskLeft .fadingSlider,
.blobMaskRight::before,
.blobMaskLeft::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' id='Layer_2' data-name='Layer 2' viewBox='0 0 77.22 61.33'%3E%3Cdefs%3E%3Cstyle%3E .cls-1 %7B fill: url(%23linear-gradient); %7D %3C/style%3E%3ClinearGradient id='linear-gradient' x1='-213.34' y1='284.21' x2='-212.35' y2='285.19' gradientTransform='translate(16726.93 17758.34) scale(78.4 -62.26)' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%23000'/%3E%3Cstop offset='1' stop-color='%23000'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg id='sw-js-blob-svg'%3E%3Cpath class='cls-1' d='M71.02,7.37c6.8,7.19,7.78,20.29,4.04,30.73-3.64,10.44-12.02,18.22-21.08,21.47-9.06,3.15-18.91,1.77-29.45-1.87C13.99,54.06,2.57,48.25,.4,39.97-1.77,31.7,5.23,20.86,13.2,13.48,21.18,6.09,30.05,1.95,40.88,.57c10.74-1.48,23.34-.39,30.14,6.8Z'/%3E%3C/g%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-size: contain;
  mask-position: center;
}

.blobMaskRight img,
.blobMaskLeft img {
  min-height: clamp(300px, 35vw, 650px);
}

.blobMaskLeft {
  transform: scaleX(-1);
}

.blobMaskLeft .splide__list {
  transform: scaleX(-1);
}

.curveTop,
.curveBottom {
  position: relative;
  overflow: hidden;
}

.curveTop::before,
.curveBottom::after {
  content: "";
  position: absolute;
  z-index: 1;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' id='Layer_2' data-name='Layer 2' viewBox='0 0 2000 140'%3E%3Cg id='Layer_1-2' data-name='Layer 1'%3E%3Cpath class='cls-1' d='M0,62.22l166.67,10.35c166.67,10.55,500,30.97,833.33,20.76,333.33-10.21,666.67-52.01,833.33-72.58L2000,0V140H0V62.22Z'/%3E%3C/g%3E%3C/svg%3E");
  width: 110%;
  height: 50%;
  left: -5px;
  background-color: white;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: left bottom;
}

.curveTop::before {
  top: -2px;
  transform: scaleY(-1);
}

.curveBottom::after {
  bottom: -2px;
}

.curveTop > div,
.curveBottom > div {
  position: relative;
  z-index: 2;
}

@media (max-width: 1023px) {
  .mediaRightBlock > div:last-of-type,
  .mediaLeftBlock > div:last-of-type {
    order: -1;
  }
}

@media (min-width: 1024px) {
  .mediaRightBlock,
  .mediaLeftBlock {
    grid-template-columns: 1fr 1fr;
  }

  .mediaLeftBlock > div:first-of-type {
    order: 2;
  }
}

.leftTextBlock {
  padding: var(--bds-padding-y-axis) var(--bds-body-padding-x-axis);
}

.leftTextBlock .textContent {
  max-width: 700px;
  width: 100%;
}

.bsl-enplus-logos img {
  max-height: 100px;
  max-width: clamp(91px, 9vw, 170px);
  width: 100%;
}

.centeredSectionContainer {
  padding: var(--bds-padding-y-axis-sm) var(--bds-body-padding-x-axis)
    var(--bds-padding-y-axis) var(--bds-body-padding-x-axis);
}

.centeredSectionInner {
  max-width: 1200px;
}

.testimonialSliderContainer {
  background-color: #f3f3f3;
  border-radius: 10px;
  box-shadow: 1px 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonialSliderContainer .splide__slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.testimonialCard {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(30px, 4vw, 80px);
}

.reviewContent,
.reviewerDetails strong {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

.reviewContent {
  line-height: 150%;
}

.googleReviewLogo {
  max-width: clamp(150px, 25vw, 250px);
  transition-duration: 0.1s;
}

.googleReviewLogo:hover {
  transform: scale(1.05);
}

.googleReviewLogo:active {
  transform: scale(0.95);
}

.formSection {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px var(--bds-body-padding-x-axis) var(--bds-padding-y-axis)
    var(--bds-body-padding-x-axis);
}

.formSection .gform_wrapper {
  margin-top: -120px;
  position: relative;
  z-index: 100;
}

@media (min-width: 768px) {
  .formSection .gform_wrapper {
    margin-top: -160px;
  }
}

@media (min-width: 1024px) {
  .formSection .gform_wrapper {
    margin-top: -200px;
  }
}

.page-template-quote-page .gform_heading,
.page-template-contact-page .gform_heading {
  display: none;
}

.gform_wrapper {
  background-color: white;
  max-width: 800px;
  width: 100%;
  padding: clamp(30px, 4vw, 60px);
  border: 2px solid rgba(0, 0, 0, 0.1);
  box-shadow: 1px 2px 20px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.gform_wrapper .gform_fields {
  row-gap: 30px !important;
}

.gform_wrapper .gform_fields .gfield_description,
.gform_wrapper .gform_fields .gfield_required,
.gform_validation_errors > h2.gform_submission_error {
  font-size: clamp(0.9rem, 3vw, 1.1rem) !important;
}

.gform_wrapper .gform_fields .gfield_required,
.gform_wrapper .gform_fields .validation_message,
.gform_wrapper .gform_fields .gfield_required,
.gform_validation_errors > h2.gform_submission_error {
  color: var(--bds-red) !important;
}

.gform_wrapper .gform_fields input[type="text"],
.gform_wrapper .gform_fields input[type="email"],
.gform_wrapper .gform_fields input[type="tel"],
.gform_wrapper .gform_fields input[type="number"],
.gform_wrapper .gform_fields select,
.gform_wrapper .gform_fields textarea,
.gform_wrapper .gform_fields .gform-field-label,
.gform_wrapper .gform-footer .gform_button {
  font-size: var(--body-font) !important;
}

.gform_wrapper .gform_fields .gfield_label,
.gform_confirmation_message {
  font-size: clamp(1.2rem, 4vw, 1.4rem) !important;
  font-weight: 700 !important;
  color: var(--bds-dark-blue) !important;
  line-height: 130%;
}

.gform_wrapper .gform_fields input[type="text"],
.gform_wrapper .gform_fields input[type="email"],
.gform_wrapper .gform_fields input[type="tel"],
.gform_wrapper .gform_fields input[type="number"],
.gform_wrapper .gform_fields select,
.gform_wrapper .gform_fields textarea {
  padding: 10px 15px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: inset 1px 2px 5px rgba(0, 0, 0, 0.1) !important;
}

.gform_wrapper .gform_fields input[type="text"],
.gform_wrapper .gform_fields input[type="email"],
.gform_wrapper .gform_fields input[type="tel"],
.gform_wrapper .gform_fields input[type="number"],
.gform_wrapper .gform_fields select {
  height: clamp(50px, 3vw, 55px) !important;
}

.gform_wrapper .gform-footer .gform_button {
  background-color: var(--bds-red) !important;
  color: white !important;
  padding: 20px clamp(15px, 4vw, 30px) !important;
  width: 100% !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  transition-duration: 0.1s !important;
}

.gform_wrapper .gform-footer .gform_button:hover {
  background-color: var(--bds-dark-red) !important;
}

.gform_validation_errors {
  border-radius: 10px !important;
}

.gform_validation_errors > h2.gform_submission_error {
  margin: 0 !important;
}

#gform_wrapper_3 .gform_heading .gform_description,
#gform_wrapper_4 .gform_heading .gform_description {
  margin-top: 0;
  padding: 30px 15px;
  background-color: var(--bds-dark-blue);
  color: white;
  border-radius: 10px;
  font-weight: 600;
}

@media (min-width: 768px) {
  .gform_wrapper .gform-footer .gform_button {
    max-width: 300px !important;
    margin-left: auto !important;
  }
}

/* ----------------
  Single text Block
-------------------*/

.singleTextBlock {
  padding: var(--bds-padding-y-axis) var(--bds-body-padding-x-axis);
}

.singleTextBlock > div {
  max-width: 800px;
  gap: 30px;
  display: flex;
}

.singleTextBlock > div > * {
  margin: 0 !important;
}

.singleTextBlock > div > h2:first-of-type {
  text-wrap: balance;
}

.singleTextBlock .bdsLogo,
.singleTextImage {
  width: auto;
  height: auto;
  object-fit: contain;
}

.singleTextBlock .bdsLogo {
  max-height: clamp(80px, 12vw, 140px);
  height: 100%;
}

.singleTextImage {
  max-height: 600px;
  margin-top: 30px;
}

.textContentInner > :first-child {
  margin-top: 0;
}

.singleTextLeft {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.singleTextLeft .singleTextBlock .bdsLogo,
.singleTextLeft .singleTextImage {
  object-position: left;
}

.singleTextCenter,
.singleTextCenter > div {
  display: flex;
  justify-content: center;
  align-items: center;
}

.singleTextCenter > div,
.singleTextLeft > div {
  flex-direction: column;
  align-items: flex-start;
}

.singleTextCenter .bdsLogo,
.singleTextCenter .singleTextImage,
.singleTextCenter > div > a {
  margin: 0 auto !important;
}

.singleTextCenter > div > h2 {
  text-align: center;
}

.singleTextcenter .singleTextImage {
  object-position: center;
}

/* --------------
  Accordion Block
-----------------*/
.accordionContainer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--bds-padding-y-axis) var(--bds-body-padding-x-axis);
  gap: 20px;
}

.accordionIntro {
  max-width: 800px;
  text-align: center;
}

.accordionIntro > p:last-of-type {
  margin-bottom: 30px;
}

.cmsAccordion {
  max-width: 1000px;
  width: 100%;
  border-radius: 10px;
  box-shadow: 1px 2px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.accordion-item {
  border-color: rgba(0, 0, 0, 0.2);
}

.accordion-item:first-of-type,
.accordion-item:first-of-type .accordion-button {
  border-radius: 10px 10px 0 0 !important;
}

.accordion-item:last-of-type,
.accordion-item:last-of-type .accordion-button.collapsed,
.accordion-item:last-of-type .accordion-collapse.show .accordion-body {
  border-radius: 0 0 10px 10px !important;
}

.accordion-header {
  margin: 0 !important;
}

.accordion-button {
  background-color: #f2f2f2;
  color: var(--bds-dark-blue);
  padding: clamp(20px, 2vw, 30px) 20px;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  line-height: 160%;
  font-weight: 700;
  transition-duration: 0.1s;
}

.accordion-button:hover {
  background-color: #e2e2e2;
}

.accordion-button:not(.collapsed) {
  background-color: var(--bds-dark-blue);
  color: white;
}

.accordion-button:not(.collapsed):hover {
  background-color: #1b2b4e;
}

.accordion-button:not(.collapsed)::after {
  filter: invert() brightness(5);
}

.accordion-body {
  background-color: #f8f8f8;
}

/* ---------------------------
  Text & Button Callout Banner
------------------------------*/
.textAndButtonCalloutBanner {
  background-color: var(--bds-red);
  color: white;
  padding: 40px var(--bds-padding-x-axis);
  background-image: url("/wp-content/themes/bds-fuels/assets/img/bds-hero.webp");
  background-blend-mode: color-dodge;
  background-size: cover;
  background-position: center;
}

.textAndButtonCalloutBanner h3 {
  text-align: center;
  text-wrap: balance;
  max-width: 18ch;
}

/* ------------
  Why choose us 
---------------*/

.whyChooseUsContainer {
  padding: var(--bds-padding-y-axis) var(--bds-padding-x-axis);
}

.whyChooseUsBanner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.whyChooseUsSection {
  padding: clamp(30px, 4vw, 60px) 0;
  border-bottom: 2px solid var(--bds-dark-blue);
  filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.1));
  transition-duration: 0.1s;
}

.whyChooseUsSection:hover {
  transform: scale(1.01);
}

.whyChooseUsIcon {
  padding: 15px;
  border-radius: 60px;
}

.whyChooseUsGroup:first-of-type
  .whyChooseUsSection:first-of-type
  .whyChooseUsIcon,
.whyChooseUsGroup:last-of-type
  .whyChooseUsSection:last-of-type
  .whyChooseUsIcon {
  background-color: var(--bds-red);
}

.whyChooseUsGroup:first-of-type
  .whyChooseUsSection:last-of-type
  .whyChooseUsIcon,
.whyChooseUsGroup:last-of-type
  .whyChooseUsSection:first-of-type
  .whyChooseUsIcon {
  background-color: var(--bds-dark-blue);
}

.whyChooseUsGroup:last-of-type .whyChooseUsSection:last-of-type {
  border-bottom: none;
}

.whyChooseUsSection svg {
  width: clamp(30px, 4vw, 60px);
  height: clamp(30px, 4vw, 60px);
  fill: #f2f2f2;
}

@media (max-width: 767px) {
  .verticalDivider {
    display: none;
  }

  .whyChooseUsGroup:first-of-type .whyChooseUsSection:first-of-type {
    padding-top: 0;
  }

  .whyChooseUsGroup:last-of-type .whyChooseUsSection:last-of-type {
    padding-bottom: 0;
  }
}

@media (min-width: 768px) {
  .whyChooseUsBanner {
    grid-template-columns: 1fr 0fr 1fr;
  }

  .whyChooseUsGroup:first-of-type {
    margin-top: 100px;
  }

  .whyChooseUsGroup .whyChooseUsSection:last-of-type {
    border-bottom: none;
  }

  .verticalDivider {
    grid-area: 1 / 2 / 3 / 3;
    width: 2px;
    height: 100%;
    background-color: var(--bds-dark-blue);
  }
}

/* ---------------
  Latest News Home
------------------*/
.latestNewsHome {
  padding: var(--bds-padding-y-axis) var(--bds-body-padding-x-axis);
}

/* -----------
  Archive page
--------------*/

.archiveCardsContainer {
  padding: var(--bds-padding-y-axis) var(--bds-body-padding-x-axis);
}

.cardContainer {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: clamp(15px, 3vw, 30px);
  row-gap: 30px;
}

.cardVertical {
  display: flex !important;
  flex-direction: column;
  gap: 15px;
  padding: clamp(15px, 3vw, 20px);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.1) !important;
  background-color: white;
  text-decoration: none !important;
  transition-duration: 0.1s;
}

.cardVertical::after {
  content: none !important;
}

.cardVertical .cardBody {
  height: 100%;
}

.cardVertical:hover {
  transform: translateY(-4px);
  box-shadow: 1px 2px 10px rgba(0, 0, 0, 0.2) !important;
}

.cardVertical * {
  color: #222;
}

.cardVertical .featuredImageContainer img {
  max-width: 100%;
  object-fit: cover;
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.cardVertical h3 {
  line-height: 120%;
  margin: 5px 0 10px 0 !important;
  color: var(--bds-red);
}

.cardVertical strong,
.cardVertical p {
  margin-top: 10px;
}

.cardVertical p,
.cardVertical span {
  font-weight: 500;
}

@media (min-width: 576px) {
  .cardContainer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .cardContainer {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.newsContent {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 var(--bds-body-padding-x-axis) var(--bds-padding-y-axis)
    var(--bds-body-padding-x-axis);
}

.single-archive-post {
  background-color: white;
  padding: clamp(30px, 4vw, 60px);
  border: 2px solid rgba(0, 0, 0, 0.1);
  box-shadow: 1px 2px 20px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  max-width: 1000px;
  margin-top: -120px;
  position: relative;
  z-index: 100;
}

.single-archive-post .featuredImageContainer img {
  max-width: 100%;
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: cover;
  border-radius: 10px;
  aspect-ratio: 16/9;
  object-position: 50% 25%;
}

.single-archive-post hr {
  margin: 30px 0;
  background-color: #ccc;
  height: 1px;
  border: none;
}

@media (min-width: 768px) {
  .single-archive-post {
    margin-top: -160px;
  }
}

@media (min-width: 1024px) {
  .single-archive-post {
    margin-top: -200px;
  }
}

#footer {
  border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.footerMain {
  position: relative;
  padding: var(--bds-padding-y-axis) var(--bds-body-padding-x-axis);
  background-color: var(--bds-dark-blue);
  color: white;
  overflow: hidden;
}

.footerMain::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("/wp-content/themes/bds-fuels/assets/img/bds-hero.webp");
  background-size: cover;
  background-repeat: repeat;
  background-blend-mode: luminosity;
  background-position: center;
  opacity: 0.1;
  background-color: var(--bds-dark-blue);
}

.footerMenu,
.footerDetails {
  position: relative;
  z-index: 1;
}

.footerMenu {
  flex-grow: 1;
}

.footerMenu ul.menu {
  display: flex;
  flex-direction: column;
  row-gap: clamp(15px, 2vw, 18px);
  justify-content: center;
  align-items: center;
  position: relative;
}

.footerMenu ul.menu,
.footerMenu h2.widget-title {
  text-align: center;
}

.footerMenu ul.menu > li.menu-item a,
.footerMenu h2.widget-title {
  font-size: clamp(1.3rem, 1.4vw, 1.5rem);
}

.footerMenu h2.widget-title {
  font-weight: 800;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0;
}

.footerMenu ul.menu > li.menu-item a {
  font-weight: 700;
}

.footerMenu ul.menu > li.menu-item a,
.footerDetails p,
.footerDetails a {
  color: white;
}

.footerMain .bdsLogo {
  max-width: clamp(125px, 14vw, 175px);
  width: 100%;
  height: 100%;
}

.socialIcon {
  background-color: white;
  padding: 10px;
  border-radius: 50px;
}

.socialIcon::after {
  content: none;
  display: none;
}

.socialIcon,
.socialIcon svg {
  transition-duration: 0.1s;
}

.socialIcon svg {
  width: clamp(24px, 2vw, 30px);
  height: clamp(24px, 2vw, 30px);
  fill: var(--bds-dark-blue);
}

.socialIcon:hover {
  background-color: var(--bds-red);
}

.socialIcon:hover svg {
  fill: white;
}

@media (min-width: 768px) {
  .footerMenu ul.menu {
    align-items: flex-start;
  }

  .footerMenu ul.menu,
  .footerMenu h2.widget-title {
    text-align: left;
  }
}

.top-button {
  background-color: var(--bds-red) !important;
  border: none;
  transition-duration: 0.1s;
}

.top-button:hover,
.top-button:active,
.top-button:focus {
  background-color: var(--bds-dark-red) !important;
}

.top-button:active {
  transform: scale(0.95);
}

.headerInView {
  transform: none;
  transition-duration: 0.3s;
}

.headroom {
  transition: transform 200ms linear;
}

#masthead {
  position: fixed;
}

.headroom--pinned {
  transform: translateY(0%);
}

#masthead:not(.headroom--top) > .navbarTop {
  display: none !important;
}

#masthead:not(.headroom--top) {
  background-color: var(--bds-dark-blue);
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

#masthead:not(.headroom--top) a.navbar-brand .bdsLogo {
  max-width: 80px;
}

.error-404 {
  padding: var(--bds-padding-y-axis) var(--bds-body-padding-x-axis);
}

.ctBanner {
  background-color: #0d172b;
  border-top: 1px solid #727272;
}

.ctLink {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 10px;
}

.ctLink span {
  color: #6f6f70;
  font-size: 0.9rem;
}

.ctLogo {
  max-width: 50px;
  filter: brightness(0.5) grayscale(1);
  transform: none;
}

.ctLink:hover .ctLogo {
  filter: unset;
  transform: scale(1.05);
}
