/*
 * Supl.Biz UAE — Wholesale Products Background Animation Layer
 * Floating product icons representing the B2B wholesale universe
 */

/* ─── Floating Products Canvas ─────────────────────────────────────────────── */
.products-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.product-float {
  position: absolute;
  font-size: 1.8rem;
  opacity: 0;
  user-select: none;
  animation: floatProduct linear infinite;
  filter: drop-shadow(0 0 6px rgba(255, 179, 0, 0.18));
}

/* Give each product a unique trajectory and timing */
.product-float:nth-child(1)  { left:  4%; animation-duration: 22s; animation-delay:  0s;   font-size: 2.2rem; }
.product-float:nth-child(2)  { left:  9%; animation-duration: 18s; animation-delay: -5s;   font-size: 1.4rem; }
.product-float:nth-child(3)  { left: 15%; animation-duration: 26s; animation-delay: -2s;   font-size: 2rem;   }
.product-float:nth-child(4)  { left: 21%; animation-duration: 20s; animation-delay: -9s;   font-size: 1.6rem; }
.product-float:nth-child(5)  { left: 28%; animation-duration: 24s; animation-delay: -1s;   font-size: 2.4rem; }
.product-float:nth-child(6)  { left: 34%; animation-duration: 19s; animation-delay: -7s;   font-size: 1.5rem; }
.product-float:nth-child(7)  { left: 40%; animation-duration: 27s; animation-delay: -3s;   font-size: 2rem;   }
.product-float:nth-child(8)  { left: 46%; animation-duration: 21s; animation-delay:-11s;   font-size: 1.8rem; }
.product-float:nth-child(9)  { left: 52%; animation-duration: 23s; animation-delay: -4s;   font-size: 1.3rem; }
.product-float:nth-child(10) { left: 58%; animation-duration: 17s; animation-delay: -8s;   font-size: 2.2rem; }
.product-float:nth-child(11) { left: 64%; animation-duration: 25s; animation-delay: -6s;   font-size: 1.7rem; }
.product-float:nth-child(12) { left: 70%; animation-duration: 20s; animation-delay:-13s;   font-size: 2rem;   }
.product-float:nth-child(13) { left: 76%; animation-duration: 22s; animation-delay: -2s;   font-size: 1.5rem; }
.product-float:nth-child(14) { left: 82%; animation-duration: 18s; animation-delay:-10s;   font-size: 2.3rem; }
.product-float:nth-child(15) { left: 88%; animation-duration: 28s; animation-delay: -5s;   font-size: 1.6rem; }
.product-float:nth-child(16) { left: 94%; animation-duration: 21s; animation-delay:-14s;   font-size: 1.9rem; }
.product-float:nth-child(17) { left:  7%; animation-duration: 30s; animation-delay:-16s;   font-size: 1.4rem; }
.product-float:nth-child(18) { left: 18%; animation-duration: 16s; animation-delay: -3s;   font-size: 2.1rem; }
.product-float:nth-child(19) { left: 30%; animation-duration: 24s; animation-delay:-18s;   font-size: 1.3rem; }
.product-float:nth-child(20) { left: 75%; animation-duration: 19s; animation-delay: -7s;   font-size: 2rem;   }

@keyframes floatProduct {
  0% {
    transform: translateY(110vh) rotate(-15deg) scale(0.7);
    opacity: 0;
  }
  5% {
    opacity: 0.08;
  }
  50% {
    transform: translateY(40vh) rotate(10deg) scale(1);
    opacity: 0.12;
  }
  95% {
    opacity: 0.06;
  }
  100% {
    transform: translateY(-15vh) rotate(20deg) scale(0.8);
    opacity: 0;
  }
}

/* Horizontal drift variant */
.product-float:nth-child(odd) {
  animation-name: floatProductDrift;
}

@keyframes floatProductDrift {
  0% {
    transform: translateY(110vh) translateX(0) rotate(-10deg) scale(0.6);
    opacity: 0;
  }
  5%  { opacity: 0.07; }
  30% { transform: translateY(60vh) translateX(30px) rotate(5deg) scale(0.9); }
  60% { transform: translateY(30vh) translateX(-20px) rotate(-5deg) scale(1.05); opacity: 0.11; }
  90% { transform: translateY(5vh) translateX(15px) rotate(8deg) scale(0.8); opacity: 0.05; }
  100% {
    transform: translateY(-10vh) translateX(0) rotate(15deg) scale(0.7);
    opacity: 0;
  }
}

/* ─── Ensure page content sits above the canvas ─────────────────────────────── */
header,
main,
section,
footer,
.sticky-cta-bar {
  position: relative;
  z-index: 1;
}

/* ─── Scrolling product ticker strip ──────────────────────────────────────── */
.products-ticker {
  width: 100%;
  overflow: hidden;
  background: linear-gradient(90deg, transparent 0%, rgba(255,179,0,0.04) 50%, transparent 100%);
  border-top: 1px solid rgba(255, 179, 0, 0.08);
  border-bottom: 1px solid rgba(255, 179, 0, 0.08);
  padding: 0.6rem 0;
  position: relative;
  z-index: 2;
}

.products-ticker-inner {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: tickerScroll 40s linear infinite;
  align-items: center;
}

.products-ticker-inner span {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.products-ticker-inner span em {
  font-style: normal;
  font-size: 1.1rem;
}

@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── Article / long-form content styles ─────────────────────────────────── */
.prose {
  max-width: 100%;
  line-height: 1.85;
}

.prose h2 {
  font-size: 1.9rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.prose h3 {
  font-size: 1.4rem;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--accent-gold);
}

.prose h4 {
  font-size: 1.1rem;
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
}

.prose p {
  color: var(--text-secondary);
  margin-bottom: 1.15rem;
  font-size: 0.985rem;
}

.prose ul, .prose ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
  font-size: 0.975rem;
}

.prose li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.prose blockquote {
  border-left: 3px solid var(--accent-gold);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: rgba(255,179,0,0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.prose blockquote p {
  margin-bottom: 0;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.prose .highlight-box {
  background: linear-gradient(135deg, rgba(255,179,0,0.07), rgba(255,179,0,0.03));
  border: 1px solid rgba(255,179,0,0.15);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.prose .highlight-box p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.prose table th {
  background: rgba(255,179,0,0.1);
  color: var(--accent-gold);
  text-align: left;
  padding: 0.65rem 1rem;
  font-family: var(--font-heading);
  font-weight: 600;
  border-bottom: 1px solid rgba(255,179,0,0.2);
}

.prose table td {
  padding: 0.6rem 1rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}

.prose table tr:last-child td {
  border-bottom: none;
}

/* ─── Stats Grid ─────────────────────────────────────────────────────────── */
.stats-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.stat-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.stat-card:hover {
  border-color: rgba(255,179,0,0.3);
  transform: translateY(-4px);
}

.stat-card .stat-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent-gold);
  font-family: var(--font-heading);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

@media (max-width: 768px) {
  .stats-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .stats-grid-4 { grid-template-columns: 1fr; }
}

/* Sidebar grid used on About / Platform / Contact pages */
@media (max-width: 992px) {
  main .container[style*="grid-template-columns: 1fr 360px"],
  main .container[style*="1fr 360px"] {
    display: block !important;
  }
  main .container[style*="grid-template-columns: 1fr 360px"] aside,
  main .container[style*="1fr 360px"] aside {
    margin-top: var(--space-lg);
  }
}

/* ─── Industry cards ─────────────────────────────────────────────────────── */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.industry-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: all 0.3s ease;
  text-align: center;
}

.industry-card:hover {
  border-color: rgba(255,179,0,0.3);
  background: var(--bg-secondary);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.industry-card .ic-emoji {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.75rem;
}

.industry-card h4 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.industry-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .industry-grid { grid-template-columns: 1fr; }
}

/* ─── Step timeline ──────────────────────────────────────────────────────── */
.step-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: var(--space-lg) 0;
  position: relative;
}

.step-timeline::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-gold), transparent);
}

.step-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  position: relative;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,179,0,0.12);
  border: 2px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent-gold);
  flex-shrink: 0;
  font-family: var(--font-heading);
  position: relative;
  z-index: 1;
}

.step-body h4 {
  margin-bottom: 0.3rem;
  font-size: 1.05rem;
}

.step-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ─── Testimonial cards ──────────────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.testimonial-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  font-size: 4rem;
  color: var(--accent-gold);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: var(--space-sm);
  font-size: 0.95rem;
  padding-top: 1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-author .av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,179,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--accent-gold);
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.testimonial-author span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}
