/*!
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: 28.05.24
Text Domain: cbd
*/

/* Admin Bar */
.admin-bar .header {
	top: calc(0.75rem + 32px);
}

@media (min-width: 1024px) {
	.admin-bar .header {
		top: calc(1.25rem + 32px);
	}
}

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

.admin-bar .has-\[\:checked\]\:top-0:has(:checked) {
	top: 32px;
}

.admin-bar > main {
	margin-top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .header {
		top: calc(0.75rem + 46px);
	}

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

	.admin-bar .has-\[\:checked\]\:top-0:has(:checked) {
		top: 46px;
	}

	.admin-bar > main {
		margin-top: 46px;
	}
}

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

/* Base */
@media (min-width: 1024px) {
    .lg\:flex-row-reverse {
        flex-direction: row-reverse;
    }
}

@media (min-width: 768px) {
    .md\:flex-row-reverse {
        flex-direction: row-reverse;
    }
}

.bg-overlay:after {
	content: '';
	width: 100%;
	height: 100%;
	background-image: linear-gradient(180deg, transparent, #000 100%);
	position: absolute;
	top: 0;
	left: 0;
}

/* Breadcrumb */
.hero-secondary__breadcrumbs > a {
	position: relative;
}

.hero-secondary__breadcrumbs > a:after {
	--tw-content: '';
	content: var(--tw-content);
	--tw-bg-opacity: 1;
	background-color: rgb(255 255 255 / var(--tw-bg-opacity));
	width: 15px;
	height: 1px;
	position: absolute;
	top: 0.5rem;
	right: -20px;
}

/* Content */
.content > h2 {
	font-family: Outfit, Arial, sans-serif;
	font-weight: 800;
	font-size: 1.5rem;
	line-height: 2rem;
	margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .content > h2 {
        font-size: 1.875rem;
        line-height: 2.25rem;
        margin-bottom: 2rem;
    }
}

@media (min-width: 1280px) {
	.content > h2 {
		font-size: 50px;
		line-height: 64px;
		letter-spacing: 0;
		margin-bottom: 2.5rem;
	}
}

.content > *:not(:last-child) {
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .content > *:not(:last-child) {
        margin-bottom: 2rem;
    }
}

.content > ul {
	list-style-type: disc;
	margin-bottom: 2rem;
	padding-left: 1.5rem;
}

.content > ol {
	list-style-type: decimal;
	margin-bottom: 2rem;
	padding-left: 1.5rem;
}

/* Single Post */
.blog-content__section .content {
	font-size: 0.875rem;
	line-height: 1.5;
}

@media (min-width: 1024px) {
    .blog-content__section .content {
        font-size: 1.125rem;
        line-height: 1.75rem;
    }
}

/* Single Career */
.career-content__section .content {
	font-size: 0.875rem;
	line-height: 1.5;
}

@media (min-width: 1024px) {
    .career-content__section .content {
        font-size: 1.125rem;
        line-height: 1.75rem;
    }
}

/* Careers */
.btn.js-careers-loc:focus {
	color: #fff;
}

.btn.js-careers-loc:focus:before {
    transform: scale(0);
}

/* Addtoany */
.share .addtoany_list {
	display: flex;
	gap: 0.75rem;
}

.share .addtoany_list > a {
	padding: 0;
}

.share .addtoany_list .a2a_svg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem !important;
    height: 1.25rem !important;
    line-height: 1 !important;
    border-radius: 0.25rem;
    --tw-bg-opacity: 1;
    background-color: rgb(84 130 176 / var(--tw-bg-opacity)) !important;
    opacity: 1;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.share .addtoany_list > a:hover .a2a_svg {
    --tw-bg-opacity: 1;
    background-color: rgb(19 83 147 / var(--tw-bg-opacity)) !important;
}

.share .addtoany_list .a2a_svg svg {
	width: 1rem;
	height: 1rem;
}

.share .addtoany_list .a2a_svg path {
	fill: #fff;
}

/* Pagination */
.pagination .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
	transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
	transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
	transition-duration: 150ms;
}

.pagination .page-numbers.current,
.pagination a.page-numbers:not(.prev, .next):hover {
    --tw-text-opacity: 1;
    color: rgb(84 130 176 / var(--tw-text-opacity));
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
	line-height: 1;
	font-size: 12px;
	--tw-gradient-to: #000 var(--tw-gradient-to-position);
	--tw-gradient-from: #2D2D2D var(--tw-gradient-from-position);
	--tw-gradient-to: rgb(45 45 45 / 0) var(--tw-gradient-to-position);
	--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
	background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
}

.pagination .page-numbers.prev:hover,
.pagination .page-numbers.next:hover {
    --tw-gradient-to: #2D2D2D var(--tw-gradient-to-position);
}

/* Gravity Forms */
.form .gform_wrapper.gravity-theme .gform_required_legend {
	display: none;
}

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

.form .gform_wrapper.gravity-theme .gform_fields {
	grid-column-gap: 0.75rem;
	grid-row-gap: 0.75rem;
}

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

@media (max-width: 640px) {
    .form .gform_wrapper.gravity-theme .gform_fields {
        grid-column-gap: 0;
    }
}

.form .gform_wrapper.gravity-theme .gfield_label {
	display: block;
	margin-bottom: 0.5rem;
	font-size: 16px;
    line-height: 24px;
    letter-spacing: 0;
    font-weight: 400;
}

@media (min-width: 768px) {
    .form .gform_wrapper.gravity-theme .gfield_label {
    	margin-bottom: 0.75rem;
        padding-left: 1rem;
    }
}

.form .gform_wrapper.gravity-theme .gfield input,
.form .gform_wrapper.gravity-theme .gfield textarea,
.form .gform_wrapper.gravity-theme .gfield select {
	padding: 8px 20px;
	font-size: 18px;
}

.form .gform_wrapper.gravity-theme .gfield textarea.small {
    height: 80px;
}

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

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

.form .gform_wrapper.gravity-theme .gchoice label {
    position: relative;
    cursor: pointer;
    max-width: 100%;
    line-height: 1;
    padding-left: 1rem;
}

.form .gform_wrapper.gravity-theme .gchoice label:before {
    content: '';
    width: 0.75rem;
    height: 0.75rem;
    border-style: solid;
    border-width: 1px;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
}

.form .gform_wrapper.gravity-theme .gchoice label:after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 8px;
    border-width: 0 2px 2px 0;
    top: 2px;
    left: 4px;
    transform: rotate(45deg);
    position: absolute;
    transition: .15s all;
    opacity: 0;
}

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

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

.form .gform_wrapper.gravity-theme #field_submit {
	align-items: center;
    justify-content: flex-end;
}

/* Ajax Loading */
.ajax_loading {
	position: relative;
}

.ajax_loading > * {
	opacity: 0.3;
	pointer-events: none;
}

.ajax_loading:after {
	content: '';
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: url('img/loader.gif') center / 5rem no-repeat;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
}

/* Video Popup */
#video-container.hidden {
    display: block;
    transform: translateY(200%);
}

#video-container {
    position: fixed;
    top: 0;
    transform: translateY(0);
    width: 100vw;
    height: 100vh;
    height: 100svh;
    z-index: 100;
    transition: 0.5s all;
    pointer-events: none;
}
#video-background {
    --tw-bg-opacity: 0.4;
    background-color: rgb(0 0 0 / var(--tw-bg-opacity));
    opacity: 1;
    transition: 0.5s all;
    cursor:pointer;
    z-index: 99;
}
#video-background.hidden {
    opacity: 0;
    pointer-events: none;
    display: block;
}

#video-wrapper {
    width: fit-content;
    position: relative;
    height: 100%;
    margin: auto;
}
#video-close-btn {
    height: 32px;
    width: 32px;
    z-index: 10;
    pointer-events: all;
    cursor: pointer;
}
/* Video popup */
#video-popup {
    width: fit-content;
    max-height: 80vh;
    margin: 10vh 0;
    max-height: 80svh;
    margin: 10svh 0;
    pointer-events: all;
}

.business-benefits__section .grid > div { justify-content: space-between; }

@media (max-width: 1200px) {
	.meet-team__section .group > div:first-child,
    .leadership__section .group > div:first-child {
		position: relative;
		padding-bottom: 100%;
		height: auto;
	}
	.meet-team__section .group img,
    .leadership__section .group img {
		position: absolute;
    	top: 0;
    	left: 0;
	}
}