/* =========================================================
   BizIQ Data — Layout
   Container, section rhythm, grid utilities, section headers.

   PROJECT BREAKPOINTS (fixed values; CSS vars can't be used
   inside @media conditions, so these are the convention
   for the whole site):
     Large desktop : default (up to --container-width)
     Desktop       : <= 1200px
     Tablet        : <=  992px  (nav collapses, 4-col -> 2-col)
     Mobile        : <=  768px  (grids -> 1-col, hero stacked)
     Small mobile  : <=  480px
   ========================================================= */

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

/* ---- Section rhythm ---- */
.section {
  padding-block: var(--section-spacing);
}
.section--alt   { background: var(--color-background-alt); }
.section--subtle{ background: var(--color-primary-subtle); }
.section--dark  { background: var(--color-dark-section); color: var(--color-text-invert); }
.section--tight { padding-block: var(--space-6); }

/* ---- Section header (eyebrow + title + subhead) ---- */
.section__head {
  max-width: 720px;
  margin: 0 auto var(--space-7);
  text-align: center;
}
.section__eyebrow {
  display: inline-block;
  margin-bottom: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-primary);
}
.section__title {
  margin: 0 0 var(--space-3);
  font-size: var(--text-h2);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-primary-darker);
}
.section--dark .section__title { color: var(--color-text-invert); }
.section__subtitle {
  margin: 0 auto;
  max-width: 640px;
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}
.section--dark .section__subtitle { color: var(--color-text-invert-muted); }

/* ---- Grid utilities ---- */
.grid { display: grid; gap: var(--space-4); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1200px) {
  :root { --section-spacing: 80px; }
}

@media (max-width: 992px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .section__head { margin-bottom: var(--space-6); }
}

@media (max-width: 768px) {
  .section { padding-block: var(--section-spacing-mobile); }
  .grid--2 { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .grid--4 { grid-template-columns: 1fr; }
}
