/* =====================================================
   HOME PAGE
   Layout sections, hero, products, gaming, CTA,
   whatsapp float
===================================================== */

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

.hero {
  position: relative;
  padding: var(--space-xl) 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.75)),
    url("/assets/images/hero.webp") center / cover no-repeat;
}

.hero h1,
.hero p {
  color: var(--bg-white);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.hero-content {
  max-width: 640px;
}

.hero p {
  margin-top: var(--space-sm);
  opacity: 0.9;
}

.hero-actions {
  margin-top: var(--space-lg);
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .gaming-grid,
  .social-cta-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   SECTIONS
===================================================== */

.section {
  padding: var(--space-xl) 0;
}

.section.alt {
  background: var(--bg-grey);
}

.section-subtitle {
  margin-bottom: var(--space-lg);
  color: var(--text-secondary);
  font-size: 1rem; /* 16px */
}

/* =====================================================
   PRODUCTS
===================================================== */

.product-slider {
  overflow: hidden;
}

.product-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: var(--space-sm);
  transition: transform 0.3s ease;
}

.product-card:hover img {
  transform: scale(1.04);
}

/* =====================================================
   GAMING SECTION
===================================================== */

.gaming-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.gaming-grid figure img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.checklist {
  list-style: none;
  margin: var(--space-md) 0;
  padding: 0;
}

.checklist li {
  margin-bottom: var(--space-xs);
}

.checklist li::before {
  content: "✔ ";
  color: var(--accent);
  font-weight: 600;
}

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

.cta {
  padding: var(--space-xl) 0;
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(2, 82, 164, 0.08),
    rgba(255, 133, 82, 0.08)
  );
}

.cta-actions {
  margin-top: var(--space-lg);
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* =====================================================
   INSTAGRAM + CTA SIDE SECTION
===================================================== */

.social-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

/* Instagram */
.instagram-wrapper {
  display: flex;
  justify-content: center;
}

.instagram-media {
  width: 100% !important;
  max-width: 540px !important;
  min-width: 0 !important;
  margin: 0 auto !important;
}

/* Inline CTA */
.cta-inline {
  text-align: left;
}

.cta-inline p {
  margin: var(--space-sm) 0 var(--space-md);
}

.cta-inline .cta-actions {
  justify-content: flex-start;
}

/* Responsive */
@media (max-width: 900px) {
  .social-cta-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-inline {
    text-align: center;
  }

  .cta-inline .cta-actions {
    justify-content: center;
  }
}

/* =====================================================
   WHATSAPP FLOAT
===================================================== */

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  z-index: 999;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

/* =====================================================
   RESPONSIVE
===================================================== */

/* Large tablets */
@media (max-width: 1024px) {
  .product-track {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablets */
@media (max-width: 900px) {
  .gaming-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: var(--space-lg) 0;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

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

/* Mobile */
@media (max-width: 520px) {
  .section {
    padding: var(--space-lg) 0;
  }

  .product-track {
    grid-template-columns: 1fr;
  }

  .product-card img {
    height: 140px;
  }

  .whatsapp-float {
    width: 52px;
    height: 52px;
    font-size: 22px;
    bottom: 18px;
    right: 18px;
  }

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