/* ══════════════════════════════════════════════════
   Services directory (/service/) — self-contained
   styles. Same design language as /case-studies/css/
   case-studies.css (dark, restrained yellow accent),
   extended with image thumbnails and a category tag.
   Reuses --yellow/--border/--muted tokens from
   ../css/style.css. Every selector here is prefixed
   .si- so nothing collides with the rest of the site.
   ══════════════════════════════════════════════════ */

.si-page { padding-top: 74px; }

.si-width {
  width: min(1200px, calc(100% - 44px));
  margin-inline: auto;
}

@media (max-width: 780px) {
  .si-width { width: calc(100% - 40px); }
}

.si-label {
  display: block;
  color: var(--yellow);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1;
  text-transform: uppercase;
}

/* ── HERO ── */
.si-hero {
  padding: clamp(56px, 7vw, 88px) 0 clamp(44px, 5vw, 64px);
  border-bottom: 1px solid var(--border);
}

.si-hero h1 {
  max-width: 820px;
  margin: 20px 0 18px;
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -1px;
}

.si-hero p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.3vw, 16.5px);
  line-height: 1.75;
}

/* ── GRID ── */
.si-list {
  padding: clamp(48px, 6vw, 72px) 0 clamp(64px, 7vw, 96px);
}

.si-grid {
  display: grid;
  gap: 26px;
}

@media (min-width: 640px) {
  .si-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1040px) {
  .si-grid { grid-template-columns: repeat(3, 1fr); }
}

.si-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 220ms ease, transform 220ms ease;
}

.si-card:hover {
  border-color: rgba(255, 237, 84, 0.34);
  transform: translateY(-4px);
}

.si-card-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(160deg, #151300 0%, #0d0d0d 55%, #0a0a0a 100%);
}

.si-card-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.si-card-tag {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: var(--yellow);
  background: rgba(13, 13, 13, 0.82);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.si-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 24px;
}

.si-card h2 {
  margin: 0 0 10px;
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(19px, 1.7vw, 22px);
  font-weight: 800;
  line-height: 1.18;
}

.si-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
  flex: 1;
}

.si-card-link {
  display: inline-flex;
  align-items: center;
  color: var(--yellow);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.si-card-link span {
  display: inline-block;
  margin-left: 7px;
  transition: transform 220ms ease;
}

.si-card:hover .si-card-link span { transform: translate(3px, -3px); }

.si-empty {
  padding: 40px 0;
  color: var(--muted);
  font-size: 14.5px;
}

@media (max-width: 780px) {
  .si-page { padding-top: 66px; }
}
