/*
Theme Name: WYRD
Theme URI: westyorkshiredriveways.com
Author: Cogio Ltd
Author URI: https://www.westyorkshiredriveways.com/
Description: Wordpress theme for West Yorkshire Resin Driveways.
Version: 1.0.0
Text Domain: wyrd
Tags: wyrd
*/

body {
	margin: 0;
}


h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
input, 
li{
	font-family: Arial;
	font-weight: 400;
}
h1,
h2,
h3 {
	font-weight: 600;
}
h2 {
	font-size: 2em;
}
h3 {
	font-size: 1.7em;
}
h4 {
	font-size: 1.4em;
}

p {
	font-size: 18px;
}

a {
	color: #451402;
	transition: color .3s linear;
}
p a:hover {
	color: #ca6c3c;
	transition: color .3s linear;
	text-decoration: underline;
}

a,
li,
button{
	text-decoration: none;
}

img {
	max-width: 100%;
	height: auto;
}

/*Full Width Page inc WP Default Overrides*/


:where(.full .wp-block-columns.has-background) {
	padding: 0;
}
:where(.full figure) {
    margin: 0;
}
:where(.full .wp-block-columns.is-layout-flex) {
    gap: 0;
}
:where(.full .wp-block-columns) {
    margin-bottom: 0;
}

.full .wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.full .wp-block-column p,
.full .wp-block-column h2,
.full .wp-block-column h3,
.full .wp-block-column h4,
.full .wp-block-column h5,
.full .wp-block-column h6,
.full .wp-block-column .wp-block-buttons {
	padding: 0 40px;
}

.full .wp-block-column ul {
	padding-inline-start: 80px;
}

/*Grid Layouts*/
.g100, .g98, .g90, .g80, .g73, .g65, .g64, .g62 .g50, .g48, .g46, .g40, .g32, .g31, .g30, .g29, .g23, .homeblog {
	display: inline-block;
	float: left;
	position: relative;
}

.g100 {
	width: 100%;
}

.g98 {
	width: 98%;
}
.g90 {
	width: 90%;
}
.g80{
	width: 80%;
}

.g73 {
	width: 73%;
}

.g65 {
	width: 65%;
}

.g64 {
	width: 64%;
}
.g62 {
	width: 62%;
}

.g50 {
	width: 50%;
}

.g48 {
	width: 48%;
}
.g46 {
	width: 46%;
}
.g40 {
	width: 40%;
}
.g32 {
	width: 32%;
}
.g31 {
	width: 31%;
}
.g30 {
	width: 30%;
}
.g29 {
	width: 29%;
}

.g23 {
	width: 23%;
}

.container {
	width: 70%;
	margin-left: 15%;
	margin-right: 15%;
	display: inline-block;
}

.fright {
	float: right;
}

/*Margins*/

.mlr1 {
	margin-left: 1%;
	margin-right: 1%;
}
.mlr2 {
	margin-left: 2%;
	margin-right: 2%;
}
.ml2 {
	margin-left: 2%;
}
.mr2 {
	margin-right: 2%;
}
.mlr5{
	margin-left: 5%;
	margin-right: 5%;	
}
.mlr10 {
	margin-left: 10%;
	margin-right: 10%;
}

.mtb10 {
	margin-top: 10px;
	margin-bottom: 10px;
}
.mtb20 {
	margin-top: 20px;
	margin-bottom: 20px;
}
.mtb60 {
	margin-top: 60px;
	margin-bottom: 60px;
}
.mtb120 {
	margin-top: 120px;
	margin-bottom: 120px;
}

.m10p {
	margin: 10px;
}

/*Padding*/

.p10p {
padding: 10px;
}
.p20 {
padding: 20px;
}
.p40 {
padding: 40px;
}

.ptb10p {
	padding-top: 10px;
	padding-bottom: 10px;
}
.ptb20 {
	padding-top: 20px;
	padding-bottom: 20px;
}
.ptb60 {
	padding-top: 60px;
	padding-bottom: 60px;
}
/*Flex*/
.flex {
	display: flex;
	align-items: center;
}
.flex.reverse {
	flex-direction: row-reverse;
}
.flex-col{
	flex: 1;
}
.flex-col.logo {
	max-width: 320px;
}
/*Aesthetics*/
.shadowboxbl3 {
	box-shadow: -8px 10px 20px 0px #555;
	margin: 10px 2% !important;
	padding: 40px 0;
	justify-content: flex-start !important;
}
.shadowboxbl3 .wp-block-buttons,
.shadowboxbl3 .wp-block-image {
	margin-top: auto;
}
.wp-block-buttons {
	margin-bottom: 1em;
}
/* Colours */

.offwhite{
	background-color: #f1f1f1;
}
.black {
	background-color:#111;
	color: #fff;
}
.gold{
	background-color: #FEBE00;
}
.dark {
	background-color:#333;
	color: #fff;
}
.darkbrown {
	background-color: #451402;
	color: #fff;
}

.midbrown {
	background-color: #763E2D;
	color: #fff;
}


/*Navigation*/
/* Hide categories descriptions from top menu */
.mega-menu span.mega-menu-description {display: none !important}
.topmenu {
	text-align: left;
}
.mainmenu {
	text-align: right;
}

.mainmenu a {
	font-size: 16px;
	font-weight:700;
}

.navigation.mainmenu ul li a {
	transition: color 0.75s;
}
.navigation.mainmenu ul li a:hover {
	color: #f1f1f1;
	transition: color 0.75s;
}

.topmenu a {
	font-size:14px;
	margin-top: 5px;
	margin-bottom: 5px;
}

.navigation a{
	color: #fff;
	text-decoration: none;
}

.navigation ul{
	margin: 0;
}

.navigation ul li {
	display: inline-block;
	list-style-type: none;
	padding: 10px;
}

.sub-menu {
  display: none;
  position: absolute;
  background-color: #111;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  padding: 12px 16px;
  z-index: 1;
}

.menu-item:hover .sub-menu {
  display: block;
}

.navigation ul li ul li {
  display: block;
  float: none;
}

/* Contact Forms*/
.wpcf7-form{
	padding: 20px 2%;
}

.wpcf7-form input,
.wpcf7-form textarea{
    min-height: 30px;
	font-size: 14px;
	width: 96%;
}

.wpcf7-form input[type="submit" i]{
	background-color: #F5DED7;
	color: #000;
	font-weight: 600;
	transition-duration: 0.5s;
	height: 40px;
	border: 0;
}
.wpcf7-form input[type="submit" i]:hover{
	background-color: #CA9E90;
}
.center {
	text-align: center;
}
.header {
	background-color: #451402;
	color: #fff;
	text-align: center;
}
#header_logo {
	max-height: 120px;
}
#banner_logo {
	max-height: 300px;
}

.thumb{
	max-height: 300px;
    overflow: hidden;
}
/* REPLACED in 1.1.0 by new feed layout
.feed .post:nth-child(even) {
	background-color: #f1f1f1;
}
.feed .post:nth-child(even) .thumb {
	float: right;
}
.feed .post:nth-child(even) .content {
	float: left;
}
*/
.footer {
	color: #fff;
	background-color:#763E2D;
	text-align: center;
}
.footer p{
	font-size: 16px;
}
.footer ul {
    list-style-type: none;
    padding-inline-start: 0px;
}
.footer a {
	color: #fff;
	transition: color 1s;
}
.footer a:hover {
	color: #F5DED7;
	transition: color 1s;	
}

.footer .bottom{
	background-color: #451402;
	text-align: center;
}
.footer .bottom p{
	font-size: 14px;
}
/*blog/news feeds*/
.homeblog h2 {
	font-size: 2em;
}
.homeblog ul {
	padding-inline-start: 0px;
}
.homeblog {
	text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}
.homeblog .g23:first-child{
	width: 48%;
}
.blogcontainer {
	overflow: hidden;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 25px;
}
.blogcontainer {
	box-shadow: -13px 18px 20px 0px #999;
}
.blogthumb {
	background-size: cover;
	background-position: center;
	transition: transform 2s;
	cursor: pointer;
	height: 200px;
}

.homeblog h3 {
	bottom: 10px;
    position: absolute;
    width: 100%;
	color: #fff;
}
.homeblog .g23:first-child h3 {
	font-size: 2em;
}

.homeblog .g23:first-child .blogcontainer .blogthumb{
	height: 425px;
}
.blogcontainer:hover >.blogthumb,
.blogthumb:hover {
	transform: scale(1.2);
	transition: transform 2s;
}
.blogthumb .filter{
	color: #fff;
	transition: background-color 1s;
	background-color: rgba(0,0,0,0.2);
	width: 100%;
	height: 100%;
	display: inline-block;
}
.blogthumb .filter:hover{
	transition: background-color 1s;
	background-color: rgba(0,0,0,0);
}
.blogthumb p {
	opacity: 0;
	transition: opacity 1s;
	margin: 0 16px;
}
.blogthumb:hover p {
	opacity: 1;
	transition: opacity 1s;
}

.feed .post:nth-child(even) {
	background-color: #f1f1f1;
}

/*Sponsor*/
.sponsorgrid {
	height: 300px;
	background-size: cover;
	text-align: center;
}
.sponsorgrid .filter {
	height: 300px;
	background: rgba(0,0,0,0.5);
}
.sponsorgrid .filter h2{
	margin-top: 20px;
	color: #fff;
}
/*PLUGIN: Mailchimp forms*/
.mc4wp-form-fields {
	text-align: center;
}

.mc4wp-form-fields label {
	display: flex;
}
.mc4wp-form-fields input[type="email" i],
.mc4wp-form-fields input[type="text" i] {
	border-radius: 0px;
	line-height: 2em;
	padding-block: 3px;
	padding-inline: 10px;
	width: 100%;
}

.mc4wp-form-fields button{
	padding: 0px;
}
.mc4wp-form-fields input[type="submit" i] {
	cursor: pointer;
	max-width:100%;
	color: #fff;
	background-color: #111;
	transition: background-color 1s;
	border: none;
	margin: 0;
	padding: 10px;
	font-weight: 600;
	font-size: 1em
}

/*Home Page Specific*/
/*HERO SECTION*/
.hero {
    display: inline-block;
	float: left;
	position: relative;
    background-position: center;
    background-size: cover;
	background-attachment: fixed;
	width: 100%;
}
.hero h2 {
	font-size: 2.5em;
}
.hero p {
	color: #000;
}
.hero img {
	max-width: 100%;
	height: auto;
	margin-bottom: -4px;
}
.hero .content{
	margin: 120px 0;
	display: flex;
    /*flex-direction: row-reverse;*/
	justify-content: center;
    align-items: center;
}
.banner .text {
	background-color: rgba(255,255,255,1);
	justify-content: center;
}
.banner .text {
	word-wrap: break-word;
	margin: auto;
	width: 50%;
	padding: 0px 10px 20px 10px;
}
.banner h1{
	font-size: 3em;
}
.banner h1,
.banner p {
	padding: 0 5%;
}
.hero .text {
	background-color: rgba(255,255,255,0.8);
	margin: 0 5%;
	/*width: 60%;*/
}
.hero .text a {
	color: #000;
}
.hero button{
	margin-top: 20px;
	border-radius: 4px;
}
.hero .image {
	margin: 0 5% 0 0;
	width: 25%;
	text-align: center;
	float: right;
}
.whiteoverlay {
	background-color: rgba(235,233,225,0.5);
	height: 100%;
}
.homecontent{
    background-position: center;
    background-size: cover;
	background-attachment: fixed;
}
.homecontent .container{
	background: rgba(255,255,255,0.8);
}

.pagination button,
.post button {
	border-radius: 0px;
	margin-top: 20px;
}
/*Call To Action Sections*/
.cta {
    display: inline-block;
	float: left;
	position: relative;
	width: 100%;
	background: #f7f7f7;
	text-align: center;
}

.cta .content {
	margin: 80px 5%;
	width: 90%;
}

.cta .group {
	display: flex;
	justify-content: space-evenly;
}

.cta a{
	display: flex;
	flex: 1;
	margin: 40px 3%;
	aspect-ratio: 1 / 1;
	box-shadow: 0px 18px 20px 0px #999;
	color: #000;
	transition: transform .7s linear;
}
.cta a:hover{
	transform: scale(1.2);
	transition: transform .7s linear;
}

.cta h3{
	display: flex;
    flex: 1;
    justify-content: center;
    align-items: flex-end;
	margin-bottom: 0;
	margin-top: auto;
	line-height: 2em;
	background-color: rgba(254,190,0,1);
	transition: background-color .7s linear;
}
.cta .item {
	display: flex;
	cursor: pointer;
	flex: 1;
	background-size: cover;
}

.cta .overlay:hover {
	background-color: rgba(254,190,0,0);
	transition: background-color .7s linear;
}

.cta .item:hover > h3 {
	background-color: rgba(242, 182, 0, 1);
	transition: background-color .7s linear;
}

button{
	cursor: pointer;
	max-width:100%;
	color: #fff;
	background-color: #763E2D;
	transition: transform 1s;
	border: 1px solid #000;
	margin: 0;
	padding: 10px;
	font-weight: 800;
	font-size: 1em
}
button:hover {
	transform: scale(1.1);
	transition: transform 1s;
}

.bannerbutton{
	width: 300px;
	font-size:20px;
}

.banner {
	height: 500px;
	background-position: center;
	background-size: cover;
	background-attachment: fixed;
	display: flex;
    width: 100%;
}

.wp-block-button {
	transition: transform 1s;
}
.wp-block-button:hover {
	transform: scale(1.1);
	transition: transform 1s;
}


.black button,
.black button {
	color: #111;
	background-color: #EBE9E1;
}
.black button:hover,
.black button:hover{
	background-color: #fff;
	transition: background-color 1s color 1s;
	color: #111;
}

.left {
	text-align: left;
}
.right {
	text-align: right;
}
.nooverflow {
	overflow:hidden;
}

@media screen and (max-width: 1439px) {
	.homeblog h3 {
		font-size: 1.4em;
	}
}

@media screen and (max-width: 1200px) {
    .full .wp-block-column p,
	.full .wp-block-column h2,
	.full .wp-block-column h3,
	.full .wp-block-column h4,
	.full .wp-block-column h5,
	.full .wp-block-column h6,
	.full .wp-block-column .wp-block-buttons {
		padding: 0 20px;
	}
	
	.cta .group {
        flex-wrap: wrap;
        justify-content: center;
    }

    .cta a {
        flex: 0 1 calc(50% - 20px); /* Two items per row, accounting for margins */
        margin: 20px 10px;
    }
}
	
@media screen and (max-width: 1023px) {
	.banner .text {
		width: 80%;
		padding: 0px 10px 20px 10px;
	}
	.banner h1 {
		font-size: 2em;
	}
	h2,
	.has-large-font-size {
		font-size: 1.7em;
		font-weight: 600;
	}
	.full .wp-block-column ul {
		padding-inline-start: 40px;
		padding-inline-end: 20px;
	}
	h3 {
		font-size: 1.5em;
	}
	
	.shadowboxbl3 {
		box-shadow: -8px 10px 20px 0px #999;
		margin: 20px 2% !important; 
	}
	.profilepage .g48 {
		width: 98%;
	}
	.container {
		width: 90%;
		margin-left: 5%;
		margin-right: 5%;
		display: inline-block;
	}
	.cta .content {
		margin: 60px 5%;
		width: 90%;
	}
	.cta a{
		margin: 20px 2%;
        flex: 0 1 calc(50% - 40px);
	}
}

@media screen and (max-width: 780px) {
	.taboff {
		display: none;
	}
	
	
	.hero h2{
		font-size: 2em;
	}

	h2,
	.has-large-font-size {
		font-size: 1.5em;
	}
	h3{
		font-size: 1.3em;
	}
	
	.hero .content {
		flex-direction: column;
	}
	/*.full .has-text-align-center {
		text-align: left;
	}
	.shadowboxbl3 .has-text-align-center	{
		text-align: center;
	}
	.full .wp-block-buttons.is-content-justification-center	{
		justify-content: left;	
	}
	.shadowboxbl3 .wp-block-buttons.is-content-justification-center	{
		justify-content: center;
	}*/
	.hero .text,
	.hero .image	{
		margin: 0 2%;
		width: 96%;
		/*text-align: center;*/
	}
	
	.cta .group {
		flex-direction: column;
		flex-wrap: nowrap;
	}
	
	.cta a{
		flex: 1;
		margin: 20px 0;
	}
	.post .mlr5 {
		margin-left: 1%;
		margin-right: 1%;
	}
	
	.homeblog.mtb120 {
		margin-top: 60px;
		margin-bottom: 60px;
	}
	.homeblog .g23:first-child {
		width: 90%;
		margin-left: 5%;
		margin-right: 5%;		
	}
	.homeblog .blogcontainer{
		margin-bottom: 50px;
	}
	.homeblog .g23:first-child .blogcontainer .blogthumb {
		height: 200px;
	}
	.homeblog .g23 {
		width: 40%;
		margin-left: 5%;
		margin-right: 5%;
	}
	.blogcontainer,
	.cta a	{
		box-shadow: none;
	}
	body .is-layout-flex.colreverse{
		flex-wrap: wrap-reverse !important;
	}
	
	.post .g90,
	.post .g40,
	.footer .g32, 
	.footer .g31 {
		width: 98%;
	}
	.post img {
		width: 100%;
	}
	
	.wp-block-buttons {
		margin-bottom: 3em;
	}
}

@media screen and (max-width: 425px) {
	.p40 {
		padding: 0;
	}
	
	.moboff {
		display: none;
	}

	.shadowboxbl3 {
		box-shadow: none;
		padding: 20px;
		/*margin: 0 !important;*/
		/*border-bottom: 1px solid #777;*/
	}
	
	.mobgrey {
		background: #f7f7f7;
	}
	
	
	.hero .p40 {
		padding: 20px;
	}
		
	.hero h2{
		font-size: 1.5em;
	}
	.hero h3{
		font-size: 1.3em;
	}
	/*body,
	.full .has-text-align-center,
	.shadowboxbl3 .has-text-align-center {
		text-align: left;
	}*/

	.full .wp-block-buttons.is-content-justification-left,
	.full .wp-block-buttons.is-content-justification-center,
	.shadowboxbl3 .wp-block-buttons.is-content-justification-center	{
		justify-content: right;	
	}
	
	.g48, .g32, .g31, .g23 {
		width: 98%;
	}
	.g23,
	.homeblog .g23,
	.homeblog .g23:first-child {
		width: 98%;
		margin-left: 1%;
		margin-right: 1%;
	}
	.homeblog .g23:first-child h3{
		font-size: 1.4em;
	}
}
