/* ==========================================================================
   Home v2 — "sang trọng yên tĩnh": navy sâu, vàng kim tiết kiệm, kem, ảnh lớn.
   Loaded ONLY on pages whose content contains the marker class "my-home-v2"
   (see meyland_is_home_v2()), and every rule is scoped under body.my-home-v2.
   Only var(--my-*) values. Motion only on transform/opacity.
   ========================================================================== */

/* ---- Section headings: caps eyebrow + short gold rule ------------------- */
.my-home-v2 .my-heading__eyebrow { letter-spacing: var(--my-ls-caps); font-weight: var(--my-fw-semi); }
.my-home-v2 .my-heading__title { font-weight: var(--my-fw-semi); }
.my-home-v2 .my-heading__title::after {
	content: "";
	display: block;
	width: var(--my-line-gold-w);
	height: 2px;
	margin: var(--my-space-4) auto 0;
	background: var(--my-color-accent);
}
.my-home-v2 .my-heading--left .my-heading__title::after { margin-left: 0; }

/* ---- 1. Hero ------------------------------------------------------------ */
.my-home-v2 .my-hero .banner-bg::after { background: var(--my-overlay-hero-v-sm); }
@media (min-width: 850px) {
	.my-home-v2 .my-hero .banner-bg::after { background: var(--my-overlay-hero-v), var(--my-overlay-hero-left); }
}
.my-home-v2 .my-hero .my-heading__eyebrow {
	margin-bottom: var(--my-space-4);
	font-size: var(--my-fs-small);
	letter-spacing: var(--my-ls-caps);
	color: var(--my-color-accent);
}
.my-home-v2 .my-hero h1 {
	max-width: none;
	font-size: var(--my-fs-hero);
	font-weight: var(--my-fw-semi);
	line-height: 1.15;
	letter-spacing: -0.015em;
}
.my-home-v2 .my-hero h1::after {
	content: "";
	display: block;
	width: var(--my-line-gold-w);
	height: 2px;
	margin-top: var(--my-space-5);
	background: var(--my-color-accent);
}
.my-home-v2 .my-hero p { opacity: 1; color: var(--my-color-text-invert); }
.my-home-v2 .my-hero .my-hero__caption { opacity: 0.7; }
.my-home-v2 .my-hero .my-btn--ghost { box-shadow: inset 0 0 0 1px var(--my-color-text-invert); color: var(--my-color-text-invert); }
.my-home-v2 .my-hero .my-btn--ghost:hover { background: var(--my-color-text-invert); color: var(--my-color-primary); }

/* < 850px: hero height follows its content so nothing is ever cut off under the header. */
@media (max-width: 849px) {
	.my-home-v2 .my-hero { height: auto !important; min-height: 36rem; padding-top: 0 !important; }
	.my-home-v2 .my-hero .banner-layers {
		position: relative;
		display: flex;
		flex-direction: column;
		justify-content: flex-end;
		min-height: 36rem;
		padding: var(--my-space-8) var(--my-space-5) calc(var(--my-space-6) + var(--my-space-5));
	}
	.my-home-v2 .my-hero .text-box {
		position: static !important;
		top: auto !important;
		left: auto !important;
		width: 100% !important;
		max-width: none !important;
		margin: 0;
		transform: none !important;
	}
	.my-home-v2 .my-hero h1 { font-size: var(--my-fs-h1); }
}

/* Hero text rises in once (CSS only, no JS, not applied to the image => LCP unaffected). */
@keyframes my-rise {
	from { opacity: 0; transform: translateY(var(--my-reveal-y)); }
	to   { opacity: 1; transform: none; }
}
.my-home-v2 .my-hero .my-heading__eyebrow,
.my-home-v2 .my-hero h1,
.my-home-v2 .my-hero .text-box p:not(.my-heading__eyebrow),
.my-home-v2 .my-hero .my-actions { animation: my-rise var(--my-dur-slow) var(--my-ease) both; }
.my-home-v2 .my-hero h1 { animation-delay: 80ms; }
.my-home-v2 .my-hero .text-box p:not(.my-heading__eyebrow) { animation-delay: 160ms; }
.my-home-v2 .my-hero .my-actions { animation-delay: 240ms; }

/* ---- 2. Stats band overlapping the hero bottom -------------------------- */
.my-home-v2 .my-stats-band {
	position: relative;
	z-index: 3;
	margin-top: calc(var(--my-space-6) * -1);
}
@media (min-width: 850px) { .my-home-v2 .my-stats-band { margin-top: calc(var(--my-space-7) * -1); } }
.my-home-v2 .my-stats-band .my-stats {
	grid-template-columns: 1fr;
	gap: 0;
	margin-bottom: var(--my-space-3);
	padding: var(--my-space-3) var(--my-space-5);
	border-radius: var(--my-radius-md);
	background: var(--my-grad-navy);
	box-shadow: var(--my-shadow-lift);
	text-align: left;
}
/* Mobile: one row per stat, number left, label right. */
.my-home-v2 .my-stats-band .my-stats__item {
	display: grid;
	grid-template-columns: minmax(5.5rem, auto) 1fr;
	align-items: center;
	gap: var(--my-space-4);
	padding: var(--my-space-4) 0;
	text-align: left;
}
.my-home-v2 .my-stats-band .my-stats__item + .my-stats__item { border-top: 1px solid var(--my-color-accent-soft); }
.my-home-v2 .my-stats-band .my-stats__value {
	font-size: var(--my-fs-stat);
	font-weight: var(--my-fw-medium);
	color: var(--my-color-accent);
	font-variant-numeric: tabular-nums;
}
.my-home-v2 .my-stats-band .my-stats__label {
	font-size: var(--my-fs-small);
	line-height: 1.4;
	color: var(--my-color-text-invert);
	opacity: 0.8;
}
@media (min-width: 850px) {
	.my-home-v2 .my-stats-band .my-stats { grid-template-columns: repeat(4, 1fr); padding: var(--my-space-6) var(--my-space-4); text-align: center; }
	.my-home-v2 .my-stats-band .my-stats__item {
		display: flex;
		flex-direction: column;
		gap: var(--my-space-1);
		padding: var(--my-space-4) var(--my-space-3);
		text-align: center;
	}
	.my-home-v2 .my-stats-band .my-stats__item + .my-stats__item { border-top: 0; border-left: 1px solid var(--my-color-accent-soft); }
	.my-home-v2 .my-stats-band .my-stats__label { letter-spacing: var(--my-ls-caps-sm); }
}

/* ---- 3. About + 3 numbered values --------------------------------------- */
.my-home-v2 .my-about {
	background-image: radial-gradient(var(--my-color-dot) 1px, transparent 1.5px);
	background-size: 28px 28px;
}
.my-home-v2 .my-about .my-about__lead { font-size: var(--my-fs-lead); color: var(--my-color-text); }
@media (min-width: 850px) {
	.my-home-v2 .my-about .my-about__lead { padding-left: var(--my-space-5); border-left: 2px solid var(--my-color-accent); }
}
.my-home-v2 .my-values { counter-reset: my-value; margin-top: var(--my-space-6); }
.my-home-v2 .my-values .my-feature { counter-increment: my-value; gap: var(--my-space-2); }
.my-home-v2 .my-values .my-feature::before {
	content: "0" counter(my-value);
	font-family: var(--my-font-heading);
	font-size: var(--my-fs-stat);
	font-weight: var(--my-fw-semi);
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 1px var(--my-color-accent);
}
.my-home-v2 .my-values .my-feature__icon { width: auto; height: auto; background: none; justify-content: start; }
.my-home-v2 .my-values .my-feature__icon .my-icon { width: 28px; height: 28px; stroke-width: 1.5; }
.my-home-v2 .my-values .my-feature__title { font-size: var(--my-fs-h3); }
.my-home-v2 .my-values .my-feature__title::before {
	content: "";
	display: block;
	width: var(--my-space-5);
	height: 2px;
	margin-bottom: var(--my-space-3);
	background: var(--my-color-accent);
}
@media (min-width: 850px) {
	.my-home-v2 .my-values > .col + .col > .col-inner { padding-left: var(--my-space-5); border-left: 1px solid var(--my-color-accent-soft); }
}
.my-home-v2 .my-awards { margin-top: var(--my-space-5); }
.my-home-v2 .my-award {
	display: flex;
	gap: var(--my-space-3);
	align-items: flex-start;
	margin: 0 0 var(--my-space-3);
	padding: var(--my-space-4);
	border-top: 2px solid var(--my-color-accent);
	background: var(--my-color-bg);
	box-shadow: var(--my-shadow-soft);
	font-size: var(--my-fs-small);
	color: var(--my-color-text);
}

/* ---- 4. Projects --------------------------------------------------------- */
.my-home-v2 .my-badge {
	border-radius: var(--my-radius-sm);
	background: var(--my-color-primary);
	color: var(--my-color-accent);
	font-size: var(--my-fs-xs);
	letter-spacing: var(--my-ls-caps-sm);
	text-transform: uppercase;
}
.my-home-v2 .my-card--static {
	border-color: var(--my-color-border);
	box-shadow: var(--my-shadow-soft);
	transition: box-shadow var(--my-dur-slow) var(--my-ease), transform var(--my-dur-slow) var(--my-ease);
}
.my-home-v2 .my-card--static .my-card__media { overflow: hidden; aspect-ratio: var(--my-ratio-card); }
.my-home-v2 .my-card--static .my-card__media img { transition: transform var(--my-dur-slow) var(--my-ease); }
.my-home-v2 .my-card__eyebrow { color: var(--my-color-accent-dark); letter-spacing: var(--my-ls-caps-sm); font-weight: var(--my-fw-semi); }
.my-home-v2 .my-card--static .my-card__title { font-size: var(--my-fs-h3); font-weight: var(--my-fw-semi); }
.my-home-v2 .my-card--static .my-card__title::after {
	content: "";
	display: block;
	width: 0;
	height: 2px;
	margin-top: var(--my-space-2);
	background: var(--my-color-accent);
	transition: width var(--my-dur-slow) var(--my-ease);
}
.my-home-v2 .my-card--static .my-card__stats { display: flex; flex-wrap: wrap; gap: 0; }
.my-home-v2 .my-card--static .my-card__stats li + li::before { content: "\00b7"; margin: 0 var(--my-space-2); color: var(--my-color-accent-dark); }
/* Button becomes a quiet text link with an arrow. */
.my-home-v2 .my-card--static .my-card__action .my-btn {
	min-height: 44px;
	padding: 0;
	background: none;
	color: var(--my-color-primary);
	font-size: var(--my-fs-small);
	letter-spacing: var(--my-ls-caps-sm);
	text-transform: uppercase;
}
.my-home-v2 .my-card--static .my-card__action .my-btn::after { content: "\2192"; transition: transform var(--my-dur) var(--my-ease); }
.my-home-v2 .my-card--static .my-card__action .my-btn:hover { color: var(--my-color-accent-dark); transform: none; }
.my-home-v2 .my-card--static .my-card__action .my-btn:hover::after { transform: translateX(4px); }
/* Rivea / no photo: navy gradient with a soft gold glow instead of a grey block. */
.my-home-v2 .my-card__placeholder { background: var(--my-glow-gold), var(--my-grad-navy); }

@media (hover: hover) {
	.my-home-v2 .my-card--static:not(.my-card--large):hover { transform: translateY(-4px); box-shadow: var(--my-shadow-lift); }
	.my-home-v2 .my-card--static:hover .my-card__media img { transform: scale(1.05); }
	.my-home-v2 .my-card--static:hover .my-card__title::after { width: 100%; }
}

/* Large card: wide photo, text laid over a bottom gradient, big numbers. */
.my-home-v2 .my-card--large {
	position: relative;
	flex-direction: column;
	justify-content: flex-end;
	min-height: clamp(26rem, 48vw, 34rem);
	border: 0;
	color: var(--my-color-text-invert);
}
.my-home-v2 .my-card--large .my-card__media { position: absolute; inset: 0; flex: none; aspect-ratio: auto; min-height: 0; }
.my-home-v2 .my-card--large .my-card__media::after { content: ""; position: absolute; inset: 0; background: var(--my-overlay-card); }
.my-home-v2 .my-card--large .my-card__body {
	position: relative;
	z-index: 2;
	flex: none;
	max-width: 46rem;
	padding: var(--my-space-8) var(--my-space-5) var(--my-space-6);
}
@media (min-width: 850px) {
	.my-home-v2 .my-card--large { flex-direction: column; }
	.my-home-v2 .my-card--large .my-card__body { padding: var(--my-space-8) var(--my-space-7); }
}
.my-home-v2 .my-card--large .my-card__eyebrow { color: var(--my-color-accent); }
.my-home-v2 .my-card--large .my-card__title { font-size: var(--my-fs-h2); color: var(--my-color-text-invert); }
.my-home-v2 .my-card--large .my-card__title::after { display: none; }
.my-home-v2 .my-card--large .my-card__meta,
.my-home-v2 .my-card--large .my-card__text { color: var(--my-color-text-invert); opacity: 0.9; }
.my-home-v2 .my-card--large .my-card__stats { display: grid; gap: var(--my-space-1); border-top-color: var(--my-color-accent-soft); color: var(--my-color-text-invert); }
.my-home-v2 .my-card--large .my-card__stats li + li::before { content: none; }
.my-home-v2 .my-card--large .my-card__stats li:first-child {
	font-family: var(--my-font-heading);
	font-size: var(--my-fs-stat);
	font-weight: var(--my-fw-medium);
	line-height: 1.1;
	color: var(--my-color-accent);
}
.my-home-v2 .my-card--large .my-card__action .my-btn {
	padding: var(--my-space-3) var(--my-space-5);
	background: var(--my-color-accent);
	color: var(--my-color-primary-dark);
	letter-spacing: var(--my-ls-caps-sm);
}
.my-home-v2 .my-card--large .my-card__action .my-btn:hover { background: var(--my-color-text-invert); color: var(--my-color-primary); }

/* ---- 5. News (Flatsome [blog_posts] restyled) --------------------------- */
.my-home-v2 .my-news .post-item .col-inner {
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--my-color-border);
	border-radius: var(--my-radius-md);
	background: var(--my-color-bg);
	box-shadow: var(--my-shadow-soft);
}
.my-home-v2 .my-news .post-item .box-image img { transition: transform var(--my-dur-slow) var(--my-ease); }
.my-home-v2 .my-news .post-item .box-text { padding: var(--my-space-4) var(--my-space-5) var(--my-space-5); text-align: left; }
.my-home-v2 .my-news .post-item .post-title { font-size: var(--my-fs-body); font-weight: var(--my-fw-semi); }
.my-home-v2 .my-news .post-item .badge-inner,
.my-home-v2 .my-news .post-item .is-xsmall { letter-spacing: var(--my-ls-caps-sm); color: var(--my-color-accent-dark); }
@media (hover: hover) {
	.my-home-v2 .my-news .post-item:hover .box-image img { transform: scale(1.04); }
}

/* ---- 6. Contact: navy gradient + gold glow, white form card ------------- */
.my-home-v2 .my-contact {
	border-top: 1px solid var(--my-color-accent);
	background: var(--my-glow-gold), var(--my-grad-navy);
}
.my-home-v2 .my-contact .my-actions .my-btn {
	background: transparent;
	color: var(--my-color-text-invert);
	box-shadow: inset 0 0 0 1px var(--my-color-accent-soft);
}
.my-home-v2 .my-contact .my-actions .my-btn:hover { box-shadow: inset 0 0 0 1px var(--my-color-accent); filter: none; color: var(--my-color-accent); }
.my-home-v2 .my-contact .my-form {
	padding: var(--my-space-6);
	border: 0;
	border-radius: var(--my-radius-md);
	box-shadow: var(--my-shadow-lift);
}
.my-home-v2 .my-form input[type="text"],
.my-home-v2 .my-form input[type="tel"],
.my-home-v2 .my-form select {
	padding-left: 0;
	border-width: 0 0 1px;
	border-radius: 0;
	background: transparent;
}
.my-home-v2 .my-form input:focus,
.my-home-v2 .my-form select:focus { border-color: var(--my-color-accent); box-shadow: none; }
.my-home-v2 .my-form .my-btn--accent { min-height: 52px; }

/* ---- Scroll reveal (class added by main.js only; no-JS = visible) ------- */
.my-home-v2 .my-reveal {
	opacity: 0;
	transform: translateY(var(--my-reveal-y));
	transition: opacity var(--my-dur-slow) var(--my-ease), transform var(--my-dur-slow) var(--my-ease);
}
.my-home-v2 .my-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	.my-home-v2 .my-reveal { opacity: 1; transform: none; transition: none; }
	.my-home-v2 .my-hero .my-heading__eyebrow,
	.my-home-v2 .my-hero h1,
	.my-home-v2 .my-hero .text-box p,
	.my-home-v2 .my-hero .my-actions { animation: none; }
	.my-home-v2 .my-card--static,
	.my-home-v2 .my-card--static .my-card__media img,
	.my-home-v2 .my-card--static .my-card__title::after,
	.my-home-v2 .my-news .post-item .box-image img { transition: none; }
	.my-home-v2 .my-card--static:hover { transform: none; }
	.my-home-v2 .my-card--static:hover .my-card__media img,
	.my-home-v2 .my-news .post-item:hover .box-image img { transform: none; }
}

.my-home-v2 .my-award, .my-home-v2 .my-card p, .my-home-v2 .my-card li { text-align: left; }

/* Flatsome custom CSS justifies text: left-align everything on this page, keep explicit centers. */
.my-home-v2 h1, .my-home-v2 h2, .my-home-v2 h3, .my-home-v2 h4, .my-home-v2 p, .my-home-v2 li { text-align: left; hyphens: manual; }
.my-home-v2 .my-card__title, .my-home-v2 .my-about p { text-align: left; }
.my-home-v2 .my-heading--center, .my-home-v2 .my-heading--center :is(h2, p) { text-align: center; }
.my-home-v2 .my-note { text-align: center; }
@media (min-width: 850px) {
	.my-home-v2 .my-stats-band .my-stats__item, .my-home-v2 .my-stats-band .my-stats__item * { text-align: center; }
}

/* ---- Fonts: Playfair Display (headings) + Be Vietnam Pro (text) ------------- */
/* Re-pointing the two tokens here makes every .my-* component and base.css rule pick the new fonts. */
body.my-home-v2 {
	--my-font-heading: var(--my-font-heading-v2);
	--my-font-body: var(--my-font-body-v2);
	font-family: var(--my-font-body);
	line-height: 1.7;
}
/* Beat the font-family Flatsome prints inline from Theme Options (specificity 0,1,1+ vs 0,0,1). */
.my-home-v2 :is(p, li, span, a, label, input, select, textarea, button, td, th, blockquote, .my-btn, .button, .nav > li > a, .nav-dropdown a) {
	font-family: var(--my-font-body);
}
.my-home-v2 :is(h1, h2, h3, h4, h5, h6, .heading-font, .my-heading__title, .my-card__title, .my-feature__title, .post-title, .my-form__title, .my-stats__value) {
	font-family: var(--my-font-heading);
	font-weight: var(--my-fw-semi);
	font-variant-numeric: lining-nums;
	text-transform: none;
}
.my-home-v2 :is(h1, h2, h3, h4, h5, h6) { line-height: 1.25; }
.my-home-v2 .my-hero h1 {
	font-size: clamp(2rem, 1.5rem + 2.4vw, 3.5rem);
	line-height: 1.22; /* room for stacked Vietnamese diacritics (ặ ẫ ỡ) */
	letter-spacing: -0.01em;
}
@media (max-width: 849px) { .my-home-v2 .my-hero h1 { font-size: clamp(1.875rem, 1.5rem + 1.6vw, 2.5rem); } }
.my-home-v2 :is(.my-feature__title, .post-title) { font-weight: var(--my-fw-medium); line-height: 1.3; }
.my-home-v2 .my-card--static .my-card__title { line-height: 1.3; }
.my-home-v2 .my-stats__value { font-weight: var(--my-fw-medium); line-height: 1.15; font-variant-numeric: lining-nums tabular-nums; }
.my-home-v2 .my-values .my-feature::before { font-family: var(--my-font-heading); font-variant-numeric: lining-nums; }

/* Body text: Be Vietnam Pro 400, emphasis 600, comfortable reading size. */
.my-home-v2 :is(p, li) { line-height: 1.7; }
.my-home-v2 :is(strong, b) { font-weight: var(--my-fw-semi); }
/* Labels, badges, buttons: Be Vietnam Pro 600, letter-spaced caps for the small ones. */
.my-home-v2 :is(.my-heading__eyebrow, .my-card__eyebrow, .my-badge, .my-card__note, .my-hero__caption, .my-stats__label, .my-btn, .my-form label) {
	font-family: var(--my-font-body);
	font-weight: var(--my-fw-semi);
}
.my-home-v2 .my-btn { letter-spacing: 0.02em; }
.my-home-v2 .my-hero__caption, .my-home-v2 .my-stats__label, .my-home-v2 .my-form label { font-weight: var(--my-fw-regular); }
.my-home-v2 .my-heading__subtitle, .my-home-v2 .my-about .my-about__lead { line-height: 1.7; }

/* ---- Independent-channel wording blocks ---------------------------------- */
.my-home-v2 .my-stats-band .my-note { margin: 0 0 var(--my-space-7); }
.my-home-v2 .my-channel { margin-top: var(--my-space-5); }
.my-home-v2 .my-channel .col-inner {
	padding: var(--my-space-5);
	border-left: 2px solid var(--my-color-accent);
	background: var(--my-color-bg);
	box-shadow: var(--my-shadow-soft);
}
.my-home-v2 .my-channel h3 { margin: 0 0 var(--my-space-2); }
.my-home-v2 .my-channel p { margin: 0; }
.my-home-v2 .my-disclaimer {
	margin: var(--my-space-6) 0 0;
	padding-top: var(--my-space-4);
	border-top: 1px solid var(--my-color-accent-soft);
	font-size: var(--my-fs-small);
	color: var(--my-color-text-invert);
	opacity: 0.85;
}
.my-home-v2 .my-disclaimer a { color: var(--my-color-accent); text-decoration: underline; }
.my-home-v2 .my-disclaimer a:hover { color: var(--my-color-text-invert); }

/* ---- Thank-you page (same v2 look, centered) ---------------------------- */
.my-home-v2 .my-thanks p,
.my-home-v2 .my-thanks .my-heading { text-align: center; }
.my-home-v2 .my-thanks .my-feature { align-items: center; margin-bottom: var(--my-space-5); }
.my-home-v2 .my-thanks .my-feature__icon {
	width: var(--my-space-9);
	height: var(--my-space-9);
	border-radius: var(--my-radius-pill);
	background: none;
	box-shadow: inset 0 0 0 1px var(--my-color-accent);
	color: var(--my-color-accent);
}
.my-home-v2 .my-thanks .my-feature__icon .my-icon { width: var(--my-space-7); height: var(--my-space-7); }
.my-home-v2 .my-thanks .my-actions,
.my-home-v2 .my-thanks .my-actions--center { justify-content: center; }
.my-home-v2 .my-thanks .my-thanks__hint { margin: var(--my-space-3) 0 0; font-size: var(--my-fs-small); opacity: 0.75; }
.my-home-v2 .my-thanks .my-disclaimer { text-align: center; }
