/* =====================================================================
 * Footer – Figma 16:251 (desktop 1440) / 94:24047 (smartphone 440)
 * Markup: footer.php (.wr-site-footer). Loaded by inc/site-footer.php after
 * main.css / theme-main.css / frmcontact7.css.
 * ================================================================== */

.wr-site-footer {
	--wr-ft-line: rgba(229, 231, 235, 0.16);
	--wr-ft-accent: #1e88e5;
	--wr-ft-fs: 16px;      /* Body L */
	--wr-ft-lh: 24px;
	--wr-ft-fs-title: 18px; /* Body XL Bold */
	--wr-ft-lh-title: 26px;
	--wr-ft-fs-sm: 14px;    /* Body M / copyright */
	--wr-ft-icon: 24px;
	background: #1c0f13;
	padding: 40px 20px;
	color: #fff;
	font-family: "Poppins", sans-serif;
	font-size: var(--wr-ft-fs);
	line-height: var(--wr-ft-lh);
}

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

.wr-site-footer__inner {
	display: flex;
	flex-direction: column;
	gap: 32px;
	max-width: 1200px;
	margin: 0 auto;
}

.wr-site-footer a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.wr-site-footer a[href]:hover,
.wr-site-footer a[href]:focus-visible {
	color: var(--wr-ft-accent);
}

.wr-site-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wr-site-footer p {
	margin: 0;
}

/* ---- Top row: 3 columns, space-between ------------------------------- */
.wr-site-footer__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 40px;
}

.wr-site-footer__col {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
}

.wr-site-footer__col--info {
	flex: 0 0 143px;
	width: 143px;
}

.wr-site-footer__col--news {
	flex: 0 0 431px;
	width: 431px;
}

.wr-site-footer__title {
	margin: 0;
	font-family: "Poppins", sans-serif;
	font-size: var(--wr-ft-fs-title);
	font-weight: 700;
	line-height: var(--wr-ft-lh-title);
	color: #fff;
}

.wr-site-footer__col--news .wr-site-footer__title {
	color: #fcfbfa;
}

/* ---- Column 1: logo, address, contacts ------------------------------- */
.wr-site-footer__logo,
.wr-site-footer__logo a {
	display: block;
	line-height: 0;
}

.wr-site-footer__logo img {
	display: block;
	width: 209px;
	height: 80px; /* SVG logo has no intrinsic size */
	object-fit: contain;
	object-position: left center;
}

.wr-site-footer__logo .sitename {
	font-size: 24px;
	font-weight: 600;
	line-height: normal;
	text-transform: uppercase;
	color: #fff;
}

.wr-site-footer__contact {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
}

.wr-site-footer__address {
	display: flex;
	align-items: center;
	gap: 10px;
}

.wr-site-footer__address .site-slogan-flag {
	flex: none;
	line-height: 0;
}

.wr-site-footer__address .site-slogan-flag img {
	display: block;
	width: 42px;
	height: 28px;
}

.wr-site-footer .wr-site-footer__address p,
.wr-site-footer .wr-site-footer__address a {
	color: #fff;
	font-size: var(--wr-ft-fs);
	line-height: var(--wr-ft-lh);
}

.wr-site-footer__contact-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.wr-site-footer__contact-list li {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #fff;
}

.wr-site-footer__icon {
	flex: none;
	width: var(--wr-ft-icon);
	height: var(--wr-ft-icon);
	color: #fff;
}

.wr-site-footer .wr-site-footer__contact-list a {
	font-size: var(--wr-ft-fs);
	line-height: var(--wr-ft-lh);
	color: #fff;
}

.wr-site-footer .wr-site-footer__link-accent {
	color: var(--wr-ft-accent);
}

.wr-site-footer .wr-site-footer__link-accent:hover,
.wr-site-footer .wr-site-footer__link-accent:focus-visible {
	color: #fff;
}

/* One line each (Figma: whitespace-nowrap). Small phones scale the text down. */
.wr-site-footer .wr-site-footer__address p,
.wr-site-footer .wr-site-footer__address a,
.wr-site-footer .wr-site-footer__contact-list a,
.wr-site-footer .wr-site-footer__links a,
.wr-site-footer .wr-site-footer__text {
	white-space: nowrap;
}

/* ---- Phone / WhatsApp: rê chuột (desktop) hoặc bấm -> danh sách 1–2 số ---- */
.wr-site-footer__dd {
	position: relative;
}

.wr-site-footer .wr-site-footer__contact-list .wr-site-footer__dd-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.wr-site-footer__dd-caret {
	flex: none;
	opacity: 0.7;
	transition: transform 0.2s ease;
}

.wr-site-footer__dd.is-open .wr-site-footer__dd-caret {
	transform: rotate(180deg);
}

.wr-site-footer__dd-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 20px;
	padding: 0 6px;
	border-radius: 10px;
	background: rgba(30, 136, 229, 0.25);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 20px;
}

.wr-site-footer__dd-menu {
	position: absolute;
	top: calc(100% + 8px);
	left: calc(var(--wr-ft-icon) + 12px);
	z-index: 50;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 220px;
	padding: 8px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}

/* Cầu nối vô hình: rê chuột từ dòng xuống thẻ không bị tắt. */
.wr-site-footer__dd-menu::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 100%;
	height: 10px;
}

.wr-site-footer__dd.is-open .wr-site-footer__dd-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
}

@media (hover: hover) and (pointer: fine) {
	.wr-site-footer__dd:hover .wr-site-footer__dd-menu,
	.wr-site-footer__dd:focus-within .wr-site-footer__dd-menu {
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
	}

	.wr-site-footer__dd:hover .wr-site-footer__dd-caret {
		transform: rotate(180deg);
	}
}

.wr-site-footer .wr-site-footer__dd-title {
	margin: 0;
	padding: 4px 12px 6px;
	font-size: 12px;
	font-weight: 500;
	line-height: 18px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
	color: #6b7280;
}

.wr-site-footer .wr-site-footer__contact-list .wr-site-footer__dd-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	white-space: nowrap;
	color: #0f4c81;
	transition: background-color 0.2s ease;
}

.wr-site-footer .wr-site-footer__contact-list .wr-site-footer__dd-item:hover,
.wr-site-footer .wr-site-footer__contact-list .wr-site-footer__dd-item:focus-visible {
	background: #f3f4f6;
	color: #0f4c81;
}

.wr-site-footer .wr-site-footer__contact-list .wr-site-footer__dd-item:focus-visible {
	outline: 2px solid var(--wr-ft-accent);
	outline-offset: -2px;
}

.wr-site-footer__dd-icon {
	flex: none;
	width: 20px;
	height: 20px;
}

.wr-site-footer__dd-item--phone .wr-site-footer__dd-icon {
	color: #f34b46;
}

.wr-site-footer__dd-item--text .wr-site-footer__dd-icon {
	color: #1e88e5;
}

@media (max-width: 767.98px) {
	.wr-site-footer .wr-site-footer__contact-list .wr-site-footer__dd-item {
		padding: 12px;   /* vùng bấm ≥ 48px */
	}
}

@media (prefers-reduced-motion: reduce) {
	.wr-site-footer__dd-menu,
	.wr-site-footer__dd-caret {
		transition: none;
	}
}

/* ---- Column 2: Information links ------------------------------------- */
.wr-site-footer__links {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.wr-site-footer__links li {
	margin: 0;
	padding: 0;
}

.wr-site-footer .wr-site-footer__links a {
	display: inline-block;
	padding: 0; /* main.css: .footer-links .nav-link has 6px on phones */
	font-size: var(--wr-ft-fs);
	font-weight: 400;
	line-height: var(--wr-ft-lh);
	color: #e5e7eb;
	text-transform: none;
}

/* ---- Column 3: Newsletter -------------------------------------------- */
.wr-site-footer__text {
	font-size: var(--wr-ft-fs);
	line-height: var(--wr-ft-lh);
	color: #e5e7eb;
}

.wr-site-footer .frm-footer-ct {
	display: block;
	width: 100%;
	margin: 0;
}

.wr-site-footer .frm-footer-ct form {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	margin: 0;
}

.wr-site-footer .frm-footer-ct .wpcf7-form-control-wrap {
	position: relative;
	float: none;
	flex: 1 1 0;
	min-width: 0;
}

.wr-site-footer .frm-footer-ct .wpcf7-email {
	display: block;
	width: 100%;
	max-width: none;
	height: 42px;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid #d5dae1;
	border-radius: 0;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
	color: #1f2937;
	font-family: "Poppins", sans-serif;
	font-size: var(--wr-ft-fs-sm);
	line-height: 20px;
	letter-spacing: 0;
}

.wr-site-footer .frm-footer-ct .wpcf7-email::placeholder {
	color: #6b7280;
}

.wr-site-footer .frm-footer-ct .wpcf7-submit {
	flex: none;
	width: auto;
	height: 42px;
	margin: 0;
	padding: 0 24px;
	border: 1px solid #002f6c;
	border-radius: 0;
	background: #002f6c;
	color: #fcfbfa;
	font-family: "Poppins", sans-serif;
	font-size: var(--wr-ft-fs-sm);
	font-weight: 400;
	line-height: 20px;
	text-transform: uppercase;
	cursor: pointer;
}

.wr-site-footer .frm-footer-ct .wpcf7-submit:hover {
	background: #0f4c81;
	border-color: #0f4c81;
}

.wr-site-footer .frm-footer-ct .wpcf7-not-valid-tip {
	position: absolute;
	top: 100%;
	left: 0;
	margin-top: 4px;
	font-size: 12px;
	line-height: 16px;
}

.wr-site-footer .frm-footer-ct .wpcf7-response-output {
	flex: 1 1 100%;
	margin: 24px 0 0;
	padding: 6px 10px;
	font-size: 13px;
	line-height: 18px;
	color: #e5e7eb;
}

.wr-site-footer .frm-footer-ct .wpcf7-spinner {
	display: none;
}

/* ---- Bottom row: line, copyright, social ------------------------------ */
.wr-site-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-top: 32px;
	border-top: 1px solid var(--wr-ft-line);
}

.wr-site-footer__copy {
	font-family: "Inter", "Poppins", sans-serif;
	font-size: var(--wr-ft-fs-sm);
	line-height: 24px;
	color: #e5e7eb;
}

/* 2 dòng: © … All rights reserved. / Designed by … */
.wr-site-footer__copy-line,
.wr-site-footer__credit {
	display: block;
}

.wr-site-footer__social {
	display: flex;
	align-items: center;
	gap: 24px;
}

.wr-site-footer__social a {
	display: flex;
	width: var(--wr-ft-icon);
	height: var(--wr-ft-icon);
	color: #fff;
}

.wr-site-footer__social svg {
	width: 100%;
	height: 100%;
}

/* ---- Tablet: newsletter moves to its own row -------------------------- */
@media (max-width: 1199px) {
	.wr-site-footer__top {
		flex-wrap: wrap;
	}

	.wr-site-footer__col--about {
		flex: 1 1 auto;
	}

	.wr-site-footer__col--news {
		flex: 1 1 100%;
		width: auto;
		max-width: 520px;
	}
}

/* ---- Smartphone (Figma 94:24047) -------------------------------------- */
@media (max-width: 767px) {
	.wr-site-footer__top {
		flex-direction: column;
		align-items: stretch;
		gap: 24px;
	}

	.wr-site-footer__col,
	.wr-site-footer__col--info,
	.wr-site-footer__col--news {
		flex: none;
		width: 100%;
		max-width: none;
	}

	/* Lines between the blocks. */
	.wr-site-footer__col--info,
	.wr-site-footer__col--news {
		padding-top: 24px;
		border-top: 1px solid var(--wr-ft-line);
	}

	/* Information: 2 columns, gap 40px. */
	.wr-site-footer__links {
		display: block;
		align-self: stretch;
		width: 100%;
		columns: 2;
		column-gap: 40px;
		margin-bottom: -16px;
	}

	.wr-site-footer__links li {
		break-inside: avoid;
		margin-bottom: 16px;
	}

	.wr-site-footer .wr-site-footer__links a {
		display: block;
	}

	.wr-site-footer .frm-footer-ct .wpcf7-submit {
		font-weight: 700;
	}

	.wr-site-footer__bottom {
		flex-direction: column;
		gap: 20px;
		text-align: center;
	}

	.wr-site-footer__credit {
		display: block;
	}
}

/* ---- Small phones (< 440px): scale text with the screen so lines do not
   wrap. Sizes are the 440px design sizes x (screen width / 440). ------- */
@media (max-width: 439px) {
	.wr-site-footer {
		--wr-ft-fs: clamp(11px, 3.636vw, 16px);       /* 16 / 440 */
		--wr-ft-lh: 1.5;
		--wr-ft-fs-title: clamp(13px, 4.09vw, 18px);  /* 18 / 440 */
		--wr-ft-lh-title: 1.45;
		--wr-ft-fs-sm: clamp(11px, 3.18vw, 14px);     /* 14 / 440 */
		--wr-ft-icon: clamp(18px, 5.45vw, 24px);      /* 24 / 440 */
	}

	.wr-site-footer__address {
		gap: clamp(6px, 2.27vw, 10px);
	}

	.wr-site-footer__address .site-slogan-flag img {
		width: clamp(30px, 9.55vw, 42px);
		height: auto;
	}

	.wr-site-footer__contact-list li {
		gap: clamp(8px, 2.73vw, 12px);
	}

	.wr-site-footer__links {
		column-gap: clamp(20px, 9.1vw, 40px);
	}

	.wr-site-footer .frm-footer-ct .wpcf7-submit {
		padding: 0 clamp(14px, 5.45vw, 24px);
	}
}
