.pre-footer {
	background-color: #110B27;
	color: var(--light-color);
	display: flex;
	align-items: center;
	justify-content: center;
	font-style: italic;
	font-size: 12px;
	line-height: 14px;
	padding: 10px;
	text-align: center;
}

.site-footer {
	text-align: center;
}

/*====================================
=            Upper Footer            =
====================================*/

.upper-footer {
	font-size: 15px;
	line-height: 1.5em;
	background-image: url('/wp-content/themes/rm-basetheme/images/bg-footer.jpg');
	background-color: var(--dark-color);
	background-size: cover;
	background-position: center right;
	background-repeat: no-repeat;
	color: var(--light-color);
	padding: 45px 0 0;

	/* Tablet Styles */
	@media (width >= 768px) {
		background-attachment: fixed;
		padding-top: 80px;
		/* padding-bottom: 55px; */
	}

	@media (width >= 1024px) {
		padding-top: 125px;
		/* padding-bottom: 100px; */
	}

	.site-locations {
		.show-icon {
			padding-right: 20px;
		}
	}

	.location-each {
		@media (width >= 1024px) {
			grid-area: location-each;
		}
		>* {
			margin-bottom: 20px;
			@media (width >= 768px) {
				margin-bottom: 25px;
			}
		}
	}

	.location-text {
		@media (width >= 1024px) {
			justify-content: flex-start;
		}
		svg {
			path {
				fill: var(--light-color);

			}
		}
	}

	.location-phone-number {
		font-size: 24px;
		@media (width >= 768px) {
			font-size: 30px;
		}
	}

	.location-address-block {
		font-size: 20px;
		text-align: left;
		@media (width >= 768px) {
			font-size: 24px;
		}
	}

	.h2 {
		color: var(--light-color);
		font-size: 32px;
		letter-spacing: 0.03em;
		margin-top: 0;
		margin-bottom: 0;
		text-transform: none;
		@media (width >= 768px) {
			font-size: 50px;
		}
	}

	a {
		color: var(--light-color);
		text-decoration: none;
		transition: color .3s;

		&:hover,
		&:active,
		&:focus {
			color: var(--tertiary-alt);

			svg {
				path {
					fill: var(--tertiary-alt);
					&.stroke-path {
						stroke: var(--tertiary-alt);
					}
				}
			}
		}

		.nav-expander {
			display: none;
		}
	}

	svg {
		path {
			fill: var(--light-color);
			transition: fill .3s;
			&.stroke-path {
				stroke: var(--light-color);
			}
		}
	}
}

/* Footer Header */
.footer-header {
	flex-direction: column;
	grid-area: a;
	padding-bottom: 12px;
	@media (width >= 768px) {
		padding-bottom: 20px;
	}
	@media (width >= 1024px) {
		padding-bottom: 40px;
	}

	.contact-text {
		color: var(--tertiary-alt);
		font-size: 18px;
		letter-spacing: 0.03em;
		padding-top: 45px;
		position: relative;
		text-transform: uppercase;
		width: 100%;
		@media (width >= 768px) {
			font-size: 20px;
			padding-top: 60px;
		}
		&:before {
			content: '';
			background-image: url('../images/svg/header-accent-light.svg');
			background-size: cover;
			background-repeat: no-repeat;
			background-position: center;
			width: 105px;
			height: 37px;
			position: absolute;
			left: 50%;
			top: 0;
			transform: translateX(-50%);
		}
		p:last-of-type {
			margin-bottom: 0;
		}
	}
}

/* Footer Contact Form */
.footer-contact-form {
	grid-area: b;
	margin-bottom: 35px;
	@media (width >= 768px) {
		margin-bottom: 60px;
	}
	@media (width >= 1024px) {
		margin-bottom: 50px;
	}
	@media (width >= 1280px) {
		padding-left: calc(80px + (50vw - (var(--full) / 2))) !important;
		padding-right: calc(80px + (50vw - (var(--full) / 2))) !important;
	}

	/* Gravity Forms */
	.gform-theme.gform-theme--foundation {
		color: var(--light-color);
		--gf-field-gap-x: 10px;
		--form-field-margin-bottom: 23px;
		@media (width >= 1024px) {
			--gf-field-gap-x: 32px;
		}

		form {
			.gform-body {
				.gfield input,
				textarea {
					border: none;
				}
				input[type="radio"] {
					border: 1px solid var(--dark-color);
				}
			}

			label,
			legend {
				color: var(--light-color);
			}

			.gfield_description {
				color: rgb(from var(--light-color) r g b / 0.5);
			}

			.gf_progressbar_wrapper {
				.gf_progressbar_title {
					color: var(--light-color);
				}

				.gf_progressbar {
					background-color: rgb(from var(--light-color) r g b / 0.4);
				}
			}

			.gfield--type-choice .gfield_radio {
				 @media (width >= 1024px) {
					flex-direction: row !important;
					column-gap: 20px !important;
				 }
			}

			.gfield--type-turnstile {
				text-align: center;
			}

			.disclaimer {
				width: 100%;
				margin-bottom: 20px;
				/* max-width: 1024px; */
				padding-left: 20px;
				padding-right: 20px;
				text-align: center;
			}

			.gfield_required span {
				color: var(--tertiary-alt) !important;
			}

			.gform-footer.gform_footer {
				width: fit-content;
				margin: 1em auto 0;
				input.gform_button.button {
					border-color: var(--light-color);
					background-color: transparent;
					color: var(--light-color);
					&:hover,
					&:active,
					&:focus {
						background-color: var(--light-color);
						color: var(--secondary-color);
					}
				}
			}
		}

	}
}

.footer-practice-info {
	grid-area: c;

	.fpi-container {
		width: fit-content;
		@media (width >= 1024px) {
			column-gap: 65px;
			display: grid;
			grid-template-columns: 1fr 1fr;
			grid-template-areas: 'f-logo location-each'
													 'f-logo f-ratings'
													 'f-logo f-social';
		}
	}
}

.f-logo {
	/* cursor: pointer; */
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 38px;
	@media (width >= 768px) {
		margin-bottom: 50px;
	}
	@media (width >= 1024px) {
		grid-area: f-logo;
	}

	.f-logo-link {
		cursor: pointer !important;
	}

	svg {
		height: 100px;
		width: auto;
		@media (width >= 768px) {
			height: 140px;
		}
	}
}


/*==================================
=            Footer Nav            =
==================================*/

.site-footer {
	.footer-nav {
		background-color: var(--light-color);
		border-bottom: 1px solid var(--dark-alt);
		display: block;
		grid-area: d;
		letter-spacing: 0.02em;
		margin: 55px 0 0;
		padding: 16px 0;
		text-transform: uppercase;

		/* Tablet Styles */
		/* @media (width >= 768px) {
		} */

		.menu {
			list-style: none;
			margin: 0;
			display: flex;
			justify-content: center;
			flex-wrap: wrap;
			align-items: center;

			/* Tablet Styles */
			/* @media (width >= 768px) {
			} */

			li {
				margin: 0 10px;

				a {
					color: var(--dark-color);
					&:hover,
					&:active,
					&:focus {
						color: var(--secondary-color);
					}
				}

				&.button {
					transition: all .3s;
					a {
						transition: none;
					}
					&:hover,
					&:active,
					&:focus {
						a {
							color: var(--light-color);
							&:hover,
							&:active,
							&:focus {
								color: var(--light-color);
							}
						}
					}
				}

				ul {
					display: none;
				}
			}
		}
	}
}


/*===========================================
=            Footer Social Icons            =
===========================================*/

.f-social {
	display: flex;
	column-gap: 10px;
	font-size: 14px;
	letter-spacing: 0.03em;
	align-items: center;
	justify-content: center;
	@media (width >= 768px) {
		font-size: 16px;
	}
	@media (width >= 1024px) {
		grid-area: f-social;
		justify-content: flex-start;
	}
	.social-icons {
		font-size: 30px;
		line-height: 1em;
		list-style: none;
		margin: 0;
		display: flex;
		justify-content: center;

		.show-icon {
			margin-right: 24px;

			&:last-of-type {
				margin-right: 0;
			}

			a:hover,
			a:active,
			a:focus {
				svg {
					path {
						fill: var(--tertiary-alt);
					}
				}
			}
		}

		svg {
			width: auto;
			height: 30px;

			path {
				fill: var(--light-color);
			}
		}
	}
}

/*==================================================
=            Contact Page Footer Styles            =
==================================================*/

.contact,
.contact-us {
	.upper-footer {
		display: none;
		padding-top: 0;

		/* Tablet Styles */
		@media (width >= 768px) {
			display: block;
		}

		.footer-nav {
			border-top: none;
			margin-top: 0;
		}
	}
}

/*==============================================
=            Style Specific Classes            =
==============================================*/

.upper-footer {

	&.style-2,
	&.style-3 {
		.footer-practice-info {

			/* Tablet Styles */
			@media (width >= 768px) {
				text-align: left;
			}
		}

		.location-address-block {
			display: block;

			.address-street:after {
				content: none;
			}
		}

		.hours-text {

			/* Tablet Styles */
			@media (width >= 768px) {
				padding-left: 48px;
			}
		}

		.location-hours-block {

			/* Tablet Styles */
			@media (width >= 768px) {
				justify-content: flex-start;
			}
		}
	}
}

footer .ratings {
	background-color: var(--light-color);
	border-radius: 116.78px;
	margin-top: 5px;
	margin-bottom: 25px;
	text-transform: uppercase;
	width: fit-content;
	@media (width >= 768px) {
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 30px;
	}
	@media (width >= 1024px) {
		grid-area: f-ratings;
		margin-left: 0;
	}
	a {
		color: var(--dark-color);
		display: flex;
		width: fit-content;
		justify-content: center;
		align-items: center;
		margin-left: auto;
		margin-right: auto;
		padding: 10px 20px;
		width: fit-content;

		&:before {
			content: 'Read More Reviews';
			margin-top: 2px;
		}

		&:hover,
		&:active,
		&:focus {
			color: var(--secondary-color);
		}
	}

	.ratings__text {
		display: none;
	}

	.ratings__stars {
		display: flex;
		column-gap: 5px;

		.ratings__star {
			display: flex;
			align-items: center;
			path {
				fill: var(--secondary-color);
			}
		}
	}
}

/*====================================
=            Lower Footer            =
====================================*/

.lower-footer {
	font-size: 13px;
	position: relative;
	/* padding-top: 20px; */
	padding-bottom: 60px;

	/* Desktop Styles */
	@media (width >= 1024px) {
		padding-bottom: 90px;
	}

	a {
		color: var(--dark-color);
		text-decoration: none;

		&:hover,
		&:active,
		&:focus {
			color: var(--secondary-color);
		}

		&.policy-sitemap {
			&:after {
				content: ' | ';
				display: inline;
				position: relative;
			}
		}

		&:nth-last-of-type(2) {
			&:after {
				content: none;
			}
		}

		&.accessibility {
			background: var(--primary-color);
			color: var(--light-color);
			padding: 5px 20px;
			border-radius: 0;
			letter-spacing: 0.02em;
			margin-left: 5px;
			margin-right: 5px;
			display: inline-block;
			line-height: 16px;

			&:hover,
			&:active,
			&:focus {
				background: var(--secondary-color);
			}
		}
	}

	.rm-sig {
		.rm-logo {
			padding-top: 6px;
		}

		svg {
			width: 40px;
			height: auto;

			path {
				fill: var(--secondary-color);
			}
		}

		a:hover,
		a:active,
		a:focus {
			svg path {
				fill: var(--dark-color);
			}
		}
	}
}

.site-disclaimer {
	font-size: 13px;
	line-height: 1.63em;
	margin-bottom: 20px;
}

.lower-footer .copyright {
	margin-bottom: 20px;
}

/*===================================================================
=            Userway / Accessibility and Recaptcha Icons            =
===================================================================*/

.grecaptcha-badge,
.js body .uwy .uai,
.js body .uwy .userway_buttons_wrapper {
	bottom: 5px;
	transition: all .3s !important;
}

.make-sticky .grecaptcha-badge,
.make-sticky .uai,
.make-sticky .userway_buttons_wrapper {
	bottom: 74px !important;
}

/*======================================
=        Related / Latest Posts        =
======================================*/

.f-blog {
	display: grid;
	grid-template-columns: 1fr;
	text-align: center;
	padding-top: 40px;
	padding-bottom: 40px;
	/* position: relative; */
	@media (width >= 768px) {
		column-gap: 20px;
		grid-template-columns: 35% 65%;
		padding-top: 60px;
		padding-bottom: 60px;
	}
	@media (width >= 1024px) {
		grid-template-columns: 25% 75%;
		padding-top: 100px;
		padding-bottom: 100px;
	}
	@media (width >= 1280px) {
		grid-template-columns: 270px auto;
	}

	.f-blog-heading-wrap {
		display: flex;
		flex-direction: column;
		justify-content: center;
		letter-spacing: 0.03em;
		margin-bottom: 2em;
		text-align: center;
		text-transform: uppercase;
		@media (width >= 768px) {
			margin-bottom: 0;
			text-align: left;
		}
		.f-blog-heading {
			font-family: var(--primary-font);
			margin-top: 0;
			margin-bottom: 12px;
			@media (width >= 768px) {
				font-size: 22px;
			}
			@media (width >= 1024px) {
				max-width: 155px;
			}
		}

		.f-blog-sub-heading {
			margin-top: 0;
			margin-bottom: 10px;
		}

		.f-blog-description,
		.section-intro {
			margin-top: 0;
			margin-bottom: 0;

			p:last-of-type {
				margin-bottom: 0;
			}
		}
	}

	.f-post-img-wrap {
		display: flex;
		justify-content: center;
	}

	.footer-posts-list {
		display: grid;
		grid-template-columns: 1fr;
		column-gap: 1em;
		row-gap: 1em;
		list-style: none;
		margin: 0;
		padding-bottom: 2em;

		/* Tablet Styles */
		@media (width >= 768px) {
			grid-template-columns: 1fr 1fr;
			padding-bottom: 0;
		}

		/* Desktop Styles */
		@media (width >= 1024px) {
			grid-template-columns: 1fr 1fr 1fr;
		}

		li {
			text-align: left;

			&:nth-of-type(n+3) {
				display: none;

				/* Desktop Styles */
				@media (width >= 1024px) {
					display: block;
				}
			}

			a {
				text-align: center;
				text-decoration: none;
				@media (width >= 1024px) {
					font-size: 18px;
				}
			}
			.blog-title {
				margin-top: 10px;
			}
			.blog-excerpt {
				padding-bottom: 1em;
			}
		}
	}
}