/* Thiệp Nhanh — trang công ty. Ink mist + forest teal; self-hosted faces. */

@font-face {
	font-family: "Be Vietnam Pro";
	font-style: normal;
	font-display: swap;
	font-weight: 400;
	src: url("/fonts/be-vietnam-pro-400.ttf") format("truetype");
}
@font-face {
	font-family: "Be Vietnam Pro";
	font-style: normal;
	font-display: swap;
	font-weight: 600;
	src: url("/fonts/be-vietnam-pro-600.ttf") format("truetype");
}
@font-face {
	font-family: "Noto Sans";
	font-style: normal;
	font-display: swap;
	font-weight: 400;
	src: url("/fonts/noto-sans-vietnamese-400.woff2") format("woff2");
	unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
	font-family: "Noto Sans";
	font-style: normal;
	font-display: swap;
	font-weight: 600;
	src: url("/fonts/noto-sans-vietnamese-600.woff2") format("woff2");
	unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
	font-family: "Noto Sans";
	font-style: normal;
	font-display: swap;
	font-weight: 400;
	src: url("/fonts/noto-sans-latin-400.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Noto Sans";
	font-style: normal;
	font-display: swap;
	font-weight: 600;
	src: url("/fonts/noto-sans-latin-600.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--ink: #14201c;
	--ink-soft: #3d4f48;
	--mist: #e8eef0;
	--mist-2: #d5e0e2;
	--paper: #f7faf9;
	--forest: #1e4a42;
	--forest-deep: #12332d;
	--teal: #2f5f58;
	--brass: #8a7660;
	--seal: #8b3a34;
	--line: rgb(20 32 28 / 0.12);
	--glow: rgb(47 95 88 / 0.18);
	--font-display: "Be Vietnam Pro", "Noto Sans", sans-serif;
	--font: "Noto Sans", "Be Vietnam Pro", sans-serif;
	--ease: cubic-bezier(0.22, 0.7, 0.2, 1);
	--wrap: min(72rem, calc(100% - 2.5rem));
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-height: 100vh;
	font-family: var(--font);
	font-size: 1.05rem;
	line-height: 1.6;
	color: var(--ink);
	background:
		radial-gradient(120% 80% at 80% 0%, rgb(47 95 88 / 0.14), transparent 55%),
		radial-gradient(90% 60% at 10% 100%, rgb(138 118 96 / 0.12), transparent 50%),
		linear-gradient(165deg, #f4f8f7 0%, var(--mist) 42%, #eef3f2 100%);
	background-attachment: fixed;
}

img {
	max-width: 100%;
	display: block;
}

a {
	color: var(--teal);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--forest-deep);
}

.skip {
	position: absolute;
	left: -999px;
	top: 0;
	background: var(--ink);
	color: var(--paper);
	padding: 0.6rem 1rem;
	z-index: 100;
}
.skip:focus {
	left: 0.75rem;
	top: 0.75rem;
}

.top {
	position: absolute;
	inset: 0 0 auto;
	z-index: 5;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 0.75rem;
	padding: 1.1rem clamp(1rem, 3vw, 2rem);
	pointer-events: none;
}

.top a,
.top button {
	pointer-events: auto;
}

.lang {
	appearance: none;
	border: 1px solid rgb(255 255 255 / 0.35);
	background: rgb(20 32 28 / 0.28);
	color: #f4f8f7;
	font: inherit;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	padding: 0.45rem 0.7rem;
	border-radius: 2px;
	cursor: pointer;
	backdrop-filter: blur(8px);
	transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.lang:hover,
.lang:focus-visible {
	background: rgb(20 32 28 / 0.45);
	border-color: rgb(255 255 255 / 0.55);
	outline: none;
}

.nav-link {
	color: #f4f8f7;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	opacity: 0.9;
}
.nav-link:hover {
	color: #fff;
	opacity: 1;
}

/* —— Hero: one composition, full-bleed visual —— */
.hero {
	position: relative;
	min-height: 100vh;
	min-height: 100dvh;
	display: grid;
	align-items: end;
	overflow: hidden;
	color: #f4f8f7;
}

.hero-media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.hero-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 58% 42%;
	transform: scale(1.04);
	animation: hero-drift 18s var(--ease) infinite alternate;
}

.hero-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(105deg, rgb(14 28 24 / 0.88) 0%, rgb(14 28 24 / 0.55) 42%, rgb(14 28 24 / 0.22) 70%, rgb(14 28 24 / 0.45) 100%),
		linear-gradient(to top, rgb(14 28 24 / 0.75) 0%, transparent 45%);
}

.hero-inner {
	position: relative;
	z-index: 1;
	width: var(--wrap);
	margin: 0 auto;
	padding: 6.5rem 0 4.5rem;
	max-width: 38rem;
	justify-self: start;
}

.brand {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(2.6rem, 7.5vw, 4.4rem);
	line-height: 1.05;
	letter-spacing: -0.03em;
	margin: 0 0 1.1rem;
	opacity: 0;
	transform: translateY(1.1rem);
	animation: rise 0.9s var(--ease) 0.1s forwards;
}

.hero h1 {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(1.35rem, 3.2vw, 1.85rem);
	line-height: 1.35;
	margin: 0 0 0.85rem;
	max-width: 22ch;
	color: #e8f0ed;
	opacity: 0;
	transform: translateY(1.1rem);
	animation: rise 0.9s var(--ease) 0.28s forwards;
}

.hero-lead {
	margin: 0 0 1.75rem;
	font-size: 1.05rem;
	color: rgb(244 248 247 / 0.82);
	max-width: 34ch;
	opacity: 0;
	transform: translateY(1.1rem);
	animation: rise 0.9s var(--ease) 0.42s forwards;
}

.cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	opacity: 0;
	transform: translateY(1.1rem);
	animation: rise 0.9s var(--ease) 0.55s forwards;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.85rem;
	padding: 0.65rem 1.25rem;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 0.98rem;
	text-decoration: none;
	border-radius: 2px;
	border: 1px solid transparent;
	transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn:hover {
	transform: translateY(-2px);
}
.btn:focus-visible {
	outline: 2px solid #cfe4df;
	outline-offset: 3px;
}

.btn-primary {
	background: #f4f8f7;
	color: var(--forest-deep);
}
.btn-primary:hover {
	background: #fff;
	color: var(--forest-deep);
}

.btn-ghost {
	background: transparent;
	color: #f4f8f7;
	border-color: rgb(244 248 247 / 0.45);
}
.btn-ghost:hover {
	border-color: #f4f8f7;
	color: #fff;
}

.btn-forest {
	background: var(--forest);
	color: #f4f8f7;
}
.btn-forest:hover {
	background: var(--forest-deep);
	color: #fff;
}

/* —— Sections —— */
main {
	position: relative;
}

.section {
	width: var(--wrap);
	margin: 0 auto;
	padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section + .section {
	border-top: 1px solid var(--line);
}

.section h2 {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(1.55rem, 3vw, 2rem);
	letter-spacing: -0.02em;
	margin: 0 0 0.85rem;
	color: var(--forest-deep);
}

.section p {
	margin: 0;
	max-width: 42rem;
	color: var(--ink-soft);
}

.section p + p {
	margin-top: 0.9rem;
}

.product {
	display: grid;
	gap: 1.75rem;
}

.product-cta {
	margin-top: 1.25rem;
}

@media (min-width: 820px) {
	.product {
		grid-template-columns: 1.1fr 0.9fr;
		align-items: center;
		gap: 3rem;
	}
}

.product-visual {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 2px;
	background: var(--forest-deep);
	box-shadow: 0 24px 48px rgb(20 32 28 / 0.12);
}

.product-visual img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s var(--ease);
}

.product-visual:hover img {
	transform: scale(1.04);
}

.contact-list {
	list-style: none;
	margin: 1.5rem 0 0;
	padding: 0;
	display: grid;
	gap: 0.85rem;
	max-width: 28rem;
}

.contact-list li {
	display: grid;
	grid-template-columns: 7.5rem 1fr;
	gap: 0.75rem;
	align-items: baseline;
	padding-bottom: 0.85rem;
	border-bottom: 1px solid var(--line);
}

.contact-list span {
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--brass);
}

.contact-list a,
.contact-list strong {
	color: var(--ink);
	font-weight: 600;
	text-decoration: none;
}
.contact-list a:hover {
	color: var(--teal);
}

.foot {
	border-top: 1px solid var(--line);
	padding: 1.75rem 0 2.5rem;
}

.foot-inner {
	width: var(--wrap);
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	justify-content: space-between;
	align-items: center;
	font-size: 0.92rem;
	color: var(--ink-soft);
}

.foot a {
	color: var(--ink-soft);
	text-decoration: none;
	font-weight: 600;
}
.foot a:hover {
	color: var(--teal);
}

[data-lang="en"] [data-i18n-vi],
[data-lang="vi"] [data-i18n-en] {
	display: none;
}

@keyframes rise {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes hero-drift {
	from {
		transform: scale(1.06) translate3d(0, 0, 0);
	}
	to {
		transform: scale(1.12) translate3d(-1.5%, -1%, 0);
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	.brand,
	.hero h1,
	.hero-lead,
	.cta-row {
		animation: none;
		opacity: 1;
		transform: none;
	}
	.hero-media img {
		animation: none;
		transform: none;
	}
	.btn:hover,
	.product-visual:hover img {
		transform: none;
	}
}

@media (max-width: 640px) {
	.hero-inner {
		padding: 5.5rem 0 3.25rem;
	}
	.contact-list li {
		grid-template-columns: 1fr;
		gap: 0.2rem;
	}
	.top {
		padding-top: 0.85rem;
	}
}
