/* =========================================================================
   iSupply Displays — site footer
   ====================================================================== */

.isd-footer {
	--isd-f-navy: var(--isd-h-navy, #0a315f);
	--isd-f-navy-deep: #061f3b;
	--isd-f-accent: var(--opt1-blue, #1769ff);
	--isd-f-accent-hover: var(--opt1-blue-dark, #084fcc);
	--isd-f-text: #f7f9fc;
	--isd-f-copy: #c8d2df;
	--isd-f-rule: rgba(205, 222, 239, 0.22);
	--isd-f-max-w: var(--isd-h-max-w, 1600px);
	--isd-f-edge: var(--isd-h-edge, 34px);
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background:
		radial-gradient(circle at 84% 34%, rgba(61, 123, 179, 0.17), transparent 22rem),
		linear-gradient(135deg, var(--isd-f-navy-deep) 0%, var(--isd-f-navy) 100%);
	color: var(--isd-f-copy);
	font-family: var(--global-body-font-family, inherit);
}

/* Oversized brand initials echo the reference's watermark without adding a
   content image or affecting the accessibility tree. */
.isd-footer::after {
	content: "iS";
	position: absolute;
	z-index: -1;
	top: 23%;
	right: -0.1em;
	color: rgba(173, 205, 232, 0.055);
	font-family: var(--global-heading-font-family, inherit);
	font-size: clamp(260px, 30vw, 610px);
	font-style: italic;
	font-weight: 800;
	line-height: 0.8;
	letter-spacing: -0.12em;
	pointer-events: none;
	user-select: none;
}

/* Kadence's saved page-level custom CSS hides the stock #colophon. This
   replacement uses that same element, so opt only our footer back in. */
body.page #colophon.isd-footer {
	display: block !important;
}

.isd-footer__accent {
	height: 4px;
	background: var(--isd-f-accent);
}

.isd-footer__inner {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--isd-f-max-w);
	margin: 0 auto;
	padding: 0 var(--isd-f-edge);
}

.isd-footer a {
	color: inherit;
	text-decoration: none;
}

.isd-footer a:hover,
.isd-footer a:focus-visible {
	color: var(--isd-f-text);
	text-decoration-line: underline;
	text-decoration-color: var(--isd-f-accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.22em;
}

.isd-footer a:focus-visible,
.isd-footer button:focus-visible,
.isd-footer input:focus-visible {
	outline: 2px solid var(--isd-f-text);
	outline-offset: 3px;
	box-shadow: 0 0 0 5px var(--isd-f-accent);
}

/* Contact strip -------------------------------------------------------- */

.isd-footer__contact {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 42px 0 38px;
	border-bottom: 1px solid var(--isd-f-rule);
}

.isd-footer__contact > li {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	align-items: center;
	gap: 18px;
	min-width: 0;
	padding: 0 34px;
	border-left: 1px solid var(--isd-f-rule);
}

.isd-footer__contact > li:first-child {
	padding-left: 0;
	border-left: 0;
}

.isd-footer__contact > li:last-child {
	padding-right: 0;
}

.isd-footer__contact-icon {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	color: var(--isd-f-accent);
}

.isd-footer__contact-icon svg {
	display: block;
	width: 39px;
	height: 39px;
	fill: none;
	stroke: currentColor;
}

.isd-footer__contact-copy {
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 0;
	font-size: 17px;
	line-height: 1.45;
}

.isd-footer__contact-copy::before {
	content: "";
	width: 38px;
	height: 4px;
	margin-bottom: 9px;
	background: var(--isd-f-accent);
}

.isd-footer__contact-copy strong {
	color: var(--isd-f-text);
	font-size: 19px;
	font-weight: 700;
}

.isd-footer__contact-copy a {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	max-width: 100%;
	gap: 9px;
	text-decoration: none;
}

.isd-footer__contact-arrow {
	display: inline-flex;
	flex: 0 0 auto;
}

.isd-footer__contact-arrow svg {
	display: block;
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
}

/* Main content --------------------------------------------------------- */

.isd-footer__main {
	display: grid;
	grid-template-columns: minmax(390px, 1.55fr) repeat(3, minmax(170px, 0.72fr));
	padding: 52px 0 48px;
}

.isd-footer__brand {
	min-width: 0;
	padding-right: 64px;
}

.isd-footer__nav {
	min-width: 0;
	padding-left: 48px;
	border-left: 1px solid var(--isd-f-rule);
}

.isd-footer__logo {
	width: min(350px, 100%);
	margin: 0 0 26px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.72);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 14px 38px rgba(1, 14, 29, 0.24);
}

.isd-footer__logo .custom-logo-link {
	display: block;
	width: 100%;
}

.isd-footer__logo img {
	display: block;
	width: 100%;
	height: auto;
	max-width: none;
	object-fit: contain;
}

.isd-footer__brand > h2,
.isd-footer__nav > h2 {
	margin: 0;
	color: var(--isd-f-text);
	font-family: var(--global-body-font-family, inherit);
	font-weight: 700;
}

.isd-footer__brand > h2::before,
.isd-footer__nav > h2::before {
	content: "";
	display: block;
	width: 39px;
	height: 4px;
	margin: 0 0 22px;
	background: var(--isd-f-accent);
}

.isd-footer__brand > h2 {
	font-size: clamp(25px, 2vw, 31px);
	line-height: 1.18;
}

.isd-footer__brand > p {
	max-width: 560px;
	margin: 13px 0 24px;
	font-size: 17px;
	line-height: 1.62;
}

.isd-footer__nav > h2 {
	font-size: 20px;
	line-height: 1.3;
}

.isd-footer__nav ul,
.isd-footer__bottom ul,
.isd-footer__social {
	list-style: none;
	margin: 0;
	padding: 0;
}

.isd-footer__nav ul {
	display: grid;
	gap: 17px;
	margin-top: 27px;
}

.isd-footer__nav a {
	display: inline-block;
	font-size: 17px;
	line-height: 1.45;
}

/* Contact Form 7 newsletter form -------------------------------------- */

.isd-footer__newsletter-form {
	max-width: 620px;
}

.isd-footer .isd-footer__newsletter-form .wpcf7,
.isd-footer .isd-footer__newsletter-form .wpcf7-form {
	width: 100%;
	margin: 0;
}

.isd-footer__newsletter-row {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) clamp(126px, 31%, 170px);
	align-items: stretch;
	min-height: 62px;
	padding: 5px;
	border: 1px solid rgba(229, 237, 246, 0.7);
	border-radius: 999px;
	background: rgba(3, 24, 48, 0.25);
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

.isd-footer__newsletter-row:focus-within {
	border-color: var(--isd-f-accent);
	box-shadow: 0 0 0 2px rgba(23, 105, 255, 0.28);
}

/* CF7's automatic formatter wraps inline controls in a paragraph. Flatten
   that generated wrapper so the field and button remain direct grid items. */
.isd-footer__newsletter-row > p {
	display: contents;
}

.isd-footer .isd-footer__newsletter-form .wpcf7-form-control-wrap {
	display: flex;
	align-items: stretch;
	min-width: 0;
}

.isd-footer .isd-footer__newsletter-form input[type="email"] {
	width: 100%;
	min-width: 0;
	height: 52px;
	padding: 0 18px !important;
	border: 0 !important;
	border-radius: 999px 0 0 999px !important;
	outline: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--isd-f-text) !important;
	font-size: 17px !important;
}

.isd-footer .isd-footer__newsletter-form input[type="email"]::placeholder {
	color: #d2dbe7;
	opacity: 1;
}

.isd-footer .isd-footer__newsletter-form .wpcf7-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 52px;
	margin: 0;
	padding: 0 22px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--isd-f-accent) !important;
	box-shadow: 0 8px 24px rgba(2, 17, 34, 0.22);
	color: var(--opt1-white, #fff) !important;
	cursor: pointer;
	font-size: 18px !important;
	font-weight: 750;
	line-height: 1;
}

.isd-footer .isd-footer__newsletter-form .wpcf7-submit:hover,
.isd-footer .isd-footer__newsletter-form .wpcf7-submit:focus-visible {
	background: var(--isd-f-accent-hover) !important;
	color: var(--opt1-white, #fff) !important;
}

.isd-footer .isd-footer__newsletter-form .wpcf7-submit:focus-visible {
	outline-offset: -4px;
	box-shadow: inset 0 0 0 2px var(--isd-f-text), 0 0 0 3px var(--isd-f-accent);
}

.isd-footer .isd-footer__newsletter-form .wpcf7-spinner {
	position: absolute;
	z-index: 2;
	top: 50%;
	right: 18px;
	margin: 0;
	transform: translateY(-50%);
}

.isd-footer .isd-footer__newsletter-form .wpcf7-not-valid-tip {
	position: absolute;
	top: calc(100% + 8px);
	left: 18px;
	color: #ffd4d4;
	font-size: 14px;
	line-height: 1.35;
}

.isd-footer .isd-footer__newsletter-form .wpcf7-response-output {
	margin: 12px 0 0 !important;
	padding: 0 !important;
	border: 0 !important;
	color: var(--isd-f-copy);
	font-size: 14px;
	line-height: 1.45;
}

.isd-footer .isd-footer__newsletter-form form.sent .wpcf7-response-output {
	color: #d8f4d8;
}

.isd-footer .isd-footer__newsletter-form form.invalid .wpcf7-response-output,
.isd-footer .isd-footer__newsletter-form form.failed .wpcf7-response-output,
.isd-footer .isd-footer__newsletter-form form.aborted .wpcf7-response-output,
.isd-footer .isd-footer__newsletter-form form.spam .wpcf7-response-output {
	color: #ffd4d4;
}

/* Social and legal rows ------------------------------------------------ */

.isd-footer__social {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 26px;
}

.isd-footer__social a {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 8px;
	color: var(--isd-f-text);
}

.isd-footer__social a:hover,
.isd-footer__social a:focus-visible {
	background: rgba(255, 255, 255, 0.08);
}

.isd-footer__social .kadence-svg-iconset,
.isd-footer__social svg {
	display: block;
	width: 23px;
	height: 23px;
}

.isd-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 42px;
	min-height: 96px;
	border-top: 1px solid var(--isd-f-rule);
	font-size: 15px;
}

.isd-footer__bottom p {
	margin: 0;
}

.isd-footer__currency {
	flex: 0 0 auto;
	color: var(--isd-f-text);
	font-size: 16px;
	font-weight: 650;
}

.isd-footer__legal-wrap,
.isd-footer__bottom ul {
	display: flex;
	align-items: center;
}

.isd-footer__legal-wrap {
	justify-content: flex-end;
	gap: 30px;
	min-width: 0;
}

.isd-footer__bottom ul {
	gap: 0;
}

.isd-footer__bottom li + li,
.isd-footer__copyright {
	margin-left: 26px;
	padding-left: 26px;
	border-left: 1px solid rgba(205, 222, 239, 0.35);
}

/* Responsive ----------------------------------------------------------- */

@media (max-width: 1180px) {
	.isd-footer__contact > li {
		padding: 0 21px;
	}

	.isd-footer__main {
		grid-template-columns: minmax(330px, 1.3fr) repeat(3, minmax(145px, 0.72fr));
	}

	.isd-footer__brand {
		padding-right: 38px;
	}

	.isd-footer__nav {
		padding-left: 30px;
	}
}

@media (max-width: 940px) {
	.isd-footer__contact {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding: 24px 0;
	}

	.isd-footer__contact > li {
		padding: 22px 28px;
	}

	.isd-footer__contact > li:nth-child(odd) {
		padding-left: 0;
		border-left: 0;
	}

	.isd-footer__contact > li:nth-child(even) {
		padding-right: 0;
	}

	.isd-footer__contact > li:nth-child(n + 3) {
		border-top: 1px solid var(--isd-f-rule);
	}

	.isd-footer__main {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.isd-footer__brand {
		grid-column: 1 / -1;
		padding: 0 0 42px;
		border-bottom: 1px solid var(--isd-f-rule);
	}

	.isd-footer__nav {
		margin-top: 42px;
		padding-left: 34px;
	}

	.isd-footer__main > .isd-footer__nav:nth-child(2) {
		padding-left: 0;
		border-left: 0;
	}

	.isd-footer__legal-wrap {
		flex-wrap: wrap;
		gap: 14px 24px;
	}
}

@media (max-width: 640px) {
	.isd-footer {
		--isd-f-edge: 22px;
	}

	.isd-footer::after {
		top: 34%;
		right: -0.18em;
	}

	.isd-footer__contact {
		grid-template-columns: minmax(0, 1fr);
		padding: 20px 0;
	}

	.isd-footer__contact > li,
	.isd-footer__contact > li:first-child,
	.isd-footer__contact > li:nth-child(odd),
	.isd-footer__contact > li:nth-child(even),
	.isd-footer__contact > li:last-child {
		padding: 20px 0;
		border-top: 1px solid var(--isd-f-rule);
		border-left: 0;
	}

	.isd-footer__contact > li:first-child {
		border-top: 0;
	}

	.isd-footer__main {
		grid-template-columns: minmax(0, 1fr);
		padding: 42px 0 34px;
	}

	.isd-footer__brand {
		grid-column: auto;
		padding-bottom: 34px;
		border-bottom: 0;
	}

	.isd-footer__logo {
		width: min(300px, 100%);
	}

	.isd-footer__brand > h2::before,
	.isd-footer__nav > h2::before {
		margin-bottom: 16px;
	}

	.isd-footer__nav,
	.isd-footer__main > .isd-footer__nav:nth-child(2) {
		margin-top: 0;
		padding: 28px 0;
		border-top: 1px solid var(--isd-f-rule);
		border-left: 0;
	}

	.isd-footer__nav:last-child {
		padding-bottom: 0;
	}

	.isd-footer__nav ul {
		gap: 13px;
		margin-top: 18px;
	}

	.isd-footer__newsletter-row {
		grid-template-columns: minmax(0, 1fr) minmax(112px, 34%);
		min-height: 56px;
		padding: 4px;
	}

	.isd-footer .isd-footer__newsletter-form input[type="email"],
	.isd-footer .isd-footer__newsletter-form .wpcf7-submit {
		height: 46px;
	}

	.isd-footer .isd-footer__newsletter-form input[type="email"] {
		padding: 0 14px !important;
		font-size: 15px !important;
	}

	.isd-footer .isd-footer__newsletter-form .wpcf7-submit {
		padding: 0 15px !important;
		font-size: 16px !important;
	}

	.isd-footer .isd-footer__newsletter-form .wpcf7-spinner {
		right: 13px;
	}

	.isd-footer__bottom,
	.isd-footer__legal-wrap {
		align-items: flex-start;
		flex-direction: column;
		justify-content: center;
	}

	.isd-footer__bottom {
		gap: 18px;
		padding: 24px 0 28px;
	}

	.isd-footer__legal-wrap {
		gap: 16px;
	}

	.isd-footer__bottom ul {
		flex-wrap: wrap;
		gap: 12px 20px;
	}

	.isd-footer__bottom li + li,
	.isd-footer__copyright {
		margin-left: 0;
		padding-left: 0;
		border-left: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.isd-footer *,
	.isd-footer *::before,
	.isd-footer *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
