/* ═══════════ 8 · COMPONENTE — CARDS DE SERVIÇO (compartilhado: home + página Serviços) ═══════════ */
.service-card {
  background: var(--graphite, #111114);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: clamp(1.6rem, 2.5vw, 2.4rem) clamp(1.2rem, 2vw, 1.5rem);
  position: relative;
  overflow: hidden;
  
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), border-color 0.4s, box-shadow 0.4s;
}

.card-content {
  flex-grow: 1; 
}

/* Numerador de Canto */
.service-card::before {
  content: attr(data-i);
  position: absolute;
  top: 1.4rem;
  right: 1.5rem;
  font-family: var(--font-display, Georgia, serif);
  font-style: italic;
  color: var(--brand, #00f0ff);
  font-size: 1.1rem;
  opacity: 0.6;
  z-index: 2;
}

/* Linha Animada do Topo (Cards Padrão) */
.service-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 3px;
  width: 0;
  background: var(--brand, #00f0ff);
  transition: width 0.5s ease;
}

@media (hover: hover) {
  .service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  }
  .service-card:hover::after {
    width: 100%;
  }
}

/* ── CARDS EM DESTAQUE (.destaque) COM FEIXE DE LUZ NA BORDA ── */
@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.service-card.destaque {
  background: linear-gradient(160deg, #1a1a21 0%, #111114 100%);
  border-color: rgba(255, 255, 255, 0.12);
}

.service-card.destaque::before {
  opacity: 1;
  font-weight: bold;
}

/* Feixe de luz contínuo que roda a borda */
.service-card.destaque::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  padding: 1.5px;
  height: auto;
  width: auto;
  
  background: conic-gradient(
    from var(--border-angle),
    transparent 70%,
    var(--brand, #00f0ff) 100%
  );
  
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  
  animation: rotate-border 2.5s linear infinite;
  pointer-events: none;
}

@media (hover: hover) {
  .service-card.destaque:hover {
    border-color: transparent;
    box-shadow: 0 12px 30px #fe500070;
  }
}

@keyframes rotate-border {
  to {
    --border-angle: 360deg;
  }
}

/* ── TIPOGRAFIA DOS CARDS ── */
.service-card h3 {
  font-family: var(--font-display, Georgia, serif);
  font-weight: 400;
  font-size: clamp(1.15rem, 1.3vw, 1.35rem);
  margin-bottom: 0.8rem;
  line-height: 1.25;
  color: #fff;
}

.service-card p {
  color: var(--white-dim, #a1a1aa);
  line-height: 1.5;
  font-size: clamp(0.82rem, 0.9vw, 0.88rem);
  margin-bottom: 1.4rem;
}

/* ── LISTA E LINKS ── */
.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.1rem;
}

.service-list li {
  font-size: clamp(0.8rem, 0.85vw, 0.85rem);
  color: var(--white-dim, #a1a1aa);
  margin-bottom: 0.6rem;
  position: relative;
  padding-left: 1.2rem;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.service-list li:last-child { margin-bottom: 0; }

.service-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand, #00f0ff);
  font-size: 0.65rem;
}

@media (hover: hover) {
  .service-card:hover .service-list li { color: #ffffff; }
  .service-card:hover .card-link { color: #ffffff; }
  .service-card:hover .card-link span { transform: translateX(6px); }
}

.card-footer {
  margin-top: 1.4rem;
  padding-top: 0.8rem;
}

.card-link {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--brand, #00f0ff);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.3s ease;
}

.card-link span { transition: transform 0.3s ease; }
