/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/*
 * Media Queries
 * 
 * Mobile only 
@media (max-width: 768px) {}
 *
 * Tablet and above
@media (min-width: 769px) {}
 *
 * Tablet only 
@media (min-width: 769px) and (max-width: 1024px) {}
 *
 * Tablet and smaller 
@media (max-width: 1024px) {}
 *
 * Desktop only 
@media (min-width: 1025px) {}
*/

.cf:before,
.cf:after {
    content: " ";
    display: table;
}

.cf:after {
    clear: both;
}

a.no-underline,
.no-underline a {
    text-decoration: none;
}

a.hover-underline,
.hover-underline a {
    text-decoration: none;
}

a.hover-underline:hover,
a.hover-underline:focus,
.hover-underline a:hover,
.hover-underline a:focus {
    text-decoration: underline;
}

a.underline-only {
    text-decoration: none;
}

.underline-only:hover .underline-this,
.underline-only:focus .underline-this {
    text-decoration: underline;
}

.text-balance {
    text-wrap: balance;
}

.text-pretty {
    text-wrap: pretty;
}

.flex,
a.flex {
	display: flex;
}

.entry-content .wp-block-list li:not(:last-child) {
	margin-bottom: 8px;
}

@media (max-width: 768px) {
	#masthead .header-image {
		max-width: 140px;
	}
}

/* header */

#masthead .mobile-menu-control-wrapper {
	margin-left: 24px;
}

#masthead .mobile-menu-control-wrapper button {
	border: 1px solid #fff;
	border-radius: 6px;
}

#menu-primary-menu .nav-phone a {
	align-items: center;
	border-radius: 12px;
	border: 1px solid var(--brand-1);
	column-gap: 8px;
	display: flex;
	font-weight: 700;
	margin-left: 12px;
}

#menu-primary-menu .nav-phone svg {
	transform: translateY(2px);
	width: 20px;
}

#generate-slideout-menu .nav-phone a {
	display: none;
}

#generate-slideout-menu .offscreen-nav-phone {
	display: flex;
}

/* cf7ui */

.cu-md-filled.cu-form {
	--grid-gap: 16px;

	--submit-bg-color: #016f01;
	--submit-bg-color-hover: #006200;

	--input-color: #222;

	--input-bg: #fff;
	--input-bg-hover: #ececec;
	--input-bg-focus: #e0e0e0;

	--input-border: 1px solid #016f01;
	--input-border-color-hover: #007b01;
	--input-border-color-focus: #006200;

	--label-color: #626262;
	--label-color-focus: rgba(0, 0, 0, 0.6);
	--label-color-focus-within: #016f01;

	--not-valid-color: #dc3232;
}

.cu-form,
.cu-form * {
	box-sizing: border-box;
}

.cu-grid {
	display: grid;
	grid-gap: var(--grid-gap);
	grid-template-columns: repeat(1, minmax(0, 1fr));
}

.cu-col-span-full {
	grid-column: 1/-1;
}

.cu-form label {
	display: block;
	font-size: 1rem;
	font-weight: 500;
	position: relative;
}

.cu-form .cu-label-text {
	display: inline-block;
	margin-bottom: 4px;
}

.cu-form .cu-label-text,
.cu-form .wpcf7-list-item-label,
.cu-form .cu-form-subhead {
	color: var(--label-color);
}

.cu-form .wpcf7-form-control-wrap {
	display: inline-block;
}

.cu-form .cu-hr {
	background-color: var(--label-color);
	margin: 8px 0;
}

.cu-form .cu-form-subhead {
	display: block;
	margin-bottom: 8px;
}

.cu-form .wpcf7-form-control-wrap,
.cu-form .wpcf7-form-control:not(.wpcf7-submit) {
	width: 100%;
}

.cu-checkbox-container {
	font-size: 0.85em;
}

.cu-checkbox-container.cu-display-column .wpcf7-form-control,
.cu-radio-container.cu-display-column .wpcf7-form-control {
	display: flex;
	flex-direction: column;
}

.cu-checkbox-container label,
.cu-radio-container label {
	display: inline-flex;
	justify-content: space-between;
}

.cu-checkbox-container .wpcf7-list-item-label,
.cu-radio-container .wpcf7-list-item-label {
	margin-left: 6px;
}

.cu-form .wpcf7-list-item.first,
.cu-form .cu-display-column .wpcf7-list-item {
	margin-left: 0;
}

.cu-form .wpcf7-not-valid-tip {
	color: var(--not-valid-color);
	margin-top: 2px;
}

.cu-form .wpcf7-spinner {
	display: none;
}

.cu-form input[type="text"],
.cu-form input[type="email"],
.cu-form input[type="tel"],
.cu-form input[type="url"],
.cu-form textarea,
.cu-form select {
	background-color: var(--input-bg);
	border: var(--input-border);
	border-radius: 2px;
	color: var(--input-color);
	font-size: 1rem;
}

.cu-form input[type="text"]:hover,
.cu-form input[type="email"]:hover,
.cu-form input[type="tel"]:hover,
.cu-form input[type="url"]:hover,
.cu-form textarea:hover,
.cu-form select:hover {
	background-color: var(--input-bg-hover);
	border-color: var(--input-border-color-hover);
}

.cu-form input[type="text"]:focus,
.cu-form input[type="email"]:focus,
.cu-form input[type="tel"]:focus,
.cu-form input[type="url"]:focus,
.cu-form textarea:focus,
.cu-form select:focus {
	background-color: var(--input-bg-focus);
	border-color: var(--input-border-color-focus);
	color: var(--input-color);
}

.cu-form select {
	background-color: var(--input-bg);
	color: var(--input-color);
}

.cu-form select:focus,
.cu-form select:hover {
	background-color: var(--input-bg);
	color: var(--input-color);
}

.cu-form select option {
	color: #222;
}

.cu-form input[type="submit"] {
	background: var(--submit-bg-color);
	padding: 12px 32px;
}

.cu-form input[type="submit"]:hover,
.cu-form input[type="submit"]:focus {
	background: var(--submit-bg-color-hover);
}

.cu-form .submitting input.c6-submit {
	display: none;
}

.cu-form .submitting .wpcf7-spinner {
	display: inline-block;
}

.cu-form~div.wpcf7-response-output {
	color: var(--label-color);
	margin: 20px 0 0;
}

@media (min-width: 768px) {
	.cu-grid {
		display: grid;
		grid-gap: var(--grid-gap);
		grid-template-columns: repeat(9, minmax(0, 1fr));
	}

	.cu-col-span-1 {
		grid-column: span 1/span 1;
	}

	.cu-col-span-2 {
		grid-column: span 2/span 2;
	}

	.cu-col-span-3 {
		grid-column: span 3/span 3;
	}

	.cu-col-span-4 {
		grid-column: span 4/span 4;
	}

	.cu-col-span-5 {
		grid-column: span 5/span 5;
	}

	.cu-col-span-6 {
		grid-column: span 6/span 6;
	}

	.cu-col-span-7 {
		grid-column: span 7/span 7;
	}

	.cu-col-span-8 {
		grid-column: span 8/span 8;
	}

	.cu-col-span-9 {
		grid-column: span 9/span 9;
	}

	.cu-col-span-10 {
		grid-column: span 10/span 10;
	}

	.cu-col-span-11 {
		grid-column: span 11/span 11;
	}

	.cu-col-span-12 {
		grid-column: span 12/span 12;
	}
}

.cu-md-filled .cu-label-text {
	color: var(--label-color);
    font-size: 18px;
    font-weight: 400;
	left: 15px;
	pointer-events: none;
    position: absolute;
	top: 14px;
	transition: all 150ms ease-in-out;
	will-change: transform;
	z-index: 2;
}

.cu-md-filled .cu-label-text.position-static {
	position: static;
}

.cu-md-filled input[type="text"],
.cu-md-filled input[type="email"],
.cu-md-filled input[type="tel"],
.cu-md-filled input[type="url"],
.cu-md-filled textarea,
.cu-md-filled select {
	background-color: var(--input-bg);
	border: var(--input-border);
	border-radius: 4px;
	font-size: 16px;
	padding: 20px 16px 6px;
}

.cu-md-filled input[type="text"]:hover,
.cu-md-filled input[type="email"]:hover,
.cu-md-filled input[type="tel"]:hover,
.cu-md-filled input[type="url"]:hover,
.cu-md-filled textarea:hover,
.cu-md-filled select:hover {
	background-color: var(--input-bg-hover);
}

.cu-md-filled input[type="text"]:focus,
.cu-md-filled input[type="email"]:focus,
.cu-md-filled input[type="tel"]:focus,
.cu-md-filled input[type="url"]:focus,
.cu-md-filled textarea:focus,
.cu-md-filled select:focus {
	background-color: var(--input-bg-focus);
	border-color: var(--input-border-color-focus);
	color: var(--input-color);
	outline: none;
}

.cu-md-filled .cu-label.is-active .cu-label-text,
.cu-md-filled .cu-label.is-select .cu-label-text,
.cu-md-filled .cu-label:focus-within .cu-label-text {
	color: var(--label-color-focus);
	font-size: 13px;
	top: 3px;
}

.cu-md-filled .cu-label:focus-within .cu-label-text {
	color: var(--label-color-focus-within);
}

.cu-md-filled .cu-label:focus-within input[type="text"],
.cu-md-filled .cu-label:focus-within input[type="email"],
.cu-md-filled .cu-label:focus-within input[type="tel"],
.cu-md-filled .cu-label:focus-within input[type="url"],
.cu-md-filled .cu-label:focus-within textarea {
	background-color: var(--input-bg-focus);
	margin-top: -1px;
}

.cu-md-filled .is-select select {
	-webkit-appearance: none;
	appearance: none;
	padding-right: 26px;
}

.cu-md-filled .is-select .wpcf7-form-control-wrap {
	position: relative;
}

.cu-md-filled .is-select .wpcf7-form-control-wrap::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m12 15-5-5h10Z'/%3E%3C/svg%3E");
	content: "";
	height: 24px;
	pointer-events: none;
	position: absolute;
	right: 6px;
	top: 14px;
	width: 24px;
}

.cu-md-filled option {
	color: #222;
}

.cu-md-filled input[type="submit"] {
	background-color: var(--submit-bg-color);
	border-radius: 4px;
	box-shadow: 0px 3px 1px -2px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%), 0px 1px 5px 0px rgb(0 0 0 / 12%);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 1px;
	padding: 13px 15px;
	text-transform: uppercase;
}

.cu-md-filled .wpcf7-not-valid-tip,
.cu-md-filled .cu-form-hint {
	margin-left: 14px;
}

.cu-md-filled .wpcf7-not-valid-tip {
	font-weight: 600;
}

/* end cf7ui */