/* ==========================================================================
   Madives – main.css
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
	/* Màu */
	--color-main: #b599ab;
	--color-main-dark: #9a7d90;
	--color-main-light: #f4eff2;
	--color-text: #4d4d4d;
	--color-heading: #4d4d4d;
	--color-white: #ffffff;
	--color-border: #e6e0e4;

	/* Font – khai báo @font-face trong fonts.css */
	--font-primary: "SVN-Gotham", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	--font-heading: "Goldplay", var(--font-primary);
	--font-subtitle: "Kokomo Breeze", cursive;

	/* Cỡ chữ */
	--fs-title: 29px;
	--fs-subtitle: 16px;
	--fs-content: 16px;
	--fs-script: 80px;      /* mọi chữ dùng Kokomo Breeze */
	--lh-content: 1.7;

	/* Layout */
	--container: 1200px;
	--container-narrow: 860px;
	--gutter: 20px;
	--section-space: 80px;
	--radius: 6px;
	--transition: 0.25s ease;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Điểm neo menu one-page: dừng ngay dưới header */
.section-anchor {
	display: block;
	height: 0;
	scroll-margin-top: calc(var(--admin-bar-h, 0px) + var(--header-h-scrolled, 84px));
}

body {
	margin: 0;
	font-family: var(--font-primary);
	font-size: var(--fs-content);
	line-height: var(--lh-content);
	color: var(--color-text);
	background: var(--color-white);
	-webkit-font-smoothing: antialiased;
}

img, video, iframe { max-width: 100%; height: auto; display: block; }

a { color: var(--color-main); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-main-dark); }

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5em;
	font-family: var(--font-heading);
	color: var(--color-heading);
	line-height: 1.3;
	font-weight: 600;
}

p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ---------- Typography ---------- */
.title {
	font-size: var(--fs-title);
	color: var(--color-heading);
	margin-bottom: 16px;
}

.subtitle {
	font-family: var(--font-subtitle);
	font-size: var(--fs-script);
	line-height: 1.1;
	font-weight: 400;
	color: var(--color-main);
	margin: 0 0 8px;
}

.content {
	font-size: var(--fs-content);
	line-height: var(--lh-content);
	color: var(--color-text);
}
.content > *:last-child { margin-bottom: 0; }
.content ul, .content ol { padding-left: 1.25em; margin-bottom: 1em; }
.content h2 { font-size: var(--fs-title); }
.content h3 { font-size: 22px; }
.content img { border-radius: var(--radius); }
.content blockquote {
	margin: 1.5em 0;
	padding: 0 0 0 20px;
	border-left: 3px solid var(--color-main);
	font-style: italic;
}

.post-date {
	margin: 0 0 8px;
	font-size: 14px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--color-main);
}

.heading { margin-bottom: 32px; }
.heading--center { text-align: center; }
.heading--right { text-align: right; }

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* ---------- Layout ---------- */
.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--gutter);
}
.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }

.section { padding: var(--section-space) 0; }

/* ---------- Button ---------- */
.btn {
	display: inline-block;
	padding: 12px 32px;
	font-size: var(--fs-content);
	font-weight: 500;
	line-height: 1.5;
	color: var(--color-white);
	background: var(--color-main);
	border: 1px solid var(--color-main);
	border-radius: var(--radius);
	cursor: pointer;
	transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.btn:hover { background: var(--color-main-dark); border-color: var(--color-main-dark); color: var(--color-white); }

.btn--outline { background: transparent; color: var(--color-main); }
.btn--outline:hover { background: var(--color-main); color: var(--color-white); }

.btn--light { background: var(--color-white); color: var(--color-main); border-color: var(--color-white); }
.btn--light:hover { background: transparent; color: var(--color-white); border-color: var(--color-white); }

.link-more { font-weight: 500; }
.link-more::after { content: " \2192"; }

/* ---------- Header ---------- */
:root {
	--header-h: 120px;          /* cao header lúc ở đầu trang */
	--header-h-scrolled: 84px;  /* cao header khi đã cuộn */
	--admin-bar-h: 0px;         /* chiều cao thanh admin bar của WordPress */
}
.admin-bar { --admin-bar-h: 32px; }

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	color: var(--color-white);
	background: var(--color-main);
	transition: background var(--transition), box-shadow var(--transition);
}
.site-header { top: var(--admin-bar-h); }
/* Trang không có hero: chừa chỗ cho header */
body:not(.has-hero-header) .site-main { padding-top: var(--header-h); }

/* Trang có hero: header trong suốt đè lên ảnh, chỉ có nền khi đã cuộn */
.has-hero-header .site-header { background: transparent; }
.has-hero-header .site-header.is-scrolled,
.site-header.is-scrolled { background: var(--color-main); box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1); }
/* Đang mở menu mobile: header có nền để liền khối với menu */
body.menu-open .site-header { background: var(--color-main); }

.site-header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	height: var(--header-h);
	padding: 0 clamp(20px, 3vw, 48px);
	transition: height var(--transition);
}
.site-header.is-scrolled .site-header__inner { height: var(--header-h-scrolled); }

.site-header__logo {
	grid-column: 2;
	grid-row: 1;
	display: block;
	color: var(--color-white);
}
.site-header__logo img {
	width: auto;
	max-height: 80px;
	transition: max-height var(--transition);
}
.site-header.is-scrolled .site-header__logo img { max-height: 56px; }
.site-header__logo-text { font-family: var(--font-heading); font-size: 24px; }

/* Desktop: nav "tan" vào grid => menu trái ở cột 1 (sát logo), menu phải ở cột 3 (sát logo) */
.site-nav { display: contents; }
.site-nav__lang,
.menu-toggle { display: none; }

.menu {
	display: flex;
	align-items: center;
	gap: clamp(20px, 2.4vw, 34px);
	list-style: none;
}
.menu--left { grid-column: 1; grid-row: 1; justify-self: end; margin-right: clamp(32px, 5vw, 75px); }
.menu--right { grid-column: 3; grid-row: 1; justify-self: start; margin-left: clamp(32px, 5vw, 75px); }

.menu li { position: relative; }
.menu a {
	display: block;
	padding: 8px 0;
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--color-white);
}
.menu > li > a { position: relative; }
.menu > li > a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 2px;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transition: transform var(--transition);
}
.menu > li > a:hover::after,
.menu > .current-menu-item > a::after,
.menu > .current-menu-ancestor > a::after { transform: scaleX(1); }
.menu a:hover { color: var(--color-white); }
.menu > li.is-current > a::after { transform: scaleX(1); }

.menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 50%;
	min-width: 220px;
	padding: 12px 0;
	list-style: none;
	background: var(--color-white);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 8px);
	transition: all var(--transition);
}
.menu li:hover > .sub-menu,
.menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.menu .sub-menu a { padding: 8px 20px; color: var(--color-text); text-align: center; }
.menu .sub-menu a:hover { color: var(--color-main); }

/* Chọn ngôn ngữ: "English ▾" */
.site-header__lang { grid-column: 3; grid-row: 1; justify-self: end; }
.lang-switcher { position: relative; }
.lang-switcher__current {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 0;
	font-family: inherit;
	font-size: 13px;
	font-weight: 400;
	color: inherit;
	background: none;
	border: 0;
	cursor: pointer;
}
.lang-switcher__current:disabled { cursor: default; }
.lang-switcher__current svg { width: 8px; height: 5px; transition: transform var(--transition); }
.lang-switcher__list {
	position: absolute;
	top: 100%;
	right: 0;
	min-width: 140px;
	padding: 8px 0;
	list-style: none;
	background: var(--color-white);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: all var(--transition);
}
.lang-switcher__list a { display: block; padding: 6px 16px; font-size: 13px; color: var(--color-text); }
.lang-switcher__list a:hover { color: var(--color-main); }
.lang-switcher:hover .lang-switcher__list,
.lang-switcher:focus-within .lang-switcher__list,
.lang-switcher.is-open .lang-switcher__list { opacity: 1; visibility: visible; transform: none; }
.lang-switcher:hover .lang-switcher__current svg,
.lang-switcher.is-open .lang-switcher__current svg { transform: rotate(180deg); }

/* Nút ☰ (mobile) */
.menu-toggle {
	position: relative;
	grid-column: 1;
	grid-row: 1;
	justify-self: start;
	width: 40px;
	height: 40px;
	padding: 0;
	background: none;
	border: 0;
	cursor: pointer;
}
.menu-toggle__bar,
.menu-toggle__bar::before,
.menu-toggle__bar::after {
	position: absolute;
	left: 8px;
	width: 24px;
	height: 2px;
	background: var(--color-white);
	transition: transform var(--transition), background var(--transition);
}
.menu-toggle__bar { top: 19px; }
.menu-toggle__bar::before,
.menu-toggle__bar::after { content: ""; left: 0; }
.menu-toggle__bar::before { top: -7px; }
.menu-toggle__bar::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }

/* Tablet/mobile: ☰ | logo | ngôn ngữ — menu mở toàn màn hình */
@media (max-width: 1199px) {
	:root { --header-h: 84px; --header-h-scrolled: 68px; }
	.site-header__logo img { max-height: 56px; }
	.site-header.is-scrolled .site-header__logo img { max-height: 44px; }
	.menu-toggle { display: block; }

	.site-nav {
		position: fixed;
		inset: calc(var(--admin-bar-h) + var(--header-h)) 0 0 0;
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 8px;
		padding: 32px var(--gutter) 48px;
		overflow-y: auto;
		background: var(--color-main);
		opacity: 0;
		visibility: hidden;
		transition: opacity var(--transition), visibility var(--transition);
	}
	.site-header.is-scrolled .site-nav { top: calc(var(--admin-bar-h) + var(--header-h-scrolled)); }
	.site-nav.is-open { opacity: 1; visibility: visible; }
	.menu,
	.menu--left,
	.menu--right { flex-direction: column; gap: 0; margin: 0; }
	.menu a { padding: 12px 0; font-size: 15px; text-align: center; }
	.menu .sub-menu {
		position: static;
		padding: 0 0 8px;
		background: none;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}
	.menu .sub-menu a { padding: 6px 0; font-size: 13px; color: rgba(255, 255, 255, 0.8); }
	body.menu-open { overflow: hidden; }
}
@media (max-width: 782px) {
	.admin-bar { --admin-bar-h: 46px; }
}

/* ---------- Footer ---------- */
.site-footer {
	color: var(--color-white);
	background: var(--color-main);
}
.site-footer__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 32px;
	min-height: 151px;
	padding: 24px 60px;
}
.site-footer__text {
	margin: 0;
	font-size: var(--fs-content);
	letter-spacing: 0.02em;
	text-transform: uppercase;
}
.site-footer__logo { display: block; justify-self: center; }
.site-footer__logo img { max-height: 76px; width: auto; }
.site-footer__logo--text { font-family: var(--font-heading); font-size: 24px; color: var(--color-white); }

.site-footer__right {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 44px;
}

.socials { display: flex; align-items: center; gap: 16px; list-style: none; }
.socials a { display: flex; color: var(--color-white); transition: opacity var(--transition); }
.socials a:hover { opacity: 0.7; }
.socials svg { width: 32px; height: 32px; }

.footer-menu { display: flex; gap: 24px; list-style: none; }
.footer-menu a,
.site-footer .privacy-policy-link {
	font-size: var(--fs-content);
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--color-white);
	transition: opacity var(--transition);
}
.footer-menu a:hover,
.site-footer .privacy-policy-link:hover { color: var(--color-white); opacity: 0.7; }

@media (max-width: 1024px) {
	.site-footer__inner { padding: 24px var(--gutter); }
	.site-footer__right { gap: 24px; }
}

@media (max-width: 767px) {
	.site-footer__inner {
		grid-template-columns: 1fr;
		justify-items: center;
		gap: 20px;
		padding: 40px var(--gutter);
		text-align: center;
	}
	.site-footer__logo { order: -1; }
	.site-footer__right { flex-direction: column; gap: 20px; }
	.site-footer__text { font-size: 14px; }
}

/* ---------- Blocks: Hero ---------- */
.block-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	height: 100vh;
	height: 100svh;
	min-height: 640px;
	padding: calc(var(--header-h) + 40px) 0 100px;
	overflow: hidden;
	color: var(--color-white);
	text-align: center;
	background: #0b3a66;
}
.block-hero__bg { position: absolute; inset: 0; }
.block-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
/* Tối nhẹ phía trên (cho menu) và phía dưới (cho chữ) */
.block-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 22%),
		linear-gradient(to top, rgba(0, 20, 40, 0.55) 0%, rgba(0, 20, 40, 0.15) 45%, rgba(0, 20, 40, 0) 65%);
}
.block-hero__inner { position: relative; z-index: 2; max-width: 900px; }
.block-hero__heading { margin: 0 0 32px; font-weight: 400; color: var(--color-white); }
.block-hero__eyebrow {
	display: block;
	font-family: var(--font-primary);
	font-size: 34px;
	font-weight: 400;
	line-height: 1.2;
	text-transform: uppercase;
}
.block-hero__title {
	display: block;
	font-family: var(--font-subtitle);
	font-size: var(--fs-script);
	font-weight: 400;
	line-height: 1.05;
}
.block-hero__content {
	margin: 0 auto;
	font-size: var(--fs-content);
	line-height: 1.4;
}
.block-hero .btn-pill { margin-top: 32px; }

@media (max-width: 767px) {
	.block-hero { min-height: 560px; padding-bottom: 56px; }
	.block-hero__eyebrow { font-size: 24px; }
	.block-hero__heading { margin-bottom: 20px; }
}

/* ---------- Blocks: Text + Image ---------- */
.block-text-image__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 64px;
}
.block-text-image--img-left .block-text-image__media { order: -1; }
.block-text-image__media img { width: 100%; border-radius: var(--radius); }
.block-text-image .btn { margin-top: 24px; }

/* ---------- Blocks: CTA ---------- */
.block-cta { background: var(--color-main); }
.block-cta .title,
.block-cta .subtitle,
.block-cta .content { color: var(--color-white); }
.block-cta .content { margin-bottom: 32px; }

/* ---------- Blocks: Slider (full width, cao 500px) ---------- */
.block-slider {
	position: relative;
	height: 500px;
	overflow: hidden;
	background: #1c2a33;
}

.block-slider__track {
	display: flex;
	height: 100%;
	transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
	will-change: transform;
}
.block-slider__slide { flex: 0 0 100%; height: 100%; }
.block-slider__link { display: block; height: 100%; }
.block-slider__slide img { width: 100%; height: 100%; object-fit: cover; }

/* Dots: đang hiển thị = nền trắng, còn lại = chỉ viền trắng */
.block-slider__dots {
	position: absolute;
	left: 50%;
	bottom: 30px;
	z-index: 2;
	display: flex;
	gap: 12px;
	transform: translateX(-50%);
}
.block-slider__dot {
	width: 12px;
	height: 12px;
	padding: 0;
	background: transparent;
	border: 1px solid var(--color-white);
	border-radius: 50%;
	cursor: pointer;
	transition: background var(--transition);
}
.block-slider__dot:hover { background: rgba(255, 255, 255, 0.5); }
.block-slider__dot.is-active { background: var(--color-white); }
.block-slider__dot:focus-visible { outline: 2px solid var(--color-white); outline-offset: 3px; }

@media (max-width: 767px) {
	.block-slider__dots { bottom: 20px; gap: 10px; }
	.block-slider__dot { width: 10px; height: 10px; }
}

/* ---------- Blocks: Intro + images (chữ dùng style .showcase-intro) ---------- */
.block-intro-images__img { position: relative; }
.block-intro-images__img img { display: block; width: 100%; height: auto; }
/* Canvas hiệu ứng cá nhảy phủ lên ảnh */
.fish-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------- Blocks: Coverflow (ảnh giữa to + nổi lên) ---------- */
.block-coverflow {
	--cf-w: 39vw;                 /* rộng ảnh giữa. Tối thiểu ~38.2vw để 2 ảnh bên (81%) vẫn tràn ra mép màn hình */
	--cf-scale: 0.81;             /* ảnh 2 bên = 81% ảnh giữa */
	position: relative;
	padding: 85px 0 16px;
	overflow: hidden;
}
/* Dải ảnh nền phía trên: ảnh giữa nhô lên đè vào dải này */
.block-coverflow__band {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 150px;
}
.block-coverflow__band img { width: 100%; height: 100%; object-fit: cover; }

/* Đè lên section phía trên: kéo lên đúng phần ảnh giữa cao hơn ảnh bên
   => mép trên 2 ảnh bên trùng mép dưới section trên, ảnh giữa nhô lên đè vào */
.block-coverflow--overlap {
	z-index: 2;
	margin-top: calc(var(--cf-w) * (1 - var(--cf-scale)) / -2);
	padding-top: 0;
}

/* Dải nền màu biển (lấy màu từ mép dưới ảnh phía trên) – cao đúng bằng 2 ảnh bên,
   để khi kéo slider không lộ nền trắng */
.block-coverflow::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: calc(var(--cf-w) * (1 - var(--cf-scale)) / 2);
	height: calc(var(--cf-w) * var(--cf-scale));
	z-index: 0;
	background:
		linear-gradient(to bottom, rgba(0, 20, 40, 0) 0%, rgba(0, 20, 40, 0.28) 100%),
		linear-gradient(to right, #006e8d 0%, #005b7e 30%, #004670 50%, #004a76 70%, #00618b 100%);
}
/* Khi không đè lên section trên (có khoảng trắng/dải ảnh riêng) thì không cần dải nền này */
.block-coverflow:not(.block-coverflow--overlap)::before { display: none; }

.block-coverflow__viewport { position: relative; z-index: 1; }
.block-coverflow__track {
	display: flex;
	transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
	will-change: transform;
}
.block-coverflow__slide {
	position: relative;
	z-index: 1;
	flex: 0 0 var(--cf-w);
	aspect-ratio: 1 / 1;
	background: #e4e4e4;
	transform: scale(var(--cf-scale));
	transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
	cursor: pointer;
}
.block-coverflow__viewport { cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.block-coverflow__viewport.is-dragging { cursor: grabbing; }
.block-coverflow__viewport.is-dragging .block-coverflow__slide { cursor: grabbing; }
.block-coverflow__viewport.is-dragging img { pointer-events: none; }
/* Thu nhỏ về phía ảnh giữa để 2 ảnh bên luôn sát mép ảnh giữa */
.block-coverflow__slide.is-prev { transform-origin: right center; }
.block-coverflow__slide.is-next { transform-origin: left center; }
.block-coverflow__slide.is-active {
	z-index: 2;
	transform: none;
	cursor: default;
}
.block-coverflow__slide a { display: block; height: 100%; }
.block-coverflow__slide img { width: 100%; height: 100%; object-fit: cover; }

.block-coverflow__nav {
	position: absolute;
	top: 50%;
	z-index: 3;
}
.block-coverflow__nav--prev { left: calc(50% - var(--cf-w) / 2 - 36px); transform: translate(-50%, -50%); }
.block-coverflow__nav--next { right: calc(50% - var(--cf-w) / 2 - 36px); transform: translate(50%, -50%); }

@media (max-width: 767px) {
	.block-coverflow { --cf-w: 72vw; padding-top: 48px; }
	.block-coverflow--overlap { padding-top: 0; }
	.block-coverflow__band { height: 90px; }
	.block-coverflow__nav--prev { left: calc(50% - var(--cf-w) / 2 - 20px); }
	.block-coverflow__nav--next { right: calc(50% - var(--cf-w) / 2 - 20px); }
}

/* ---------- Nút tròn điều hướng slider: bình thường mờ, hover đậm ---------- */
.nav-circle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	color: var(--color-main);
	background: var(--color-white);
	border: 0;
	border-radius: 50%;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
	opacity: 0.5;
	cursor: pointer;
	transition: opacity var(--transition), color var(--transition), background var(--transition);
}
.nav-circle svg { width: 22px; height: 22px; }
.nav-circle:hover,
.nav-circle:focus-visible { opacity: 1; color: var(--color-white); background: var(--color-main); }
.nav-circle:focus-visible { outline: 2px solid var(--color-main); outline-offset: 3px; }
@media (max-width: 767px) {
	.nav-circle { width: 38px; height: 38px; }
}

/* ---------- Blocks: Showcase (slider ảnh + chữ) ---------- */
.block-showcase {
	--slide-w: min(545px, 72%);
	--slide-gap: 10px;
}

/* Phần mở đầu (không bắt buộc) – nền trắng */
.showcase-intro {
	position: relative;
	padding: 75px 0 90px;
	overflow: hidden;
	text-align: center;
}
/* Lá trang trí 2 bên (upload trong admin), nằm sau chữ */
.showcase-intro__leaf {
	position: absolute;
	pointer-events: none;
}
.showcase-intro__leaf img { display: block; width: 100%; height: auto; }
/* Vị trí theo file AI (artboard 1280 => giữa trang = X 640; X/Y = tâm vật thể):
   - Lá trái:  W 294.6, tâm (302, 3783.4)    => mép trái = giữa trang - 485px, mép dưới = đáy vùng trắng
   - Lá phải:  W 189.2, tâm (1046.8, 3691.2) => mép trái = giữa trang + 312px, mép dưới cao hơn lá trái 53px */
.showcase-intro__leaf--left {
	bottom: 0;
	left: max(-40px, calc(50% - 485px));
	width: 295px;
	transform: translateY(33.333%); /* dịch xuống để vùng xám bên dưới che 1/3 lá */
}
.showcase-intro__leaf--right {
	bottom: 53px;
	left: min(calc(50% + 312px), calc(100% - 150px));
	width: 189px;
}
.showcase-intro__inner { position: relative; z-index: 1; }
.showcase-intro__eyebrow {
	margin: 0 0 12px;
	font-size: var(--fs-subtitle);
	font-weight: 500;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--color-text);
}
.showcase-intro__title {
	margin: 0 0 36px;
	font-family: var(--font-primary); /* Goldplay chỉ có bản 600 → dùng Gotham để có weight 400 */
	font-size: 28px;
	font-weight: 400;
	text-transform: uppercase;
	color: var(--color-main);
}
.showcase-intro__desc {
	max-width: 780px;
	margin: 0 auto;
	font-size: var(--fs-content);
	line-height: 1.35;
	color: var(--color-text);
}
.showcase-intro__desc p { margin: 0 0 1.4em; }
.showcase-intro__desc p:last-child { margin-bottom: 0; }

/* Phần slider – nền xám */
.block-showcase__body {
	position: relative;
	padding: 48px 0 72px;
	overflow: hidden;
	background: #f2f2f2;
}
/* 2 khối showcase liền nhau (khối dưới không có phần mở đầu): bỏ khoảng trên để vùng xám nối liền,
   hàng ảnh bên dưới "che" phần lá bị cắt ở đáy khối trên */
.block-showcase + .block-showcase:not(:has(.showcase-intro)) > .block-showcase__body { padding-top: 0; }
/* Lá trang trí vùng xám (nằm sau ảnh + chữ). Theo file AI (artboard 1280): W 290px, tâm X 497
   => mép trái = giữa trang - 288px; lá tràn qua đáy vùng xám ~45px (bị cắt). Ảnh bên trái => đối xứng. */
.block-showcase__decor {
	position: absolute;
	bottom: -45px;
	width: 290px;
	pointer-events: none;
}
.block-showcase__decor img { display: block; width: 100%; height: auto; }
/* Ảnh bên trái (VD: Mansion) – theo thiết kế: lá dưới lật ngang, nằm dưới khối chữ, bị cắt ở đáy vùng xám */
.block-showcase--img-left .block-showcase__decor {
	bottom: -55px;
	left: calc(50% + 316px);
	width: 295px;
	transform: scaleX(-1);
}
/* Lá trên: bị cắt ở mép trên vùng xám (và mép phải màn hình ở khổ 1280) */
.block-showcase__decor-top {
	position: absolute;
	top: -80px;
	width: 295px;
	pointer-events: none;
}
.block-showcase__decor-top img { display: block; width: 100%; height: auto; }
.block-showcase--img-left .block-showcase__decor-top { left: calc(50% + 477px); }
.block-showcase--img-right .block-showcase__decor-top { right: calc(50% + 477px); transform: scaleX(-1); }

.block-showcase__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 54% 1fr;
	align-items: center;
}

/* Media: slide hiển thị ở bên phải, slide kế tiếp tràn ra mép trái */
.block-showcase__media { position: relative; }
.block-showcase__viewport { overflow: hidden; }
.block-showcase__track {
	display: flex;
	justify-content: flex-end;
	column-gap: var(--slide-gap);
	transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}
.block-showcase__slide {
	flex: 0 0 var(--slide-w);
	aspect-ratio: 545 / 500;
	background: #e4e4e4;
}
.block-showcase__slide img { width: 100%; height: 100%; object-fit: cover; }

/* Nút điều hướng: nằm ở chỗ giáp 2 ảnh (giao diện nút ở .nav-circle) */
.block-showcase__nav {
	position: absolute;
	top: 50%;
	right: calc(var(--slide-w) + var(--slide-gap) / 2);
	z-index: 2;
	transform: translate(50%, -50%);
}

/* Text: các khối chồng lên nhau, khối đang hiển thị mờ dần vào */
.block-showcase__texts {
	display: grid;
	padding: 0 clamp(24px, 6vw, 100px) 0 clamp(24px, 4.6vw, 66px);
}
.block-showcase__text {
	grid-area: 1 / 1;
	max-width: 510px;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}
.block-showcase__text.is-active { opacity: 1; transform: none; transition-delay: 0.2s; }
.block-showcase__title {
	margin: 0 0 20px;
	font-family: var(--font-primary); /* Goldplay chỉ có bản 600 → dùng Gotham để có weight 400 */
	font-size: 28px;
	font-weight: 400;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--color-main);
}
.block-showcase__content {
	margin: 0 0 40px;
	font-size: var(--fs-content);
	line-height: 1.35;
	color: var(--color-text);
}

/* Ảnh bên phải: đối xứng – chữ trái, slide kế tiếp lộ ở mép phải, nút ở chỗ giáp 2 ảnh */
.block-showcase--img-right .block-showcase__inner { grid-template-columns: 1fr 54%; }
.block-showcase--img-right .block-showcase__media { order: 2; }
.block-showcase--img-right .block-showcase__track { justify-content: flex-start; }
.block-showcase--img-right .block-showcase__nav {
	right: auto;
	left: calc(var(--slide-w) + var(--slide-gap) / 2);
	transform: translate(-50%, -50%);
}
.block-showcase--img-right .block-showcase__texts { padding: 0 clamp(24px, 4.6vw, 66px) 0 clamp(24px, 7.6vw, 110px); }
.block-showcase--img-right .block-showcase__decor { left: calc(50% - 288px); }

@media (max-width: 1024px) {
	.block-showcase__inner { grid-template-columns: 58% 1fr; }
	.block-showcase--img-right .block-showcase__inner { grid-template-columns: 1fr 58%; }
}

@media (max-width: 767px) {
	.block-showcase { --slide-w: 80%; }
	.block-showcase__body { padding: 32px 0 48px; }
	.block-showcase__decor { width: 180px; bottom: -28px; }
	.block-showcase--img-right .block-showcase__decor { left: auto; right: -20px; }
	.block-showcase--img-left .block-showcase__decor { left: auto; right: -20px; bottom: -28px; width: 180px; }
	.block-showcase__decor-top { top: -50px; width: 180px; }
	.block-showcase--img-left .block-showcase__decor-top { left: auto; right: -70px; }
	.block-showcase--img-right .block-showcase__decor-top { right: auto; left: -70px; }
	.showcase-intro { padding: 48px 0 56px; }
	.showcase-intro__leaf--left { width: 180px; }
	.showcase-intro__leaf--right { bottom: 32px; width: 115px; }
	.showcase-intro__title { margin-bottom: 24px; }
	.block-showcase__inner,
	.block-showcase--img-right .block-showcase__inner { grid-template-columns: 1fr; row-gap: 32px; }
	.block-showcase--img-right .block-showcase__media { order: 0; }
	.block-showcase--img-right .block-showcase__texts { padding: 0 var(--gutter); }
	.block-showcase__texts { padding: 0 var(--gutter); }
	.block-showcase__content { margin-bottom: 28px; }
}

/* ---------- Blocks: Feature (banner ảnh + chữ) ---------- */
.block-feature {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 660px;
	overflow: hidden;
	color: var(--color-white);
	background: #0b3a66;
}
.block-feature__bg { position: absolute; inset: 0; }
.block-feature__bg img { width: 100%; height: 100%; object-fit: cover; }
/* Lớp tối nhẹ phía có chữ để dễ đọc */
.block-feature::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, rgba(0, 30, 60, 0.45) 0%, rgba(0, 30, 60, 0.15) 45%, rgba(0, 30, 60, 0) 70%);
}
.block-feature--right::before { transform: scaleX(-1); }

.block-feature__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	padding: 90px clamp(16px, 7.8vw, 113px);
}
.block-feature--right .block-feature__inner { display: flex; justify-content: flex-end; }
.block-feature__text { max-width: 430px; }

.block-feature__title {
	margin: 0 0 8px;
	font-family: var(--font-subtitle);
	font-size: var(--fs-script);
	font-weight: 400;
	line-height: 1;
	color: var(--color-white);
}
.block-feature__subtitle {
	margin: 0 0 40px;
	font-size: var(--fs-subtitle);
	letter-spacing: 0.02em;
	text-transform: uppercase;
}
.block-feature__content {
	margin: 0;
	font-size: var(--fs-content);
	line-height: 1.35;
}
/* Không có tiêu đề phụ: tự chừa khoảng cách dưới tiêu đề */
.block-feature__title + .block-feature__content { margin-top: 28px; }
.block-feature .btn-pill { margin-top: 32px; }

@media (max-width: 767px) {
	.block-feature { min-height: 520px; align-items: flex-end; }
	.block-feature::before,
	.block-feature--right::before {
		transform: none;
		background: linear-gradient(0deg, rgba(0, 30, 60, 0.7) 0%, rgba(0, 30, 60, 0.2) 60%, rgba(0, 30, 60, 0) 100%);
	}
	.block-feature__inner { padding: 64px var(--gutter) 48px; }
	.block-feature--right .block-feature__inner { justify-content: flex-start; }
	.block-feature__subtitle { margin-bottom: 20px; }
}

/* ---------- Blocks: Venues ---------- */
.block-venues {
	--venues-pad: clamp(16px, 2.5vw, 36px);
	--venues-gap: 20px;
	--venues-band: 22px;
	--venues-top: 76px;
	padding: var(--venues-top) 0 0;
	overflow: clip; /* cắt lá trang trí ở mép trên section */
}
/* Hàng ảnh/nền xám nằm trên lá trang trí => lá bị vùng xám "che" */
.block-venues__rows { position: relative; z-index: 1; }
/* Intro: tiêu đề chữ viết tay + mô tả + họa tiết */
.venues-intro {
	position: relative;
	margin-bottom: 100px;
	text-align: center;
}
/* Lá trang trí 2 bên tiêu đề (upload trong admin). Vị trí đo theo thiết kế:
   Kiểu 1 (Wellness):       trái dưới (bị vùng xám che) – phải trên (cắt mép trên section)
   Kiểu 2 (Living & Dining): trái trên (cắt mép trên section) – phải dưới (bị vùng xám che) */
.venues-intro__leaf { position: absolute; pointer-events: none; }
.venues-intro__leaf img { display: block; width: 100%; height: auto; }

.venues-intro--leaves-1 .venues-intro__leaf--left {
	bottom: -105px;
	left: max(-60px, calc(50% - 572px));
	width: 265px;
}
.venues-intro--leaves-1 .venues-intro__leaf--right {
	top: calc(-1 * var(--venues-top) - 40px);
	left: min(calc(100% - 120px), calc(50% + 408px));
	width: 205px;
}
.venues-intro--leaves-2 .venues-intro__leaf--left {
	top: calc(-1 * var(--venues-top) - 30px);
	left: max(-40px, calc(50% - 321px));
	width: 150px;
}
.venues-intro--leaves-2 .venues-intro__leaf--right {
	bottom: -130px;
	left: min(calc(100% - 140px), calc(50% + 204px));
	width: 320px;
}
.venues-intro__inner { position: relative; z-index: 1; }
.venues-intro__title {
	margin: 0 0 36px;
	font-family: var(--font-subtitle);
	font-size: var(--fs-script);
	font-weight: 400;
	line-height: 1.1;
	color: var(--color-main);
}
.venues-intro__desc {
	max-width: 780px;
	margin: 0 auto;
	font-size: var(--fs-content);
	line-height: 1.4;
	color: var(--color-text);
}

.block-venues__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	column-gap: var(--venues-gap);
	padding: 0 var(--venues-pad);
}
.block-venues__grid + .block-venues__grid { margin-top: 120px; }

/* Desktop: ảnh hàng 1, text hàng 2 để dải xám chạy ngang cả 3 ảnh */
.venue { display: contents; }
.venue__media { grid-row: 1; position: relative; z-index: 1; }
.venue__body { grid-row: 2; }
/* Gán cột cố định để ảnh nằm chồng lên dải xám (child 1 là .block-venues__band) */
.venue:nth-child(2) > * { grid-column: 1; }
.venue:nth-child(3) > * { grid-column: 2; }
.venue:nth-child(4) > * { grid-column: 3; }

.block-venues__band {
	grid-column: 1 / -1;
	grid-row: 1;
	margin: calc(var(--venues-band) * -1) calc(var(--venues-pad) * -1);
	background: #f2f2f2;
}

.venue__media {
	aspect-ratio: 292 / 306;
	overflow: hidden;
	background: #e4e4e4;
}
.venue__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.venue:hover .venue__media img { transform: scale(1.04); }

.venue__body {
	max-width: 390px;
	width: 100%;
	justify-self: center;
	padding: 56px 0 0;
	text-align: center;
}
.venue__name {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 35px;
	margin: 0 0 22px;
	font-size: var(--fs-title);
	line-height: 1.1;
	text-transform: uppercase;
	color: var(--color-text);
}
.venue__name img { max-height: 35px; width: auto; }
.venue__tagline {
	margin: 0 0 22px;
	font-size: var(--fs-subtitle);
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--color-text);
}
.venue__content {
	margin: 0 0 28px;
	font-size: var(--fs-content);
	line-height: 1.4;
	color: var(--color-text);
}

.btn-pill {
	display: inline-block;
	min-width: 145px;
	padding: 9px 28px;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-align: center;
	color: var(--color-main);
	border: 1px solid rgba(181, 153, 171, 0.6);
	border-radius: 999px;
	transition: color var(--transition), background var(--transition), border-color var(--transition);
}
.btn-pill:hover { color: var(--color-white); background: var(--color-main); border-color: var(--color-main); }

/* Biến thể nút pill (phải đặt sau .btn-pill) */
.btn-pill--solid { color: var(--color-white); background: var(--color-main); border-color: var(--color-main); }
.btn-pill--solid:hover { color: var(--color-white); background: var(--color-main-dark); border-color: var(--color-main-dark); }
.btn-pill--light { color: var(--color-white); border-color: rgba(255, 255, 255, 0.7); }
.btn-pill--light:hover { color: var(--color-main); background: var(--color-white); border-color: var(--color-white); }

.block-venues__divider {
	max-width: 1145px;
	margin: 118px auto 0;
	border: 0;
	border-top: 1px solid #e0e0e0;
}

@media (max-width: 1024px) {
	.venue__body { padding: 40px 12px 0; }
}

/* Mobile: mỗi venue xếp dọc ảnh + text */
@media (max-width: 767px) {
	.block-venues { --venues-top: 48px; }
	.venues-intro__leaf { transform: scale(0.55); }
	.venues-intro__leaf--left { transform-origin: left center; }
	.venues-intro__leaf--right { transform-origin: right center; }
	.venues-intro { margin-bottom: 56px; }
	.venues-intro__title { margin-bottom: 24px; }
	.block-venues__grid { grid-template-columns: 1fr; row-gap: 56px; }
	.block-venues__grid + .block-venues__grid { margin-top: 56px; }
	.block-venues__band { display: none; }
	.venue { display: block; }
	.venue__body { margin: 0 auto; padding: 28px 0 0; }
	.block-venues__divider { margin-top: 64px; }
}

/* Venues – 2 cột: ảnh ngang hơn, lề rộng hơn */
.block-venues--cols-2 {
	--venues-pad: clamp(16px, 3.6vw, 52px);
	--venues-gap: 28px;
}
.block-venues--cols-2 .block-venues__grid { grid-template-columns: repeat(2, 1fr); }
.block-venues--cols-2 .venue__media { aspect-ratio: 436 / 306; }
.block-venues--cols-2 .venue__body { max-width: 520px; }

/* Venues – 1 ảnh thay cho danh sách venue (+ nút bấm) */
.block-venues__single {
	padding: 0 var(--venues-pad) 56px;
	text-align: center;
}
.block-venues__single img {
	width: 100%;
	max-width: 1500px;   /* đúng chiều rộng gốc của ảnh ghép */
	height: auto;
	margin: 0 auto;
}
.block-venues__single .btn-pill { margin-top: 40px; }

@media (max-width: 767px) {
	.block-venues__single { padding-bottom: 40px; }
	.block-venues__single .btn-pill { margin-top: 28px; }
}

/* Venues – nền xám phủ cả ảnh lẫn chữ */
.block-venues--bg-full .block-venues__band { display: none; }
.block-venues--bg-full .block-venues__rows {
	padding: var(--venues-band) 0 72px;
	background: #f2f2f2;
}
.block-venues--bg-full .block-venues__grid + .block-venues__grid { margin-top: 72px; }

@media (max-width: 767px) {
	.block-venues--cols-2 .block-venues__grid { grid-template-columns: 1fr; }
	.block-venues--bg-full .block-venues__rows { padding: 16px 0 48px; }
	.block-venues--bg-full .block-venues__grid + .block-venues__grid { margin-top: 56px; }
}

/* ---------- Blocks: Contact ---------- */
.block-contact {
	position: relative;
	padding: 85px 0 160px;
	overflow: hidden;
	background: var(--color-white);
}
.block-contact__bg { position: absolute; inset: 0; }
.block-contact__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
/* Phần trên chuyển dần sang trắng để phần chữ + logo dễ đọc */
.block-contact.has-bg::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	z-index: 1;
	height: 40%;
	background: linear-gradient(to bottom, var(--color-white) 0%, rgba(255, 255, 255, 0.85) 45%, rgba(255, 255, 255, 0) 100%);
}
.block-contact__inner { position: relative; z-index: 2; }

.block-contact__brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 50px;
	margin-bottom: 180px;
	text-align: center;
}
.block-contact__heading {
	margin: 0;
	font-size: var(--fs-content);
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--color-text);
}
.block-contact__logo img { max-height: 112px; width: auto; }

/* Card: 600 x 420 */
.contact-card {
	width: 100%;
	max-width: 600px;
	min-height: 420px;
	margin: 0 auto;
	padding: 40px 74px 36px;
	text-align: center;
	color: var(--color-text);
	background: rgba(255, 255, 255, 0.7);
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: 20px;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
.contact-card__title {
	margin: 0 0 16px;
	font-size: 22px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--color-text);
}
.contact-card__desc {
	/* Nới rộng hơn phần padding của card để mô tả gói gọn trong 2 dòng như thiết kế */
	margin: 0 -34px 24px;
	font-size: 13px;
	line-height: 1.4;
}

/* Form */
.contact-form { text-align: left; }
.contact-form__hp { position: absolute; left: -9999px; }
.contact-form__field { display: block; }
.contact-form input,
.contact-form textarea {
	display: block;
	width: 100%;
	padding: 12px 0 5px;
	font-family: inherit;
	font-size: 13px;
	color: var(--color-text);
	background: transparent;
	border: 0;
	border-bottom: 1px solid rgba(77, 77, 77, 0.45);
	border-radius: 0;
	outline: none;
	transition: border-color var(--transition);
}
.contact-form textarea { height: 64px; resize: none; }
.contact-form input::placeholder,
.contact-form textarea::placeholder {
	color: var(--color-text);
	opacity: 1;
	text-transform: uppercase;
}
.contact-form input:focus,
.contact-form textarea:focus { border-bottom-color: var(--color-main); }
.contact-form .is-invalid { border-bottom-color: #d0455b; }

.contact-form__footer { margin-top: 32px; text-align: center; }
.btn-send {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 6px 20px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--color-text);
	background: transparent;
	border: 1px solid var(--color-text);
	border-radius: 999px;
	cursor: pointer;
	transition: color var(--transition), background var(--transition), border-color var(--transition);
}
.btn-send svg { width: 14px; height: 14px; }
.btn-send:hover { color: var(--color-white); background: var(--color-main); border-color: var(--color-main); }
.btn-send:disabled { opacity: 0.6; cursor: wait; }

.contact-form__status { margin: 12px 0 0; font-size: 13px; }
.contact-form__status:empty { display: none; }
.contact-form__status.is-success { color: #2e7d4f; }
.contact-form__status.is-error { color: #d0455b; }

@media (max-width: 767px) {
	.block-contact { padding: 56px 0 80px; }
	.block-contact__brand { gap: 32px; margin-bottom: 80px; }
	.block-contact__logo img { max-height: 84px; }
	.contact-card { min-height: 0; padding: 32px 24px; }
}

/* ---------- Blocks: Embed (flipbook / iframe) ---------- */
.block-embed__frame {
	height: var(--embed-h, 700px);
	border: 1px solid #e0e0e0;
	background: #f7f7f7;
}
.block-embed__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.block-embed .heading + .block-embed__frame { margin-top: 32px; }
@media (max-width: 767px) {
	.block-embed__frame { height: var(--embed-h-m, 450px); }
}

/* ---------- Blocks: Partner (logo đối tác + số liệu chạy số + liên hệ) ---------- */
.block-partner {
	padding: 72px 0;
	text-align: center;
}
.block-partner__divider {
	max-width: 1145px;
	margin: 0 auto;
	border: 0;
	border-top: 1px solid #e0e0e0;
}
.block-partner__divider--top { margin-bottom: 72px; }
.block-partner__divider--bottom { margin-top: 72px; }
/* Mặc định không có đường kẻ trên: kéo sát lên đường kẻ cuối của block Venues phía trên */
.block-venues + .block-partner { padding-top: 64px; }

.block-partner__eyebrow,
.partner-contact__eyebrow {
	margin: 0 0 20px;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--color-main);
}
.partner-contact__eyebrow { font-weight: 400; }
.block-partner__logo {
	display: block;
	width: min(var(--logo-w, 280px), 80%);
	margin: 0 auto 56px;
}
.block-partner__logo--has-sub { margin-bottom: 10px; }
/* Dòng chữ dưới logo (VD: — MALDIVES —) */
.block-partner__sub {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin: 0 0 56px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--color-heading);
}
.block-partner__sub span { margin-right: -0.3em; } /* bù letter-spacing ở chữ cuối để cân giữa */
.block-partner__sub::before,
.block-partner__sub::after {
	content: "";
	width: 28px;
	height: 1px;
	background: currentColor;
}
.block-partner__logo img { width: 100%; height: auto; }
a.block-partner__logo { transition: opacity var(--transition); }
a.block-partner__logo:hover { opacity: 0.8; }

.partner-stats {
	display: grid;
	grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
	gap: 40px 24px;
	max-width: 1000px;
	margin: 0 auto 80px;
	list-style: none;
}
.partner-stat__value {
	margin: 0 0 6px;
	font-family: var(--font-heading);
	font-size: clamp(30px, 3.2vw, 40px);
	font-weight: 600;
	line-height: 1.15;
	color: var(--color-main);
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}
/* Giữ nguyên độ rộng khi số đang chạy để chữ không bị xô lệch (JS đặt min-width) */
.partner-stat__value .js-count { display: inline-block; text-align: right; }
.partner-stat__label {
	margin: 0 0 6px;
	font-size: var(--fs-subtitle);
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--color-heading);
}
.partner-stat__desc {
	max-width: 230px;
	margin: 0 auto;
	font-size: 14px;
	line-height: 1.35;
	color: var(--color-text);
}

.partner-contact { font-size: 14px; line-height: 1.5; color: var(--color-text); }
.partner-contact__eyebrow { margin-bottom: 28px; }
.partner-contact__name { margin: 0; font-weight: 500; color: var(--color-heading); }
.partner-contact__role { margin: 0 0 18px; }
.partner-contact__lines p { margin: 0; }
.partner-contact__sep { margin: 0 6px; }
.partner-contact a { color: inherit; }
.partner-contact a:hover { color: var(--color-main); }

@media (max-width: 1024px) {
	.partner-stats { max-width: 620px; }
	.partner-stats:not(.partner-stats--cols-1) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.block-partner { padding: 48px 0; }
	.block-venues + .block-partner { padding-top: 48px; }
	.block-partner__divider--top { margin-bottom: 48px; }
	.block-partner__divider--bottom { margin-top: 48px; }
	.block-partner__logo { margin-bottom: 40px; }
	.block-partner__logo--has-sub { margin-bottom: 8px; }
	.block-partner__sub { margin-bottom: 40px; font-size: 12px; }
	.partner-stats { gap: 32px 16px; margin-bottom: 56px; }
	.partner-stat__value { font-size: 30px; }
	.partner-stat__label { font-size: 14px; }
	.partner-stat__desc { font-size: 13px; }
}

/* ---------- Posts ---------- */
.post-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}
.card { display: flex; flex-direction: column; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
.card__thumb { display: block; aspect-ratio: 16 / 10; background: var(--color-main-light); }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 24px; }
.card__title { font-size: 20px; }
.card__title a { color: var(--color-heading); }
.card__title a:hover { color: var(--color-main); }

.post-thumb { margin-bottom: 32px; }
.post-thumb img { width: 100%; border-radius: var(--radius); }

.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; justify-content: center; gap: 8px; }
.pagination .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 40px; height: 40px;
	padding: 0 8px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	color: var(--color-text);
}
.pagination .page-numbers.current,
.pagination a.page-numbers:hover { color: var(--color-white); background: var(--color-main); border-color: var(--color-main); }

.section--404 .btn { margin-top: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	:root { --section-space: 64px; }
	.post-grid { grid-template-columns: repeat(2, 1fr); }
	.block-text-image__grid { gap: 40px; }
}

@media (max-width: 767px) {
	:root {
		--fs-title: 24px;
		--fs-script: 48px;
		--section-space: 48px;
		--gutter: 16px;
	}
	.block-text-image__grid,
	.post-grid { grid-template-columns: 1fr; }
	.block-text-image--img-left .block-text-image__media { order: 0; }
}

/* ==========================================================================
   Hiệu ứng khi cuộn (scroll reveal) + Hero + Parallax
   - Chỉ chạy khi <html> có class "has-reveal" (bật trong <head>, bỏ qua nếu "giảm chuyển động")
   - main.js thêm class "is-visible" khi phần tử vào màn hình
   ========================================================================== */

/* Nhóm 1: hiện dần + trượt lên */
.has-reveal :is(
	.block-hero__inner > *,
	.showcase-intro__inner > *,
	.venues-intro__inner > *,
	.block-feature__text > *,
	.block-contact__brand > *,
	.contact-card,
	.venue__media,
	.venue__body,
	.block-showcase__texts,
	.block-coverflow__viewport,
	.block-partner__inner > :not(hr),
	.site-footer__inner > *
) {
	opacity: 0;
	transform: translate3d(0, 40px, 0);
	transition:
		opacity 0.9s ease var(--reveal-delay, 0s),
		transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) var(--reveal-delay, 0s);
}

/* Nhóm 2: ảnh slider Mansion/Cocoons trượt vào từ phía có ảnh */
.has-reveal .block-showcase--img-left .block-showcase__media,
.has-reveal .block-showcase--img-right .block-showcase__media {
	opacity: 0;
	transition:
		opacity 1s ease var(--reveal-delay, 0s),
		transform 1s cubic-bezier(0.22, 0.61, 0.36, 1) var(--reveal-delay, 0s);
}
.has-reveal .block-showcase--img-left .block-showcase__media { transform: translate3d(-60px, 0, 0); }
.has-reveal .block-showcase--img-right .block-showcase__media { transform: translate3d(60px, 0, 0); }

/* Nhóm 3: chỉ mờ dần (phần tử đã có transform riêng: lá trang trí, ảnh tràn màn hình, slider) */
.has-reveal :is(
	.showcase-intro__leaf,
	.venues-intro__leaf,
	.block-showcase__decor,
	.block-showcase__decor-top,
	.block-intro-images__img,
	.block-slider
) {
	opacity: 0;
	transition: opacity 1.2s ease var(--reveal-delay, 0s);
}

/* Trạng thái đã hiện */
.has-reveal .is-visible:is(
	.block-hero__inner > *,
	.showcase-intro__inner > *,
	.venues-intro__inner > *,
	.block-feature__text > *,
	.block-contact__brand > *,
	.contact-card,
	.venue__media,
	.venue__body,
	.block-showcase__texts,
	.block-showcase__media,
	.block-coverflow__viewport,
	.block-partner__inner > :not(hr),
	.site-footer__inner > *
) {
	opacity: 1;
	transform: none;
}
.has-reveal .is-visible:is(
	.showcase-intro__leaf,
	.venues-intro__leaf,
	.block-showcase__decor,
	.block-showcase__decor-top,
	.block-intro-images__img,
	.block-slider
) {
	opacity: 1;
}

/* Hero: ảnh nền thu nhẹ từ 108% về 100% khi mở trang */
@media (prefers-reduced-motion: no-preference) {
	.block-hero__bg img { animation: mdv-hero-zoom 8s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
}
@keyframes mdv-hero-zoom {
	from { transform: scale(1.08); }
	to { transform: scale(1); }
}

/* Parallax: nền kéo dài thêm trên/dưới để khi trôi không lộ mép (JS đặt transform) */
.js-parallax { top: -12%; bottom: -12%; will-change: transform; }
