.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: 55px 0;
	position: relative;
	/* Tablet Styles */
	@media (width >= 768px) {
		padding-top: 80px;
		padding-bottom: 80px;
	}
	@media (width >= 1024px) {
		padding-top: 145px;
		padding-bottom: 115px;
	}
	&:before {
		content: "";
		position: absolute;
		background: linear-gradient(rgb(from var(--secondary-alt) r g b / 0.6), rgb(from var(--secondary-alt) r g b / 1));
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		z-index: 0;
	}

	> div {
		position: relative;
	}

	.site-locations {
		.show-icon {
			padding-right: 18px;
			svg {
				width: 27px;
			}
		}
	}

	.location-each {
		>* {
			margin-bottom: 28px;
		}
	}

	.phone-text {
		font-size: 26px;
		letter-spacing: 0.06em;
	}

	.location-text {
		text-align: left;
		svg {
			path {
				fill: var(--light-color);
			}
		}
	}

	.h2 {
		color: var(--light-color);
		margin-top: 0;
		text-transform: uppercase;
		width: 100%;
		span {
			color: var(--secondary-color);
		}
	}
	a {
		color: var(--light-color);
		text-decoration: none;
		transition: color .3s;

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

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

		.nav-expander {
			display: none;
		}
	}

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

/* Footer Header */
.footer-header {
	flex-direction: column;
	grid-area: a;
	padding-bottom: 20px;
	.contact-text {
		font-style: italic;
		font-weight: var(--fw-bold);
		width: 100%;
	}
	> div {
		text-align: left;
	}
	.tagline {
		width: 100%;
		color: var(--light-color);
	}
}

/* Footer Contact Form */
.footer-contact-form {
	margin-bottom: 55px;
	grid-area: b;

	/* Gravity Forms */
	.gform-theme.gform-theme--foundation {
		color: var(--light-color);

		form {

			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 {
				input {
					color: var(--light-color);
					background-color: transparent;
					border-color: var(--light-color);
				}
			}

			::placeholder {
				color: var(--light-color);
			}

			textarea {
				color: var(--light-color);
				background-color: transparent;
				border-color: var(--light-color);
			}

			.disclaimer {
				width: 100%;
				margin-bottom: 20px;
				/* text-align: center; */
			}

			.gform-footer.gform_footer {
				width: fit-content;
				margin: 1em 0 0;
				input.gform_button.button { 
					color: var(--light-color);
				}

			}
		}
	}
}

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

	.fpi-container {
		width: fit-content;
	}
}

.f-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 40px;

	svg {
		height: 17em;
		width: auto;
	}
}


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

.site-footer {
	.footer-nav {
		display: none;

		/* Tablet Styles */
		@media (width >= 768px) {
			background-color: var(--primary-color);
			display: block;
			grid-area: d;
			margin: 55px 0 0;
			padding: 20px 0;
		}

		.menu {
			list-style: none;
			margin: 0;

			/* Tablet Styles */
			@media (width >= 768px) {
				display: flex;
				justify-content: center;
				flex-wrap: wrap;
				align-items: center;
			}

			li {
				margin: 0 10px;

				ul {
					display: none;
				}
			}
		}
	}
}


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

.f-social {
	.social-icons {
		font-size: 30px;
		line-height: 1em;
		list-style: none;
		margin: 0;
		margin-bottom: 35px;
		display: flex;
		justify-content: center;

		a {
			display: flex;
		}

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

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

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

		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;
			}
		}
	}
	.ratings {
		a {
			display: flex;
			width: fit-content;
			justify-content: center;
			flex-direction: column-reverse;
			align-items: center;
			margin-left: auto;
			margin-right: auto;

			&:before {
				content: 'Read More Reviews';
				font-size: 17px;
				line-height: 1em;
				text-transform: uppercase;
			}
		}

		.ratings__text {
			display: none;
		}

		.ratings__stars {
			display: flex;
			column-gap: 5px;
			margin: 0 0 10px;
			.ratings__star {
				display: flex;
				align-items: center;
			}
			svg {
				width: 22px;
				height: 22px;
				path {
					fill: var(--secondary-color);
					transition: fill 0.3s;
				}
			}
		}
	}
}


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

.lower-footer {
	font-size: 13px;
	position: relative;
	padding-bottom: 60px;
	background-color: var(--primary-color);
	color: var(--light-color);
	/* Desktop Styles */
	@media (width >= 1024px) {
		padding-bottom: 90px;
		text-align: left;
        display: grid;
        grid-template-columns: 2fr 1fr;
        column-gap: 20px;
        /* grid-template-areas: "l-disclaimer l-signature"
							 "l-copyright l-signature"; */
	}

	.copyright {
		/* grid-area: l-copyright; */
		margin-bottom: 1em;
		@media (width >= 1024px) {
			margin-bottom: 0;
		}
	}

	a {
		color: var(--light-color);
		text-decoration: none;
		&:hover {
			color: var(--secondary-color);
			svg {
				path {
					fill: 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;
			border-radius: 3px;
			margin-left: 5px;
			margin-right: 5px;
			display: inline-block;
			line-height: 16px;
			border: 1px solid var(--secondary-color);
			&:hover,
			&:active,
			&:focus {
				/* background: var(--secondary-color); */
				color: var(--secondary-color);
			}
		}
	}

	.rm-sig {
		/* grid-area: l-signature; */
		@media (width >= 1024px) {
			text-align: right;
		}
		.rm-logo {
			padding-top: 6px;
			@media (width >= 768px) {
				padding-left: 8px;
				display: inline-block;
				transform: translateY(3px);
			}
			@media (width >= 1024px) {
				padding-top: 0;
			}
		}

		svg {
			width: 28px;
			height: auto;

			path {
				fill: var(--light-color);
				transition: all 0.3s;
			}
		}
	}
}

.site-disclaimer {
	font-size: 13px;
	line-height: 1.2em;
	/* grid-area: l-disclaimer; */
}

/*===================================================================
=            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 {
	text-align: center;

	.f-blog-heading-wrap {
		margin-bottom: 2em;

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

		.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;
			}
		}
	}

	.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;
		}

		/* 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;
				}
			}

			.blog-excerpt {
				padding-bottom: 1em;
			}
		}
	}
}