/* ═══════════════════════════════════════════════════════════
   LAYOUT — Arshia Portfolio
   ═══════════════════════════════════════════════════════════ */

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

.container--narrow {
  max-width: var(--max-width-narrow);
}

.container--text {
  max-width: var(--max-width-text);
}

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

.section__header {
  margin-bottom: var(--space-3xl);
}

.section__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-lg);
}

.section__label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--color-text-tertiary);
}

.section__title {
  font-size: var(--text-h1);
  color: var(--color-text-primary);
  max-width: 20ch;
}

/* ── Flex Utilities ────────────────────────────────────── */
.flex {
  display: flex;
}

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

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

.flex--col {
  flex-direction: column;
}

.flex--gap-sm { gap: var(--space-sm); }
.flex--gap-md { gap: var(--space-md); }
.flex--gap-lg { gap: var(--space-lg); }
.flex--gap-xl { gap: var(--space-xl); }

/* ── Visibility ────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
  .section {
    padding-top: clamp(3rem, 8vh, 5rem);
    padding-bottom: clamp(3rem, 8vh, 5rem);
  }

  .section__header {
    margin-bottom: var(--space-2xl);
  }

  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .hide-desktop {
    display: none !important;
  }
}
