/* ==========================================================================
   NM INNOVATION HUB — Servicos (Services) Page
   ========================================================================== */

/* ── Services Page Header ───────────────────────────────────────────────── */
.services-header {
  padding-top: calc(var(--navbar-height) + var(--space-4xl));
  padding-bottom: var(--space-3xl);
  text-align: center;
  position: relative;
}

.services-header .section-label {
  justify-content: center;
}

.services-header .section-title {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.services-header .page-subtitle {
  color: var(--color-text-secondary);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: var(--lh-relaxed);
}

/* ── Services Grid ──────────────────────────────────────────────────────── */
.services-section {
  padding: var(--space-3xl) 0 var(--space-section);
  position: relative;
  overflow: hidden;
}

.services-grid,
.services-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-xl);
}

/* ── Service Card ───────────────────────────────────────────────────────── */
.service-card {
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.service-card:hover {
  transform: translateY(-4px);
}

/* Service card HUD index */
.service-card::before {
  content: attr(data-index);
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  color: var(--color-navy-400);
  line-height: 1;
  opacity: 0.2;
  transition: all var(--transition-base);
  z-index: 0;
  pointer-events: none;
}

.service-card:hover::before {
  color: var(--color-cyan-500);
  opacity: 0.1;
  transform: scale(1.1);
}

.service-card-icon,
.service-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-md);
  background: linear-gradient(135deg, rgba(0, 168, 255, 0.12) 0%, rgba(0, 168, 255, 0.04) 100%);
  color: var(--color-cyan-500);
  font-size: 1.5rem;
  transition: all var(--transition-smooth);
  position: relative;
  z-index: 1;
  border: 1px solid rgba(0, 168, 255, 0.1);
}

.service-card:hover .service-card-icon,
.service-card:hover .service-icon {
  background: linear-gradient(135deg, rgba(0, 168, 255, 0.2) 0%, rgba(0, 168, 255, 0.08) 100%);
  color: var(--color-cyan-400);
  box-shadow: 0 0 20px rgba(0, 168, 255, 0.15);
  border-color: rgba(0, 168, 255, 0.3);
}

.service-card-title,
.service-title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--color-text-primary);
  position: relative;
  z-index: 1;
}

.service-card-description,
.service-description {
  color: var(--color-text-secondary);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  position: relative;
  z-index: 1;
  flex: 1;
}

/* Service card features list */
.service-card-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
  position: relative;
  z-index: 1;
}

.service-card-feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}

.service-card-feature i,
.service-card-feature .feature-check {
  color: var(--color-cyan-500);
  font-size: var(--fs-xs);
  width: 16px;
  text-align: center;
}

/* Service card bottom link */
.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-md);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--color-cyan-500);
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: gap var(--transition-fast);
  position: relative;
  z-index: 1;
}

.service-card:hover .service-card-link {
  gap: 10px;
}

/* ── Subtle glow on service card hover ──────────────────────────────────── */
.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(0, 168, 255, 0.04),
    transparent 40%
  );
  opacity: 0;
  transition: opacity var(--transition-smooth);
  pointer-events: none;
  z-index: 0;
}

.service-card:hover::after {
  opacity: 1;
}

/* ── CTA Card (Bottom Highlighted) ──────────────────────────────────────── */
.services-cta-card,
.cta-card {
  grid-column: 1 / -1;
  margin-top: var(--space-3xl);
  background: linear-gradient(
    135deg,
    rgba(15, 26, 46, 0.8) 0%,
    rgba(12, 22, 41, 0.6) 100%
  );
  border: 1px solid rgba(0, 168, 255, 0.3);
  border-radius: 16px;
  padding: var(--space-3xl);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xl);
  position: relative;
  box-shadow: 0 4px 24px rgba(0, 168, 255, 0.08);
}

.cta-card h2 {
  flex: 1 1 280px;
}

.cta-card p {
  flex: 2 1 300px;
}

.cta-card .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.services-cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse at 20% 50%,
    rgba(0, 168, 255, 0.05) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.services-cta-content {
  max-width: 500px;
  position: relative;
  z-index: 1;
}

.services-cta-title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

.services-cta-text {
  color: var(--color-text-secondary);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
}

.services-cta-actions {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* ── HUD bracket decoration on CTA ─────────────────────────────────────── */
.services-cta-card .hud-corner {
  position: absolute;
  width: 24px;
  height: 24px;
}

.services-cta-card .hud-corner--tl {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--color-cyan-400);
  border-left: 2px solid var(--color-cyan-400);
  border-radius: var(--border-radius-lg) 0 0 0;
}

.services-cta-card .hud-corner--tr {
  top: -1px;
  right: -1px;
  border-top: 2px solid var(--color-cyan-400);
  border-right: 2px solid var(--color-cyan-400);
  border-radius: 0 var(--border-radius-lg) 0 0;
}

.services-cta-card .hud-corner--bl {
  bottom: -1px;
  left: -1px;
  border-bottom: 2px solid var(--color-cyan-400);
  border-left: 2px solid var(--color-cyan-400);
  border-radius: 0 0 0 var(--border-radius-lg);
}

.services-cta-card .hud-corner--br {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--color-cyan-400);
  border-right: 2px solid var(--color-cyan-400);
  border-radius: 0 0 var(--border-radius-lg) 0;
}
