/**
 * PCTechComVn — Services Bento Grid CSS
 * Child Theme CSS Module
 * Version: 1.0.0 (Sprint 4)
 *
 * Bento grid: 4-col with featured remote card spanning 2×2.
 * Normal cards with gradient top-border on hover.
 * Data: Query Loop on CPT `service`.
 */

/* ═══════════════════════════════════════════════
   1. SECTION WRAPPER
   ═══════════════════════════════════════════════ */
.services {
  background: var(--white);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 280px;
  background: linear-gradient(90deg, rgba(6, 42, 85, 0.04), transparent);
  pointer-events: none;
}


/* ═══════════════════════════════════════════════
   2. BENTO GRID
   ═══════════════════════════════════════════════ */
.services-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}


/* ═══════════════════════════════════════════════
   3. SERVICE CARD — Standard
   ═══════════════════════════════════════════════ */
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--gray-200);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Gradient top-border on hover */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

/* AI variant */
.service-card.ai {
  border-color: var(--green);
}

.service-card.ai::before {
  background: var(--green);
}

/* Icon */
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
  background: var(--blue-light);
  transition: transform 0.3s;
}

.service-card:hover .service-icon {
  animation: cardIconBounce 0.6s ease;
}

.service-card.ai .service-icon {
  background: var(--green-light);
}

/* Title */
.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 8px;
}

/* Description */
.service-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Link arrow */
.service-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
  text-decoration: none;
}

.service-link:hover {
  gap: 8px;
}

/* Online badge */
.badge-online {
  position: absolute;
  top: 16px;
  right: 16px;
}


/* ═══════════════════════════════════════════════
   4. FEATURED REMOTE CARD — 2×2 span
   ═══════════════════════════════════════════════ */
.service-remote-featured {
  grid-column: span 2;
  grid-row: span 2;
  padding: 36px;
  background: linear-gradient(145deg, #0a3d6e, var(--blue-deeper) 55%, #1a5a9e);
  color: var(--white);
  border: 2px solid rgba(232, 135, 10, 0.55);
  box-shadow: 0 12px 40px rgba(232, 135, 10, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

/* Glow border animation */
.service-remote-featured::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(135deg, var(--orange), #ffd080, var(--orange));
  z-index: -1;
  opacity: 0.45;
  animation: glowRotate 4s linear infinite;
}

.service-remote-featured h3,
.service-remote-featured p {
  color: rgba(255, 255, 255, 0.92);
}

.service-remote-featured .service-icon {
  background: rgba(255, 255, 255, 0.14);
  font-size: 2rem;
  width: 64px;
  height: 64px;
}

.service-remote-featured .service-link {
  color: #ffd080;
  font-size: 0.95rem;
}

/* Price tag */
.service-price-tag {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-weight: 800;
  font-size: 1.35rem;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(232, 135, 10, 0.45);
}

/* Badge on featured */
.service-remote-featured .badge-online {
  top: 16px;
  left: 16px;
  right: auto;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
}


/* ═══════════════════════════════════════════════
   5. HIGHLIGHT BAND
   ═══════════════════════════════════════════════ */
.highlight-band {
  background: linear-gradient(90deg, var(--blue-deeper), var(--blue-dark), var(--blue-deeper));
  padding: 32px 0;
  overflow: hidden;
  position: relative;
}

.highlight-band::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  animation: bandShine 4s infinite;
}

.highlight-band-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 600;
  font-size: 0.92rem;
}

.highlight-item .hi-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(232, 135, 10, 0.2);
  border: 1px solid rgba(232, 135, 10, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}


/* ═══════════════════════════════════════════════
   6. PARTNERS MARQUEE
   ═══════════════════════════════════════════════ */
.partners-strip {
  background: var(--gray-50);
  padding: 28px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  overflow: hidden;
}

.partners-track {
  display: flex;
  gap: 48px;
  animation: ticker 30s linear infinite;
  width: max-content;
}

.partner-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--blue-dark);
  opacity: 0.7;
  white-space: nowrap;
  padding: 8px 20px;
  background: var(--white);
  border-radius: 50px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
}


/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .services-bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-remote-featured {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 640px) {
  .services-bento {
    grid-template-columns: 1fr;
  }

  .service-remote-featured {
    grid-column: span 1;
    padding: 24px;
  }

  .service-card {
    padding: 20px;
  }

  .highlight-band-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
