/*
Theme Name: BDS Landing
Theme URI: https://example.com
Author: BDS
Description: Theme cho trang landing page marketing bat dong san, doc lap voi plugin bds-manager. Noi dung trang landing nhap qua Advanced Custom Fields.
Requires at least: 6.7
Tested up to: 7.0
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bds-landing
*/

body {
	margin: 0;
	font-family: var(--wp--preset--font-family--body, sans-serif);
	color: var(--wp--preset--color--bds-ink, #1a1a1a);
	font-size: 16px;
}

h1 { font-size: 50px; }
h2 { font-size: 40px; }
h3 { font-size: 30px; }
h4 { font-size: 24px; }
h5 { font-size: 20px; }
h6 { font-size: 18px; }

a,
li,
button {
	font-size: 16px;
}

/* A link/button used as a heading's own text (e.g. linked post titles)
   should scale with the heading, not drop to the base size. */
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
	font-size: inherit;
}

.site-header__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1.5rem 24px;
	display: flex;
	align-items: center;
	gap: 2rem;
}

.site-header__logo {
	font-family: var(--wp--preset--font-family--heading, serif);
	font-size: 16px;
	text-decoration: none;
	color: var(--wp--preset--color--bds-navy, #0a1628);
	margin-right: auto;
}

.site-header__logo img {
	height: 100px;
	width: auto;
	display: block;
}

.site-header__cta {
	background: var(--wp--preset--color--bds-gold, #c9a227);
	color: var(--wp--preset--color--bds-navy, #0a1628);
	text-decoration: none;
	padding: 0.6rem 1.4rem;
	border-radius: 2px;
	font-size: 16px;
	font-weight: 700;
}

.site-main {
	max-width: 800px;
	margin: 0 auto;
	padding: 2rem 24px 4rem;
}

.site-footer {
	background: var(--wp--preset--color--bds-navy, #0a1628);
	color: rgba(255, 255, 255, 0.75);
	font-size: 0.85rem;
}

.bds-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.site-footer__main {
	padding: 4rem 24px 3rem;
	display: flex;
	justify-content: space-between;
	gap: 3rem;
	flex-wrap: wrap;
	text-align: left;
}

.site-footer__brand {
	flex: 1 1 260px;
}

.site-footer__logo img {
	height: 128px;
	width: auto;
	margin-bottom: 1rem;
}

.site-footer__name {
	font-family: var(--wp--preset--font-family--heading, serif);
	font-size: 1.4rem;
	color: #fff;
	margin: 0 0 0.75rem;
}

.site-footer__desc {
	max-width: 340px;
	line-height: 1.6;
	margin: 0;
}

/* "Dự án" / "Tiện ích" columns: each is its own flat menu location
   (footer_du_an / footer_tien_ich in functions.php) with a hardcoded
   column title — no parent/child nesting for staff to get wrong. */
.site-footer__col {
	flex: 1 1 0;
}

.site-footer__menu-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
}

.site-footer__menu-list li {
	margin: 0;
}

.site-footer__menu-list a {
	color: rgba(255, 255, 255, 0.75);
	text-decoration: none;
	font-size: 16px;
}

.site-footer__menu-list a:hover {
	color: #fff;
}

.site-footer__contact {
	flex: 1 1 240px;
}

.site-footer__col-title {
	color: var(--wp--preset--color--bds-gold, #c9a227);
	font-weight: 700;
	font-size: 24px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin: 0 0 1.1rem;
}

.site-footer__contact-item {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	margin: 0 0 0.9rem;
	line-height: 1.5;
}

.site-footer__contact-item a {
	color: inherit;
	text-decoration: none;
}

.site-footer__contact-item a:hover {
	color: #fff;
}

.site-footer__icon {
	flex-shrink: 0;
	width: 1.1rem;
	height: 1.1rem;
	color: var(--wp--preset--color--bds-gold, #c9a227);
	margin-top: 0.15rem;
}

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

.site-footer__hint {
	font-size: 0.75rem;
	margin: 0;
}

.site-footer__hint a {
	color: #f0b90b;
	text-decoration: underline;
}

.site-footer__bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
	padding: 1.5rem 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.5);
}

.site-footer__copyright {
	margin: 0;
}

.site-footer__legal {
	display: flex;
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer__legal a {
	color: rgba(255, 255, 255, 0.6);
	text-decoration: none;
}

.site-footer__legal a:hover {
	color: var(--wp--preset--color--bds-gold, #c9a227);
}

@media (max-width: 900px) {
	.site-footer__main {
		flex-direction: column;
		gap: 2.5rem;
	}

	.site-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* Floating contact button (phone / Zalo / Messenger) — shows on every page,
   see bds_landing_render_floating_contact() in functions.php. */
.bds-floating-contact {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 999;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
}

.bds-floating-contact__panel {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.6rem;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.bds-floating-contact.is-open .bds-floating-contact__panel {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.bds-floating-contact__item {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	text-decoration: none;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
	transition: transform 0.15s ease;
}

.bds-floating-contact__item:hover {
	transform: scale(1.08);
}

.bds-floating-contact__item svg {
	width: 24px;
	height: 24px;
}

.bds-floating-contact__item--messenger {
	background: #0084ff;
}

.bds-floating-contact__item--zalo {
	background: #0068ff;
	font-weight: 700;
	font-size: 0.72rem;
	letter-spacing: 0.02em;
}

.bds-floating-contact__item--phone {
	background: var(--wp--preset--color--bds-gold, #c9a227);
	color: var(--wp--preset--color--bds-navy, #0a1628);
}

.bds-floating-contact__toggle {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--wp--preset--color--bds-navy, #0a1628);
	color: #fff;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
	transition: transform 0.2s ease;
}

.bds-floating-contact__toggle svg {
	width: 26px;
	height: 26px;
}

.bds-floating-contact.is-open .bds-floating-contact__toggle {
	transform: rotate(90deg);
}

@media (max-width: 480px) {
	.bds-floating-contact {
		right: 14px;
		bottom: 14px;
	}
}
