/* ==========================================================================
   Sunme — Trang Giới thiệu (G5L, theo cấu trúc DIWE /gioi-thieu/)
   5 section theo đúng thứ tự DIWE: (1) intro 6/6 — H2 + đoạn văn + 2
   số liệu + ảnh lớn; (2) dải tuyên ngôn 6/6 — ảnh + H3 slogan; (3)
   timeline hành trình — thẻ mốc năm; (4) tầm nhìn + sứ mệnh 7/5 — chữ
   dọc SUNME + 2 khối; (5) khách hàng — tái dùng
   template-parts/sections/clients.php.
   G5S-13 (Lobe 24/11 22:15): section (5) Đội ngũ cũ đã bỏ hẳn.
   Hiệu ứng: reveal DIWE (.8s, offset 30%) + biến thể ngang
   .sunme-reveal--left/right (effect-left/right của DIWE).
   Tiền tố class là sunme-aboutpage- (KHÔNG phải sunme-about-):
   sunme-about-intro / sunme-about-stats đã thuộc section Giới thiệu
   trang chủ (about.css: .sunme-about-intro max-width 860px) — dùng
   lại tiền tố đó làm section trang con bị bóp 860px (lỗi bắt được khi
   soi ảnh G5L 24/11).
   Mọi @media trong responsive.css.
   ========================================================================== */

/* --- (1) Intro: 6/6 --- */
.sunme-aboutpage-intro-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-48);
  align-items: center;
}

.sunme-aboutpage-intro-text p {
  color: var(--ink-body);
  margin: 0 0 var(--space-16);
}

.sunme-aboutpage-intro-text p:last-of-type {
  margin-bottom: var(--space-32);
}

.sunme-aboutpage-stats {
  display: flex;
  gap: var(--space-16);
  flex-wrap: wrap;
}

.sunme-aboutpage-stat {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  background-color: var(--bg-tint);
  border-radius: var(--radius-card);
  padding: var(--space-16) var(--space-16);
  flex: 1 1 200px;
}

/* G5S-10: ô vuông 56px (khớp .sunme-odo-box trang chủ), nền TRẮNG +
   bóng mềm để đọc được trên thẻ tint — nền red-soft cũ (#FFF4F4)
   gần như trùng màu thẻ (#FAF5F5) nên ô "tàng hình", icon trông trơ
   trọi (Lobe 24/11 22:12). Icon 26px đỏ, căn giữa. */
.sunme-aboutpage-stat .sunme-icon-box {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: var(--radius-md);
  background-color: var(--white);
  box-shadow: var(--shadow-soft);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sunme-aboutpage-stat .sunme-icon-box .lucide {
  width: 26px;
  height: 26px;
}

/* ==========================================================================
   ABOUT-STATS 01/12 (D, Lobe duyệt 16:09 — chọn viền 1px): 2 card số liệu
   trang Giới thiệu ("10+ Năm kinh nghiệm" + "2.500+ Khách hàng tin tưởng").
   Card ngoài: viền 1px đỏ chủ đạo #E30613 (var(--red)); nền tint giữ nguyên.
   Icon trái (award) nền xanh lá #16A34A + icon trắng; icon phải (users)
   nền xanh dương #2563EB + icon trắng. Số + nhãn giữ nguyên.
   Màu xanh lá / xanh dương là đầu cuối solid của grad-art-green /
   grad-art-blue trong tokens.css (thuộc hệ Sunme).
   ========================================================================== */
.sunme-aboutpage-stat { border: 1px solid var(--red); }
.sunme-aboutpage-stat:first-child .sunme-icon-box { background-color: #16A34A; color: #FFFFFF; }
.sunme-aboutpage-stat:last-child  .sunme-icon-box { background-color: #2563EB; color: #FFFFFF; }

.sunme-aboutpage-stat-num {
  font-size: 33px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink-heading);
  white-space: nowrap;
}

.sunme-aboutpage-stat-label {
  font-size: var(--fs-small);
  color: var(--ink-muted);
}

.sunme-aboutpage-intro-media {
  position: relative;
}

.sunme-aboutpage-intro-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

/* Huy hiệu nhân sự nổi góc trái-dưới ảnh (phần tử thứ 3 của cụm ảnh,
   thay cho ảnh thứ 3 của DIWE — Sunme chỉ có 2 ảnh đội ngũ thật). */
.sunme-aboutpage-staff-badge {
  position: absolute;
  left: var(--space-24);
  bottom: var(--space-24);
  background: var(--grad-cta);
  color: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-cta);
  padding: var(--space-16) var(--space-16);
}

.sunme-aboutpage-staff-badge b {
  display: block;
  font-size: 29px;
  font-weight: 700;
  line-height: 1;
}

.sunme-aboutpage-staff-badge span {
  font-size: var(--fs-small);
  color: var(--white-80);
}

/* --- (2) Dải tuyên ngôn: 6/6, nền tint ---
   G5S-11: lưới 7/5 cũ (DIWE) bóp cột chữ còn 488–538px ở laptop, H3
   slogan 28px (rộng 528px) không đủ 1 dòng nên balance ngắt thành 2
   dòng ngắn (~260px), mép phải hụt ~260px so với đoạn văn (Lobe báo
   "mép phải không thẳng hàng", đo ở 1366/1280). 6/6 cho cột chữ
   586–646px, H3 giữ 1 dòng từ 1200px trở lên; dưới 1200px vẫn ngắt
   cân (balance) rồi xếp 1 cột ở <= 1024px như cũ. */
.sunme-aboutpage-statement-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-48);
  align-items: center;
}

.sunme-aboutpage-statement-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.sunme-aboutpage-statement-text h3 {
  font-size: 28px; /* G5S-8: H3 statement -1px */
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink-heading);
  margin: 0 0 var(--space-16);
}

.sunme-aboutpage-statement-text p {
  color: var(--ink-body);
  margin: 0;
}

/* --- (3) Timeline: 4 thẻ mốc năm nối bằng đường kẻ --- */
.sunme-aboutpage-timeline-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-24);
}

/* Đường kẻ ngang nối các mốc (ẩn ở mobile, xem responsive.css). */
.sunme-aboutpage-timeline-grid::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--line);
}

.sunme-aboutpage-milestone {
  position: relative;
  padding-top: var(--space-32);
}

.sunme-aboutpage-milestone::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: var(--radius-circle);
  background-color: var(--red-mid);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--red-mid);
  z-index: 1; /* G5S-12: chấm đè lên vòng pulse (::after) */
}

/* G5S-12 (Lobe 24/11 22:12): vòng sáng lan tỏa quanh chấm mốc —
   vòng đỏ nở từ sau chấm (scale 1 → 2.2) rồi mờ dần, lặp 2.4s,
   4 chấm lệch pha 0.6s. Chỉ chạy khi lưới trong màn hình: JS gắn
   .sunme-inview (IntersectionObserver, mẫu G5E trong main.js); khi
   chưa vào màn hình ::after tĩnh và khuất sau chấm (z-index 0).
   Giảm chuyển động: kill-switch toàn cục (responsive.css) rút
   duration về .01ms + 1 lần lặp nên vòng đứng yên, vô hình. */
.sunme-aboutpage-milestone::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: var(--radius-circle);
  border: 2px solid var(--red-mid);
  z-index: 0;
}

.sunme-aboutpage-timeline-grid.sunme-inview .sunme-aboutpage-milestone::after {
  animation: sunme-timeline-pulse 2.4s ease-out infinite;
}

.sunme-aboutpage-timeline-grid.sunme-inview .sunme-aboutpage-milestone:nth-child(2)::after {
  animation-delay: .6s;
}

.sunme-aboutpage-timeline-grid.sunme-inview .sunme-aboutpage-milestone:nth-child(3)::after {
  animation-delay: 1.2s;
}

.sunme-aboutpage-timeline-grid.sunme-inview .sunme-aboutpage-milestone:nth-child(4)::after {
  animation-delay: 1.8s;
}

@keyframes sunme-timeline-pulse {
  0% {
    transform: scale(1);
    opacity: .7;
  }

  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.sunme-aboutpage-milestone-year {
  font-size: 41px;
  font-weight: 700;
  line-height: 1;
  color: var(--red-mid);
  margin-bottom: var(--space-8);
}

.sunme-aboutpage-milestone h3 {
  font-size: var(--fs-h3); /* G5S-8: H3 mốc = 20px */
  font-weight: 700;
  color: var(--ink-heading);
  margin: 0 0 var(--space-8);
}

.sunme-aboutpage-milestone p {
  font-size: var(--fs-card);
  color: var(--ink-body);
  margin: 0;
}

/* Ghi chú mốc nền tảng (2016 là hành trình người sáng lập, chưa phải
   mốc thành lập agency) — chữ nhỏ mờ, không tranh với nội dung. */
.sunme-aboutpage-milestone-note {
  display: block;
  font-size: 13px;
  color: var(--chev-muted);
  margin-top: var(--space-8);
}

/* --- (4) Tầm nhìn + Sứ mệnh: 7/5 --- */
.sunme-aboutpage-vision-wrap {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--space-48);
  align-items: stretch;
}

.sunme-aboutpage-vision-text {
  display: flex;
  gap: var(--space-24);
  align-items: flex-start;
}

/* Chữ dọc SUNME viền rỗng trên nền sáng: stroke đỏ nhạt (DIWE dùng
   xanh lá nhạt trên nền trắng ở section này). */
.sunme-aboutpage-vertical {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 85px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .08em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(192, 5, 17, .35);
  user-select: none;
  flex: none;
}

.sunme-aboutpage-vision-blocks {
  flex: 1;
  min-width: 0;
}

.sunme-aboutpage-vision-block + .sunme-aboutpage-vision-block {
  margin-top: var(--space-32);
  padding-top: var(--space-32);
  border-top: 1px solid var(--line);
}

.sunme-aboutpage-vision-block h2 {
  font-size: 28px; /* G5S-8: H2 vision -1px */
  font-weight: 700;
  color: var(--ink-heading);
  margin: 0 0 var(--space-12);
}

.sunme-aboutpage-vision-block p {
  color: var(--ink-body);
  margin: 0;
  font-size: var(--fs-body); /* G5S-8: 18 -> 16 (nội dung) */
  line-height: 1.7;
}

.sunme-aboutpage-vision-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

