/* Global smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Fade-in animation for scroll reveal */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Optional: Delayed fade-ins */
.fade-delay-1 {
  animation-delay: 0.3s;
}
.fade-delay-2 {
  animation-delay: 0.6s;
}
.fade-delay-3 {
  animation-delay: 0.9s;
}

/* Image fitting helper (used in gallery) */
.img-fit {
  object-fit: cover;
  width: 100%;
  height: 250px;
}

/* Floating WhatsApp or CTA Button */
.floating-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #ee5c08;
  color: white;
  padding: 12px 18px;
  border-radius: 9999px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 999;
  transition: all 0.3s ease-in-out;
}

.floating-cta:hover {
  background: #ee5c08;
  transform: scale(1.05);
}

/* Section divider (optional horizontal line) */
.section-divider {
  height: 2px;
  background: linear-gradient(to right, #ee5c08, #ee5c08);
  margin: 2rem auto;
  width: 80px;
  border-radius: 2px;
}

/* Utility for centering text blocks */
.text-block-center {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Button styling override if needed */
.button-shadow {
  box-shadow: 0 8px 20px rgba(236, 116, 4, 0.979);
}

/* Responsive container padding */
@media (max-width: 768px) {
  .responsive-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Testimonials styling */
.testimonial-box {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 2rem;
}

.testimonial-box p {
  font-style: italic;
  color: #4b5563;
}

.testimonial-box h4 {
  margin-top: 1rem;
  font-weight: 600;
  color: #111827;
}

/* Section styling */
.box-features {
  text-align: center;
  padding: 4rem 1rem;
}

.box-features h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #1e293b;
}

.box-features p {
  font-size: 1rem;
  color: #ee5c08;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Feature points */
.feature-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.feature-points div {
  background: #f1f5f9;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  color: #ee5c08;
  transition: transform 0.3s, background 0.3s;
}

.feature-points div:hover {
  background: #ee5c08;
  color: white;
  transform: translateY(-5px);
}

/* Global smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Fade-up base styles */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.7s ease-out;
}

/* Will be added when in view */
.opacity-100 {
  opacity: 1 !important;
}
.translate-y-0 {
  transform: translateY(0) !important;
}

/* Optional delay classes for staggered reveal */
.fade-delay-1 {
  transition-delay: 0.3s;
}
.fade-delay-2 {
  transition-delay: 0.6s;
}
.fade-delay-3 {
  transition-delay: 0.9s;
}
/* ✅ Responsive fix for factory image positioning */
@media (max-width: 768px) {
  .factory-image-container {
    position: static !important;
    transform: none !important;
    margin: 1rem auto 0 auto;
    display: flex;
    justify-content: center;
    z-index: 10;
  }

  .factory-image-container .w-14 {
    width: 80px; /* slightly bigger on mobile */
    height: 80px;
  }
}
