/* ==========================================================================
   ByteCapital — Layout: container, grids, section rhythm, helpers
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}
.container--narrow { max-width: var(--container-narrow); }

/* ---- Sections ---------------------------------------------------------- */
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--alt { background: var(--color-bg-alt); }
.section--dark {
  background: var(--color-bg-dark);
  color: var(--color-on-dark);
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: #fff; }

/* ---- Section heading block -------------------------------------------- */
.section-head {
  max-width: 720px;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-600);
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--grad-accent);
  border-radius: 2px;
}
.section--dark .eyebrow { color: var(--color-gold); }
.section-head--center .eyebrow { justify-content: center; }

.section-head p {
  margin-top: var(--space-4);
  font-size: var(--fs-lead);
  color: var(--color-slate);
}
.section--dark .section-head p { color: var(--color-on-dark-muted); }

/* ---- Grid helpers ------------------------------------------------------ */
.grid { display: grid; gap: clamp(1.1rem, 2.2vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 920px) {
  .split--media { grid-template-columns: 1.05fr 0.95fr; }
  .split--text { grid-template-columns: 0.95fr 1.05fr; }
}

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

.lead {
  font-size: var(--fs-lead);
  color: var(--color-slate);
  line-height: 1.6;
}
.section--dark .lead { color: var(--color-on-dark-muted); }

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.measure { max-width: 60ch; }
