/* ARUNA — Layout Utilities
   Sections, container, grids, text helpers, and accent line.
   All values reference tokens.css. No hardcoded values. */

/* ─── Sections ───────────────────────────────────────── */
/* Vertical padding per side lives in one property so it can be tuned in
   one place; it steps down on tablet and mobile (see media queries below).
   Desktop is 6rem: 8rem left a quarter of a 14-inch laptop screen empty
   between short sections. tokens.css is untouched. */
.section {
    --section-pad-y: 6rem;
    padding: var(--section-pad-y) 0;
}

.section-dark {
    background-color: var(--color-primary);
    color: var(--color-text-inverse);
}

.section-light {
    background-color: var(--color-bg);
    color: var(--color-text);
}

.section-warm {
    background-color: var(--color-bg-warm);
    color: var(--color-text);
}

/* ─── Container ──────────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ─── Grids ──────────────────────────────────────────── */
.grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

@media (max-width: 1024px) {
    .section {
        --section-pad-y: 4.5rem;
    }

    .grid-4col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section {
        --section-pad-y: 3.5rem;
    }

    .grid-2col,
    .grid-3col,
    .grid-4col {
        grid-template-columns: 1fr;
    }
}

/* ─── Text Utilities ─────────────────────────────────── */
.text-centre {
    text-align: center;
}

.text-large {
    font-size: 1.25rem;
    line-height: 1.6;
}

/* ─── Accent Line (matches ARUNA logo separator) ────── */
.accent-line {
    width: 60px;
    height: 1px;
    background-color: var(--color-accent);
    display: block;
    margin: var(--space-sm) 0;
}

.accent-line-full {
    width: 100%;
    height: 1px;
    background-color: var(--color-accent);
    display: block;
    margin: var(--space-sm) 0;
}

.accent-line-centre {
    width: 60px;
    height: 1px;
    background-color: var(--color-accent);
    display: block;
    margin: var(--space-sm) auto;
}
