/* ==========================================================================
   SERVICE ROWS v3 — Dark split-layout (reference: game-dev studio concept)
   ========================================================================== */

/* ── Section shell ─────────────────────────────────────────────────────── */
.svc-section-dark {
  background: #eef7ff;
  padding: 100px 0 110px;
  position: relative;
  overflow: hidden;
}

/* radial overlay removed for light-bg variant */

/* ── Section header ────────────────────────────────────────────────────── */
.svc-head-dark {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 72px;
}

.svc-eyebrow-dark {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0878ed;
  background: rgba(8,120,237,0.12);
  border: 1px solid rgba(8,120,237,0.25);
  display: inline-block;
  padding: 5px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.svc-title-dark {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: #060f1e;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.svc-desc-dark {
  font-size: 17px;
  color: rgba(6,15,30,0.65);
  line-height: 1.65;
  max-width: 640px;
  margin: 0 auto;
}

/* ── Row stack ─────────────────────────────────────────────────────────── */
.svc-rows {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

/* ── Individual row ────────────────────────────────────────────────────── */
.svc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

/* Even rows: flip image to right */
.svc-row--flip {
  direction: rtl;
}
.svc-row--flip > * {
  direction: ltr;
}

/* ── Visual (SVG illustration) side ─────────────────────────────────────── */
.svc-row__visual {
  position: relative;
}

.svc-row__img-wrap {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 32px 64px rgba(0,0,0,0.5),
    0 8px 24px rgba(0,0,0,0.3);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.svc-row__img-wrap:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow:
    0 0 0 1px rgba(8,120,237,0.2),
    0 40px 80px rgba(0,0,0,0.5),
    0 0 60px rgba(8,120,237,0.12);
}

/* Per-service accent glow on hover */
.svc-img--brand:hover  { box-shadow: 0 0 0 1px rgba(8,120,237,0.25), 0 36px 70px rgba(0,0,0,0.5), 0 0 50px rgba(8,120,237,0.18); }
.svc-img--digital:hover { box-shadow: 0 0 0 1px rgba(6,182,212,0.25), 0 36px 70px rgba(0,0,0,0.5), 0 0 50px rgba(6,182,212,0.18); }
.svc-img--media:hover  { box-shadow: 0 0 0 1px rgba(245,158,11,0.25), 0 36px 70px rgba(0,0,0,0.5), 0 0 50px rgba(245,158,11,0.15); }

.svc-img--brand,
.svc-img--digital,
.svc-img--media,
.svc-img--ai {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.svc-img--brand .svc-row__img,
.svc-img--digital .svc-row__img,
.svc-img--media .svc-row__img,
.svc-img--ai .svc-row__img {
  background: transparent;
}

.svc-row__img {
  width: 100%;
  height: auto;
  aspect-ratio: 520 / 380;
  object-fit: contain;
  display: block;
  padding: 12px;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
}

.svc-row__svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Content side ───────────────────────────────────────────────────────── */
.svc-row__content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.svc-row__eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(6,15,30,0.45);
  margin-bottom: 14px;
  display: block;
}

.svc-row__title {
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 700;
  color: #096ad8;
  letter-spacing: -0.03em;
  line-height: 1.18;
  margin-bottom: 18px;
}

.svc-row__title strong {
  color: #060f1e;
  font-weight: 800;
}

.svc-row__desc {
  font-size: 16px;
  color: rgba(6,15,30,0.6);
  line-height: 1.7;
  margin-bottom: 28px;
}

/* ── Checklist ───────────────────────────────────────────────────────────── */
.svc-row__checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}

.svc-row__checklist li {
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(6,15,30,0.7);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

.svc-row__checklist li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(8,120,237,0.15);
  border: 1px solid rgba(8,120,237,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Checkmark via background-image */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 5l2.5 2.5L8 3' stroke='%230878ed' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 10px;
  background-repeat: no-repeat;
  background-position: center;
  background-color: rgba(8,120,237,0.12);
}

/* ── Action buttons ─────────────────────────────────────────────────────── */
.svc-row__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.svc-row__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  text-decoration: none;
}

.svc-row__btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

/* Primary (inherits .btn--p) */
.svc-row__btn.btn--p {
  background: linear-gradient(135deg, #0878ed, #0a69d8);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(8,120,237,0.35);
}

.svc-row__btn.btn--p:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(8,120,237,0.45);
  background: linear-gradient(135deg, #0a84ff, #096ad8);
}

/* Ghost / secondary */
.svc-row__btn--ghost {
  background: rgba(6,15,30,0.05);
  color: rgba(6,15,30,0.8);
  border-color: rgba(6,15,30,0.18);
  backdrop-filter: blur(6px);
}

.svc-row__btn--ghost:hover {
  background: rgba(6,15,30,0.09);
  color: #060f1e;
  border-color: rgba(6,15,30,0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* ── Reveal animation ───────────────────────────────────────────────────── */
.svc-row.rv {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.svc-row.rv.in-view {
  opacity: 1;
  transform: none;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .svc-row {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .svc-row--flip {
    direction: ltr;
  }

  /* On mobile, visual always comes first */
  .svc-row--flip .svc-row__visual {
    order: -1;
  }

  .svc-rows {
    gap: 56px;
  }
}

@media (max-width: 600px) {
  .svc-section-dark {
    padding: 72px 0 80px;
  }

  .svc-head-dark {
    margin-bottom: 48px;
  }

  .svc-row__checklist {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .svc-row__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .svc-row__btn {
    width: 100%;
    justify-content: center;
  }

  .svc-rows {
    gap: 48px;
  }
}

/* ── AI service accent ───────────────────────────────────────────────────── */
.svc-img--ai {
  background: transparent;
}

.svc-img--ai:hover {
  box-shadow: 0 0 0 1px rgba(0,229,160,0.3), 0 36px 70px rgba(0,0,0,0.6), 0 0 60px rgba(0,229,160,0.2);
}

/* ── Dark pill buttons (reference: unselected = border only, hover = filled) ── */
/* Matches the reference images: rounded pill, arrow icon left, dark bg */

.svc-row__btn--dark {
  background: #060f1e;
  color: #ffffff;
  border: 1.5px solid rgba(6,15,30,0.3);
  backdrop-filter: blur(4px);
}

.svc-row__btn--dark:hover {
  background: #1f2937;
  border-color: rgba(255,255,255,0.35);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.4);
}

.svc-row__btn--dark-ghost {
  background: #000000;
  color: #ffffff;
  border: 1.5px solid rgba(255,255,255,0.12);
}

.svc-row__btn--dark-ghost:hover {
  background: #0f172a;
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.5);
}

/* ── Also update all 3 service rows' ghost buttons to match dark pill style ── */
/* Override the light ghost in dark-background context to use the dark pill */
.svc-section-dark .svc-row__btn--ghost {
  background: rgba(6,15,30,0.06);
  color: rgba(6,15,30,0.78);
  border-color: rgba(6,15,30,0.18);
}

.svc-section-dark .svc-row__btn--ghost:hover {
  background: rgba(6,15,30,0.11);
  color: #060f1e;
  border-color: rgba(6,15,30,0.3);
}


/* ── No-card image style (beta-site: images freed from card wrapper) ───── */
.svc-section-dark .svc-row__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.svc-section-dark .svc-row__img {
  width: 100%;
  height: auto;
  aspect-ratio: 520 / 380;
  object-fit: contain;
  display: block;
  border-radius: 0;
  box-shadow: none;
  filter: none;
  padding: 0;
  transition: filter 0.4s ease;
}

/* ── Subtle accent glow on hover per service image ─────────────────────── */
.svc-section-dark .svc-img--brand:hover {
  filter: drop-shadow(0 12px 32px rgba(8,120,237,0.3));
}
.svc-section-dark .svc-img--digital:hover {
  filter: drop-shadow(0 12px 32px rgba(6,182,212,0.3));
}
.svc-section-dark .svc-img--media:hover {
  filter: drop-shadow(0 12px 32px rgba(245,158,11,0.28));
}
.svc-section-dark .svc-img--ai:hover {
  filter: drop-shadow(0 12px 32px rgba(0,229,160,0.3));
}

/* Restore flip direction for 2-col desktop layout only */
@media (min-width: 901px) {
  .svc-section-dark .svc-row--flip {
    direction: rtl;
  }
  .svc-section-dark .svc-row--flip > * {
    direction: ltr;
  }
}

@media (max-width: 900px) {
  .svc-section-dark .svc-row--flip {
    direction: ltr !important;
  }
  .svc-section-dark .svc-row--flip > * {
    direction: ltr !important;
  }
}
