/* ==========================================================================
   SERVICES PAGE (hub) + SERVICE DETAIL TEMPLATE
   ========================================================================== */

.services-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.service-card-lg {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--black-card);
  border: 1px solid var(--grey-line);
  overflow: hidden;
  padding: var(--space-md);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform var(--dur-med) var(--ease-out), border-color var(--dur-med) ease, box-shadow var(--dur-med) ease;
}
.service-card-lg::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(229,9,20,0.18), transparent 70%);
  transition: opacity var(--dur-med) ease, transform var(--dur-med) ease;
}
.service-card-lg:hover {
  transform: translateY(-8px);
  border-color: var(--red-dim);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.6), 0 0 40px -10px var(--red-glow);
}
.service-card-lg:hover::before { transform: scale(1.3); }

.service-card-lg .card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(229,9,20,0.1);
  border: 1px solid rgba(229,9,20,0.3);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-sm);
  transition: transform var(--dur-med) var(--ease-out);
}
.service-card-lg:hover .card-icon { transform: rotate(-10deg); }
.service-card-lg .card-icon svg { width: 26px; height: 26px; stroke: var(--red); }

.service-card-lg h3 { font-size: 1.3rem; text-transform: none; font-family: var(--font-body); font-weight: 700; margin-bottom: 0.5em; }
.service-card-lg p { font-size: 0.92rem; margin-bottom: var(--space-sm); }
.service-card-lg .card-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
.service-card-lg .card-link .arrow { transition: transform var(--dur-fast) var(--ease-out); }
.service-card-lg:hover .card-link .arrow { transform: translateX(5px); }

@media (max-width: 1024px) { .services-hub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services-hub-grid { grid-template-columns: 1fr; } }

/* ---------- SERVICE DETAIL PAGE ---------- */
.service-hero {
  position: relative;
  padding-top: calc(var(--header-h) + var(--space-xl));
  padding-bottom: var(--space-lg);
  overflow: hidden;
}
.service-hero .container { position: relative; z-index: 2; }
.service-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-lg);
  align-items: center;
}
.service-hero-visual {
  aspect-ratio: 5/4;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--black-card), var(--black-deep));
  border: 1px solid var(--grey-line);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.service-hero-visual .big-icon { width: 96px; height: 96px; stroke: var(--red); opacity: 0.85; }
.service-hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(229,9,20,0.18), transparent 60%);
}

.service-breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey-steel);
  margin-bottom: var(--space-sm);
  display: flex;
  gap: 0.5em;
  align-items: center;
}
.service-breadcrumb a { color: var(--grey-steel); transition: color var(--dur-fast) ease; }
.service-breadcrumb a:hover { color: var(--red); }
.service-breadcrumb .sep { color: var(--grey-line); }
.service-breadcrumb .current { color: var(--red); }

.service-list {
  display: grid;
  gap: 0.9rem;
  margin: var(--space-md) 0;
}
.service-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--grey-line);
  transition: border-color var(--dur-fast) ease, background var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.service-list-item:hover {
  border-color: var(--red-dim);
  background: rgba(229,9,20,0.05);
  transform: translateX(4px);
}
.service-list-item svg { width: 18px; height: 18px; stroke: var(--red); flex-shrink: 0; margin-top: 3px; }
.service-list-item span { font-size: 0.95rem; color: var(--grey-soft); }

.service-process-mini {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
}
.process-mini-card {
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  background: var(--black-card);
  border: 1px solid var(--grey-line);
  transition: border-color var(--dur-med) ease, transform var(--dur-med) ease;
}
.process-mini-card:hover { border-color: var(--red-dim); transform: translateY(-5px); }
.process-mini-card .mini-num { font-family: var(--font-mono); color: var(--red); font-size: 0.85rem; margin-bottom: 0.5em; display: block; }
.process-mini-card h4 { font-size: 0.95rem; margin-bottom: 0.4em; text-transform: none; }
.process-mini-card p { font-size: 0.83rem; margin: 0; }

@media (max-width: 900px) {
  .service-hero-grid { grid-template-columns: 1fr; }
  .service-hero { padding-top: calc(var(--header-h) + var(--space-md)); }
}
@media (max-width: 700px) {
  .service-process-mini { grid-template-columns: 1fr 1fr; }
}

/* ---------- Related services strip ---------- */
.related-services {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}
.related-chip {
  flex-shrink: 0;
  padding: 0.7em 1.3em;
  border-radius: 999px;
  border: 1px solid var(--grey-line);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--grey-soft);
  white-space: nowrap;
  transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease, background var(--dur-fast) ease;
}
.related-chip:hover { border-color: var(--red); color: var(--white); background: rgba(229,9,20,0.08); }
.related-chip.is-current { border-color: var(--red); color: var(--white); background: rgba(229,9,20,0.12); }
