/* Dai chan trang thong tin cong ty dung chung cho ca fleet.
   Di kem hd-standard-company-footer.php — moi selector deu bat dau bang .hd-footer
   de khong dinh vao style san co cua Flatsome / U-Design / Shoptimizer / Astra. */

.hd-footer {
	/* Mac dinh; tung site ghi de bang bien CSS o thuoc tinh style cua the boc,
	   do mu-plugin sinh tu scripts/footer-company-data.json. */
	--hd-bg: #16202b;
	--hd-accent: #f0b429;
	--hd-text: #c3cede;
	--hd-on-accent: #16202b;
	--hd-white: #fff;
	--hd-border: rgba(255, 255, 255, .14);

	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 0;
	background: var(--hd-bg);
	color: var(--hd-text);
	font-size: 15px;
	line-height: 1.65;
	text-align: left;
}

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

.hd-footer__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* U-Design boc chan trang trong mot container co dinh be — mo rong lai cho dai.
 *
 * `height: auto` KHONG duoc bo di. U-Design dat `.footer-top { height: 12px }` trong
 * `global/style.css` vi o ban goc do chi la mot dai trang tri rong. Dai footer cua fleet
 * chen vao chinh o do nen bi ep con 12px, con noi dung 530-560px tran ra ngoai; the boc
 * `#footer-bg` chi co `min-height: 43px` nen CHIEU CAO TAI LIEU dung lai truoc chan trang
 * va phan duoi khong cuon toi duoc.
 *
 * Do 10/09/2026: nhuahiendanh.com mat 518px cuoi (docH 4625, day footer 5143),
 * bangioangcaosu.com mat 484px (docH 3252, day footer 3736) — dong ban quyen va hai lien
 * ket Gioi thieu / Lien he nam tron trong phan mat. Ban vua roi cua luat nay chi go kep
 * BE RONG ma quen BE CAO.
 *
 * `:has(.hd-footer)` giu cho luat chi ap dung o noi dai footer that su nam, khong dung
 * toi dai trang tri goc cua theme, va khong anh huong 10 site chay Flatsome/Shoptimizer.
 */
#footer.container_24:has(.hd-footer),
#footer.footer-top:has(.hd-footer) {
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
	height: auto;
	min-height: 0;
}

/* WP Rocket "lazy render" gan `content-visibility: auto` vao the boc chan trang
 * (`[data-wpr-lazyrender]`) ma KHONG dat `contain-intrinsic-size`. The bi bo qua thi cao
 * 0px, nen chieu cao tai lieu tinh thieu di ca dai footer: nguoi dung cuon den day trang
 * thay TRANG TRONG, phai cuon them mot lan nua footer moi bat ra.
 *
 * Do tren hiendanh.com (Flatsome) 10/09/2026: cuon xuong day lan dau -> `#footer` cao 0px,
 * chieu cao tai lieu 2755px, khong thay footer dau; cuon tiep -> 523px va tai lieu nhay
 * len 3279px. Anh chup luc do khong co chan trang nao.
 *
 * Tat lazy render RIENG cho the chua dai footer. Dai footer nam cuoi trang va rat nhe nen
 * phan tiet kiem cua lazy render khong dang ke, doi lai chieu cao tai lieu dung ngay tu
 * dau. Khong dung `contain-intrinsic-size` vi chieu cao thay doi theo site va theo be
 * ngang man hinh — doan sai thi lai nhay thanh cuon.
 */
[data-wpr-lazyrender]:has(.hd-footer) {
	content-visibility: visible !important;
}

/* --- Hang 3 cot --- */

.hd-footer__grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 40px;
	padding: 56px 0 44px;
}

.hd-footer__col {
	min-width: 0;
}

.hd-footer__col--about {
	flex: 1 1 38%;
	max-width: 38%;
}

.hd-footer__col--policy {
	flex: 1 1 22%;
	max-width: 22%;
}

.hd-footer__col--contact {
	flex: 1 1 32%;
	max-width: 32%;
}

/* --- Cot gioi thieu --- */

.hd-footer__brand {
	display: inline-block;
	margin-bottom: 16px;
	text-decoration: none;
}

.hd-footer__logo {
	display: block;
	width: auto;
	max-width: 200px;
	height: auto;
	max-height: 56px;
}

.hd-footer__brand-text {
	color: var(--hd-white);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
}

.hd-footer__intro {
	margin: 0 0 20px;
	color: var(--hd-text);
	font-size: 15px;
}

.hd-footer__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 18px;
}

.hd-footer__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border: 1px solid var(--hd-border);
	border-radius: 50px;
	background: rgba(255, 255, 255, .06);
	color: var(--hd-white);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background .25s ease, border-color .25s ease, color .25s ease;
}

.hd-footer__btn svg {
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
	fill: var(--hd-accent);
	transition: fill .25s ease;
}

.hd-footer__btn:hover,
.hd-footer__btn:focus {
	border-color: var(--hd-accent);
	background: var(--hd-accent);
	color: var(--hd-on-accent);
}

.hd-footer__btn:hover svg,
.hd-footer__btn:focus svg {
	fill: var(--hd-on-accent);
}

.hd-footer__hours {
	margin: 0;
	color: var(--hd-text);
	font-size: 14px;
}

.hd-footer__hours-label {
	display: block;
	margin-bottom: 2px;
	color: var(--hd-white);
	font-weight: 600;
}

/* --- Tieu de cot --- */

.hd-footer__title {
	position: relative;
	margin-bottom: 20px;
	padding-bottom: 10px;
	color: var(--hd-white);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.25;
}

.hd-footer__title::before {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 22px;
	height: 3px;
	border-radius: 50px;
	background: var(--hd-accent);
}

/* --- Cot thu gon duoc (<details>) ---
   Tren man rong tieu de chi la chu: bo mui ten mac dinh cua <summary>, con tro thuong. */

.hd-footer details.hd-footer__section {
	margin: 0;
	padding: 0;
	border: 0;
}

.hd-footer .hd-footer__section > summary {
	display: block;
	list-style: none;
	cursor: default;
}

.hd-footer .hd-footer__section > summary::-webkit-details-marker {
	display: none;
}

.hd-footer .hd-footer__section > summary::marker {
	content: "";
}

/* --- Cot chinh sach --- */

.hd-footer__links {
	display: flex;
	flex-direction: column;
	gap: 11px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hd-footer__links li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hd-footer__links a {
	color: var(--hd-text);
	font-size: 15px;
	text-decoration: none;
	transition: color .25s ease;
}

.hd-footer__links a:hover,
.hd-footer__links a:focus {
	color: var(--hd-accent);
}

/* --- Cot lien he --- */

.hd-footer__contact {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hd-footer__contact li {
	display: flex;
	gap: 12px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.hd-footer__contact li:last-child {
	margin-bottom: 0;
}

.hd-footer__icon {
	display: flex;
	flex: 0 0 34px;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin-top: 3px;
	border-radius: 50px;
	background: var(--hd-accent);
}

.hd-footer__icon svg {
	width: 17px;
	height: 17px;
	fill: var(--hd-on-accent);
}

.hd-footer__contact-body {
	flex: 1;
	min-width: 0;
}

.hd-footer__label {
	display: block;
	margin-bottom: 3px;
	color: var(--hd-white);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
}

.hd-footer__contact-body p {
	margin: 0;
	color: var(--hd-text);
	font-size: 15px;
}

.hd-footer__contact-body a {
	color: var(--hd-text);
	text-decoration: none;
	transition: color .25s ease;
}

.hd-footer__contact-body a:hover,
.hd-footer__contact-body a:focus {
	color: var(--hd-accent);
}

.hd-footer__phones a {
	display: block;
}

/* --- Thanh ban quyen --- */

.hd-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	align-items: center;
	justify-content: space-between;
	padding: 18px 0;
	border-top: 1px solid var(--hd-border);
}

.hd-footer__copyright {
	margin: 0;
	color: var(--hd-text);
	font-size: 14px;
}

.hd-footer__bottom-nav {
	display: flex;
	gap: 18px;
}

.hd-footer__bottom-nav a {
	color: var(--hd-text);
	font-size: 14px;
	text-decoration: none;
	transition: color .25s ease;
}

.hd-footer__bottom-nav a:hover,
.hd-footer__bottom-nav a:focus {
	color: var(--hd-accent);
}

/* --- May tinh bang --- */

@media (max-width: 991px) {
	.hd-footer__grid {
		gap: 32px;
		padding: 40px 0 32px;
	}

	.hd-footer__col--about {
		flex: 1 1 100%;
		max-width: 100%;
	}

	.hd-footer__col--policy,
	.hd-footer__col--contact {
		flex: 1 1 calc(50% - 16px);
		max-width: calc(50% - 16px);
	}
}

/* --- Dien thoai --- */

@media (max-width: 640px) {
	.hd-footer__inner {
		padding: 0 16px;
	}

	.hd-footer__grid {
		display: block;
		padding: 32px 0 24px;
	}

	.hd-footer__col {
		max-width: 100%;
		margin-bottom: 30px;
	}

	.hd-footer__col:last-child {
		margin-bottom: 0;
	}

	.hd-footer__title {
		font-size: 18px;
	}

	/* Hai cot chinh sach / lien he thanh hang tieu de bam mo, ngan cach bang duong ke. */
	.hd-footer__col.hd-footer__section {
		margin-bottom: 0;
		border-top: 1px solid var(--hd-border);
	}

	.hd-footer .hd-footer__section > summary {
		position: relative;
		margin: 0;
		padding: 14px 36px 14px 0;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}

	/* Gach nhan mau duoi tieu de thua khi da co duong ke giua cac hang. */
	.hd-footer .hd-footer__section > summary::before {
		display: none;
	}

	/* Mui ten: xuong khi dong, len khi mo. */
	.hd-footer .hd-footer__section > summary::after {
		content: "";
		position: absolute;
		top: 50%;
		right: 6px;
		width: 9px;
		height: 9px;
		margin-top: -7px;
		border-right: 2px solid var(--hd-accent);
		border-bottom: 2px solid var(--hd-accent);
		transform: rotate(45deg);
		transition: transform .2s ease, margin-top .2s ease;
	}

	.hd-footer .hd-footer__section[open] > summary::after {
		margin-top: -2px;
		transform: rotate(-135deg);
	}

	.hd-footer .hd-footer__section[open] > summary + * {
		padding-bottom: 20px;
	}

	.hd-footer__bottom {
		justify-content: flex-start;
	}
}

/* --- Ghi de mau chu cua theme ---
   U-Design, Shoptimizer va Astra deu dat mau chu chan trang bang selector co ID
   (#footer a, #colophon a...) nen do uu tien cao hon moi class cua chung ta.
   Day la cho duy nhat trong tep dung !important, va chi cho mau chu. */

.hd-footer a {
	color: var(--hd-text) !important;
	text-decoration: none !important;
}

.hd-footer a:hover,
.hd-footer a:focus {
	color: var(--hd-accent) !important;
}

.hd-footer p,
.hd-footer li,
.hd-footer .hd-footer__intro,
.hd-footer .hd-footer__hours {
	color: var(--hd-text) !important;
}

.hd-footer .hd-footer__title,
.hd-footer .hd-footer__label,
.hd-footer .hd-footer__hours-label,
.hd-footer .hd-footer__brand-text {
	color: var(--hd-white) !important;
}

.hd-footer .hd-footer__btn {
	color: var(--hd-white) !important;
}

.hd-footer .hd-footer__btn:hover,
.hd-footer .hd-footer__btn:focus {
	color: var(--hd-on-accent) !important;
}
