/* ==========================================================================
   Sunme — Giới thiệu (G2)
   Bố cục đợt 1 đã duyệt: tiêu đề + mở bài căn giữa (mở bài tối đa 860px),
   hàng media 2 cột bằng nhau (aspect 4/3), hàng 4 ô số liệu bằng nhau.
   Số liệu 36px/700 chữ đặc, dấu + màu đỏ (quyết định 9.5a).
   Nền trắng (nhịp 9.3a: Giới thiệu trắng, Giải pháp tint).
   KHÔNG chứa @media — mọi breakpoint nằm trong responsive.css.
   ========================================================================== */

.sunme-about {
  background-color: var(--white);
}

/* Mở bài căn TRÁI (G5T-D: bỏ căn giữa), tối đa 640px như .sunme-lead
   chuẩn chung — trước đây margin auto + 860px nên vẫn căn giữa dù
   đã bỏ is-centered ở head. */
.sunme-about-intro {
  font-size: var(--fs-lead);
  color: var(--ink-body);
  line-height: var(--lh-body);
  margin: 0;
  max-width: 640px;
}

/* --- G5V: đầu khu vực 2 cột kiểu DIWE (Lobe 25/11 08:06) — tiêu đề
   trái, mở bài phải, cân đều 2 bên thay vì dồn trái để trống phải.
   Tablet trở xuống xếp chồng (responsive.css, <=1024px). --- */
.sunme-about-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-40);
  align-items: center;
}

.sunme-about-head .sunme-about-head-title h2 {
  margin-bottom: 0;
}

/* --- Hàng media: video card | ảnh họp, 2 cột bằng nhau --- */
.sunme-about-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-24);
  margin-bottom: var(--space-32);
}

.sunme-video-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.sunme-video-card img,
.sunme-about-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.sunme-about-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

/* --- G5V: slide ảnh 2 (phải) — tự xoay 5s, fade 600ms, mũi tên
   góc trên trái, chấm chỉ báo dưới giữa. Cùng khung 4/3 với video
   card nên 2 cột cao bằng nhau. Nút điều hướng ẩn tới khi JS chạy
   (.is-ready): không JS thì chỉ hiện ảnh đầu, không nút chết. --- */
.sunme-about-slider {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background-color: var(--bg-tint);
}

.sunme-about-slides {
  position: absolute;
  inset: 0;
}

.sunme-about-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 600ms ease, visibility 600ms ease;
}

.sunme-about-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.sunme-about-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sunme-about-slider-nav {
  position: absolute;
  top: var(--space-12);
  left: var(--space-12);
  z-index: 1;
  display: none;
  gap: var(--space-8);
}

.sunme-about-slider.is-ready .sunme-about-slider-nav {
  display: flex;
}

/* Nút 44x44 (plan 4.4) — tròn trắng mờ, hover đỏ Sunme. */
.sunme-about-slider-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-circle);
  background-color: rgba(255, 255, 255, .92);
  color: var(--ink-heading);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: background-color var(--transition-base),
    color var(--transition-base);
}

.sunme-about-slider-btn:hover,
.sunme-about-slider-btn:focus-visible {
  background-color: var(--red);
  color: var(--white);
}

.sunme-about-slider-btn .lucide {
  width: 20px;
  height: 20px;
}

/* Chấm chỉ báo: cùng mẫu hero (8px, mờ .4, đang xem mờ 1 + to 1.25). */
.sunme-about-slider-dots {
  position: absolute;
  left: 50%;
  bottom: var(--space-12);
  z-index: 1;
  display: none;
  gap: var(--space-8);
  transform: translateX(-50%);
}

.sunme-about-slider.is-ready .sunme-about-slider-dots {
  display: flex;
}

.sunme-about-slider-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-circle);
  background-color: var(--white);
  opacity: .4;
  cursor: pointer;
  transition: opacity var(--transition-base),
    transform var(--transition-base);
}

.sunme-about-slider-dot.is-active {
  opacity: 1;
  transform: scale(1.25);
}

/* Nút play phủ toàn bộ video card. */
.sunme-video-card .sunme-play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  background: var(--grad-video-overlay);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-body);
  border: 0;
  width: 100%;
  cursor: pointer;
}

.sunme-video-card .sunme-play-circle {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-circle);
  background-color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-play);
  transition: transform var(--transition-base);
}

/* G6W (Lobe 28/11): vòng tỏa sáng mượt như nút liên hệ (scw-pulse
   2.4s ease-out, 2 vòng lệch pha nửa chu kỳ), chậm hơn 20%
   (2.4s × 1.2 ≈ 2.9s). Bỏ ripple .7s linear cũ: G5E ghi là của DIWE
   nhưng kiểm chứng 28/11 trong global.css của diwe.vn cho thấy
   ripple_video .7s linear là hiệu ứng của NÚT LIÊN HỆ nổi của DIWE
   (.btn-hide-show-btn-contact), không phải nút play video — đặt nhầm
   lên nút play nên vừa nhanh vừa giật (linear + 2 vòng reset cùng lúc).
   Vòng dùng box-shadow spread (không scale) như nút liên hệ để không
   tràn overflow; vòng sau chậm 1.45s nên luôn có 1 vòng đang lan. */
.sunme-video-card .sunme-play-circle::before,
.sunme-video-card .sunme-play-circle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-circle);
  box-shadow: 0 0 0 0 rgba(192, 5, 17, .45);
  pointer-events: none;
  animation: sunme-play-ripple 2.9s ease-out infinite;
}

.sunme-video-card .sunme-play-circle::after {
  animation-delay: 1.45s;
}

@keyframes sunme-play-ripple {
  0% {
    box-shadow: 0 0 0 0 rgba(192, 5, 17, .45);
  }
  100% {
    box-shadow: 0 0 0 18px rgba(192, 5, 17, 0);
  }
}

.sunme-video-card .sunme-play .lucide {
  width: 28px;
  height: 28px;
  margin-left: var(--space-2); /* 3px gốc -> 2px, lệch 1px không thấy */
}

.sunme-video-card:hover .sunme-play-circle,
.sunme-video-card .sunme-play:focus-visible .sunme-play-circle {
  transform: scale(1.08);
}

/* --- Hàng 4 ô số liệu bằng nhau --- */
/* G6O (phương án A, Lobe duyệt 26/11 20:15): 4 ô gộp thành MỘT dải đỏ
   đặc liền mạch (gradient #8A0410 -> #C00511), ngăn bằng kẻ trắng mờ.
   Text GIỮ NGUYÊN như demo (chỉ đổi vỏ, không đổi chữ, không đụng DB).
   Dấu "+" phải trắng (đỏ trên nền đỏ sẽ tàng hình). */
.sunme-about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: linear-gradient(135deg, #8a0410, #c00511);
  border-radius: 24px;
}

.sunme-odo-box {
  position: relative;
  overflow: hidden;
  background-color: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: var(--space-32) var(--space-16);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-8);
}

.sunme-odo-box + .sunme-odo-box {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

/* G8 (Lobe duyệt phương án A 28/11): icon thành watermark ghost ở góc
   trên-trái mỗi ô — phóng to 112px, cắt một phần bởi viền ô (overflow
   hidden), mờ 0.14. Số + nhãn là tâm điểm; icon không còn là phần tử
   riêng biệt nên hết cảm giác "rác". Số/nhãn cần z-index để luôn nằm
   trên icon ghost. */
.sunme-odo-box .sunme-icon-box {
  position: absolute;
  top: -22px;
  left: -22px;
  width: 112px;
  height: 112px;
  background-color: transparent;
  color: var(--white);
  opacity: .14;
  pointer-events: none;
}

.sunme-odo-box .sunme-icon-box .lucide {
  width: 112px;
  height: 112px;
  stroke-width: 1.4;
}

.sunme-odo-num,
.sunme-odo-label {
  position: relative;
  z-index: 1;
}

.sunme-odo-num {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  white-space: nowrap;
}

.sunme-odo-suffix {
  color: var(--white);
}

.sunme-odo-label {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.75);
}

/* --- Video modal (logo intro WebM) --- */
/* G5E: DIWE popup video all .8s, top 60%->50% (rơi từ dưới lên giữa).
   Sunme: backdrop mờ .8s + hộp trượt từ dưới lên 10% chiều cao hộp. */
.sunme-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-16);
  visibility: hidden;
  opacity: 0;
  transition: opacity 800ms ease, visibility 800ms ease;
}

.sunme-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.sunme-modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: var(--modal-backdrop);
}

.sunme-modal-box {
  position: relative;
  width: min(880px, 100%);
  background-color: var(--black);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-modal);
  transform: translateY(10%);
  transition: transform 800ms ease;
}

.sunme-modal.is-open .sunme-modal-box {
  transform: translateY(0);
}

.sunme-modal-box video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  background-color: var(--black);
}

/* G6S: iframe nhúng YouTube — cùng khung 16/9 với thẻ video. */
.sunme-modal-box iframe {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  border: 0;
  background-color: var(--black);
}

.sunme-modal-close {
  position: absolute;
  top: var(--space-12);
  right: var(--space-12);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-circle);
  background-color: var(--white-12);
  color: var(--white);
  cursor: pointer;
  transition: background-color var(--transition-base);
}

.sunme-modal-close:hover {
  background-color: var(--red);
}

.sunme-modal-close .lucide {
  width: 20px;
  height: 20px;
}
