/* ============================================================
   Solo Media — Mega Menu (desktop) + Drawer Menu (mobile)
   Theo brief: Menu/solo_media_menu_codex_brief.md
   Token khớp design-system của theme solo-media.
   Prefix class: smx- (solo media experience)
   ============================================================ */

:root {
	--smx-gold: #FDB813;
	--smx-gold-dark: #E09F1A;
	--smx-gold-tint: rgba(253, 184, 19, 0.12);
	--smx-gold-tint-2: rgba(253, 184, 19, 0.25);
	--smx-bg-page: #0F0F0F;
	--smx-bg-menu: #111111;
	--smx-bg-card: #151515;
	--smx-bg-tile: #1A1A1A;
	--smx-white: #FFFFFF;
	--smx-muted: rgba(255, 255, 255, 0.65);
	--smx-muted-2: rgba(255, 255, 255, 0.45);
	--smx-line: rgba(255, 255, 255, 0.10);
	--smx-line-soft: rgba(255, 255, 255, 0.06);
	--smx-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
	--smx-radius: 16px;
	--smx-radius-sm: 12px;
	--smx-header-h: 72px;
	--smx-font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
	--smx-ease: cubic-bezier(0.33, 1, 0.68, 1);
}

/* ---------------- Header ---------------- */
.smx-header {
	position: sticky;
	top: 0;
	z-index: 900;
	height: var(--smx-header-h);
	background: rgba(15, 15, 15, 0.94);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--smx-line-soft);
	font-family: var(--smx-font);
}
.smx-header__in {
	max-width: 1280px;
	height: 100%;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.smx-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	flex-shrink: 0;
}
.smx-logo img { width: 34px; height: 34px; display: block; }
.smx-logo span {
	color: var(--smx-white);
	font-weight: 800;
	font-size: 1.05rem;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

/* ---------------- Desktop nav ---------------- */
.smx-nav { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.smx-nav__item { position: static; }
.smx-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 14px;
	background: none;
	border: 0;
	border-radius: 10px;
	cursor: pointer;
	font-family: var(--smx-font);
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--smx-white);
	text-decoration: none;
	transition: color 0.18s var(--smx-ease), background 0.18s var(--smx-ease);
}
.smx-nav__link:hover { color: var(--smx-gold); background: rgba(255, 255, 255, 0.04); }
.smx-nav__link .ti { font-size: 1rem; transition: transform 0.22s var(--smx-ease); }
.smx-nav__link[aria-expanded="true"] { color: var(--smx-gold); }
.smx-nav__link[aria-expanded="true"] .ti-chevron-down { transform: rotate(180deg); }
.smx-nav__link:focus-visible,
.smx-group:focus-visible,
.smx-btn:focus-visible,
.smx-burger:focus-visible {
	outline: 2px solid var(--smx-gold);
	outline-offset: 2px;
}

/* Gold caret under "Dịch vụ" when open */
.smx-nav__item--mega { position: relative; }
.smx-nav__item--mega::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -21px;
	transform: translateX(-50%) scaleX(0);
	width: 42px;
	height: 3px;
	border-radius: 3px 3px 0 0;
	background: var(--smx-gold);
	transition: transform 0.22s var(--smx-ease);
}
.smx-nav__item--mega.is-open::after { transform: translateX(-50%) scaleX(1); }

.smx-header__cta { flex-shrink: 0; }

.smx-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 20px;
	border: 0;
	border-radius: 10px;
	background: var(--smx-gold);
	color: #141414;
	font-family: var(--smx-font);
	font-size: 0.92rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.18s var(--smx-ease), transform 0.18s var(--smx-ease);
}
.smx-btn:hover { background: var(--smx-gold-dark); transform: translateY(-1px); }
.smx-btn--ghost {
	background: transparent;
	border: 1px solid var(--smx-gold);
	color: var(--smx-gold);
}
.smx-btn--ghost:hover { background: var(--smx-gold-tint); }

/* Hamburger */
.smx-burger {
	display: none;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	background: none;
	border: 1px solid var(--smx-line);
	border-radius: 10px;
	color: var(--smx-white);
	font-size: 1.35rem;
	cursor: pointer;
}

/* ============================================================
   MEGA MENU (desktop)
   ============================================================ */
.smx-mega {
	position: absolute;
	top: calc(100% + 1px);
	left: 50%;
	transform: translateX(-50%) translateY(8px);
	width: min(1140px, calc(100vw - 48px));
	background: var(--smx-bg-menu);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 0 0 var(--smx-radius) var(--smx-radius);
	border-top: 0;
	box-shadow: var(--smx-shadow);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s var(--smx-ease), transform 0.2s var(--smx-ease), visibility 0.2s;
}
.smx-nav__item--mega.is-open .smx-mega {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(-50%) translateY(0);
}
.smx-mega__in {
	display: grid;
	grid-template-columns: 320px 1fr;
	gap: 0;
}
.smx-mega__label {
	margin: 0 0 14px;
	color: var(--smx-muted-2);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* --- Left column: service groups --- */
.smx-mega__left {
	padding: 26px 22px;
	border-right: 1px solid var(--smx-line-soft);
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.smx-group {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	padding: 14px;
	background: none;
	border: 1px solid transparent;
	border-radius: var(--smx-radius-sm);
	cursor: pointer;
	text-align: left;
	font-family: var(--smx-font);
	transition: background 0.18s var(--smx-ease), border-color 0.18s var(--smx-ease);
}
.smx-group:hover { background: rgba(255, 255, 255, 0.04); }
.smx-group__icon {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: var(--smx-gold-tint);
	color: var(--smx-gold);
	font-size: 1.45rem;
}
.smx-group__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.smx-group__title { color: var(--smx-white); font-size: 0.98rem; font-weight: 700; line-height: 1.3; }
.smx-group__desc { color: var(--smx-muted); font-size: 0.8rem; line-height: 1.45; }
.smx-group__chev { color: var(--smx-muted-2); font-size: 1rem; flex-shrink: 0; transition: transform 0.18s var(--smx-ease), color 0.18s var(--smx-ease); }
.smx-group.is-active {
	background: linear-gradient(90deg, rgba(255, 184, 0, 0.22), rgba(255, 184, 0, 0.06));
	border-color: rgba(255, 184, 0, 0.25);
}
.smx-group.is-active .smx-group__title { color: var(--smx-gold); }
.smx-group.is-active .smx-group__chev { color: var(--smx-gold); transform: translateX(3px); }

/* --- Right column: panels --- */
.smx-mega__right { padding: 26px 28px; min-height: 460px; }
.smx-panel { display: none; }
.smx-panel.is-active { display: block; animation: smx-panel-in 0.25s var(--smx-ease); }
@keyframes smx-panel-in {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

/* --- Hero (featured) card --- */
.smx-hero {
	position: relative;
	display: block;
	overflow: hidden;
	border: 1px solid rgba(255, 184, 0, 0.35);
	border-radius: var(--smx-radius);
	background:
		radial-gradient(ellipse 90% 120% at 100% 0%, rgba(253, 184, 19, 0.14), transparent 55%),
		linear-gradient(180deg, #191512, var(--smx-bg-card));
	padding: 24px 26px;
	text-decoration: none;
	transition: border-color 0.2s var(--smx-ease), box-shadow 0.2s var(--smx-ease);
}
.smx-hero:hover { border-color: rgba(255, 184, 0, 0.6); box-shadow: 0 12px 40px rgba(253, 184, 19, 0.10); }
.smx-hero__body { position: relative; z-index: 1; max-width: 62%; }
.smx-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--smx-gold);
	color: #141414;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.smx-hero__badge .ti { font-size: 0.8rem; }
.smx-hero__title {
	margin: 14px 0 8px;
	color: var(--smx-white);
	font-size: 1.55rem;
	font-weight: 800;
	line-height: 1.2;
}
.smx-hero__desc { margin: 0 0 16px; color: var(--smx-muted); font-size: 0.92rem; line-height: 1.55; }
.smx-hero__chips { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 18px; }
.smx-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.8rem;
	font-weight: 600;
}
.smx-chip .ti { color: var(--smx-gold); font-size: 1rem; }
.smx-hero__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 20px;
	border-radius: 10px;
	background: var(--smx-gold);
	color: #141414;
	font-size: 0.9rem;
	font-weight: 700;
	transition: background 0.18s var(--smx-ease), gap 0.18s var(--smx-ease);
}
.smx-hero:hover .smx-hero__cta { background: var(--smx-gold-dark); gap: 12px; }

/* Decorative visual (right side of hero) */
.smx-hero__art {
	position: absolute;
	top: 50%;
	right: 26px;
	transform: translateY(-50%);
	width: 190px;
	height: 150px;
	opacity: 0.95;
	pointer-events: none;
}
@media (max-width: 1180px) { .smx-hero__body { max-width: 100%; } .smx-hero__art { display: none; } }

/* --- Service rows (growth panel) --- */
.smx-rows { margin-top: 8px; }
.smx-row {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 10px;
	border-radius: var(--smx-radius-sm);
	text-decoration: none;
	transition: background 0.16s var(--smx-ease);
}
.smx-row + .smx-row { border-top: 1px solid var(--smx-line-soft); }
.smx-row:hover { background: rgba(255, 255, 255, 0.04); }
.smx-row__icon {
	flex-shrink: 0;
	width: 42px;
	height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 11px;
	background: var(--smx-bg-tile);
	border: 1px solid var(--smx-line-soft);
	color: var(--smx-gold);
	font-size: 1.25rem;
}
.smx-row__text { flex: 1; min-width: 0; }
.smx-row__title { display: block; color: var(--smx-white); font-size: 0.95rem; font-weight: 700; line-height: 1.35; }
.smx-row__desc { display: block; color: var(--smx-muted); font-size: 0.82rem; line-height: 1.45; margin-top: 2px; }
.smx-row__chev { color: var(--smx-muted-2); font-size: 1rem; transition: transform 0.16s var(--smx-ease), color 0.16s var(--smx-ease); }
.smx-row:hover .smx-row__chev { color: var(--smx-gold); transform: translateX(3px); }

/* --- Service card grid (conversion & brand panels) --- */
.smx-cards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin-top: 16px;
}
.smx-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px 14px;
	background: var(--smx-bg-card);
	border: 1px solid var(--smx-line-soft);
	border-radius: 14px;
	text-decoration: none;
	transition: border-color 0.18s var(--smx-ease), transform 0.18s var(--smx-ease), background 0.18s var(--smx-ease);
}
.smx-card:hover { border-color: rgba(255, 184, 0, 0.35); transform: translateY(-2px); background: #181818; }
.smx-card__icon {
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: var(--smx-gold-tint);
	color: var(--smx-gold);
	font-size: 1.2rem;
}
.smx-card__title { color: var(--smx-white); font-size: 0.9rem; font-weight: 700; line-height: 1.35; }
.smx-card__desc { color: var(--smx-muted); font-size: 0.78rem; line-height: 1.5; flex: 1; }
.smx-card__more {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--smx-gold);
	font-size: 0.8rem;
	font-weight: 700;
}
.smx-card__more .ti { font-size: 0.9rem; transition: transform 0.16s var(--smx-ease); }
.smx-card:hover .smx-card__more .ti { transform: translateX(3px); }
@media (max-width: 1180px) { .smx-cards { grid-template-columns: repeat(2, 1fr); } }

/* Hero highlights (check list on conversion/brand hero) */
.smx-hero__checks { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 18px; }
.smx-check { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, 0.85); font-size: 0.8rem; font-weight: 600; }
.smx-check .ti { color: var(--smx-gold); font-size: 0.95rem; }

/* ============================================================
   MOBILE DRAWER
   ============================================================ */
.smx-drawer {
	position: fixed;
	inset: 0;
	z-index: 1000;
	background: #0B0B0B;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity 0.25s var(--smx-ease), transform 0.25s var(--smx-ease), visibility 0.25s;
	font-family: var(--smx-font);
}
.smx-drawer.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.smx-drawer__in { max-width: 560px; margin: 0 auto; padding: 0 20px 28px; }

.smx-drawer__top {
	position: sticky;
	top: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--smx-header-h);
	background: rgba(11, 11, 11, 0.96);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--smx-line-soft);
	margin: 0 -20px 20px;
	padding: 0 20px;
}
.smx-drawer__close {
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: 1px solid var(--smx-line);
	border-radius: 10px;
	color: var(--smx-white);
	font-size: 1.3rem;
	cursor: pointer;
}

.smx-drawer .smx-mega__label { margin: 22px 0 12px; }

/* Accordion groups */
.smx-acc { display: flex; flex-direction: column; gap: 10px; }
.smx-acc__item { border: 1px solid var(--smx-line-soft); border-radius: 14px; background: var(--smx-bg-card); overflow: hidden; }
.smx-acc__head {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 60px;
	padding: 10px 14px;
	background: none;
	border: 0;
	cursor: pointer;
	font-family: var(--smx-font);
	text-align: left;
}
.smx-acc__head .smx-group__icon { width: 40px; height: 40px; font-size: 1.3rem; }
.smx-acc__title { flex: 1; color: var(--smx-white); font-size: 0.98rem; font-weight: 700; }
.smx-acc__chev { color: var(--smx-muted-2); font-size: 1.05rem; transition: transform 0.22s var(--smx-ease); }
.smx-acc__item.is-open { border-color: rgba(255, 184, 0, 0.3); }
.smx-acc__item.is-open .smx-acc__head,
.smx-acc__item.is-current .smx-acc__head {
	background: linear-gradient(90deg, rgba(255, 184, 0, 0.22), rgba(255, 184, 0, 0.06));
}
.smx-acc__item.is-open .smx-acc__title,
.smx-acc__item.is-current .smx-acc__title { color: var(--smx-gold); }
.smx-acc__item.is-open .smx-acc__chev { transform: rotate(180deg); color: var(--smx-gold); }

.smx-acc__body {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.28s var(--smx-ease);
}
.smx-acc__item.is-open .smx-acc__body { grid-template-rows: 1fr; }
.smx-acc__list { overflow: hidden; min-height: 0; }
.smx-acc__list-in { padding: 6px 10px 12px; display: flex; flex-direction: column; gap: 2px; }

.smx-acc__link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 10px;
	border-radius: 10px;
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.9rem;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.15s var(--smx-ease);
}
.smx-acc__link:hover { background: rgba(255, 255, 255, 0.05); }
.smx-acc__link .ti { color: var(--smx-muted-2); font-size: 1.05rem; }
.smx-acc__link--star {
	background: var(--smx-gold-tint);
	border: 1px solid rgba(255, 184, 0, 0.28);
	color: var(--smx-gold);
	font-weight: 700;
}
.smx-acc__link--star .ti { color: var(--smx-gold); }
.smx-acc__link--star .smx-acc__link-chev { margin-left: auto; }
.smx-acc__link-chev { margin-left: auto; font-size: 0.95rem; }

/* Mobile hero card — compact version */
.smx-drawer .smx-hero { padding: 20px; }
.smx-drawer .smx-hero__body { max-width: 100%; }
.smx-drawer .smx-hero__art { display: none; }
.smx-drawer .smx-hero__title { font-size: 1.3rem; }
.smx-drawer .smx-hero__cta { width: 100%; justify-content: center; }

/* Mobile featured section swap */
.smx-mfeat { display: none; }
.smx-mfeat.is-active { display: block; animation: smx-panel-in 0.25s var(--smx-ease); }
.smx-mfeat .smx-rows { margin-top: 12px; }
.smx-mfeat .smx-row { padding: 12px 8px; }

.smx-viewall {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 16px 0 4px;
	color: var(--smx-gold);
	font-size: 0.92rem;
	font-weight: 700;
	text-decoration: none;
}

/* Other top-level links on mobile */
.smx-drawer__links {
	margin-top: 18px;
	padding-top: 6px;
	border-top: 1px solid var(--smx-line-soft);
	display: flex;
	flex-direction: column;
}
.smx-drawer__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 15px 4px;
	color: var(--smx-white);
	font-size: 0.98rem;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid var(--smx-line-soft);
}
.smx-drawer__link .ti { color: var(--smx-muted-2); font-size: 1rem; }

/* Footer CTA */
.smx-drawer__cta {
	margin-top: 22px;
	padding: 20px;
	border: 1px solid rgba(255, 184, 0, 0.3);
	border-radius: var(--smx-radius);
	background: linear-gradient(180deg, #191512, var(--smx-bg-card));
	text-align: center;
}
.smx-drawer__cta-title { margin: 0 0 4px; color: var(--smx-white); font-size: 1rem; font-weight: 700; }
.smx-drawer__cta-sub { margin: 0 0 14px; color: var(--smx-muted); font-size: 0.85rem; }
.smx-drawer__cta .smx-btn { width: 100%; }

/* ---------------- Responsive switch ---------------- */
@media (max-width: 1023px) {
	.smx-nav, .smx-header__cta { display: none; }
	.smx-burger { display: inline-flex; }
}
@media (min-width: 1024px) {
	.smx-drawer { display: none; }
}

/* ---------------- WordPress admin bar ---------------- */
body.admin-bar .smx-header { top: 32px; }
@media (max-width: 782px) {
	body.admin-bar .smx-header { top: 46px; }
	body.admin-bar .smx-drawer { top: 46px; }
}

/* ---------------- Reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
	.smx-mega, .smx-drawer, .smx-acc__body, .smx-panel.is-active, .smx-mfeat.is-active,
	.smx-nav__link .ti, .smx-acc__chev, .smx-btn, .smx-card, .smx-hero {
		transition: none !important;
		animation: none !important;
	}
}
