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

div.footer-tagline {
    padding: 30px 20px;
	text-align: center;
	background-color: var(--secondary-color);
	background-image: repeating-linear-gradient(
		to left,
		var(--secondary-color) 0px,
		var(--secondary-color) 30px,
		rgb(from var(--primary-highlight) r g b / 0.1) 30px,
		rgb(from var(--primary-highlight) r g b / 0.1) 60px
	);
	@media (width >= 1024px) {
		padding: 20px;
	}
	h2, div.h2 {
		font-size: 26px;
		font-weight: var(--fw-medium);
		letter-spacing: 0.12em;
		line-height: 1em;
		margin-top: 0;
		margin-bottom: 0;
		color: var(--light-color);
		text-transform: uppercase;
		font-family: var(--primary-font);
		font-style: normal;
		@media (width >= 768px) {
			font-size: 35px;
		}
		@media (width >= 1024px) {
			font-size: 50px;
		}
	}
}

/*====================================
=            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(--primary-highlight);
	/* background-size: cover; */
	background-size: 200%;
	background-position: top left;
	/* background-position: center right; */
	background-repeat: no-repeat;
	color: var(--primary-color);
	padding: 35px 0 50px;
	background-size: 300%;
	
	/* Tablet Styles */
	@media (width >= 768px) {
		padding-top: 60px;
		padding-bottom: 65px;
		background-size: 200%;
	}

	@media (width >= 1024px) {
		padding-top: 90px;
		background-size: 100%;
		background-position: top center;
		align-items: center;
		background-attachment: fixed;
	}

	> div {
		text-align: left;
	}

	.site-locations {
		.show-icon {
			padding-right: 15px;
			svg {
				width: auto;
				height: 36px;
			}
		}
	}

	.location-each {
		@media (width < 768px) {
			justify-content: center;
			align-items: center;
		}
		>* {
			margin-bottom: 25px;
		}
	}

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

	.address-text {
		font-size: 17px;
		font-weight: var(--fw-medium);
	}

	.phone-text {
		font-size: 22px;
		font-weight: var(--fw-medium);
		letter-spacing: 0.06em;
		@media (width >= 768px) {
			font-size: 26px;
		}
	}

	.h2 {
		font-size: 32px;
		letter-spacing: 0.02em;
		font-style: italic;
		color: var(--primary-color);
		margin-top: 0;
		margin-bottom: 0;
		@media (width >= 768px) {
			font-size: 45px;
		}
		@media (width >= 1024px) {
			font-size: 50px;
		}
	}

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

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

			svg {
				path {
					fill: var(--primary-alt);
				}
			}
		}

		.nav-expander {
			display: none;
		}
	}

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

	.ratings {
		margin-top: 25px;
		grid-column: -1 / 1;
		@media (width >= 768px) {
			margin-top: 35px;
		}
		@media (width >= 1024px) {
			margin-top: 25px;
		}
		a {
			font-size: 15px;
			font-weight: var(--fw-medium);
			display: flex;
			width: fit-content;
			justify-content: center;
			align-items: center;
			margin-left: auto;
			margin-right: auto;
			flex-direction: column-reverse;
			letter-spacing: 1.2px;

			&:before {
				content: 'Read Online Reviews';
				text-transform: uppercase;
			}

			&:hover {
				.ratings__stars {
					svg {
						path {
							fill: var(--primary-alt);
						}
					}
				}
			}
		}

		.ratings__text {
			display: none;
		}

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

			.ratings__star {
				display: flex;
				align-items: center;
			}
			svg {
				width: 22px;
				height: 22px;
				path {
					fill: var(--secondary-color);
					transition: all 0.3s;
				}
			}
		}
	}
	.social-wrap {
		.button {
			color: var(--light-color);
			margin-bottom: 25px;
			padding: 16px 50px;
		}
	}
}

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

	.contact-text {
		width: 100%;
	}
}

/* Footer Contact Form */
.footer-contact-form {
	grid-area: b;
	margin-bottom: 35px;
	@media (width >= 768px) {
		margin-bottom: 45px;
	}
	@media (width >= 1024px) {
		margin-bottom: 0;
	}

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

		form {

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

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

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

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

			.disclaimer {
				width: 100%;
				margin-bottom: 20px;
				text-align: center;
				@media (width >= 1024px) {
					text-align: left;
				}
			}

			.gform-footer.gform_footer {
				width: fit-content;
				margin: 10px auto 0;
				@media (width >= 1024px) {
					margin-left: 0;
					margin-right: 0;
				}
			}
		}
	}
}

.footer-practice-info {
	grid-area: c;
	@media (width >= 1024px) {
		border-left: 1px solid rgb(from var(--secondary-color) r g b / 0.5);
	}
	.fpi-container {
		width: fit-content;
		@media (width >= 768px) {
			display: grid;
			grid-template-columns: 1fr 1fr;
			column-gap: 30px;
		}
		@media (width >= 1024px) {
			grid-template-columns: 1fr;
			> div {
				width: fit-content;
				margin-left: auto;
				margin-right: auto;
			}
		}
	}
}

.f-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 30px;
	grid-column: -1 / 1;
	@media (width >= 768px) {
		margin-bottom: 40px;
	}
	@media (width >= 1024px) {
		margin-bottom: 25px;
	}
	svg {
		height: 8em;
		width: auto;
		@media (width >= 768px) {
			height: 10em;
		}
	}
}


/*==================================
=            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;
		display: flex;
		justify-content: center;

		.show-icon {
			margin-right: 20px;
			margin-bottom: 0;

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

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

		a {
			display: flex;
		}

		svg {
			width: auto;
			height: 27px;

			path {
				fill: var(--secondary-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;
			}
		}
	}
}



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

.lower-footer {
	font-size: 13px;
	position: relative;
	padding-bottom: 70px;

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

	a {
		color: var(--dark-alt);
		text-decoration: none;
		font-weight: var(--fw-regular);
		&:hover {
			color: var(--primary-alt);
		}

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

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

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

		svg {
			width: 40px;
			height: auto;

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

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

/*===================================================================
=            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;
	padding-top: 40px;
	padding-bottom: 40px;
	@media (width >= 768px) {
		padding-top: 60px;
		padding-bottom: 60px;
	}
	@media (width >= 1024px) {
		text-align: left;
		padding-top: 80px;
		padding-bottom: 80px;
	}
	.blog-wrapper {
		border: 2px solid rgb(from var(--secondary-color) r g b / 0.5);
		padding: 20px;
		@media (width >= 768px) {
			padding: 40px;
		}
		@media (width >= 1024px) {
			display: grid;
			column-gap: 60px;
			grid-template-areas: "f-heading f-posts"
								 "f-links f-posts";
			/* grid-template-rows: 168px auto; */
			grid-template-columns: 230px 1fr;
			padding: 60px;
		}
	}
	.f-blog-heading-wrap {
		margin-bottom: 10px;
		grid-area: f-heading;
		@media (width >= 768px) {
			display: flex;
        	flex-direction: column;
        	justify-content: flex-end;
		}
		.f-blog-heading {
			margin-top: 0;
			margin-bottom: 10px;
			@media (width >= 1024px) {
				font-size: 45px;
				line-height: 1.15em;
			}
		}

		.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: 30px;
		row-gap: 1em;
		list-style: none;
		margin: 0;
		grid-area: f-posts;
		margin-bottom: 1.5em;
		/* Tablet Styles */
		@media (width >= 768px) {
			grid-template-columns: 1fr 1fr;
		}

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

		li {
			text-align: center;
			margin-bottom: 0;
			&:nth-of-type(n+3) {
				display: none;

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

			a {
				text-decoration: none;
			}

			.f-post-img-wrap {
				margin-bottom: 15px;
				@media (width >= 768px) {
					height: 260px;
				}
			}

			.blog-title {
				font-size: 18px;
				font-weight: var(--fw-regular);
				line-height: 1.1em;
			}
			
			img {
				width: 100%;
				height: 100%;
				object-fit: cover;
				object-position: center;
			}

			.blog-excerpt {
				padding-bottom: 1em;
			}
		}
	}
	.related-link {
		grid-area: f-links;
	}
}