/* ==========================================================================
   GROWTH WITH GYANENDRA - RESPONSIVE LAYOUTS & MEDIA QUERIES
   ========================================================================== */

/* Container Constraints */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (max-width: 480px) {
  .container, .container-narrow {
    padding: 0 0.85rem;
  }
  body {
    overflow-x: hidden;
  }
}

/* Flex & Grid Utilities */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

.grid-4 {
  grid-template-columns: 1fr;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Mobile Touch Scroll Carousel */
.swipe-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.75rem;
  margin: 0;
  width: 100%;
  max-width: 100%;
}

.swipe-carousel::-webkit-scrollbar {
  height: 4px;
}

.swipe-carousel::-webkit-scrollbar-thumb {
  background: var(--primary-indigo);
  border-radius: 4px;
}

.swipe-carousel > * {
  scroll-snap-align: center;
  flex: 0 0 85%;
  max-width: 340px;
}

/* Mobile Sticky Bottom CTA Bar */
.sticky-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 990;
  background: rgba(9, 13, 22, 0.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-glass-bright);
  padding: 0.75rem 1rem;
  display: flex;
  gap: 0.75rem;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.5);
}

.sticky-bottom-bar .btn {
  flex: 1;
  padding: 0.75rem 0.5rem;
  font-size: 0.9rem;
  text-align: center;
  justify-content: center;
  min-height: 48px;
}

/* Breakpoint: Tablet (768px+) */
@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .swipe-carousel {
    display: grid;
    overflow-x: visible;
    margin: 0;
    padding: 0;
  }

  .swipe-carousel > * {
    flex: unset;
    max-width: none;
  }

  .sticky-bottom-bar {
    display: none; /* Hidden on Desktop */
  }
}

/* Breakpoint: Desktop (1024px+) */
@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 3rem;
  }
}
