/* ============================================
   ORVINIEL — Layout
   Grid, Sections, Containers
   ============================================ */

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

/* Sections */
.section {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
  position: relative;
  overflow: hidden;
}

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

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

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

.section--indigo {
  background-color: #0A0A12;
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(16, 185, 129, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(52, 211, 153, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 90% 40% at 50% 110%, rgba(16, 185, 129, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse 40% 60% at 10% 30%, rgba(6, 78, 59, 0.20) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 90% 70%, rgba(52, 211, 153, 0.08) 0%, transparent 50%);
}

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

/* Dark section text defaults */
.section--dark .section-h2,
.section--dark h2,
.section--dark h3 {
  color: var(--ivory);
}

.section--dark .body-regular,
.section--dark p {
  color: rgba(248, 247, 244, 0.55);
}

.section--dark .label,
.section--dark .eyebrow {
  color: rgba(248, 247, 244, 0.50);
}

/* Indigo section text */
.section--indigo h2,
.section--indigo .section-h2 {
  color: var(--white);
}

.section--indigo p {
  color: rgba(255, 255, 255, 0.70);
}

/* Grid */
.grid {
  display: grid;
  gap: 24px;
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid--55-45 {
  grid-template-columns: 55fr 45fr;
  gap: var(--gutter);
}

.grid--50-50 {
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
}

/* Flexbox */
.flex {
  display: flex;
}

.flex--center {
  align-items: center;
  justify-content: center;
}

.flex--between {
  align-items: center;
  justify-content: space-between;
}

.flex--gap-16 {
  gap: 16px;
}

.flex--gap-24 {
  gap: 24px;
}

/* Text alignment */
.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Max widths */
.max-w-720 {
  max-width: 720px;
}

.max-w-600 {
  max-width: 600px;
}

.max-w-560 {
  max-width: 560px;
}

.max-w-520 {
  max-width: 520px;
}

/* Section dividers */
.divider--light {
  border-top: 1px solid #E4E4E0;
}

.divider--dark {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Background number */
.bg-number {
  font-weight: 800;
  font-size: clamp(180px, 22vw, 320px);
  position: absolute;
  bottom: -20px;
  right: -20px;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.05em;
  line-height: 1;
}

.bg-number--light {
  color: rgba(0, 0, 0, 0.04);
}

.bg-number--dark {
  color: rgba(255, 255, 255, 0.03);
}
