/*
Theme Name: Toast
Description: Lightweight, tasty and totally awesome. This theme is proprietary and licensed exclusively to the client who commissioned this website project. Usage, modification, distribution or deployment of this theme on any other website or project is strictly prohibited without express written permission from Toast Design.
Author: Dave Foreman, Aaron Jones and the Toast team
Date: October 2025
Version: 17.1
Theme URI: http://www.toastwebsites.co.uk
Author URI: http://www.toastdesign.co.uk
Text Domain: toast
*/


/*

████████╗  ██████╗   █████╗  ███████╗ ████████╗
╚══██╔══╝ ██╔═══██╗ ██╔══██╗ ██╔════╝ ╚══██╔══╝
   ██║    ██║   ██║ ███████║ ███████╗    ██║   
   ██║    ██║   ██║ ██╔══██║ ╚════██║    ██║   
   ██║    ╚██████╔╝ ██║  ██║ ███████║    ██║   
   ╚═╝     ╚═════╝  ╚═╝  ╚═╝ ╚══════╝    ╚═╝   

This is the Toast WordPress theme. Copyright Toast Design Consultancy. All rights reserved. 
Toast clients who have paid us to build a theme have a perpetual lience to use this Theme for their site.
Everyone else can go build their own. Unlike WordPress, this theme is NOT licenced under the GPL, it is not publically distributed: do not copy, distribute or fork this theme.
However, if you've just inherited this site, and you know what you are doing, you will find this theme very easy to use - have at it, but do not change the Theme information.

*/


:root {
  --ywf--family-aleo: 'Aleo';
  --ywf--family-montserrat: 'Montserrat';
}

/**Saved Styles**/
/* *:last-child{margin-bottom:0; } Should not use CSS wildcards as they are S L O W */
.site-logo img{width:100%;}

/* Base Styles */
html { font-size: 62.5%; }
body{ font-size: clamp(1.5rem, 2rem, 3vw);line-height: clamp(1.1, 1.6, 1.6);  font-family: 'Montserrat', Helvetica, Arial, sans-serif;color: var(--text-color);margin: 0;padding: 0 !important; }
#page{/*overflow:hidden;*/clear:both;}

/* Site Banner - from Theme options */
.site-banner { background-color: var(--brand-2); color: #fff; text-align: center; padding: 1rem 0; min-height: 3rem; z-index: 999; }
.site-banner p { margin-bottom: 0; }
.site-banner p a { color: #fff; text-decoration: underline; }
.site-banner p a:hover { color: #fff; text-decoration: none; }

/* Header */
.site-header {
	padding: 0;
	background: #fff;
}

/* Top row */
.header-top {
	padding: calc(var(--base-type-spacing) / 3) 0;
	border-bottom: 3px solid var(--brand-7);
}

.header-top-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
}

.site-logo {
	display: block;
	width: 30rem;
}

.site-logo img {
	display: block;
	width: 100%;
	height: auto;
}

.header-contact {
	text-align: right;
	line-height: 1.2;
}

.phone-number {
	font-weight: 600;
}

.phone-number span {
	margin-right: 0.4rem;
}

.phone-number a {
	color: var(--brand-1);
	font-weight: 700;
	text-decoration: none;
}

.phone-number a:hover {
	color: var(--brand-2);
}

.phone-hours {
	margin-top: 0.25rem;
	font-size: 0.8em;
}


/* Navigation row */
.header-nav {
	border-bottom: 1px solid var(--brand-7);
}

.top-nav {
	text-align: right;
}

.top-nav ul {
	display: flex;
	align-items: stretch;
	justify-content: center;
	margin: 0;
	padding: 0;
}

.top-nav li {
	display: block;
	margin: 0;
	padding: 0;
	position: relative;
}

.top-nav li a {
	display: block;
	padding: calc(var(--base-type-spacing) / 2.4) 2.5rem;
	line-height: 1;
	color: var(--brand-2);
	text-decoration: none;
	font-family: 'Montserrat', Helvetica, Arial, sans-serif;
	font-weight: 600;
}

.top-nav li:hover > a,
.top-nav li.current-menu-item > a {
	color: var(--brand-1);
}

.top-nav .menu > li:last-child > a {
	background: var(--brand-1);
	color: #fff;
}

.top-nav .menu > li:last-child > a:hover {
	background: var(--brand-2);
	color: #fff;
}

/* Submenus Dropdowns*/
.top-nav .sub-menu{ display: block; position: absolute;padding: 0;bottom:0;left: 0; white-space: nowrap; background: var(--brand-2);text-align: left;z-index:5;opacity:0;pointer-events:none;transition:all .5s;transform:translatey(100%);}
.top-nav .sub-menu .sub-menu{position: absolute;top:0;right:0;transform:translatex(100%);white-space:nowrap;background: var(--brand-2); text-align: left; z-index:10; }
.top-nav .sub-menu li{ display: block; margin: 0;  }
.top-nav .sub-menu li a{ padding: 1rem; display: block; margin: 0;color:#ffffff;}
.top-nav li:hover > .sub-menu{opacity: 1;pointer-events:all;}

/* Sort the hovers on the dropdowns 16/06/23 DF */
.top-nav li ul.sub-menu li  a { background: var(--brand-2); color:#fff;}
.top-nav li ul.sub-menu li  a:hover { background: var(--brand-1); color:#fff;}

/* Sorts any drop down on the last menu li so the dropdown is ranged to the left, keeping it inside the menu container */
.top-nav li:last-child .sub-menu {left: auto; right: 0;}

/* Videos - uploaded mp4 files */
.wp-video { position: relative; width: 100% !important; /* Override inline width */ padding-bottom: 56.25%; /* 16:9 aspect ratio */ height: 0; overflow: hidden;}
.wp-video video, .wp-video .mejs-container { position: absolute; top: 0; left: 0; width: 100% !important; /* Override inline width */ height: 100% !important; /* Maintain correct height */}
.mejs-container { max-width: 100% !important; /* Ensure the player doesn't exceed its container */ }

/**Blog**/
.blog-grid{grid-template-columns:1fr 350px;}
.single .container .container { max-width: 100%; width: 100%; } /* Fixes the content in content issue on blogs */


/* Post Sidebar */
.sidebar ul { padding: 0; margin: 0; list-style: none; }
.sidebar ul li { padding: 0; margin: 0;  }
.sidebar ul li a { display: block; padding: .5rem 0; border-bottom: 1px solid var(--brand-2); color: var(--brand-1); }
.sidebar ul li a:hover {  color: var(--brand-2); }

/**Team Sidebar**/

.team-sidebar {
	padding-top: clamp(2.5rem, 3vw, 5rem);
	padding-bottom: clamp(2.5rem, 3vw, 5rem);
}

.team-sidebar-image {
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border-radius: 2rem 2rem 0rem 0rem;
}

.team-sidebar-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}

.team-sidebar-details {
	background: var(--brand-2);
	color: #fff;
	padding: 3rem;
	border-radius: 0rem 0rem 2rem 2rem;
}

.team-sidebar-title {
	font-weight: 700;
	margin-bottom: 0.5rem;
	color: #fff;
}

.team-sidebar-section {
	margin-bottom: 2rem;
}

.team-sidebar-section:last-child {
	margin-bottom: 0;
}

.team-sidebar-section p {
	margin: 0;
	color: #fff;
}

.team-sidebar .team-member-registration a {
	color: #fff;
	text-decoration: underline;
}

.team-sidebar .team-member-registration a:hover {
	color: #fff;
	opacity: 0.6;
}

/*Breadcrumbs*/
.breadcrumbs {
	padding-top: clamp(2.5rem, 3vw, 5rem);
}

/*404*/
.search-404{padding: calc( var(--base-type-spacing) / 1.2 );background:var(--brand-2);color:#ffffff;max-width:768px;margin:0 auto;text-align:center;}

/*Footer*/
.site-footer {
	font-family: 'Montserrat', Helvetica, Arial, sans-serif;
	color: #fff;
}

.site-footer .footer-main {
	background: var(--brand-2);
	padding: calc(var(--base-type-spacing) / 1.2) 0;
}

.site-footer .footer-main .grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 3rem; }

.col.footer-contacts {
	text-align: left;
}

.site-footer .footer-widget-title {
	font-family: 'Aleo', Georgia, 'Times New Roman', serif;
	font-weight: 600;
	font-size: 2.25rem;
	margin-bottom: calc(var(--base-type-spacing) / 3);
}

.site-footer .footer-contact-inner {
	display: flex;
	align-items: flex-start;
	gap: 2.5rem;
}

.site-footer .footer-contact-details { width: 100%; }

.site-footer .address {
	display: block;
	margin-bottom: 2rem;
}

.site-footer .phone-number a {
	font-weight: 400;
	color: #fff;
	text-decoration: none;
}

.site-footer .phone-number a:hover {
	color: #fff;
	opacity: 0.6;
}

.site-footer .phone-hours {
	margin-top: 0.5rem;
	margin-bottom: 0;
}

.site-footer .social-icons {
	margin-top: calc(var(--base-type-spacing) / 3);
}

.site-footer .footer-main ul {
	padding: 0;
	margin: 0;
	list-style: none;
}

.site-footer .footer-main ul li {
	margin: 0;
	padding: 0;
}

.site-footer .widget_nav_menu ul li a {
	display: block;
	padding: .5rem 0;
}

/* Sub footer */
.site-footer .footer-sub-wrapper .container {
    border-top: 2px solid white;
}
.site-footer .footer-sub-wrapper { background: var(--brand-2);color: #fff;font-size:1.5rem;}
.site-footer .footer-sub-wrapper .grid{grid-template-columns:1fr 1fr;align-items:center;}
.site-footer .footer-sub-wrapper ul { text-align: right; padding: 0; }
.site-footer .footer-sub-wrapper .bottom-menu ul li {
	display: inline-block;
	margin-right: 2rem;
}

.site-footer .footer-sub-wrapper .bottom-menu ul li:last-child {
	margin-right: 0;
}

.site-footer .footer-sub-wrapper .bottom-menu ul li a {
	font-size: 1.5rem;
	text-decoration: underline;
}
.site-footer .footer-sub-wrapper .bottom-menu ul li a:hover {
	opacity: 0.6;
}

/**Social Icons**/
.site-footer .social-icons a {
	width: 3rem;
	height: 3rem;
	background: #fff;
	display: inline-block;
	position: relative;
	border-radius: 100rem;
	transition: opacity 0.2s ease;
}

.site-footer .social-icons a:hover {
	background: #fff;
	opacity: 0.6;
}

.site-footer .social-icons a img {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 50%;
	max-width: 50%;
}

/*Forms*/
input, textarea, select { width:100%;outline:none;font-family:inherit;border:1px solid var(--brand-2); padding: 1rem; }
input[type="submit"] {border:none;outline:none;cursor:pointer;background:var(--brand-1);width:auto;height:auto; font-size: inherit; color: #fff; border-radius: var(--border-radius); padding: 1rem 2rem; }
input[type="submit"]:hover { background: var(--brand-2); }
input[type='checkbox'], input[type='radio'] { width: auto; height: auto; }

/* Search */
.search-form input.search-field { padding: 1rem; height: auto; font-family: inherit; font-size: 2rem; color: var(--brand-1); font-weight: 600; }
input.search-submit { padding: 1rem; display: block; width: 100%; margin-top: calc( var(--base-type-spacing) / 6 ); color: #fff; }
input.search-submit:hover { background-color: var(--brand-2); color: #fff !important; }
footer input.search-submit:hover { background-color: var(--brand-3); color: var(--brand-2); }
span.screen-reader-text { display: none; }

/* Author Box */
.author-box{background-color: #fff;box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);border-radius: var(--border-radius);margin-top: calc( var(--base-type-spacing) / 3 );}
.author-box.grid{grid-template-columns: 20rem 1fr; grid-gap:0;}
.author-box .author-image img{object-fit:cover;height:100%;}
.author-box .author-text p{font-size:14px}
.author-box .author-text{padding: calc( var(--base-type-spacing) / 2 ) ;}
.author-box .author-socials-area .author-socials a{width:28px;height:28px;background:var(--brand-1);display:inline-block;padding: calc( var(--base-type-spacing) / 6 );position: relative;border-radius:100px;}
.author-box .author-socials-area .author-socials a img{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:17px;height:auto;}

/**Fix appearance of buttons iphone**/
input[type=text], input[type=button] { -webkit-appearance: none; -webkit-border-radius: 0; }

/* Popups */ 
.popup{position:fixed;top:0;left:0;width:100%;height:100%;z-index:99999;justify-content:center;align-items:center;display:none; transition: all 1s ease;}
.popup.active{display:flex;}
.popup .popup-bg{position:fixed;top:0;left:0;width:100%;height:100%; background: rgba(0,0,0,.75); backdrop-filter: blur(10px);z-index:-1;  transition: all 1s ease;}
.popup .popup-content{background:#ffffff;max-width:1024px;padding: calc( var(--base-type-spacing) / 1.7 );position:relative;width:100%; border-radius: 1rem; }
.popup .popup-content .popup-close{height: calc( var(--base-type-spacing) / 1.7 );width: calc( var(--base-type-spacing) / 1.7 );position: absolute;top:0;right:0;background:var(--brand-1);cursor: pointer; border-radius: 0 1rem 0 0;}
.popup.active { transition: all 1s ease; }
.popup-close:before, .popup-close:after{content:'';width: calc( var(--base-type-spacing) / 3 );height:.3rem;background-color:#ffffff;position: absolute;left:50%;}
.popup-close:before{top: 50%; transform: translate(-50%, -50%) rotate(45deg);}
.popup-close:after{bottom: 50%; transform: translate(-50%, 50%) rotate(-45deg);}


@media screen and (max-width:1024px ) {
	.site-header { display: none;}
}

@media screen and (max-width:768px ) {
.site-footer .footer-main .grid{grid-template-columns:1fr 1fr;}
 .blog-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .team-sidebar {
        order: -1;
    }

    .team-sidebar .sticky {
        position: static;
    }
	
	 .single-post-sidebar,
    .single-post-sidebar .sticky {
        display: contents;
    }

    .single-post-sidebar .key-takeaways {
        order: -2;
    }

    .single-post-sidebar .post-contents {
        order: -1;
    }

    .blog-grid > article {
        order: 0;
    }

    .single-post-sidebar .share-post {
		order: 1;
	}
	
	    .blog-grid {
        gap: 0 !important;
    }
	
    .single-condition .block-columns.av > .container > .grid {
        grid-template-columns: 1fr !important;
    }

    .single-condition .block-columns.av .col-image img {
        width: 100%;
        height: auto;
        display: block;
    }
}


@media screen and (max-width:576px ) {
	.companyname { padding: 1rem 0 0 0; text-align: center; }
	.site-footer .footer-sub-wrapper ul,  { text-align: center; padding: 0 0 0 0; margin: 0 0 0 0;  }
	.footer-sub-wrapper .container .grid { grid-gap: 0rem; }
	.footer-main { text-align: center; }
	.site-banner { margin-top: 4.7rem; font-size: 80%; }
	
	.site-footer .footer-sub-wrapper .grid{grid-template-columns:1fr 1fr;align-items:center;}
.site-footer .footer-sub-wrapper ul { text-align: center; padding: 0 0 0 0; margin: 0 0 0 0; }
.site-footer .footer-sub-wrapper ul li { display: inline-block;margin:0;padding:0;}
.site-footer .footer-sub-wrapper ul li a { display: inline-block; padding: 1rem; }
	.social-icons a { margin-left: .25rem; margin-right: .25rem; margin-top: 1rem; }
	.col.footer-contacts { text-align: center; }
	.address > div { display: inline; margin-left: .25rem; margin-right: .25rem; }
	.email, .phone-number { font-size: 140%;}
	.email { margin-top: 1rem; }
	.phone-number{ margin-bottom: 1rem; }
	ul#menu-footer-left-navigation-managed-in-widgets, ul#menu-footer-right-navigation-managed-in-widgets { columns: 2; gap: 2rem; }

}


/** Responsive safety net **/

/* Long words and URLs wrap instead of widening the page */
.column-content, .single-post-content, .blog-grid article { overflow-wrap: break-word; }

/* Contact map: Complianz wraps the map iframe in a div, which splits its paragraph into two empty ones */
.contact-map .col.map p:empty { display: none; }
.contact-map .col.map .cmplz-placeholder-parent { width: 100%; height: 100%; }

@media screen and (max-width:1024px) {
	.grid > * { min-width: 0; } /* Grid columns can't be stretched wider than the screen by their content */
	main :has(> table) { overflow-x: auto; } /* Wide tables scroll inside their own box instead of widening the page */
	.column-content iframe, .single-post-content iframe { max-width: 100%; }
	.column-content iframe[src*="youtube"], .column-content iframe[data-src-cmplz*="youtube"],
	.single-post-content iframe[src*="youtube"], .single-post-content iframe[data-src-cmplz*="youtube"] { height: auto; aspect-ratio: 16 / 9; }
}

/* Contact map grid: overrides the block's inline 1fr 2fr so the address column isn't cramped (stacks at 576px via global-styles.css) */
@media screen and (min-width:769px) and (max-width:1024px) {
	.contact-map > .grid { grid-template-columns: 2fr 3fr !important; }
}
@media screen and (min-width:577px) and (max-width:768px) {
	.contact-map > .grid { grid-template-columns: 1fr 1fr !important; }
}

/* Complianz cookie policy: service name above its purpose on small phones */
@media screen and (max-width:425px) {
	body #cmplz-document .cmplz-dropdown.cmplz-dropdown-cookiepolicy summary div {
		grid-template: "heading label checkbox chevron" "paragraph paragraph paragraph paragraph" / minmax(0, 1fr) auto auto 25px;
		row-gap: 0.25rem;
	}
	body #cmplz-document .cmplz-dropdown.cmplz-dropdown-cookiepolicy summary div p { text-align: left; }
}

/* Footer copyright and legal links: centred on one line below the copyright on tablet, stacked on phones */
@media screen and (max-width:1023px) {
	.site-footer .footer-sub-wrapper .grid { grid-template-columns: 1fr; gap: 1rem; }
	.site-footer .footer-sub-wrapper .companyname { text-align: center; }
	.site-footer .footer-sub-wrapper .bottom-menu ul { display: flex; justify-content: center; flex-wrap: nowrap; gap: 2rem; margin: 0; }
	.site-footer .footer-sub-wrapper .bottom-menu ul li { margin: 0; }
}
@media screen and (max-width:576px) {
	.site-footer .footer-sub-wrapper .bottom-menu ul { flex-direction: column; align-items: center; gap: 0; }
	.site-footer .footer-sub-wrapper .bottom-menu ul li a { padding: .75rem 1rem; }
}

/* Footer copyright row: 20px above and below the content at every width */
.site-footer .footer-sub-wrapper .container { padding-top: 1.6rem; padding-bottom: 1.6rem; }
.site-footer .footer-sub-wrapper .bottom-menu ul { margin: 0; }
.site-footer .footer-sub-wrapper .bottom-menu ul li { margin-bottom: 0; }
@media screen and (max-width:1023px) {
	.site-footer .footer-sub-wrapper .container { padding-top: 1.8rem; padding-bottom: 1.6rem; }
}
@media screen and (max-width:576px) {
	.site-footer .footer-sub-wrapper .container { padding-bottom: 1.7rem; }
	.site-footer .footer-sub-wrapper .grid { gap: .5rem; }
	.site-footer .footer-sub-wrapper .companyname { padding-top: 0; }
	.site-footer .footer-sub-wrapper .bottom-menu ul { margin-bottom: -.75rem; } /* offsets the last link's tap padding */
}
