/* ==========================================================================
   ProWebBuilder — custom footer built with blocks (inc/footer-builder.php).
   Loaded on the site and in the block editor.
   ========================================================================== */

.site-footer--custom {
	padding: 0;
	background: var(--black, #000);
}

.site-footer--custom > *,
.site-footer--custom .wp-block-group__inner-container > * {
	margin-block: 0;
}

/* Rows */
.pl-frow.pl-full {
	--pl-pad: clamp(16px, 2.5vw, 40px);
}

.pl-frow {
	--pl-pad: max(var(--gutter, 24px), calc((100% - var(--container, 1280px)) / 2));
	margin: 0 !important;
	padding: clamp(44px, 5vw, 72px) var(--pl-pad);
	font-size: 16px;
}

.pl-frow--slim {
	padding-block: 24px;
}

.pl-frow--line {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pl-frow + .pl-frow--line.is-style-pl-row-light,
.pl-frow + .pl-frow--line.is-style-pl-row-tint {
	border-top-color: var(--line, #e6e2f2);
}

.is-style-pl-row-dark {
	background: var(--black, #000);
	color: var(--muted-dark, #b9b4cc);
}

.is-style-pl-row-deep {
	background:
		radial-gradient(50% 120% at 85% 0%, rgba(var(--purple-rgb, 109, 40, 217), 0.4), transparent 70%),
		var(--ink, #0b0a10);
	color: var(--muted-dark, #b9b4cc);
}

.is-style-pl-row-brand {
	background: var(--purple, #6d28d9);
	color: rgba(255, 255, 255, 0.86);
}

.is-style-pl-row-light {
	background: var(--paper, #fff);
	color: var(--muted, #57526b);
}

.is-style-pl-row-tint {
	background: var(--tint, #f6f4fe);
	color: var(--muted, #57526b);
}

.is-style-pl-row-dark :is(h1, h2, h3, h4, strong),
.is-style-pl-row-deep :is(h1, h2, h3, h4, strong),
.is-style-pl-row-brand :is(h1, h2, h3, h4, strong) {
	color: #fff;
}

.is-style-pl-row-light :is(h1, h2, h3, h4, strong),
.is-style-pl-row-tint :is(h1, h2, h3, h4, strong) {
	color: var(--text, #0b0a10);
}

/* Row link colours are for menu and text links; buttons keep their own
   colours (:where keeps these as easy to override as before). */
.pl-frow a:where(:not(.btn, .button, .wp-block-button__link)) {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s;
}

.is-style-pl-row-dark a:where(:not(.btn, .button, .wp-block-button__link)):hover,
.is-style-pl-row-deep a:where(:not(.btn, .button, .wp-block-button__link)):hover,
.is-style-pl-row-brand a:where(:not(.btn, .button, .wp-block-button__link)):hover {
	color: #fff;
}

.is-style-pl-row-light a:where(:not(.btn, .button, .wp-block-button__link)):hover,
.is-style-pl-row-tint a:where(:not(.btn, .button, .wp-block-button__link)):hover {
	color: var(--accent, var(--purple, #6d28d9));
}

.pl-frow .wp-block-columns {
	gap: clamp(28px, 4vw, 56px);
	margin: 0;
}

/* Five or six columns: side by side only when there's room (wide screens,
   full-width rows); otherwise three per row, or two in narrow spaces. */
@media (min-width: 782px) {
	.pl-frow .wp-block-columns:has(> .wp-block-column:nth-child(5)) {
		--pl-cg: 40px;
		container-type: inline-size;
		flex-wrap: wrap !important;
		column-gap: var(--pl-cg);
		row-gap: 32px;
	}

	@container (max-width: 999px) {
		.pl-frow .wp-block-columns:has(> .wp-block-column:nth-child(5)) > .wp-block-column {
			flex: 0 0 calc((100% - 2 * var(--pl-cg)) / 3) !important;
		}
	}

	/* Six need a little more room still. */
	@container (max-width: 1299px) {
		.pl-frow .wp-block-columns:has(> .wp-block-column:nth-child(6)) > .wp-block-column {
			flex: 0 0 calc((100% - 2 * var(--pl-cg)) / 3) !important;
		}
	}

	@container (max-width: 699px) {
		.pl-frow .wp-block-columns:has(> .wp-block-column:nth-child(5)) > .wp-block-column {
			flex: 0 0 calc((100% - var(--pl-cg)) / 2) !important;
		}
	}
}

.pl-frow p {
	margin: 0;
}

.pl-frow .wp-block-column > * + * {
	margin-top: 16px;
}

.pl-ftext {
	max-width: 420px;
	line-height: 1.6;
}

.pl-ftitle {
	margin: 0 0 16px !important;
	font-size: 14px !important;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.pl-fnote {
	padding: 10px 12px;
	border: 1px dashed currentColor;
	border-radius: 10px;
	font-size: 13px;
	opacity: 0.8;
}

/* Call to action and newsletter rows */
.pl-fcta,
.pl-fnews {
	align-items: center !important;
}

.pl-fcta__title {
	margin: 0 0 8px !important;
	font-size: clamp(26px, 3vw, 38px);
	letter-spacing: -0.02em;
	line-height: 1.1;
}

.pl-fcta > .wp-block-column:last-child {
	display: flex;
	justify-content: flex-end;
}

.pl-fcta .wp-block-buttons {
	margin: 0 !important;
}

.pl-fcta .wp-block-button .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	min-height: 54px;
	padding: 0 28px;
	border-radius: var(--btn-radius, 999px);
	background: #fff;
	color: var(--ink, #0b0a10) !important;
	font-weight: 700;
}

.is-style-pl-row-light .pl-fcta .wp-block-button .wp-block-button__link,
.is-style-pl-row-tint .pl-fcta .wp-block-button .wp-block-button__link {
	background: var(--purple, #6d28d9);
	color: #fff !important;
}

.pl-fnews .pl-optin--inline {
	margin: 0;
	max-width: none;
	text-align: left;
}

/* Logo */
.pl-flogo img {
	display: block;
	width: var(--w, 200px);
	max-width: 100%;
	height: auto;
}

/* Menus */
.pl-fmenu__list {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pl-fmenu--inline .pl-fmenu__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
}

/* Contact */
.pl-fcontact li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.pl-fcontact li a {
	display: inline-flex;
	gap: 10px;
}

.pl-fcontact .pl-icon {
	flex: 0 0 auto;
	margin-top: 4px;
	width: 16px;
	height: 16px;
	opacity: 0.7;
}

.pl-fcontact__map {
	font-weight: 700;
}

/* Social icons */
.pl-socials {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pl-socials--center {
	justify-content: center;
}

.pl-socials--right {
	justify-content: flex-end;
}

.pl-socials__link {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 1px solid currentColor;
	border-radius: 50%;
	color: inherit;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.pl-socials__link img,
.pl-socials__link .pl-icon {
	width: 16px;
	height: 16px;
	object-fit: contain;
}

.pl-socials--square .pl-socials__link {
	border-radius: 10px;
}

.pl-socials--plain .pl-socials__link {
	width: auto;
	height: auto;
	border: 0;
}

.is-style-pl-row-dark .pl-socials__link,
.is-style-pl-row-deep .pl-socials__link,
.is-style-pl-row-brand .pl-socials__link {
	border-color: rgba(255, 255, 255, 0.24);
	color: #fff;
}

.is-style-pl-row-dark .pl-socials--circle .pl-socials__link:hover,
.is-style-pl-row-dark .pl-socials--square .pl-socials__link:hover,
.is-style-pl-row-deep .pl-socials--circle .pl-socials__link:hover,
.is-style-pl-row-deep .pl-socials--square .pl-socials__link:hover {
	border-color: var(--purple, #6d28d9);
	background: var(--purple, #6d28d9);
}

.is-style-pl-row-light .pl-socials__link,
.is-style-pl-row-tint .pl-socials__link {
	border-color: var(--line, #e6e2f2);
	background: var(--ink, #0b0a10);
	color: #fff;
}

/* Bottom bar */
.pl-fbottom {
	align-items: center !important;
	font-size: 14px;
}

.pl-fbottom > .wp-block-column:nth-child(2) {
	display: flex;
	flex-grow: 2 !important;
	justify-content: center;
}

.pl-fbottom > .wp-block-column:last-child {
	display: flex;
	justify-content: flex-end;
}

.pl-flegal ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pl-ftop a {
	font-weight: 600;
}

/* Logo row */
.pl-flogos {
	text-align: center;
}

.pl-flogos__row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 14px 40px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pl-flogos__row .strip__logo {
	width: auto;
	height: 30px;
	filter: grayscale(1);
	opacity: 0.7;
}

.pl-flogos__row .strip__ph {
	font-weight: 800;
	opacity: 0.6;
}

.pl-flogos__row .strip__ph-mark {
	display: none;
}

@media (max-width: 781px) {
	.pl-fcta > .wp-block-column:last-child,
	.pl-fbottom > .wp-block-column:nth-child(2),
	.pl-fbottom > .wp-block-column:last-child {
		justify-content: flex-start;
	}

	.pl-frow .wp-block-columns {
		gap: 28px;
	}
}

.pl-icon {
	display: block;
	fill: currentColor;
}

/* Block editor: rows touch, and their blocks use the full row width. */
.is-root-container > .wp-block.pl-frow {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

.pl-frow > .wp-block-group__inner-container > .wp-block,
.pl-frow .wp-block-column > .wp-block {
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.pl-mask {
	display: block;
	background: currentColor;
	-webkit-mask: var(--mask) center / contain no-repeat;
	mask: var(--mask) center / contain no-repeat;
}

/* Several sets of columns in one row (e.g. two rows of links) */
.pl-frow .wp-block-columns + .wp-block-columns {
	margin-top: clamp(32px, 4vw, 48px) !important;
}

.pl-fcols--sub {
	margin-top: 0;
}
