/* Site footer (templates/flex/html/softway_footer.php) */
.sw-footer {
	--sw-accent: #f14833;
	--sw-bg: #1b1d21;
	--sw-bg-2: #23262b;
	--sw-line: rgba(255, 255, 255, .08);
	--sw-text: #b9bec7;
	--sw-head: #fff;
	background: var(--sw-bg);
	color: var(--sw-text);
	font-size: 15px;
	line-height: 1.6;
	padding-top: 56px;
}
.sw-footer a { color: var(--sw-text); transition: color .15s; }
.sw-footer a:hover, .sw-footer a:focus { color: #fff; text-decoration: none; }

.sw-footer-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 28px 32px;
	margin-bottom: 48px;
	border-radius: 14px;
	background: linear-gradient(120deg, var(--sw-accent), #ff7a45);
	color: #fff;
}
.sw-footer-cta h2 { margin: 0 0 4px; font-size: 24px; font-weight: 700; color: #fff; line-height: 1.3; }
.sw-footer-cta p { margin: 0; color: rgba(255, 255, 255, .9); }
.sw-footer-cta-actions { display: flex; gap: 12px; flex-shrink: 0; }
.sw-footer .sw-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 22px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 16px;
	white-space: nowrap;
}
.sw-footer .sw-btn-primary { background: #fff; color: var(--sw-accent); }
.sw-footer .sw-btn-primary:hover { background: #fff3ef; color: var(--sw-accent); }
.sw-footer .sw-btn-ghost { border: 2px solid rgba(255, 255, 255, .8); color: #fff; }
.sw-footer .sw-btn-ghost:hover { background: rgba(255, 255, 255, .15); }

.sw-footer-grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr 1.4fr;
	gap: 40px;
	padding-bottom: 48px;
}
.sw-footer-logo img { width: 190px; height: auto; margin-bottom: 16px; }
.sw-footer-brand p { margin: 0 0 12px; }
.sw-footer-feedback a { color: #fff; }
.sw-footer-social { display: flex; gap: 10px; margin-top: 18px; }
.sw-footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--sw-bg-2);
	border: 1px solid var(--sw-line);
	font-size: 16px;
}
.sw-footer-social a.sw-zalo { font-size: 11px; font-weight: 700; }
.sw-footer-social a:hover { background: var(--sw-accent); border-color: var(--sw-accent); }

.sw-footer .sw-footer-title {
	margin: 4px 0 18px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--sw-head);
}
.sw-footer .sw-footer-title::after {
	content: "";
	display: block;
	width: 28px;
	height: 2px;
	margin-top: 10px;
	background: var(--sw-accent);
}
.sw-footer-col ul { list-style: none; margin: 0; padding: 0; }
.sw-footer-col ul li { margin: 0 0 9px; padding: 0; border: 0; background: none; }
.sw-footer-col ul li a { display: inline-block; padding: 0; }
.sw-footer-col ul li a:hover { transform: translateX(3px); }
.sw-footer-links ul ul { display: none; }

.sw-footer-contact ul li { display: flex; gap: 10px; }
.sw-footer-contact ul li a:hover { transform: none; }
.sw-footer-contact .fa { width: 16px; margin-top: 4px; color: var(--sw-accent); text-align: center; flex-shrink: 0; }
.sw-footer-map { position: relative; margin-top: 14px; border-radius: 10px; overflow: hidden; border: 1px solid var(--sw-line); }
.sw-footer-map iframe { display: block; width: 100%; height: 150px; border: 0; filter: grayscale(.6) brightness(.9); transition: filter .2s; }
.sw-footer-map:hover iframe { filter: none; }
.sw-footer .sw-footer-map-link {
	position: absolute;
	right: 8px;
	bottom: 8px;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--sw-accent);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
}
.sw-footer .sw-footer-map-link:hover { color: #fff; background: #d93a26; }

.sw-footer-bar { border-top: 1px solid var(--sw-line); padding: 18px 0; font-size: 14px; }
.sw-footer-bar .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.sw-footer-bar-links { display: flex; gap: 20px; }
.sw-footer-bar .sw-footer-provider { margin-left: 6px; padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .2); }
/* the floating Zalo/hotline buttons sit bottom-left, so keep the bar text right of them */
@media (min-width: 769px) and (max-width: 1599px) {
	.sw-footer-bar .container { justify-content: flex-end; }
}

@media (max-width: 991px) {
	.sw-footer-grid { grid-template-columns: 1fr 1fr; }
	.sw-footer-cta { flex-direction: column; align-items: flex-start; }
}

/* Phones and small tablets: the contact dock (left) and chat bot (right) are fixed over the page */
@media (max-width: 768px) {
	.sw-footer { padding-top: 32px; }
	.sw-footer-grid { grid-template-columns: 1fr; gap: 0; padding-bottom: 8px; }
	.sw-footer-cta { padding: 22px 20px; margin-bottom: 32px; }
	.sw-footer-cta h2 { font-size: 20px; }
	.sw-footer-cta-actions { flex-wrap: wrap; }

	/* brand block: a bit tighter than desktop */
	.sw-footer-brand { padding-bottom: 24px; }
	.sw-footer-logo img { width: 160px; margin-bottom: 12px; }
	.sw-footer-social { margin-top: 14px; }

	/* each column is a card-like section split by a hairline, not a long loose list */
	.sw-footer-col { padding: 22px 0; border-top: 1px solid var(--sw-line); }
	.sw-footer .sw-footer-title { margin: 0 0 14px; font-size: 14px; }
	.sw-footer .sw-footer-title::after { margin-top: 8px; }

	/* categories in two columns */
	.sw-footer-col:not(.sw-footer-contact) > ul {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px 16px;
	}
	.sw-footer-col:not(.sw-footer-contact) > ul > li { margin: 0; line-height: 1.4; }
	.sw-footer-col ul li a:hover { transform: none; }
	.sw-footer-contact ul li { margin-bottom: 10px; }
	.sw-footer-contact ul li:last-child { margin-bottom: 0; }

	/* copyright bar: centred, one item per line, and room below for the floating buttons */
	.sw-footer-bar { padding: 20px 0 250px; font-size: 13px; text-align: center; }
	.sw-footer-bar .container { flex-direction: column; align-items: center; gap: 12px; }
	.sw-footer-bar .sw-footer-provider { display: block; margin: 4px 0 0; padding: 0; border: 0; color: rgba(255, 255, 255, .55); }
	.sw-footer-bar-links { flex-wrap: wrap; justify-content: center; gap: 6px 0; }
	.sw-footer-bar-links a { padding: 0 12px; line-height: 1.2; }
	.sw-footer-bar-links a + a { border-left: 1px solid rgba(255, 255, 255, .2); }
}
