/* ==========================================================================
   LAYOUT.CSS — Container, Section & Grid Utilities
   LlionTec.com Design System
   ========================================================================== */

/* --------------------------------------------------------------------------
   CONTAINER
   Centered content wrapper with responsive horizontal padding.
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-xl);       /* 1200px */
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

/* --------------------------------------------------------------------------
   SECTION
   Vertical rhythm for page sections with responsive block padding.
   -------------------------------------------------------------------------- */
.section {
  padding-block: clamp(60px, 10vw, 120px);
  position: relative;
}

/* --------------------------------------------------------------------------
   SECTION HEADER
   Centered heading block with decorative gradient underline.
   -------------------------------------------------------------------------- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-12);       /* 3rem */
  position: relative;
}

.section-header h2 {
  font-family: var(--ff-heading);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-4);
}

.section-header p {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin-inline: auto;
}

/* Decorative gradient line below the heading */
.section-header h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  margin: var(--space-4) auto 0;
  border-radius: var(--radius-full);
  background: var(--gradient-brand);
}

/* --------------------------------------------------------------------------
   GRID — Apps Showcase
   Responsive auto-fit grid for app cards.
   -------------------------------------------------------------------------- */
.grid-apps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);                  /* 1.5rem */
}

/* --------------------------------------------------------------------------
   RESPONSIVE BREAKPOINTS
   All grids collapse to single column on smaller screens.
   -------------------------------------------------------------------------- */


/* Mobile */
@media (max-width: 768px) {
  .grid-apps {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

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

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

/* Ensure app grid doesn't overflow on very small screens */
@media (max-width: 360px) {
  .grid-apps {
    grid-template-columns: 1fr;
  }
}
