/* ============================================
   AfricainEats - Custom Homepage Styles
   African Food Delivery Platform
   ============================================ */

/* --- Color Variables (via CSS custom properties) --- */
:root {
  --ae-primary: #E85D26;
  --ae-primary-dark: #C44B1C;
  --ae-secondary: #2D6A4F;
  --ae-secondary-light: #40916C;
  --ae-accent: #F4A261;
  --ae-gold: #E9C46A;
  --ae-dark: #1B1B1B;
  --ae-warm-bg: #FFF8F0;
  --ae-light-bg: #FEF6EE;
  --ae-text: #333333;
  --ae-text-light: #666666;
  --ae-white: #FFFFFF;
  --ae-pattern-color: rgba(232, 93, 38, 0.05);
}

/* ===== HERO SECTION ===== */
.ae-hero {
  position: relative;
  min-height: 520px;
  background: linear-gradient(135deg, #FFF1E6 0%, #FFE0CC 30%, #FFDAB9 60%, #FFF8F0 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ae-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(232, 93, 38, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(45, 106, 79, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(244, 162, 97, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.ae-hero .container {
  position: relative;
  z-index: 2;
}

.ae-hero-content {
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 20px;
}

.ae-hero-badge {
  display: inline-block;
  background: var(--ae-primary);
  color: var(--ae-white);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.ae-hero h1 {
  font-size: 42px;
  font-weight: 800;
  color: var(--ae-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

.ae-hero h1 span {
  color: var(--ae-primary);
}

.ae-hero-subtitle {
  font-size: 17px;
  color: var(--ae-text-light);
  margin-bottom: 30px;
  line-height: 1.6;
}

.ae-hero .home-search-wrap {
  max-width: 550px;
  margin: 0 auto;
}

.ae-hero-tags {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.ae-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(232, 93, 38, 0.15);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  color: var(--ae-text);
  font-weight: 500;
  transition: all 0.3s ease;
}

.ae-hero-tag:hover {
  background: var(--ae-primary);
  color: var(--ae-white);
  border-color: var(--ae-primary);
  transform: translateY(-2px);
}

.ae-hero-tag i {
  font-size: 14px;
}

/* Decorative food icons floating */
.ae-hero-deco {
  position: absolute;
  font-size: 40px;
  opacity: 0.12;
  animation: float 6s ease-in-out infinite;
}

.ae-hero-deco:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; }
.ae-hero-deco:nth-child(2) { top: 20%; right: 8%; animation-delay: 1s; font-size: 35px; }
.ae-hero-deco:nth-child(3) { bottom: 15%; left: 10%; animation-delay: 2s; font-size: 45px; }
.ae-hero-deco:nth-child(4) { bottom: 25%; right: 5%; animation-delay: 3s; font-size: 38px; }
.ae-hero-deco:nth-child(5) { top: 50%; left: 2%; animation-delay: 1.5s; font-size: 30px; }
.ae-hero-deco:nth-child(6) { top: 40%; right: 3%; animation-delay: 2.5s; font-size: 32px; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(5deg); }
}

/* ===== HOW IT WORKS SECTION ===== */
.ae-how-it-works {
  padding: 70px 0;
  background: var(--ae-white);
}

.ae-section-header {
  text-align: center;
  margin-bottom: 50px;
}

.ae-section-label {
  display: inline-block;
  color: var(--ae-primary);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.ae-section-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--ae-dark);
  margin-bottom: 12px;
}

.ae-section-subtitle {
  font-size: 15px;
  color: var(--ae-text-light);
  max-width: 550px;
  margin: 0 auto;
}

.ae-step-card {
  text-align: center;
  padding: 30px 20px;
  border-radius: 16px;
  transition: all 0.3s ease;
  position: relative;
}

.ae-step-card:hover {
  transform: translateY(-5px);
}

.ae-step-number {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 80px;
  font-weight: 900;
  color: rgba(232, 93, 38, 0.06);
  line-height: 1;
  z-index: 0;
}

.ae-step-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
  position: relative;
  z-index: 1;
}

.ae-step-icon.step-1 {
  background: linear-gradient(135deg, #FFF1E6, #FFE0CC);
  color: var(--ae-primary);
}

.ae-step-icon.step-2 {
  background: linear-gradient(135deg, #E6F5EE, #D0EBDF);
  color: var(--ae-secondary);
}

.ae-step-icon.step-3 {
  background: linear-gradient(135deg, #FEF3E2, #FDE8C8);
  color: var(--ae-accent);
}

.ae-step-card h5 {
  font-weight: 700;
  font-size: 18px !important;
  color: var(--ae-dark);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.ae-step-card p {
  font-size: 14px !important;
  color: var(--ae-text-light);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* Arrow connector between steps */
.ae-step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--ae-accent);
  padding-top: 30px;
}

/* ===== SERVICE CATEGORIES ===== */
.ae-categories {
  padding: 70px 0;
  background: var(--ae-warm-bg);
}

.ae-category-card {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  height: 320px;
  transition: all 0.4s ease;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.ae-category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.ae-category-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

.ae-category-card:hover .ae-category-card-bg {
  transform: scale(1.05);
}

.ae-category-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
  z-index: 1;
}

.ae-category-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  z-index: 2;
  color: var(--ae-white);
}

.ae-category-icon {
  font-size: 36px;
  margin-bottom: 12px;
  display: block;
}

.ae-category-card-content h4 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.ae-category-card-content p {
  font-size: 14px !important;
  color: rgba(255,255,255,0.85);
  margin-bottom: 15px;
  line-height: 1.5;
}

.ae-category-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ae-white);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 2px solid var(--ae-accent);
  padding-bottom: 4px;
  transition: all 0.3s ease;
}

.ae-category-btn:hover {
  color: var(--ae-accent);
  border-color: var(--ae-primary);
}

/* Category card fallback background colors (behind the images) */
.ae-cat-restaurants {
  background-color: #E85D26;
}

.ae-cat-traiteurs {
  background-color: #2D6A4F;
}

.ae-cat-epiceries {
  background-color: #F4A261;
}

/* ===== WHY CHOOSE US ===== */
.ae-why-us {
  padding: 80px 0;
  background: var(--ae-white);
}

.ae-feature-card {
  background: var(--ae-white);
  border: 1px solid #f0ece8;
  border-radius: 16px;
  padding: 35px 25px;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
}

.ae-feature-card:hover {
  border-color: var(--ae-primary);
  box-shadow: 0 8px 30px rgba(232, 93, 38, 0.1);
  transform: translateY(-5px);
}

.ae-feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
}

.ae-feature-icon.feat-1 {
  background: #FFF1E6;
  color: var(--ae-primary);
}

.ae-feature-icon.feat-2 {
  background: #E6F5EE;
  color: var(--ae-secondary);
}

.ae-feature-icon.feat-3 {
  background: #FEF3E2;
  color: #D4880F;
}

.ae-feature-icon.feat-4 {
  background: #F0E6F6;
  color: #7B2D8E;
}

.ae-feature-card h5 {
  font-weight: 700;
  font-size: 17px !important;
  color: var(--ae-dark);
  margin-bottom: 10px;
}

.ae-feature-card p {
  font-size: 13px !important;
  color: var(--ae-text-light);
  line-height: 1.7;
}

/* ===== STATS COUNTER ===== */
.ae-stats {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--ae-primary) 0%, var(--ae-primary-dark) 100%);
  position: relative;
  overflow: hidden;
}

.ae-stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 10% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(circle at 90% 50%, rgba(255,255,255,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.ae-stat-item {
  text-align: center;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.ae-stat-number {
  font-size: 42px;
  font-weight: 800;
  color: var(--ae-white);
  line-height: 1;
  margin-bottom: 8px;
}

.ae-stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

.ae-stat-divider {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.2);
  margin: auto;
}


/* ===== CTA / PARTNER SECTION ===== */
.ae-cta-partner {
  padding: 80px 0;
  background: var(--ae-white);
}

.ae-cta-box {
  border-radius: 24px;
  padding: 60px 50px;
  position: relative;
  overflow: hidden;
  color: var(--ae-white);
}

.ae-cta-box.cta-merchant {
  background: linear-gradient(135deg, #2D6A4F 0%, #1B4332 100%);
}

.ae-cta-box.cta-driver {
  background: linear-gradient(135deg, #E85D26 0%, #C44B1C 100%);
}

.ae-cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

.ae-cta-box::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
}

.ae-cta-box h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.ae-cta-box p {
  font-size: 15px !important;
  opacity: 0.9;
  margin-bottom: 25px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.ae-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ae-white);
  color: var(--ae-dark);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.ae-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  color: var(--ae-primary);
  text-decoration: none;
}

/* ===== AFRICAN PATTERN DIVIDER ===== */
.ae-pattern-divider {
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--ae-primary) 0px,
    var(--ae-primary) 20px,
    var(--ae-accent) 20px,
    var(--ae-accent) 40px,
    var(--ae-secondary) 40px,
    var(--ae-secondary) 60px,
    var(--ae-gold) 60px,
    var(--ae-gold) 80px
  );
}

/* ===== TESTIMONIALS CARROUSEL ===== */
.ae-testimonials {
  padding: 80px 0;
  background: var(--ae-light-bg);
  overflow: hidden;
}

.ae-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ae-carousel-track-container {
  overflow: hidden;
  flex: 1;
  border-radius: 16px;
}

.ae-carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  gap: 0;
}

.ae-carousel-slide {
  flex-shrink: 0;
  padding: 0 10px;
  box-sizing: border-box;
}

.ae-testimonial-card {
  background: var(--ae-white);
  border-radius: 16px;
  padding: 28px;
  height: 100%;
  min-height: 260px;
  border: 1px solid rgba(232, 93, 38, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.ae-testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  border-color: rgba(232, 93, 38, 0.2);
}

.ae-testimonial-stars {
  color: #F4A261;
  font-size: 16px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.ae-testimonial-text {
  font-size: 14.5px;
  line-height: 1.7;
  color: #444;
  flex-grow: 1;
  margin-bottom: 20px;
  font-style: italic;
}

.ae-testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 16px;
}

.ae-testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ae-primary), var(--ae-accent));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.ae-testimonial-author strong {
  display: block;
  font-size: 15px;
  color: var(--ae-dark);
}

.ae-testimonial-author span {
  font-size: 13px;
  color: #888;
}

/* Boutons prev/next */
.ae-carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--ae-primary);
  background: var(--ae-white);
  color: var(--ae-primary);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ae-carousel-btn:hover {
  background: var(--ae-primary);
  color: var(--ae-white);
  transform: scale(1.1);
}

/* Points indicateurs */
.ae-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.ae-carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--ae-primary);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.ae-carousel-dot.active {
  background: var(--ae-primary);
  transform: scale(1.2);
}

.ae-carousel-dot:hover {
  background: var(--ae-accent);
  border-color: var(--ae-accent);
}

/* Responsive carrousel */
@media (max-width: 991px) {
  .ae-carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
}

@media (max-width: 767px) {
  .ae-testimonials {
    padding: 50px 0;
  }
  .ae-carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }
  .ae-testimonial-card {
    padding: 22px;
    min-height: auto;
  }
  .ae-carousel-slide {
    padding: 0 5px;
  }
}

/* ===== PROMO BANNER ===== */
.ae-promo-banner {
  padding: 50px 0;
  background: var(--ae-warm-bg);
  text-align: center;
}

.ae-promo-content h3 {
  font-size: 26px;
  font-weight: 800;
  color: var(--ae-dark);
  margin-bottom: 10px;
}

.ae-promo-content p {
  font-size: 15px !important;
  color: var(--ae-text-light);
  margin-bottom: 20px;
}

.ae-promo-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}

.ae-promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ae-white);
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ae-text);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.ae-promo-badge i {
  color: var(--ae-primary);
  font-size: 18px;
}

/* ===== CUISINE SECTION ENHANCE ===== */
.ae-cuisine-section {
  padding: 40px 0 20px;
  background: var(--ae-white);
}

/* ===== OVERRIDE EXISTING BANNER ===== */
#vm_home_search #main-search-banner,
#vm_home_search .mobile-home-banner {
  display: none;
}

#vm_home_search {
  padding: 0;
  margin: 0;
}

/* ===== LOGO - BIGGER AND MORE VISIBLE ===== */
.top-logo .img-200,
.top-logo img {
  max-width: 250px !important;
  max-height: 60px !important;
  height: auto !important;
}

.img-200 {
  max-width: 250px !important;
  max-height: 60px !important;
}

@media (max-width: 767px) {
  .top-logo .img-200,
  .top-logo img {
    max-width: 200px !important;
    max-height: 50px !important;
  }
  .img-200 {
    max-width: 200px !important;
    max-height: 50px !important;
  }
}

/* ===== CUISINE LIST - BIGGER CIRCLES ===== */
.swiperCuisine .swiperSlide {
  min-height: 140px !important;
}

.swiperCuisine .swiperSlide img {
  width: 100px !important;
  height: 100px !important;
}

@media (max-width: 767px) {
  .swiperCuisine .swiperSlide img {
    width: 85px !important;
    height: 85px !important;
  }
  .swiperCuisine .swiperSlide {
    min-height: 120px !important;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .ae-hero h1 {
    font-size: 32px;
  }

  .ae-hero-subtitle {
    font-size: 15px;
  }

  .ae-section-title {
    font-size: 26px;
  }

  .ae-step-arrow {
    display: none;
  }

  .ae-category-card {
    height: 260px;
    margin-bottom: 20px;
  }

  .ae-stat-divider {
    display: none;
  }

  .ae-cta-box {
    padding: 40px 30px;
    margin-bottom: 20px;
  }

  .ae-cta-box h3 {
    font-size: 22px;
  }
}

@media (max-width: 767px) {
  .ae-hero {
    min-height: 450px;
  }

  .ae-hero h1 {
    font-size: 26px;
  }

  .ae-hero-badge {
    font-size: 11px;
    padding: 5px 14px;
  }

  .ae-hero-tags {
    gap: 6px;
  }

  .ae-hero-tag {
    padding: 6px 12px;
    font-size: 12px;
  }

  .ae-how-it-works,
  .ae-categories,
  .ae-why-us,
  .ae-testimonials,
  .ae-cta-partner {
    padding: 50px 0;
  }

  .ae-category-card {
    height: 220px;
  }

  .ae-category-card-content h4 {
    font-size: 18px;
  }

  .ae-stat-number {
    font-size: 32px;
  }

  .ae-hero-deco {
    display: none;
  }

  .ae-testimonial-card {
    margin-bottom: 20px;
  }
}

/* ===== SMOOTH SCROLL & ANIMATIONS ===== */
.ae-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.ae-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== FOOD TYPES GRID ===== */
.ae-food-grid {
  padding: 60px 0;
  background: var(--ae-white);
}

.ae-food-item {
  text-align: center;
  padding: 15px;
  transition: all 0.3s ease;
}

.ae-food-item:hover {
  transform: translateY(-5px);
}

.ae-food-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: #f0e6dc;
  margin: 0 auto 12px;
  border: 4px solid var(--ae-white);
  box-shadow: 0 4px 15px rgba(0,0,0,0.12);
  transition: all 0.3s ease;
}

.ae-food-item:hover .ae-food-photo {
  transform: scale(1.08);
  box-shadow: 0 6px 25px rgba(232, 93, 38, 0.2);
  border-color: var(--ae-primary);
}

.ae-food-item span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ae-text);
}

@media (max-width: 767px) {
  .ae-food-photo {
    width: 85px;
    height: 85px;
  }
}

/* ===== APP SECTION OVERRIDE ===== */
.ae-app-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 100%);
  color: var(--ae-white);
  position: relative;
  overflow: hidden;
}

.ae-app-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
}

.ae-app-section h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 15px;
}

.ae-app-section h2 span {
  color: var(--ae-accent);
}

.ae-app-section p {
  font-size: 16px !important;
  opacity: 0.85;
  line-height: 1.7;
  margin-bottom: 25px;
}

.ae-app-features {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
}

.ae-app-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 15px;
  opacity: 0.9;
}

.ae-app-features li i {
  color: var(--ae-accent);
  font-size: 16px;
}

.ae-app-store-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ae-app-store-links img {
  height: 45px;
  transition: transform 0.3s ease;
}

.ae-app-store-links img:hover {
  transform: translateY(-3px);
}
