/* ==========================================================
   PROJECT XAMUCO
   File: layout.css
   Version: 1.0.0
   Description: Global Layout System
========================================================== */

/* ======================================================
   BODY
====================================================== */

body {
  overflow-x: hidden;
}

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

.container {
  width: min(100% - (var(--container-padding) * 2), var(--container-width));

  margin-inline: auto;
}

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

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

.section--small {
  padding-block: var(--space-3xl);
}

.section--large {
  padding-block: var(--space-5xl);
}

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

.grid {
  display: grid;

  gap: var(--space-xl);
}

/* ======================================================
   FLEX
====================================================== */

.flex {
  display: flex;
}

.flex-center {
  display: flex;

  justify-content: center;

  align-items: center;
}

.flex-between {
  display: flex;

  justify-content: space-between;

  align-items: center;
}

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

.stack {
  display: flex;

  flex-direction: column;

  gap: var(--space-lg);
}

/* ======================================================
   CLUSTER
====================================================== */

.cluster {
  display: flex;

  flex-wrap: wrap;

  align-items: center;

  gap: var(--space-md);
}

/* ======================================================
   FLOW
====================================================== */

.flow > * + * {
  margin-top: var(--space-lg);
}

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

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

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* ======================================================
   WIDTH UTILITIES
====================================================== */

.w-reading {
  max-width: var(--content-width);
}

.w-full {
  width: 100%;
}

/* ======================================================
   DISPLAY UTILITIES
====================================================== */

.hidden {
  display: none !important;
}

/* ======================================================
   ACCESSIBILITY
====================================================== */

.sr-only {
  position: absolute;

  width: 1px;

  height: 1px;

  padding: 0;

  margin: -1px;

  overflow: hidden;

  clip: rect(0, 0, 0, 0);

  white-space: nowrap;

  border: 0;
}

/* ======================================================
   INNER PAGE TOP
====================================================== */

.inner-page-top {
  width: 100%;

  height: var(--header-height);

  background: var(--color-dark);
}
