/*
Theme Name: Toast
Description: Lightweight, tasty and totally awesome.
Author: Dave Foreman, Aaron Jones and the Toast team
Date: November 2024
Version: 16.0.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.

*/

/* Site CSS */
.post-image svg { max-width: 100%; }
.col.flex-center { display: flex; align-items: center; justify-content: center; }
section.smaller { margin-left: 4rem; margin-right: 4rem; }
.col.narrow { padding: 0 40% 0 10%}
.padded-content { padding-left: 20%; padding-right: 20%; }
h3.cta-form  { font-size: calc( var(--base-heading-size) / 1.25 ); color: var(--brand-2); margin-bottom: 6rem; }
.sitemap-wrapper h3 { margin-bottom: 3rem; }
/**Saved Styles**/
/* *:last-child{margin-bottom:0; } Should not use CSS wildcards as they are S L O W */
.site-logo img{width:100%;}
section.half .container { padding-right: 30%; }

/* Base Styles */
html { font-size: 62.5%; }
body{font-size: 2.25rem;line-height: 1.6;font-family: "Plus Jakarta Sans", Helvetica, Arial, sans-serif;font-weight: 400;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: calc( var(--base-type-spacing) / 3 ) 0;}
.site-header .grid{grid-template-columns:12rem 1fr;align-items:center;}
.site-header .container { max-width: 95%; width: 95%; }
/* Navbar & Menus */
.top-nav {text-align: right; font-size: 1.5rem; }
.top-nav ul { margin: 0 auto; padding: 0;}
.top-nav li { display: inline-block; margin: 0;padding:0; position: relative;}
.top-nav li a { display: inline-block; padding: calc( var(--base-type-spacing) / 2.4 ) 1rem;line-height: 1; color:var(--brand-2);}
.top-nav li:hover > a, .top-nav li.current-menu-item a { color:var(--brand-1); }

/* Submenus Dropdowns*/

.top-nav .sub-menu {
    position: absolute;
    padding: 2rem;
    bottom: 0;
    left: 50%;
    white-space: nowrap;
    background: #fff;
    text-align: left;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transition: all .5s;
    transform: translate(-50%, 100%);
    box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px,
                rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
}



.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 { color: var(--brand-1); margin-bottom: 1rem; }
.top-nav li ul.sub-menu lilast-of-type a { margin-bottom: 0rem; }

.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;}


/* Tables */
table { width: 100%; border-collapse: collapse; margin-bottom: calc(var(--base-type-spacing) / 2); text-align: left;  }
thead th { background-color: var(--brand-1); font-weight: bold; text-align: left; padding: 1rem; color: #fff; font-size: 120%; }
tbody tr:nth-child(even) { background-color: #fff; }
tbody tr:nth-child(odd) { background-color: var(--brand-8); }
tbody tr:hover { background: var(--brand-2); color: #fff; }
tbody td, tbody th { padding: 1rem; }
table { border: none; }
td { border: .15rem solid var(--brand-1);  }
th { border-width: .15rem .15rem .3rem .15rem; border-style: solid; border-color: var(--brand-1); }

@media screen and (max-width: 768px) {
  table {
   /* display: block;*/
    overflow-x: auto;
    width: 100%;
  }
}

/* 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 */
}





/**Lists**/
ul { margin:0 0 0 1rem; padding-left: 2rem; list-style: disc; }
li { margin:0;margin-bottom: calc( var(--base-type-spacing) / 6 ); padding-left: 1rem; position: relative;  }
main .column-content li:before { content: ""; position: absolute; top: .8rem; left: 0; display: block; height: 2rem; width: 2rem; background: transparent url(https://toastbranding.builtbytoast.uk/wp-content/uploads/toast-list-bullet.png) center center no-repeat; background-size: contain; }
main .column-content ul { background-color: var(--brand-8); padding: 3rem 4rem 3rem 4rem; border-radius: 1rem 1rem 1rem 0; }

/*Links*/
a { text-decoration: none;color:inherit;}
p a { color: var(--brand-1);}
p a:hover { color: var(--brand-2);}

/**Generic Hero**/
.generic-hero{padding: calc( var(--base-type-spacing) / 2 ) 0;background:var(--brand-1);color:#ffffff;}

/**Blog**/
.blog-grid{grid-template-columns: 60% 10% 30rem;
    justify-content: space-between;}
.single .container .container { max-width: 100%; width: 100%; } /* Fixes the content in content issue on blogs/*/


/* Post Sidebar */
.post-image {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-auto-rows: 4vw;
  gap: 0.5vw;
  width: 100%;
}

.large-square {
  grid-column: span 4;
  grid-row: span 4;
  width: 100%;
  height: 100%;
  display: block;
}

.small-square {
  width: 100%;
  height: 100%;
  display: block;
}

/* Varied sizes for small squares */
.small-square:nth-child(2) {
  grid-column: span 2;
  grid-row: span 2;
}

.small-square:nth-child(3) {
  grid-column: span 2;
  grid-row: span 1;
}

.small-square:nth-child(4) {
  grid-column: span 2;
  grid-row: span 1;
}

/* Additional patterns for more squares if needed */
.small-square:nth-child(5) {
  grid-column: span 1;
  grid-row: span 2;
}

.small-square:nth-child(6) {
  grid-column: span 3;
  grid-row: span 1;
}

.small-square:nth-child(n+7) {
  grid-column: span 1;
  grid-row: span 1;
}


/* On the cat page */


.post-listing-image.category {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-auto-rows: minmax(50px, auto);
  gap: 0.5rem;
  width: 100%;
  height: 50%;
	opacity: .3;
}

.post-listing-image.category .large-square {
  grid-column: span 4;
  grid-row: span 4;
  width: 100%;
  height: 100%;
  display: block;
  min-height: 200px;
}

.post-listing-image.category .small-square {
  width: 100%;
  height: 100%;
  display: block;
  min-height: 50px;
}

/* Varied sizes for small squares */
.post-listing-image.category .small-square:nth-child(2) {
  grid-column: span 2;
  grid-row: span 2;
height: 75%
}

.post-listing-image.category .small-square:nth-child(3) {
  grid-column: span 2;
  grid-row: span 1;
	height: 50%
}

.post-listing-image.category .small-square:nth-child(4) {
  grid-column: span 2;
  grid-row: span 1;
	height: 25%
}

/* Additional patterns for more squares if needed */
.post-listing-image.category .small-square:nth-child(5) {
  grid-column: span 1;
  grid-row: span 2;
}

.post-listing-image.category .small-square:nth-child(6) {
  grid-column: span 3;
  grid-row: span 1;
}

.post-listing-image.category .small-square:nth-child(n+7) {
  grid-column: span 1;
  grid-row: span 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .post-listing-image.category {
    grid-auto-rows: minmax(40px, auto);
    min-height: 160px;
  }
  
  .post-listing-image.category .large-square {
    min-height: 160px;
  }
  
  .post-listing-image.category .small-square {
    min-height: 40px;
  }
}





.sidebar ul { padding: 0; margin: 0; list-style: none; font-size: 80%; }
.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); }

/*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{ margin-top: 10rem; font-size: 80%; }
.site-footer .footer-logo{margin-bottom: calc( var(--base-type-spacing) / 3 );display:inline-block;max-width:16rem;}
.site-footer .footer-main{;padding: calc( var(--base-type-spacing) / 1.2 ) 0;}
.site-footer .footer-main .grid{grid-template-columns:1fr 2fr 1fr;}
.site-footer .social-icons{margin-top:calc( var(--base-type-spacing) / 3 );}

.site-footer .footer-main .footer-widget-title { font-size: 2.25rem; margin-bottom: calc( var(--base-type-spacing) / 3 ); color: var(--brand-1);}
.site-footer .footer-main ul, ul.sitemap-list, ul.contents { padding: 0; margin: 0; list-style: none; }
.site-footer .footer-main ul li, ul.sitemap-list li, ul.contents li { margin: 0; padding: 0; }
.site-footer .footer-main ul li a, ul.sitemap-list li a, ul.contents li a {  color: var(--brand-2); margin: 0; padding: 1rem 0; border-bottom: 1px solid var(--brand-6); display: block; line-height: 1.3; }
.site-footer .footer-main ul li a:hover, ul.sitemap-list li a:hover, ul.contents li a:hover {  color: var(--brand-1);  }

/* Sub footer */
.site-footer .footer-sub-wrapper {padding: calc( var(--base-type-spacing) / 3 ) 0; background: var(--brand-1);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 ul li { display: inline-block;margin:0;padding:0;}
.site-footer .footer-sub-wrapper ul li a { display: inline-block; padding: 0 1rem; }

/**Social Icons**/
.social-icons a{width:3rem;height:3rem;background:var(--brand-1);display:inline-block;position:relative;border-radius:100rem;}
.social-icons a:hover { background:var(--brand-5); }
.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; }
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 ); margin-top: 4rem; }
.author-box.grid{grid-template-columns: 20rem 1fr; grid-gap:0;}
.author-box .author-image img{object-fit:cover;height:100%; border-radius: 2rem 0 0 2rem; }
.author-box .author-text p{font-size:1.75rem;}
.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;}
	.col-spans .grid { grid-template-columns: 1fr !important; }
	.col:empty {
    display: none;
}
	
	html { font-size: 46.5%; }
}

@media screen and (max-width:768px ) {
.site-footer .footer-main .grid{grid-template-columns:1fr 1fr;}
	section.half .container { padding-right: 20%; }

}


@media screen and (max-width:576px ) {
	section.half .container { padding-right: 10%; }

	.site-footer .footer-sub-wrapper ul, .companyname { text-align: center; }
	.footer-sub-wrapper .container .grid { grid-gap: 1rem; }
	.footer-main { text-align: center; }
	.site-banner { margin-top: 4.7rem; font-size: 80%; }
.col.narrow { padding: 0 0 0 0; }
	a.button, a.toast-primary-button, a.toast-secondary-button, a.toast-tertiary-button { font-size: 80%; }
	h3.cta-form.letters-typewriter {
    font-size: 5rem;
}
	.site-footer .tar {
    text-align: center;
}
	
	.col.pr20 { padding-right: 0; }
	
	.blog-hero p { font-size: 75%; }
	.block-person-cta .container { display: block !important; }
	.block-person-cta .container img { max-width: 30%; margin-bottom: 2rem;  }
	.block-person-cta .container a.toast-primary-button {
    font-size: 1.5rem;
}
	
	html { font-size: 52.5%; }
	.block-staff-loop .grid { grid-template-columns: 1fr 1fr 1fr 1fr !important; }
}