/**
 * Layout & Grid Foundations
 * CT TerraMach Website
 */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: var(--space-lg);
    padding-left: var(--space-lg);
    max-width: var(--container-max-width);
}

/* Sections */
section {
    padding-top: var(--space-4xl);
    padding-bottom: var(--space-4xl);
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

section:last-of-type {
    border-bottom: none;
}

/* Section Header Shared */
.section-header {
    max-width: 700px;
    margin-bottom: var(--space-3xl);
}

.section-header.text-center {
    margin-left: auto;
    margin-right: auto;
}

.section-badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: var(--space-sm);
    border-left: 2px solid var(--primary);
    padding-left: var(--space-xs);
}

.section-title {
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Flex utilities */
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }

/* Grid Helpers */
.grid {
    display: grid;
    gap: var(--space-lg);
}
