/* ==========================================================================
   Sunme — Giải pháp (G2)
   Nền tint (token --bg-tint) + divider đầu section (nhịp 9.3a). 3 thẻ dịch vụ:
   ảnh, H3 20px/700, mô tả, danh sách link con, link "Tìm hiểu thêm".
   Hover theo hệ duy nhất (plan 4.4): nhấc 6px + shadow tăng + nền tint
   (token --bg-mega-active) + viền đỏ nhạt.
   KHÔNG chứa @media — mọi breakpoint nằm trong responsive.css.
   ========================================================================== */

.sunme-solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-24);
  align-items: stretch;
}

.sunme-svc-card {
  background-color: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  height: 100%;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base),
    box-shadow var(--transition-base),
    background-color var(--transition-base),
    border-color var(--transition-base);
}

/* G5E: DIWE card KHÔNG nhấc khi hover (chỉ zoom ảnh + đổi màu) —
   bỏ translateY(-6px), giữ shadow + nền + viền. */
.sunme-svc-card:hover {
  box-shadow: var(--shadow-lift);
  background-color: var(--bg-mega-active);
  border-color: var(--red-line);
}

.sunme-svc-photo {
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.sunme-svc-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* G5E: DIWE ảnh card transition all 1s, hover scale 1.08 (dự án). */
  transition: transform 1s ease;
}

.sunme-svc-card:hover .sunme-svc-photo img {
  transform: scale(1.08);
}

.sunme-svc-body {
  padding: var(--space-24);
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* G6O: ô icon đỏ đặc 72x72 đè lên mép dưới ảnh (phương án A, Lobe duyệt
   26/11 20:15). Tile là con đầu của .sunme-svc-body; margin-top âm kéo
   lên 36px trên ảnh (24px padding-top của body + 36px). */
.sunme-svc-icon-tile {
  position: relative;
  z-index: 2;
  width: 72px;
  height: 72px;
  flex: none;
  margin-top: calc(-36px - var(--space-24));
  margin-bottom: var(--space-16);
  border-radius: 18px;
  background-color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.sunme-svc-icon-tile .lucide {
  width: 32px;
  height: 32px;
}

/* G6Q: màu nền tile theo dịch vụ (bộ A, Lobe duyệt 27/11): SEO xanh
   dương, Ads cam, Automation tím. Base var(--red) giữ làm fallback cho
   thẻ nào không map được icon. */
.sunme-svc-icon-tile--seo { background-color: #2563EB; }
.sunme-svc-icon-tile--ads { background-color: #F97316; }
.sunme-svc-icon-tile--automation { background-color: #7C3AED; }

.sunme-svc-head {
  margin-bottom: var(--space-8);
}

.sunme-svc-head h3 {
  margin: 0;
  font-size: var(--fs-lead); /* G5S-8: tiêu đề thẻ dịch vụ = 17px chuẩn chung */
  font-weight: 700;
  line-height: var(--lh-heading);
}

.sunme-svc-body > p {
  color: var(--ink-body);
  font-size: var(--fs-card);
  line-height: var(--lh-body);
  margin: 0 0 var(--space-16);
}

.sunme-svc-list {
  list-style: none;
  margin: 0 0 var(--space-16);
  padding: 0;
}

.sunme-svc-list li {
  border-top: 1px dashed var(--line);
}

.sunme-svc-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  padding-block: var(--space-8);
  color: var(--ink-heading);
  font-weight: 600;
  font-size: var(--fs-card);
  text-decoration: none;
  transition: color var(--transition-base), padding-left var(--transition-base);
}

.sunme-svc-list a:hover {
  color: var(--red);
  padding-left: var(--space-8);
  text-decoration: none;
}

.sunme-svc-list .lucide {
  width: 16px;
  height: 16px;
  color: var(--red);
  flex: none;
}

/* Link "Tìm hiểu thêm" luôn dính đáy card, thẳng hàng nhau ở 3 thẻ. */
.sunme-svc-body .sunme-link-arrow {
  margin-top: auto;
}
