/* =====================================================================
 * Celléva – Global tokens & layout primitives
 *
 * Fonts: TUV Domaine Display (eyebrow / pink headings) + Roboto (body).
 * File font TUV Domaine Display Regular cần upload vào
 *   /wp-content/themes/hello-elementor-child/assets/fonts/
 * theo các định dạng .woff2 / .woff (xem @font-face dưới đây). Nếu chưa có file,
 * trình duyệt sẽ fallback sang serif system.
 * ===================================================================== */

@font-face {
	font-family: 'TUV Domaine Display';
	src: url('../fonts/TUVDomaineDisplay-Regular.woff2') format('woff2'),
	     url('../fonts/TUVDomaineDisplay-Regular.woff')  format('woff'),
	     url('/wp-content/uploads/stm-fonts/TUV-Domaine-Regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

:root {
	/* Brand */
	--cl-bg:        #FFFFFF;         /* nền chính */
	--cl-bg-soft:   #F8F1EA;         /* beige nhạt – nền card / sector phụ */
	--cl-pink:      #C68781;
	--cl-pink-soft: #DCB1A8;
	--cl-text:      #2A2422;
	--cl-text-soft: #6F635D;
	--cl-line:      #E5D9CB;
	--cl-white:     #FFFFFF;
	--cl-gold:      #B89074;

	/* Typography
	 * - Pink eyebrow (TRIẾT LÝ THƯƠNG HIỆU, ĐỘI NGŨ CHUYÊN GIA…): TUV Domaine Display Regular, 48px, letter-spacing 25.
	 * - Heading đen (sub-heading): Montserrat Medium, 40px.
	 * - Body text:                  Montserrat Regular, 20px. */
	--font-display: 'TUV Domaine Display', 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
	--font-head:    'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--font-body:    'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--font-serif:   var(--font-display);
	--font-sans:    var(--font-body);

	/* Layout - dựa trên 1920px canvas */
	--container-max:    1920px;
	--container-pad:    168px;
	--container-pad-md: 80px;
	--container-pad-sm: 24px;
	--menu-pad:         62px;
	--menu-height:      125px;
}

html, body {
	background: var(--cl-bg);
	color: var(--cl-text);
	font-family: var(--font-body);
	font-weight: 400;                  /* Montserrat Regular */
	font-size: clamp(16px, 1.2vw, 20px);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

body.celleva-home { overflow-x: hidden; }

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);     /* Montserrat */
	font-weight: 500;                  /* Medium */
	font-size: clamp(24px, 2.8vw, 40px);
	color: var(--cl-text);
	line-height: 1.25;
}

/* ---------- Container ---------- */
.celleva-container {
	width: 100%;
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: var(--container-pad);
	box-sizing: border-box;
}

@media (max-width: 1440px) { :root { --container-pad: 96px; } }
@media (max-width: 1180px) { :root { --container-pad: var(--container-pad-md); } }
@media (max-width: 782px)  { :root { --container-pad: var(--container-pad-sm); } }

/* ---------- Section base ----------
 * Figma "Full sector": các sector cách nhau ~42px → padding-block ≈ 22px mỗi đầu
 * = ~44px gap giữa 2 section liền kề. Override per-section khi cần. */
.celleva-section {
	position: relative;
	padding-block: clamp(18px, 1.6vw, 28px);
	background: var(--cl-bg);
}

/* Elementor wrapper khi user nhét shortcode vào widget Shortcode */
body.celleva-home .elementor-widget-shortcode .elementor-widget-container,
body.celleva-home .elementor-shortcode { max-width: none; }
body.celleva-home .elementor-section.elementor-section-boxed > .elementor-container { max-width: 100% !important; }
body.celleva-home .elementor-section,
body.celleva-home .e-con { padding-inline: 0 !important; }

/* ---------- Typography ----------
 * Eyebrow (các tiêu đề hồng giống nhau toàn site): TUV Domaine Display Regular,
 * 48px, letter-spacing 25 (theo Figma).
 */
.celleva-eyebrow {
	font-family: 'TUV Domaine Display', 'Cormorant Garamond', Georgia, serif;
	font-weight: 400;              /* Regular */
	font-size: clamp(26px, 3.2vw, 48px); /* 48px desktop → scale xuống mobile */
	letter-spacing: 0.025em;      /* Figma letter-spacing 25 → 25/1000em */
	color: var(--cl-pink);
	margin: 0 0 10px;
	line-height: 1.1;
	text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.celleva-btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 22px 40px;                /* lớn theo Figma */
	border-radius: 999px;
	background: var(--cl-pink);
	color: #fff;
	font-family: var(--font-head);
	font-weight: 600;
	letter-spacing: 0.08em;
	font-size: 16px;
	text-transform: uppercase;
	transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
	will-change: transform;
}
.celleva-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(198,138,130,.6); }
.celleva-btn--white { background: #fff; color: var(--cl-pink); }
.celleva-btn--white:hover { background: var(--cl-bg-soft); }

/* ---------- Header / Menu spacing ---------- */
body.celleva-home .site-header,
body.celleva-home header#masthead,
body.celleva-home .ehp-header,
body.celleva-home header.elementor-section,
body.celleva-home .elementor-location-header {
	min-height: var(--menu-height);
	padding-inline: var(--menu-pad);
	box-sizing: border-box;
}

/* Header logo (Hello Elementor parent) – giới hạn chiều cao để khớp menu. */
.site-header .site-logo img,
.site-header .custom-logo,
.site-header .custom-logo-link img {
	max-height: 72px;
	width: auto;
	height: auto;
	display: block;
}

@media (max-width: 1180px) {
	body.celleva-home .site-header,
	body.celleva-home header#masthead,
	body.celleva-home .elementor-location-header {
		padding-inline: 24px;
		min-height: 80px;
	}
}

/* =====================================================================
 * FOOTER (Celleva_Global – dùng chung mọi trang)
 * ===================================================================== */
.celleva-s12 {
	background: var(--cl-bg);         /* trắng #FFFFFF – theo thiết kế */
	min-height: 200px;               /* khớp Figma */
	padding-block: 0;
	display: flex;
	align-items: center;
	border-top: 0;
}
/* Layout:
 *   [ brand   copyright   socials ]   ← brand trái, text giữa, socials phải
 *   [ brand   policies    socials ]
 * Cột giữa giãn (1fr) và căn giữa copyright + policies. */
.celleva-s12__row {
	display: grid;
	grid-template-columns: auto 1fr auto;
	grid-template-areas:
		"brand copy     socials"
		"brand policies socials";
	row-gap: 14px;
	column-gap: clamp(32px, 5vw, 80px);
	align-items: center;
	width: 100%;
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: var(--container-pad);
	box-sizing: border-box;
}
.celleva-s12 .celleva-container { padding-inline: 0; width: 100%; }
.celleva-s12__brand {
	grid-area: brand;
	align-self: center;
	display: flex;
	flex-direction: column;
	gap: 4px;
	color: var(--cl-pink);
}
.celleva-s12__socials   { grid-area: socials;   align-self: center; justify-self: end; }
.celleva-s12__copyright { grid-area: copy;      justify-self: start; text-align: left; }
.celleva-s12__policies  { grid-area: policies;  justify-self: start; }
.celleva-s12__logo-img {
	display: block;
	height: 120px;                   /* logo cao 120px theo Figma */
	width: auto;
	max-width: 100%;
}
.celleva-s12__logo-text {
	font-family: var(--font-display);
	font-size: 36px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0.02em;
	color: var(--cl-pink);
}
.celleva-s12__logo-tag {
	font-family: var(--font-body);
	font-size: 14px;
	letter-spacing: 0.04em;
	color: var(--cl-text);
	margin-top: 4px;
}
.celleva-s12__copyright {
	font-family: var(--font-body);     /* Montserrat */
	font-weight: 400;                  /* Regular */
	font-size: 16px;
	line-height: 1.5;
	color: var(--cl-text);
}
.celleva-s12__policies {
	display: flex;
	gap: clamp(24px, 3vw, 56px);
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
}
.celleva-s12__policies a {
	font-family: var(--font-body);
	font-size: 16px;
	color: var(--cl-text);
	transition: color .2s;
}
.celleva-s12__policies a:hover { color: var(--cl-pink); }
.celleva-s12__socials {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	gap: 12px;
}
.celleva-s12__socials a {
	display: grid;
	place-items: center;
	width: 44px; height: 44px;
	border-radius: 10px;
	background: var(--cl-pink);
	color: #fff;
	transition: background .2s, transform .2s;
}
.celleva-s12__socials a:hover { background: var(--cl-text); transform: translateY(-2px); }
/* Khi icon là ảnh PNG (logo có màu thật) thì bỏ nền hồng + ô vuông cứng,
 * nhưng giữ KÍCH THƯỚC BOX cố định 40×40 để 4 icon hiển thị đều nhau dù
 * mỗi file PNG nguồn có vùng padding trong suốt khác nhau. */
.celleva-s12__socials a:has(img) {
	background: transparent;
	width: 77px;
	height: 77px;
	border-radius: 0;
	padding: 0;
	transform: none;
}
.celleva-s12__socials a:has(img):hover {
	background: transparent;
	transform: translateY(-2px);
}
.celleva-s12__socials img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

@media (max-width: 640px) {
	/* Căn giữa tất cả h2, h3 trong các section Celleva trên mobile */
	.celleva-section h2,
	.celleva-section h3 {
		text-align: center;
	}
}

@media (max-width: 1180px) {
	.celleva-s12__row {
		grid-template-columns: 1fr;
		grid-template-areas:
			"brand"
			"socials"
			"policies"
			"copy";
		gap: 18px;
		text-align: center;
		justify-items: center;
	}
	.celleva-s12__brand { align-items: center; text-align: center; }
	.celleva-s12__socials,
	.celleva-s12__policies,
	.celleva-s12__copyright { justify-self: center; text-align: center; }
	/* Logo text nhỏ lại trên mobile */
	.celleva-s12__logo-text { font-size: clamp(22px, 5vw, 36px); }
	.celleva-s12__logo-img { height: 80px; }
}

/* =========================================================
 *  MENU CTA – nút "ĐẶT LỊCH TƯ VẤN" cuối menu Header
 * ========================================================= */
.celleva-menu-cta-item { list-style: none; }
.celleva-menu-cta-item a.celleva-menu-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 180px;
	height: 45px;
	padding: 0 14px;
	border-radius: 20px;
	background: #C68781;
	color: #FFFFFF !important;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1;
	transition: background .2s ease, transform .2s ease;
}
.celleva-menu-cta-item a.celleva-menu-cta:hover {
	background: #B57168;
	transform: translateY(-1px);
}
