/* Active nav-item underline (matches design's per-page indicator) */
.wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content {
	border-bottom: 2px solid var(--wp--preset--color--accent-2);
	padding-bottom: 3px;
}

/* Nav hover color (design: style-hover color #B9714F), no underline */
.wp-block-navigation-item > .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--accent-1) !important;
	text-decoration: none !important;
}

/* No focus rectangle on nav links / logo / footer links while still showing something on keyboard nav */
.wp-block-navigation-item__content:focus,
.wp-block-navigation__responsive-container-open:focus,
a:focus {
	outline: none;
	box-shadow: none;
}
.wp-block-navigation-item__content:focus-visible {
	outline: none;
	text-decoration: underline;
}

/* Contact Form 7 field styling to match design */
.wpcf7,
.wpcf7-form,
.wpcf7-form p,
.wpcf7-form-control-wrap {
	width: 100%;
}
.wpcf7-form p {
	margin: 0 0 16px;
}
.mvcm-form-row {
	display: block;
	width: 100%;
}
.mvcm-form-row > p {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	align-items: start;
	width: 100%;
}
@media (max-width: 480px) {
	.mvcm-form-row > p {
		grid-template-columns: 1fr;
	}
}
.wpcf7-form label {
	display: flex;
	flex-direction: column;
	gap: 7px;
	margin-bottom: 16px;
	font-size: 14px;
	font-weight: 600;
	color: #3E4844;
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7-form select {
	font-family: var(--wp--preset--font-family--karla);
	font-size: 15px;
	font-weight: 400;
	padding: 12px 14px;
	border: 1px solid rgba(47, 58, 54, 0.28);
	border-radius: 8px;
	background: #FBF8F2;
	color: #2F3A36;
	width: 100%;
	box-sizing: border-box;
}
.wpcf7-form textarea {
	resize: vertical;
}
.wpcf7-form hr {
	border: none;
	border-top: 1px solid rgba(47, 58, 54, 0.18);
	margin: 4px 0 16px;
}
.wpcf7-form .wpcf7-submit,
.wpcf7-form input[type="submit"] {
	font-family: var(--wp--preset--font-family--karla);
	background: var(--wp--preset--color--accent-2);
	color: #fff;
	border: none;
	padding: 16px 34px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 16px;
	cursor: pointer;
}
.wpcf7-form .wpcf7-submit:hover,
.wpcf7-form input[type="submit"]:hover {
	background: var(--wp--preset--color--accent-1);
}
.wpcf7-form .wpcf7-not-valid-tip {
	color: #A2472A;
	font-size: 13px;
	font-weight: 400;
	margin-top: 4px;
}

/* CF7 field title row (badge + label text stay on one line inside the flex-column label) */
.wpcf7-form .field-title {
	display: flex;
	align-items: baseline;
	gap: 8px;
	flex-wrap: wrap;
}

/* CF7 "obligatoire" field badge */
.required-badge {
	display: inline-block;
	color: var(--wp--preset--color--accent-1);
	font-size: 11px;
	font-weight: 600;
	font-style: italic;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-left: 6px;
}

/* Service card hover lift (design: style-hover background shift) */
.mvcm-card {
	position: relative;
	transition: filter 0.15s ease;
}
.mvcm-card:hover {
	filter: brightness(0.96);
}

/* Make the whole card clickable (stretched link) — the title link's hit area
   covers the full card, so clicking anywhere goes to the service page */
.mvcm-card-link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

/* Remove default block-gap margin above the footer template part on every page */
.wp-block-template-part:has(.mvcm-footer),
footer.mvcm-footer {
	margin-top: 0 !important;
}

/* Footer links: muted gray by default (not the site's rust link color), no underline */
.mvcm-footer a {
	color: #A9B3AE;
	text-decoration: none;
}
.mvcm-footer a:hover {
	color: #E9B39B;
}

/* Heading links (card titles) use the heading's own color, not the global rust link color */
.wp-block-heading a {
	color: inherit;
	text-decoration: none;
}

/* Card grids: fill the section width instead of WP's default grid leaving an empty phantom column */
.mvcm-grid-4,
.mvcm-grid-3 {
	display: grid !important;
}
@media (max-width: 960px) {
	.mvcm-grid-4 {
		grid-template-columns: repeat(2, 1fr) !important;
	}
	.mvcm-grid-3 {
		grid-template-columns: repeat(1, 1fr) !important;
	}
}
@media (max-width: 600px) {
	.mvcm-grid-4,
	.mvcm-grid-3 {
		grid-template-columns: 1fr !important;
	}
}

/* No underline on card links (design uses color only, no text-decoration) */
.mvcm-card a {
	text-decoration: none;
}

/* ---------- Mobile responsiveness ---------- */
@media (max-width: 782px) {
	header.wp-block-group {
		padding-top: 10px !important;
		padding-bottom: 10px !important;
	}
	.wp-block-site-title {
		font-size: 15px !important;
	}
	.wp-block-navigation__responsive-container-open svg,
	.wp-block-navigation__responsive-container-close svg {
		width: 20px;
		height: 20px;
	}
	.wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none;
	}
	.wp-block-navigation__responsive-container.is-menu-open {
		padding: 24px !important;
	}
}
@media (max-width: 480px) {
	.wp-block-group[style*="min-width"] {
		min-width: 0 !important;
	}
}

/* Header brand text (title + tagline) left-aligned, not centered */
.mvcm-brand-text {
	align-items: flex-start;
}

/* ---------- Light, no-JS motion polish ---------- */
@media (prefers-reduced-motion: no-preference) {
	/* Gentle fade/rise for the page content on load */
	main {
		animation: mvcm-fade-in 0.5s ease both;
	}
	@keyframes mvcm-fade-in {
		from {
			opacity: 0;
			transform: translateY(8px);
		}
		to {
			opacity: 1;
			transform: translateY(0);
		}
	}

	/* Smooth color/background transitions everywhere instead of instant snaps */
	a,
	.wp-block-button__link,
	.wp-block-navigation-item__content,
	.mvcm-card,
	.wpcf7-form input,
	.wpcf7-form textarea,
	.wpcf7-form select {
		transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, filter 0.15s ease, transform 0.2s ease;
	}

	/* Buttons: subtle lift on hover */
	.wp-block-button__link:hover {
		transform: translateY(-1px);
	}

	/* Service cards: lift slightly in addition to the existing brightness dip */
	.mvcm-card:hover {
		transform: translateY(-3px);
	}

	/* Contact form inputs: soft focus glow instead of the harsh default outline */
	.wpcf7-form input:focus,
	.wpcf7-form textarea:focus,
	.wpcf7-form select:focus {
		outline: none;
		border-color: var(--wp--preset--color--accent-2);
		box-shadow: 0 0 0 3px rgba(206, 142, 118, 0.2);
	}
}
