/**
 * Footer Styles
 *
 * Implements Figma node 577:5266 (Desktop Footer) and 577:8237 (Mobile Footer).
 *
 * @package uashelters
 */

/* ==========================================================================
   Footer Wrapper & Background
   ========================================================================== */

.site-footer {
	position: relative;
	width: 100%;
	background: linear-gradient(245.26deg, #14181b 51.5%, #2b3338 99.5%);
	color: #ffffff;
	padding: 100px 0 50px;
	box-sizing: border-box;
	overflow: hidden;
	font-family: var(--font-main);
}

.site-footer .container {
	position: relative;
	z-index: 1;
}

/* ==========================================================================
   1. Newsletter Top Section
   ========================================================================== */

.footer-newsletter {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 40px;
	margin-bottom: 50px;
}

.footer-newsletter__title-wrap {
	flex: 1;
	max-width: 844px;
}

.footer-newsletter__title {
	font-family: var(--font-main);
	font-size: 56px;
	font-weight: 600;
	line-height: 1.12;
	color: #ffffff;
	text-transform: uppercase;
	margin: 0;
	padding: 0;
	letter-spacing: -0.01em;
}

.footer-newsletter__title--mobile {
	display: none;
}

.footer-newsletter__form-wrap {
	width: 100%;
	max-width: 410px;
	flex-shrink: 0;
}

/* Newsletter Form Styles (Contact Form 7) */
.footer-cf7-container {
	width: 100%;
}

.footer-cf7-container .wpcf7-form,
.footer-cf7-container .wpcf7-form>p,
.footer-cf7-container .footer-form {
	display: flex;
	flex-direction: column;
	gap: 17px;
	width: 100%;
	margin: 0;
	padding: 0;
}

.footer-cf7-container .wpcf7-form-control-wrap,
.footer-cf7-container .footer-form__group {
	position: relative;
	width: 100%;
	display: block;
}

.footer-cf7-container .footer-form__action {
	width: 100%;
}

.footer-cf7-container input[type="email"],
.footer-cf7-container input[type="text"],
.footer-cf7-container .footer-form__input,
.footer-cf7-container .wpcf7-text {
	width: 100%;
	height: 54px;
	background: transparent;
	border: 1px solid #ffffff;
	border-radius: 10px;
	padding: 12px 18px;
	font-family: var(--font-main);
	font-size: 20px;
	font-weight: 400;
	line-height: 1.12;
	color: #ffffff;
	outline: none;
	box-sizing: border-box;
	transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.footer-cf7-container input::placeholder,
.footer-cf7-container .footer-form__input::placeholder {
	color: #717171;
	opacity: 1;
}

.footer-cf7-container input:focus,
.footer-cf7-container .footer-form__input:focus {
	border-color: var(--color-primary);
	box-shadow: none !important;
	outline: none !important;
}

.footer-cf7-container input[type="submit"],
.footer-cf7-container button[type="submit"],
.footer-cf7-container .wpcf7-submit,
.footer-cf7-container .footer-form__submit {
	width: 100%;
	height: 54px;
	background-color: var(--color-primary, #FF9500);
	color: #252525;
	border: 2px solid transparent;
	border-radius: 40px;
	font-family: var(--font-main, 'Gilroy', sans-serif);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.5;
	text-transform: capitalize;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	box-shadow: none !important;
	transform: none !important;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
	box-sizing: border-box;
	outline: none;
}

/* Hover state: background color var(--color-primary-hover) only (no glow, no shadow, no movement) */
.footer-cf7-container input[type="submit"]:hover,
.footer-cf7-container button[type="submit"]:hover,
.footer-cf7-container .wpcf7-submit:hover,
.footer-cf7-container .footer-form__submit:hover {
	background-color: var(--color-primary-hover, #e08300) !important;
	color: #252525 !important;
	border-color: transparent !important;
	box-shadow: none !important;
	transform: none !important;
}

/* Active state */
.footer-cf7-container input[type="submit"]:active,
.footer-cf7-container button[type="submit"]:active,
.footer-cf7-container .wpcf7-submit:active,
.footer-cf7-container .footer-form__submit:active {
	background-color: #D07900 !important;
	box-shadow: none !important;
	transform: none !important;
}

/* Disabled state */
.footer-cf7-container input[type="submit"]:disabled,
.footer-cf7-container input[type="submit"][disabled],
.footer-cf7-container button[type="submit"]:disabled,
.footer-cf7-container button[type="submit"][disabled],
.footer-cf7-container .wpcf7-submit:disabled,
.footer-cf7-container .wpcf7-submit[disabled],
.footer-cf7-container .footer-form__submit:disabled,
.footer-cf7-container .footer-form__submit[disabled] {
	background-color: transparent !important;
	border: 2px solid #505050 !important;
	color: #505050 !important;
	cursor: not-allowed !important;
	box-shadow: none !important;
	transform: none !important;
}

.footer-cf7-container .btn-arrow,
.footer-cf7-container .btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 12px;
	height: 9px;
	flex-shrink: 0;
	transform: none !important;
	transition: none !important;
}

.footer-cf7-container .btn-arrow svg,
.footer-cf7-container .btn-icon svg {
	width: 12px;
	height: 9px;
	display: block;
	fill: currentColor;
}

:disabled .btn-arrow svg,
:disabled .btn-icon svg,
[disabled] .btn-arrow svg,
[disabled] .btn-icon svg {
	color: #505050 !important;
	fill: #505050 !important;
}

/* CF7 response overrides */
.footer-cf7-container .wpcf7-not-valid-tip {
	color: #ff6b6b;
	font-size: 13px;
	margin-top: 6px;
}

.footer-cf7-container .wpcf7-response-output {
	margin: 12px 0 0;
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 14px;
	border-color: rgba(255, 255, 255, 0.2) !important;
	color: #ffffff;
}

/* ==========================================================================
   2. Horizontal Divider
   ========================================================================== */

.footer-divider {
	border: none;
	background: #20262B;
	height: 2px;
	margin: 0 0 50px 0;
	width: 100%;
}

/* ==========================================================================
   3. Middle Section: Navigation Columns & Contacts
   ========================================================================== */

.footer-middle {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 40px;
}

.footer-columns {
	display: flex;
	align-items: flex-start;
	gap: 65px;
}

.footer-col {
	display: flex;
	flex-direction: column;
	min-width: 90px;
}

.footer-col--social {
	min-width: 133px;
}

.footer-col__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 17px;
}

.footer-col__title {
	font-family: var(--font-main);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
	color: #ffffff;
	text-transform: uppercase;
	margin: 0;
	padding: 0;
	white-space: nowrap;
}

.footer-col__toggle {
	display: none;
	background: transparent;
	border: none;
	padding: 0;
	margin: 0;
	cursor: pointer;
	color: #ffffff;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	transition: transform 0.25s ease;
}

.footer-col__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.footer-col__list li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-col__list a {
	font-family: var(--font-main);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
	color: #717171;
	text-transform: uppercase;
	text-decoration: none;
	transition: color 0.2s ease;
	display: inline-block;
	white-space: nowrap;
}

.footer-col__list a:hover,
.footer-col__list .current-menu-item>a,
.footer-col__list .current-lang-item>a {
	color: var(--color-primary);
}

.footer-col__line {
	display: none;
}

/* Contacts: Email and Phone */
.footer-contacts {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	text-align: right;
	gap: 8px;
	white-space: nowrap;
}

.footer-contacts__email {
	font-family: var(--font-main);
	font-size: 30px;
	font-weight: 600;
	line-height: 1.5;
	color: #ffffff;
	text-decoration: underline;
	transition: color 0.2s ease;
}

.footer-contacts__email:hover {
	color: var(--color-primary);
}

.footer-contacts__phone {
	font-family: var(--font-main);
	font-size: 30px;
	font-weight: 600;
	line-height: 1.5;
	color: #ffffff;
	text-decoration: none;
	letter-spacing: 0.9px;
	transition: color 0.2s ease;
}

.footer-contacts__phone:hover {
	color: var(--color-primary);
}

/* ==========================================================================
   4. Bottom Section: Logos & Legal
   ========================================================================== */

.footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-top: 72px;
	gap: 30px;
}

/* Footer Logo */
.footer-logo {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.footer-logo .header-logo {
	gap: 26px;
}

.footer-logo .header-logo__part img,
.footer-logo .header-logo__part svg {
	height: 82px;
	max-height: 85px;
	width: auto;
}

.footer-logo .header-logo__sep-icon img,
.footer-logo .header-logo__sep-icon svg {
	width: 19px;
	height: 19px;
}

.footer-logo .header-logo__sep-text {
	font-size: 26px;
	color: #ffffff;
}

/* Legal text & Privacy */
.footer-legal {
	display: flex;
	align-items: center;
	font-family: var(--font-main, 'Gilroy', sans-serif);
	font-size: 12px;
	font-weight: 400;
	color: #ffffff;
	line-height: 1.27;
}

.footer-legal__row-desktop {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 30px;
	margin: 0;
	padding: 0;
	white-space: nowrap;
}

.footer-legal__row-mobile {
	display: none;
}

.footer-legal__privacy {
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 0;
}

.footer-privacy-menu {
	list-style: none !important;
	list-style-type: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: inline-flex !important;
	align-items: center;
}

.footer-privacy-menu li {
	list-style: none !important;
	list-style-type: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: inline-flex !important;
	align-items: center;
}

.footer-privacy-menu li::before,
.footer-privacy-menu li::marker {
	content: none !important;
	display: none !important;
}

.footer-legal__privacy a,
.footer-privacy-menu a {
	color: #ffffff;
	text-decoration: none;
	font-family: var(--font-main, 'Gilroy', sans-serif);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.27;
	transition: color 0.2s ease;
	display: inline-block;
	white-space: nowrap;
}

.footer-legal__privacy a:hover,
.footer-privacy-menu a:hover {
	color: var(--color-primary, #FF9500);
}

.footer-legal__copyright {
	font-family: var(--font-main, 'Gilroy', sans-serif);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.27;
	color: #ffffff;
	white-space: nowrap;
}

/* ==========================================================================
   5. Mobile Responsive (Figma node 577:8237)
   ========================================================================== */

@media (max-width: 1024px) {
	.site-footer {
		padding: 80px 0 45px;
	}

	.footer-newsletter__title {
		font-size: 44px;
	}

	.footer-columns {
		gap: 40px;
	}

	.footer-contacts__email,
	.footer-contacts__phone {
		font-size: 24px;
	}

	.footer-logo .header-logo__part img,
	.footer-logo .header-logo__part svg {
		height: 55px;
	}
}

@media (max-width: 768px) {
	.site-footer {
		background: linear-gradient(240.37deg, #14181b 48.5%, #2b3338 73.5%);
		padding: 70px 0 40px;
	}

	/* Newsletter */
	.footer-newsletter {
		flex-direction: column;
		align-items: flex-start;
		gap: 30px;
		margin-bottom: 43px;
	}

	.footer-newsletter__title--desktop {
		display: none;
	}

	.footer-newsletter__title--mobile {
		display: block;
		font-size: 36px;
		line-height: 1.12;
	}

	.footer-newsletter__form-wrap {
		max-width: 100%;
	}

	.footer-cf7-container .wpcf7-form,
	.footer-cf7-container .wpcf7-form>p,
	.footer-cf7-container .footer-form {
		gap: 16px;
	}

	.footer-cf7-container input[type="email"],
	.footer-cf7-container input[type="text"],
	.footer-cf7-container .footer-form__input,
	.footer-cf7-container .wpcf7-text {
		font-size: 13px;
	}

	.footer-cf7-container input[type="submit"],
	.footer-cf7-container button[type="submit"],
	.footer-cf7-container .wpcf7-submit,
	.footer-cf7-container .footer-form__submit {
		font-size: 20px;
		height: 48px;
	}

	/* Hide desktop divider on mobile */
	.footer-divider {
		display: none;
	}

	/* Middle section on mobile */
	.footer-middle {
		flex-direction: column;
		gap: 0;
	}

	.footer-columns {
		flex-direction: column;
		width: 100%;
		gap: 0;
	}

	.footer-col {
		width: 100%;
	}

	.footer-col__header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 14px 0;
		margin: 0;
		cursor: pointer;
	}

	.footer-col__title {
		font-size: 15px;
	}

	.footer-col__toggle {
		display: flex;
	}

	.footer-col.is-open .footer-col__toggle {
		transform: rotate(180deg);
	}

	.footer-col__content {
		display: none;
		padding: 6px 0 16px;
	}

	.footer-col.is-open .footer-col__content {
		display: block;
	}

	.footer-col__list {
		gap: 10px;
	}

	.footer-col__list a {
		font-size: 13px;
	}

	.footer-col__line {
		display: block;
		height: 1px;
		background-color: rgba(255, 255, 255, 0.15);
		width: 100%;
	}

	/* Contacts horizontal row on mobile */
	.footer-contacts {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		width: 100%;
		margin-top: 26px;
		text-align: left;
	}

	.footer-contacts__phone {
		order: 1;
		font-size: 17px;
		letter-spacing: 0.5px;
	}

	.footer-contacts__email {
		order: 2;
		font-size: 17px;
	}

	/* Bottom Section on mobile */
	.footer-bottom {
		flex-direction: column;
		align-items: center;
		margin-top: 37px;
		gap: 27px;
	}

	/* Logos centered horizontally */
	.footer-logo {
		justify-content: center;
		width: 100%;
	}

	.footer-logo .header-logo {
		gap: 12px;
	}

	.footer-logo .header-logo__part img,
	.footer-logo .header-logo__part svg {
		height: 36px;
		max-height: 38px;
	}

	.footer-logo .header-logo__sep-icon img,
	.footer-logo .header-logo__sep-icon svg {
		width: 9px;
		height: 9px;
	}

	/* Legal info on mobile */
	.footer-legal {
		width: 100%;
		align-items: flex-start;
		text-align: left;
		font-size: 10px;
	}

	.footer-legal__row-desktop {
		display: none;
	}

	.footer-legal__row-mobile {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		width: 100%;
		gap: 6px;
	}

	.footer-legal__privacy {
		width: 100%;
	}

	.footer-legal__privacy a,
	.footer-privacy-menu a {
		font-size: 10px;
		line-height: 1.3;
	}

	.footer-legal__copyright {
		font-size: 10px;
		line-height: 1.3;
		color: #ffffff;
	}
}