/*--------------------------------------------------------------
# Layout & Grid System
--------------------------------------------------------------*/

/* === Main Site Structure === */
.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
    background: var(--bg-primary);
}

.front-page-main {
    padding-top: 0;
}

/* === Container System === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    width: 100%;
}

.container-fluid {
    width: 100%;
    padding: 0 var(--space-lg);
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* === Section Layout === */
section {
    padding: var(--space-4xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header h2 {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-black);
    color: var(--text-accent);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.section-subtitle {
    font-size: var(--font-size-xl);
    color: var(--text-muted);
    font-weight: var(--font-weight-light);
}

.section-footer {
    text-align: center;
    margin-top: var(--space-3xl);
}

/* === Grid System === */
.grid {
    display: grid;
    gap: var(--space-xl);
}

.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-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* === Flexbox Utilities === */
.flex {
    display: flex;
}

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

.flex-row {
    flex-direction: row;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-nowrap {
    flex-wrap: nowrap;
}

/* === Alignment === */
.items-start {
    align-items: flex-start;
}

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

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

.items-stretch {
    align-items: stretch;
}

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

.justify-center {
    justify-content: center;
}

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

.justify-between {
    justify-content: space-between;
}

.justify-around {
    justify-content: space-around;
}

.justify-evenly {
    justify-content: space-evenly;
}

/* === Gaps === */
.gap-xs {
    gap: var(--space-xs);
}

.gap-sm {
    gap: var(--space-sm);
}

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

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

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

.gap-2xl {
    gap: var(--space-2xl);
}

/* === Content Width === */
.w-full {
    width: 100%;
}

.w-auto {
    width: auto;
}

.w-fit {
    width: fit-content;
}

.h-full {
    height: 100%;
}

.h-auto {
    height: auto;
}

.h-fit {
    height: fit-content;
}

/* === Positioning === */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.sticky {
    position: sticky;
}

/* === Overflow === */
.overflow-hidden {
    overflow: hidden;
}

.overflow-auto {
    overflow: auto;
}

.overflow-x-hidden {
    overflow-x: hidden;
}

.overflow-y-hidden {
    overflow-y: hidden;
}

/* === Z-Index === */
.z-negative {
    z-index: var(--z-negative);
}

.z-base {
    z-index: var(--z-base);
}

.z-raised {
    z-index: var(--z-raised);
}

.z-overlay {
    z-index: var(--z-overlay);
}

.z-modal {
    z-index: var(--z-modal);
}