/* ========================================================================== 
   Thanh Trung - compact company footer.
   Scoped to #footer and aligned to the site's 1250px content grid.
   ========================================================================== */

#footer {
	--tt-footer-bg: #fbfdff;
	--tt-footer-text: #071a3d;
	--tt-footer-body: #53627a;
	--tt-footer-muted: #69768a;
	--tt-footer-line: rgba(21, 61, 172, .14);
	--tt-footer-blue: #273b94;
	--tt-footer-blue-deep: #1d2d73;
	--tt-footer-focus: #d98a00;
}

.site-footer {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	color: var(--tt-footer-body);
	background: var(--tt-footer-bg);
	border-top: 1px solid var(--tt-footer-line);
	font-family: inherit;
}

.site-footer::before {
	content: none;
}

.site-footer *,
.site-footer *::before,
.site-footer *::after {
	box-sizing: border-box;
}

.site-footer__shell {
	position: relative;
	z-index: 1;
	width: min(100%, 1250px);
	margin: 0 auto;
	padding-right: 30px;
	padding-left: 30px;
}

/* Match the 1250px editorial grid used by the final homepage section. */

.home .site-footer__shell {
	width: min(100%, 1250px);
	padding-right: 30px;
	padding-left: 30px;
}

.site-footer__main {
	display: grid;
	grid-template-columns: minmax(280px, 1.2fr) minmax(150px, .7fr) minmax(0, 1.1fr);
	gap: 40px;
	align-items: start;
	padding: clamp(48px, 7vh, 72px) 0 40px;
}

.site-footer__zone {
	min-width: 0;
}

/* Brand ------------------------------------------------------------------- */

.site-footer__zone--brand {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	padding-right: 0;
}

.site-footer__logo {
	display: inline-flex;
	min-width: 0;
	align-items: center;
	text-decoration: none;
}

.site-footer__logo img {
	display: block;
	width: 208px;
	max-width: 100%;
	height: auto;
	content: url('/wp-content/uploads/2025/04/logo-thanhtrung.svg');
}

.site-footer__kicker,
.site-footer__gear {
	display: none !important;
}

.site-footer__intro {
	max-width: 31ch;
	margin: 16px 0 0;
	color: var(--tt-footer-body);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.65;
}

/* Column headings visible, like the catalog landing's editorial footer. */

.site-footer__title {
	margin: 0 0 16px;
	color: var(--tt-footer-text);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.site-footer__title::before {
	content: none;
}

/* Navigation -------------------------------------------------------------- */

.site-footer__zone--nav {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 0;
	border: 0;
}

.site-footer__nav {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 10px;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__nav li,
.site-footer__nav li:first-child,
.site-footer__nav li:nth-child(2) {
	margin: 0;
	padding: 0;
	border: 0;
}

.site-footer__link {
	display: inline-flex;
	align-items: center;
	min-height: 25px;
	padding: 0;
	color: var(--tt-footer-body);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: -.01em;
	text-decoration: none;
	transition: color 160ms ease;
}

.site-footer__link::after {
	content: none;
}

.site-footer__link:visited {
	color: var(--tt-footer-body);
}

.site-footer__link[aria-current="page"] {
	color: var(--tt-footer-blue);
	font-weight: 500;
}

/* Contact ----------------------------------------------------------------- */

.site-footer__zone--contact {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding-left: 0;
}

.site-footer__contact {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
	width: 100%;
	margin: 0;
	padding: 0;
	font-style: normal;
}

.site-footer__contact-item {
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	color: var(--tt-footer-body);
	background: transparent;
	text-decoration: none;
}

.site-footer__contact-item:visited {
	color: var(--tt-footer-body);
}

.site-footer__contact-item--address {
	grid-column: auto;
}

.site-footer__contact-icon {
	display: inline-flex;
	width: 36px;
	height: 36px;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(39, 59, 148, .12);
	border-radius: 50%;
	color: var(--tt-footer-blue);
	background: rgba(39, 59, 148, .06);
}

.site-footer__contact-icon svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.65;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.site-footer__contact-copy {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 3px;
}

.site-footer__contact-label {
	color: var(--tt-footer-muted);
	font-size: 10px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.site-footer__contact-value {
	color: var(--tt-footer-text);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

/* Bottom bar -------------------------------------------------------------- */

.site-footer__bottom {
	display: flex;
	min-height: 44px;
	align-items: center;
	justify-content: flex-start;
	padding: 12px 0 max(12px, env(safe-area-inset-bottom));
	border-top: 1px solid var(--tt-footer-line);
}

.site-footer__bottom-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.site-footer__copyright,
.site-footer__rights {
	margin: 0;
	color: var(--tt-footer-muted);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.45;
	letter-spacing: 0;
	white-space: nowrap;
}

.site-footer__copyright strong {
	color: inherit;
	font-weight: 400;
	letter-spacing: 0;
}

.site-footer__rights::before {
	margin: 0 8px 0 0;
	color: var(--tt-footer-muted);
	content: "·";
}

/* Desktop uses the same proportional columns; no fixed-width centering. */

@media (min-width: 1100px) {
	.site-footer__bottom {
		justify-content: flex-start;
	}
}

/* Interaction ------------------------------------------------------------- */

.site-footer a:focus-visible,
#footer #top-link:focus-visible {
	outline: 2px solid var(--tt-footer-focus);
	outline-offset: 3px;
}

#footer #top-link {
	width: 40px !important;
	height: 40px !important;
	right: 18px;
	bottom: 14px;
	border: 1px solid var(--tt-footer-blue) !important;
	color: #fff !important;
	background: var(--tt-footer-blue) !important;
	box-shadow: none;
	backdrop-filter: none;
	transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
	.site-footer__link:hover,
	.site-footer__contact-item:is(a):hover .site-footer__contact-value {
		color: var(--tt-footer-blue);
		text-decoration: underline;
		text-decoration-thickness: 1px;
		text-underline-offset: 3px;
	}

	#footer #top-link:hover {
		border-color: var(--tt-footer-blue-deep) !important;
		background: var(--tt-footer-blue-deep) !important;
	}
}

/* Tablet ------------------------------------------------------------------ */

@media (max-width: 1099px) {
	.site-footer__shell {
		padding-right: clamp(16px, 3vw, 24px);
		padding-left: clamp(16px, 3vw, 24px);
	}

	.site-footer__main {
		grid-template-columns: minmax(250px, .8fr) minmax(0, 1.2fr);
		gap: 22px 40px;
		padding: 28px 0 24px;
	}

	.site-footer__zone--brand {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: 208px minmax(0, 360px);
		gap: 24px;
		align-items: center;
		justify-content: start;
		padding: 0 0 22px;
		border-bottom: 1px solid var(--tt-footer-line);
	}

	.site-footer__intro {
		margin: 0;
	}

	.site-footer__zone--nav {
		padding: 0;
		border: 0;
	}

	.site-footer__zone--contact {
		padding-left: 0;
		border-left: 0;
	}
}

@media (min-width: 1100px) and (max-width: 1199px) {
	.site-footer__shell {
		padding-right: 24px;
		padding-left: 24px;
	}
}

/* Phone ------------------------------------------------------------------- */

@media (max-width: 639px) {
	.site-footer__shell {
		width: 100%;
		padding-right: 15px;
		padding-left: 15px;
	}

	.site-footer__main {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
		padding: 22px 0 18px;
	}

	.site-footer__zone--brand {
		display: block;
		grid-column: auto;
		padding: 0;
		border: 0;
	}

	.site-footer__logo img {
		width: 190px;
	}

	.site-footer__intro {
		max-width: 40ch;
		margin-top: 10px;
	}

	.site-footer__nav {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 6px 20px;
	}

	.site-footer__zone--nav,
	.site-footer__zone--contact {
		padding: 0;
		border: 0;
	}

	.site-footer__link {
		min-height: 26px;
	}

	.site-footer__contact {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
	}

	.site-footer__contact-item--address {
		grid-column: auto;
	}

	.site-footer__bottom {
		min-height: auto;
		align-items: flex-start;
		padding: 14px 56px max(14px, env(safe-area-inset-bottom)) 0;
	}

	.site-footer__bottom-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
		width: 100%;
	}

	.site-footer__copyright,
	.site-footer__rights {
		width: 100%;
		text-align: left;
	}

	.site-footer__rights::before {
		content: none;
	}

	#footer #top-link {
		width: 38px !important;
		height: 38px !important;
		right: 12px;
		bottom: 10px;
	}
}

@media (max-width: 767px) {
	.home .site-footer__shell {
		padding-right: 18px;
		padding-left: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.site-footer *,
	#footer #top-link {
		transition: none !important;
	}
}
