/* ==========================================================================
   ABONEX Solutions — Layout: container, grid, hairline architecture
   ========================================================================== */

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

main { position: relative; z-index: var(--z-body); }

/* ------------------------------------------------------------- 12-COL GRID */

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

@media (min-width: 768px)  { .grid { grid-template-columns: repeat(8, 1fr);  gap: var(--space-8); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(12, 1fr); gap: var(--space-8); } }

/* ------------------------------------------------------------ SECTION FRAME
   Every section shares one frame: generous vertical rhythm, a top hairline,
   and a marginal mono numeral — the editorial signature of the page. */

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section + .section { border-top: 1px solid var(--hairline); }
/* the hero is dark now, so no hairline belongs at that seam */
.hero + .section { border-top: 0; }

/* A light hairline sitting on top of a navy slab reads as a seam. */
.section + .section--ink { border-top: 0; }

.section--tint   { background: var(--paper-tint); }
.section--ink    { background: var(--ink); color: var(--on-ink); }
.section--ink + .section,
.section--tint + .section { border-top: 0; }

.section--ink :is(h1, h2, h3, h4) { color: var(--on-ink); }
.section--ink .lead,
.section--ink .body-muted { color: var(--on-ink-muted); }
.section--ink .meta { color: var(--on-ink-muted); }
.section--ink .meta--accent { color: var(--accent-on-ink); }

/* Section head: eyebrow + headline + lead, laid out asymmetrically */

.section__head {
  display: grid;
  gap: var(--space-6);
  margin-bottom: clamp(var(--space-12), 7vw, var(--space-24));
}

.section__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* Headings carry `text-wrap: balance` from base.css, which fights SplitText
   over where the line breaks fall. Added for as long as a split exists and
   removed with it, so the balanced wrap is what sits there at rest. */
.section__title--split { text-wrap: normal; }

/* The short cyan rule that precedes every eyebrow */
.section__eyebrow::before {
  content: "";
  width: clamp(28px, 4vw, 56px);
  height: 1px;
  background: var(--accent-hi);
  flex: none;
}

@media (min-width: 1024px) {
  .section__head {
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-8);
    align-items: end;
  }
  .section__eyebrow { grid-column: 1 / -1; }
  .section__title   { grid-column: 1 / 8; }
  .section__intro   { grid-column: 8 / 13; padding-bottom: var(--space-2); }

  /* Bottom alignment is what sets a one- or two-line lead on the headline's
     baseline, and it is the right default — see the FAQ and Why heads, where
     the lead reads as sitting on the same line as the headline.

     It inverts the moment the lead is taller than the headline: the headline
     is pushed down its own row and a void opens under the eyebrow. Services
     runs to three or four lines, so it opts out and the two columns start
     together instead. Apply this to any head whose lead outgrows its title. */
  .section__head--lead-tall { align-items: start; }
  .section__head--lead-tall .section__intro { padding-bottom: 0; }
}

/* ----------------------------------------------------------- FULL-BLEED */

.bleed {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}
