/* =========================================================
   Footer
   Testimonials + CTA + Footer Navigation + Copyright
========================================================= */

.site-footer {
	background: var(--brand-white);
}


/* =========================================================
   Testimonials
========================================================= */

.footer-testimonials {
	position: relative;
	overflow: hidden;
	padding: 86px 0 96px;
	text-align: center;
	color: var(--brand-white);
}

.footer-testimonials .skin-inner {
	position: relative;
	z-index: 2;
	max-width: 100%;
}

.site-footer .footer-testimonials .skin-inner h2 {
	color: var(--brand-white);
}

.footer-testi-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.footer-testi-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.footer-testi-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(0, 0, 0, 0.6);
}

.footer-testi-graphic {
	position: absolute;
	z-index: 1;
	width: 262px;
	height: auto;
	opacity: 1;
	pointer-events: none;
}

.footer-testi-graphic.tl {
	top: 0;
	left: 0;
}

.footer-testi-graphic.br {
	right: 0;
	bottom: 0;
	transform: scaleY(-1) rotate(180deg);
}

.testi-track-wrap {
	overflow: hidden;
	padding: 40px 0;
}

.testi-track {
	display: flex;
	gap: 32px;
	transition: transform 0.4s ease;
}

.testi-card {
	flex: 0 0 948px;
	width: 948px;
	max-width: 90vw;
	padding: 54px;
	background: var(--brand-dark-teal);
	border-radius: 20px;
	box-shadow: 10px 10px 0 #0c595c;
	text-align: center;
	opacity: 0.6;
	transition: opacity 0.4s ease;
}

.testi-card.is-active {
	opacity: 1;
}

.testi-card p {
	margin-bottom: 24px;
	font-size: 16px;
	line-height: 24px;
}

.testi-author-name {
	font-family: var(--font-heading);
	font-size: 20px;
	font-weight: 600;
	line-height: 26px;
}

.testi-author-title {
	margin-top: 4px;
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 600;
	line-height: 23px;
}

.testi-nav {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 32px;
}


/* =========================================================
   Footer CTA
========================================================= */

.footer-cta {
	position: relative;
	z-index: 3;
	margin-top: -80px;
	padding: 100px var(--gutter);
	background: var(--tint-teal-10);
}

.footer-cta-panel {
	position: relative;
	display: flex;
	overflow: hidden;
	background: var(--brand-dark-teal);
	border-radius: 20px;
}

.footer-cta-texture {
	position: absolute;
	inset: 0;
	z-index: 0;
	opacity: 0.2;
	background-image: url("https://driftline.wp3.cloudsites.net.au/wp-content/themes/driftline-plumbing/assets/img/bg_cta.jpg");
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
}

.footer-cta-texture img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.footer-cta-pipe {
	position: absolute;
	z-index: 1;
	opacity: 0.85;
	pointer-events: none;
}

.footer-cta-copy,
.footer-cta-form {
	position: relative;
	z-index: 2;
	min-width: 0;
}

.footer-cta-copy *,
.footer-cta-form * {
	min-width: 0;
}

.footer-cta-copy {
	display: flex;
	flex: 0 0 45.5%;
	flex-direction: column;
	justify-content: center;
	gap: 32px;
	padding: 72px;
	color: var(--brand-white);
}

.footer-cta .footer-cta-copy h1 {
	margin: 0;
	color: var(--brand-white);
	font-size: 44px;
	line-height: 50px;
}

.footer-cta-copy p {
	margin: 0;
	font-size: 18px;
	line-height: 26px;
}

.footer-cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.footer-cta-form {
	display: flex;
	flex: 1;
	flex-direction: column;
	justify-content: center;
	gap: 32px;
	padding: 64px 72px 64px 0;
}

.footer-cta-form .btn {
	align-self: flex-start;
}


/* =========================================================
   WPForms
========================================================= */

.footer-cta-form .wpforms-container {
	margin: 0 !important;
}

.footer-cta-form .wpforms-field-container {
	display: flex;
	flex-wrap: wrap;
	gap: 16px !important;
}

.footer-cta-form .wpforms-field {
	width: calc(50% - 8px);
	max-width: 100%;
	margin: 0 !important;
	padding: 0 !important;
}

.footer-cta-form .wpforms-field.wpforms-field-textarea {
	width: 100%;
}

/* Accessible hidden labels */
.footer-cta-form .wpforms-field-label {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	border: 0;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.footer-cta-form .wpforms-field input[type="text"],
.footer-cta-form .wpforms-field input[type="tel"],
.footer-cta-form .wpforms-field input[type="email"],
.footer-cta-form .wpforms-field textarea {
	width: 100% !important;
	padding: 24px 16px !important;
	background: var(--brand-white) !important;
	border: 0 !important;
	border-radius: 10px !important;
	color: var(--brand-dark-grey);
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 600;
	box-sizing: border-box;
}

.footer-cta-form .wpforms-field textarea {
	height: 128px !important;
	resize: vertical;
}

.footer-cta-form .wpforms-field input::placeholder,
.footer-cta-form .wpforms-field textarea::placeholder {
	color: var(--brand-dark-grey);
	opacity: 0.85;
}

.footer-cta-form .wpforms-submit-container {
	margin: 20px 0 0 !important;
	padding: 0 !important;
}

.footer-cta-form .wpforms-submit {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 16px 30px !important;
	background: var(--brand-white);
	border: 2px solid transparent;
	border-radius: 10px;
	color: var(--brand-teal);
	font-family: var(--font-body);
	font-size: 17px;
	font-weight: 600;
	transition:
		background 0.2s ease,
		color 0.2s ease;
}

.footer-cta-form .wpforms-submit:hover {
	background: var(--tint-teal-10);
}


/* =========================================================
   Footer Columns
========================================================= */

.footer-columns {
	padding: 56px 0 0;
	background: var(--tint-teal-20);
}

.footer-columns-row {
	display: flex;
	gap: 40px;
}

.footer-col-brand {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	gap: 40px;
}

.footer-logo {
	width: 300px;
	max-width: 100%;
	height: auto;
}

.footer-contact {
	display: flex;
	flex-direction: column;
	gap: 32px;
	width: 460px;
	max-width: 100%;
}

.footer-col-heading {
	margin: 0 0 32px;
	color: var(--brand-teal);
	font-family: var(--font-body);
	font-size: 17px;
	font-weight: 600;
}

.footer-address {
	margin: 0 0 32px;
	color: var(--brand-dark-grey);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 24px;
}

.footer-contact .btn {
	margin-bottom: 32px;
}

.footer-social {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
}

.footer-social a {
	color: var(--brand-teal);
	font-size: 30px!important;
	text-decoration: none;
}

.footer-col-sitemap,
.footer-col-services {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.footer-col-sitemap {
	width: 300px;
}

.footer-col-sitemap ul {
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin-bottom: 32px;
}

.footer-col-sitemap a:not(.btn),
.footer-services-lists a {
	color: var(--brand-dark-grey);
	font-family: var(--font-body);
	font-size: 16px;
	text-decoration: none;
}

.footer-col-sitemap a:not(.btn):hover,
.footer-services-lists a:hover {
	color: var(--brand-teal);
}

.footer-services-lists {
	max-width: 100%;
	column-count: 2;
	column-gap: 32px;
}

.footer-services-lists li {
	margin-bottom: 24px;
	break-inside: avoid;
}


/* =========================================================
   Footer Bottom
========================================================= */

.footer-bottom {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-top: 56px;
	padding: 24px 130px;
	background: var(--brand-white);
	color: var(--brand-dark-grey);
	font-family: var(--font-body);
	font-size: 16px;
}

.footer-bottom > div {
	display: flex;
	justify-content: space-between;
}

.footer-bottom p {
	margin: 0;
}

.footer-bottom p a {
	text-decoration: none;
}

.footer-bottom p a:hover {
	color: var(--brand-teal);
}


/* =========================================================
   Responsive — Laptop / Small Desktop
========================================================= */

@media (max-width: 1199.98px) {

	.footer-cta {
		margin-top: -60px;
		padding-top: 80px;
		padding-bottom: 80px;
	}

	.footer-cta-copy {
		flex-basis: 44%;
		padding: 48px;
	}

	.footer-cta-form {
		padding: 48px 48px 48px 0;
	}

	.footer-cta .footer-cta-copy h1 {
		font-size: 40px;
		line-height: 44px;
	}

	.footer-columns-row {
		gap: 40px 32px;
	}

	.footer-contact {
		width: 380px;
	}

	.footer-col-sitemap {
		width: 240px;
	}

	.footer-services-lists {
		width: auto;
	}
}


/* =========================================================
   Responsive — Tablet
========================================================= */

@media (max-width: 991.98px) {

	.footer-testimonials {
		padding: 72px 0 88px;
	}

	.testi-card {
		flex-basis: min(760px, 86vw);
		width: min(760px, 86vw);
		padding: 44px;
	}

	.footer-cta {
		margin-top: -56px;
		padding: 80px var(--gutter);
	}

	.footer-cta-panel {
		flex-direction: column;
	}

	.footer-cta-copy,
	.footer-cta-form {
		flex: none;
		width: 100%;
		padding: 48px;
	}

	.footer-cta-form {
		padding-top: 0;
	}

	.footer-columns-row {
		flex-wrap: wrap;
		gap: 48px 40px;
	}

	.footer-col-brand {
		width: 100%;
	}

	.footer-contact {
		width: 100%;
	}

	.footer-col-sitemap {
		flex: 1 1 220px;
		width: auto;
	}

	.footer-col-services {
		flex: 1 1 420px;
	}

	.footer-services-lists {
		width: 100%;
	}
}


/* =========================================================
   Responsive — Mobile
========================================================= */

@media (max-width: 767.98px) {

	.footer-testimonials {
		padding: 56px 0 72px;
	}

	.footer-testi-graphic {
		width: 180px;
	}

	.testi-track-wrap {
		padding: 32px 0;
	}

	.testi-track {
		gap: 20px;
	}

	.testi-card {
		flex-basis: 86vw;
		width: 86vw;
		max-width: 86vw;
		padding: 32px 24px;
		border-radius: 16px;
		box-shadow: 7px 7px 0 #0c595c;
	}

	.testi-nav {
		margin-top: 24px;
	}

	.footer-cta {
		margin-top: -40px;
		padding: 64px var(--gutter);
	}

	.footer-cta-panel {
		border-radius: 16px;
	}

	.footer-cta-copy,
	.footer-cta-form {
		padding: 32px 24px;
	}

	.footer-cta-form {
		padding-top: 0;
	}

	.footer-cta-copy {
		gap: 24px;
	}

	.footer-cta .footer-cta-copy h1 {
		font-size: 32px;
		line-height: 38px;
	}

	.footer-cta-copy p {
		font-size: 16px;
		line-height: 24px;
	}

	/* Stack WPForms fields */
	.footer-cta-form .wpforms-field {
		width: 100%;
	}

	.footer-cta-form .wpforms-field input[type="text"],
	.footer-cta-form .wpforms-field input[type="tel"],
	.footer-cta-form .wpforms-field input[type="email"],
	.footer-cta-form .wpforms-field textarea {
		padding: 18px 16px !important;
	}

	.footer-cta-form .wpforms-submit {
		width: 100%;
		justify-content: center;
	}

	.footer-columns {
		padding-top: 48px;
	}

	.footer-columns-row {
		flex-direction: column;
		gap: 40px;
	}

	.footer-col-brand,
	.footer-col-sitemap,
	.footer-col-services {
		width: 100%;
	}

	.footer-contact {
		gap: 24px;
	}

	.footer-col-heading {
		margin-bottom: 24px;
	}

	.footer-col-sitemap ul {
		gap: 18px;
	}

	.footer-services-lists {
		width: 100%;
		column-count: 2;
		column-gap: 24px;
	}

	.footer-bottom {
		flex-direction: column;
		justify-content: center;
		gap: 8px;
		margin-top: 48px;
		text-align: center;
	}
}


/* =========================================================
   Responsive — Small Mobile
========================================================= */

@media (max-width: 575.98px) {

	.footer-testimonials {
		padding-top: 48px;
	}

	.footer-testi-graphic {
		width: 130px;
	}

	.testi-card {
		flex-basis: 88vw;
		width: 88vw;
		max-width: 88vw;
		padding: 28px 20px;
	}

	.footer-cta {
		margin-top: -32px;
		padding-top: 56px;
		padding-bottom: 56px;
	}

	.footer-cta-copy,
	.footer-cta-form {
		padding-right: 20px;
		padding-left: 20px;
	}

	.footer-cta-form {
		padding-top: 0;
	}

	.footer-cta .footer-cta-copy h1 {
		font-size: 29px;
		line-height: 35px;
	}

	.footer-cta-actions {
		flex-direction: column;
	}

	.footer-cta-actions .btn {
		width: 100%;
		justify-content: center;
	}

	.footer-logo {
		width: 240px;
	}

	.footer-services-lists {
		column-count: 1;
	}

	.footer-bottom {
		padding: 20px var(--gutter);
		font-size: 14px;
		line-height: 21px;
	}
}