/*
Theme Name: Willmott Dixon Interiors
Version: 1.0.0
Template: astra
*/

/* Fonts */

@font-face {
	font-family: 'museo_300';
	font-display: fallback;
	src: url('fonts/MuseoSans-300.woff2') format('woff2'),
		url('fonts/MuseoSans-300.woff') format('woff');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'museo_700';
	font-display: fallback;
	src: url('fonts/MuseoSans-700.woff2') format('woff2'),
		url('fonts/MuseoSans-700.woff') format('woff');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'museo_900';
	font-display: fallback;
	src: url('fonts/MuseoSans-900.woff2') format('woff2'),
		url('fonts/MuseoSans-900.woff') format('woff');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'bliss_light';
	font-display: fallback;
	src: url('fonts/BlissPro-Light.woff2') format('woff2'),
		url('fonts/BlissPro-Light.woff') format('woff');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'bliss_regular';
	font-display: fallback;
	src: url('fonts/Bliss-Regular.woff2') format('woff2'),
		url('fonts/Bliss-Regular.woff') format('woff');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'blisspro_bold';
	font-display: fallback;
	src: url('fonts/BlissPro-Bold.woff2') format('woff2'),
		url('fonts/BlissPro-Bold.woff') format('woff');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'bliss_med';
	font-display: fallback;
	src: url('fonts/BlissPro-Medium.woff2') format('woff2'),
		url('fonts/BlissPro-Medium.woff') format('woff');
	font-weight: normal;
	font-style: normal;
}

/* End Fonts */

/* Global */

body, html, p, ul, ol, li, dl, dt, dd, blockquote, pre, code, table, th, td, a, strong, em, b, i, input, button, textarea, select {
	font-family: 'bliss_regular', sans-serif!important;
}

h1, h2, h3, h4, h5, h6 {
	font-family: 'museo_700', sans-serif!important;
}

h2.elementor-heading-title, .home h1.elementor-heading-title, .page-id-29246 h1.elementor-heading-title {
	font-family: 'museo_900', sans-serif!important;
}

/* End Global */

/* Header */

.ast-builder-menu-1 .menu-item > .menu-link, h1.elementor-slide-heading {
	font-family: 'museo_900', sans-serif!important;
}

.slider-title-yellow {
	color: #fffa52;
}

.slider-title-yellow::after {
	content: '';
	display: block;
	background-color: #fffa52;
	width: 0;
	height: 10px;
	margin-top: 20px;
	animation: loadYellowBar 1.2s ease-out forwards;
	animation-delay: 1.5s;
}

@keyframes loadYellowBar {
	0% {
		width: 0;
	}
	100% {
		width: 80px;
	}
}

.slider-title-yellow-sub::after {
	content: '';
	display: block;
	background-color: #fffa52;
	width: 0;
	height: 10px;
	margin-top: 20px;
	animation: loadYellowBarSub 1.2s ease-out forwards;
	animation-delay: 1.5s;
}

@keyframes loadYellowBarSub {
	0% {
		width: 0;
	}
	100% {
		width: 80px;
	}
}

.slider-title-white {
	color: #fff;
}

.video-slider h1 {
	font-family: 'museo_900', sans-serif!important;
}

.ast-desktop .ast-builder-menu-1 .menu-item .sub-menu .menu-link {
	color: #043e47;
}

.ast-desktop .ast-builder-menu-1 .menu-item .sub-menu .menu-link:hover {
	color: #e1efe6;
}

.site-header, .ast-primary-header-bar {
	position: relative;
	z-index: 2000;
}

/* End Header */

/* Search Form */

#dynamic-form {
	display: table;
	width: 100%;
}

#dynamic-form > div {
	display: table-cell;
	padding: 10px;
}

#dynamic-form select {
	box-sizing: border-box;
	color: #043e47;
	min-width: 200px;
	padding: .75em;
	text-transform: uppercase;
	width: 100%;
}

#dynamic-form button {
	padding: 19px 25px 17px;
	width: 100%;
}

@media (max-width: 1024px) {
	#dynamic-form {
		display: block;
		margin-top: 10px;
	}
	
	#dynamic-form > div {
		display: block;
		width: 100%;
		margin-bottom: 0;
		padding: 0 0 10px;
	}
	
	#dynamic-form button {
		padding: 15px 25px;
	}
}

/* End Search Form */

/* Content */

.top-bar-yellow::before {
	content: '';
	display: block;
	background-color: #fffa52;
	width: 80px;
	height: 15px;
	position: absolute;
	bottom: 0;
	left: 0;
	top: 0;
	z-index: 1;
}

.title-underline::before {
	content: '';
	display: block;
	position: absolute;
	bottom: 8px;
	left: 0;
	right: 0;
	background-color: #e1efe6;
	height: 1px;
}

@media screen and (max-width: 600px) {
	.title-underline::before {
		bottom: 7px;
	}
}

.text-bar-yellow::before {
	content: '';
	display: block;
	background-color: #fffa52;
	width: 180px;
	height: 15px;
	position: absolute;
	bottom: 0;
	left: -20px;
	top: 20px;
	z-index: 1;
}

.text-bar-yellow-health::before {
	content: '';
	display: block;
	background-color: #fffa52;
	width: 180px;
	height: 15px;
	position: absolute;
	bottom: 0;
	left: -20px;
	top: 36px;
	z-index: 1;
}

@media screen and (max-width: 1127px) {
	.text-bar-yellow::before, .text-bar-yellow-health::before {
		display: none;
	}
}

.ast-separate-container .ast-article-single {
	padding-top: 0;
	padding-bottom: 0;
}

.holidays, .pension, .flexible, .salary, .private, .loyalty, .work-experience, .management-trainee-programmes, .technical-apprentice-programme, .management-development, .professional-qualifications, .learning-development {
	cursor: pointer;
}

.e-link-in-bio__cta {
	display: none!important;
}

.custom_case_study-template-default .navigation {
	display: none;
}

.custom_team_member-template-default .navigation {
	display: none;
}

.swiper-slide {
	border-radius: 0 !important;
}

/* End Content */

/* Image Carousel / Media Carousel */

.image-carousel-hover .swiper-slide img, .elementor-20299 .elementor-element.elementor-element-6b6303a .elementor-main-swiper:not(.elementor-thumbnails-swiper) .elementor-carousel-image, .elementor-17933 .elementor-element.elementor-element-81981fe .elementor-main-swiper:not(.elementor-thumbnails-swiper) .elementor-carousel-image {
	filter: brightness(0.3);
	transition: filter 0.3s ease, opacity 0.3s ease;
}

.image-carousel-hover .swiper-slide:hover img, .elementor-20299 .elementor-element.elementor-element-6b6303a .elementor-main-swiper:not(.elementor-thumbnails-swiper) .elementor-carousel-image:hover, .elementor-17933 .elementor-element.elementor-element-81981fe .elementor-main-swiper:not(.elementor-thumbnails-swiper) .elementor-carousel-image:hover {
	filter: brightness(0.9);
}

.elementor-loop-container .swiper-slide img {
	transform: none !important;
	transition: filter 0.3s ease !important;
	object-fit: cover;
	width: 100%;
	height: 100%;
}

.elementor-loop-container .e-loop-item img {
	transform: none !important;
	scale: none !important;
}

/* End Image Carousel / Media Carousel */

/* Hover Text */

.hover-text {
	position: relative;
}

.hover-text > div:first-child {
	opacity: 0;
	transition: opacity 0.5s ease-in-out;
}

.hover-text:hover > div:first-child {
	opacity: 1;
}

.hover-display {
	opacity: 1;
	transition: opacity 0.5s ease-in-out;
}

/* End Hover Text */

/* WPForms */

.wpforms-container input[type=date], .wpforms-container input[type=datetime], .wpforms-container input[type=datetime-local], .wpforms-container input[type=email], .wpforms-container input[type=month], .wpforms-container input[type=number], .wpforms-container input[type=password], .wpforms-container input[type=range], .wpforms-container input[type=search], .wpforms-container input[type=tel], .wpforms-container input[type=text], .wpforms-container input[type=time], .wpforms-container input[type=url], .wpforms-container input[type=week], .wpforms-container select, .wpforms-container textarea {
	background: #fff;
	border-width: 0 0 1px 0;
	color: var(--ast-global-color-2);
	opacity: 0.8;
}

.wpforms-container input:focus, .wpforms-container select:focus, .wpforms-container textarea:focus {
	outline: none;
	opacity: 1;
	border-color: var(--ast-global-color-0);
}

.wpforms-container .wpforms-one-half {
	margin-bottom: 10px;
}

.wpforms-container button {
	padding: 17px 34px;
	font-size: 15px;
}

.wpforms-container .wpforms-one-half, .wpforms-container .wpforms-three-sixths, .wpforms-container .wpforms-two-fourths, .wpforms-container .wpforms-one-third, .wpforms-container .wpforms-two-sixths {
	z-index: 1000;
}

@media screen and (max-width: 899px) {
	.wpforms-container .wpforms-one-half, .wpforms-container .wpforms-three-sixths, .wpforms-container .wpforms-two-fourths, .wpforms-container .wpforms-one-third, .wpforms-container .wpforms-two-sixths, .wpforms-container .wpforms-one-third.wpforms-first, .wpforms-container .wpforms-two-sixths.wpforms-first {
		width: 100%;
	}
	
	.wpforms-container .wpforms-one-third {
		margin-left: 0;
	}
}

@media (max-width: 768px) {
	.wpforms-one-third {
		width: 100%!important;
		float: none!important;
		padding: 0!important;
		margin: 0 0 20px!important;
	}
	
	.wpforms-first {
		margin-top: 0!important;
		margin-bottom: 10px;
	}
	
	.wpforms-container {
		padding-left: 0!important;
		padding-right: 0!important;
	}
	
	.wpforms-container .wpforms-field-textarea textarea.wpforms-field-medium {
		margin-top: -10px;
	}
	
	#wpforms-17912-field_4-container {
		margin-bottom: 10px!important;
	}
	
	#wpforms-17912-field_2-container {
		width: 100%;
	}
}

.contact-form .wpforms-container select.wpforms-field-large {
	padding: 1.01em .75em;
}

.contact-form .wpforms-container input, .contact-form .wpforms-container select, .contact-form .wpforms-container textarea, .wpforms-field input::placeholder, .wpforms-field textarea::placeholder {
	color: #043e47;
}

.search-form .wpforms-container select.wpforms-field-large {
	text-transform: uppercase;
}

/* End WPForms */

/* Case Studies & News */

.single-custom_case_study .entry-meta {
	display: none;
}

body.archive .ast-archive-description, body.search .ast-archive-description {
	padding: 0 0 20px;
}

#comments .submit, .search .search-submit {
	padding: 0;
}

.ast-separate-container .ast-blog-layout-5-grid .ast-article-inner, .ast-plain-container .ast-blog-layout-5-grid .ast-article-inner {
	box-shadow: none!important;
}

.entry-header {
	display: none;
}

.case-study-search-form {
	margin: 0 auto;
	padding: 20px;
	border: 1px solid #ccc;
	border-radius: 8px;
	background: #f9f9f9;
}

.search-keyword {
	margin-bottom: 20px;
}

.search-input {
	width: 100%;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
	box-sizing: border-box;
}

.search-section-title {
	font-weight: bold;
	font-size: 16px;
	color: #333;
	margin-bottom: 10px;
	width: 100%;
}

.search-sectors,
.search-regions {
	margin-bottom: 20px;
}

.search-checkbox-label {
	display: inline-block;
	margin-right: 15px;
	margin-bottom: 10px;
	font-size: 14px;
	color: #333;
}

.search-checkbox {
	margin-right: 8px;
}

/* Hide container if it's empty */
.hide-if-empty:not(:has(.testimonials-carousel)) {
	display: none !important;
}

.hide-if-empty-team:not(:has(.team-members-list)) {
	display: none!important;
}

.solo-consultant {
	padding: 3rem 0;
	text-align: center;
}

.solo-consultant .elementor-element {
	width: 100% !important;
}

.ast-blog-single-style-1 .elementor-element.elementor-element-a5c64fe {
	--content-width: 100%!important;
	padding-left: 0!important;
	padding-right: 0!important;
}

.post-type-archive-custom_case_study .ast-blog-single-element, .ast-excerpt-container>p:last-child {
	margin-top: 20px;
}

.group-blog .ast-archive-description .ast-archive-title {
	display: none;
}

.search .site-content .content-area .search-form {
	display: none;
}

.show-more-categories {
	background: none;
	border: none;
	cursor: pointer;
	padding: 5px 0;
	font-size: 12px;
	margin-top: 10px;
}

.show-more-categories:hover, .show-more-categories:focus {
	background: none;
	color: #818a86;
}

.primary-categories, .additional-categories {
	margin-bottom: 10px;
}

/* End Case Studies & News */

/* Events */

.event-toggle {
	margin-bottom: 20px;
	text-align: center;
}

.toggle-button {
	padding: 10px 15px;
	background-color: #f4f4f4;
	border: 1px solid #ccc;
	text-decoration: none;
	color: #333;
	margin: 5px;
	display: inline-block;
	border-radius: 5px;
}

.toggle-button:hover {
	background-color: #043E47;
}

.toggle-button.active {
	background-color: #043E47;
	color: #FFFA52;
}

.event-featured-image img {
	height: auto;
	margin-bottom: 40px;
	display: block;
}

.event-title {
	font-size: 2rem;
	margin-bottom: 10px;
}

.event-date {
	margin-bottom: 40px;
	text-transform: none;
}

.ast-separate-container .ast-article-post, .ast-separate-container .ast-article-single {
	padding: 0;
}

.event-featured-image img {
	height: 350px;
	width: 100%;
	object-fit: cover;
}

.event-date-heading {
	text-transform: none!important;
}

body.post-type-archive-custom_event.archive .ast-archive-description {
	border: none;
}

.post-type-archive-custom_event .site-main {
	margin: 0 auto;
	max-width: 1200px;
	width: 100%;
}

.post-type-archive-custom_event .ast-primary-header-bar {
	background-color: transparent;
}

.events-header {
	margin-top: -99px;
}

/* End Events */

/* Team Members */

.team-members-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px;
}

.team-member {
	width: auto;
	margin-bottom: 20px;
	text-align: center;
}

/*@media (max-width: 768px) {
	.team-members-list {
		justify-content: flex-start;
	}
	
	.team-member {
		width: 100%;
	}
}*/

.team-member-image {
	margin-bottom: 20px;
}

.team-member-icons {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-top: 10px;
}

.team-member-icon {
	display: inline-block;
	text-align: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background-color: #043e47;
	padding: 14px;
	fill: #fffa52;
}

.team-member-icon:hover {
	background-color: #fffa52;
	fill: #043e47;
}

.team-member-image img {
	width: 100%;
	height: auto;
	max-width: 600px;
	max-height: 450px;
}

@media screen and (max-width: 768px) {
	.desktop-phone {
		display: none;
	}
}

@media screen and (min-width: 768px) {
	.team-member {
width: calc(50% - 20px);
	}
}

@media screen and (max-width: 1024px) {
	.team-members-list {
		justify-content: center;
	}
}

/* End Team Members */

/* Testimonials */

.testimonials-carousel {
	width: 100%;
	margin: 0 auto;
}

.testimonial-item {
	padding: 40px;
	text-align: center;
	background: #F8F8F8;
	border-radius: 5px;
}

@media screen and (max-width: 768px) {
	.testimonial-item {
		padding: 20px;
	}
}

.testimonial-item h3 {
	font-size: 24px;
	margin-bottom: 15px;
}

.testimonial-attribution {
	font-weight: bold;
}

/* Fix for arrows and their backgrounds */
.slick-prev, .slick-next {
	font-size: 18px;
	background: transparent;
	border-radius: 50%;
	padding: 10px;
	z-index: 1;
	box-shadow: none;
}

.slick-prev {
	left: -30px;
}

.slick-next {
	right: -20px;
}

.slick-prev:before, .slick-next:before {
	font-family: 'Font Awesome 5 Free';
	font-weight: 900;
	color: #043e47;
	content: '';
}

.slick-prev:hover:before, .slick-next:hover:before {
	color: #fffa52;
}

.slick-prev:before {
	content: '\f104';
}

.slick-next:before {
	content: '\f105';
}

/* End Testimonials */

/* Flipbook */

.df-bg {
	background-color: rgb(255, 255, 255)!important;
}

.df-ui-download {
	display: none !important;
}

#email-gate, #flipbook-content {
	transition: all 0.3s ease-in-out;
}

/* Initially show email gate */
#email-gate { 
	display: block!important; 
}

#flipbook-content { 
	display: none!important;
}

/* When access granted */
body.flipbook-access #email-gate { 
	display: none!important;
}

body.flipbook-access #flipbook-content { 
	display: block!important;
}

/* End Flipbook */

/* Blog Author */

.blog-author-box {
	display: flex;
	align-items: stretch;
	gap: 30px;
	background-color: #f4f7f8;
	padding: 0;
	margin: 40px 0;
	overflow: hidden;
}

.blog-author-image {
	flex-shrink: 0;
	overflow: hidden;
}

.blog-author-image img {
	width: 100px;
	height: 100%;
	object-fit: cover;
	object-position: top;
	display: block;
	transition: transform 0.4s ease;
	will-change: transform;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	transform: translateZ(0);
	-webkit-transform: translateZ(0);
}

.blog-author-box:hover .blog-author-image img {
	transform: scale(1.08);
}

.blog-author-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 30px 20px 0;
}

.blog-author-label {
	font-size: 1rem;
	letter-spacing: 0.05em;
	margin: 0;
	color: #333;
}

.blog-author-position {
	font-size: 0.95rem;
	color: #555;
	margin: 0;
}

.blog-author-profile-link {
	display: inline-block;
	margin-top: 8px;
	font-size: 0.85rem;
	color: #333;
	text-decoration: underline;
}

/* End Blog Author */