/* ==========================================================================
   Site footer (outside Divi) + Fluent Forms contact form styling.
   Measurements mirror the live Divi footer layout (Nov 2026).
   ========================================================================== */

:root {
	--pk-red: #cf102d;
	--pk-grey: #54575a;
	--pk-grey-light: #909294;
	--pk-grey-pale: #c3c4c5;
	--pk-field-bg: #eeeeee;
	--pk-font-display: "Archivo Ext ExBold", "Archivo", Helvetica, Arial, sans-serif;
	--pk-font-label: "Archivo Bold", "Archivo", Helvetica, Arial, sans-serif;
	--pk-font-body: "Archivo ExLight", "Archivo", Helvetica, Arial, sans-serif;
	--pk-font-cond: "Archivo ExCond Reg", "Archivo", "Arial Narrow", sans-serif;
	--pk-font-field: Helvetica, Arial, sans-serif;
}

.pk-footer,
.pk-footer *,
.pk-footer *::before,
.pk-footer *::after {
	box-sizing: border-box;
}

.pk-footer {
	font-family: var(--pk-font-body);
	font-size: 18px;
	line-height: 1.8;
	color: #666;
	background: #fff;
}

.pk-footer p {
	margin: 0;
	padding: 0;
}

/* ---- Intro band ---------------------------------------------------------- */

.pk-footer__intro {
	background: var(--pk-grey) url("/wp-content/uploads/2023/02/PKC_Icon_Grey.png") no-repeat right 30% center / contain;
	background-blend-mode: multiply;
	padding: 81px 0;
	text-align: center;
}

.pk-footer__intro-inner {
	width: 80%;
	max-width: 1440px;
	margin: 0 auto;
}

.pk-footer__statement {
	font-family: var(--pk-font-display);
	font-size: 24px;
	line-height: 1.8;
	color: #fff;
}

.pk-footer__bar {
	display: block;
	width: 200px;
	height: 15px;
	margin: 50px auto 0;
	background: var(--pk-red);
}

.pk-footer__cta {
	margin-top: 65px !important;
	font-family: var(--pk-font-cond);
	font-weight: 700;
	font-size: 20px;
	line-height: 1.8;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #fff;
}

/* ---- Two-column main (padding: 5% of page = 10% of each column) ---------- */

.pk-footer__main,
.pk-footer__bottom {
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.pk-footer__contact {
	padding: 57px 10% 60px;
	background: #fff;
}

.pk-footer__company {
	padding: 67px 10% 51px;
	background: var(--pk-red);
	color: #fff;
}

.pk-footer__title {
	margin: 0;
	padding: 0;
	font-family: var(--pk-font-display);
	font-weight: 500;
	font-size: 28px;
	line-height: 1.2;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--pk-grey);
}

.pk-footer__lede {
	margin: 14px 0 35px !important;
	font-size: 18px;
	line-height: 1.8;
	color: var(--pk-grey-light);
}

.pk-footer__lede a {
	color: var(--pk-red);
}

.pk-footer__logo {
	display: block;
	width: 35%;
	height: auto;
}

.pk-footer__rule {
	margin: 65px 0 30px;
	border: 0;
	border-top: 1px solid #e6e6e6;
}

.pk-footer__details {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px 5.5%;
}

.pk-footer__label {
	margin: 0 0 14px;
	padding: 0;
	font-family: var(--pk-font-label);
	font-weight: 500;
	font-size: 12px;
	line-height: 1.8;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #fff;
}

.pk-footer__details p,
.pk-footer__details a {
	font-size: 18px;
	line-height: 1.8;
	color: #fff;
	text-decoration: none;
}

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

.pk-footer__agc {
	display: block;
	width: 15%;
	height: auto;
	margin-top: 80px;
}

/* ---- Bottom bar ---------------------------------------------------------- */

.pk-footer__legal {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	min-height: 50px;
	padding: 0 10%;
	background: var(--pk-grey);
}

.pk-footer__copyright {
	font-family: var(--pk-font-display);
	font-size: 12px;
	line-height: 1.8;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--pk-grey-pale);
}

.pk-footer__privacy {
	margin-left: -15px !important;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.8;
}

.pk-footer__privacy a {
	color: var(--pk-grey-light);
	text-decoration: none;
	transition: color 0.3s;
}

.pk-footer__privacy a:hover,
.pk-footer__privacy a:focus-visible {
	color: #eee;
}

/* ---- Fluent Forms contact form (footer + Contact Us page) ---------------- */

:is(.pk-footer, .pk-contact-page-form) .frm-fluent-form {
	display: flex;
	flex-wrap: wrap;
	gap: 0 3%;
	font-family: var(--pk-font-body);
}

:is(.pk-footer, .pk-contact-page-form) .frm-fluent-form fieldset {
	display: contents;
}

/* Fluent's screen-reader legend must not take part in the flex row. */
:is(.pk-footer, .pk-contact-page-form) .frm-fluent-form legend.ff_screen_reader_title {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

:is(.pk-footer, .pk-contact-page-form) .frm-fluent-form .ff-el-group {
	position: relative;
	flex: 0 0 100%;
	margin-bottom: 3%;
}

:is(.pk-footer, .pk-contact-page-form) .frm-fluent-form .ff-el-group.pk-half {
	flex-basis: 48.5%;
}

:is(.pk-footer, .pk-contact-page-form) .frm-fluent-form .ff-el-group:has(textarea) {
	margin-bottom: 12px;
}

/* Labels: screen readers only (placeholders match the old design). */
:is(.pk-footer, .pk-contact-page-form) .frm-fluent-form .ff-el-input--label {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

:is(.pk-footer, .pk-contact-page-form) .frm-fluent-form .ff-el-form-control {
	width: 100%;
	height: auto;
	padding: 16px;
	border: 0;
	border-radius: 0;
	background: var(--pk-field-bg);
	font-family: var(--pk-font-field);
	font-weight: 700;
	font-size: 14px;
	line-height: 1.6;
	color: var(--pk-grey);
	box-shadow: none;
}

:is(.pk-footer, .pk-contact-page-form) .frm-fluent-form textarea.ff-el-form-control {
	height: 177px;
	min-height: 120px;
	resize: vertical;
}

:is(.pk-footer, .pk-contact-page-form) .frm-fluent-form .ff-el-form-control::placeholder {
	color: #999;
	opacity: 1;
}

:is(.pk-footer, .pk-contact-page-form) .frm-fluent-form .ff-el-form-control:focus {
	outline: 2px solid var(--pk-red);
	outline-offset: 0;
	background: #fff;
}

:is(.pk-footer, .pk-contact-page-form) .frm-fluent-form .ff-el-is-error .ff-el-form-control {
	outline: 2px solid var(--pk-red);
}

:is(.pk-footer, .pk-contact-page-form) .frm-fluent-form .error.text-danger {
	margin-top: 6px;
	font-family: var(--pk-font-body);
	font-size: 14px;
	font-weight: 800;
	color: var(--pk-red);
}

:is(.pk-footer, .pk-contact-page-form) .frm-fluent-form .ff_submit_btn_wrapper {
	flex: 0 0 100%;
	margin: 0;
	text-align: right;
}

:is(.pk-footer, .pk-contact-page-form) .frm-fluent-form .ff-btn-submit,
:is(.pk-footer, .pk-contact-page-form) .frm-fluent-form .ff-btn-submit:not(.ff_btn_no_style) {
	padding: 6px 24px;
	border: 2px solid var(--pk-red);
	border-radius: 0;
	background: transparent;
	font-family: var(--pk-font-display);
	font-size: 20px;
	line-height: 1.7;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--pk-red);
	opacity: 1;
	transition: background-color 0.3s, color 0.3s;
}

:is(.pk-footer, .pk-contact-page-form) .frm-fluent-form .ff-btn-submit:hover,
:is(.pk-footer, .pk-contact-page-form) .frm-fluent-form .ff-btn-submit:focus-visible {
	background: var(--pk-red);
	color: #fff;
}

:is(.pk-footer, .pk-contact-page-form) .frm-fluent-form .ff-btn-submit:focus-visible {
	outline: 2px solid var(--pk-grey);
	outline-offset: 2px;
}

/* Turnstile runs in "interaction-only" mode: it takes no space unless a challenge is shown. */
:is(.pk-footer, .pk-contact-page-form) .frm-fluent-form .ff-el-group:has(.cf-turnstile) {
	margin-bottom: 0;
}

.fluentform .ff-message-success {
	padding: 16px 20px;
	border: 0;
	border-left: 4px solid var(--pk-red);
	background: var(--pk-field-bg);
	box-shadow: none;
	font-family: var(--pk-font-body);
	font-size: 18px;
	font-weight: 800;
	color: var(--pk-grey);
}

.fluentform .ff-errors-in-stack {
	color: var(--pk-red);
}

/* ---- Contact Us page: close the gap under the header --------------------- */
/* The Divi header section is shifted up with `top: -111px` (relative positioning keeps its
   original space), leaving a 111px gap above the content. A negative top margin moves it up
   by the same amount without leaving the space behind. */
body.page-id-50 #main-content .et_pb_section_0 {
	top: 0 !important;
	margin-top: -111px;
}

/* ---- Contact Us page: line the form up with the body copy beside it ------ */
/* Offset = the left column's divider + "We're here to talk." heading. */
@media (min-width: 981px) {
	.pk-contact-page-form {
		margin-top: 127px !important;
	}
}

/* ---- Tablet (Divi breakpoint) -------------------------------------------- */

@media (max-width: 980px) {
	.pk-footer__intro {
		padding: 54px 0;
	}

	.pk-footer__statement {
		font-size: 18px;
	}

	.pk-footer__cta {
		font-size: 18px;
	}

	.pk-footer__main,
	.pk-footer__bottom {
		grid-template-columns: 1fr;
	}

	.pk-footer__bottom-spacer {
		display: none;
	}

	.pk-footer__contact {
		padding: 40px 5%;
	}

	.pk-footer__company {
		padding: 47px 5% 40px;
	}

	.pk-footer__legal {
		padding: 0 5%;
	}

	.pk-footer__logo {
		width: 40%;
	}

	.pk-footer__agc {
		width: 20%;
		margin-top: 60px;
	}
}

/* ---- Phone --------------------------------------------------------------- */

@media (max-width: 767px) {
	.pk-footer__intro-inner {
		width: auto;
		margin: 0 16px;
	}

	.pk-footer__contact,
	.pk-footer__company,
	.pk-footer__legal {
		padding-left: 16px;
		padding-right: 16px;
	}

	.pk-footer__logo {
		width: 60%;
	}

	.pk-footer__rule {
		margin-top: 40px;
	}

	.pk-footer__details {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.pk-footer__agc {
		width: 40%;
		margin-top: 40px;
	}

	.pk-footer__legal {
		grid-template-columns: 1fr;
		padding-top: 12px;
		padding-bottom: 12px;
	}

	.pk-footer__privacy {
		margin-left: 0 !important;
	}

	:is(.pk-footer, .pk-contact-page-form) .frm-fluent-form .ff-el-group.pk-half {
		flex-basis: 100%;
	}

	:is(.pk-footer, .pk-contact-page-form) .frm-fluent-form .ff_submit_btn_wrapper {
		text-align: left;
	}
}
