/* ============================================================
   UTILITIES — VEVARIA DESIGN SYSTEM (STRIPE-STYLE)
   ============================================================ */

/* ------------------------------------------------------------
   SPACING (Margin + Padding)
   Only essential utilities — avoids Bricks duplication
------------------------------------------------------------ */

.m-0 { margin: 0; }
.p-0 { padding: 0; }

.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }

.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }

/* Gap utilities (Bricks does not provide these globally) */
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }


/* ------------------------------------------------------------
   FLEX UTILITIES
   (Bricks has some, but these are global + consistent)
------------------------------------------------------------ */

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }

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

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }

.justify-center { justify-content: center; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }


/* ------------------------------------------------------------
   GRID UTILITIES
------------------------------------------------------------ */

.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-auto-flow: dense; }


/* ------------------------------------------------------------
   RADIUS UTILITIES (Token-driven)
------------------------------------------------------------ */

.radius-sm { border-radius: var(--radius-sm); }
.radius-md { border-radius: var(--radius-md); }
.radius-lg { border-radius: var(--radius-lg); }
.radius-xl { border-radius: var(--radius-xl); }


/* ------------------------------------------------------------
   SHADOW UTILITIES (Stripe-style)
------------------------------------------------------------ */

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }


/* ------------------------------------------------------------
   TYPOGRAPHY UTILITIES
------------------------------------------------------------ */

.text-xs { font-size: var(--font-size-xs); }
.text-sm { font-size: var(--font-size-sm); }
.text-md { font-size: var(--font-size-md); }
.text-lg { font-size: var(--font-size-lg); }
.text-xl { font-size: var(--font-size-xl); }
.text-2xl { font-size: var(--font-size-2xl); }

.font-sans { font-family: var(--font-sans); }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }


/* ------------------------------------------------------------
   TRANSITIONS (Stripe-style motion)
------------------------------------------------------------ */

.transition { transition: all var(--duration-normal) var(--ease-default); }
.transition-fast { transition: all var(--duration-fast) var(--ease-default); }
.transition-slow { transition: all var(--duration-slow) var(--ease-default); }


/* ------------------------------------------------------------
   WIDTH + DISPLAY UTILITIES
------------------------------------------------------------ */

.w-full { width: 100%; }
.w-auto { width: auto; }

.max-w-screen {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }
