/* =====================================================
   LAYOUT.CSS – CYVERRA GLOBAL TECHNOLOGIES LLP
   Purpose:
   - Global layout & structure
   - Containers
   - Section spacing
   - Grid & Flex helpers
   NOTE:
   - NO colors, fonts, or components here
   ===================================================== */

/* =====================================================
   START: CONTAINER SYSTEM
   ===================================================== */

/*
  .container
  - Centers content
  - Controls max width
  - Used on ALL pages
*/

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-md);
}

/* Wider container (hero, full sections if needed) */
.container-wide {
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: var(--space-md);
}

/* =====================================================
   END: CONTAINER SYSTEM
   ===================================================== */

/* =====================================================
   START: SECTION SPACING SYSTEM
   ===================================================== */

/*
  Use <section class="section">
  for consistent vertical rhythm
*/

.section {
  padding-block: var(--space-xl);
}

.section-sm {
  padding-block: var(--space-lg);
}

.section-lg {
  padding-block: calc(var(--space-xl) + var(--space-lg));
}

/* =====================================================
   END: SECTION SPACING SYSTEM
   ===================================================== */

/* =====================================================
   START: FLEX HELPERS
   ===================================================== */

.flex {
  display: flex;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-sm {
  gap: var(--space-sm);
}
.gap-md {
  gap: var(--space-md);
}
.gap-lg {
  gap: var(--space-lg);
}

/* =====================================================
   END: FLEX HELPERS
   ===================================================== */

/* =====================================================
   START: GRID SYSTEM
   ===================================================== */

/*
  Generic responsive grid
  Usage:
  <div class="grid grid-3">
*/

.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* =====================================================
   END: GRID SYSTEM
   ===================================================== */

/* =====================================================
   START: RESPONSIVE BREAKPOINTS
   ===================================================== */

/* Tablets */
@media (max-width: 992px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 576px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .section {
    padding-block: var(--space-lg);
  }
}

/* =====================================================
   END: RESPONSIVE BREAKPOINTS
   ===================================================== */

/* =====================================================
   START: COMMON LAYOUT UTILITIES
   ===================================================== */

.full-width {
  width: 100%;
}

.min-vh-100 {
  min-height: 100vh;
}

.center-text {
  text-align: center;
}

/* =====================================================
   END: COMMON LAYOUT UTILITIES
   ===================================================== */
