/* ============================================================
   PANJDHARA — Premium Trust Badges Section
   "Pure Goodness You Can Trust"
   Luxury horizontal interactive showcase with animated SVG badges
   ============================================================ */

/* ── Section Root ── */
.trust-section {
  position: relative;
  padding: 7rem 0 8rem;
  overflow: hidden;
  background: transparent;
  z-index: 1;
}

/* ── Decorative Background Layer ── */
.trust-bg-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Blurred decorative blobs */
.trust-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  will-change: transform;
}

.trust-blob--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #f8b400, #ff8f2a);
  top: -15%;
  left: -8%;
  animation: trustBlobFloat 18s ease-in-out infinite alternate;
}

.trust-blob--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #ffd263, #f8b400);
  bottom: -10%;
  right: -5%;
  animation: trustBlobFloat 22s ease-in-out infinite alternate-reverse;
}

.trust-blob--3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #ffe08a, #f8b400);
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  animation: trustBlobFloat 20s ease-in-out infinite alternate;
}

/* Subtle mustard flowers / seeds / organic shapes */
.trust-petal {
  position: absolute;
  pointer-events: none;
  opacity: 0.08;
  z-index: 0;
}

.trust-petal svg {
  width: 100%;
  height: 100%;
}

/* ── Golden Shine Sweep ── */
.trust-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.trust-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 215, 0, 0.06) 45%,
    rgba(255, 230, 100, 0.1) 50%,
    rgba(255, 215, 0, 0.06) 55%,
    transparent 70%
  );
  animation: trustShineSweep 8s ease-in-out infinite;
  transform: rotate(25deg);
}

/* ── Floating Oil Drops (ambient) ── */
.trust-oil-drops {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.trust-oil-drop {
  position: absolute;
  width: 12px;
  height: 16px;
  background: linear-gradient(180deg, rgba(248, 180, 0, 0.2), rgba(255, 107, 0, 0.15));
  border-radius: 50% 50% 50% 0;
  transform: rotate(45deg);
  opacity: 0.3;
  animation: trustDropFloat 6s ease-in-out infinite;
}

.trust-oil-drop:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; width: 10px; height: 14px; }
.trust-oil-drop:nth-child(2) { left: 25%; top: 70%; animation-delay: 1.2s; width: 8px; height: 11px; }
.trust-oil-drop:nth-child(3) { left: 50%; top: 15%; animation-delay: 2.5s; width: 14px; height: 18px; }
.trust-oil-drop:nth-child(4) { left: 70%; top: 60%; animation-delay: 0.8s; width: 9px; height: 12px; }
.trust-oil-drop:nth-child(5) { left: 85%; top: 30%; animation-delay: 3.2s; width: 11px; height: 15px; }
.trust-oil-drop:nth-child(6) { left: 35%; top: 85%; animation-delay: 1.8s; width: 7px; height: 10px; }

/* ── Floating Mustard Seeds ── */
.trust-seeds {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.trust-seed {
  position: absolute;
  width: 10px;
  height: 7px;
  background: radial-gradient(ellipse at 40% 40%, #8b6914, #5c4510);
  border-radius: 50%;
  opacity: 0.08;
  animation: trustSeedFloat 15s ease-in-out infinite;
}

.trust-seed:nth-child(1) { left: 5%; top: 10%; animation-delay: 0s; }
.trust-seed:nth-child(2) { left: 15%; top: 50%; animation-delay: 3s; }
.trust-seed:nth-child(3) { left: 40%; top: 30%; animation-delay: 6s; }
.trust-seed:nth-child(4) { left: 60%; top: 75%; animation-delay: 2s; }
.trust-seed:nth-child(5) { left: 80%; top: 15%; animation-delay: 5s; }
.trust-seed:nth-child(6) { left: 90%; top: 55%; animation-delay: 8s; }
.trust-seed:nth-child(7) { left: 30%; top: 90%; animation-delay: 4s; }
.trust-seed:nth-child(8) { left: 75%; top: 40%; animation-delay: 7s; }

/* ── Floating Pollen Particles ── */
.trust-pollen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.trust-pollen-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, #f8b400, #ffd263);
  border-radius: 50%;
  opacity: 0.15;
  animation: trustPollenFloat 12s ease-in-out infinite;
}

.trust-pollen-particle:nth-child(1) { left: 8%; top: 25%; animation-delay: 0s; }
.trust-pollen-particle:nth-child(2) { left: 22%; top: 45%; animation-delay: 2s; }
.trust-pollen-particle:nth-child(3) { left: 38%; top: 10%; animation-delay: 4s; }
.trust-pollen-particle:nth-child(4) { left: 55%; top: 65%; animation-delay: 1s; }
.trust-pollen-particle:nth-child(5) { left: 68%; top: 20%; animation-delay: 3s; }
.trust-pollen-particle:nth-child(6) { left: 82%; top: 70%; animation-delay: 5s; }
.trust-pollen-particle:nth-child(7) { left: 45%; top: 80%; animation-delay: 2.5s; }
.trust-pollen-particle:nth-child(8) { left: 90%; top: 45%; animation-delay: 6s; }
.trust-pollen-particle:nth-child(9) { left: 12%; top: 85%; animation-delay: 3.5s; }
.trust-pollen-particle:nth-child(10) { left: 72%; top: 5%; animation-delay: 4.5s; }

/* ── Section Header ── */
.trust-header {
  text-align: center;
  margin-bottom: 4.5rem;
  position: relative;
  z-index: 2;
}

.trust-eyebrow {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #c45f00;
  background: rgba(248, 180, 0, 0.12);
  padding: 0.5rem 1.4rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(248, 180, 0, 0.15);
  backdrop-filter: blur(4px);
}

.trust-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: #2a1f0d;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.trust-title .highlight {
  background: linear-gradient(135deg, #f8b400, #ff6b00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.trust-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: #5a4a35;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 400;
}

/* ── Badges Grid / Row ── */
.trust-badges {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ── Individual Badge ── */
.trust-badge {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.2rem 1.8rem;
  background: rgba(255, 248, 235, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 28px;
  border: 1px solid rgba(255, 215, 0, 0.15);
  box-shadow:
    0 4px 24px rgba(248, 180, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.5s ease,
    border-color 0.5s ease;
  cursor: pointer;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px) scale(0.92) rotate(-2deg);
  will-change: transform, opacity;
}

/* Staggered entrance delays are set via JS */

/* Badge visible state (triggered by JS) */
.trust-badge.visible {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(0deg);
}

/* ── Badge Glow (hover) ── */
.trust-badge::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 107, 0, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: -1;
  filter: blur(4px);
}

.trust-badge::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 180, 50, 0.1), transparent) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

/* Badge Hover State */
.trust-badge:hover {
  transform: translateY(-10px) scale(1.03) rotate(0deg);
  background: rgba(255, 252, 242, 0.85);
  box-shadow:
    0 20px 60px rgba(248, 180, 0, 0.18),
    0 8px 24px rgba(248, 180, 0, 0.1);
  border-color: rgba(255, 215, 0, 0.35);
}

.trust-badge:hover::before {
  opacity: 1;
}

.trust-badge:hover::after {
  opacity: 1;
}

/* ── Badge Icon Container ── */
.trust-badge-icon {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  position: relative;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.trust-badge:hover .trust-badge-icon {
  transform: rotate(-5deg) scale(1.08);
}

.trust-badge-icon svg {
  width: 90px;
  height: 90px;
  overflow: visible;
  filter: drop-shadow(0 4px 12px rgba(248, 180, 0, 0.15));
  transition: filter 0.4s ease;
}

.trust-badge:hover .trust-badge-icon svg {
  filter: drop-shadow(0 6px 20px rgba(248, 180, 0, 0.3));
}

/* ── Icon Glow Ring ── */
.trust-badge-icon::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248, 180, 0, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: scale(0.8);
}

.trust-badge:hover .trust-badge-icon::after {
  opacity: 1;
  transform: scale(1.1);
}

/* ── Badge Label ── */
.trust-badge-label {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #2a1f0d;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.trust-badge:hover .trust-badge-label {
  transform: translateY(-4px);
}

/* ── Badge Description ── */
.trust-badge-desc {
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  color: #6b5d4a;
  line-height: 1.5;
  max-width: 160px;
  margin: 0 auto;
  transition: transform 0.4s ease, color 0.4s ease;
}

.trust-badge:hover .trust-badge-desc {
  transform: translateY(-2px);
  color: #4a3d2c;
}

/* ── Sparkle Elements (hover micro-interaction) ── */
.trust-sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff8c4, #f8b400);
  pointer-events: none;
  opacity: 0;
  z-index: 3;
  animation: trustSparklePop 0.8s ease-out forwards;
}

/* ── Ripple Effect (hover) ── */
.trust-ripple {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(248, 180, 0, 0.25);
  pointer-events: none;
  animation: trustRippleExpand 0.8s ease-out forwards;
  z-index: 1;
}

/* ── Cursor-Reactive Light Effect ── */
.trust-cursor-light {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248, 180, 0, 0.06), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  transform: translate(-50%, -50%);
}

.trust-section:hover .trust-cursor-light {
  opacity: 1;
}

/* ── SVG Animation Classes (hover-triggered) ── */
.trust-svg-animate .svg-flask-glow { animation: svgGlowPulse 1s ease-in-out infinite; }
.trust-svg-animate .svg-leaf-sway { animation: svgLeafSway 2s ease-in-out infinite; }
.trust-svg-animate .svg-shield-pulse { animation: svgShieldPulse 1.2s ease-in-out infinite; }
.trust-svg-animate .svg-molecule-break { animation: svgMoleculeBreak 2s ease-in-out infinite; }
.trust-svg-animate .svg-flower-bloom { animation: svgFlowerBloom 2s ease-in-out infinite; }
.trust-svg-animate .svg-drop-pulse { animation: svgDropPulse 1.5s ease-in-out infinite; }
.trust-svg-animate .svg-filter-flow { animation: svgFilterFlow 2s ease-in-out infinite; }
.trust-svg-animate .svg-seal-glow { animation: svgSealGlow 1.8s ease-in-out infinite; }
.trust-svg-animate .svg-ribbon-wave { animation: svgRibbonWave 2.5s ease-in-out infinite; }

/* ── Decorative floating leaves (continuous) ── */
.trust-floating-leaves {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.trust-float-leaf {
  position: absolute;
  opacity: 0.06;
  animation: trustLeafSway 20s ease-in-out infinite;
}

.trust-float-leaf svg {
  width: 100%;
  height: 100%;
}

.trust-float-leaf:nth-child(1) { left: 5%; top: 5%; width: 40px; animation-delay: 0s; }
.trust-float-leaf:nth-child(2) { left: 90%; top: 15%; width: 35px; animation-delay: 5s; }
.trust-float-leaf:nth-child(3) { left: 10%; top: 75%; width: 30px; animation-delay: 10s; }
.trust-float-leaf:nth-child(4) { left: 85%; top: 80%; width: 38px; animation-delay: 15s; }

/* ═══════════════════════════════════════════════
   KEYFRAMES
   ═══════════════════════════════════════════════ */

@keyframes trustBlobFloat {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(30px, -40px) scale(1.08); }
  66%  { transform: translate(-20px, 20px) scale(0.95); }
  100% { transform: translate(10px, -30px) scale(1.05); }
}

@keyframes trustShineSweep {
  0%   { transform: translateX(-100%) rotate(25deg); }
  20%  { transform: translateX(100%) rotate(25deg); }
  100% { transform: translateX(100%) rotate(25deg); }
}

@keyframes trustDropFloat {
  0%, 100% { transform: translateY(0) rotate(45deg); opacity: 0.3; }
  50%      { transform: translateY(-20px) rotate(45deg); opacity: 0.15; }
}

@keyframes trustSeedFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.08; }
  25%      { transform: translate(15px, -10px) rotate(90deg); opacity: 0.12; }
  50%      { transform: translate(-10px, -25px) rotate(180deg); opacity: 0.06; }
  75%      { transform: translate(20px, -15px) rotate(270deg); opacity: 0.1; }
}

@keyframes trustPollenFloat {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.15; }
  25%      { transform: translate(12px, -18px) scale(1.2); opacity: 0.25; }
  50%      { transform: translate(-8px, -30px) scale(0.8); opacity: 0.1; }
  75%      { transform: translate(15px, -10px) scale(1.1); opacity: 0.2; }
}

@keyframes trustLeafSway {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  25%      { transform: rotate(8deg) translateY(-8px); }
  50%      { transform: rotate(-5deg) translateY(-15px); }
  75%      { transform: rotate(6deg) translateY(-5px); }
}

@keyframes trustSparklePop {
  0%   { transform: scale(0) translate(0, 0); opacity: 1; }
  50%  { transform: scale(1.5) translate(10px, -15px); opacity: 0.8; }
  100% { transform: scale(0) translate(20px, -30px); opacity: 0; }
}

@keyframes trustRippleExpand {
  0%   { width: 0; height: 0; opacity: 0.5; }
  100% { width: 200px; height: 200px; opacity: 0; }
}

/* ── SVG Animation Keyframes ── */
@keyframes svgGlowPulse {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 0.7; }
}

@keyframes svgLeafSway {
  0%, 100% { transform: rotate(-5deg); }
  50%      { transform: rotate(5deg); }
}

@keyframes svgShieldPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 0.8; transform: scale(1.05); }
}

@keyframes svgMoleculeBreak {
  0%, 100% { transform: translate(0, 0); opacity: 0.5; }
  50%      { transform: translate(8px, -8px); opacity: 0.2; }
}

@keyframes svgFlowerBloom {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}

@keyframes svgDropPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.1); }
}

@keyframes svgFilterFlow {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50%      { transform: translateY(-6px); opacity: 0.7; }
}

@keyframes svgSealGlow {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 0.7; }
}

@keyframes svgRibbonWave {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-4px) rotate(2deg); }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — TABLET
   ═══════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .trust-badges {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 780px;
  }

  .trust-badge-icon {
    width: 85px;
    height: 85px;
  }

  .trust-badge-icon svg {
    width: 78px;
    height: 78px;
  }

  .trust-badge {
    padding: 1.75rem 1rem 1.5rem;
  }

  .trust-section {
    padding: 5rem 0 6rem;
  }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — MOBILE (Horizontal Snap Scroll)
   ═══════════════════════════════════════════════ */

@media (max-width: 768px) {
  .trust-section {
    padding: 4rem 0 5rem;
  }

  .trust-header {
    margin-bottom: 2.5rem;
    padding: 0 1rem;
  }

  .trust-badges {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.5rem 1rem 1rem;
    max-width: 100%;
  }

  .trust-badges::-webkit-scrollbar {
    display: none;
  }

  .trust-badge {
    flex: 0 0 72vw;
    max-width: 280px;
    scroll-snap-align: center;
    padding: 1.75rem 1.2rem 1.5rem;
    min-height: 320px;
  }

  .trust-badge-icon {
    width: 80px;
    height: 80px;
  }

  .trust-badge-icon svg {
    width: 72px;
    height: 72px;
  }

  .trust-badge-label {
    font-size: 0.95rem;
  }

  .trust-badge-desc {
    font-size: 0.75rem;
    max-width: 140px;
  }

  /* Horizontal scroll indicator */
  .trust-scroll-hint {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    z-index: 2;
    position: relative;
  }

  .trust-scroll-hint span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(248, 180, 0, 0.25);
    transition: background 0.3s ease, transform 0.3s ease;
  }

  .trust-scroll-hint span.active {
    background: #f8b400;
    transform: scale(1.3);
  }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE
   ═══════════════════════════════════════════════ */

@media (max-width: 480px) {
  .trust-title {
    font-size: 1.8rem;
  }

  .trust-subtitle {
    font-size: 0.85rem;
  }

  .trust-badge {
    flex: 0 0 80vw;
    min-height: 300px;
    padding: 1.5rem 1rem 1.25rem;
  }

  .trust-badge-icon {
    width: 72px;
    height: 72px;
  }

  .trust-badge-icon svg {
    width: 65px;
    height: 65px;
  }
}

/* ═══════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .trust-badge {
    transition: none;
    opacity: 1;
    transform: none;
  }

  .trust-badge.visible {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .trust-badge:hover {
    transform: none;
  }

  .trust-shine::after,
  .trust-blob,
  .trust-oil-drop,
  .trust-seed,
  .trust-pollen-particle,
  .trust-float-leaf {
    animation: none !important;
  }

  .trust-badge:hover .trust-badge-icon {
    transform: none;
  }

  .trust-badge:hover .trust-badge-label,
  .trust-badge:hover .trust-badge-desc {
    transform: none;
  }
}

