/* Nyvoxa - SEO content blocks: gradient cards with motion.
   Loaded on every page that carries the .seo-copy section, so the copy added
   for search reads as part of the store rather than a bare wall of text. */

.seo-copy {
  max-width: 900px;
  margin: 40px auto 8px;
  padding: 0 16px;
  font-family: var(--font-body, system-ui, -apple-system, 'Segoe UI', sans-serif);
}

.seo-copy .seo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 26px;
}

.seo-copy .seo-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 22px 20px 20px;
  color: #EAF0FF;
  background: linear-gradient(140deg, #101A33 0%, #1E2A4A 55%, #0C1426 100%);
  box-shadow: 0 10px 30px rgba(8, 12, 24, 0.16);
  opacity: 0;
  transform: translateY(16px);
  animation: seoCardIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.seo-copy .seo-card:nth-child(1) { animation-delay: 0.05s; }
.seo-copy .seo-card:nth-child(2) { animation-delay: 0.15s; }
.seo-copy .seo-card:nth-child(3) { animation-delay: 0.25s; }
.seo-copy .seo-card:nth-child(4) { animation-delay: 0.35s; }

@keyframes seoCardIn {
  to { opacity: 1; transform: translateY(0); }
}

/* the soft colour wash that moves across the card */
.seo-copy .seo-card::before {
  content: '';
  position: absolute;
  inset: -60% -20% auto -20%;
  height: 140%;
  background: radial-gradient(60% 60% at 30% 20%, rgba(255, 107, 107, 0.22), transparent 70%),
              radial-gradient(50% 50% at 80% 0%, rgba(96, 165, 250, 0.20), transparent 70%);
  opacity: 0.7;
  transition: opacity 0.35s ease, transform 0.6s ease;
  pointer-events: none;
}

.seo-copy .seo-card:nth-child(even)::before {
  background: radial-gradient(60% 60% at 70% 20%, rgba(96, 165, 250, 0.22), transparent 70%),
              radial-gradient(50% 50% at 20% 0%, rgba(255, 107, 107, 0.18), transparent 70%);
}

.seo-copy .seo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(8, 12, 24, 0.30), 0 0 0 1px rgba(255, 107, 107, 0.28);
}

.seo-copy .seo-card:hover::before {
  opacity: 1;
  transform: translateY(6%) scale(1.05);
}

.seo-copy .seo-card h2 {
  position: relative;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 800;
  margin: 0 0 8px;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 10px;
}

.seo-copy .seo-card h2 .seo-ico {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.28), rgba(96, 165, 250, 0.28));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.seo-copy .seo-card p {
  position: relative;
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.72;
  color: #C7D2E6;
}

.seo-copy .seo-card p:last-child {
  margin-bottom: 0;
}

.seo-copy .seo-card .seo-pill {
  position: relative;
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #FFD9D9;
  background: rgba(255, 107, 107, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 107, 107, 0.34);
}

.seo-copy .seo-card .seo-pill.alt {
  color: #CFE3FF;
  background: rgba(96, 165, 250, 0.14);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.34);
}

/* a full-width card for a single wide block */
.seo-copy .seo-card.seo-wide {
  grid-column: 1 / -1;
}

@media (max-width: 720px) {
  .seo-copy .seo-grid {
    grid-template-columns: 1fr;
  }
  .seo-copy .seo-card {
    padding: 18px 16px;
  }
  .seo-copy .seo-card h2 {
    font-size: 16px;
  }
  .seo-copy .seo-card p {
    font-size: 14.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .seo-copy .seo-card {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
  .seo-copy .seo-card:hover {
    transform: none;
  }
}
