/**
 * Site footer (Royal Elementor template) and newsletter pill.
 * Layout (columns, hide on mobile, gaps) lives in the Elementor template.
 * These classes own type, color, and the CF7 pill.
 */

.elementor-element.hbn-footer {
	background-color: var(--hbn-color-dark);
	box-sizing: border-box;
	color: var(--hbn-color-cream);
	padding-block: 64px 32px;
	padding-inline: var(--hbn-gutter);
	width: 100%;
}

.hbn-footer .elementor-widget {
	margin-block: 0;
}

.hbn-footer .hbn-footer__title .elementor-heading-title {
	color: var(--hbn-color-cream);
	font-family: var(--hbn-font-body);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	margin: 0;
}

.hbn-footer__note,
.hbn-footer__note :where(p) {
	color: rgba(247, 241, 234, 0.72);
	font-family: var(--hbn-font-body);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	margin: 0;
}

.hbn-footer__email,
.hbn-footer__email :where(p),
.hbn-footer__email :where(a),
.hbn-footer__place,
.hbn-footer__place :where(p) {
	color: var(--hbn-color-cream);
	font-family: var(--hbn-font-body);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
	margin: 0;
}

.hbn-footer__email :where(a) {
	text-decoration: none;
}

.hbn-footer__legal {
	margin-top: auto;
}

.hbn-footer__legal :where(p) {
	margin: 0;
}

.hbn-footer__legal a {
	color: rgba(247, 241, 234, 0.62);
	font-family: var(--hbn-font-body);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.6;
	text-decoration: none;
}

.hbn-footer__links :where(.hbn-footer__list) {
	display: flex;
	flex-direction: column;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.hbn-footer__links a {
	color: rgba(247, 241, 234, 0.72);
	font-family: var(--hbn-font-body);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
	text-decoration: none;
}

.hbn-footer a:hover {
	filter: none;
}

.hbn-footer__links a:hover,
.hbn-footer__legal a:hover,
.hbn-footer__email a:hover {
	color: var(--hbn-color-cream);
}

.hbn-footer__logo :where(img) {
	display: block;
	height: auto;
	width: 100px;
}

.hbn-footer__social :where(img) {
	display: block;
	height: 28px;
	object-fit: contain;
	width: 28px;
}

.hbn-footer__rule :where(.elementor-divider-separator) {
	border-block-start-color: rgba(247, 241, 234, 0.28);
}

.hbn-footer__copy,
.hbn-footer__copy :where(p) {
	color: rgba(247, 241, 234, 0.62);
	font-family: var(--hbn-font-body);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	margin: 0;
	text-align: center;
}

/* Newsletter pill. Class goes on the Shortcode widget. */
.hbn-newsletter :where(.wpcf7) {
	margin: 0;
	width: 100%;
}

.hbn-newsletter :where(.wpcf7-form) {
	margin: 0;
}

.hbn-newsletter :where(.hbn-newsletter__fields),
.hbn-newsletter :where(.wpcf7-form p) {
	position: relative;
}

.hbn-newsletter :where(.wpcf7-spinner) {
	margin: 0;
	position: absolute;
}

.hbn-newsletter :where(.wpcf7-form p) {
	margin: 0;
}

.hbn-newsletter :where(.hbn-newsletter__fields br) {
	display: none;
}

.hbn-newsletter :where(.wpcf7-form-control-wrap) {
	display: block;
	width: 100%;
}

.hbn-newsletter :where(input[type="email"]) {
	background: transparent;
	border: 1px solid var(--hbn-color-white);
	border-radius: 999px;
	box-sizing: border-box;
	color: var(--hbn-color-cream);
	font-family: var(--hbn-font-body);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
	padding: 12px 128px 12px 18px;
	width: 100%;
}

.hbn-newsletter :where(input[type="email"])::placeholder {
	color: var(--hbn-color-white);
	opacity: 1;
}

.hbn-newsletter :where(input[type="email"]:focus) {
	outline: 2px solid var(--hbn-color-teal-on-dark);
	outline-offset: 0;
}

.hbn-newsletter :where(input[type="submit"]) {
	background-color: var(--hbn-color-teal-on-dark);
	border: 0;
	border-radius: 999px;
	color: var(--hbn-color-navy);
	cursor: pointer;
	font-family: var(--hbn-font-body);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	padding: 10px 20px;
	position: absolute;
	right: 4px;
	top: 4px;
}

.hbn-newsletter :where(input[type="submit"]:hover) {
	filter: brightness(0.96);
}

.hbn-newsletter :where(input[type="submit"]:active) {
	filter: brightness(0.9);
}

.hbn-newsletter .wpcf7-not-valid-tip,
.hbn-newsletter .wpcf7-form .wpcf7-response-output,
.hbn-newsletter .wpcf7-form.invalid .wpcf7-response-output,
.hbn-newsletter .wpcf7-form.failed .wpcf7-response-output,
.hbn-newsletter .wpcf7-form.sent .wpcf7-response-output {
	background: transparent;
	border: 0;
	color: var(--hbn-color-cream);
	font-size: 13px;
	margin: 8px 0 0;
	padding: 0;
}

@media (min-width: 1025px) {
	.hbn-footer__main {
		flex-wrap: nowrap;
		justify-content: flex-start;
	}

	.hbn-footer__brand,
	.hbn-footer__news {
		flex-shrink: 0;
	}

	.hbn-footer .e-con.hbn-footer__nav {
		flex: 1 1 auto;
		justify-content: space-between;
		min-width: 0;
		width: auto;
	}

	.hbn-footer__col {
		flex: 0 1 auto;
		min-width: 0;
		width: auto;
	}
}

@media (max-width: 1024px) {
	.hbn-footer .e-con.hbn-footer__nav {
		flex-basis: 100%;
		width: 100%;
	}

	.hbn-footer .e-con.hbn-footer__brand,
	.hbn-footer .e-con.hbn-footer__news {
		min-width: 0;
	}
}

/* 48% + 48% plus the row gap is wider than the row, so the pair wraps. */
@media (min-width: 768px) and (max-width: 1024px) {
	.hbn-footer .e-con.hbn-footer__brand,
	.hbn-footer .e-con.hbn-footer__news {
		flex: 1 1 calc(50% - 20px);
		max-width: calc(50% - 20px);
		width: calc(50% - 20px);
	}
}

@media (max-width: 767px) {
	.elementor-element.hbn-footer {
		padding-block: 48px 28px;
	}

	.hbn-footer__logo :where(img) {
		width: 180px;
	}

	.hbn-footer__social :where(img) {
		height: 32px;
		width: 32px;
	}

	.hbn-footer__note,
	.hbn-footer__note :where(p),
	.hbn-footer__email,
	.hbn-footer__email :where(p),
	.hbn-footer__place,
	.hbn-footer__place :where(p),
	.hbn-footer__legal {
		text-align: center;
	}

	.hbn-footer__legal {
		margin-top: 0;
	}

	.hbn-newsletter :where(input[type="email"]) {
		padding-right: 132px;
	}
}
