/* ===================================
   HOME.CSS - Homepage Specific Styles
   MINIMALISTIC ADIDAS-STYLE HERO
   =================================== */

/* ===================================
   1. HERO SECTION - FULL SCREEN CAROUSEL
   =================================== */

.hero {
  padding: 0;
  margin: 0;
  position: relative;
}

/* ===================================
   2. HERO CAROUSEL - FULL WIDTH
   =================================== */

.hero-carousel {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
}

.carousel-track {
  position:relative;
  width: 100%;
  height: 85vh; /* Takes most of viewport */
  min-height: 500px;
  display: flex;
}

/* Carousel pair container - groups of 2 images */
.carousel-pair {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.carousel-pair.active {
  opacity: 1;
  z-index: 1;
}

/* Individual slides within a pair - BACKGROUND IMAGES */
.carousel-slide {
  flex: 1;
  width: 50%;
  height: 100%;
  overflow: hidden;
  border-left: 1px solid #e0e0e0;
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
}

.carousel-slide:last-child {
  border-right: 1px solid #e0e0e0;
}

/* ===================================
   3. HERO OVERLAY - BOTTOM LEFT (ADIDAS STYLE)
   =================================== */

.hero-overlay {
  position: absolute;
  bottom: 15px; /* Lowered from 60px */
  left: 60px;
  z-index: 10;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Aligns both title and button to the left */
}

.hero-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c5530; /* Your green brand color */
  background-color: rgba(255, 255, 255, 0.95); opacity: 80%;
  padding: 12px 20px;
  margin: 0 0 15px 0;
  line-height: 1.2;
  display: inline-block;
  white-space: nowrap;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow like your product cards */
  border-radius: 4px; /* Slight rounding to match site style */
  text-align: left;
}

/* Remove golden lines from layout.css */
.hero-title::before,
.hero-title::after {
  display: none;
}

.hero-cta-btn {
  display: inline-block;
  padding: 12px 35px;
  background-color: #4a7c4e;
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: 2px solid #4a7c4e;
  border-radius: 6px;
  margin-left: 0;
  box-shadow: 0 2px 8px rgba(74, 124, 78, 0.2);

  display: inline-block;
  padding: 12px 35px;
  background-color: #4a7c4e; /* Your green accent color */
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: 2px solid #4a7c4e;
  border-radius: 6px; /* Matches your btn class */
  margin-left: 0;
  box-shadow: 0 2px 8px rgba(74, 124, 78, 0.2); /* Matches your existing buttons */
}

.hero-cta-btn:hover {
  background-color: #5a8c5e; /* Lighter green on hover */
  transform: scale(1.05) translateY(-2px); /* Matches your existing button hover */
  box-shadow: 0 6px 20px rgba(74, 124, 78, 0.4);
  border-color: #5a8c5e;
}

/* Mobile: Single image view */
@media (max-width: 767px) {
  .carousel-track {
    height: 70vh;
    min-height: 400px;
  }

  .carousel-pair {
    flex-direction: column;
  }

  .carousel-slide {
    width: 100%;
    height: 100%;
    border: none;
  }

  /* Hide second image on mobile */
  .carousel-slide:nth-child(2) {
    display: none;
  }

  .hero-overlay {
    bottom: 30px;
    left: 20px;
    right: 20px;
    max-width: none;
    align-items: flex-start; /* Keep left alignment on mobile */
  }

  .hero-title {
    font-size: 1rem;
    padding: 10px 15px;
    white-space: normal; /* Allow wrapping on very small screens if needed */
    text-align: left; /* Ensure left alignment */
    max-width: fit-content; /* Background only as wide as text */
  }

  .hero-cta-btn {
    padding: 10px 25px;
    font-size: 0.75rem;
    width: auto; /* Changed from 100% */
    text-align: center;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .hero-overlay {
    bottom: 40px;
    left: 40px;
  }

  .title-line {
    font-size: 1.2rem;
  }
}

/* ===================================
   4. TRUST BADGES SECTION
   =================================== */

.trust-badges {
  padding: 80px 20px;
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.badge-item {
  text-align: center;
  padding: 30px 20px;
  transition: transform 0.3s ease;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.badge-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.badge-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  display: inline-block;
}

/* EMOJI ANIMATIONS - ONLY NEW ADDITION */

/* Plant emoji animation - Growing and swaying */
.badge-item:nth-child(1) .badge-icon {
  animation: plantGrow 3s ease-in-out infinite;
}

@keyframes plantGrow {
  0%, 100% {
    transform: scale(1) rotate(-2deg);
  }
  50% {
    transform: scale(1.1) rotate(2deg);
  }
}

/* Star emoji animation - Twinkling */
.badge-item:nth-child(2) .badge-icon {
  animation: starTwinkle 2s ease-in-out infinite;
}

@keyframes starTwinkle {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
}

/* Globe emoji animation - Rotating */
.badge-item:nth-child(3) .badge-icon {
  animation: globeRotate 4s linear infinite;
}

@keyframes globeRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* END OF EMOJI ANIMATIONS */

.badge-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.badge-text {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
}

/* ===================================
   5. FEATURED PRODUCTS SECTION
   =================================== */

.featured-products {
  padding: 60px 20px;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 60px;
}

.product-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  text-align: center;
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
  width: 100%;
  height: 250px;
  object-fit: contain;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.product-description {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
}

.section-cta {
  text-align: center;
  margin-top: 50px;
}

/* Flagship Product Description */
.flagship-description {
  max-width: 800px;
  margin: 40px auto 0;
  text-align: center;
}

.flagship-text {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.8;
  margin-bottom: 25px;
}

.flagship-features {
  list-style: none;
  padding: 0;
  display: inline-block;
  text-align: left;
}

.flagship-features li {
  font-size: 1rem;
  color: #666;
  margin-bottom: 12px;
  line-height: 1.6;
}

/* ===================================
   6. WHY CHOOSE US SECTION
   =================================== */

.why-choose-us {
  padding: 80px 20px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 60px;
}

.feature-item {
  padding: 30px 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-text {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
}

/* ===================================
   7. FINAL CTA BANNER
   =================================== */

.final-cta {
  padding: 40px 20px;
}

.cta-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.cta-text {
  font-size: 1.1rem;
  margin-bottom: 40px;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===================================
   8. RESPONSIVE STYLES
   =================================== */

@media (max-width: 640px) {
  .trust-badges,
  .featured-products,
  .why-choose-us,
  .final-cta {
    padding: 50px 20px;
  }

  .badges-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .section-title {
    font-size: 1.6rem;
    margin-bottom: 40px;
  }

  .product-cards,
  .features-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .cta-title {
    font-size: 1.6rem;
  }

  .cta-text {
    font-size: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items:center
  }
}

@media (max-width: 400px) {
  .badge-icon,
  .feature-icon {
    font-size: 2.2rem;
  }
}