/**
 * css/21-footer.css — OWNERSHIP: B2 (footer UX Block · copyright · cụm tag · nút nổi · gotop).
 *
 * [nguồn]  docs/reference/duongphat/css-raw/style.css (#footer, .cotN_ft, .title_ft, .bv_ft, #copyright, .tags, #gotop) và
 *          inline-style-home-4.css (.wrap-face-zalo, .hotline-phone-ring-*, .hotline-bar, kenit-alo-*); số đo VISUAL §3/§6.
 * ĐÃ ĐẶT TRONG PANEL / NỘI DUNG (không lặp, luật C7): bề rộng cột 4/3/2/3 của Col, nền ảnh + dark của Section (UX Block),
 *   nền navy + chữ sáng của thanh copyright (footer_bottom_color/text), back_to_top bật + tròn + phải.
 * BREAKPOINT: 992 và 768 = ngoại lệ đã duyệt (ADR #15 + DUYỆT BỔ SUNG 10/10/2026): 992 xếp cột, 768 footer 1 cột /
 *   hiện thanh số / Zalo đổi chỗ.
 */

/* ════════════════ 1. FOOTER: 4 CỘT 30/20/18/25% ════════════════ */

/* [phục vụ] .dp-ft-row trong UX Block dp-footer  [nguồn] .content_ft{padding:30px 0; display:flex; space-between; flex-flow:wrap}
   .cot1_ft 30% .cot2_ft 20% .cot3_ft 18% .cot4_ft 25%  [lý do vượt panel] lưới 12 phần của Flatsome không có 30/20/18/25. */
.dp-footer-section .row.dp-ft-row {
	max-width: var(--dp-container); /* Flatsome inline `.row.row-collapse{max-width:1240px}` (0,2,0, nạp sau) => cần (0,3,0); gốc .margin-auto = 1270 */
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	padding: 30px var(--dp-gutter-x);
}

/* ::after (clearfix) của .row là phần tử flex rộng 0 => thêm một khe thừa với space-between */
.dp-footer-section .row.dp-ft-row::after {
	display: none;
}

@media (min-width: 993px) {
	.dp-footer-section .dp-ft-row > .dp-ft-1 {
		flex: 0 0 30%;
		max-width: 30%;
	}

	.dp-footer-section .dp-ft-row > .dp-ft-2 {
		flex: 0 0 20%;
		max-width: 20%;
	}

	.dp-footer-section .dp-ft-row > .dp-ft-3 {
		flex: 0 0 18%;
		max-width: 18%;
	}

	/* cột 4 = chỗ của "Bản đồ": gốc RỖNG (MISSING). Giữ làm chỗ đệm cao 257px (= tiêu đề 57 + .w_bando 200)
	   để chiều cao footer bằng gốc; có địa chỉ thật thì thả khối bản đồ vào cột này. */
	.dp-footer-section .dp-ft-row > .dp-ft-4 {
		flex: 0 0 25%;
		max-width: 25%;
		min-height: 257px;
	}
}

/* ≤992: 100 / 49 / 49 / 100 (gốc), cột 4 rỗng ẩn đi */
@media (max-width: 992px) {
	.dp-footer-section .row.dp-ft-row { /* cùng độ đặc hiệu (0,3,0) với khối gốc ở trên, nếu không padding 30px vẫn thắng (V1-004) */
		padding-top: 20px;
		padding-bottom: 20px;
	}

	.dp-footer-section .dp-ft-row > .dp-ft-1 {
		flex: 0 0 100%;
		max-width: 100%;
		margin-bottom: 10px;
	}

	.dp-footer-section .dp-ft-row > .dp-ft-2,
	.dp-footer-section .dp-ft-row > .dp-ft-3 {
		flex: 0 0 49%;
		max-width: 49%;
		margin-bottom: 10px;
	}

	.dp-footer-section .dp-ft-row > .dp-ft-4 {
		display: none;
	}
}

/* ≤768: cột 2 và 3 xuống 100% */
@media (max-width: 768px) {
	.dp-footer-section .dp-ft-row > .dp-ft-2,
	.dp-footer-section .dp-ft-row > .dp-ft-3 {
		flex: 0 0 100%;
		max-width: 100%;
	}
}

/* tiêu đề cột: .title_ft 17px/22 700 uppercase trắng, p padding-bottom 20, gạch footer-divider.svg 120x14 */
.dp-footer-section .dp-ft-title {
	position: relative;
	margin-bottom: 15px;
	font-size: var(--dp-fs-footer-title);
	line-height: var(--dp-lh-footer-title);
	font-weight: 700;
	text-transform: uppercase;
	color: var(--dp-white);
}

.dp-footer-section .dp-ft-title p {
	margin: 0;
	padding-bottom: 20px;
	color: var(--dp-white); /* lớp .dark của Flatsome ép p thành #f1f1f1; gốc #fff (V1-005) */
}

.dp-footer-section .dp-ft-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 120px;
	height: 14px;
	background: url("../assets/img/footer-divider.svg") left bottom no-repeat;
}

/* chữ liên hệ: 14px/22 600 trắng, căn đều hai bên (gốc text-align:justify) */
.dp-footer-section .dp-ft-info {
	font-size: var(--dp-fs-footer);
	line-height: var(--dp-lh-footer);
	font-weight: 600;
	text-align: justify;
	color: var(--dp-white);
}

.dp-footer-section .dp-ft-info p {
	margin: 0;
	color: var(--dp-white); /* như tiêu đề: .dark p => #f1f1f1, gốc #fff */
}

/* link cột 2-3: .bv_ft{display:table; margin-bottom:10px; #fff} 14px/22 600, hover gạch chân */
.dp-footer-section .dp-ft-links {
	gap: 0;
}

.dp-footer-section .dp-ft-links .ux-menu-link {
	display: block;
	margin: 0;
	padding: 0 0 10px; /* khe 10px bằng padding: Flatsome ép `.stack-col>*{margin:0!important}` */
}

.dp-footer-section .dp-ft-links .ux-menu-link__link {
	display: table;
	padding: 0;
	min-height: 0;
	font-size: var(--dp-fs-footer);
	line-height: var(--dp-lh-footer);
	font-weight: 600;
	text-transform: none;
	letter-spacing: normal;
	color: var(--dp-white);
}

.dp-footer-section .dp-ft-links .ux-menu-link__link:hover {
	color: var(--dp-white);
	text-decoration: underline;
}

.dp-footer-section .dp-ft-links .ux-menu-link__text {
	display: inline;
	padding: 0;
}

/* ════════════════ 2. THANH COPYRIGHT (absolute footer gốc của Flatsome) ════════════════ */

/* [nguồn] #copyright{font-size:14px; padding:15px 0; border-top:1px solid rgb(238 238 238/18%)}; ≤768 padding-bottom 70px
   (chừa chỗ cho thanh gọi); chữ căn trái ở mọi khổ (Flatsome căn giữa ≤849 bằng medium-text-center).
   Màu nền/chữ = panel. */
.footer-wrapper .absolute-footer.dark {
	color: var(--dp-white); /* Flatsome .dark => chữ alpha .5; gốc trắng đặc */
}

.footer-wrapper .absolute-footer {
	padding: 15px 0;
	font-size: var(--dp-fs-footer);
	line-height: var(--dp-lh-footer);
	border-top: 1px solid var(--dp-footer-sep);
}

.footer-wrapper .absolute-footer .container {
	text-align: left;
}

@media (max-width: 768px) {
	.footer-wrapper .absolute-footer {
		padding-bottom: 70px;
	}
}

/* ════════════════ 3. CỤM 56 TAG ════════════════ */

/* [phục vụ] UX Block dp-footer-tags  [nguồn] .tags .margin-auto{display:flex; flex-wrap:wrap; padding:20px 0} (ghi đè
   padding ngang => khung 1270 sát mép) + .tags-items{#fff; bg #0676da; padding 6 5 8; radius 3; margin 0 3 3 0} hover #cc2c32 */
.dp-tags-section .row.dp-tags-row {
	max-width: var(--dp-container);
	padding: 20px 0;
}

.dp-tags-section .dp-tags {
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 0;
}

.dp-tags-section .dp-tags .ux-menu-link {
	display: block;
	margin: 0;
	padding: 0 3px 3px 0; /* khe 3px bằng padding (margin bị `.stack-col>*{margin:0!important}` của Flatsome chặn) */
}

.dp-tags-section .dp-tags .ux-menu-link__link {
	display: block;
	min-height: 0;
	padding: 6px 5px 8px;
	border-radius: var(--dp-radius-tag);
	font-size: var(--dp-fs-body);
	line-height: var(--dp-lh-body);
	font-weight: 400;
	text-transform: none;
	letter-spacing: normal;
	color: var(--dp-white);
	background-color: var(--dp-blue-tag);
	transition: background-color .3s;
}

.dp-tags-section .dp-tags .ux-menu-link__link:hover {
	color: var(--dp-white);
	background-color: var(--dp-blue-tag-hover);
}

.dp-tags-section .dp-tags .ux-menu-link__text {
	display: inline;
	padding: 0;
}

/* ════════════════ 4. NÚT NỔI ════════════════ */

/* z-index 999/1000 (gốc 999/999999): thấp hơn lớp phủ ngăn kéo của Flatsome (magnificPopup 1042+) để ngăn kéo luôn đè lên. */
.dp-float {
	position: fixed;
}

/* Zalo 40x40, xung kenit-alo-circle (zoomIn + pulse 1s vô hạn).
   Vị trí gốc (khi còn Messenger): right 17,5 / mép dưới cách đáy 200px; ≤768: right 10 / 145px.
   Messenger KHÔNG dựng (MISSING) nhưng Zalo giữ đúng toạ độ của gốc. */
.dp-float--zalo {
	right: 17.5px;
	bottom: 200px;
	z-index: 999;
}

@media (max-width: 768px) {
	.dp-float--zalo {
		right: 10px;
		bottom: 145px;
	}
}

.dp-zalo {
	position: relative;
	display: block;
	width: 40px;
	height: 40px;
}

.dp-zalo__icon {
	position: relative;
	z-index: 1;
	display: block;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--dp-blue-messenger);
}

.dp-zalo__ring,
.dp-zalo__fill {
	position: absolute;
	box-sizing: border-box;
	border-radius: 100%;
	pointer-events: none;
}

.dp-zalo__ring {
	top: -5px;
	right: -5px;
	width: 50px;
	height: 50px;
	border: 2px solid var(--dp-blue-messenger);
	opacity: .5;
	animation: dp-zoom-in 1s infinite both;
}

.dp-zalo__fill {
	top: -10px;
	right: -10px;
	width: 60px;
	height: 60px;
	border: 2px solid transparent;
	background-color: rgba(17, 130, 252, .45);
	opacity: .75;
	animation: dp-pulse 1s infinite both;
}

@keyframes dp-zoom-in {
	0% {
		opacity: 0;
		transform: scale3d(.3, .3, .3);
	}
	50% {
		opacity: 1;
	}
}

@keyframes dp-pulse {
	0% {
		transform: scale3d(1, 1, 1);
	}
	50% {
		transform: scale3d(1.05, 1.05, 1.05);
	}
	100% {
		transform: scale3d(1, 1, 1);
	}
}

/* Gọi điện: .hotline-phone-ring-wrap 110x110 left:0 bottom:0; vòng 85 / lõi 55 / nút 33 (đỏ #e60808) */
.dp-float--call {
	left: 0;
	bottom: 0;
	z-index: 1000;
	width: 110px;
	height: 110px;
}

.dp-call {
	position: relative;
	z-index: 11;
	width: 110px;
	height: 110px;
}

.dp-call__ring,
.dp-call__fill,
.dp-call__btn {
	position: absolute;
	box-sizing: border-box;
	border-radius: 100%;
	transform-origin: 50% 50%;
}

.dp-call__ring {
	top: 10px;
	left: 10px;
	width: 85px;
	height: 85px;
	border: 2px solid var(--dp-red-cta);
	opacity: .5;
	pointer-events: none;
	animation: dp-phone-ring 1.2s infinite ease-in-out;
}

.dp-call__fill {
	top: 25px;
	left: 25px;
	width: 55px;
	height: 55px;
	border: 2px solid transparent;
	background-color: rgba(230, 8, 8, .7);
	pointer-events: none;
	animation: dp-phone-fill 2.3s infinite ease-in-out;
}

.dp-call__btn {
	top: 37px;
	left: 37px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 33px;
	height: 33px;
	border: 2px solid transparent;
	background-color: var(--dp-red-cta);
	animation: dp-phone-shake 1s infinite ease-in-out;
}

.dp-call__icon {
	display: block;
	width: 20px;
	height: 20px;
}

@keyframes dp-phone-ring {
	0% {
		transform: rotate(0) scale(.5) skew(1deg);
	}
	30% {
		transform: rotate(0) scale(.7) skew(1deg);
	}
	100% {
		transform: rotate(0) scale(1) skew(1deg);
	}
}

@keyframes dp-phone-fill {
	0% {
		transform: rotate(0) scale(.7) skew(1deg);
		opacity: .6;
	}
	50% {
		transform: rotate(0) scale(1) skew(1deg);
		opacity: .6;
	}
	100% {
		transform: rotate(0) scale(.7) skew(1deg);
		opacity: .6;
	}
}

@keyframes dp-phone-shake {
	0%, 50%, 100% {
		transform: rotate(0) scale(1) skew(1deg);
	}
	10%, 30% {
		transform: rotate(-25deg) scale(1) skew(1deg);
	}
	20%, 40% {
		transform: rotate(25deg) scale(1) skew(1deg);
	}
}

/* thanh số (.hotline-bar): gốc chỉ hiện ≤768 */
.dp-call__bar {
	display: none;
}

@media (max-width: 768px) {
	.dp-call__bar {
		position: absolute;
		left: 33px;
		bottom: 37px;
		z-index: 9;
		display: block;
		width: 180px;
		height: 40px;
		padding: 0 10px;
		border-radius: 50px;
		background: var(--dp-red-cta-bar);
		box-shadow: 0 14px 28px rgba(0, 0, 0, .25), 0 10px 10px rgba(0, 0, 0, .1);
		font-family: Arial, sans-serif;
		font-size: 15px;
		line-height: 40px;
		font-weight: 700;
		letter-spacing: 1px;
		text-indent: 50px;
		color: var(--dp-white);
		text-decoration: none;
	}

	.dp-call__bar:hover {
		color: var(--dp-white);
	}
}

@media (prefers-reduced-motion: reduce) {
	.dp-zalo__ring,
	.dp-zalo__fill,
	.dp-call__ring,
	.dp-call__fill,
	.dp-call__btn {
		animation: none;
	}
}

/* ════════════════ 5. GOTOP (#top-link gốc của Flatsome) ════════════════ */

/* [nguồn] #gotop{position:fixed; z-index:10; bottom:65px; 45x45; border-radius:50%; bg navy; shadow 0 0 9px .34;
   right:-60px; transition .6s} + cuộn >100px => right:15px; icon fa-angle-double-up trắng.
   [lý do vượt panel] panel chỉ bật/tắt + tròn + trái/phải. Flatsome ẩn bằng opacity/transform và hiện sau 100% viewport;
   ta trượt ngang như gốc, ngưỡng 100px do js/header.js (class dp-scrolled trên <body>). Luôn hiện cả mobile (gốc: có ở mọi khổ). */
#top-link.back-to-top {
	right: -55px; /* gốc: JS đặt right:-55px lúc nghỉ (x = khổ + 10), nằm ngoài khung (V1-009) */
	bottom: 65px;
	z-index: 10;
	width: 45px;
	height: 45px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: var(--dp-radius-circle);
	background-color: var(--dp-navy);
	box-shadow: var(--dp-shadow-gotop);
	opacity: 1;
	pointer-events: auto;
	transform: none;
	transition: right .6s;
}

body.dp-scrolled #top-link.back-to-top {
	right: 15px;
}

/* mũi tên kép (fa-angle-double-up): glyph của Flatsome chỉ có mũi tên đơn => vẽ hai chữ V bằng viền */
#top-link.back-to-top > i {
	display: none;
}

#top-link.back-to-top::before,
#top-link.back-to-top::after {
	content: "";
	position: absolute;
	left: 50%;
	box-sizing: border-box;
	width: 9px;
	height: 9px;
	border-top: 1.5px solid var(--dp-white); /* nét mảnh, cỡ ~gần glyph fa-angle-double-up 21px (V1-016) */
	border-left: 1.5px solid var(--dp-white);
	transform: translateX(-50%) rotate(45deg);
}

#top-link.back-to-top::before {
	top: 18px;
}

#top-link.back-to-top::after {
	top: 24px;
}
