/* ─────────────────────────────────────────────────────────────────
   layout.css — containers, sections, grids
   ───────────────────────────────────────────────────────────────── */

.container {
    width: 100%;
    max-width: var(--content-width);
    margin-inline: auto;
    padding-inline: var(--space-4);
}

@media (min-width: 768px) {
    .container { padding-inline: var(--space-5); }
}

.container--narrow {
    max-width: var(--content-narrow);
}

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

@media (min-width: 768px) {
    .section { padding-block: var(--space-9); }
}

.section--soft  { background: var(--color-bg-soft); }
.section--tint  { background: var(--color-bg-tint); }
.section--green { background: var(--color-green-soft); }
.section--ink   { background: var(--color-ink); color: #fff; }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }

.section__title {
    font-size: var(--fs-2xl);
    margin-bottom: var(--space-4);
}
@media (min-width: 768px) {
    .section__title { font-size: var(--fs-3xl); }
}

.section__lead {
    color: var(--color-muted);
    font-size: var(--fs-lg);
    max-width: 65ch;
    margin-bottom: var(--space-6);
}

/* Section header row — title + optional CTA on the right */
.section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
    flex-wrap: wrap;
}
.section__head .section__title { margin: 0; }

/* Section footer CTA row — "Visi produktai", "Visos paslaugos", etc.
   Used on home featured-products / -services / -equipment / -projects
   sections. Centred to match the standalone cta-block on the same page,
   so the whole page reads with one rhythm instead of left-aligned strays. */
.section__cta {
    text-align: center;
    margin-top: var(--space-6);
}

/* Grids */
.grid {
    display: grid;
    gap: var(--space-4);
}
@media (min-width: 768px) {
    .grid { gap: var(--space-5); }
}

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

@media (min-width: 600px) {
    .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
    .grid--3 { grid-template-columns: repeat(3, 1fr); }
    .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* Two-column page layout (e.g. Contact: info + form) */
.split {
    display: grid;
    gap: var(--space-6);
    grid-template-columns: 1fr;
}
@media (min-width: 900px) {
    .split { grid-template-columns: 1fr 1.3fr; gap: var(--space-7); }
}
.split--equal { grid-template-columns: 1fr; }
@media (min-width: 900px) {
    .split--equal { grid-template-columns: 1fr 1fr; }
}

/* Stack utility */
.stack > * + * { margin-top: var(--space-4); }
.stack--sm > * + * { margin-top: var(--space-2); }
.stack--lg > * + * { margin-top: var(--space-6); }
