/*
 * Chân trang riêng — giao diện "ASA Group — Ánh sáng công nghệ" (ADR-0085). Nạp trong <footer> (themes/asagroup/_footer.php),
 * sau asagroup.css nên dùng chung biến màu (--accent, --cyan, --violet, --grad, --glass, --glow, --line, --band-line).
 * Cực quang mờ + lưới kỹ thuật, dải mời hợp tác kính mờ có viền sáng chạy, 4 cột; "giảm chuyển động" → đứng yên.
 */
.cb-skin-asagroup .asg-foot { position: relative; overflow: hidden; isolation: isolate; padding-top: clamp(40px, 6vw, 72px); background: #02050B; color: #A9BAD0; }
.cb-skin-asagroup .asg-foot a { color: #DCE7F5; text-decoration: none; }
.cb-skin-asagroup .asg-foot a:hover { color: var(--accent); text-decoration: none; }

/* ---------- Nền: cực quang + lưới ---------- */
.asg-foot__fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.asg-foot__aurora {
  position: absolute; inset: -20% -10% auto; height: 520px; opacity: .9; filter: blur(10px);
  background:
    radial-gradient(40% 60% at 12% 30%, rgba(53, 224, 161, .16), transparent 70%),
    radial-gradient(38% 55% at 55% 10%, rgba(60, 201, 255, .12), transparent 70%),
    radial-gradient(40% 60% at 92% 35%, rgba(139, 124, 255, .16), transparent 70%);
  animation: asgf-drift 18s ease-in-out infinite alternate;
}
.asg-foot__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(140, 175, 220, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(140, 175, 220, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask: linear-gradient(180deg, #000, transparent 75%); mask: linear-gradient(180deg, #000, transparent 75%);
}

/* ---------- Dải mời hợp tác ---------- */
.cb-skin-asagroup .asg-foot__cta {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  padding: clamp(22px, 3.4vw, 36px) clamp(22px, 4vw, 44px); border-radius: 22px; overflow: hidden;
  background: radial-gradient(120% 180% at 0% 0%, rgba(53, 224, 161, .14), transparent 55%), radial-gradient(120% 180% at 100% 100%, rgba(139, 124, 255, .16), transparent 55%), rgba(255, 255, 255, .03);
  border: 1px solid rgba(140, 175, 220, .16); box-shadow: 0 30px 80px -40px rgba(53, 224, 161, .45);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.cb-skin-asagroup .asg-foot__cta::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(110deg, transparent 20%, var(--accent), var(--cyan), var(--violet), transparent 80%) 0 0 / 220% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: asgf-border 6s linear infinite;
}
.asg-foot__kicker { margin: 0 0 8px; color: var(--accent); font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.asg-foot__cta-title {
  margin: 0; max-width: 560px; font-family: var(--display); font-weight: 700; font-size: clamp(21px, 2.6vw, 30px); line-height: 1.22; color: #F2F7FD;
}
.asg-foot__cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cb-skin-asagroup .asg-foot__btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; overflow: hidden;
  font-weight: 700; font-size: 15px; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.asg-foot__btn svg { width: 18px; height: 18px; flex: none; }
.cb-skin-asagroup .asg-foot a.asg-foot__btn--primary { background: linear-gradient(115deg, var(--accent), var(--cyan)); color: var(--on-accent); box-shadow: 0 14px 34px -14px rgba(53, 224, 161, .75); }
.cb-skin-asagroup .asg-foot a.asg-foot__btn--primary::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-130%);
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55), transparent 65%); animation: asgf-shine 4.5s ease-in-out infinite;
}
.cb-skin-asagroup .asg-foot a.asg-foot__btn--primary:hover { color: var(--on-accent); transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(53, 224, 161, .9); }
.cb-skin-asagroup .asg-foot a.asg-foot__btn--ghost { border: 1px solid rgba(140, 175, 220, .28); color: #E9F1FB; background: rgba(255, 255, 255, .03); }
.cb-skin-asagroup .asg-foot a.asg-foot__btn--ghost:hover { border-color: var(--accent); color: #fff; transform: translateY(-2px); }

/* ---------- 4 cột ---------- */
.asg-foot__grid-cols {
  display: grid; gap: 40px 36px; padding-block: clamp(40px, 5vw, 60px) clamp(32px, 4vw, 48px);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 640px) { .asg-foot__grid-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .asg-foot__grid-cols { grid-template-columns: 1.3fr 1.2fr .75fr 1.35fr; } }

.asg-foot__title {
  position: relative; margin: 0 0 18px; padding-left: 16px; color: #FFFFFF; font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.asg-foot__title::before {
  content: ''; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(53, 224, 161, .14), 0 0 12px var(--accent);
}

/* Thương hiệu */
.cb-skin-asagroup .asg-foot__logo {
  display: inline-flex; align-items: center; padding: 10px 16px; border-radius: 14px; background: #FFFFFF;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 18px 40px -20px rgba(53, 224, 161, .6);
}
.asg-foot__logo img { display: block; height: 52px; width: auto; }
.asg-foot__logo span { color: #0B1424; font-weight: 800; font-size: 20px; }
.asg-foot__about { margin: 20px 0 0; max-width: 360px; color: #B6C5D8; line-height: 1.65; }
.asg-foot__company { margin: 10px 0 0; color: #7E90A8; font-size: 14px; }
.cb-skin-asagroup .asg-foot .cb-social a { border-color: rgba(140, 175, 220, .24); color: #DCE7F5; background: rgba(255, 255, 255, .03); transition: border-color .3s, box-shadow .3s, color .3s; }
.cb-skin-asagroup .asg-foot .cb-social a:hover { background: rgba(53, 224, 161, .12); border-color: var(--accent); color: var(--accent); box-shadow: 0 0 18px -4px var(--accent); }

/* Hệ sinh thái */
.asg-foot__members ul, .asg-foot__reach ul { margin: 0; padding: 0; list-style: none; }
.asg-foot__members ul { display: grid; gap: 8px; }
.cb-skin-asagroup .asg-foot__members a {
  display: flex; align-items: center; gap: 12px; padding: 7px 12px 7px 7px; border-radius: 14px; border: 1px solid transparent;
  transition: background .3s, border-color .3s, transform .35s var(--ease);
}
.cb-skin-asagroup .asg-foot__members a:hover { background: rgba(255, 255, 255, .04); border-color: rgba(53, 224, 161, .28); transform: translateX(4px); }
.asg-foot__mlogo {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 6px 16px -8px rgba(60, 201, 255, .7);
}
.asg-foot__mlogo img { width: 100%; height: 100%; object-fit: cover; }
.asg-foot__mtext { display: grid; min-width: 0; line-height: 1.3; }
.asg-foot__mname { color: #E9F1FB; font-weight: 600; font-size: 14.5px; }
.asg-foot__mhost { color: #7E90A8; font-size: 12.5px; }
.cb-skin-asagroup .asg-foot__members a:hover .asg-foot__mname { color: var(--accent); }

/* Liên kết (menu "Chân trang") */
.cb-skin-asagroup .asg-foot__links .cb-menu-inline { flex-direction: column; flex-wrap: nowrap; gap: 4px; }
.cb-skin-asagroup .asg-foot__links .cb-menu-inline > :is(a, span) {
  position: relative; display: inline-flex; align-items: center; gap: 10px; width: fit-content; padding: 6px 0; color: #C9D6E6;
}
.cb-skin-asagroup .asg-foot__links .cb-menu-inline > a::before {
  content: ''; width: 14px; height: 1px; background: rgba(140, 175, 220, .4); transition: width .35s var(--ease), background .35s;
}
.cb-skin-asagroup .asg-foot__links .cb-menu-inline > a:hover { color: #fff; }
.cb-skin-asagroup .asg-foot__links .cb-menu-inline > a:hover::before { width: 22px; background: var(--accent); }
.cb-skin-asagroup .asg-foot__links .cb-menu-inline > span { color: #7E90A8; padding-left: 24px; }

/* Liên hệ */
.asg-foot__reach ul { display: grid; gap: 16px; }
.asg-foot__reach li { display: flex; gap: 14px; align-items: flex-start; line-height: 1.5; }
.asg-foot__reach li > span:last-child { display: grid; gap: 2px; min-width: 0; color: #C9D6E6; }
.asg-foot__reach small { color: #7E90A8; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.asg-foot__ic {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--accent);
  background: rgba(53, 224, 161, .08); border: 1px solid rgba(53, 224, 161, .22);
}
.asg-foot__ic svg { width: 19px; height: 19px; }
.cb-skin-asagroup .asg-foot a.asg-foot__strong { color: #FFFFFF; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: .01em; }
.cb-skin-asagroup .asg-foot__reach a[href^="mailto:"] { overflow-wrap: anywhere; font-size: 15px; }
.cb-skin-asagroup .asg-foot a.asg-foot__map { width: fit-content; margin-top: 4px; color: var(--accent); font-size: 13.5px; font-weight: 600; }
.cb-skin-asagroup .asg-foot a.asg-foot__map::after { content: ' →'; }

/* ---------- Dòng cuối ---------- */
.asg-foot__bottom { position: relative; border-top: 1px solid rgba(140, 175, 220, .1); color: #7E90A8; font-size: 13.5px; }
.asg-foot__bottom::before {
  content: ''; position: absolute; left: 10%; right: 10%; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(53, 224, 161, .55), rgba(60, 201, 255, .55), transparent);
}
.asg-foot__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-block: 18px; }
.cb-skin-asagroup .asg-foot a.asg-foot__top { display: inline-flex; align-items: center; gap: 8px; color: #A9BAD0; font-weight: 600; }
.asg-foot__top svg { width: 30px; height: 30px; padding: 6px; border-radius: 50%; border: 1px solid rgba(140, 175, 220, .28); transition: transform .35s var(--ease), border-color .35s; }
.cb-skin-asagroup .asg-foot a.asg-foot__top:hover svg { transform: translateY(-3px); border-color: var(--accent); }

/* nút liên hệ nổi góc phải (máy tính) không đè "Về đầu trang" */
@media (min-width: 1024px) and (max-width: 1379.98px) { .asg-foot__bottom-inner { padding-right: 68px; } }
@media (max-width: 639.98px) {
  .asg-foot__cta-actions { width: 100%; }
  .cb-skin-asagroup .asg-foot__btn { flex: 1 1 auto; justify-content: center; }
}

@keyframes asgf-drift { from { transform: translate3d(-2%, 0, 0) scale(1); } to { transform: translate3d(2%, 3%, 0) scale(1.06); } }
@keyframes asgf-border { to { background-position: -220% 0; } }
@keyframes asgf-shine { 0%, 60% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }

@media (prefers-reduced-motion: reduce) {
  .asg-foot__aurora, .cb-skin-asagroup .asg-foot__cta::before, .cb-skin-asagroup .asg-foot a.asg-foot__btn--primary::after { animation: none; }
  .cb-skin-asagroup .asg-foot :is(a, .asg-foot__btn, .asg-foot__top svg) { transition: none; }
}
