/* ============================================
   UNITRANS — Services modern bento layout
   ============================================ */

.sx-section { background: white; padding: 120px 0; }

.sx-head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 72px;
}
@media (max-width: 880px) { .sx-head { grid-template-columns: 1fr; gap: 24px; } }
.sx-head-lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-700);
  max-width: 44ch;
}

/* Bento layout */
.sx-bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(260px, auto);
  gap: 16px;
}
.sx-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-50);
  isolation: isolate;
  transition: transform var(--t), box-shadow var(--t);
  display: flex;
  cursor: pointer;
}
.sx-card:focus-visible {
  outline: 3px solid var(--red-500);
  outline-offset: 4px;
}
.sx-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.sx-card--hero { grid-column: span 4; grid-row: span 2; min-height: 540px; color: white; }
.sx-card--accent { grid-column: span 2; grid-row: span 2; min-height: 540px; color: white; background: var(--red-500); }
.sx-card--mid { grid-column: span 2; grid-row: span 1; }
.sx-card--wide { grid-column: span 6; grid-row: span 1; min-height: 220px; }
.sx-card--dark { background: var(--navy-900); color: white; }

@media (max-width: 1024px) {
  .sx-bento { grid-template-columns: repeat(4, 1fr); }
  .sx-card--hero { grid-column: span 4; min-height: 460px; }
  .sx-card--accent { grid-column: span 4; min-height: 320px; }
  .sx-card--mid { grid-column: span 2; }
  .sx-card--wide { grid-column: span 4; }
}
@media (max-width: 640px) {
  .sx-bento { grid-template-columns: 1fr; }
  .sx-card--hero,
  .sx-card--accent,
  .sx-card--mid,
  .sx-card--wide { grid-column: span 1; min-height: 280px; }
}

.sx-card-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.sx-card-bg .sx-art { width: 100%; height: 100%; display: block; }

.sx-card--hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,13,31,0.2) 0%, rgba(5,13,31,0.85) 100%);
  z-index: -1;
}

.sx-card-body {
  position: relative;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}
.sx-card--hero .sx-card-body { padding: 44px; justify-content: flex-end; }
.sx-card--wide .sx-card-body { padding: 36px 44px; }

.sx-num {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.18em;
  opacity: 0.7;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.sx-num::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.sx-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  margin: 0;
}
.sx-card--hero .sx-title { font-size: clamp(40px, 4vw, 64px); }

.sx-desc {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.88;
  margin: 0;
  max-width: 52ch;
}
.sx-card--hero .sx-desc { font-size: 17px; max-width: 48ch; }

/* Tags inside hero card */
.sx-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  margin-top: 4px;
}
.sx-tags li {
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  background: rgba(255,255,255,0.06);
}

/* Mid-card icon (top-right) */
.sx-card--mid .sx-icon {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  color: var(--red-500);
  opacity: 0.85;
}
.sx-card--mid .sx-icon svg { width: 100%; height: 100%; }
.sx-card--mid .sx-num { color: var(--ink-500); }
.sx-card--mid .sx-title { color: var(--navy-900); }
.sx-card--mid .sx-desc { color: var(--ink-700); }

/* Wide dark card stats */
.sx-card--wide .sx-card-body {
  flex-direction: row;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
}
.sx-card--wide .sx-card-body > :first-child,
.sx-card--wide .sx-card-body > :nth-child(2),
.sx-card--wide .sx-card-body > :nth-child(3) { display: block; }
.sx-card--wide .sx-card-body {
  display: grid;
  grid-template-columns: 1.2fr auto;
  align-items: center;
}
.sx-card--wide .sx-num { grid-column: 1; }
.sx-card--wide .sx-title { grid-column: 1; grid-row: 2; }
.sx-card--wide .sx-desc { grid-column: 1; grid-row: 3; }
.sx-card--wide .sx-stats { grid-column: 2; grid-row: 1 / 4; align-self: center; }

@media (max-width: 880px) {
  .sx-card--wide .sx-card-body { grid-template-columns: 1fr; }
  .sx-card--wide .sx-stats { grid-column: 1; grid-row: auto; }
}

.sx-stats {
  display: flex;
  gap: 36px;
}
@media (max-width: 540px) { .sx-stats { gap: 20px; flex-wrap: wrap; } }
.sx-stats > div { display: flex; flex-direction: column; gap: 4px; }
.sx-stats strong {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  color: var(--red-400);
}
.sx-stats span {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
  max-width: 18ch;
}

/* Photo cards — real backgrounds with overlay */
.sx-photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  color: white;
}
.sx-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,13,31,0.15) 0%, rgba(5,13,31,0.55) 55%, rgba(5,13,31,0.92) 100%);
  z-index: 0;
  pointer-events: none;
  transition: background var(--t);
}
.sx-photo:hover::before {
  background: linear-gradient(180deg, rgba(5,13,31,0.3) 0%, rgba(5,13,31,0.7) 55%, rgba(5,13,31,0.95) 100%);
}
.sx-photo .sx-card-body {
  position: relative;
  z-index: 1;
  justify-content: flex-end;
  color: white;
}
.sx-photo .sx-num,
.sx-photo .sx-title,
.sx-photo .sx-desc { color: white; }
.sx-photo.sx-card--mid .sx-card-body { padding: 32px; min-height: 280px; }
.sx-photo.sx-card--mid .sx-title { font-size: clamp(24px, 2.4vw, 32px); }

/* Wide dark photo card stats override */
.sx-card--wide.sx-photo::before {
  background: linear-gradient(90deg, rgba(5,13,31,0.92) 0%, rgba(5,13,31,0.7) 50%, rgba(5,13,31,0.45) 100%);
}

/* Photo cards bento layout */
.sx-bento { grid-auto-rows: minmax(260px, auto); }
