/**
 * Theme Name:       Montana Home Services
 * Theme URI:        https://montanahomeservices.com
 * Description:      Custom theme for the Montana Home Services.
 * Author:           JiveDig
 * Author URI:       https://heritageads.com
 * Version:          1.0.0
 * Text Domain:      montanahomeservices
 * License:          GPL-2.0-or-later
 * License URI:      http://www.gnu.org/licenses/gpl-2.0.html
 */

/**
 * Elements
 */

header {
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

mark:where(.has-inline-color) {
	background-color: transparent;
}

/**
 * Navigation
 */

.wp-block-navigation-item.current-menu-item,
.wp-block-navigation-item.current-menu-ancestor {
	> .wp-block-navigation-item__content > .wp-block-navigation-item__label:first-of-type {
		padding-bottom: 4px;
		border-bottom: 1px solid currentColor;
	}
}

/**
 * Content
 */

.wp-block-image a,
.wp-block-post-featured-image a,
.wp-block-cover:has(.wp-block-post-title a) {
	overflow: hidden;

	img {
		transition: all 0.2s ease-in;
	}

	&:hover {
		img {
			transform: scale(1.025) rotate(.25deg);
			filter: brightness(1.4);
		}
	}
}

.wp-block-cover:has(.wp-block-post-title a) {
	position: relative;


	.wp-block-cover__inner-container,
	.wp-block-post-title {
		position: static;
	}

	.wp-block-post-title a::before {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		content: "";
	}
}

/**
 * Gravity Forms
 */

div.gform_confirmation_message {
	background-color: var(--wp--preset--color--base-3);
	padding: var(--wp--preset--spacing--40);
}

/**
 * WP Forms
 */

div.wpforms-container-full .wpforms-confirmation-container-full,
div[submit-success] > .wpforms-confirmation-container-full:not(.wpforms-redirection-message) {
	background: var(--wp--preset--color--primary);
	border: 0;
	border-radius: 3px;
}

div.wpforms-container-full .wpforms-confirmation-container-full p,
div[submit-success] > .wpforms-confirmation-container-full:not(.wpforms-redirection-message) p {
	color: var(--wp--preset--color--base) !important;
}