/* ==========================================================================
   Hermosillo Footer Widget — Styles
   Figma Fidelity: 1200px canonical content grid, strictly respects parent Elementor container
   Figma Node: 1048:4315 / 1117:8829
   ========================================================================== */

/* Ensure widget wrapper respects and fills the parent Elementor container */
.elementor-element-hfooter_wgt_01,
.elementor-widget.elementor-widget-hermosillo_footer,
.elementor-widget.elementor-widget-hermosillo_footer > .elementor-widget-container {
	flex: 1 1 100% !important;
	max-width: 100% !important;
	width: 100% !important;
}

/* Footer Widget Root */
.hermosillo-footer-widget {
	background-color: #3f6183;
	box-sizing: border-box;
	color: #ffffff;
	font-family: 'Flama Condensed', 'FlamaCond', 'Roboto Condensed', sans-serif;
	margin: 0 auto;
	max-width: 100%;
	padding: 120px 0;
	position: relative;
	transition: background-color 0.3s ease;
	width: 100%;
}

.hermosillo-footer-widget *,
.hermosillo-footer-widget *::before,
.hermosillo-footer-widget *::after {
	box-sizing: border-box;
}

/* Inner Container — Canonical 1200px width */
.hermosillo-footer-widget .hfooter-inner {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	margin: 0 auto;
	max-width: 1200px;
	padding: 0;
	width: 100%;
}

/* 4-Column Navigation Grid (Matches Figma X = 120, 426, 730, 1038) */
.hermosillo-footer-widget .hfooter-nav-grid {
	display: grid;
	gap: 24px 32px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	width: 100%;
}

.hermosillo-footer-widget .hfooter-col {
	display: flex;
	flex-direction: column;
}

.hermosillo-footer-widget .hfooter-col-title {
	color: #6990ab;
	font-family: 'Flama Condensed', 'FlamaCond', 'Roboto Condensed', sans-serif;
	font-size: 20px;
	font-weight: 500;
	letter-spacing: 0.02em;
	line-height: 1.2;
	margin: 0 0 24px;
	text-transform: none;
}

.hermosillo-footer-widget .hfooter-col-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.hermosillo-footer-widget .hfooter-col-item {
	margin: 0;
	padding: 0;
}

.hermosillo-footer-widget .hfooter-link {
	color: #ffffff !important;
	display: inline-block;
	font-family: 'Flama', 'Roboto', sans-serif;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.3;
	position: relative;
	text-decoration: none;
	transition: color 0.2s ease, transform 0.2s ease;
}

.hermosillo-footer-widget .hfooter-link:hover {
	color: #e65a28 !important;
	transform: translateX(3px);
}

/* Middle Row: Brand Logo + Newsletter Form (Figma: Centered 996px block, 57px gap) */
.hermosillo-footer-widget .hfooter-middle-row {
	align-items: flex-start;
	display: flex;
	gap: 57px;
	justify-content: center;
	margin: 120px auto 0;
	max-width: 996px;
	width: 100%;
}

.hermosillo-footer-widget .hfooter-brand {
	align-items: flex-start;
	display: inline-flex;
	flex-shrink: 0;
	text-decoration: none;
	width: 250px;
}

.hermosillo-footer-widget .hfooter-brand img {
	display: block;
	height: 44px;
	max-width: 250px;
	width: auto;
}

.hermosillo-footer-widget .hfooter-newsletter {
	display: flex;
	flex: 1;
	flex-direction: column;
	max-width: 689px;
	width: 100%;
}

.hermosillo-footer-widget .hfooter-newsletter-title {
	color: #ebf1f7;
	font-family: 'Flama Condensed', 'FlamaCond', 'Roboto Condensed', sans-serif;
	font-size: 32px;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.15;
	margin: 0 0 24px;
	text-transform: uppercase;
}

.hermosillo-footer-widget .hfooter-newsletter-form {
	display: flex;
	height: 49px;
	width: 100%;
}

.hermosillo-footer-widget .hfooter-input-wrap {
	align-items: center;
	background: #ffffff;
	border: 1px solid #ffffff;
	box-sizing: border-box;
	display: flex;
	flex: 1;
	height: 49px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hermosillo-footer-widget .hfooter-input-wrap:focus-within {
	border-color: #e65a28;
	box-shadow: 0 0 0 2px rgba(230, 90, 40, 0.25);
}

.hermosillo-footer-widget .hfooter-input-icon {
	align-items: center;
	display: inline-flex;
	flex-shrink: 0;
	justify-content: center;
	padding-left: 18px;
	pointer-events: none;
}

.hermosillo-footer-widget .hfooter-input-icon svg {
	display: block;
}

.hermosillo-footer-widget .hfooter-input {
	background: transparent;
	border: none;
	box-sizing: border-box;
	color: #212121;
	flex: 1;
	font-family: 'Enriqueta', Georgia, serif;
	font-size: 18px;
	height: 100%;
	outline: none;
	padding: 0 16px 0 12px;
}

.hermosillo-footer-widget .hfooter-input::placeholder {
	color: #8c9aa8;
	font-family: 'Enriqueta', Georgia, serif;
	font-size: 18px;
}

.hermosillo-footer-widget .hfooter-submit-btn {
	align-items: center;
	background: #e65a28;
	border: none;
	border-radius: 0;
	box-sizing: border-box;
	color: #ffffff !important;
	cursor: pointer;
	display: inline-flex;
	flex-shrink: 0;
	font-family: 'Flama Condensed', 'FlamaCond', 'Roboto Condensed', sans-serif;
	font-size: 24px;
	font-weight: 600;
	height: 49px;
	justify-content: center;
	letter-spacing: 0.04em;
	line-height: 1;
	padding: 0 32px;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 0.2s ease, transform 0.2s ease;
	width: 156px;
}

.hermosillo-footer-widget .hfooter-submit-btn:hover {
	background: #254467 !important;
	transform: translateY(-2px);
}

/* Bottom Row: 4-Column Grid matching Nav Grid (Figma: Legal in Col 3, Button in Col 4) */
.hermosillo-footer-widget .hfooter-bottom-row {
	align-items: flex-end;
	display: grid;
	gap: 24px 32px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-top: 120px;
	width: 100%;
}

.hermosillo-footer-widget .hfooter-badges {
	align-items: center;
	display: flex;
	gap: 20px;
	grid-column: 1 / 3;
	justify-content: flex-start;
}

.hermosillo-footer-widget .hfooter-badge-link {
	align-items: center;
	display: inline-flex;
	text-decoration: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.hermosillo-footer-widget .hfooter-badge-link:hover {
	opacity: 0.9;
	transform: translateY(-2px);
}

.hermosillo-footer-widget .hfooter-badge-ecovadis {
	display: block;
	height: 75px;
	object-fit: contain;
	width: 75px;
}

.hermosillo-footer-widget .hfooter-badge-dnb {
	display: block;
	height: 75px;
	max-width: 90px;
	object-fit: contain;
	width: auto;
}

.hermosillo-footer-widget .hfooter-legal-wrap {
	align-items: flex-start;
	display: flex;
	flex-direction: column;
	gap: 12px;
	grid-column: 3 / 4;
	min-width: 380px;
	text-align: left;
}

.hermosillo-footer-widget .hfooter-legal-links {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.hermosillo-footer-widget .hfooter-legal-item {
	align-items: center;
	display: inline-flex;
	margin: 0;
	padding: 0;
}

.hermosillo-footer-widget .hfooter-legal-item:not(:last-child)::after {
	color: rgba(255, 255, 255, 0.4);
	content: '|';
	font-size: 16px;
	margin-left: 12px;
}

.hermosillo-footer-widget .hfooter-legal-link {
	color: #ffffff !important;
	font-family: 'Flama', 'Roboto', sans-serif;
	font-size: 16px;
	font-weight: 500;
	text-decoration: none;
	transition: color 0.2s ease;
}

.hermosillo-footer-widget .hfooter-legal-link:hover {
	color: #e65a28 !important;
}

.hermosillo-footer-widget .hfooter-copyright {
	color: #ffffff;
	font-family: 'Enriqueta', Georgia, serif;
	font-size: 14px;
	line-height: 1.4;
	margin: 0;
	opacity: 0.75;
}

.hermosillo-footer-widget .hfooter-action-wrap {
	align-items: center;
	display: flex;
	flex-shrink: 0;
	grid-column: 4;
	justify-content: flex-end;
}

/* Back to Top Button (Figma: 64px circle, #F0F1F4 background, #3F6183 chevron) */
.hermosillo-footer-widget .hfooter-back-to-top {
	align-items: center;
	background: #f0f1f4;
	border: none;
	border-radius: 50%;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
	color: #3f6183;
	cursor: pointer;
	display: inline-flex;
	flex-shrink: 0;
	height: 64px;
	justify-content: center;
	outline: none;
	padding: 0;
	transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
	width: 64px;
}

.hermosillo-footer-widget .hfooter-back-to-top:hover {
	background: #e65a28;
	box-shadow: 0 6px 18px rgba(230, 90, 40, 0.35);
	color: #ffffff;
	transform: translateY(-3px);
}

.hermosillo-footer-widget .hfooter-back-to-top svg {
	fill: none;
	height: 24px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2.5;
	transition: stroke 0.25s ease;
	width: 24px;
}

/* Responsive */
@media (max-width: 1248px) {
	.hermosillo-footer-widget {
		padding: 100px 32px;
	}
}

@media (max-width: 991px) {
	.hermosillo-footer-widget {
		padding: 80px 24px;
	}

	.hermosillo-footer-widget .hfooter-nav-grid {
		gap: 36px 24px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hermosillo-footer-widget .hfooter-middle-row {
		align-items: center;
		flex-direction: column;
		gap: 36px;
		margin-top: 80px;
		text-align: center;
	}

	.hermosillo-footer-widget .hfooter-newsletter {
		align-items: center;
		max-width: 100%;
	}

	.hermosillo-footer-widget .hfooter-bottom-row {
		align-items: center;
		display: flex !important;
		flex-direction: column;
		gap: 32px;
		margin-top: 80px;
		text-align: center;
	}

	.hermosillo-footer-widget .hfooter-legal-wrap {
		align-items: center;
		grid-column: auto;
		min-width: 0;
		text-align: center;
	}

	.hermosillo-footer-widget .hfooter-action-wrap {
		grid-column: auto;
		justify-content: center;
	}

	.hermosillo-footer-widget .hfooter-badges {
		grid-column: auto;
		justify-content: center;
	}
}

@media (max-width: 640px) {
	.hermosillo-footer-widget {
		padding: 60px 16px 40px;
	}

	.hermosillo-footer-widget .hfooter-nav-grid {
		gap: 32px;
		grid-template-columns: 1fr;
	}

	.hermosillo-footer-widget .hfooter-middle-row {
		margin-top: 60px;
	}

	.hermosillo-footer-widget .hfooter-newsletter-title {
		font-size: 26px;
		text-align: center;
	}

	.hermosillo-footer-widget .hfooter-newsletter-form {
		flex-direction: column;
		gap: 12px;
		height: auto;
	}

	.hermosillo-footer-widget .hfooter-input-wrap {
		width: 100%;
	}

	.hermosillo-footer-widget .hfooter-submit-btn {
		justify-content: center;
		width: 100%;
	}

	.hermosillo-footer-widget .hfooter-bottom-row {
		display: flex !important;
		flex-direction: column;
		gap: 28px;
		margin-top: 60px;
	}

	.hermosillo-footer-widget .hfooter-back-to-top {
		height: 52px;
		width: 52px;
	}
}
