/**
 * Location: /assets/css/frontend/footer/footer.css
 * Purpose: Frontend footer layout matching the approved SunTech Portal support, column and copyright design.
 *
 * @package SunTechPortal
 */

.suntech-portal-footer,
.suntech-portal-footer * {
	box-sizing: border-box;
}

.suntech-portal-footer {
	--stp-footer-support-bg: #ff7900;
	--stp-footer-support-heading: #ffffff;
	--stp-footer-support-text: #ffffff;
	--stp-footer-support-button-bg: #ffffff;
	--stp-footer-support-button-text: #111827;
	--stp-footer-main-bg: #f3f4f6;
	--stp-footer-border: #e5e7eb;
	--stp-footer-text: #111827;
	--stp-footer-muted: #4b5563;
	--stp-footer-link: #0f172a;
	--stp-footer-link-hover: #ff7900;
	--stp-footer-copyright-bg: #eeeeee;
	--stp-footer-copyright-text: #111827;

	width: 100%;
	margin: 0;
	color: var(--stp-footer-text);
	background: var(--stp-footer-main-bg);
	font-family: inherit;
}

.stp-footer-container {
	width: 100%;
	max-width: none;
	margin: 0 auto;
	padding-right: 18px;
	padding-left: 18px;
}

.stp-footer-support {
	background: var(--stp-footer-support-bg);
	color: var(--stp-footer-support-text);
}

.stp-footer-support__inner {
	display: grid;
	grid-template-columns: minmax(380px, 0.52fr) minmax(560px, 1fr);
	gap: 34px;
	align-items: start;
	min-height: 132px;
	padding-top: 18px;
	padding-bottom: 18px;
}

.stp-footer-support h2 {
	margin: 0 0 6px;
	color: var(--stp-footer-support-heading);
	font-size: 24px;
	font-weight: 900;
	line-height: 1.1;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.stp-footer-support p {
	margin: 0;
	color: var(--stp-footer-support-text);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.45;
}

.stp-footer-support__actions {
	display: flex;
	flex-wrap: nowrap;
	gap: 14px;
	align-items: center;
	margin-top: 15px;
}

.stp-footer-support__button,
.stp-footer-newsletter__form button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 172px;
	min-height: 40px;
	padding: 8px 18px;
	color: var(--stp-footer-support-button-text);
	background: var(--stp-footer-support-button-bg);
	border: 0;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 900;
	line-height: 1.15;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	letter-spacing: 0.02em;
}

.stp-footer-support__button {
	flex: 0 0 auto;
	flex-direction: row;
	gap: 7px;
	pointer-events: none;
	cursor: default;
}

.stp-footer-support__button strong,
.stp-footer-support__button small {
	display: inline-block;
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
}

.stp-footer-newsletter__form button {
	transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.stp-footer-newsletter__form button:hover,
.stp-footer-newsletter__form button:focus {
	color: #ffffff;
	text-decoration: none;
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
	transform: translateY(-1px);
	outline: none;
}

.stp-footer-newsletter {
	text-align: right;
}

.stp-footer-newsletter h2 {
	margin-top: 0;
	font-size: 15px;
	line-height: 1.2;
	letter-spacing: 0.05em;
	white-space: normal;
}

.stp-footer-newsletter__form {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	width: min(100%, 520px);
	margin: 12px 0 8px auto;
	padding: 7px;
	background: #ffffff;
	border-radius: 999px;
}

.stp-footer-newsletter__form input {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 38px;
	padding: 8px 20px;
	color: #111827;
	background: transparent;
	border: 0;
	box-shadow: none;
	font-size: 14px;
	outline: none;
}

.stp-footer-newsletter__form button {
	min-width: 124px;
	min-height: 36px;
	padding-right: 22px;
	padding-left: 22px;
	color: #ffffff;
	background: #111827;
	border-radius: 999px;
	font-size: 12px;
	text-transform: uppercase;
}

.stp-footer-newsletter > p {
	font-size: 11px;
	line-height: 1.35;
}

.stp-footer-main {
	background: var(--stp-footer-main-bg);
	border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.stp-footer-main__inner {
	display: grid;
	grid-template-columns: minmax(436px, 2.15fr) repeat(4, minmax(150px, 1fr));
	gap: 30px;
	align-items: start;
	padding-top: 30px;
	padding-bottom: 28px;
}

.stp-footer-brand__identity,
.stp-footer-brand__text-logo {
	display: flex;
	align-items: center;
	gap: 9px;
	width: 100%;
	min-height: 44px;
	margin-bottom: 14px;
	color: var(--stp-footer-link);
	font-size: 22px;
	font-weight: 900;
	line-height: 1;
	text-decoration: none;
	pointer-events: none;
	cursor: default;
}

.stp-footer-brand__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	flex: 0 0 42px;
}

.stp-footer-brand__mark img {
	display: block;
	width: auto;
	max-width: 42px;
	max-height: 42px;
	object-fit: contain;
}

.stp-footer-brand__name {
	display: inline-grid;
	gap: 0;
	max-width: 210px;
	overflow: hidden;
	color: var(--stp-footer-link);
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
}

.stp-footer-brand__kicker {
	display: block;
	font-size: 9px;
	font-weight: 900;
	line-height: 1;
	letter-spacing: 0.16em;
	text-align: right;
}

.stp-footer-brand__title {
	display: block;
	font-size: 23px;
	font-weight: 900;
	line-height: 0.95;
	letter-spacing: -0.02em;
}

.stp-footer-contact {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	width: 100%;
	margin: 0 0 18px;
}

.stp-footer-contact__icon,
.stp-footer-social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: #ffffff;
	border: 1px solid var(--stp-footer-border);
	border-radius: 9px;
	box-shadow: none;
}

.stp-footer-contact__icon img,
.stp-footer-social__link img {
	display: block;
	width: 16px;
	height: 16px;
	object-fit: contain;
}

.stp-footer-contact__content {
	display: grid;
	gap: 4px;
}

.stp-footer-contact strong {
	margin: 0;
	color: var(--stp-footer-link);
	font-size: 12px;
	font-weight: 900;
	line-height: 1.25;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.stp-footer-address h3,
.stp-footer-column h3,
.stp-footer-column__toggle {
	margin: 0;
	color: var(--stp-footer-link);
	font-size: 17px;
	font-weight: 900;
	line-height: 1.3;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.stp-footer-contact__number {
	color: var(--stp-footer-link);
	font-size: 13px;
	font-weight: 900;
	line-height: 1.25;
	text-decoration: none;
}


.stp-footer-address {
	margin: 0 0 18px;
}

.stp-footer-address h3 {
	margin-bottom: 8px;
	font-size: 14px;
}

.stp-footer-address p {
	max-width: 340px;
	margin: 0;
	color: #000000;
	font-size: 15px;
	line-height: 1.55;
}

.stp-footer-social {
	display: flex;
	flex-wrap: wrap;
	gap: 11px;
	align-items: center;
}

.stp-footer-social__link {
	color: var(--stp-footer-link);
	text-decoration: none;
	transition: color 0.16s ease, border-color 0.16s ease;
}

.stp-footer-social__link:hover,
.stp-footer-social__link:focus {
	border-color: var(--stp-footer-link);
	box-shadow: none;
	transform: none;
	outline: none;
}

.stp-footer-column h3 {
	margin: 0 0 7px;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: 0.04em;
}

.stp-footer-column__toggle {
	display: none;
}

.stp-footer-menu {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.stp-footer-menu li {
	margin: 0;
	padding: 0;
}

.stp-footer-menu a {
	display: inline-flex;
	padding: 1px 0;
	color: var(--stp-footer-link);
	font-size: 11px;
	font-weight: 500;
	line-height: 1.15;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	text-underline-offset: 3px;
	transition: color 0.16s ease, text-decoration-color 0.16s ease;
}

.stp-footer-menu a:hover,
.stp-footer-menu a:focus {
	color: #000000;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	outline: none;
}

.stp-footer-copyright {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 12px 18px;
	color: var(--stp-footer-copyright-text);
	background: var(--stp-footer-copyright-bg);
	border-top: 1px solid var(--stp-footer-border);
	text-align: center;
}

.stp-footer-copyright p {
	margin: 0;
	font-size: 14px;
	font-weight: 900;
	line-height: 1.5;
}

.stp-footer-copyright a {
	color: inherit;
	text-decoration: none;
}

.stp-footer-copyright a:hover,
.stp-footer-copyright a:focus {
	text-decoration: underline;
	text-underline-offset: 3px;
	outline: none;
}

@media screen and (max-width: 1024px) {
	.stp-footer-container {
		padding-right: 16px;
		padding-left: 16px;
	}

	.stp-footer-support__inner {
		grid-template-columns: 1fr;
		gap: 18px;
		min-height: 0;
		padding-top: 18px;
		padding-bottom: 18px;
	}

	.stp-footer-newsletter {
		text-align: left;
	}

	.stp-footer-newsletter__form {
		margin-left: 0;
	}

	.stp-footer-main__inner {
		grid-template-columns: 1fr;
		gap: 10px;
		padding-top: 18px;
		padding-bottom: 18px;
	}

	.stp-footer-brand {
		padding-bottom: 6px;
	}

	.stp-footer-column {
		background: #ffffff;
		border: 1px solid var(--stp-footer-border);
		border-radius: 10px;
	}

	.stp-footer-column h3 {
		display: none;
	}

	.stp-footer-column__toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		min-height: 40px;
		padding: 10px 12px;
		background: transparent;
		border: 0;
		cursor: pointer;
		font-size: 12px;
		text-align: left;
	}

	.stp-footer-column__content {
		display: none;
		padding: 0 12px 12px;
	}

	.stp-footer-column.is-open .stp-footer-column__content {
		display: block;
	}

	.stp-footer-menu {
		gap: 0;
	}
}

@media screen and (max-width: 640px) {
	.stp-footer-container {
		padding-right: 14px;
		padding-left: 14px;
	}

	.stp-footer-support__inner {
		padding-top: 14px;
		padding-bottom: 14px;
	}

	.stp-footer-support h2 {
		font-size: 20px;
	}

	.stp-footer-support__actions,
	.stp-footer-newsletter__form {
		width: 100%;
	}

	.stp-footer-support__actions {
		flex-wrap: nowrap;
		gap: 8px;
	}

	.stp-footer-support__button {
		flex: 1 1 0;
		min-width: 0;
		padding-right: 10px;
		padding-left: 10px;
		font-size: 11px;
	}

	.stp-footer-newsletter__form {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
		padding: 8px;
		border-radius: 14px;
	}

	.stp-footer-newsletter__form input,
	.stp-footer-newsletter__form button {
		width: 100%;
	}

	.stp-footer-brand__identity,
	.stp-footer-brand__text-logo {
		margin-bottom: 14px;
	}

	.stp-footer-brand__name {
		max-width: 180px;
	}

	.stp-footer-brand__title {
		font-size: 20px;
	}

	.stp-footer-address p {
		max-width: none;
	}

	.stp-footer-copyright {
		min-height: 46px;
		padding: 10px 14px;
	}

	.stp-footer-copyright p {
		font-size: 12px;
	}
}
