/*
Theme Name: Castle Hill Fitness
Theme URI: https://www.castlehillfitness.com/
Author: Alex Ray Dotte
Description: Castle Hill Fitness Theme
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags:
Text Domain: castlehill
*/
@font-face {
	font-family: 'Scandia';
	src:
		url(/wp-content/themes/castlehill/assets/fonts/ScandiaWebRegular.woff2) format('woff2'),
		url(/wp-content/themes/castlehill/assets/fonts/ScandiaWebRegular.woff) format('woff');
	font-display: swap;
}

@font-face {
	font-family: 'Scandia';
	font-weight: bold;
	src:
		url(/wp-content/themes/castlehill/assets/fonts/ScandiaWebBold.woff2) format('woff2'),
		url(/wp-content/themes/castlehill/assets/fonts/ScandiaWebBold.woff) format('woff');
	font-display: swap;
}

@font-face {
	font-family: 'ScandiaMedium';
	font-weight: bold;
	src:
		url(/wp-content/themes/castlehill/assets/fonts/ScandiaWebMedium.woff2) format('woff2'),
		url(/wp-content/themes/castlehill/assets/fonts/ScandiaWebMedium.woff) format('woff');
	font-display: swap;
}

@font-face {
	font-family: 'ScandiaLine';
	src:
		url(/wp-content/themes/castlehill/assets/fonts/ScandiaLineWebRegular.woff2) format('woff2'),
		url(/wp-content/themes/castlehill/assets/fonts/ScandiaLineWebRegular.woff) format('woff');
	font-display: swap;
}

@font-face {
	font-family: 'ScandiaLine';
	font-weight: bold;
	src:
		url(/wp-content/themes/castlehill/assets/fonts/ScandiaLineWebBold.woff2) format('woff2'),
		url(/wp-content/themes/castlehill/assets/fonts/ScandiaLineWebBold.woff) format('woff');
	font-display: swap;
}

@font-face {
	font-family: 'House';
	src:
		url('/wp-content/themes/castlehill/assets/fonts/dessertmenuscript-regular-webfont.woff2')
			format('woff2'),
		url('/wp-content/themes/castlehill/assets/fonts/dessertmenuscript-regular-webfont.woff')
			format('woff');
	font-display: swap;
}
@font-face {
	font-family: 'DessertMenuScript';
	src:
		url('/wp-content/themes/castlehill/assets/fonts/dessertmenuscript-regular-webfont.woff2')
			format('woff2'),
		url('/wp-content/themes/castlehill/assets/fonts/dessertmenuscript-regular-webfont.woff')
			format('woff');
	font-display: swap;
}
@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@-webkit-keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes rotate360 {
	0% {
		transform: rotate(0);
	}

	100% {
		transform: rotate(360deg);
	}
}

@-webkit-keyframes rotate360 {
	0% {
		transform: rotate(0);
	}

	100% {
		transform: rotate(360deg);
	}
}

@keyframes arrow {
	0% {
		opacity: 0;
	}

	40% {
		opacity: 1;
	}

	80% {
		opacity: 0;
	}

	100% {
		opacity: 0;
	}
}

@-webkit-keyframes arrow {
	0% {
		opacity: 0;
	}

	40% {
		opacity: 1;
	}

	80% {
		opacity: 0;
	}

	100% {
		opacity: 0;
	}
}

* {
	font-family: 'Scandia', sans-serif;
}

body {
	background: white;
	color: #3a302f;
	text-align: center;
	margin: 0;
	outline: 0;
}

h1 {
	margin: 0;
	padding: 0.5em 0;
	font-size: 2rem;
}

h2 {
	margin: 0;
	padding: 1em 0 0.5em;
	text-align: center;
	font-weight: bold;
	font-size: 1.5rem;
}

h3 {
	font-size: 1.17rem;
	padding: 0.5em 0;
	margin: 0;
}

h4 {
	font-size: 1rem;
	line-height: 1.7em;
}

h5 {
	font-size: 0.83rem;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 0;
	margin-top: 1em;
}

p {
	text-indent: 0;
	margin: 0;
	padding: 0.3em 0 1em;
	line-height: 1.33em;
	font-size: 13px;
}

p.center {
	text-align: center !important;
}

html {
	scroll-padding-top: 136px; /* fixed header height */
}

html.admin-bar {
	scroll-padding-top: 168px; /* fixed header height + admin bar (32px) */
}

@media screen and (max-width: 782px) {
	html.admin-bar {
		scroll-padding-top: 182px; /* fixed header height + mobile admin bar (46px) */
	}
}

.hidden {
	display: none;
}

a,
a.default,
a:visited {
	color: #00b4cf;
	outline: 0;
	text-decoration: none;
}

a:hover,
a.default:hover {
	color: #333333;
	text-decoration: underline;
}

a.white {
	color: white;
}

a.black {
	color: inherit;
	text-decoration: underline;
}

a.nounder {
	text-decoration: none;
}

.notextwrap {
	overflow: auto;
}

.nf-form-cont {
	overflow: hidden !important;
}

.nf-form-fields-required {
	display: none;
}

.ninja-forms-form-wrap {
	max-width: 800px;
	background: none;
	padding: 1em 5%;
	margin: 0 auto;
	clear: none !important;
}

.nf-field-container,
#ninja_forms_required_items,
.nf-field-label,
.nf-field,
#ninja_forms_required_items::after,
.nf-form-cont .first {
	clear: none !important;
}

.nf-field-element ul li {
	display: inline-block;
	margin-right: 4em !important;
}

.nf-field-element ul li label {
	margin-right: 1.5em !important;
}

.nf-field select[multiple] {
	background: #f7f7f7;
	border: 1px solid #c4c4c4 !important;
	transition: 0.5s ease background;
}

.nf-field select[multiple]:focus {
	background: white;
}

hr {
	border: solid #eee;
	border-width: 3px 0 0;
	clear: both !important;
	margin: 20px 0 40px;
	height: 0;
}

table {
	margin: 0;
	padding: 0;
	border-spacing: 0;
}

ul {
	margin: 0;
	padding: 0;
	list-style-type: none;
	font-size: inherit;
}

ul li {
	font-size: inherit;
	margin: 0;
}

label {
	color: #432d20;
}

img {
	border: 0;
	max-width: 100%;
	display: inline-block;
}

img:hover {
	border: 0;
}

img.photo {
	border: 2px solid #999999;
}

footer {
	padding: 3em;
	font-size: larger;
	text-align: center;
	position: relative;
	z-index: 10;
	background: white;
}

footer .footer-legal {
	font-size: 0.85rem;
	color: #666;
}

footer .footer-legal a {
	color: inherit;
	text-decoration: none;
	margin: 0 0.5em;
	transition: color 0.2s ease;
}

footer .footer-legal a:hover {
	text-decoration: underline;
}

footer a {
	margin: 0 1em;
	display: inline-block;
}

footer img {
	opacity: 0.8;
	transition: 0.5s linear all;
}

footer img:hover {
	opacity: 1;
}

#bodyblock {
	background: rgba(255, 255, 255, 0.8);
	position: fixed;
	content: '';
	height: 100%;
	left: 0;
	opacity: 0;
	padding: 0;
	top: 0;
	visibility: hidden;
	transition: opacity 0.4s ease;
	width: 100%;
}

#bodyblock.open {
	opacity: 1;
	visibility: visible;
	z-index: 1000;
}

.fixedbg {
	background-attachment: fixed;
}

section {
	margin: 0;
	position: relative;
}

h2.section-title {
	border-bottom: 2px solid #00deff;
	display: inline-block;
	padding: 0.5em 2em;
	margin: 0 auto;
}

a.button,
a.btn,
button,
.hc-button {
	display: inline-block;
	border-radius: 0 !important;
	color: #004b65 !important;
	border: 1px solid #23282d !important;
	padding: 1.2em;
	font-size: 10pt;
	transition: 0.5s ease all;
	cursor: pointer;
	text-transform: uppercase;
	background: white !important;
	text-decoration: none !important;
	-webkit-appearance: none;
	appearance: none;
}

a.btn.transbtn {
	background: none !important;
	border: 2px solid white !important;
	color: white !important;
}

button a {
	text-decoration: none !important;
	color: inherit !important;
}

/** Healcode Widget Styles */
.bw-session__info > div {
	flex: 1;
}

.bw-session__info > div:nth-child(2) {
	flex: 2.4;
}

.bw-session__detail-link,
.bw-header__filter-link {
	border: none !important;
}

.bw-fullcal-button,
.bw-header__account-link {
	padding: 0.5em 1em !important;
}

a.btn:hover,
a.button:hover,
button:hover:not(.bw-session__detail-link),
.hc-button:hover,
appointment.button:hover {
	background: #202020 !important;
	color: white !important;
}
a.btn.transbtn:hover {
	background: white !important;
	color: #004b65 !important;
}

.healcode-trainer > .trainer-label > a {
	pointer-events: none;
	cursor: text;
}

h1 span.healcode-title-text {
	color: #3a302f !important;
}

.hc_footer img {
	display: inline-block;
	width: 120px !important;
	max-width: 100%;
	height: auto !important;
	margin-right: 1% !important;
}

healcode-widget * {
	font-family: 'Scandia', sans-serif !important;
}

button.healcode_button {
	padding: 0;
}

button.healcode_button a {
	display: block;
	padding: 1.2em;
}

button healcode-widget * {
	text-decoration: none !important;
}

button:hover healcode-widget * {
	color: white !important;
}

@media (max-width: 800px) {
	button.healcode a {
		font-size: x-small;
		white-space: nowrap;
	}
}

@media (max-width: 480px) {
	button.healcode a {
		font-size: x-small;
	}
}

i.arrow {
	border: solid #6a6a6a;
	border-width: 0 2px 2px 0;
	display: inline-block;
	padding: 3px;
	margin: 0.5em 1em 0.5em 0.5em;
}

.arrow.right {
	-webkit-transform: rotate(-45deg);
	transform: rotate(-45deg);
}

.arrow.left {
	-webkit-transform: rotate(135deg);
	transform: rotate(135deg);
}

.arrow.up {
	-webkit-transform: rotate(-135deg);
	transform: rotate(-135deg);
	margin-bottom: 0;
}

.arrow.down {
	-webkit-transform: rotate(45deg);
	transform: rotate(45deg);
}

a.showmore {
	display: block;
	width: auto;
	height: 12px;
	cursor: pointer;
	font-size: smaller;
	line-height: 1.3em;
	position: relative;
	margin-bottom: 1em;
	color: inherit;
}

a.showmore i {
	color: inherit;
	display: inline-block;
	transition: 0.2s ease-in all;
}

a.hidedetails::after {
	visibility: hidden;
}

.featured-wrap {
	clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
}

.featured-fixed-bg {
	position: fixed;
	z-index: -1;
	display: block;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
}

@media (orientation: portrait) {
	.featured-fixed-bg {
		position: relative;
	}
}

.textbody {
	margin: 0 auto;
	padding: 1em 0;
	width: 100%;
	max-width: 90%;
	position: relative;
	text-align: left;
}

.alignleft {
	float: left;
	margin-right: 2em;
}

.alignright {
	float: right;
	clear: right;
	max-width: 50% !important;
	margin-left: 1.625em;
}

.aligncenter {
	clear: both;
	display: block !important;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.wp-caption {
	max-width: 100%;
}

.entry-content h3,
.textbody h3 {
	margin-top: 1.3em;
}

.xbox {
	float: right;
	margin: 0 0 3px 3px;
	cursor: pointer;
}

.xbox:hover {
	cursor: pointer;
}

.pullleft {
	margin: 0 2em 0 -1em;
}

.threewaycol {
	background: white;
	border-bottom: 5px solid rgb(114, 199, 178);
}

.swiper-container {
	position: relative;
}
.swiper-button-offset-right {
	right: -30px;
}
.swiper-button-offset-left {
	left: -30px;
}
.hc_cart_button {
	border-radius: 0 !important;
}

.appstore {
	margin: 1em;
	transition: 0.5s ease all;
	max-width: 45%;
	height: auto;
	width: 160px;
	margin: 1%;
}

.loader {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #366b80;
	z-index: 1;
}

.xbtn_white {
	background: url(/wp-content/themes/castlehill/assets/icon-close-128.png) center no-repeat;
	height: 12px;
	width: 12px;
	background-size: 12px 12px;
	padding: 10px;
	display: block;
	cursor: pointer;
	position: absolute;
	top: 0;
	right: 0;
	z-index: 1000;
}

input[type='radio'] {
	margin-left: 4em;
}

input[type='button'] {
	cursor: pointer;
}

label,
input[type='text'],
input[type='number'],
input[type='email'],
input[type='tel'],
select {
	line-height: 1em;
	font-size: 11pt !important;
	padding: 0.5em;
}

.mainwrap {
	width: 100%;
	padding: 0 0 20px;
	width: 100%;
	margin: 0 auto;
	z-index: 10;
	color: #3a302f;
	background: white;
	max-width: 1290px;
	position: relative;
	z-index: 0;
	font-size: 10pt;
	overflow: visible !important;
}
.services h3 {
	text-transform: uppercase;
	font-family: 'ScandiaLine', sans-serif;
	font-weight: normal;
}
.mainwrap.fullwidth {
	max-width: 1600px;
}

.maincontent {
	max-width: 94%;
	margin: 0 auto;
	padding: 1rem 0;
	overflow: visible !important;
}

.maincontent a {
	color: inherit;
	text-decoration: underline;
}
.maincontent h2,
.maincontent h3,
.maincontent h4,
.maincontent h5 {
	color: #555;
}

.mainwrap img {
	display: inline-block;
	max-width: 100%;
	height: auto;
}

.mainwrap article {
	line-height: 1.8em;
	color: #555;
	text-align: left;
}

.mainwrap p,
.mainwrap li {
	text-align: left;
	font-size: 11.5pt;
	line-height: 1.8em;
	color: #555;
}

.ptablewrap {
	overflow-x: auto;
	max-width: 100%;
	position: relative;
}
table.ptable {
	margin: 1em auto 2em;
	width: 100%;
	border-spacing: 0 0.5em;
	font-size: medium;
}
table.ptable h3 {
	font-size: larger;
}
table.ptable th:first-child {
	width: 50%;
	vertical-align: bottom;
}

details {
	background-color: #fff;
}

details summary {
	background-color: #f7f7f7;
	padding: 7px 15px;
	cursor: pointer;
	user-select: none;
	border: 1px solid #ddd;
	overflow: hidden;
	margin-bottom: 10px;
	border-radius: 5px;
}

details table {
	padding: 15px;
	border-spacing: 0 !important;
	width: 100%;
	box-sizing: border-box;
	margin: 1em 0;
}

details table thead th {
	text-align: left;
}

details table tbody tr:nth-child(odd) {
	background: none;
}

details table tbody tr:nth-child(even) {
	background: #f0f0f0;
}

details table tbody td {
	width: 20%;
}

details table tbody td {
	padding: 5px 8px;
}
.mainwrap table td.text {
	padding: 5%;
}

.mainwrap table td {
	vertical-align: top;
}

.mainwrap table td ul li {
	font-size: inherit;
}

.mainwrap ul {
	list-style: outside disc;
	padding: 0 2em 1em;
	margin: 0;
	font-size: 12pt;
}

.mainwrap ul li {
	text-align: left;
	line-height: 2em;
}

.mainwrap ul li ul {
	list-style: outside circle;
	padding: 0.5em 2em 1em;
}

.mainwrap li {
	color: #555;
}

.mainwrap li a {
	color: inherit;
}

p.wp-caption-text {
	font-size: smaller;
}

.secheader {
	padding: 50px 1em;
	background: #014964 url(/wp-content/themes/castlehill/assets/blue-navy.svg) 0 0 no-repeat;
	background-size: cover;
	position: relative;
}
/* ── secheader SVG backgrounds ── */
.secheader--coral {
	background-image: url(/wp-content/themes/castlehill/assets/coral-blue.svg);
	background-position: bottom center;
	background-repeat: no-repeat;
	background-size: 100% auto !important;
}
.secheader--yellow-right {
	background-image: url(/wp-content/themes/castlehill/assets/yellow-blue.svg);
	background-position: right center;
	background-repeat: no-repeat;
	background-size: 100% auto !important;
}
.secheader--yellow-left {
	background-image: url(/wp-content/themes/castlehill/assets/yellow-blue.svg);
	background-position: bottom left;
	background-repeat: no-repeat;
	background-size: 100% auto !important;
}
.secheader--yellow-bottom {
	background-image: url(/wp-content/themes/castlehill/assets/yellow-blue.svg);
	background-position: bottom center;
	background-repeat: no-repeat;
	background-size: 100% auto !important;
}

.blogheader {
	background-image: url(/wp-content/themes/castlehill/assets/orange-navy.svg);
}

.secheader h1,
.secheader h2 {
	position: relative;
	text-align: center;
	color: white;
	text-transform: uppercase;
	text-rendering: optimizeLegibility;
	font-size: 24pt;
	font-family: 'Scandia';
	font-weight: bold;
	padding: 0.5em 0;
}

.secheader h1 img {
	height: 200px;
	width: auto;
}

.secheader h1 a {
	color: white;
	text-decoration: none;
}

.multiplyover {
	position: relative;
	display: block;
	overflow: hidden;
	background-color: #fec33e;
	padding: 66% 0 0 0;
}

.multiplyover * {
	-webkit-backface-visibility: hidden;
	-moz-backface-visibility: hidden;
	-ms-backface-visibility: hidden;
	backface-visibility: hidden;
}

.multiplyover img {
	position: absolute;
	object-fit: cover;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	color: transparent;
	transition: 0.3s linear transform;
	filter: grayscale(100%);
	-webkit-transform-origin: center;
	transform-origin: center;
}

.multiplyover:after {
	content: '';
	display: block;
	background: #fec33e;
	opacity: 0.5;
	mix-blend-mode: multiply;
	position: absolute;
	left: -20%;
	top: 0;
	width: 150%;
	height: 110%;
	z-index: 9999;
	-webkit-transition: 0.3s linear all;
	transition: 0.3s linear all;
	-webkit-transform: rotateZ(45deg);
	transform: rotateZ(45deg);
}

.reverseoverlay .multiplyover:after {
	-webkit-transform: rotateZ(-45deg);
	transform: rotateZ(-45deg);
	left: -32%;
}

.orange,
.orange:after {
	background-color: #fec33e;
}

.yellow,
.yellow:after {
	background-color: #ffdb1d;
}

.green:after,
.lightgreen:after {
	background-color: #b7d77c;
}

.coral,
.coral:after {
	background-color: #f6957e;
}

.navy,
.navy:after {
	background-color: #008dbe;
}

.lightblue,
.lightblue:after {
	background-color: #72c7b2;
}

.blue,
.blue:after {
	background-color: #00b4cf;
}

.orange:after,
.coral:after,
.green:after {
	opacity: 0.6;
}

.blue:after {
	opacity: 0.4;
}

.multiplyover:hover:after {
	opacity: 0;
}

.multiplyover:hover img {
	filter: grayscale(0.1);
	-webkit-transform: scale(1.01);
	transform: scale(1.01);
}

.sharelinks {
	float: right;
	margin: 10px;
	font-size: 16pt;
	letter-spacing: 0.1em;
}

.sharelinks a {
	color: #999 !important;
	transition: 0.3s ease all;
}

.sharetag a,
.sharelinks a:hover {
	color: #00b4cf !important;
}

.sharetag {
	text-align: right;
	padding: 1em 1em 0;
	letter-spacing: 0.01em;
}

.sharetag a {
	margin: 0 0.2em;
}

input#s {
	font-size: 11pt !important;
	background-image: url(/wp-content/themes/castlehill/assets/search-icon.svg);
	background-position: 4px center;
	background-repeat: no-repeat;
	background-size: 20px auto;
	padding: 0.4em 0 0.4em 20px;
	width: 100%;
	box-sizing: border-box;
	border-radius: 0.2em;
	-webkit-appearance: none;
	appearance: none;
	border: 1px solid #ddd;
}

.nodesktop {
	display: none;
}

h2.section-title {
	border-bottom: 2px solid #00b4cf;
	display: inline-block;
	padding: 0.5em 2em;
	margin: 0 auto;
}

/* FONT AWESOME */
i.fa span {
	display: none;
}

.hide {
	opacity: 0;
	visibility: hidden;
	max-height: 0;
	overflow: hidden;
}

@media (max-width: 1200px) {
	.secheader {
		background-attachment: scroll;
	}
}

/** iPad 9.7 / tablet size **/
@media (max-width: 1024px) {
	.fixedbg {
		background-attachment: scroll !important;
		background-position: center !important;
		background-size: 100% auto;
	}

	.secheader {
		background-attachment: scroll;
	}
}

@media (max-width: 850px) {
	.arrows {
		-webkit-transform: scale(0.7);
		transform: scale(0.7);
	}

	.notablet {
		display: none !important;
	}

	.nodesktop {
		display: block;
	}

	.mainwrap {
		clear: both;
		margin: 0;
		width: 100%;
		padding: 0;
		float: none;
		max-width: 100%;
		overflow-x: hidden;
	}
}

@media (max-width: 650px) {
	body,
	input,
	textarea {
		font-size: 14px;
	}

	.entry-content img {
		max-width: 99%;
		height: auto;
	}

	article.intro .entry-content {
		font-size: 12px;
	}

	.entry-title {
		font-size: 21px;
	}

	.entry-meta {
		font-size: 12px;
	}
}

@media (max-width: 640px) {
	.clearmobile {
		display: block;
	}

	.entry-content table:not(.standard),
	.entry-content table:not(.standard) tr,
	.entry-content table:not(.standard) td {
		display: inline-table;
		border-spacing: inherit;
		width: 100% !important;
	}
}

/* tiny tablets and smaller */
@media (max-width: 599px) {
	.desc {
		max-height: 8.6em;
	}

	.chf_schedule_wrapper .desc:not(.showall) {
		max-height: 12em;
	}

	.chf_schedule_wrapper .desc.showall {
		max-height: none;
	}

	.maincontent {
		max-width: 90%;
	}

	#content {
		padding: 3% 5%;
	}
}

@media (max-width: 480px) {
	a.btn {
		font-size: 9pt;
	}

	.secheader h1 {
		font-size: 20pt;
	}

	footer {
		font-size: inherit;
	}

	footer .footer-legal {
		line-height: 2;
	}

	.mainwrap p,
	.mainwrap ul {
		font-size: 10.5pt;
	}

	.nomobile {
		display: none !important;
	}
}
/* ==========================================================================
   Gutenberg alignment
   ========================================================================== */

/* Full-bleed breakout */
.alignfull {
	box-sizing: border-box;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

/* Gutenberg layout compatibility for the legacy, centered theme stylesheet. */
.chf-welcome-layout,
.chf-welcome-layout p,
.chf-welcome-layout h2,
.chf-welcome-layout h3,
.chf-welcome-layout li {
	text-align: left;
}

.chf-welcome-layout ul,
.chf-welcome-layout ol {
	margin-left: 0;
	margin-right: 0;
	text-align: left;
}

.chf-welcome-layout li::marker {
	text-align: left;
}

.chf-welcome-layout__columns {
	box-sizing: border-box;
	width: 100%;
}

.chf-welcome-layout__columns .wp-block-group {
	box-sizing: border-box;
}

@media (max-width: 781px) {
	.chf-welcome-layout__columns {
		max-width: none !important;
	}
}

/* Wide width */
.alignwide {
	width: min(1400px, 100%);
	max-width: 1400px;
}
