/* ==================================
   LAYOUT – DEVELAC (CLEAN)
   File: layout.css
   Responsibility:
   - Page structure
   - Containers
   - Sections
   - Grid system
   - Responsive spacing
================================== */


/* ================================
   CONTAINER
================================ */

.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}


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

.section {
  padding-block: 72px;
}

.section-tight {
  padding-block: 48px;
}

.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 40px;
}


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

.hero {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}

.hero > * + * {
  margin-top: 14px;
}


/* ================================
   GRID SYSTEM
================================ */

.grid {
  display: grid;
  gap: 28px;
}

/* Tools / Cards grid – desktop */
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Generic 2 column grid */
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}


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

@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .section {
    padding-block: 56px;
  }

  .section-title {
    font-size: 24px;
    margin-bottom: 32px;
  }
}


/* ================================
   ALIGNMENT UTILITIES
================================ */

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

.center-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}


/* ================================
   STACK UTILITIES
================================ */

.stack-sm > * + * {
  margin-top: 10px;
}

.stack-md > * + * {
  margin-top: 18px;
}

.stack-lg > * + * {
  margin-top: 28px;
}
