/**
 * WordPress compatibility overrides
 */

.logo a {
	display: inline-block;
	line-height: 0;
}

.logo .custom-logo-link img,
.logo .custom-logo,
.logo picture img {
	width: 229px;
	height: 56px;
	margin-top: 8px;
	object-fit: contain;
}

a.contact {
	text-decoration: none;
	color: #fff;
}

a.project-card {
	text-decoration: none;
	color: inherit;
	display: block;
}

.footer a {
	color: inherit;
	text-decoration: none;
}

.footer-box a:hover {
	opacity: 0.7;
}

@media (max-width: 768px) {
	.logo .custom-logo-link img,
	.logo .custom-logo,
	.logo picture img {
		width: 190px;
		height: 46px;
	}
}

/* Contact form AJAX messages */
.valores-contact-message {
	display: none;
	margin-top: 16px;
	padding: 12px 16px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	border-radius: 4px;
}

.valores-contact-message.is-success {
	display: block;
	color: #0f5132;
	background: #d1e7dd;
	border: 1px solid #a3cfbb;
}

.valores-contact-message.is-error {
	display: block;
	color: #842029;
	background: #f8d7da;
	border: 1px solid #f1aeb5;
}

/* Project download popup — match contact form / theme UI */
body.valores-download-open {
	overflow: hidden;
}

.valores-download-overlay[hidden],
.valores-download-modal[hidden] {
	display: none !important;
}

.valores-download-overlay {
	position: fixed;
	inset: 0;
	background: rgba(13, 26, 39, 0.72);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	z-index: 10000;
}

.valores-download-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: min(560px, calc(100% - 32px));
	max-height: calc(100vh - 48px);
	overflow: auto;
	padding: 48px 40px 40px;
	z-index: 10001;
	background-color: #b8ae9d;
	background-image: linear-gradient(rgba(173, 161, 142, 0.92), rgba(173, 161, 142, 0.92));
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
	box-sizing: border-box;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.valores-download-modal *,
.valores-download-modal *::before,
.valores-download-modal *::after {
	box-sizing: border-box;
}

.valores-download-modal h3 {
	margin: 0 0 10px;
	color: #ffffff;
	font-family: "Gilroy", sans-serif;
	font-size: 32px;
	font-weight: 300;
	letter-spacing: 3px;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
}

.valores-download-project {
	margin: 0 0 32px;
	color: rgba(255, 255, 255, 0.92);
	font-family: "Public Sans", sans-serif;
	font-size: 14px;
	font-weight: 300;
	letter-spacing: 0.5px;
	text-align: center;
}

.valores-download-close {
	position: absolute;
	top: 12px;
	right: 16px;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #ffffff;
	font-size: 34px;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
	transition: opacity 0.25s ease;
}

.valores-download-close:hover {
	opacity: 0.7;
}

.valores-download-form {
	position: relative;
	z-index: 2;
	width: 100%;
}

.valores-download-form .form-row {
	display: flex;
	gap: 16px;
	margin-bottom: 18px;
}

.valores-download-form .input-box {
	flex: 1;
	position: relative;
	width: 100%;
}

.valores-download-form .input-box input {
	width: 100%;
	height: 57px;
	background: rgba(98, 74, 46, 0.38);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	border: 1px solid rgba(255, 255, 255, 0.25);
	outline: none;
	padding: 0 22px;
	color: #ffffff;
	font-size: 15.4px;
	font-weight: 300;
	font-family: "Public Sans", sans-serif;
	border-radius: 0;
	appearance: none;
	-webkit-appearance: none;
}

.valores-download-form .input-box input::placeholder {
	color: rgba(255, 255, 255, 0.9);
}

.valores-download-form .input-box input:focus {
	border-color: rgba(255, 255, 255, 0.55);
	background: rgba(98, 74, 46, 0.5);
}

.valores-download-form .submit-btn {
	width: 100%;
	height: 57px;
	background: rgba(98, 74, 46, 0.38);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: #ffffff;
	font-size: 16px;
	font-weight: 400;
	letter-spacing: 1px;
	cursor: pointer;
	transition: 0.3s ease;
	text-transform: uppercase;
	font-family: "Public Sans", sans-serif;
	border-radius: 0;
}

.valores-download-form .submit-btn:hover {
	background: #4e3921;
}

.valores-download-form .valores-contact-message {
	margin-top: 16px;
}

.project-buttons .info-btn {
	border: 0;
	cursor: pointer;
	font: inherit;
}

@media (max-width: 576px) {
	.valores-download-modal {
		padding: 40px 20px 24px;
	}

	.valores-download-modal h3 {
		font-size: 24px;
		letter-spacing: 2px;
	}
}
