/* ==========================================================================
   AKINA - Thành phần bổ sung cho WordPress
   (trạng thái header, accordion, form, carousel, hiệu ứng xuất hiện)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Header: trong suốt trên hero, đặc khi cuộn
   -------------------------------------------------------------------------- */
.site-header {
	background: color-mix(in oklab, var(--bg-light) 95%, transparent);
	border-bottom: 1px solid var(--color-border);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.site-header.is-overlay {
	background: transparent;
	border-bottom-color: transparent;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.site-header.is-overlay.is-scrolled {
	background: color-mix(in oklab, var(--bg-light) 92%, transparent);
	border-bottom-color: var(--border-strong);
	box-shadow: 0 1px 0 rgba(63, 38, 28, 0.06);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.site-logo--white {
	display: none;
}

.site-header.is-overlay:not(.is-scrolled) .site-logo--color {
	display: none;
}

.site-header.is-overlay:not(.is-scrolled) .site-logo--white {
	display: block;
}

.site-nav-link {
	color: color-mix(in oklab, var(--heading) 85%, transparent);
}

.site-nav-link:hover,
.site-nav-link.is-active {
	color: var(--accent-brand);
}

.site-nav-caret {
	color: var(--accent-brand);
}

.site-header.is-overlay:not(.is-scrolled) .site-nav-link {
	color: rgba(255, 255, 255, 0.85);
}

.site-header.is-overlay:not(.is-scrolled) .site-nav-link:hover,
.site-header.is-overlay:not(.is-scrolled) .site-nav-link.is-active {
	color: #fff;
}

.site-header.is-overlay:not(.is-scrolled) .site-nav-caret {
	color: #fff;
}

/* Ô tìm kiếm khi header trong suốt */
.site-header.is-overlay:not(.is-scrolled) .site-search-input {
	color: #fff;
	border-bottom-color: rgba(255, 255, 255, 0.55);
}

.site-header.is-overlay:not(.is-scrolled) .site-search-input::placeholder {
	color: rgba(255, 255, 255, 0.7);
}

.site-header.is-overlay:not(.is-scrolled) .site-search-button {
	color: #fff;
}

/* Nút mở menu mobile */
.site-menu-toggle {
	color: var(--heading);
	border-color: var(--color-border);
	background: var(--bg-light);
}

.site-menu-toggle:hover {
	background: var(--bg-warm);
}

.site-header.is-overlay:not(.is-scrolled) .site-menu-toggle {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.35);
	background: rgba(255, 255, 255, 0.1);
}

.site-menu-icon-close {
	display: none;
}

.site-menu-toggle[aria-expanded="true"] .site-menu-icon-open {
	display: none;
}

.site-menu-toggle[aria-expanded="true"] .site-menu-icon-close {
	display: block;
}

.site-mobile-menu[hidden] {
	display: none;
}

body.akina-menu-open {
	overflow: hidden;
}

/* --------------------------------------------------------------------------
   2. Hiệu ứng xuất hiện khi cuộn
   -------------------------------------------------------------------------- */
[data-reveal] {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

[data-reveal].is-revealed {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	[data-reveal] {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* --------------------------------------------------------------------------
   3. FAQ dạng accordion (details/summary)
   -------------------------------------------------------------------------- */
.akina-faq-item > summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 20px 0;
	font-family: var(--font-sans);
	font-weight: 600;
	font-size: 15px;
	line-height: 1.5;
	color: var(--heading);
}

.akina-faq-item > summary::-webkit-details-marker {
	display: none;
}

.akina-faq-item > summary::after {
	content: "+";
	flex: 0 0 auto;
	margin-left: auto;
	color: var(--accent-brand);
	font-size: 18px;
	line-height: 1;
	transition: transform 0.2s ease;
}

.akina-faq-item[open] > summary::after {
	content: "–";
}

.akina-faq-answer {
	padding: 0 8px 20px 28px;
	color: var(--body);
	font-size: 15px;
	line-height: 1.7;
}

.akina-faq-answer p {
	margin: 0 0 10px;
}

.akina-faq-answer p:last-child {
	margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   4. Form
   -------------------------------------------------------------------------- */
.akina-lead-form input[type="text"],
.akina-lead-form input[type="tel"],
.akina-lead-form textarea,
.akina-lead-form select {
	font-family: var(--font-sans);
}

.akina-select {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23A80015'><path d='M7 10l5 6 5-6z'/></svg>");
	background-repeat: no-repeat;
	background-position: right 2px center;
	background-size: 18px 18px;
}

.akina-field-error.is-visible {
	display: block;
}

/* --------------------------------------------------------------------------
   5. Carousel
   -------------------------------------------------------------------------- */
[data-carousel-track] {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	[data-carousel-track] {
		scroll-behavior: auto;
	}
}

[data-carousel-dot] > span {
	background: var(--border-strong);
}

[data-carousel-dot].is-active > span {
	background: var(--accent-brand);
}

/* --------------------------------------------------------------------------
   6. Chat panel
   -------------------------------------------------------------------------- */
#akina-chat-panel.is-open {
	display: block;
	animation: chat-panel-in 0.22s ease-out;
}

/* --------------------------------------------------------------------------
   7. Nội dung bài viết (editor WordPress)
   -------------------------------------------------------------------------- */
.akina-prose {
	color: var(--body);
	font-size: 16px;
	line-height: 1.75;
}

.akina-prose > * + * {
	margin-top: 1.1em;
}

.akina-prose h2 {
	font-size: clamp(20px, 2.2vw, 26px);
	line-height: 1.3;
	margin-top: 1.8em;
	color: var(--heading);
	text-transform: uppercase;
}

.akina-prose h3 {
	font-size: 18px;
	margin-top: 1.5em;
	color: var(--heading);
}

.akina-prose a {
	color: var(--accent-brand);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.akina-prose ul,
.akina-prose ol {
	padding-left: 1.4em;
}

.akina-prose li + li {
	margin-top: 0.4em;
}

.akina-prose blockquote {
	border-left: 2px solid var(--accent-brand);
	padding-left: 1em;
	color: var(--muted-ink);
	font-style: italic;
}

.akina-prose img {
	max-width: 100%;
	height: auto;
}

.akina-prose table {
	width: 100%;
	border-collapse: collapse;
}

.akina-prose th,
.akina-prose td {
	border: 1px solid var(--border-strong);
	padding: 10px 12px;
	text-align: left;
}

/* --------------------------------------------------------------------------
   8. Tiện ích
   -------------------------------------------------------------------------- */
.akina-scroll-x {
	scroll-snap-type: x mandatory;
	overflow-x: auto;
}

.akina-scroll-x > * {
	scroll-snap-align: start;
}

.akina-no-scrollbar {
	scrollbar-width: none;
}

.akina-no-scrollbar::-webkit-scrollbar {
	display: none;
}

.worries-grid:focus-visible,
.home-timeline-grid:focus-visible,
[data-carousel-track]:focus-visible {
	outline: 2px solid var(--accent-brand);
	outline-offset: 4px;
}

/* Ẩn thanh công cụ admin khỏi header cố định */
body.admin-bar .site-header.is-overlay {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .site-header.is-overlay {
		top: 46px;
	}
}

/* --------------------------------------------------------------------------
   9. Phân trang
   -------------------------------------------------------------------------- */
.akina-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 44px;
}

.akina-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.akina-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border: 1px solid var(--border-strong);
	border-radius: 4px;
	background: var(--bg-light);
	color: var(--heading);
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.akina-pagination .page-numbers:hover {
	border-color: var(--accent-brand);
	color: var(--accent-brand);
}

.akina-pagination .page-numbers.current {
	background: var(--accent-brand);
	border-color: var(--accent-brand);
	color: #fff;
}

.akina-pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
}

.akina-pagination .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* --------------------------------------------------------------------------
   10. Album ảnh dự án
   -------------------------------------------------------------------------- */
.akina-project-gallery .project-slider-stage {
	aspect-ratio: 16 / 10;
}

.akina-gallery-image {
	height: 100%;
	width: 100%;
	object-fit: cover;
}

.akina-gallery-thumb {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border: 0;
	padding: 0;
	cursor: pointer;
	box-shadow: inset 0 0 0 1px var(--color-border);
	opacity: 0.85;
	transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.akina-gallery-thumb:hover {
	opacity: 1;
}

.akina-gallery-thumb.is-active {
	opacity: 1;
	box-shadow: inset 0 0 0 2px var(--accent-brand);
}

.akina-gallery-thumb:focus-visible {
	outline: 2px solid var(--accent-brand);
	outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   11. Danh sách giá trị (trang Giới thiệu) dạng details/summary
   -------------------------------------------------------------------------- */
.akina-value-details > summary {
	list-style: none;
	color: var(--heading);
	cursor: pointer;
	border-bottom: 1px solid transparent;
}

.akina-value-details > summary::-webkit-details-marker {
	display: none;
}

.akina-value-details[open] > summary {
	color: var(--accent-brand);
}

.akina-value-details[open] .akina-value-chevron {
	transform: rotate(180deg);
}

.akina-value-chevron {
	transition: transform 0.2s ease;
}

.akina-value-details:not(:last-child) {
	border-bottom: 1px solid var(--border-strong);
}

/* --------------------------------------------------------------------------
   12. Khối chọn hướng (trang Dịch vụ) — trạng thái đang chọn
   -------------------------------------------------------------------------- */
[data-plan-option][aria-pressed="true"] {
	border-color: color-mix(in srgb, var(--accent-brand) 60%, transparent);
	background: var(--bg-warm);
}

/* --------------------------------------------------------------------------
   13. Khung nội dung bài viết: ảnh cover không bị kéo giãn
   -------------------------------------------------------------------------- */
.article-frame img.media-cover {
	max-height: 420px;
}


/* --------------------------------------------------------------------------
   14. Trang Tuyển dụng
   -------------------------------------------------------------------------- */
.career-benefit {
	padding-top: 14px;
	border-top: 2px solid var(--accent-brand);
}

.career-benefit .about-value-num {
	font-size: 12px;
	letter-spacing: 0.14em;
}

.job-item {
	background: var(--bg-light);
	border: 1px solid var(--color-border);
	border-radius: 6px;
	padding: 0 18px;
	transition: border-color 0.2s ease;
}

.job-item[open] {
	border-color: var(--border-strong);
}

.job-item > .akina-faq-summary {
	padding: 16px 0;
	align-items: flex-start;
}

.job-summary-main {
	display: block;
	min-width: 0;
}

.job-summary-title {
	display: block;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--heading);
	letter-spacing: 0;
	text-transform: none;
}

.job-item[open] .job-summary-title {
	color: var(--accent-brand);
}

.job-summary-desc {
	display: block;
	margin-top: 4px;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--muted-ink);
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
}

.job-item .akina-faq-answer {
	padding: 0 0 20px;
}

.job-facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 18px;
	margin: 0 0 4px;
	padding: 0 0 16px;
	border-bottom: 1px solid var(--color-border);
}

.job-fact dt {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted-ink);
}

.job-fact dd {
	margin: 3px 0 0;
	font-size: 14px;
	line-height: 1.4;
	color: var(--heading);
	overflow-wrap: anywhere;
}

.job-block-title {
	margin: 0 0 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--accent-brand);
}

.job-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.job-list li {
	position: relative;
	padding-left: 16px;
	margin-bottom: 6px;
	font-size: 14.5px;
	line-height: 1.55;
	color: var(--body);
}

.job-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.62em;
	width: 5px;
	height: 5px;
	border-radius: 9999px;
	background: var(--accent-brand);
}

.career-apply-card {
	box-shadow: 0 18px 40px -32px rgba(17, 17, 17, 0.35);
}

@media (min-width: 640px) {
	.job-facts {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.job-item {
		padding: 0 26px;
	}

	.job-item > .akina-faq-summary {
		padding: 20px 0;
	}

	.job-summary-title {
		font-size: 18px;
	}
}

/* Thanh thông tin nhanh ở trang chi tiết vị trí tuyển dụng */
.job-facts--hero {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 20px;
	margin: 0;
	padding: 0;
	border-bottom: 0;
}

@media (min-width: 768px) {
	.job-facts--hero {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 20px 28px;
	}
}

@media (min-width: 1024px) {
	.job-facts--hero {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

/* --------------------------------------------------------------------------
   15. Nhãn nhỏ (kicker) dùng đầu các khối tiêu đề
   -------------------------------------------------------------------------- */
.kicker {
	font-size: 11px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--accent-brand);
	margin: 0;
}

@media (min-width: 768px) {
	.kicker {
		font-size: 12px;
	}
}
