/*
Theme Name: Bình Giữ Nhiệt Ads Child
Description: Child theme cho website xưởng sản xuất và in ấn quà tặng VivaGift.
Author: VivaGift
Template: binh-giu-nhiet-ads
Version: 2.5.2
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: bgn-ads-child
*/

/* Global quick-action dock: keep it available site-wide and reveal by scroll direction. */
body.bgn-landing-page.has-bgn-mobile-actions,
body.has-bgn-mobile-actions {
	padding-bottom: 0;
}

.bgn-mobile-actions {
	--bgn-mobile-actions-hide-distance: calc(100% + 40px);
}

.bgn-mobile-actions.is-visible.is-scroll-hidden {
	opacity: 0;
	pointer-events: none;
	transform: translate3d(-50%, var(--bgn-mobile-actions-hide-distance), 0);
}

@media (max-width: 1024px) {
	body.bgn-landing-page.has-bgn-mobile-actions,
	body.has-bgn-mobile-actions {
		padding-bottom: 0;
	}

	.bgn-mobile-actions {
		--bgn-mobile-actions-hide-distance: calc(100% + 32px);
	}
}

@media (max-width: 767px) {
	body.bgn-landing-page.has-bgn-mobile-actions,
	body.has-bgn-mobile-actions {
		padding-bottom: 0;
	}
}

/* Homepage capability: use the available desktop canvas instead of the old 900px cap. */
@media (min-width: 1025px) {
	body.home #nang-luc.bgn-capability > .bgn-container {
		width: min(calc(100% - 48px), 1440px);
	}

	body.home #nang-luc.bgn-capability .bgn-capability__layout {
		width: 100%;
		grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
		gap: clamp(40px, 4vw, 72px);
	}
}

/* Enterprise footer system. */
.bgn-footer-main {
	padding-block: clamp(58px, 6vw, 82px) 0;
	background:
		linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px),
		radial-gradient(circle at 12% 0%, rgba(254, 201, 49, .09), transparent 31%),
		#061c2e;
	background-size: 72px 72px, 72px 72px, auto, auto;
}

.bgn-footer-main::after {
	position: absolute;
	top: 0;
	left: 50%;
	width: min(1240px, calc(100% - 48px));
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(254, 201, 49, .68) 18%, rgba(255, 255, 255, .16) 50%, rgba(254, 201, 49, .68) 82%, transparent);
	content: "";
	transform: translateX(-50%);
}

.bgn-footer-workshop {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
	margin-bottom: clamp(24px, 3vw, 38px);
	border: 1px solid rgba(255, 255, 255, .105);
	background: rgba(2, 20, 34, .42);
}

.bgn-footer-workshop__media {
	position: relative;
	min-height: 310px;
	margin: 0;
	overflow: hidden;
	background: #0b2133;
}

.bgn-footer-workshop__media::after {
	position: absolute;
	inset: 52% 0 0;
	background: linear-gradient(180deg, transparent, rgba(2, 18, 31, .76));
	content: "";
	pointer-events: none;
}

.bgn-footer-workshop__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .45s var(--bgn-ease);
}

.bgn-footer-workshop:hover .bgn-footer-workshop__media img {
	transform: scale(1.018);
}

.bgn-footer-workshop__media figcaption {
	position: absolute;
	z-index: 1;
	right: 22px;
	bottom: 18px;
	left: 22px;
	display: flex;
	align-items: center;
	gap: 9px;
	color: #fff;
	font-size: .67rem;
	font-weight: 800;
	letter-spacing: .075em;
	text-transform: uppercase;
}

.bgn-footer-workshop__media figcaption span {
	width: 8px;
	height: 8px;
	flex: 0 0 auto;
	background: var(--bgn-yellow);
	border-radius: 50%;
}

.bgn-footer-workshop__copy {
	display: flex;
	padding: clamp(34px, 4vw, 54px);
	justify-content: center;
	flex-direction: column;
	border-left: 3px solid var(--bgn-yellow);
	background: linear-gradient(140deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012));
}

.bgn-footer-workshop__copy > p:first-child {
	margin: 0 0 13px;
	color: var(--bgn-yellow);
	font-size: .65rem;
	font-weight: 850;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.bgn-footer-workshop__copy h2 {
	max-width: 520px;
	margin: 0;
	color: #fff;
	font-size: clamp(1.65rem, 2.7vw, 2.65rem);
	line-height: 1.08;
	letter-spacing: -.035em;
}

.bgn-footer-workshop__copy > p:not(:first-child) {
	max-width: 560px;
	margin: 18px 0 0;
	color: rgba(255, 255, 255, .65);
	font-size: .88rem;
	line-height: 1.7;
}

.bgn-footer-workshop__copy > a {
	display: inline-flex;
	width: fit-content;
	min-height: 42px;
	align-items: center;
	gap: 13px;
	margin-top: 23px;
	color: #fff;
	border-bottom: 1px solid rgba(254, 201, 49, .65);
	font-size: .78rem;
	font-weight: 850;
	transition: color .2s ease, border-color .2s ease;
}

.bgn-footer-workshop__copy > a span {
	color: var(--bgn-yellow);
	font-size: 1rem;
	transition: transform .2s var(--bgn-ease);
}

.bgn-footer-workshop__copy > a:hover,
.bgn-footer-workshop__copy > a:focus-visible {
	color: var(--bgn-yellow);
	border-color: var(--bgn-yellow);
}

.bgn-footer-workshop__copy > a:hover span,
.bgn-footer-workshop__copy > a:focus-visible span {
	transform: translateX(4px);
}

.bgn-footer-main__grid {
	grid-template-columns: minmax(340px, 1.42fr) repeat(3, minmax(170px, .72fr));
	gap: 0;
	border: 1px solid rgba(255, 255, 255, .105);
	border-bottom: 0;
	background: rgba(2, 20, 34, .3);
	box-shadow: 0 28px 80px rgba(0, 0, 0, .14);
}

.bgn-footer-brand {
	position: relative;
	max-width: none;
	padding: clamp(42px, 4vw, 58px);
	border-left: 3px solid var(--bgn-yellow);
	border-right: 1px solid rgba(255, 255, 255, .105);
	background: linear-gradient(145deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
}

.bgn-footer-brand::before {
	display: block;
	margin-bottom: 27px;
	color: var(--bgn-yellow);
	content: "VIVAGIFT  /  XƯỞNG SẢN XUẤT & IN ẤN QUÀ TẶNG";
	font-size: .64rem;
	font-weight: 850;
	letter-spacing: .14em;
	line-height: 1.5;
	text-transform: uppercase;
}

.bgn-footer-brand__logo-link {
	width: min(100%, 260px);
	min-height: 58px;
	margin-bottom: 28px;
}

.bgn-footer-brand__logo {
	height: 52px;
}

.bgn-footer-brand__summary {
	max-width: 430px;
	margin-bottom: 25px;
	color: rgba(255, 255, 255, .68);
	font-size: .98rem;
	line-height: 1.78;
}

.bgn-footer-brand__company {
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, .1);
}

.bgn-footer-contact {
	max-width: 430px;
	gap: 8px;
}

.bgn-footer-contact__item {
	min-height: 54px;
	grid-template-columns: 36px minmax(0, 1fr);
	align-items: center;
	gap: 13px;
	padding: 8px 12px 8px 0;
	border-top: 1px solid rgba(255, 255, 255, .1);
}

.bgn-footer-contact__item > span:first-child {
	display: grid;
	width: 34px;
	height: 34px;
	padding: 0;
	place-items: center;
	background: var(--bgn-yellow);
	color: var(--bgn-navy);
	font-size: .58rem;
}

a.bgn-footer-contact__item > span:last-child {
	color: #fff;
	font-size: 1rem;
	font-weight: 760;
	letter-spacing: .01em;
}

.bgn-footer-nav {
	position: relative;
	min-width: 0;
	padding: clamp(46px, 4vw, 58px) clamp(24px, 2.4vw, 36px);
	border-right: 1px solid rgba(255, 255, 255, .105);
	transition: background-color .25s ease;
}

.bgn-footer-nav:last-child {
	border-right: 0;
}

.bgn-footer-nav::before {
	position: absolute;
	top: -1px;
	left: 0;
	width: 0;
	height: 3px;
	background: var(--bgn-yellow);
	content: "";
	transition: width .35s var(--bgn-ease);
}

.bgn-footer-nav:hover {
	background: rgba(255, 255, 255, .026);
}

.bgn-footer-nav:hover::before {
	width: 100%;
}

.bgn-footer-nav__index {
	margin-bottom: 16px;
	font-size: .66rem;
}

.bgn-footer-nav__title {
	display: block;
	margin-bottom: 28px;
	font-size: 1.12rem;
	font-weight: 780;
}

.bgn-footer-nav__list {
	gap: 7px;
}

.bgn-footer-nav__list a {
	width: 100%;
	min-height: 42px;
	justify-content: space-between;
	border-bottom: 1px solid rgba(255, 255, 255, .065);
	color: rgba(255, 255, 255, .65);
	font-size: .84rem;
}

.bgn-footer-nav__list li:last-child a {
	border-bottom: 0;
}

.bgn-footer-nav__list a::after {
	content: "\2192";
}

.bgn-footer-main__wordmark {
	right: 5%;
	bottom: -12px;
	left: auto;
	color: rgba(255, 255, 255, .025);
	font-size: clamp(5rem, 10vw, 10rem);
	transform: none;
}

.bgn-footer-bottom {
	border-top-color: rgba(255, 255, 255, .11);
	background: #031522;
}

.bgn-footer-bottom__inner {
	min-height: 86px;
	font-size: .78rem;
}

.bgn-footer-bottom__copyright,
.bgn-footer-bottom__signature {
	letter-spacing: .035em;
}

@media (max-width: 1050px) {
	.bgn-footer-workshop {
		grid-template-columns: minmax(0, 1fr) minmax(320px, .92fr);
	}

	.bgn-footer-main__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.bgn-footer-brand {
		grid-column: 1 / -1;
		border-right: 0;
		border-bottom: 1px solid rgba(255, 255, 255, .105);
	}

	.bgn-footer-brand::before {
		grid-column: 1 / -1;
	}

	.bgn-footer-nav {
		padding-inline: clamp(24px, 4vw, 38px);
	}
}

@media (max-width: 767px) {
	.bgn-footer-main {
		padding-block: 44px 0;
		background-size: 54px 54px, 54px 54px, auto, auto;
	}

	.bgn-footer-main::after {
		width: calc(100% - 32px);
	}

	.bgn-footer-workshop {
		grid-template-columns: 1fr;
		margin-bottom: 20px;
	}

	.bgn-footer-workshop__media {
		min-height: 0;
		aspect-ratio: 4 / 3;
	}

	.bgn-footer-workshop__copy {
		padding: 28px 22px 31px;
		border-top: 3px solid var(--bgn-yellow);
		border-left: 0;
	}

	.bgn-footer-workshop__copy h2 {
		font-size: 1.72rem;
	}

	.bgn-footer-workshop__copy > p:not(:first-child) {
		font-size: .84rem;
	}

	.bgn-footer-main__grid {
		grid-template-columns: 1fr;
		border-right: 0;
		border-left: 0;
	}

	.bgn-footer-brand {
		display: block;
		grid-column: auto;
		padding: 36px 22px 34px;
		border-left-width: 3px;
	}

	.bgn-footer-brand::before {
		margin-bottom: 22px;
		font-size: .59rem;
	}

	.bgn-footer-brand__logo-link {
		width: 220px;
		margin-bottom: 22px;
	}

	.bgn-footer-brand__summary {
		font-size: .9rem;
	}

	.bgn-footer-nav {
		padding: 0 22px;
		border-top: 1px solid rgba(255, 255, 255, .105);
		border-right: 0;
	}

	.bgn-footer-nav::before {
		display: none;
	}

	.bgn-footer-nav__index,
	.bgn-footer-nav__title {
		margin: 0;
	}

	.bgn-footer-nav__list {
		padding: 0 0 18px 38px;
	}

	.bgn-footer-nav__list a {
		min-height: 46px;
	}

	.bgn-footer-bottom__inner {
		min-height: 82px;
	}

	.bgn-footer-main__wordmark {
		display: none;
	}
}
