/* 
 * Nokshapoth Custom Theme Styles
 * Colors & Component Customizations
 */

:root {
  --bg-beige-light: #FFF6DF;
  --bg-beige-dark: #F6DD94;
  --bg-beige-ground: #FFF5DD;
  --green-cta: #82BA32;
  --green-icon-start: #7AB030;
  --green-icon-end: #4C7F18;
  --green-card: #5E8C2F;
  --green-deep: #39681A;
  --green-badge: #397002;
}

body {
  font-family: 'Hind Siliguri', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-beige-ground);
  color: #2D3748;
  scroll-behavior: smooth;
}

/* Custom Gradients & Colors */
.bg-beige-ground { background-color: var(--bg-beige-ground); }
.bg-beige-light { background-color: var(--bg-beige-light); }
.bg-beige-dark { background-color: var(--bg-beige-dark); }
.bg-green-deep { background-color: var(--green-deep); }
.bg-green-card { background-color: var(--green-card); }
.bg-green-cta { background-color: var(--green-cta); }
.bg-green-badge { background-color: var(--green-badge); }

.text-green-deep { color: var(--green-deep); }
.text-green-cta { color: var(--green-cta); }
.text-green-badge { color: var(--green-badge); }

.border-green-cta { border-color: var(--green-cta); }
.border-beige-dark { border-color: var(--bg-beige-dark); }

.gradient-icon {
  background: linear-gradient(135deg, var(--green-icon-start), var(--green-icon-end));
}

.gradient-solution-banner {
  background: linear-gradient(135deg, #0e200a 0%, #163610 50%, #265415 100%);
  color: #ffffff;
}

/* Pulse animation for CTA */
@keyframes cta-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(130, 186, 50, 0.4);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(130, 186, 50, 0.65);
  }
}

/* High-Contrast Interactive Shaking CTA Button */
.btn-shake-cta {
  background: linear-gradient(135deg, #1b4b08 0%, #29700d 45%, #3d9213 100%);
  color: #ffffff !important;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  box-shadow: 0 4px 14px rgba(27, 75, 8, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  animation: cta-shake 3s infinite ease-in-out;
  cursor: pointer;
}

.btn-shake-cta:hover {
  background: linear-gradient(135deg, #225a0b 0%, #348811 45%, #4bb317 100%);
  animation: none;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(33, 90, 10, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-shake-cta:active {
  transform: translateY(1px) scale(0.97);
  box-shadow: 0 2px 8px rgba(27, 75, 8, 0.4);
}

.btn-shake-cta:disabled {
  animation: none !important;
  opacity: 0.85;
  cursor: not-allowed;
  transform: none !important;
}

#submit-order-btn.btn-shake-cta {
  display: flex !important;
  width: 100% !important;
  justify-content: center !important;
}

#submit-order-btn.btn-shake-cta:hover {
  transform: translateY(-2px) scale(1.01);
}

/* Card CTA Buttons matching Navbar Button Gradient and Look */
.btn-navbar-cta {
  background: linear-gradient(135deg, #1b4b08 0%, #29700d 45%, #3d9213 100%) !important;
  color: #ffffff !important;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  box-shadow: 0 4px 14px rgba(27, 75, 8, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.2s ease;
}

.btn-navbar-cta:hover {
  background: linear-gradient(135deg, #225a0b 0%, #348811 45%, #4bb317 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(33, 90, 10, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-navbar-cta:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(27, 75, 8, 0.4);
}

/* Light sweep shimmer effect across button */
.btn-shake-cta::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 35%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 65%
  );
  transform: rotate(25deg) translateX(-150%);
  animation: shimmer-swipe 3s infinite ease-in-out;
  pointer-events: none;
}

@keyframes cta-shake {
  0%, 100% {
    transform: translateX(0) rotate(0deg);
  }
  2% {
    transform: translateX(-4px) rotate(-2deg);
  }
  4% {
    transform: translateX(4px) rotate(2deg);
  }
  6% {
    transform: translateX(-4px) rotate(-1.5deg);
  }
  8% {
    transform: translateX(4px) rotate(1.5deg);
  }
  10% {
    transform: translateX(-2px) rotate(-1deg);
  }
  12% {
    transform: translateX(2px) rotate(1deg);
  }
  14% {
    transform: translateX(0) rotate(0deg);
  }
  /* 14% to 100% is resting time for smooth readability */
}

@keyframes shimmer-swipe {
  0%, 15% {
    transform: rotate(25deg) translateX(-150%);
  }
  32%, 100% {
    transform: rotate(25deg) translateX(150%);
  }
}

/* Vertical Roll Effect for Button Text and Icon on Hover */
.btn-roll-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: middle;
}

.btn-roll-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.3s ease;
  will-change: transform;
}

.btn-roll-original {
  transform: translateY(0%);
  opacity: 1;
}

.btn-roll-duplicate {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transform: translateY(120%);
  opacity: 0;
}

/* Smooth Icon Roll/Motion */
.btn-roll-content svg {
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}

/* On Button Hover: Original rolls out vertically upwards, Duplicate rolls in from bottom */
.btn-shake-cta:hover .btn-roll-original,
.btn-roll-cta:hover .btn-roll-original,
button:hover .btn-roll-container .btn-roll-original,
a:hover .btn-roll-container .btn-roll-original,
.group:hover .btn-roll-original {
  transform: translateY(-120%);
  opacity: 0;
}

.btn-shake-cta:hover .btn-roll-original svg,
.btn-roll-cta:hover .btn-roll-original svg,
button:hover .btn-roll-container .btn-roll-original svg,
a:hover .btn-roll-container .btn-roll-original svg,
.group:hover .btn-roll-original svg {
  transform: translateY(-3px) scale(0.95);
}

.btn-shake-cta:hover .btn-roll-duplicate,
.btn-roll-cta:hover .btn-roll-duplicate,
button:hover .btn-roll-container .btn-roll-duplicate,
a:hover .btn-roll-container .btn-roll-duplicate,
.group:hover .btn-roll-duplicate {
  transform: translateY(0%);
  opacity: 1;
}

.btn-shake-cta:hover .btn-roll-duplicate svg,
.btn-roll-cta:hover .btn-roll-duplicate svg,
button:hover .btn-roll-container .btn-roll-duplicate svg,
a:hover .btn-roll-container .btn-roll-duplicate svg,
.group:hover .btn-roll-duplicate svg {
  transform: translateY(0) scale(1.05);
}


/* Dark Luxury Glassmorphism Mobile Menu Drawer */
#mobile-menu-dropdown {
  background: rgba(18, 32, 11, 0.98) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.8), 0 0 25px rgba(57, 104, 26, 0.25) !important;
  color: #ffffff !important;
}

#mobile-menu-dropdown a {
  color: #f3f4f6 !important;
}

#mobile-menu-dropdown a:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #bef264 !important;
}

#mobile-menu-backdrop {
  background: rgba(0, 0, 0, 0.75) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

/* Premium Video Play Button Pulse Rings */
.play-btn-pulse {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.play-btn-pulse::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.3);
  animation: play-ring-pulse 2.4s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  pointer-events: none;
}

.play-btn-pulse::after {
  content: '';
  position: absolute;
  inset: -22px;
  border-radius: 9999px;
  background: rgba(130, 186, 50, 0.25);
  animation: play-ring-pulse 2.4s cubic-bezier(0.24, 0, 0.38, 1) infinite 0.8s;
  pointer-events: none;
}

@keyframes play-ring-pulse {
  0% {
    transform: scale(0.75);
    opacity: 0.95;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

.pulse-cta {
  animation: cta-pulse 2.2s infinite ease-in-out;
}

/* Mobile Sticky Bottom Bar (Permanently Removed) */
.mobile-sticky-bar {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* FAQ Accordion Transitions */
.faq-header {
  transition: color 0.2s ease, background-color 0.2s ease;
}
.faq-item.active {
  background-color: #ffffff !important;
  border-color: #1b4b08 !important;
  box-shadow: 0 4px 14px rgba(27, 75, 8, 0.08);
}
.faq-item.active .faq-header {
  color: #1b4b08;
}
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, opacity 0.25s ease-out;
  opacity: 0;
}
.faq-item.active .faq-content {
  max-height: 400px;
  opacity: 1;
}
.faq-icon {
  transition: transform 0.3s ease;
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: #1b4b08;
}

/* Custom Radio / Card Selection Highlight */
.variant-card.selected {
  border-color: var(--green-cta);
  background-color: #FFFFFF;
  box-shadow: 0 8px 25px rgba(57, 104, 26, 0.15);
}

/* Sticky Stacking Cards for Problem Section */
.problem-stack-container {
  position: relative;
}

.problem-card-sticky {
  position: -webkit-sticky;
  position: sticky;
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
  will-change: transform;
}

/* Stacking positions on mobile (< 768px) */
.problem-card-sticky-1 {
  top: 4.75rem;
  z-index: 10;
}

.problem-card-sticky-2 {
  top: 6rem;
  z-index: 20;
}

.problem-card-sticky-3 {
  top: 7.25rem;
  z-index: 30;
}

/* Stacking positions on desktop (>= 768px) */
@media (min-width: 768px) {
  .problem-card-sticky-1 {
    top: 5.5rem;
    z-index: 10;
  }
  .problem-card-sticky-2 {
    top: 7rem;
    z-index: 20;
  }
  .problem-card-sticky-3 {
    top: 8.5rem;
    z-index: 30;
  }
}

/* Cinematic 45-degree Gradient for Problem Cards */
/* Dark Green (0%-38%), Green (38%-70%), 30% White Highlight (70%-100%) at 45deg */
.problem-card-cinematic {
  background: linear-gradient(45deg, #10260c 0%, #1b3f13 38%, #4a8a25 70%, #ffffff 100%) !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: #ffffff !important;
}

/* Glassmorphism & Shadow */
.custom-shadow {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.custom-shadow-lg {
  box-shadow: 0 15px 35px rgba(57, 104, 26, 0.12);
}

/* How to Use Section (Clean & Relevant Design) */
.how-to-use-step {
  position: relative;
  transition: all 0.25s ease;
  cursor: pointer;
}

.how-to-use-step .step-icon-box {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #1b4b08 0%, #29700d 60%, #3d9213 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  box-shadow: 0 4px 14px rgba(27, 75, 8, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.25s ease;
}

.how-to-use-step:hover .step-icon-box,
.how-to-use-step.active .step-icon-box {
  background: linear-gradient(135deg, #225a0b 0%, #348811 60%, #4bb317 100%);
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 6px 18px rgba(33, 90, 10, 0.4);
}

.how-to-use-step .step-title {
  color: #111827;
  transition: color 0.2s ease;
}

.how-to-use-step:hover .step-title {
  color: #1b4b08;
}

/* Testimonial Infinite Horizontal Marquee Slide */
.testimonial-marquee-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0.75rem 0;
  cursor: grab;
}

.testimonial-marquee-container:active {
  cursor: grabbing;
}

.testimonial-marquee-wrapper {
  display: flex;
  width: max-content;
}

.testimonial-track {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  padding-right: 1.5rem;
  flex-shrink: 0;
  will-change: transform;
  animation: testimonial-slide 32s linear infinite;
}

@keyframes testimonial-slide {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-100%, 0, 0);
  }
}

/* Pause animation on hover and touch */
.testimonial-marquee-container:hover .testimonial-track,
.testimonial-marquee-container:active .testimonial-track,
.testimonial-track:hover {
  animation-play-state: paused;
}
