/*
 * SL Business – Parallax compact + cartes premium
 */

.sp-business-section {
  position: relative;
  background: #ffffff;
  overflow: hidden;
  padding: 32px 0 28px;
}

[data-reveal].sp-business-section {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}
[data-reveal].sp-business-section.is-revealed {
  opacity: 1;
}

.sp-business-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 71, 255, 0.5),
    transparent
  );
}

/* ── Background ornamental elements ── */
.sp-business-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.sp-bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.12;
}
.sp-bg-blob.blob--1 {
  width: 400px; height: 400px;
  background: #0047ff;
  top: -120px; left: -80px;
  animation: blobFloat1 14s ease-in-out infinite;
}
.sp-bg-blob.blob--2 {
  width: 300px; height: 300px;
  background: #6366f1;
  bottom: 10%; right: -60px;
  animation: blobFloat2 18s ease-in-out infinite;
  opacity: 0.08;
}
.sp-bg-blob.blob--3 {
  width: 180px; height: 180px;
  background: #a855f7;
  top: 40%; left: 60%;
  animation: blobPulse 8s ease-in-out infinite;
  opacity: 0.06;
}
.sp-bg-blob.blob--4 {
  width: 100px; height: 100px;
  background: #f97316;
  top: 60%; left: 20%;
  animation: blobFloat1 12s ease-in-out infinite reverse;
  opacity: 0.05;
}

.sp-bg-diamond {
  position: absolute;
  width: 24px; height: 24px;
  border: 1.5px solid rgba(0, 71, 255, 0.15);
  transform: rotate(45deg);
  opacity: 0.3;
}
.sp-bg-diamond.d--1 {
  top: 18%; right: 12%;
  width: 32px; height: 32px;
  animation: diamondDrift 20s ease-in-out infinite;
}
.sp-bg-diamond.d--2 {
  bottom: 25%; left: 8%;
  width: 18px; height: 18px;
  animation: diamondDrift 16s ease-in-out infinite reverse;
  border-color: rgba(99, 102, 241, 0.2);
}

@keyframes blobFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}
@keyframes blobFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 40px) scale(1.15); }
}
@keyframes blobPulse {
  0%, 100% { transform: scale(1); opacity: 0.06; }
  50% { transform: scale(1.3); opacity: 0.1; }
}
@keyframes diamondDrift {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  25% { transform: rotate(55deg) translate(20px, -20px); }
  50% { transform: rotate(35deg) translate(-15px, 10px); }
  75% { transform: rotate(50deg) translate(10px, -15px); }
}

/* ── Parallax Hero ───────────────────────────────────── */
.sp-business-parallax {
  position: relative;
  height: 30vh;
  min-height: 200px;
  max-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sp-parallax-bg {
  position: absolute;
  inset: -8%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.sp-parallax-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(15, 23, 42, 0.96) 0%,
    rgba(15, 23, 42, 0.75) 45%,
    rgba(15, 23, 42, 0.90) 100%
  );
  z-index: 1;
}

.sp-parallax-text {
  position: relative;
  z-index: 2;
  text-align: left;
  color: #ffffff;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  max-width: 1100px;
  width: 100%;
  will-change: transform;
}

.sp-parallax-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.5rem;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.sp-excellence {
  font-weight: 800;
  color: #ff222d;
}

.sp-parallax-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  color: #ffffff;
  opacity: 0.92;
  margin: 0;
  max-width: 620px;
  line-height: 1.65;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.sp-parallax-meta {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  margin: 0.75rem 0 0;
  opacity: 0.75;
}

.sp-parallax-meta strong {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

/* ── Cards Grid ──────────────────────────────────────── */
.sp-magnetic-stage {
  position: relative;
  z-index: 10;
  margin-top: -36px;
  padding: 0 clamp(1rem, 3vw, 2rem);
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
}

.sp-magnetic-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.sp-magnetic-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition:
    transform 0.45s cubic-bezier(0.165, 0.84, 0.44, 1),
    box-shadow 0.45s ease,
    border-color 0.3s ease;
  box-shadow: 0 4px 16px rgba(26, 28, 59, 0.04);
}

.sp-magnetic-card:hover {
  transform: translateY(-6px);
  border-color: #0047ff;
  box-shadow: 0 16px 40px rgba(0, 71, 255, 0.1);
}

.sp-magnetic-img-wrap {
  position: relative;
  width: 100%;
  height: 110px;
  overflow: hidden;
}

.sp-magnetic-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.sp-magnetic-card:hover .sp-magnetic-img-wrap img {
  transform: scale(1.08);
}

.sp-magnetic-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: "Outfit", sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.sp-magnetic-overlay span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sp-magnetic-card:hover .sp-magnetic-overlay {
  opacity: 1;
}

.sp-magnetic-content {
  padding: 10px 14px 12px;
}

.sp-magnetic-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.sp-magnetic-cat {
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sp-magnetic-price {
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #0047ff;
  white-space: nowrap;
}

.sp-magnetic-title {
  font-family: "Outfit", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sp-magnetic-excerpt {
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.45;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sp-magnetic-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  padding: 6px 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0047ff;
  background: transparent;
  border: 1px solid rgba(0, 71, 255, 0.3);
  border-radius: 30px;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.sp-magnetic-card:hover .sp-magnetic-cta {
  background: #0047ff;
  color: #ffffff;
  border-color: #0047ff;
  box-shadow: 0 4px 14px rgba(0, 71, 255, 0.3);
}

/* ── Footer CTA ──────────────────────────────────────── */
.sp-magnetic-footer {
  text-align: center;
  margin-top: 16px;
}

.sp-business-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 32px;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  background: linear-gradient(135deg, #0047ff, #6366f1);
  background-size: 200% 200%;
  color: #ffffff;
  border-radius: 30px;
  border: none;
  box-shadow: 0 6px 20px rgba(0, 71, 255, 0.25);
  transition:
    background-position 0.4s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
  animation: bizBtnBreathe 3s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
}

.sp-business-btn-outline:hover {
  background-position: 100% 50%;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 71, 255, 0.35);
  animation-play-state: paused;
}

@keyframes bizBtnBreathe {
  0%   { transform: translateY(0) scale(1); box-shadow: 0 6px 20px rgba(0, 71, 255, 0.25); }
  50%  { transform: translateY(-3px) scale(1.02); box-shadow: 0 12px 30px rgba(0, 71, 255, 0.35); }
  100% { transform: translateY(0) scale(1); box-shadow: 0 6px 20px rgba(0, 71, 255, 0.25); }
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .sp-magnetic-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .sp-business-parallax {
    max-height: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sp-business-bg,
  .sp-business-btn-outline {
    animation: none !important;
  }
  .sp-business-btn-outline {
    animation-play-state: paused !important;
  }
}

@media (max-width: 768px) {
  .sp-business-parallax {
    height: auto;
    min-height: 180px;
    padding: 1.5rem 0;
  }
  .sp-parallax-text {
    text-align: center;
  }
  .sp-parallax-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .sp-magnetic-stage {
    margin-top: -24px;
  }
  .sp-magnetic-container {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .sp-magnetic-img-wrap {
    height: 140px;
  }
  .sp-business-btn-outline {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .sp-business-section { padding: 1rem 0; }
  .sp-business-parallax { min-height: 140px; padding: 1rem 0; }
  .sp-parallax-title { font-size: 1.3rem; }
  .sp-parallax-subtitle { font-size: 0.8rem; }
  .sp-magnetic-img-wrap { height: 100px; }
  .sp-business-btn-outline { font-size: 0.8rem; padding: 8px 16px; }
}
