/* ============================================================
   PAPA PV — Home Page Specific Styles
   ============================================================ */

/* ================================================================
   HERO CAROUSEL
   ================================================================ */
.hero-carousel {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--color-white);
  padding: var(--sp-12) 0;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-carousel-slide {
  display: none;
  animation: fadeIn 0.5s ease;
}

.hero-carousel-slide.active {
  display: flex;
  align-items: center;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-carousel-nav {
  position: absolute;
  bottom: var(--sp-6);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--sp-3);
  z-index: 10;
}

.hero-carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s;
  border: none;
  padding: 0;
}

.hero-carousel-dot.active {
  background: var(--color-white);
  width: 32px;
  border-radius: 6px;
}

.hero-carousel-btn {
  position: absolute;
  bottom: var(--sp-8);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-dark);
  color: var(--color-white);
  border: 2px solid var(--color-white);
  cursor: pointer;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 10;
}

.hero-carousel-btn:hover {
  background: var(--color-white);
  color: var(--color-primary-dark);
}

.hero-carousel-btn.prev {
  left: var(--sp-6);
}

.hero-carousel-btn.next {
  right: var(--sp-6);
}


/* ================================================================
   HERO SECTION
   ================================================================ */
.hero-home {
  background: transparent;
  color: var(--color-white);
  padding: 0;
  min-height: auto;
  display: flex;
  align-items: center;
  overflow: visible;
  width: 100%;
}

.hero-home .container {
  width: 100%;
}

.hero-home-wrapper {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  width: 100%;
}

.hero-home-content {
  flex: 1;
  min-width: 0;
}

.hero-home-content h1 {
  font-size: var(--text-h1);
  margin-bottom: var(--sp-4);
  color: var(--color-white);
  line-height: 1.2;
}

.hero-home-content p {
  font-size: var(--text-h4);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--sp-6);
  line-height: var(--lh-relaxed);
}

.hero-home-actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.hero-home-visual {
  flex: 1;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.hero-home-visual {
  flex: 1;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.hero-image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.hero-image-placeholder i {
  font-size: 200px;
  color: rgba(255, 255, 255, 0.15);
  display: block;
}

.btn-white {
  background: var(--color-white);
  color: var(--color-primary);
}

.btn-white:hover {
  background: var(--gray-100);
}


/* ================================================================
   SERVICES SECTION
   ================================================================ */
.services-section {
  padding: var(--sp-16) 0;
}

.services-section h2 {
  text-align: center;
  margin-bottom: var(--sp-12);
  font-size: var(--text-h2);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--sp-6);
}


/* ================================================================
   TRACKING SECTION
   ================================================================ */
.tracking-section {
  background: var(--color-primary);
  padding: var(--sp-12) 0;
  color: var(--color-white);
}

.tracking-card {
  background: var(--color-white);
  color: var(--color-text);
  max-width: 700px;
  margin: 0 auto;
}

.tracking-form {
  display: flex;
  gap: var(--sp-2);
}

.tracking-form .form-input {
  flex: 1;
}

.tracking-form .btn {
  flex-shrink: 0;
}


/* ================================================================
   PRODUCTS SECTION
   ================================================================ */
.products-section {
  padding: var(--sp-16) 0;
}

.products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-6);
  gap: var(--sp-4);
}

.products-header h2 {
  font-size: var(--text-h2);
  margin: 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-6);
}


/* ================================================================
   HOW IT WORKS SECTION
   ================================================================ */
.how-it-works {
  padding: var(--sp-16) 0;
  background: var(--gray-50);
}

.how-it-works h2 {
  text-align: center;
  margin-bottom: var(--sp-12);
  font-size: var(--text-h2);
}

.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-6);
}

.how-it-works-item {
  text-align: center;
}

.how-it-works-number {
  width: 60px;
  height: 60px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: var(--fw-bold);
  margin: 0 auto var(--sp-4);
}

.how-it-works-icon {
  width: 80px;
  height: 80px;
  background: var(--color-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-4);
  font-size: 2.5rem;
  color: var(--color-primary);
  line-height: 1;
}

.how-it-works-item h3 {
  font-weight: var(--fw-semibold);
  margin-bottom: var(--sp-2);
}

.how-it-works-item p {
  color: var(--gray-500);
  font-size: var(--text-small);
  line-height: var(--lh-relaxed);
}


/* ================================================================
   CTA SECTION
   ================================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--color-white);
  padding: var(--sp-16) 0;
  text-align: center;
}

.cta-section h2 {
  font-size: var(--text-h2);
  margin-bottom: var(--sp-4);
}

.cta-section p {
  font-size: var(--text-h4);
  margin-bottom: var(--sp-6);
  color: rgba(255, 255, 255, 0.9);
}


/* ================================================================
   FIX FONT AWESOME ICONS
   ================================================================ */
.fas, .far, .fal, .fab {
  font-family: 'Font Awesome 6 Free' !important;
  font-style: normal !important;
  font-variant: normal !important;
  text-rendering: auto !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

.fas {
  font-weight: 900 !important;
}

.far {
  font-weight: 400 !important;
}

.fab {
  font-family: 'Font Awesome 6 Brands' !important;
  font-weight: 400 !important;
}

/* Make sure icons display inline */
i[class*="fa-"] {
  display: inline !important;
  vertical-align: middle !important;
}


/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
  .hero-carousel {
    padding: var(--sp-12) 0;
    min-height: auto;
  }

  .hero-home {
    padding: var(--sp-12) 0;
    min-height: auto;
  }

  .hero-home-wrapper {
    flex-direction: column;
    gap: var(--sp-6);
  }

  .hero-home-content h1 {
    font-size: var(--text-h2);
  }

  .hero-home-content p {
    font-size: var(--text-body);
  }

  .hero-image-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
  }

  .hero-image-placeholder i {
    font-size: 120px;
  }

  .hero-home-actions {
    gap: var(--sp-2);
  }

  .hero-carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .hero-carousel-btn.prev {
    left: var(--sp-3);
  }

  .hero-carousel-btn.next {
    right: var(--sp-3);
  }

  .tracking-form {
    flex-direction: column;
  }

  .tracking-form .form-input {
    width: 100%;
  }

  .products-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .services-section,
  .products-section,
  .how-it-works,
  .cta-section {
    padding: var(--sp-12) 0;
  }
}
