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

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

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

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

.color-white {
	color: #fff !important;
}

.notched {
	--notch-inset: 4px; /* distance from element edge to border */
	--notch-border-width: 2px;
	--notch-color: #fff;
	--notch-offset-x: 14px; /* where the notch starts (from left) */
	--notch-width: 6px; /* how wide the notch is */
	--notch-depth: 5px; /* how far down it cuts — must exceed border width */

	position: relative;
}

.notched::before {
	content: '';
	position: absolute;
	inset: var(--notch-inset);
	border: var(--notch-border-width) solid var(--notch-color);
	pointer-events: none;
	clip-path: polygon(
		0 0,
		var(--notch-offset-x) 0,
		var(--notch-offset-x) var(--notch-depth),
		calc(var(--notch-offset-x) + var(--notch-width)) var(--notch-depth),
		calc(var(--notch-offset-x) + var(--notch-width)) 0,
		100% 0,
		100% 100%,
		0 100%
	);
}

.notched.notched-z-10::before {
	z-index: 10;
}

.pb-section.notched {
	--notch-inset: 16px;
	--notch-border-width: 4px;
}

.notched.notched-md {
	--notch-inset: 8px;
	--notch-border-width: 3px;
	--notch-offset-x: 36px;
	--notch-width: 8px;
}

.notched.no-notch {
	--notch-offset-x: 0;
}

.notched.notched-gray {
	--notch-color: #dbdbdb;
}

#primary-menu .nav-link a {
	background-color: #254274;
	color: #fff;
}

#primary-menu .nav-link a:hover {
	background-color: #2f4d80;
}

#primary-menu .nav-link-secondary a {
	background-color: #1e82e6;
}


#primary-menu .nav-link-secondary a:hover {
	background-color: #0475d8;
}

@media (min-width: 1025px) {
	#primary-menu .nav-link {
		margin-left: 20px;
	}
}

#generate-slideout-menu .main-nav {
	margin-bottom: 12px;
}

#mobile-menu-control-wrapper .menu-toggle {
	background-color: #1e82e6;
	color: #fff;
}

/* CONTACT FORM */

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

	--input-color: #222;
	--input-bg: #f5f5f5;
	--input-bg-hover: #f0f0f0;
	--input-bg-focus: #ececec;
	--input-border: 1px solid #bbb;
	--input-border-color-hover: #9e9e9e;
	--input-border-color-focus: #6200ee;
	--input-border-radius: 0;
	--input-font-size: 16px;
	--input-padding: 20px 16px 6px;

	--label-color: #626262;
	--label-color-focus: rgba(0, 0, 0, 0.6);
	--label-color-focus-within: #6200ee;
	--label-font-size: 18px;
	--label-font-size-active: 13px;
	--label-font-weight: 400;

	--submit-bg-color: #0a96ff;
	--submit-bg-color-hover: #008aed;
	--submit-color: #fff;
	--submit-color-hover: #fff;
	--submit-border-radius: 0;
	--submit-font-size: 15px;
	--submit-font-weight: 600;
	--submit-letter-spacing: 1px;
	--submit-padding: 13px 15px;
	--submit-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%);

	--not-valid-color: #dc3232;
	--not-valid-font-weight: 600;
	--not-valid-margin-left: 14px;
}

.cu-form {
	container-type: inline-size;
}

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

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

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

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

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

.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: var(--input-border-radius);
	color: var(--input-color);
	font-size: var(--input-font-size);
	padding: var(--input-padding);
}

.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);
	outline: none;
}

.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: var(--input-color);
}

.cu-form input[type="submit"] {
	background-color: var(--submit-bg-color);
	border-radius: var(--submit-border-radius);
	box-shadow: var(--submit-shadow);
	color: var(--submit-color);
	font-size: var(--submit-font-size);
	font-weight: var(--submit-font-weight);
	letter-spacing: var(--submit-letter-spacing);
	padding: var(--submit-padding);
	text-transform: uppercase;
	width: 100%;
}

.cu-form input[type="submit"]:hover,
.cu-form input[type="submit"]:focus {
	background-color: var(--submit-bg-color-hover);
	color: var(--submit-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;
}

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

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

.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: var(--label-font-size-active);
	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);
}

.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: var(--input-color);
}

.cu-md-filled .wpcf7-not-valid-tip,
.cu-md-filled .cu-form-hint {
	margin-left: var(--not-valid-margin-left);
}

.cu-md-filled .wpcf7-not-valid-tip {
	font-weight: var(--not-valid-font-weight);
}

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

.cu-field {
	grid-column: 1 / -1;
}

.cu-field--half {
	grid-column: span 2;
}

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

.wpcf7-checkbox label {
	align-items: flex-start;
}

.wpcf7-checkbox input {
	margin-top: 6px;
}

.wpcf7-checkbox .wpcf7-list-item-label {
	font-weight: 400;
}

.cu-label--has-icon {
	position: relative;
}

.cu-label--has-icon .cu-icon {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	color: #767676;
	transition: color 150ms ease-in-out;
	pointer-events: none;
}

.cu-md-filled .cu-label--has-icon input,
.cu-md-filled .cu-label--has-icon textarea {
	padding-right: 38px;
}

.cu-label--has-icon:focus-within .cu-icon {
	color: var(--input-border-color-focus);
}

@container (min-width: 872px) {
	.cu-fields {
		grid-template-columns: repeat(9, minmax(0, 1fr));
	}

	.cu-fields > .cu-field {
		grid-column: span 2;
	}

	.cu-fields > .cu-field--submit {
		grid-column: span 1;
	}

	.cu-fields > .cu-col-span-full {
		order: 1;
	}

	.cu-layout-horizontal .cu-fields {
		grid-template-columns: repeat(9, minmax(0, 1fr));
	}

	.cu-layout-horizontal .cu-field {
		grid-column: span 2;
	}

	.cu-layout-horizontal .cu-field--half {
		grid-column: span 2;
	}

	.cu-layout-horizontal .cu-field--submit {
		grid-column: span 1;
	}

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

	.cu-grid-9 {
		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; }
}

/* === Row-spanning utility (e.g., textarea spanning two rows) === */
.cu-row-span-2 {
	grid-row: span 1; /* default on mobile = behaves like a normal cell */
}

/* === Centered submit (auto width instead of full width) === */
.cu-field--submit-centered {
	display: flex;
	justify-content: center;
}

.cu-field--submit-centered input[type="submit"] {
	width: auto;
	min-width: 280px;
}

@container (min-width: 872px) {
	.cu-row-span-2 {
		grid-row: span 2;
	}

	/* Make the textarea actually fill the spanned cell */
	.cu-row-span-2,
	.cu-row-span-2 > .cu-label,
	.cu-row-span-2 .wpcf7-form-control-wrap,
	.cu-row-span-2 textarea {
		height: 100%;
	}

	.cu-row-span-2 textarea {
		resize: vertical;
		min-height: 100%;
	}
}

.on-blue .cu-form input[type="submit"] {
	background-color: #254274;
}