/* ─── Custom styles for SmartCart Landing Page ─── */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection color */
::selection {
  background-color: rgba(22, 163, 74, 0.2);
  color: inherit;
}

/* Navbar shadow on scroll */
.navbar-scrolled {
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

/* FAQ chevron rotation */
.faq-chevron-open {
  transform: rotate(180deg);
}

/* FAQ answer transition */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding-bottom 0.3s ease;
}

.faq-answer.open {
  max-height: 500px;
  display: block;
}

/* Feature card subtle animation */
.feature-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
}

/* CTA pulse animation */
@keyframes subtle-pulse {
  0%, 100% { box-shadow: 0 10px 15px -3px rgb(22 163 74 / 0.2), 0 4px 6px -4px rgb(22 163 74 / 0.1); }
  50% { box-shadow: 0 10px 25px -3px rgb(22 163 74 / 0.35), 0 4px 10px -4px rgb(22 163 74 / 0.15); }
}

.cta-pulse {
  animation: subtle-pulse 3s ease-in-out infinite;
}

/* Scroll reveal — elements start invisible */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Accessibility: Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .feature-card:hover {
    transform: none;
  }
  .cta-pulse {
    animation: none;
  }
  .faq-answer {
    transition: none;
  }
}

/* Print styles */
@media print {
  nav, .faq-toggle svg, #video-modal, button, .cta-pulse {
    display: none !important;
  }
  section {
    break-inside: avoid;
    padding: 1rem 0;
  }
  .faq-answer {
    display: block !important;
    max-height: none !important;
  }
}
