/* TNG Chrome — new header/footer/CTA. Brand palette: #405363 / #314250 / white only. */

/* Reset for our scope */
.tngc-header *, .tngc-footer *, .tngc-mbar *, .tngc-popup *, .tngc-lang-modal * { box-sizing: border-box; }

/* ───────── HEADER ───────── */
.tngc-header {
	position: sticky;
	top: 0;
	z-index: 9000;
	background: #fff;
	border-bottom: 1px solid #ececef;
	font-family: 'Roboto', system-ui, -apple-system, sans-serif;
}
.tngc-header__bar {
	max-width: 1320px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 14px 24px;
}
.tngc-header__brand img {
	display: block;
	width: auto;
	height: 48px;
	max-width: 200px;
}
.tngc-nav { flex: 1; }
.tngc-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 24px;
	justify-content: flex-end;
}
.tngc-nav__link {
	color: #314250;
	text-decoration: none;
	font-size: 15px;
	font-weight: 500;
	white-space: nowrap;
	transition: color .15s ease;
}
.tngc-nav__link:hover { color: #405363; }

.tngc-header__cta {
	display: flex;
	align-items: center;
	gap: 12px;
}
.tngc-lang-trigger {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: none;
	border: 1px solid #d4d8db;
	color: #405363;
	padding: 8px 12px;
	cursor: pointer;
	font-family: inherit;
	font-size: 13px;
	font-weight: 500;
}
.tngc-lang-trigger:hover { border-color: #405363; }

.tngc-cta-callback {
	display: inline-flex;
	align-items: center;
	background: #405363;
	color: #fff;
	text-decoration: none;
	padding: 10px 20px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	border: 1.5px solid #405363;
	transition: background .15s ease, border-color .15s ease;
}
.tngc-cta-callback:hover { background: #314250; border-color: #314250; }

.tngc-burger {
	display: none;
	width: 40px;
	height: 40px;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
}
.tngc-burger span {
	display: block;
	width: 22px;
	height: 2px;
	background: #405363;
}

/* Mobile slide-down panel */
.tngc-mobile-panel {
	border-top: 1px solid #ececef;
	background: #fff;
	max-height: 0;
	overflow: hidden;
	transition: max-height .3s ease;
}
.tngc-mobile-panel.is-open {
	max-height: 80vh;
}
.tngc-mobile-panel[hidden] { display: block !important; }
.tngc-mobile-panel__list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.tngc-mobile-panel__list li {
	border-bottom: 1px solid #ececef;
}
.tngc-mobile-panel__list a {
	display: block;
	padding: 16px 24px;
	color: #314250;
	text-decoration: none;
	font-size: 16px;
	font-weight: 500;
}

/* Language switcher modal */
.tngc-lang-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
}
.tngc-lang-modal[hidden] { display: none !important; }
.tngc-lang-modal.is-open { display: flex !important; }
.tngc-lang-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.45);
}
.tngc-lang-modal__card {
	position: relative;
	background: #fff;
	width: min(480px, 92vw);
	padding: 32px 36px;
	z-index: 1;
}
.tngc-lang-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	background: none;
	border: none;
	font-size: 28px;
	color: #405363;
	cursor: pointer;
	line-height: 1;
}
.tngc-lang-modal__title {
	font-family: 'EB Garamond', Georgia, serif;
	font-size: 28px;
	font-style: italic;
	color: #405363;
	margin: 0 0 24px;
	font-weight: 400;
}
.tngc-lang-modal__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}
.tngc-lang-modal__item {
	display: block;
	padding: 14px 12px;
	color: #405363;
	text-decoration: none;
	font-size: 15px;
	font-weight: 500;
	border: 1px solid transparent;
}
.tngc-lang-modal__item:hover {
	border-color: #d4d8db;
}

/* ───────── FOOTER ───────── */
.tngc-footer {
	background: #314250;
	color: #fff;
	padding: 60px 24px 24px;
	font-family: 'Roboto', system-ui, sans-serif;
	margin-top: 60px;
}
.tngc-footer__inner {
	max-width: 1320px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.3fr 3fr;
	gap: 48px;
}
.tngc-footer__name {
	font-family: 'EB Garamond', Georgia, serif;
	font-size: 28px;
	font-style: italic;
	font-weight: 400;
	margin: 0 0 12px;
}
.tngc-footer__tagline {
	color: #c8cdd2;
	font-size: 14px;
	line-height: 1.6;
	margin: 0;
}
.tngc-footer__cols {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
}
.tngc-footer__col-title {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #fff;
	margin: 0 0 16px;
}
.tngc-footer__col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.tngc-footer__col li { margin-bottom: 10px; }
.tngc-footer__col a {
	color: #c8cdd2;
	text-decoration: none;
	font-size: 14px;
	transition: color .15s ease;
}
.tngc-footer__col a:hover { color: #fff; }

.tngc-footer__legal {
	max-width: 1320px;
	margin: 48px auto 0;
	border-top: 1px solid rgba(255,255,255,0.12);
	padding-top: 24px;
	color: #8a9199;
	font-size: 12px;
	line-height: 1.6;
}
.tngc-footer__legal p { margin: 0 0 8px; }
.tngc-footer__disclaimer { max-width: 920px; }

/* ───────── CTA — desktop bubble + mobile bar ───────── */
.tngc-wa-bubble {
	position: fixed;
	bottom: 24px;
	right: 24px;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: #405363;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 999999;
	box-shadow: 0 6px 16px rgba(0,0,0,0.22);
	transition: background .2s ease, transform .2s ease;
	text-decoration: none;
}
.tngc-wa-bubble:hover { background: #314250; transform: translateY(-2px); }

.tngc-scroll-top {
	position: fixed;
	bottom: 90px;
	right: 24px;
	width: 42px;
	height: 42px;
	background: #fff;
	color: #405363;
	border: 1.5px solid #405363;
	cursor: pointer;
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 999998;
	transition: opacity .2s ease;
}
.tngc-scroll-top.is-visible { display: flex; }

/* Mobile bar */
.tngc-mbar {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 999998;
	height: 52px;
	background: #405363;
}
.tngc-mbar__item {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	color: #fff;
	text-decoration: none;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	border-right: 1px solid rgba(255,255,255,0.3);
}
.tngc-mbar__item:last-child { border-right: none; }
.tngc-mbar__item:hover { background: #314250; }

/* ───────── Callback popup (selectors match mu-plugin handler) ───────── */
.tngc-popup.tncb-popup {
	position: fixed;
	inset: 0;
	z-index: 2500000;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	visibility: hidden;
	pointer-events: none;
	overflow-y: auto;
}
.tngc-popup.tncb-popup[hidden] { visibility: hidden; pointer-events: none; }
.tngc-popup.tncb-popup.tncb-open { visibility: visible; pointer-events: auto; }
.tngc-popup .tncb-popup__overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.45);
	z-index: 1;
}
.tngc-popup .tncb-popup__card {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 680px;
	margin: 40px auto;
	background: #fff;
	padding: 48px 56px;
	box-shadow: 0 24px 80px rgba(0,0,0,0.22);
}
.tngc-popup .tncb-close {
	position: absolute;
	top: 16px;
	right: 16px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
}
.tngc-popup .tncb-title {
	font-family: 'EB Garamond', Georgia, serif;
	font-size: 30px;
	font-style: italic;
	color: #405363;
	margin: 0 0 8px;
	font-weight: 400;
}
.tngc-popup .tncb-subtitle {
	font-size: 14px;
	color: #6b7a86;
	margin: 0 0 24px;
}
.tngc-popup .tncb-field { margin-bottom: 18px; }
.tngc-popup .tncb-field--row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 0;
}
.tngc-popup .tncb-field__label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	color: #405363;
	margin: 0 0 6px;
	letter-spacing: 0.3px;
}
.tngc-popup .tncb-input, .tngc-popup .tncb-phone-input {
	display: block;
	width: 100%;
	padding: 8px 0;
	font-size: 14px;
	color: #405363;
	background: none;
	border: none;
	border-bottom: 1px solid #c8cdd2;
	outline: none;
	font-family: inherit;
}
.tngc-popup .tncb-input:focus, .tngc-popup .tncb-phone-input:focus { border-bottom-color: #405363; }
.tngc-popup .tncb-phone-row {
	display: flex;
	align-items: flex-end;
	border-bottom: 1px solid #c8cdd2;
}
.tngc-popup .tncb-phone-row .tncb-input,
.tngc-popup .tncb-phone-row .tncb-phone-input { border-bottom: none; }
.tngc-popup .tncb-checkbox-row {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin: 24px 0;
}
.tngc-popup .tncb-checkbox { width: 16px; height: 16px; accent-color: #405363; margin-top: 2px; }
.tngc-popup .tncb-checkbox-text { font-size: 12px; color: #6b7a86; line-height: 1.5; }
.tngc-popup .tncb-btn-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
.tngc-popup .tncb-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 48px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	cursor: pointer;
	border: 1.5px solid #405363;
	font-family: inherit;
}
.tngc-popup .tncb-btn--close { background: #fff; color: #405363; }
.tngc-popup .tncb-btn--close:hover { background: #405363; color: #fff; }
.tngc-popup .tncb-btn--submit { background: #405363; color: #fff; }
.tngc-popup .tncb-btn--submit:hover { background: #314250; border-color: #314250; }
.tngc-popup .tncb-form.tncb-hidden { display: none; }
.tngc-popup .tncb-success { display: none; text-align: center; padding: 40px 0; }
.tngc-popup .tncb-success.tncb-show { display: block; }
.tngc-popup .tncb-success__icon {
	width: 56px;
	height: 56px;
	border: 2px solid #405363;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 16px;
	color: #405363;
	font-size: 22px;
}
.tngc-popup .tncb-success__title {
	font-family: 'EB Garamond', Georgia, serif;
	font-size: 24px;
	font-style: italic;
	color: #405363;
	margin: 0 0 8px;
}

/* zh CJK fonts (reuses self-hosted Noto SC stack via tng-zh-fonts mu-plugin) */
html[lang^="zh"] .tngc-header,
html[lang^="zh"] .tngc-footer,
html[lang^="zh"] .tngc-mbar,
html[lang^="zh"] .tngc-popup {
	font-family: 'Noto Sans SC', 'Roboto', system-ui, sans-serif;
}
html[lang^="zh"] .tngc-footer__name,
html[lang^="zh"] .tngc-lang-modal__title,
html[lang^="zh"] .tngc-popup .tncb-title,
html[lang^="zh"] .tngc-popup .tncb-success__title {
	font-family: 'Noto Serif SC', 'EB Garamond', Georgia, serif;
}

/* ───────── Responsive ───────── */
@media (max-width: 1024px) {
	.tngc-nav { display: none; }
	.tngc-burger { display: flex; }
}
@media (max-width: 820px) {
	.tngc-header__cta .tngc-cta-callback { display: none; }
	.tngc-wa-bubble { display: none; }
	.tngc-scroll-top { bottom: 90px; right: 16px; }
	.tngc-mbar { display: flex; }
	.tngc-footer__inner { grid-template-columns: 1fr; gap: 32px; }
	.tngc-footer__cols { grid-template-columns: 1fr 1fr; gap: 24px; }
	.tngc-footer { padding-bottom: 80px; }
	.tngc-popup .tncb-popup__card { max-width: 100%; margin: 0; min-height: 100vh; padding: 32px 24px 100px; }
	.tngc-popup .tncb-title { font-size: 24px; padding-right: 44px; }
	.tngc-popup .tncb-field--row { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 480px) {
	.tngc-header__bar { padding: 12px 16px; gap: 8px; }
	.tngc-header__brand img { height: 36px; }
	.tngc-lang-trigger { padding: 6px 10px; }
}
