/**
 * Theme Name: heathfield
 * Version: 1.2
 * Stamp: 22 September 2026 10:57 pm
 */

/* ## HTML Elements
------------------------------------------- */
	body{
		overflow-x: clip;
		min-height: 100vh;
	}
	hr.wp-block-separator{
		border: none;
		border-top: 1px solid var(--currentColor, var(--wp--preset--color--custom-grey-darker));
	}
	hr.wp-block-separator.has-custom-grey-darker-color{
		border: none;
		border-top: 1px solid var(--wp--preset--color--custom-grey-darker);
	}
	table{
		text-align: left;
		border-collapse: collapse;
		caption{
			font-weight: bold;
			padding-left: 8px;
			text-align: left;
		}
		th{
			font-weight: normal;
			padding: 8px;
			border-bottom: 4px solid var(--gray10);
			font-size: 85%;
			text-transform: uppercase;
		}
		tr:nth-child(even){
			background-color: var(--gray05);
		}
		td{
			padding: 8px;
			border-bottom: solid 1px var(--gray10);
		}
	}
	.wp-block-spacer,
	.wp-block-spacer + .wp-block-group{
		margin-block-start: 0;
	}

/* ## Typography
------------------------------------------- */
	body{
		font-size: 16px;
		line-height: 22px;
	}
	:where(h1,h2,h3,h4,h5,h6,p,ul,dl){
		margin-bottom: 0.75rem;
	}
	:where(h1,h2,h3,h4,h5,h6, .like-h1, .like-h2, .like-h3, .like-h4, .like-h5, .like-h6){
		color: var(--wp--preset--color--primary);
	}
	p.intro-paragraph{
		font-family: var(--wp--preset--font-family--bricolage-grotesque);
		font-weight: 500;
		line-height: 1.2;
		font-size: clamp(1.375rem, calc(1.193rem + 0.909vw), 1.875rem);
	}
	h1,.like-h1{
		font-size: calc(76rem/16);
		line-height: 1;
		font-weight: 300;
	}
	h2,.like-h2{
		font-size: calc(50rem/16);
		line-height: 1.1;
		font-weight: 500;
	}
	h2.statement-h2{
		font-size: clamp(2.250rem, calc(1.341rem + 4.545vw), 4.750rem);
		line-height: 1;
		font-weight: 300;
	}
	h3,.like-h3,
	h4,.like-h4{
		font-size: calc(22rem/16);
		line-height: 1.2;
		font-weight: 600;
	}
	h5,.like-h5{
		font-size: 18px;
	}
	h6,.like-h6{
		font-size: calc(13rem/16);
		text-transform: uppercase;
	}
	ul,ol{
		  padding-inline-start: 12px;
	}
	ol.wp-block-list li{
		margin-bottom: var(--unit-sm);
		strong{
			display: inline-block;
			margin-bottom: 10px;
		}
		&::marker{
			font-weight: bold;
			color: var(--wp--preset--color--primary);
		}
	}
	blockquote{
		margin-top: 10px;
		margin-bottom: 10px;
		margin-left: 50px;
		padding-left: 15px;
		border-left: 3px solid #ccc;
	}
	code{
		font-family: monospace;
		font-size: 85%;
		color: var(--gray70);
	}
	dl{
		dt{
			font-weight: bold;
		}
		dd{
			padding-left: var(--unit-md);
		}
	}
	details{
		summary{
			font-weight: bold;
		}
	}
	strong{
		font-weight: 800;
	}

/* ## Forms
------------------------------------------- */
	:is(body,.gform_wrapper) form{
		.gform_fields{
			gap: 12px;
		}
		label{
			display: block;
		}
		button.gform_button{
			  justify-content: center !important;
		}
		input[type="text"],
		input[type="email"],
		::placeholder{
			color: var(--wp--preset--color--primary) !important;
			font-weight: bold !important;
			font-size: 18px !important;
		}
		input:is(:not([type="submit"],[type="button"],[type="reset"],[type="file"],[type="color"],[type="radio"])),
		textarea{
			background-color: #fff;
			border: solid 1px var(--wp--preset--color--primary);
			border-radius: var(--radius);
			padding: 30px;
			box-shadow: none;
		}
		select{
			padding: 4px 16px;
		}
		input.gform_button{
			flex-grow: 1;
		}
	}

/* ## Modifier Classes
------------------------------------------- */
	.rounded{
		border-radius: var(--radius);
	}
	.rounded-3sides{
		border-radius: var(--radius-3sides);
	}
	.rounded-xl{
		border-radius: var(--radius-xl);
	}
	@media(min-width: 1200px){
		.width-three-fourths{
			padding-right: 25%;
		}
	}
	.wp-block-group.is-style-width-limited{
		> *{
			max-width: 1024px;
			margin-left: 0 !important;
		}
	}
	.has-stripes{
		background-repeat: no-repeat;
		background-position: top right;
		background-size: 50% !important;
	}

/* ## Buttons & Links
------------------------------------------- */
	a:not(.wp-block-button__link){
		color: var(--wp--preset--color--secondary);
		&:visited{
			color: inherit;
		}
		&:hover{
			color: var(--wp--preset--color--primary);
		}
	}
	a[href^="mailto"]{
		text-decoration: none;
		color: black;
	}

	main#wp--skip-link--target .gform_button,
	button,
	.wp-block-button__link,
	input:is([type="submit"],[type="button"],[type="reset"]){
		font-family: var(--wp--preset--font-family--bricolage-grotesque);
		background-color: var(--wp--preset--color--primary);
		color: white;
		border-radius: 50px;
		padding: 16px 36px;
		line-height: 1;
		border: solid 1px transparent;
		cursor: pointer;
		font-size: calc(18rem/16);
		font-weight: 600;
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin-block: 4px;
		transition: all 0.4s ease;
		column-gap: 10px;
		&:hover{
			border-color: var(--wp--preset--color--secondary);
			background-color: var(--wp--preset--color--secondary);
			color: white;
		}
		&.has-secondary-background-color:hover{
			border-color: var(--wp--preset--color--primary) !important;
			background-color: var(--wp--preset--color--primary) !important;
		}
		&[disabled="disabled"]{
			cursor: not-allowed;
			background-color: var(--gray10);
			border-color: var(--gray30);
			color: var(--gray30);
		}
	}
	.is-style-small .wp-block-button__link{
		font-size: 10px;
		padding: 8px;
	}
	.is-style-outline .wp-block-button__link{
		background-color: white;
		border-color: var(--wp--preset--color--primary);
		color: var(--wp--preset--color--primary);
		&.has-secondary-color:hover{
			color: white !important;
			border-color: var(--wp--preset--color--primary) !important;
			background-color: var(--wp--preset--color--primary) !important;
		}
	}
	.is-style-icon{
		.wp-block-button__link{
			background-color: white;
			color: var(--wp--preset--color--primary);
			display: flex;	
			gap: 30px;
			font-size: clamp(24px, calc(21.429px + 0.714vw), 30px);
			padding-inline: 40px;
			transition: all 0.4s ease;
		}
		.wp-block-button__link::after{
			content: "\f344";
			font-family: 'dashicons';
			font-size: 16px;
			font-weight: 200;
			padding: 12px;
			border: solid 1px var(--wp--preset--color--primary);
			border-radius: 50%;
			rotate: -45deg;
			transition: all 0.4s ease;
		}
		.wp-block-button__link:hover{
			background-color: var(--wp--preset--color--primary);
			color: white;
			&::after{
				rotate: 0deg;
				padding-right: 0;
				padding-left: 24px;
				border-color: #fff;
			}
		}
	}
	.wp-block-group:has(> .wp-block-group__link){
		h4.wp-block-heading{
			display: flex;
			/* align-items: center; */
			&::after{
				content: "\f344";
				margin-left: 10px;
				font-family: 'dashicons';
				display: inline-block;
				height: 18px;
				transition: all 0.4s ease;
			}
		}
		&:hover{
			h4.wp-block-heading::after{
				margin-left: 30px;
			}
		}
	}
	.invert-buttons{
		.wp-block-button__link{
			background-color: white;
			color: var(--wp--preset--color--primary);
			&:hover{
				background-color: var(--wp--preset--color--primary);
				color: white;
				border-color: white;
			}
		}
		.is-style-outline{
			.wp-block-button__link{
				background-color: transparent;
				color: white;
				border-color: white;
				&:hover{
					background-color: white;
					color: var(--wp--preset--color--primary);
					border-color: white;
				}
			}
		}
	}

/* ## Images
------------------------------------------- */
	.img-rounded{
		border-radius: var(--radius);
	}
	.has-img-semiround img,
	.img-shaped{
		border-radius: var(--radius-3sides);
	}
	.has-img-landscape img{
		aspect-ratio: 4 / 3;
		object-fit: cover;
	}
	.has-img-wide img{
		aspect-ratio: 16/9;
		object-fit: cover;
	}
	.has-swoosh{
		.inner{
			position: relative;
			z-index: 2;
		}
		&::before{
				content: '';
				inset: 0;
				position: absolute;
				z-index: 0;
				background-image: url('assets/images/fountain.png');
				/* background-size: contain; */
				background-position: center right;
				background-repeat: no-repeat;
				opacity: 0.3;
		}
	}
		
	body.fuse_archive img.attachment-post-thumbnail{
		border-radius: var(--radius-3sides);
	}


/* ## Header
------------------------------------------- */
	header.wp-block-template-part{
		position: fixed;
		top: 0;
		width: 100%;
		z-index: var(--z-top);
		#siteHeader{
			padding-inline: var(--siteInset);
			transition: all 0.4s ease;
		}
		.wp-block-site-logo img {
			height: 80px;
			width: auto;
			transition: all 0.4s ease;
		}
	}
	header.wp-block-template-part.solid{
		#siteHeader{
			background-color: var(--wp--preset--color--primary);
			padding-bottom: var(--unit-md);
		}
		+ main{
			padding-top: 300px;
		}
	} 


/* If scrolled */
	body.scrolled{
		#siteHeader{
			background-color: hsla(206, 100%, 19%, 0.75);
			padding-bottom: var(--unit-sm);
			backdrop-filter: blur(10px);
			border-bottom: solid 1px rgba(255, 255, 255, 0.4);
		}
		.wp-block-site-logo img {
			height: 40px;
		}
		nav#menu-secondary.level-1 {
			padding: 8px 80px;
		}
	}
/* If admin-bar  */
	body.admin-bar{
		header.wp-block-template-part{
			top: 32px;
		}
	}


/* ## Footer
------------------------------------------- */
	footer.wp-block-template-part{
		margin-top: 100px;
		#siteFooter{
			border-radius: var(--radius-xl) var(--radius-xl) 0 0;
		}
		.footer-menu{
			color: #fff;
			display: flex;
			flex-direction: column;
			align-items: start;
			gap: 12px;
			padding-right: 20px;
			 a{
				color: #fff;
				font-size: 22px;
				font-weight: 600;
				line-height: 1;
			}
			p{
				margin: 0;
			}
		}
		.wp-block-social-links{
			gap: 12px;
			li{

			}
			.wp-social-link span:not(.screen-reader-text) {
				font-size: 22px;
				line-height: 24px;
			}
		}
		a{
			color: white;
			text-decoration: none;
			&:hover{
				color: var(--wp--preset--color--custom-grey-darker);
			}
		}
	}


/* ## Navigation
------------------------------------------- */
	nav#menu-main.level-1{
		gap: 20px;
		> .menu-item > a{
			padding-block: 8px;
			color: white;
			font-weight: 700;
		}
		.level-2{
			width: 250px;
			border: solid 1px white;
			/* overflow: clip; */
			border-radius: var(--unit-sm);
			> .menu-item {
				> a{
					color: var(--wp--preset--color--primary);
					background-color: white;
					font-weight: 500;
					padding: 6px 16px;
					&:hover{
						background-color: var(--wp--preset--color--primary);
						color: white;
					}
				}
				&:first-child > a{
					border-top-left-radius: var(--unit-sm);
					border-top-right-radius: var(--unit-sm);
				}
				&:last-child > a{
					border-bottom-left-radius: var(--unit-sm);
					border-bottom-right-radius: var(--unit-sm);
				}
			}
			.level-3{
				border: solid 1px white;
				border-radius: var(--unit-sm);
				> .menu-item {
					> a{
						color: var(--wp--preset--color--primary);
						background-color: rgba(255, 255, 255, 0.9);
						font-weight: 500;
						padding: 6px 16px;
						&:hover{
							background-color: var(--wp--preset--color--primary);
							color: white;
						}
					}
					&:first-child a{
						border-top-left-radius: var(--unit-sm);
						border-top-right-radius: var(--unit-sm);
					}
					&:last-child a{
						border-bottom-left-radius: var(--unit-sm);
						border-bottom-right-radius: var(--unit-sm);
					}
				}
			}
		}
		.menu-button{
			a{
				display: grid;
				place-content: center;
				background-color: #fff;
				border-radius: var(--radius-sm);
				color: var(--wp--preset--color--primary);
				padding-inline: 1rem;
				transition: all 0.4s ease;
				&:hover{
					background-color: var(--wp--preset--color--secondary);
					color: #fff;
				}

			}
		}
	}
	nav#menu-secondary.level-1{
		gap: 20px;
		background-color: white;
		padding: 20px 80px;
		border-bottom-left-radius: 99px;
		transition: all 0.4s ease;
		> .menu-item > a{
			color: var(--wp--preset--color--primary);
			font-weight: 500;
			font-size: 15px;
		}
		@media(max-width: 600px){
			display: none;
		}
	}

	/*## postnav */
	nav.wp-block-query-pagination{
		justify-content: center;
		padding-block: 3rem 1rem;
		font-size: 20px;
		font-weight: 600;
		.page-numbers{
			text-decoration: none;
			padding: 0.5rem 1rem;
			border-radius: var(--radius-sm);
			background-color: var(--wp--preset--color--primary);
			color: white;
			&.current{
				background-color: var(--wp--preset--color--secondary);
			}
		}
	}


/* ## Content Zone
------------------------------------------- */
	main{
		padding-inline: var(--siteInset);
		.entry-content{
			margin-top: 0;
		}

	}


/* ## Layouts
------------------------------------------- */
	.fuse-post-grid{
		.wp-block-post{
			.wp-block-template-part{
				display: contents;
			}
			display: grid;
			grid-row: span 3;
			grid-template-rows: subgrid;
			row-gap: 0;
			.wp-block-post-featured-image{
				aspect-ratio: 16/9;
				img{
					object-fit: cover;
					width: 100%;
					height: 100%;
				}
			}
			.post-meta{
				padding-block: var(--unit-sm);
			}
			.wp-block-group.body > *{
				margin-top: 6px;
			}
			.wp-block-post-title{
				font-size: 20px;
			}
			.wp-block-post-excerpt{
				font-size: 14px;
			}
			.wp-block-group.tail{
				padding-block: var(--unit-sm);
			}
		}
	}
	:where(main .is-layout-grid){
		gap: 30px;
	}
	main .wp-block-group.alignfull{
		padding-inline: var(--siteInset);
	}

/* SECTION Components */

/* ## Spacer
------------------------------------------- */
	.wp-block-spacer.is-style-spacer-big,
	.wp-block-spacer[style="height:100px"]{
		height: clamp(60px, calc(42.857px + 4.762vw), 100px) !important;
	}
	.wp-block-spacer.is-style-spacer-med,
	.wp-block-spacer[style="height:50px"]{
		height: clamp(40px, calc(35.714px + 1.19vw), 50px) !important;
	}


/* ## Cards
------------------------------------------- */
	.has-cards > .wp-block-group{
		padding: var(--unit-md);
		img{
			margin-bottom: 10px;
			height: 50px;
			width: auto;
		}
	}
	.has-cards.cards-outline > .wp-block-group{
		border: solid 1px var(--wp--preset--color--primary);
		background-color: white !important;
	}
	.wp-block-group.has-img-semiround.has-img-landscape img{
		margin-bottom: clamp(16px, 13.091px + 0.909vw, 24px);
	}

/* ## Page Banner
------------------------------------------- */
	#pageBanner{
		padding-block: 200px 70px;
		padding-inline: var(--siteInset);
		@media(max-width: 600px){
			padding-top: 20vh;
		}
		min-height: 65vh;
		display: flex;
		align-items: end;
		margin-top: 0;
		border-bottom-left-radius: var(--radius-xl);
		border-bottom-right-radius: var(--radius-xl);
		position: relative;
		overflow: clip;
		.inner{
			width: 100%;
			position: relative;
			z-index: 2;
		}
		.content{
			max-width: 800px;
			margin-left: 0 !important;
			@media(max-width: 1024px){
				max-width: 75%;
			}
			@media(max-width: 600px){
				max-width: 100%;
			}
		}
		&[style*="background-image"]{
			min-height: 90vh;
			&:before{
				content: '';
				position: absolute;
				inset: 0;
				z-index: 1;
				background: #000000;
				background: linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 33%, rgba(0, 0, 0, 0) 66%, rgba(0, 0, 0, 0.5) 100%);
			}
		}
		&:after{
			content: '';
			bottom: 0;
			left: 66%;
			right: 0;
			top: 25%;
			position: absolute;
			z-index: 2;
			background-image: url('assets/images/fountain.png');
			background-size: contain;
			background-position: bottom right;
			background-repeat: no-repeat;
		}
		&:last-child{
			margin-bottom: 100px;
		}
	}
	body:is(.single-post,.single-event) #pageBanner{
		min-height: 30vh;
		margin-bottom: 100px;
	}

	/* ## Fuse Sliders
	------------------------------------------- */
	.fuse-slider-type1{
		.slick-track{
			display: flex;
			gap: 30px;
			/* padding-inline: 10vw; */
		}
		.wp-block-group.slick-slide{
			figure{
				width: 100%;
				img{
					width: 100%;
					aspect-ratio: 1;
					object-fit: cover;
				}
			}
		}
	}
	.slide-nav{
		.slide-prev,.slide-next{
			cursor:pointer;
			padding: 12px;
			border: solid 2px var(--wp--preset--color--primary);
			width: 50px;
			border-radius: 50%;
			transition: all 0.4s ease;
			color: var(--wp--preset--color--primary);
			&:hover{
				background-color: var(--wp--preset--color--secondary);
				color: white !important;
				border-color: var(--wp--preset--color--secondary);
			}
		}
	}
	.fuse-slider-posts{
		margin-right: calc(50% - 50vw);
		.slick-list{
			padding-right: 15% !important;
		}
		.slick-track{
			display: flex;
			gap: 1rem;
			&::before{
				display: none;
			}
		}
		.item{
			display: flex;
			flex-direction: column;
			gap: 1rem;
			.post-tags a{
				color: var(--wp--preset--color--primary);
				text-decoration: none;
			}
		}
	}

	/* ## Image Slider
	------------------------------------------- */
		.wp-block-cb-carousel-v2{
			figure{
				width: 100%;
				aspect-ratio: 4/3;
				img{
					width: 100%;
					height: 100%;
					object-fit: cover;
					border-radius: var(--radius);
				}
			}
			.cb-button-prev, .cb-button-next{
				top: auto;
				left: auto;
				background: transparent;
				border: solid 1px white;
				color: white;
				opacity: 1;
				bottom: 50px;
				width: 50px;
				height: 50px;
				display: grid;
				place-content: center;
				border-radius: 50%;
				&.swiper-button-disabled{
					opacity: 0.3;
				}
				&:after{
					content: url(assets/images/arrow-white.svg);
					width: 22px;
				}
				&:hover{
					background-color: var(--wp--preset--color--secondary);
				}
			}
			.cb-button-prev {
				right: 110px;
				&::after{
					rotate:180deg;
				}
			}
			.cb-button-next {
				right: 50px;
			}

		}

/* ## Search Block
------------------------------------------- */
	:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) {
		border: none;
	}

/* ## Reveal Block
------------------------------------------- */
@media(min-width: 600px){
	.reveal-block{
		.hidden{
			height:auto;
			overflow-y: clip;
			max-height: 0;
			transition: all 1s ease;
		}
		&:hover{
			.hidden{
				max-height: 600px;
			}
		}
	}
}
@media(max-width: 600px){
	.wp-block-cover__background{
		background-color: rgba(0, 0, 0, 0.6) !important;
	}

}

/* ## Tabs
------------------------------------------- */
	.wp-block-tabs{
		.wp-block-tab-list{
			button{
				background-color: #fff;
				color: var(--wp--preset--color--primary);
				border-radius: var(--radius-sm);
				border-bottom-left-radius: 0;
				border-bottom-right-radius: 0;
				font-size: clamp(20px, calc(15.714px + 1.19vw), 30px);
				font-weight: 700;
				padding-right: 10vw;
				border:none;
				&[type="button"]:hover{
					background-color: var(--wp--preset--color--tertiary) !important;
					color: var(--wp--preset--color--primary) !important;
				}
				&::before{
					display: none;
				}
				@media(max-width: 600px){
					padding: 10px;
					border-top-left-radius: 10px;
					border-top-right-radius: 10px;
				}
			}
			button[aria-selected="true"]{
				background-color: var(--wp--preset--color--tertiary);
			}
		}
		.wp-block-tab-panels{
			background-color: var(--wp--preset--color--tertiary);
			margin-inline: calc(50% - 50vw) !important;
			padding-block: 100px;
			padding-inline: var(--siteInset);
			border-radius: var(--radius-xl);
			@media(max-width: 600px){

			}
			.wp-block-tab-panel{
				max-width: var(--wp--style--global--content-size);
				margin-left: auto !important;
				margin-right: auto !important;
			}
			h4.accordion-title{
				font-size: clamp(24px, calc(21.429px + 0.714vw), 30px);
			}
		}
		.subject-cards-wrap{
			margin-block: 30px;
			> .wp-block-group{
				background-color: white;
				padding: var(--unit-md);
				border-radius: var(--radius-sm);
		} 
		}
	}

/* !SECTION */

/* ## Animations
------------------------------------------- */
.link-button.wp-block-boldblocks-svg-block{
	color: var(--wp--preset--color--primary);
	width: 50px;
	height: 50px;
	border: solid 2px currentColor;
	border-radius: 50%;
	transition: all 0.4s ease;
	a{
		display: grid;
		place-content: center;
	}
	svg{
		width: 12px;
		height: 12px;
		transition: all 0.4s ease;
		position: relative;
		top: 0;
		right: 0;
	}
	&:hover{
		rotate: 45deg;
		svg{
			top: -9px;
			right: -9px;
		}
	}
}



/* ## Page Template Volleyball
------------------------------------------- */
body.page-template-page-volleyball{
	a,
	nav#menu-main.level-1 .menu-button a,
	nav#menu-secondary.level-1 > .menu-item > a {
		color: var(--wp--preset--color--secondary);
	}
	.has-cards.cards-outline > .wp-block-group{
		border: solid 1px var(--wp--preset--color--secondary);
	}
	.slide-nav{
		.slide-prev,.slide-next{
			border: solid 2px var(--wp--preset--color--secondary);
			color: var(--wp--preset--color--secondary);
			&:hover{
				background-color: var(--wp--preset--color--primary);
				border-color: var(--wp--preset--color--primary);
			}
		}
	}
	.invert-buttons{
		.wp-block-button__link{
			background-color: white;
			color: var(--wp--preset--color--secondary);
			&:hover{
				background-color: var(--wp--preset--color--secondary);
				color: white;
				border-color: white;
			}
		}
		.is-style-outline{
			.wp-block-button__link{
				background-color: transparent;
				color: white;
				border-color: white;
				&:hover{
					background-color: white;
					color: var(--wp--preset--color--secondary);
					border-color: white;
				}
			}
		}
	}
	#siteFooter{
		background-color: var(--wp--preset--color--secondary) !important;
	}

	&.scrolled {
		& #siteHeader {
			background-color: rgba(164, 19, 36, 0.75);
		}
	}
}

