/* Custom theme & utility styles for Scrap Kabadi Jai Shree Krishna */
:root {
  --brand-primary: #d97706;
  --brand-primary-dark: #b45309;
  --brand-secondary: #0f4c3a;
  --brand-secondary-dark: #093327;
  --brand-cream: #fffbeb;
  --brand-dark: #111827;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  color: #1e293b;
  background-color: #ffffff;
  overflow-x: hidden;
}

/* Navbar scrolled state */
.site-header.scrolled {
  background-color: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.25);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

/* Swiper custom pagination & navigation */
.swiper-pagination-bullet-active {
  background-color: var(--brand-primary) !important;
  width: 24px !important;
  border-radius: 9999px !important;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--brand-primary) !important;
  background: #ffffff;
  width: 42px !important;
  height: 42px !important;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 16px !important;
  font-weight: 700;
}

/* FAQ Accordion */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer-inner {
  overflow: hidden;
}

/* Floating WhatsApp pulse */
@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 12px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.whatsapp-pulse {
  animation: pulse-ring 2.2s infinite;
}

/* ===== KabadCart-style layout additions ===== */

/* Subtle dotted background used on dark green sections */
.hero-pattern {
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* Infinite marquee (materials + coverage areas) */
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee-track > .contents { display: contents; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  to { transform: translateX(calc(-50% - 0.5rem)); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track > .contents { display: none; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
}

/* Form fields */
.form-input {
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px #fde68a;
}
.calc-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: 600;
  outline: none;
}
.calc-input:focus { border-color: #f59e0b; }
.calc-input:disabled { opacity: 0.5; }
.calc-input option { color: #0f172a; }

/* Rate category tabs */
.rate-tab {
  background: #fff;
  border-color: #e2e8f0;
  color: #334155;
  transition: all 0.2s;
}
.rate-tab:hover { border-color: #f59e0b; }
.rate-tab.active {
  background: #d97706;
  border-color: #d97706;
  color: #fff;
}

/* Angled image on bulk banner (desktop) */
@media (min-width: 768px) {
  .bulk-img { clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%); }
}

.swiper-slide.h-auto { height: auto; }
