/* ==========================================================================
   EstatePrime — Utility Classes
   ========================================================================== */

/* Screen reader only */
.sr-only {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Container */
.container {
  inline-size: min(100% - (var(--gutter) * 2), var(--max-width));
  margin-inline: auto;
}

/* Section spacing */
.section {
  padding-block: clamp(var(--space-7), 8vw, var(--space-9));
}

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

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

/* Section header */
.section__header {
  max-inline-size: 40rem;
  margin-block-end: clamp(var(--space-6), 5vw, var(--space-8));
}

.section__header--center {
  margin-inline: auto;
  text-align: center;
}

.section__eyebrow {
  display: inline-block;
  margin-block-end: var(--space-3);
  font-size: var(--fs-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.section__title {
  margin-block-end: var(--space-4);
  font-size: var(--fs-3xl);
}

.section__lead {
  font-size: var(--fs-md);
  color: var(--color-muted);
  line-height: var(--lh-relaxed);
}

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

.text-heading {
  color: var(--color-heading);
}

.text-muted {
  color: var(--color-muted);
}

.text-primary {
  color: var(--color-primary);
}

/* Flex helpers */
.flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: var(--space-2);
}

.gap-3 {
  gap: var(--space-3);
}

.gap-4 {
  gap: var(--space-4);
}

.gap-5 {
  gap: var(--space-5);
}

/* Grid helpers */
.grid {
  display: grid;
}

/* Visually hidden but focusable skip target */
.skip-link:focus,
.skip-link:focus-visible {
  position: fixed;
  inset-block-start: var(--space-4);
  inset-inline-start: var(--space-4);
  z-index: var(--z-skip);
  inline-size: auto;
  block-size: auto;
  padding: var(--space-3) var(--space-5);
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background-color: var(--color-heading);
  color: var(--color-white);
  border-radius: var(--radius-button);
  font-weight: var(--font-weight-semibold);
}
