/* Hero "Nắng Bazan" — trang chủ. Sân khấu 12 lớp; --d = lệch theo chuột, --ds = trôi khi cuộn.
   Luôn giữ tông sáng (ảnh clay-render màu cố định). Chỉ nạp ở trang chủ. */
.thl-nb {
	/* màu thương hiệu (theme.json): cam CTA, 3 màu logo, vàng nắng */
	--nb-deep:#2a1d15; --nb-basalt:#b73f18; --nb-basalt-deep:#94300f; --nb-sun:#e0a43a;
	--nb-logo-sun:#E2571E; --nb-logo-panel:#1e3a8a; --nb-logo-leaf:#2F7D32;
	--nb-sky-1:#FDF6E6; --nb-sky-2:#F7E3BC; --nb-sky-3:#E8C98F; --nb-surface:#F4F6F2;
	--nb-fg:#1E2622; --nb-mute:#4F5A54; --nb-line:rgba(30,38,34,.12); --nb-card:rgba(255,255,255,.78); --nb-shadow:rgba(60,32,16,.18);
	--mx:0; --my:0; --sp:0;
	position:relative; isolation:isolate; overflow:hidden; margin-block:0 !important; color:var(--nb-fg);
	background:linear-gradient(180deg,#D9E8EE 0%,#EEF0E4 22%,var(--nb-sky-1) 40%,var(--nb-sky-2) 62%,var(--nb-sky-3) 80%,var(--nb-surface) 100%);
}
.thl-nb::before { content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
	background:linear-gradient(180deg,transparent 0%,color-mix(in srgb,var(--nb-sky-1) 70%,transparent) 22%,color-mix(in srgb,var(--nb-sky-1) 40%,transparent) 45%,transparent 60%); }
@media (min-width:980px) { .thl-nb::before {
	background:radial-gradient(ellipse 52% 46% at 22% 62%,color-mix(in srgb,var(--nb-sky-1) 78%,transparent) 0%,color-mix(in srgb,var(--nb-sky-1) 45%,transparent) 55%,transparent 100%); } }
.thl-nb__wrap { position:relative; z-index:2; max-width:1280px; margin-inline:auto; padding:28px max(16px,env(safe-area-inset-right,0px)) 0 max(16px,env(safe-area-inset-left,0px)); box-sizing:border-box; }
.thl-nb__backdrop { position:absolute; inset:0; overflow:hidden; z-index:0; pointer-events:none; }
.thl-nb__grid { display:grid; gap:18px; }
@media (min-width:980px) { .thl-nb__grid { grid-template-columns:minmax(0,46fr) minmax(0,54fr); align-items:center; gap:8px; min-height:clamp(680px, calc(100svh - 110px), 820px); padding-block:24px 32px; } }

/* sân khấu */
.thl-nb__stage { position:relative; width:100%; aspect-ratio:4/3; perspective:1200px; perspective-origin:50% 42%; touch-action:pan-y; }
@media (min-width:980px) { .thl-nb__stage { aspect-ratio:16/11; } }
.thl-nb__layer { position:absolute; inset:0; transform-style:preserve-3d;
	transform:translate3d(calc(var(--mx) * var(--d,0) * -46px), calc(var(--my) * var(--d,0) * -26px + var(--sp) * var(--ds,0) * 1px),0); }
.thl-nb.is-live .thl-nb__layer { will-change:transform; }
.thl-nb__ly { position:absolute; height:auto; display:block; max-width:none; pointer-events:none; }
.thl-nb__farm { position:relative; width:100%; aspect-ratio:1280/936; }
.thl-nb__farm > img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; filter:drop-shadow(0 26px 30px rgba(58,28,16,.3)); }
.thl-nb__flow { position:absolute; inset:0; width:100%; height:100%; }

/* trời + mặt trời */
.thl-nb__sun-core { position:absolute; left:62%; top:9%; width:min(30vw,230px); aspect-ratio:1; border-radius:50%;
	background:radial-gradient(circle,rgba(255,214,130,.85) 0%,rgba(255,200,115,.45) 26%,rgba(255,190,100,.16) 50%,rgba(255,190,100,0) 70%); animation:thlNbBreathe 7s ease-in-out infinite; }
.thl-nb__sun-disc { position:absolute; left:calc(62% + min(30vw,230px)/2 - 34px); top:calc(9% + min(30vw,230px)/2 - 34px); width:68px; height:68px; border-radius:50%;
	background:radial-gradient(circle,#FFF1C4 0%,#FFD375 34%,#F9A845 70%,#F08A33 100%); box-shadow:0 0 22px 6px rgba(255,190,90,.55),0 0 70px 26px rgba(248,160,70,.28); }
@keyframes thlNbBreathe { 0%,100% { transform:scale(1); opacity:.95 } 50% { transform:scale(1.06); opacity:1 } }
.thl-nb__rays { opacity:.55; }
.thl-nb__rays-core { position:absolute; left:62%; top:9%; width:min(30vw,230px); aspect-ratio:1;
	background:conic-gradient(from 0deg,rgba(244,170,70,0) 0deg,rgba(244,170,70,.30) 6deg,rgba(244,170,70,0) 14deg,rgba(244,170,70,0) 40deg,rgba(244,170,70,.22) 46deg,rgba(244,170,70,0) 54deg,rgba(244,170,70,0) 92deg,rgba(244,170,70,.26) 98deg,rgba(244,170,70,0) 108deg,rgba(244,170,70,0) 160deg,rgba(244,170,70,.18) 166deg,rgba(244,170,70,0) 176deg,rgba(244,170,70,0) 230deg,rgba(244,170,70,.24) 238deg,rgba(244,170,70,0) 248deg,rgba(244,170,70,0) 300deg,rgba(244,170,70,.22) 308deg,rgba(244,170,70,0) 318deg,rgba(244,170,70,0) 360deg);
	transform:scale(3.6); filter:blur(10px); animation:thlNbSpin 70s linear infinite;
	-webkit-mask-image:radial-gradient(circle,#000 10%,rgba(0,0,0,.35) 42%,transparent 70%); mask-image:radial-gradient(circle,#000 10%,rgba(0,0,0,.35) 42%,transparent 70%); }
@keyframes thlNbSpin { to { transform:scale(3.6) rotate(360deg) } }
.thl-nb__clouds { opacity:1; }
.thl-nb__clouds img { filter:drop-shadow(0 10px 18px rgba(120,80,50,.10)); }
.thl-nb__clouds img { animation:thlNbDrift 46s linear infinite alternate; }
@keyframes thlNbDrift { 0% { transform:translateX(-3%) } 100% { transform:translateX(3%) } }
.thl-nb__haze { background:linear-gradient(180deg,transparent 58%,color-mix(in srgb,var(--nb-sky-3) 70%,transparent) 71%,transparent 84%); }

/* khối trang trại nghiêng theo chuột */
.thl-nb__tilt { position:absolute; inset:0 5% 2% -7%; display:flex; align-items:center; justify-content:center; transform-style:preserve-3d;
	transform:rotateX(calc(var(--my) * 3.2deg)) rotateY(calc(var(--mx) * -6.5deg)); }
.thl-nb__glint { position:absolute; left:21%; top:13%; width:35%; height:16%; border-radius:4px; mix-blend-mode:screen; pointer-events:none;
	background:linear-gradient(105deg,transparent 35%,rgba(255,255,255,.85) 50%,transparent 65%); background-size:260% 100%; animation:thlNbSweep 6.5s ease-in-out infinite; }
@keyframes thlNbSweep { 0%,62% { background-position:160% 0; opacity:0 } 70% { opacity:.9 } 100% { background-position:-60% 0; opacity:0 } }

/* chip số liệu */
.thl-nb__chips { pointer-events:none; }
.thl-nb__chip { position:absolute; display:flex; align-items:center; gap:9px; padding:9px 13px; border-radius:14px; background:var(--nb-card);
	border:1px solid var(--nb-line); box-shadow:0 10px 26px -14px var(--nb-shadow); font-weight:600; font-size:13px; line-height:1.3; color:var(--nb-fg);
	max-width:90%; transform:translateZ(var(--z,40px)); animation:thlNbBob 6s ease-in-out infinite; animation-delay:var(--dl,0s); white-space:nowrap; }
.thl-nb__chip b { font-size:16px; letter-spacing:-.02em; font-variant-numeric:tabular-nums; }
.thl-nb__chip div > span { font-weight:400; font-size:11px; color:var(--nb-mute); display:block; }
.thl-nb__dot { width:8px; height:8px; border-radius:50%; background:var(--nb-logo-leaf); box-shadow:0 0 0 4px color-mix(in srgb,var(--nb-logo-leaf) 20%,transparent); flex:none; }
.thl-nb__chip.c2 .thl-nb__dot { background:var(--nb-logo-panel); box-shadow:0 0 0 4px color-mix(in srgb,var(--nb-logo-panel) 18%,transparent); }
.thl-nb__chip.c3 .thl-nb__dot { background:var(--nb-logo-sun); box-shadow:0 0 0 4px color-mix(in srgb,var(--nb-logo-sun) 20%,transparent); }
@keyframes thlNbBob { 0%,100% { translate:0 0 } 50% { translate:0 -7px } }
.thl-nb__chip-1 { left:3%; top:20%; --z:70px; --dl:.2s; }
.thl-nb__chip-2 { right:2%; top:36%; --z:52px; --dl:1.4s; }
.thl-nb__chip-3 { right:12%; bottom:21%; --z:88px; --dl:2.6s; }
@media (min-width:821px) { .thl-nb__chip { backdrop-filter:blur(8px); } }

/* linh vật BƠM */
.thl-nb__mascot { pointer-events:none; }
.thl-nb__mascot-hold { position:absolute; left:-13%; bottom:2%; width:min(25%,158px); animation:thlNbBob 5.2s ease-in-out infinite; }
.thl-nb__mascot-hold img { display:block; width:100%; height:auto; filter:drop-shadow(0 14px 14px rgba(58,28,16,.22)); }
.thl-nb__bubble { position:absolute; left:52%; bottom:calc(100% + 6px); margin:0; background:#fff; color:var(--nb-fg); border:1px solid var(--nb-line); border-radius:14px;
	padding:8px 12px; font-weight:600; font-size:12px; line-height:1.35; box-shadow:0 12px 26px -16px var(--nb-shadow); width:max-content; max-width:168px; }
.thl-nb__bubble::after { content:""; position:absolute; left:14px; bottom:-7px; width:12px; height:12px; background:#fff;
	border-right:1px solid var(--nb-line); border-bottom:1px solid var(--nb-line); transform:rotate(45deg); }

/* bụi nắng */
.thl-nb__motes { pointer-events:none; }
.thl-nb__mote { position:absolute; border-radius:50%; background:rgba(240,165,60,.75); box-shadow:0 0 6px rgba(255,200,110,.8); opacity:0; animation:thlNbRise linear infinite; }
@keyframes thlNbRise { 0% { transform:translate(0,0); opacity:0 } 12% { opacity:.85 } 100% { transform:translate(26px,-180px); opacity:0 } }

/* khối chữ */
.thl-nb__copy { position:relative; z-index:5; transform:translate3d(calc(var(--mx) * 10px), calc(var(--my) * 6px),0); }
.thl-nb__title { font-family:var(--wp--preset--font-family--display); font-weight:500; letter-spacing:-.01em; line-height:1.1; text-wrap:balance;
	font-size:clamp(2.1rem,6.4vw,3.9rem); margin:0 0 16px; color:var(--nb-fg); }
.thl-nb__title em { font-style:normal; color:var(--nb-basalt); white-space:nowrap; }
.thl-nb__eyebrow { font-family:var(--wp--preset--font-family--sans); display:flex; align-items:center; gap:10px; margin:0 0 14px; font-size:12px; font-weight:600; line-height:1.4; letter-spacing:.16em;
	text-transform:uppercase; color:var(--nb-basalt); }
.thl-nb__eyebrow::before { content:""; width:28px; height:2px; background:var(--nb-basalt); border-radius:2px; flex:none; }
.thl-nb__lede { font-size:clamp(.98rem,1.6vw,1.08rem); line-height:1.62; color:var(--nb-mute); max-width:44ch; margin:0 0 24px; }
@media (min-width:980px) { .thl-nb__lede { max-width:40ch; } }
.thl-nb__cta { display:flex; flex-wrap:wrap; align-items:center; gap:12px 28px; margin-bottom:18px; }
/* Nút theo theme.json (element button): cam CTA, bo 2px, 15px/600, giãn chữ .02em; nút phụ = kiểu "link-arrow" của site */
.thl-nb__btn { font-family:var(--wp--preset--font-family--sans); font-weight:600; font-size:15px; line-height:20px; letter-spacing:.02em;
	text-decoration:none; display:inline-flex; align-items:center; gap:8px; transition:background .18s,color .18s; }
.thl-nb__btn--sun { padding:14px 32px; border-radius:var(--wp--custom--radius--sm,2px); background:var(--nb-basalt); color:#fff8f0; }
.thl-nb__btn--sun:hover { background:var(--nb-basalt-deep); color:#fff8f0; }
.thl-nb__btn--ghost { padding:12px 0; color:var(--nb-deep); text-decoration:underline; text-underline-offset:6px; text-decoration-color:#b88a3e; }
.thl-nb__btn--ghost:hover { color:var(--nb-basalt); }
.thl-nb a:focus-visible { outline:2px solid #2e6b35; outline-offset:3px; }
.thl-nb__trust { display:flex; flex-wrap:wrap; align-items:center; gap:4px 18px; font-size:13px; color:var(--nb-mute); padding-top:12px; border-top:1px solid var(--nb-line); }
.thl-nb__trust b, .thl-nb__trust a { color:var(--nb-fg); font-weight:600; }
.thl-nb__trust a { text-decoration:none; display:inline-block; padding-block:10px; }
.thl-nb__trust a:hover { color:var(--nb-basalt); }
.thl-nb__trust i { font-style:normal; color:var(--nb-logo-leaf); }

@media (max-width:620px) {
	.thl-nb__wrap { padding-top:32px; padding-bottom:12px; }
	.thl-nb__stage { aspect-ratio:1/1; }
	.thl-nb__chip { font-size:11px; padding:7px 10px; border-radius:11px; } .thl-nb__chip b { font-size:13px; } .thl-nb__chip-3 { display:none; }
	.thl-nb__chip-1 { left:1%; top:6%; --z:40px; }
	.thl-nb__chip-2 { right:2%; top:47%; --z:30px; max-width:54%; white-space:normal; } /* dưới bong bóng lời thoại, không đè nhau */
	.thl-nb__mascot-hold { left:0; bottom:3%; width:min(32%,124px); }
	.thl-nb__bubble { left:50%; bottom:calc(100% + 4px); font-size:11px; max-width:140px; padding:7px 10px; }
}
/* điện thoại / máy yếu: tắt các chuyển động trang trí tốn GPU */
@media (max-width:820px) {
	.thl-nb__rays-core, .thl-nb__clouds img, .thl-nb__sun-core { animation:none; }
	.thl-nb__rays-core { filter:none; }
}
.thl-nb.is-static *, .thl-nb.is-static *::before, .thl-nb.is-static *::after { animation:none !important; }
@media (prefers-reduced-motion:reduce) {
	.thl-nb { --mx:0 !important; --my:0 !important; --sp:0 !important; }
	.thl-nb *, .thl-nb *::before, .thl-nb *::after { animation:none !important; transition:none !important; }
	.thl-nb__sparks { display:none; }
}
/* núi xa: mờ dần ở mép dưới để không thành đường cắt ngang */
.thl-nb__mnt { -webkit-mask-image:linear-gradient(180deg,#000 55%,transparent 100%); mask-image:linear-gradient(180deg,#000 55%,transparent 100%); }
