/* Homepage interactions: bg blur + slides, FAQ side panel, contact modal */

html {
	scroll-behavior: smooth;
	scroll-padding-top: 6rem;
}

/* Page background: fixed wrapper, slides parallax (di chuyển chậm hơn content) + crossfade */
#titan-bg {
	position: fixed;
	inset: 0;
	z-index: -1;
	background: #0d0c0a;
	overflow: hidden;
}
#titan-bg .titan-bg-slide {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	/* height + top được tính động trong JS để đủ chiều cao parallax. Fallback: 200vh */
	height: 200vh;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity 800ms ease;
	will-change: transform;
}
#titan-bg .titan-bg-slide.is-active {
	opacity: 1;
}
#titan-bg .titan-bg-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,.78));
	pointer-events: none;
}

/* FAQ — Dreamese style: questions slider trái + preview panel phải xổ ra khi click */
.tc-faq-wrap {
	display: flex;
	flex-direction: column;
	gap: 16px;
	align-items: stretch;
	width: 100%;
	position: relative;
}
.tc-faq-questions {
	width: 100%;
	max-height: 260px;
	overflow-y: auto;
	padding-right: 8px;
	list-style: none;
	margin: 0;
	padding-left: 0;
}
.tc-faq-card {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	width: 100%;
	text-align: left;
	background: rgba(255, 255, 255, 0.05);
	padding: 22px 25px;
	border-radius: 12px;
	margin-bottom: 12px;
	cursor: pointer;
	border: 1px solid rgba(255,255,255,0.1);
	border-left: 5px solid transparent;
	transition: background .3s, transform .3s, border-color .3s;
	color: #fff;
	font: inherit;
}
.tc-faq-card:hover {
	background: rgba(201, 164, 76, 0.15);
	transform: translateX(5px);
}
.tc-faq-card[aria-pressed="true"] {
	border-left-color: var(--titan-gold-500, #c9a44c);
	background: rgba(201, 164, 76, 0.12);
}
.tc-faq-num {
	font-family: var(--font-serif, Georgia, serif);
	font-style: italic;
	font-size: 22px;
	color: var(--titan-gold-500, #c9a44c);
	flex-shrink: 0;
	line-height: 1.4;
}
.tc-faq-q-text {
	color: #fff;
	font-size: 1.05rem;
	line-height: 1.5;
	font-weight: 500;
	margin: 0;
	flex: 1;
}

.tc-faq-preview {
	width: 100%;
	max-height: 0;
	opacity: 0;
	visibility: hidden;
	overflow: hidden;
	transition: max-height 0.5s ease, opacity 0.4s ease, visibility 0.4s, width 0.5s ease;
}
.tc-faq-wrap.active-view .tc-faq-preview {
	max-height: 580px;
	opacity: 1;
	visibility: visible;
}
.tc-faq-preview-inner {
	position: relative;
	background: rgba(255,255,255,0.05);
	border: 1px solid rgba(255,255,255,0.12);
	border-radius: 12px;
	padding: 32px 32px 28px;
	color: #fff;
	overflow-y: auto;
	max-height: 580px;
}
.tc-faq-close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: transparent;
	border: 0;
	color: rgba(255,255,255,0.55);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	transition: color .3s;
}
.tc-faq-close:hover { color: var(--titan-gold-500, #c9a44c); }
.tc-faq-detail-title {
	color: #fff;
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0 0 8px;
	padding-right: 32px;
}
.tc-faq-detail-sub {
	color: var(--titan-gold-500, #c9a44c);
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin: 0 0 18px;
}
.tc-faq-detail-body { line-height: 1.75; color: rgba(255,255,255,0.85); }
.tc-faq-detail-body p { margin: 0 0 12px; }
.tc-faq-detail-body strong { color: #fff; }
.tc-faq-detail-body a { color: var(--titan-gold-500, #c9a44c); text-decoration: underline; }
.tc-faq-cta {
	display: inline-block;
	margin-top: 20px;
	color: var(--titan-gold-500, #c9a44c);
	font-style: italic;
	font-weight: 600;
	text-decoration: none;
	transition: letter-spacing .3s, color .3s;
}
.tc-faq-cta:hover { letter-spacing: 0.05em; color: #fff; }
.tc-faq-placeholder {
	text-align: center;
	opacity: 0.35;
	padding: 120px 0;
	margin: 0;
	font-style: italic;
}

/* Scrollbar gold accent */
.tc-faq-questions::-webkit-scrollbar { width: 5px; }
.tc-faq-questions::-webkit-scrollbar-track { background: transparent; }
.tc-faq-questions::-webkit-scrollbar-thumb { background: var(--titan-gold-500, #c9a44c); border-radius: 10px; }
.tc-faq-preview-inner::-webkit-scrollbar { width: 5px; }
.tc-faq-preview-inner::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 10px; }

/* Desktop ≥1024px: chuyển sang layout 2 cột horizontal */
@media (min-width: 1024px) {
	.tc-faq-wrap {
		flex-direction: row;
		gap: 40px;
		align-items: flex-start;
	}
	.tc-faq-questions {
		width: 100%;
		max-height: 580px;
		transition: width 0.6s ease;
	}
	.tc-faq-wrap.active-view .tc-faq-questions { width: 45%; }
	.tc-faq-preview {
		width: 0;
		max-height: 580px;
	}
	.tc-faq-wrap.active-view .tc-faq-preview { width: 55%; }
}

/* Contact modal (giữ lại phòng khi cần dùng sau) */
#tc-contact-modal {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(0,0,0,.7);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	padding: 16px;
}
#tc-contact-modal.is-open { display: flex; }
#tc-contact-modal .tc-modal-card {
	background: #fff;
	max-width: 520px;
	width: 100%;
	padding: 32px 28px;
	position: relative;
	border-radius: 6px;
	box-shadow: 0 25px 60px rgba(0,0,0,.35);
}
#tc-contact-modal .tc-modal-close {
	position: absolute;
	top: 12px;
	right: 14px;
	background: transparent;
	border: 0;
	font-size: 22px;
	color: #555;
	cursor: pointer;
	line-height: 1;
}
#tc-contact-form input,
#tc-contact-form textarea {
	width: 100%;
	border: 1px solid #d4d4d4;
	padding: 10px 14px;
	margin-bottom: 12px;
	font-size: 15px;
	font-family: inherit;
	background: #fafafa;
	border-radius: 4px;
}
#tc-contact-form input:focus,
#tc-contact-form textarea:focus {
	outline: none;
	border-color: var(--titan-gold-500, #c9a44c);
	background: #fff;
}
#tc-contact-form button[type="submit"] {
	width: 100%;
	background: var(--titan-gold-500, #c9a44c);
	color: #111;
	font-weight: 700;
	padding: 12px 16px;
	text-transform: uppercase;
	letter-spacing: .08em;
	border: 0;
	cursor: pointer;
	border-radius: 4px;
	transition: background .25s;
}
#tc-contact-form button[type="submit"]:hover { background: #b2893a; color: #fff; }
#tc-contact-form button[disabled] { opacity: .6; cursor: not-allowed; }
.tc-form-status { margin-top: 12px; font-size: 14px; }
.tc-form-status.is-success { color: #15803d; }
.tc-form-status.is-error { color: #b91c1c; }

/* Fancybox: iframe popups giữ tỉ lệ 9:16 (TikTok) */
.fancybox__content[data-type="iframe"],
.fancybox__slide .fancybox__iframe {
	width: min(90vw, 405px) !important;
	height: min(90vh, 720px) !important;
	aspect-ratio: 9 / 16 !important;
}
