/* ============================================================
   LAYOUT
   Page-level building blocks shared by every section:
   section spacing, content width, the numbered section label
   ("1. Problems") and the standard section heading.
   ============================================================ */

/* ---- Section wrapper ---- */
.section {
  padding-block: var(--section-pad);
  background-color: var(--color-white);
}

.section--surface {
  background-color: var(--color-surface);
}

/* ---- Content width ---- */
.container {
  width: var(--content-width);
  margin-inline: auto;
}

/* ---- Section label pill: "1. Problems", "3. Selected Work" ... ---- */
.section-label {
  display: inline-block;
  padding: 2px 1rem 0;
  border-radius: var(--radius-pill);
  background-color: #5e5e5e8a;
  color: var(--color-white);
  text-shadow: 0 0 4px #000000a6;
  font-size: 0.9rem;
}

/* ---- Standard section heading (h2) ---- */
.section-title {
  padding-top: 1rem;
  color: var(--color-gray-2);
  font-size: 2.8rem;
  font-weight: var(--fw-medium);
  line-height: 100%;
  letter-spacing: 0.04rem;
}

.section-title--muted {
  color: var(--color-gray);
}

.section-intro {
  padding-top: 0.5rem;
  color: var(--color-gray-2);
  font-size: 1.1rem;
  font-weight: var(--fw-light);
  line-height: 145%;
}

@media (max-width: 767px) {
  .section-title {
    font-size: 1.7rem;
    line-height: 1.2;
  }

  .side-title {
    font-size: 1.7rem;
    line-height: 1.2;
  }

  .section-intro {
    font-size: 1rem;
  }

  /* phones: intros read as one paragraph (the <br> only splits the lines on desktop) */
  .section-intro br {
    display: none;
  }

  .container {
    width: auto;
    margin-inline: 4%;
  }
}

/* ---- Large left-column heading used by Pricing, Services and FAQ ---- */
.side-title {
  color: var(--color-gray-2);
  font-size: var(--fs-h3);
  line-height: 120%;
}

.side-subtitle {
  margin-top: 0.5rem;
  color: var(--color-gray);
  font-size: var(--fs-h6);
  line-height: 165%;
}

/* ---- Reveal: start state for the entrance animations ----
   Elements marked data-reveal / data-reveal-group (children)
   start invisible and js/modules/reveal.js fades them in once.
   Only with JS and motion allowed; .reveal-off (set when GSAP
   is missing, or by the failsafe in index.html) shows them all. */
@media (prefers-reduced-motion: no-preference) {
  .js:not(.reveal-off) [data-reveal],
  .js:not(.reveal-off) [data-reveal-group] > * {
    opacity: 0;
  }
}
