/**
 * Homepage Styles - RetailAer
 * Based on Figma design
 */

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
  background: var(--gradient-hero);
  padding: 8rem 0 6rem;
  position: relative;
  overflow: hidden;
  margin-top: 60px; /* Account for fixed nav */
}

.hero-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-3xl);
}

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

.hero-title {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  color: var(--color-white);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-md);
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--color-white);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-xl);
  opacity: 0.9;
}

.hero-cta {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.airplane-icon {
  width: 300px;
  height: 300px;
  opacity: 0.25;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* ============================================
   STATS SECTION
   ============================================ */

.stats-section {
  background: var(--color-white);
  padding: var(--space-2xl) 0;
  border-bottom: 1px solid var(--color-gray-100);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

.stat-item {
  padding: var(--space-md);
}

.stat-number {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: var(--color-teal-primary);
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--color-gray-400);
  text-transform: capitalize;
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
  margin-bottom: var(--space-2xl);
}

.section-header h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-sm);
}

.section-header p {
  font-size: var(--text-lg);
  color: var(--color-gray-400);
}

/* ============================================
   FEATURES GRID
   ============================================ */

.features-grid {
  margin-top: var(--space-xl);
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */

.how-it-works {
  background: var(--color-teal-primary);
}

.how-it-works .card {
  background: var(--color-white);
}

.view-all-link {
  color: var(--color-white);
  font-weight: var(--font-semibold);
  text-decoration: none;
  transition: var(--transition-base);
  display: inline-block;
}

.view-all-link:hover {
  color: var(--color-yellow-primary);
  transform: translateX(4px);
}

/* ============================================
   INSIGHTS SECTION
   ============================================ */

.insight-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: var(--transition-base);
  cursor: pointer;
}

.insight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.insight-image {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  border-radius: var(--radius-sm);
}

.insight-meta {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--color-teal-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.insight-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--color-gray-900);
  margin-bottom: var(--space-sm);
  line-height: var(--leading-tight);
}

.insight-excerpt {
  font-size: var(--text-sm);
  color: var(--color-gray-400);
  line-height: var(--leading-normal);
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
  background: var(--gradient-teal);
  padding: var(--space-3xl) 0;
  text-align: center;
}

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

.cta-content h2 {
  font-size: var(--text-3xl);
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.cta-content p {
  font-size: var(--text-lg);
  color: var(--color-white);
  opacity: 0.9;
  margin-bottom: var(--space-xl);
}

.cta-buttons {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--color-teal-primary);
  color: var(--color-white);
  padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.footer-desc {
  color: var(--color-white);
  opacity: 0.8;
  margin-bottom: var(--space-md);
  font-size: var(--text-sm);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--color-white);
  transition: var(--transition-base);
}

.footer-social a:hover {
  background: var(--color-yellow-primary);
  color: var(--color-teal-dark);
}

.footer-heading {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: var(--color-white);
  opacity: 0.8;
  font-size: var(--text-sm);
  transition: var(--transition-base);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--color-yellow-primary);
}

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-bottom p {
  color: var(--color-white);
  opacity: 0.7;
  font-size: var(--text-sm);
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-md);
}

.footer-bottom-links a {
  color: var(--color-white);
  opacity: 0.7;
  font-size: var(--text-sm);
  transition: var(--transition-base);
}

.footer-bottom-links a:hover {
  opacity: 1;
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */

@media (max-width: 1024px) {
  .hero-section .container {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .hero-visual {
    order: -1; /* Keep airplane above on tablet */
  }

  .airplane-icon {
    width: 200px;
    height: 200px;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */

@media (max-width: 768px) {
  .hero-section {
    padding: 6rem 0 4rem;
  }

  .hero-title {
    font-size: var(--text-2xl);
  }

  .hero-subtitle {
    font-size: var(--text-base);
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
    text-align: center;
  }

  /* Move airplane below content and make it smaller */
  .hero-visual {
    order: 1;
    margin-top: var(--space-xl);
  }

  .airplane-icon {
    width: 120px;
    height: 120px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .stat-number {
    font-size: var(--text-2xl);
  }

  .cta-content h2 {
    font-size: var(--text-2xl);
  }

  .cta-content p {
    font-size: var(--text-base);
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
