/*!
Theme Name: CBD
Theme URI: https://www.cbwebsitedesign.co.uk/
Author: Creative Brand Design
Author URI: https://www.cbwebsitedesign.co.uk/
Description: Creative Brand Design
Version: 04.12.24
Text Domain: cbd
*/
/* Accessibility changes to design */
:root {
    --color-primary: #EE6E18;
}
.btn {
    overflow: auto;
    color: var(--color-black);
}
.btn.btn--white {
    color: var(--color-black);
}
@media (any-hover: hover) {
    .btn.btn--white:not(:disabled,._disabled):hover .btn__arrow {
        color: var(--color-black);
    }
    .btn:not(:disabled,._disabled):hover {
        color: var(--color-black);
    }
}
/* Private Pages */
.post-password-form {
    height: 70vh;
    height: 70svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.post-password-form > p {
    width: 100%;
    text-align: center;
    font-size: 115%;
}

.post-password-form label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.post-password-form input[type=password] {
    padding: 0.75rem 1.5rem;
    background: none;
    border: 1px solid #fff;
    border-radius: 0.3rem;
}

.post-password-form input[type=submit] {
    padding: 0.75rem 1.5rem;
    background: #fff;
    border: 1px solid #fff;
    border-radius: 0.3rem;
    color: #000;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s opacity;
    margin-top: 1.5rem;
}

.post-password-form input[type=submit]:hover {
    opacity: 0.7;
}

/* Admin Bar */
.admin-bar .wrapper {
    margin-top: 32px;
}

.admin-bar .header {
    top: 32px;
}

@media (max-width: 61rem) {
    .admin-bar .menu__body {
        top: 32px;
        height: calc(100% - 32px);
    }
}

@media (max-width: 782px) {
    .admin-bar .wrapper {
        margin-top: 46px;
    }

    .admin-bar .header {
        top: 46px;
    }

    .admin-bar .menu__body {
        top: 46px;
        height: calc(100% - 46px);
    }
}

@media (max-width: 600px) {
    #wpadminbar {
        position: fixed;
    }
}

/* Header */
body:not(.disable-scroll) .header--light .header__logo img:last-child,
body:not(.disable-scroll) .header--light .header__murb-logo img:last-child {
    display: none;
}

body.disable-scroll .header--light .header__logo img:first-child,
body.disable-scroll .header--light .header__murb-logo img:first-child,
.header--dark .header__logo img:first-child,
.header--dark .header__murb-logo img:first-child {
    display: none;
}

@media (max-width: 79rem) {
    .header__murb-logo {
        display: block;
    }
}

@media (min-width: 62rem) and (max-width: 79rem) {
    .header__logos {
        max-width: 12rem;
        column-gap: 1.25rem;
    }

    .header__logo {
        --logo-width: 5.25rem;
    }

    .header__murb-logo {
        --logo-width: 5.125rem;
    }

    .menu__body {
       column-gap: 0.25rem; 
    }

    .menu__list {
        column-gap: 0.5rem; 
    }

    .menu__list>li>a {
        font-size: 1.125rem;
    }
}


@media (max-width: 61rem) {
    .menu__list>li {
        display: inline-block;
    }
}

@media (max-width: 61rem) {
    .menu__list>li.menu-item-has-children>a {
        margin-left: 1rem;
    }
}

@media (max-width: 61rem) {
    .menu__arrow {
        display: inline-block;
        width: 1rem;
        margin-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 61rem) {
    .menu__sublist {
        padding: 0;
    }
}

/* Footer */
.footer-logo img {
    width: 251px;
}

/* Hero */
@media (max-width: 1024px) {
	.hero--title {
		max-width: 100%;
	}
	
	.hero--text {
		max-width: 100%;
		margin-top: 1rem;
		margin-left: 0;
	}
}

/* CTA */
@media (max-width: 1024px) {
    .cta-pict [data-moving-obj] {
        padding-bottom: 70%;
		transform: translateY(0) !important;
    }
}

@media (max-width: 768px) {
	.cta-subtitle {
		text-align: left;
	}
	
    .cta-pict [data-moving-obj] {
        padding-bottom: 90%;
    }
}

@media (max-width: 640px) {
    .cta-head {
        padding-bottom: 0;
    }

    .cta-pict [data-moving-obj] {
        display: none;
    }
}

@media (min-width: 1600px) {
	.cta-pict {
		right: -20%;
	}
}

/* Overview */
@media (min-width: 1024px) {
    .overview-decor-overflow {
        position: relative;
        z-index: 1;
        margin-bottom: -19.45%;
    }
}

@media (max-width: 1024px) {
	.overview-decor img {
		height: 10rem;
		object-position: left;
	}
}

@media (min-width: 640px) and (max-width: 1024px) {
	.overview-head {
		flex-direction: row;
		justify-content: space-between;
	}
	
	.overview-head > div {
		max-width: 50%;
	}
}

/* Brands */
.brands .group img {
    opacity: 0.25
}

.brands .group:hover img {
    opacity: 1;
}

/* MURB Case Studies */
@media (min-width: 1024px) {
    .murb-case-studies-title {
        max-width: 85%;
    }
}

/* FEA Case Studies */
.fea-case-study-item figure > img {
    height: 15rem;
}

@media (min-width: 768px) {
    .fea-case-study-item figure > img {
        height: 24rem;
    }
}

@media (min-width: 1024px) {
    .fea-case-study-item figure > img {
        height: 33rem;
    }

    .fea-case-study-item:nth-child(2 of .fea-case-study-item) figure > img {
        max-width: 65%;
        height: 21rem;
    }
}

/* Related MURB Case Studies */
/* Related FEA Case Studies */
/* Featured MURB Case Studies */
/* Featured FEA Case Studies */
.case-studies-carousel .swiper-slide figure > img {
    height: 15rem;
}

@media (min-width: 768px) {
    .case-studies-carousel .swiper-slide figure > img {
        height: 24rem;
    }
}

@media (min-width: 1024px) {
    .case-studies-carousel .swiper-slide figure > img {
        height: 28.5rem;
    }
}

/* Text & Pict */
@media (max-width: 1024px) {
    .text-pict__pict {
        padding-bottom: 40%;
    }
}

@media (max-width: 768px) {
    .text-pict__pict {
        padding-bottom: 90%;
    }
}

@media (max-width: 640px) {
    .text-pict__pict {
        display: none;
    }
}

/* Objectives */
@media (min-width: 1024px) {
    .swiper-slide.swiper-slide-active .slide-is-active\:lg\:pb-0 {
        padding-bottom: 0;
    }
}

@media (max-width: 1024px) {
	.objectives-carousel .swiper-wrapper {
		align-items: stretch;
	}
	
	.objectives-carousel .swiper-slide {
		height: auto;
	}
	
	.objectives-carousel .swiper-slide > div,
	.objectives-carousel .swiper-slide article,
	.objectives-carousel .swiper-slide article > div {
		height: 100%;
	}
}

/* Vertical Carousel */
@media (max-width: 1024px) {
	.vertical-carousel .swiper-slide .section-description {
		max-width: 100%;
	}
}

/* Steps */
@media (max-width: 1024px) {
	.steps-carousel .swiper-slide figure img {
		width: 100%;
		max-height: 100%;
	}
}

@media (max-width: 768px) {
	#swiper-steps.steps-carousel .swiper-slide figure {
		height: 320px;
	}
	
	.steps-carousel .swiper-slide .section-title {
		max-width: 100%;
	}
	
	.steps-carousel .swiper-slide .section-description {
		max-width: 100%;
	}
}

/* Team */
@media (min-width: 1024px) {
	.section-team-right-content img {
		height: 27rem;
		object-position: top;
	}
}

@media (min-width: 568px) and (max-width: 1024px) {
	.section-team-mob-row {
		display: flex;
		gap: 2rem;
	}
	
	.section-team-mob-row > div:first-child {
		width: 50%;
	}
}

/* Intro */
@media (max-width: 1024px) {
	.intro-pict {
		padding-bottom: 60%;
	}
}

@media (max-width: 768px) {
	.intro-pict {
		display: none;
	}	
}

/* Short View */
@media (min-width: 640px) {
	.short-view-img {
		max-width: 35%;
	}
}

@media (max-width: 640px) {
	.short-view {
		display: flex;
		flex-direction: column-reverse;
	}
	
	.short-view-img {
		position: relative;
		max-width: 100%;
		max-height: 100%;
		padding: var(--container-padding);
	}
	
	.short-view .section-description {
		max-width: 100%;
	}
}

/* Features */
@media (max-width: 1280px) {
	.features-carousel .swiper-slide {
		height: auto;
	}

	.features-carousel .swiper-slide article {
		height: 100%;
	}
}

/* Pagination */
.pagination .page-numbers:not(.prev, .next, .dots) {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    height: 3rem;
    width: 3rem;
    border-radius: 9999px;
    border-width: 1px;
    border-color: transparent;
    font-size: 1.25rem;
    line-height: 1.75rem;
    line-height: 1;
    color: var(--color-gray-rainy);
    transition-duration: .15s;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(.4,0,.2,1);
}

@media (min-width: 1024px) {
    .pagination .page-numbers:not(.prev, .next, .dots) {
        height: 3.75rem;
        width: 3.75rem;
        font-size: 1.5rem;
        line-height: 2rem;
    }
}

.pagination a.page-numbers:not(.prev, .next):hover {
    color: var(--color-black);
}

.pagination .current.page-numbers {
    border-color: var(--color-black);
    color: var(--color-black);
}

.pagination .prev,
.pagination .next {
    padding-left: .25rem;
    padding-right: .25rem;
    padding-bottom: .25rem;
    padding-top: .25rem;
    font-size: .75rem;
    line-height: 1rem;
    color: var(--color-black-400);
    transition-duration: .15s;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(.4,0,.2,1);
}

@media (min-width: 1024px) {
    .pagination .prev,
    .pagination .next {
        font-size: 1rem;
        line-height: 1.5rem;
        padding-left: .5rem;
        padding-right: .5rem;
    }
}

.pagination .prev:hover,
.pagination .next:hover {
    color: var(--color-black);
}

.pagination .prev {
    margin-right: .5rem;
}

.pagination .next {
    margin-left: .5rem;
}

@media (min-width: 1024px) {
    .pagination .prev {
        margin-right: 1.75rem;
    }

    .pagination .next {
        margin-left: 1.75rem;
    }
}

/* Gravity Forms */
.form .gform_wrapper.gravity-theme .gform_fields {
    grid-row-gap: 2rem;
}

@media (min-width: 641px) {
    .form .gform_wrapper.gravity-theme .gform_fields {
        grid-column-gap: 2rem;
    }
}

.form .gform_wrapper.gravity-theme .gfield input,
.form .gform_wrapper.gravity-theme .gfield textarea,
.form .gform_wrapper.gravity-theme .gfield select {
    min-height: 3.375rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    background-color: #fff;
    border-width: 1px;
    border-color: var(--color-black);
    border-radius: 0;
    font-size: 1rem;
    line-height: 1.5rem;
    padding-left: .75rem;
    padding-right: .75rem;
    padding-bottom: .25rem;
    padding-top: .25rem;
    --tw-shadow: 0 0 #0000;
    color: var(--color-black);
    resize: none;
    box-shadow: none;
    transition-duration: .3s;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(.4,0,.2,1);
}

@media (min-width: 1024px) {
    .form .gform_wrapper.gravity-theme .gfield input,
    .form .gform_wrapper.gravity-theme .gfield textarea,
    .form .gform_wrapper.gravity-theme .gfield select {
        font-size: 1.125rem;
        line-height: 1.75rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 1199px) {
    .form .gform_wrapper.gravity-theme .gfield:not(.gfield--width-full) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 641px) {
    .form .gform_wrapper.gravity-theme input:not([type=radio]):not([type=checkbox]):not([type=image]):not([type=file]) {
        line-height: 1.5;
        min-height: 3.375rem;
    }
}

.form .gform_wrapper.gravity-theme .gfield input:hover,
.form .gform_wrapper.gravity-theme .gfield textarea:hover,
.form .gform_wrapper.gravity-theme .gfield select:hover,
.form .gform_wrapper.gravity-theme .gfield input:focus,
.form .gform_wrapper.gravity-theme .gfield textarea:focus,
.form .gform_wrapper.gravity-theme .gfield select:focus {
    border-color: var(--color-primary);
}

.form .gform_wrapper.gravity-theme .gfield textarea {
    /*margin-bottom: 1rem;*/
    /*padding-bottom: 1rem;*/
    padding-top: 1rem;
}

@media (min-width: 768px) {
    .form .gform_wrapper.gravity-theme .gfield textarea {
        /*margin-bottom: 1.5rem;*/
    }
}

@media (min-width: 1024px) {
    .form .gform_wrapper.gravity-theme .gfield textarea {
        /*margin-bottom: 2rem;*/
    }
}

.form .gform_wrapper.gravity-theme .gfield textarea.medium {
    height: 225.6px;
}

@media (min-width: 1024px) {
    .form .gform_wrapper.gravity-theme .gfield textarea.medium {
        height: 257.6px;
    }
}

.form .gform_wrapper.gravity-theme .gchoice input {
    display: none;
}

.form .gform_wrapper.gravity-theme .gchoice label {
    position: relative;
    display: inline-block;
    max-width: 100%;
    padding-left: 1.875rem;
    font-size: inherit;
    line-height: inherit;
    cursor: pointer;
}

.form .gform_wrapper.gravity-theme .gchoice label:before {
    content: '';
    border: 1px solid var(--color-black);
    display: block;
    height: 0.875rem;
    width: 0.875rem;
    position: absolute;
    top: 0.4rem;
    left: 0;
}

.form .gform_wrapper.gravity-theme .gfield_radio label:before {
    border-radius: 50%;
}

.form .gform_wrapper.gravity-theme .gchoice label:after {
    content: '';
    width: calc(0.875rem * .33);
    height: calc(0.875rem * .625);
    border: solid var(--color-black);
    border-width: 0 calc(0.875rem * .083) calc(0.875rem * .083) 0;
    position: absolute;
    top: calc(0.875rem * .5);
    left: calc(0.875rem * .33);
    transform: rotate(45deg);
    opacity: 0;
    visibility: hidden;
    transition: visibility var(--transition-duration-primary), opacity var(--transition-duration-primary);
}

.form .gform_wrapper.gravity-theme .gfield_radio label:after {
    width: calc(0.875rem * .575);
    height: calc(0.875rem * .575);
    background-color: var(--color-black);
    border: 0;
    border-radius: 50%;
    top: calc(0.875rem * .675);
    left: calc(0.875rem * .205);
}


.form .gform_wrapper.gravity-theme .gchoice input:checked + label:after {
    opacity: 1;
    visibility: visible;
}

.form .gform_wrapper.gravity-theme label a {
    color: var(--tw-prose-links);
    font-weight: 500;
    text-decoration: underline;
}

.form .gform_wrapper.gravity-theme .gform_footer {
    margin: 0;
    padding: 0;
}

.form .gform_wrapper.gravity-theme #field_submit {
    align-items: flex-start;
}

.form .gform_wrapper.gravity-theme .gform_validation_errors {
    border-radius: 0;
}

.form .gform_wrapper.gravity-theme .gfield_error label {
    color: #c02b0a;
}

.form .gform_wrapper.gravity-theme .gfield_error [aria-invalid=true] {
    border: 1px solid #c02b0a;
}

img {
    object-fit: cover;
}

#swiper-lifecycles .swiper-slide, #swiperOurGallery .swiper-slide {
    width: 350px;
}

#swiper-energy-solution-processes .swiper-slide, #swiper-energy-solution-processes .swiper-slide .relative {
    height: 600px;
}

#swiper-steps .swiper-slide .relative {
    height: 600px;
}

#swiper-steps .swiper-slide .relative img {
    height: 100%;
}

body.disable-scroll .header--light .header__logo img:first-of-type, body.disable-scroll .header--light .header__murb-logo img:first-of-type {
    display: none;
}

@media(max-width: 768px) {
    #swiper-steps {
        height: auto;
    }
}

.mobile-show {
    display: none;
}

.menu__sublist>li>a:hover {
    color: var(--color-primary);
}

.gfield--input-type-html {
    font-size: 1rem;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(180deg, rgba(176,176,176,0.2) 0%, rgba(0,0,0,0.75) 75%);
}

@media(max-width: 768px) {
    .mobile-show {
        display: inline-block;
        padding-right: 1rem;
    }
    
    .cta .title {
        display: none;
    }
    
    canvas {
        pointer-events: none;
    }
    .header__murb-logo img {
        min-height: 3rem;
    }
}

@media(min-width: 1024px) {
	.lg\:inline-block {
        display: inline-block;
    }
 	.lg\:max-w-\[45\%\] {
        max-width: 45%
    }


    .lg\:max-w-\[55\%\] {
        max-width: 55%
    }

    .lg\:basis-\[45\%\] {
        flex-basis: 45%
    }

    .lg\:basis-\[55\%\] {
        flex-basis: 55%
    }
}
.screen-reader-text {
    border: 0;
    clip: rect(1px,1px,1px,1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal!important
}
.cky-btn-revisit-wrapper .cky-btn-revisit {
    width: 100%;
    height: 100%;
}

.services-grid .grid-services.grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.services-grid .grid .card-image {
    width: 60%;
}

@media(max-width:768px) {
    .gap-4 {
        gap: 2rem;
    }
    
    .services-grid .grid-services.grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}
.object-left {
    object-position: 15%;
}
.gap-8 {
    gap: 2rem;
}
.ml-auto {
    margin-left: auto;
}
.flex-1 {
    flex: 1;
}
.object-right > img {
    object-position: right;
}

.w-\[80\%\] {
    width: 80%;
}
@media(min-width: 1280px) {
    .xl\:w-\[60\%\] {
        width: 60%;
    }
}