/* app/assets/stylesheets/sections/base.css */

/* ===========================
 * Base section layout
 * =========================== */

.page-section {
  padding: 3.5rem 1.25rem;
}

@media (min-width: 768px) {
  .page-section {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }
}

.page-section__inner {
  max-width: 72rem; /* ~1152px */
  margin-left: auto;
  margin-right: auto;
}

/* Optional tighter spacing variant if you ever want it */
.page-section--tight {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

/* ===========================
 * Typography tokens
 * =========================== */

.section-eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-accent);
}

.section-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3vw, 2.3rem);
  line-height: 1.2;
  color: var(--color-content);
}

.section-subtitle {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-content-soft);
}

.section-body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-content);
}

/* You can use this on small helper text inside sections */
.section-meta {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.8rem;
  line-height: 1.4;
  opacity: 0.75;
}

/* ===========================
 * Section themes (for wrapper_class)
 * =========================== */

/* Light section: default “card on paper” look */
.page-section--theme-light {
  background-color: var(--color-primary);
  color: var(--color-content);
}

/* Dark section: inverted, good for contrast / rhythm */
.page-section--theme-dark {
  background-color: var(--color-secondary);
  color: var(--color-primary);
}

/* Accent section: optional highlight band (CTA, special block) */
.page-section--theme-accent {
  background-color: var(--color-accent);
  color: var(--color-secondary-dark);
}

/* Adjust tokens inside themed sections */

/* Dark theme text tweaks */
.page-section--theme-dark .section-title {
  color: var(--color-primary);
}

.page-section--theme-dark .section-subtitle,
.page-section--theme-dark .section-body,
.page-section--theme-dark .section-eyebrow {
  color: var(--color-primary-light);
}

/* Accent theme text tweaks */
.page-section--theme-accent .section-title {
  color: var(--color-secondary-dark);
}

.page-section--theme-accent .section-subtitle,
.page-section--theme-accent .section-body {
  color: var(--color-secondary-dark);
}

/* Optional: borders/shadows for themed blocks */
.page-section--theme-light {
  border-top: var(--border-default);
  border-bottom: var(--border-default);
}

.page-section--theme-dark {
  box-shadow: var(--shadow-secondary);
}

.page-section--theme-accent {
  box-shadow: var(--shadow-accent-strong);
}
